.class public final Lcom/discord/widgets/user/profile/UserProfileHeaderView$Companion; .super Ljava/lang/Object; .source "UserProfileHeaderView.kt" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/discord/widgets/user/profile/UserProfileHeaderView; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = "Companion" .end annotation # direct methods .method public constructor ()V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public synthetic constructor (Lkotlin/jvm/internal/DefaultConstructorMarker;)V .locals 0 invoke-direct {p0}, Lcom/discord/widgets/user/profile/UserProfileHeaderView$Companion;->()V return-void .end method # virtual methods .method public final bind(Lcom/discord/widgets/user/profile/UserProfileHeaderView;Landroidx/fragment/app/Fragment;Lcom/discord/app/AppComponent;JLjava/lang/Long;)V .locals 9 const/4 v0, 0x0 if-eqz p1, :cond_2 if-eqz p2, :cond_1 if-eqz p3, :cond_0 new-instance v0, Landroidx/lifecycle/ViewModelProvider; new-instance v1, Lcom/discord/widgets/user/profile/UserProfileHeaderViewModel$Factory; invoke-direct {v1, p4, p5, p6}, Lcom/discord/widgets/user/profile/UserProfileHeaderViewModel$Factory;->(JLjava/lang/Long;)V invoke-direct {v0, p2, v1}, Landroidx/lifecycle/ViewModelProvider;->(Landroidx/lifecycle/ViewModelStoreOwner;Landroidx/lifecycle/ViewModelProvider$Factory;)V const-class p4, Lcom/discord/widgets/user/profile/UserProfileHeaderViewModel; invoke-virtual {v0, p4}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel; move-result-object p4 const-string p5, "ViewModelProvider(\n \u2026derViewModel::class.java)" invoke-static {p4, p5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V check-cast p4, Lcom/discord/widgets/user/profile/UserProfileHeaderViewModel; invoke-virtual {p4}, Lf/a/b/o0;->observeViewState()Lrx/Observable; move-result-object p4 sget-object p5, Lcom/discord/widgets/user/profile/UserProfileHeaderView$Companion$bind$$inlined$filterIs$1;->INSTANCE:Lcom/discord/widgets/user/profile/UserProfileHeaderView$Companion$bind$$inlined$filterIs$1; invoke-virtual {p4, p5}, Lrx/Observable;->w(Lr0/k/b;)Lrx/Observable; move-result-object p4 sget-object p5, Lcom/discord/widgets/user/profile/UserProfileHeaderView$Companion$bind$$inlined$filterIs$2;->INSTANCE:Lcom/discord/widgets/user/profile/UserProfileHeaderView$Companion$bind$$inlined$filterIs$2; invoke-virtual {p4, p5}, Lrx/Observable;->E(Lr0/k/b;)Lrx/Observable; move-result-object p4 const-string p5, "filter { it is T }.map { it as T }" invoke-static {p4, p5}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-static {p4, p3}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->bindToComponentLifecycle(Lrx/Observable;Lcom/discord/app/AppComponent;)Lrx/Observable; move-result-object v0 invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v1 const/4 v2, 0x0 const/4 v3, 0x0 const/4 v4, 0x0 const/4 v5, 0x0 new-instance v6, Lcom/discord/widgets/user/profile/UserProfileHeaderView$Companion$bind$1; invoke-direct {v6, p1}, Lcom/discord/widgets/user/profile/UserProfileHeaderView$Companion$bind$1;->(Lcom/discord/widgets/user/profile/UserProfileHeaderView;)V const/16 v7, 0x1e const/4 v8, 0x0 invoke-static/range {v0 .. v8}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V return-void :cond_0 const-string p1, "appComponent" invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V throw v0 :cond_1 const-string p1, "host" invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V throw v0 :cond_2 const-string p1, "$this$bind" invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V throw v0 .end method