package p71; import android.os.Bundle; import com.meizu.cloud.pushsdk.notification.model.AdvanceSetting; import com.xingin.android.mixim.msg.MsgType; import com.xingin.android.redutils.base.XhsActivity; import com.xingin.android.redutils.base.XhsBottomSheetDialog; import com.xingin.android.xhscomm.router.Routers; import com.xingin.matrix.comment.model.entities.CommentInfo; import com.xingin.matrix.detail.item.common.comment.headerItem.dialog.PfCommentListDialog; import kotlin.Metadata; import kotlin.Unit; import kotlin.jvm.functions.Function1; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.Lambda; import l51.e0; import t41.g; import z41.e; import zh1.q; import zh1.s; @Metadata(bv = {}, d1 = {"\u0000F\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\t\u0018\u00002\u0014\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0000\u0012\u0004\u0012\u00020\u00030\u0001B\u0007¢\u0006\u0004\b-\u0010.J\u0012\u0010\u0007\u001a\u00020\u00062\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0014J\b\u0010\b\u001a\u00020\u0006H\u0014J\b\u0010\t\u001a\u00020\u0006H\u0002R\"\u0010\u000b\u001a\u00020\n8\u0006@\u0006X.¢\u0006\u0012\n\u0004\b\u000b\u0010\f\u001a\u0004\b\r\u0010\u000e\"\u0004\b\u000f\u0010\u0010R\"\u0010\u0012\u001a\u00020\u00118\u0006@\u0006X.¢\u0006\u0012\n\u0004\b\u0012\u0010\u0013\u001a\u0004\b\u0014\u0010\u0015\"\u0004\b\u0016\u0010\u0017R\"\u0010\u0019\u001a\u00020\u00188\u0006@\u0006X.¢\u0006\u0012\n\u0004\b\u0019\u0010\u001a\u001a\u0004\b\u001b\u0010\u001c\"\u0004\b\u001d\u0010\u001eR\"\u0010 \u001a\u00020\u001f8\u0006@\u0006X.¢\u0006\u0012\n\u0004\b \u0010!\u001a\u0004\b\"\u0010#\"\u0004\b$\u0010%R\"\u0010'\u001a\u00020&8\u0006@\u0006X.¢\u0006\u0012\n\u0004\b'\u0010(\u001a\u0004\b)\u0010*\"\u0004\b+\u0010,¨\u0006/"}, d2 = {"Lp71/h;", "Ltu0/b;", "Lp71/k;", "Lp71/j;", "Landroid/os/Bundle;", "savedInstanceState", "", "onAttach", "onDetach", "U0", "Lcom/xingin/matrix/comment/model/entities/CommentInfo;", "commentInfo", "Lcom/xingin/matrix/comment/model/entities/CommentInfo;", "R0", "()Lcom/xingin/matrix/comment/model/entities/CommentInfo;", "setCommentInfo", "(Lcom/xingin/matrix/comment/model/entities/CommentInfo;)V", "Lcom/xingin/android/redutils/base/XhsActivity;", "activity", "Lcom/xingin/android/redutils/base/XhsActivity;", "getActivity", "()Lcom/xingin/android/redutils/base/XhsActivity;", "setActivity", "(Lcom/xingin/android/redutils/base/XhsActivity;)V", "Lcom/xingin/android/redutils/base/XhsBottomSheetDialog;", MsgType.TYPE_SHOW_DIALOG, "Lcom/xingin/android/redutils/base/XhsBottomSheetDialog;", "getDialog", "()Lcom/xingin/android/redutils/base/XhsBottomSheetDialog;", "setDialog", "(Lcom/xingin/android/redutils/base/XhsBottomSheetDialog;)V", "Lk61/b;", "pageIntentImpl", "Lk61/b;", "S0", "()Lk61/b;", "setPageIntentImpl", "(Lk61/b;)V", "Ll51/e0;", "videoCommentListScreenshot", "Ll51/e0;", "T0", "()Ll51/e0;", "setVideoCommentListScreenshot", "(Ll51/e0;)V", "<init>", "()V", "matrix_detail_feed_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: PfCommentListDialogController.kt */ public final class h extends tu0.b<k, h, j> { /* renamed from: a reason: collision with root package name */ public CommentInfo f117022a; /* renamed from: b reason: collision with root package name */ public XhsActivity f117023b; /* renamed from: c reason: collision with root package name */ public XhsBottomSheetDialog f117024c; /* renamed from: d reason: collision with root package name */ public k61.b f117025d; /* renamed from: e reason: collision with root package name */ public e0 f117026e; @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "invoke", "(Lkotlin/Unit;)V"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: PfCommentListDialogController.kt */ public static final class a extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ h f117027a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(h hVar) { super(1); this.f117027a = hVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Unit unit) { invoke(unit); return Unit.INSTANCE; } public final void invoke(Unit unit) { Intrinsics.checkNotNullParameter(unit, AdvanceSetting.NETWORK_TYPE); if (this.f117027a.getDialog() instanceof PfCommentListDialog) { ((PfCommentListDialog) this.f117027a.getDialog()).g(); } else { this.f117027a.getDialog().dismiss(); } } } @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "invoke", "(Lkotlin/Unit;)V"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: PfCommentListDialogController.kt */ public static final class b extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ h f117028a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public b(h hVar) { super(1); this.f117028a = hVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Unit unit) { invoke(unit); return Unit.INSTANCE; } public final void invoke(Unit unit) { Intrinsics.checkNotNullParameter(unit, AdvanceSetting.NETWORK_TYPE); Routers.build(g.f132395a.b()).open(this.f117028a.getActivity()); s sVar = s.f162233a; String noteId = this.f117028a.R0().getNoteId(); boolean c14 = e.f160472a.c(this.f117028a.R0().getNoteType()); boolean isFromFriendFeed = this.f117028a.R0().isFromFriendFeed(); String clickAuthorId = this.f117028a.R0().getClickAuthorId(); if (clickAuthorId == null) { clickAuthorId = ""; } sVar.n(noteId, c14, new q(isFromFriendFeed, clickAuthorId)); } } @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "invoke", "(Lkotlin/Unit;)V"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: PfCommentListDialogController.kt */ public static final class c extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ h f117029a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public c(h hVar) { super(1); this.f117029a = hVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kotlin.jvm.functions.Function1 public /* bridge */ /* synthetic */ Unit invoke(Unit unit) { invoke(unit); return Unit.INSTANCE; } public final void invoke(Unit unit) { Intrinsics.checkNotNullParameter(unit, AdvanceSetting.NETWORK_TYPE); s51.g.f128556a.i(this.f117029a.R0().getNnsLinkType(), this.f117029a.R0().getNoteId()); Routers.build(this.f117029a.R0().getNnsLink()).open(this.f117029a.getActivity()); } } public final CommentInfo R0() { CommentInfo commentInfo = this.f117022a; if (commentInfo != null) { return commentInfo; } Intrinsics.throwUninitializedPropertyAccessException("commentInfo"); return null; } public final k61.b S0() { k61.b bVar = this.f117025d; if (bVar != null) { return bVar; } Intrinsics.throwUninitializedPropertyAccessException("pageIntentImpl"); return null; } public final e0 T0() { e0 e0Var = this.f117026e; if (e0Var != null) { return e0Var; } Intrinsics.throwUninitializedPropertyAccessException("videoCommentListScreenshot"); return null; } public final void U0() { bj2.h.d(((k) getPresenter()).b(), this, new a(this)); bj2.h.d(((k) getPresenter()).d(), this, new b(this)); ((k) getPresenter()).i(); ((k) getPresenter()).m(); if (R0().getNnsLink().length() > 0) { ((k) getPresenter()).l(R0().getNnsTitle()); ((k) getPresenter()).h(R0().getNnsDiscColor()); ((k) getPresenter()).e(false); s51.g.f128556a.j(R0().getNnsLinkType(), R0().getNoteId()); } else { k.f((k) getPresenter(), false, 1, null); } bj2.h.d(((k) getPresenter()).j(), this, new c(this)); ((k) getPresenter()).g(R0().getNoteUserId(), R0().getCommentCount()); } public final XhsActivity getActivity() { XhsActivity xhsActivity = this.f117023b; if (xhsActivity != null) { return xhsActivity; } Intrinsics.throwUninitializedPropertyAccessException("activity"); return null; } public final XhsBottomSheetDialog getDialog() { XhsBottomSheetDialog xhsBottomSheetDialog = this.f117024c; if (xhsBottomSheetDialog != null) { return xhsBottomSheetDialog; } Intrinsics.throwUninitializedPropertyAccessException(MsgType.TYPE_SHOW_DIALOG); return null; } @Override // tu0.b public void onAttach(Bundle bundle) { super.onAttach(bundle); U0(); if (S0().p()) { ((k) getPresenter()).k(); } xc2.g.f153946a.d(T0()); } @Override // tu0.b public void onDetach() { super.onDetach(); xc2.g.f153946a.n(T0()); } }