package qk1; import android.content.Intent; import android.os.Bundle; import android.view.View; import androidx.lifecycle.Lifecycle; import androidx.recyclerview.widget.DiffUtil; import com.alibaba.alibclinkpartner.linkpartner.constants.ALPParamConstant; import com.alibaba.baichuan.trade.biz.applink.adapter.AppLinkConstants; import com.alibaba.wireless.security.open.nocaptcha.INoCaptchaComponent; import com.google.gson.Gson; import com.meizu.cloud.pushsdk.notification.model.AdvanceSetting; import com.xingin.android.redutils.base.XhsActivity; import com.xingin.android.xhscomm.router.RouterBuilder; import com.xingin.android.xhscomm.router.Routers; import com.xingin.entities.NoteFeedIntentData; import com.xingin.entities.NoteItemBean; import com.xingin.entities.VideoInfo; import com.xingin.entities.l0; import com.xingin.entities.x; import com.xingin.matrix.R$anim; import com.xingin.matrix.v2.collection.entities.CollectionApiExtra; import com.xingin.matrix.v2.collection.entities.CollectionInfo; import com.xingin.matrix.v2.collection.entities.CollectionUserInfo; import com.xingin.pages.NoteDetailV2Page; import com.xingin.pages.PageExtensionsKt; import com.xingin.pages.Pages; import com.xingin.pages.VideoFeedV2Page; import dw2.r; import ja.b1; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import kotlin.Metadata; import kotlin.Pair; import kotlin.Triple; import kotlin.Unit; import kotlin.collections.CollectionsKt___CollectionsKt; import kotlin.jvm.functions.Function1; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.FunctionReferenceImpl; import kotlin.jvm.internal.Intrinsics; import kotlin.jvm.internal.Lambda; import nk1.h; import t10.m0; import tl1.p; import u32.i; @Metadata(bv = {}, d1 = {"\u0000~\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u000f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0007\u0018\u00002\u00020\u00012\u0014\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u00020\u0000\u0012\u0004\u0012\u00020\u00040\u0002:\u0001VB\u0007¢\u0006\u0004\bT\u0010UJ\b\u0010\u0006\u001a\u00020\u0005H\u0002J\b\u0010\u0007\u001a\u00020\u0005H\u0002J\"\u0010\r\u001a\u00020\u00052\u0006\u0010\t\u001a\u00020\b2\u0006\u0010\n\u001a\u00020\b2\b\u0010\f\u001a\u0004\u0018\u00010\u000bH\u0002J\b\u0010\u000e\u001a\u00020\u0005H\u0002J\b\u0010\u000f\u001a\u00020\u0005H\u0002J\b\u0010\u0010\u001a\u00020\u0005H\u0002J\b\u0010\u0011\u001a\u00020\u0005H\u0002J\u0010\u0010\u0014\u001a\u00020\u00052\u0006\u0010\u0013\u001a\u00020\u0012H\u0002J$\u0010\u0019\u001a\u00020\u00052\u0006\u0010\u0013\u001a\u00020\u00122\b\b\u0002\u0010\u0016\u001a\u00020\u00152\b\b\u0002\u0010\u0018\u001a\u00020\u0017H\u0002J\u0018\u0010\u001b\u001a\u00020\u00052\u0006\u0010\u001a\u001a\u00020\b2\u0006\u0010\u0013\u001a\u00020\u0012H\u0002J\u0018\u0010\u001d\u001a\u00020\u00052\u0006\u0010\u001c\u001a\u00020\b2\u0006\u0010\u0013\u001a\u00020\u0012H\u0002J\u0018\u0010\u001e\u001a\u00020\u00052\u0006\u0010\u001c\u001a\u00020\b2\u0006\u0010\u0013\u001a\u00020\u0012H\u0002J\u0012\u0010!\u001a\u00020\u00052\b\u0010 \u001a\u0004\u0018\u00010\u001fH\u0014J(\u0010%\u001a\u00020\u00052\u0006\u0010\u001a\u001a\u00020\b2\u0006\u0010\u0013\u001a\u00020\u00122\u0006\u0010#\u001a\u00020\"2\u0006\u0010$\u001a\u00020\u0017H\u0016J\u0018\u0010&\u001a\u00020\u00052\u0006\u0010\u001c\u001a\u00020\b2\u0006\u0010\u0013\u001a\u00020\u0012H\u0016J\u0018\u0010'\u001a\u00020\u00052\u0006\u0010\u001c\u001a\u00020\b2\u0006\u0010\u0013\u001a\u00020\u0012H\u0016J\u0018\u0010(\u001a\u00020\u00052\u0006\u0010\u001c\u001a\u00020\b2\u0006\u0010\u0013\u001a\u00020\u0012H\u0016J\b\u0010)\u001a\u00020\u0005H\u0014R\"\u0010+\u001a\u00020*8\u0006@\u0006X.¢\u0006\u0012\n\u0004\b+\u0010,\u001a\u0004\b-\u0010.\"\u0004\b/\u00100R\"\u00102\u001a\u0002018\u0006@\u0006X.¢\u0006\u0012\n\u0004\b2\u00103\u001a\u0004\b4\u00105\"\u0004\b6\u00107R\"\u00109\u001a\u0002088\u0006@\u0006X.¢\u0006\u0012\n\u0004\b9\u0010:\u001a\u0004\b;\u0010<\"\u0004\b=\u0010>R\"\u0010?\u001a\u00020\u00158\u0006@\u0006X.¢\u0006\u0012\n\u0004\b?\u0010@\u001a\u0004\bA\u0010B\"\u0004\bC\u0010DR\"\u0010E\u001a\u00020\u00158\u0006@\u0006X.¢\u0006\u0012\n\u0004\bE\u0010@\u001a\u0004\bF\u0010B\"\u0004\bG\u0010DR(\u0010J\u001a\b\u0012\u0004\u0012\u00020I0H8\u0006@\u0006X.¢\u0006\u0012\n\u0004\bJ\u0010K\u001a\u0004\bL\u0010M\"\u0004\bN\u0010OR:\u0010Q\u001a\u001a\u0012\u0016\u0012\u0014\u0012\u0004\u0012\u00020I\u0012\u0004\u0012\u00020\"\u0012\u0004\u0012\u00020\u00170P0H8\u0006@\u0006X.¢\u0006\u0012\n\u0004\bQ\u0010K\u001a\u0004\bR\u0010M\"\u0004\bS\u0010O¨\u0006W"}, d2 = {"Lqk1/y;", "", "Ltu0/b;", "Lqk1/c0;", "Lqk1/a0;", "", "n1", "i1", "", AppLinkConstants.REQUESTCODE, ALPParamConstant.RESULT_CODE, "Landroid/content/Intent;", "data", "r1", "k1", "l1", "m1", "j1", "Lcom/xingin/entities/NoteItemBean;", "noteItemBean", "w1", "", "orderType", "", "isPlayAll", "f1", "pos", INoCaptchaComponent.f17800x1, "position", "o1", "z1", "Landroid/os/Bundle;", "savedInstanceState", "onAttach", "Landroid/view/View;", "transitionView", "isViaUserGuideClick", com.alipay.sdk.widget.c.f18364b, INoCaptchaComponent.f17802y1, "t1", "u1", "onDetach", "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", "Lnk1/f;", "repository", "Lnk1/f;", "e1", "()Lnk1/f;", "setRepository", "(Lnk1/f;)V", "Lrk1/h;", "collectionNoteTitleBinderV2", "Lrk1/h;", "a1", "()Lrk1/h;", "setCollectionNoteTitleBinderV2", "(Lrk1/h;)V", "collectionId", "Ljava/lang/String;", "Z0", "()Ljava/lang/String;", "setCollectionId", "(Ljava/lang/String;)V", "from", "c1", "setFrom", "Ldx2/d;", "Ltl1/p$a;", "eventSubject", "Ldx2/d;", "b1", "()Ldx2/d;", "setEventSubject", "(Ldx2/d;)V", "Lkotlin/Triple;", "noteItemClick", "d1", "setNoteItemClick", "<init>", "()V", "a", "matrix_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: CollectionNoteListController.kt */ public final class y extends tu0.b<c0, y, a0> { /* renamed from: k reason: collision with root package name */ public static final a f122530k = new a(null); /* renamed from: a reason: collision with root package name */ public XhsActivity f122531a; /* renamed from: b reason: collision with root package name */ public nk1.f f122532b; /* renamed from: c reason: collision with root package name */ public rk1.h f122533c; /* renamed from: d reason: collision with root package name */ public String f122534d; /* renamed from: e reason: collision with root package name */ public String f122535e; /* renamed from: f reason: collision with root package name */ public String f122536f; /* renamed from: g reason: collision with root package name */ public dx2.d<p.a> f122537g; /* renamed from: h reason: collision with root package name */ public dx2.d<Triple<p.a, View, Boolean>> f122538h; /* renamed from: i reason: collision with root package name */ public boolean f122539i = true; /* renamed from: j reason: collision with root package name */ public u32.i f122540j; @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\u0005\b\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0005\u0010\u0006R\u0014\u0010\u0003\u001a\u00020\u00028\u0006XT¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004¨\u0006\u0007"}, d2 = {"Lqk1/y$a;", "", "", "EXTRA_STRING_KEY_USERID", "Ljava/lang/String;", "<init>", "()V", "matrix_library_release"}, k = 1, mv = {1, 6, 0}) /* compiled from: CollectionNoteListController.kt */ public static final class a { public a() { } public /* synthetic */ a(DefaultConstructorMarker defaultConstructorMarker) { this(); } } @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0003*\u0004\u0018\u00010\u00010\u0001H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "kotlin.jvm.PlatformType", "invoke", "(Lkotlin/Unit;)V"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CollectionNoteListController.kt */ public static final class b extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122541a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public b(y yVar) { super(1); this.f122541a = yVar; } /* 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) { String str; CollectionUserInfo user; CollectionUserInfo user2; String id3; h.a aVar = nk1.h.f110463a; String Z0 = this.f122541a.Z0(); CollectionInfo l14 = this.f122541a.e1().l(); String str2 = ""; if (l14 == null || (str = l14.getName()) == null) { str = str2; } CollectionInfo l15 = this.f122541a.e1().l(); if (!(l15 == null || (user2 = l15.getUser()) == null || (id3 = user2.getId()) == null)) { str2 = id3; } aVar.c(Z0, str, str2); RouterBuilder build = Routers.build(Pages.PAGE_OTHER_USER_PROFILE); CollectionInfo l16 = this.f122541a.e1().l(); build.withString("uid", (l16 == null || (user = l16.getUser()) == null) ? null : user.getId()).open(this.f122541a.getActivity()); } } @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\u0005"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CollectionNoteListController.kt */ public static final class c extends Lambda implements Function1<String, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122542a; @Metadata(d1 = {"\u0000\u001c\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u000122\u0010\u0002\u001a.\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00050\u0004\u0012\u0004\u0012\u00020\u0006 \u0007*\u0016\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00050\u0004\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\b"}, d2 = {"<anonymous>", "", "pair", "Lkotlin/Pair;", "", "", "Landroidx/recyclerview/widget/DiffUtil$DiffResult;", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CollectionNoteListController.kt */ public static final class a extends Lambda implements Function1<Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult>, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122543a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(y yVar) { super(1); this.f122543a = yVar; } /* 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(Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult> pair) { invoke(pair); return Unit.INSTANCE; } public final void invoke(Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult> pair) { Intrinsics.checkNotNullExpressionValue(pair, "pair"); ((c0) this.f122543a.getPresenter()).y(pair); ((c0) this.f122543a.getPresenter()).v(true); u32.i iVar = this.f122543a.f122540j; if (iVar != null) { iVar.d(); } } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CollectionNoteListController.kt */ public /* synthetic */ class b extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public b(Object obj) { super(1, obj, z41.l.class, "logError", "logError(Ljava/lang/Throwable;)V", 0); } /* 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(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); z41.l.f(th3); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public c(y yVar) { super(1); this.f122542a = yVar; } /* 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(String str) { invoke(str); return Unit.INSTANCE; } public final void invoke(String str) { String str2; CollectionUserInfo user; String id3; h.a aVar = nk1.h.f110463a; String Z0 = this.f122542a.Z0(); CollectionInfo l14 = this.f122542a.e1().l(); String str3 = ""; if (l14 == null || (str2 = l14.getName()) == null) { str2 = str3; } CollectionInfo l15 = this.f122542a.e1().l(); if (!(l15 == null || (user = l15.getUser()) == null || (id3 = user.getId()) == null)) { str3 = id3; } aVar.j(Z0, str2, str3); ((c0) this.f122542a.getPresenter()).v(false); nk1.f e14 = this.f122542a.e1(); String Z02 = this.f122542a.Z0(); Intrinsics.checkNotNullExpressionValue(str, AdvanceSetting.NETWORK_TYPE); r W0 = nk1.f.v(e14, Z02, null, true, str, 2, null).W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W0, "repository.getNoteByColl…dSchedulers.mainThread())"); y yVar = this.f122542a; bj2.h.f(W0, yVar, new a(yVar), new b(z41.l.f160483a)); } } @Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\u0005"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CollectionNoteListController.kt */ public static final class d extends Lambda implements Function1<String, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122544a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public d(y yVar) { super(1); this.f122544a = yVar; } /* 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(String str) { invoke(str); return Unit.INSTANCE; } public final void invoke(String str) { String str2; CollectionUserInfo user; String id3; h.a aVar = nk1.h.f110463a; String Z0 = this.f122544a.Z0(); CollectionInfo l14 = this.f122544a.e1().l(); String str3 = ""; if (l14 == null || (str2 = l14.getName()) == null) { str2 = str3; } CollectionInfo l15 = this.f122544a.e1().l(); if (!(l15 == null || (user = l15.getUser()) == null || (id3 = user.getId()) == null)) { str3 = id3; } aVar.h(Z0, str2, str3); Object t14 = this.f122544a.e1().t(); if (t14 != null) { y yVar = this.f122544a; if (t14 instanceof NoteItemBean) { Intrinsics.checkNotNullExpressionValue(str, AdvanceSetting.NETWORK_TYPE); yVar.f1((NoteItemBean) t14, str, true); } } } } @Metadata(d1 = {"\u0000\u0018\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\u0010\u000e\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012&\u0010\u0002\u001a\"\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u0005 \u0006*\u0010\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u0005\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\u0007"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "Lkotlin/Pair;", "", "", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CollectionNoteListController.kt */ public static final class e extends Lambda implements Function1<Pair<? extends Boolean, ? extends String>, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122545a; @Metadata(d1 = {"\u0000\u001c\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u000122\u0010\u0002\u001a.\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00050\u0004\u0012\u0004\u0012\u00020\u0006 \u0007*\u0016\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00050\u0004\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\b"}, d2 = {"<anonymous>", "", "pair", "Lkotlin/Pair;", "", "", "Landroidx/recyclerview/widget/DiffUtil$DiffResult;", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CollectionNoteListController.kt */ public static final class a extends Lambda implements Function1<Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult>, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122546a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(y yVar) { super(1); this.f122546a = yVar; } /* 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(Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult> pair) { invoke(pair); return Unit.INSTANCE; } public final void invoke(Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult> pair) { Intrinsics.checkNotNullExpressionValue(pair, "pair"); ((c0) this.f122546a.getPresenter()).y(pair); } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CollectionNoteListController.kt */ public /* synthetic */ class b extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public b(Object obj) { super(1, obj, z41.l.class, "logError", "logError(Ljava/lang/Throwable;)V", 0); } /* 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(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); z41.l.f(th3); } } @Metadata(d1 = {"\u0000\u001c\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u000122\u0010\u0002\u001a.\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00050\u0004\u0012\u0004\u0012\u00020\u0006 \u0007*\u0016\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00050\u0004\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\b"}, d2 = {"<anonymous>", "", "pair", "Lkotlin/Pair;", "", "", "Landroidx/recyclerview/widget/DiffUtil$DiffResult;", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CollectionNoteListController.kt */ public static final class c extends Lambda implements Function1<Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult>, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122547a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public c(y yVar) { super(1); this.f122547a = yVar; } /* 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(Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult> pair) { invoke(pair); return Unit.INSTANCE; } public final void invoke(Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult> pair) { Intrinsics.checkNotNullExpressionValue(pair, "pair"); ((c0) this.f122547a.getPresenter()).y(pair); } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CollectionNoteListController.kt */ public /* synthetic */ class d extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public d(Object obj) { super(1, obj, z41.l.class, "logError", "logError(Ljava/lang/Throwable;)V", 0); } /* 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(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); z41.l.f(th3); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public e(y yVar) { super(1); this.f122545a = yVar; } /* 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(Pair<? extends Boolean, ? extends String> pair) { invoke((Pair<Boolean, String>) pair); return Unit.INSTANCE; } public final void invoke(Pair<Boolean, String> pair) { String str; CollectionUserInfo user; String id3; if (pair.getFirst().booleanValue()) { r<Pair<List<Object>, DiffUtil.DiffResult>> W0 = this.f122545a.e1().g(pair.getSecond()).W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W0, "repository.collectCollec…dSchedulers.mainThread())"); y yVar = this.f122545a; bj2.h.f(W0, yVar, new a(yVar), new b(z41.l.f160483a)); } else { r<Pair<List<Object>, DiffUtil.DiffResult>> W02 = this.f122545a.e1().e(pair.getSecond()).W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W02, "repository.cancelCollect…dSchedulers.mainThread())"); y yVar2 = this.f122545a; bj2.h.f(W02, yVar2, new c(yVar2), new d(z41.l.f160483a)); } h.a aVar = nk1.h.f110463a; String Z0 = this.f122545a.Z0(); CollectionInfo l14 = this.f122545a.e1().l(); String str2 = ""; if (l14 == null || (str = l14.getName()) == null) { str = str2; } CollectionInfo l15 = this.f122545a.e1().l(); if (!(l15 == null || (user = l15.getUser()) == null || (id3 = user.getId()) == null)) { str2 = id3; } aVar.d(Z0, str, str2, pair.getFirst().booleanValue()); } } @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", "lifecycle", "Landroidx/lifecycle/Lifecycle$Event;", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CollectionNoteListController.kt */ public static final class f extends Lambda implements Function1<Lifecycle.Event, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122548a; @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lcom/xingin/matrix/v2/collection/entities/CollectionInfo;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lcom/xingin/matrix/v2/collection/entities/CollectionInfo;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CollectionNoteListController.kt */ public static final class a extends Lambda implements Function1<CollectionInfo, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122549a; @Metadata(d1 = {"\u0000\u001c\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u000122\u0010\u0002\u001a.\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00050\u0004\u0012\u0004\u0012\u00020\u0006 \u0007*\u0016\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00050\u0004\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\b"}, d2 = {"<anonymous>", "", "pair", "Lkotlin/Pair;", "", "", "Landroidx/recyclerview/widget/DiffUtil$DiffResult;", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* renamed from: qk1.y$f$a$a reason: collision with other inner class name */ /* compiled from: CollectionNoteListController.kt */ public static final class C1922a extends Lambda implements Function1<Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult>, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122550a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public C1922a(y yVar) { super(1); this.f122550a = yVar; } /* 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(Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult> pair) { invoke(pair); return Unit.INSTANCE; } public final void invoke(Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult> pair) { Intrinsics.checkNotNullExpressionValue(pair, "pair"); ((c0) this.f122550a.getPresenter()).y(pair); u32.i iVar = this.f122550a.f122540j; if (iVar != null) { iVar.d(); } } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CollectionNoteListController.kt */ public /* synthetic */ class b extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public b(Object obj) { super(1, obj, z41.l.class, "logError", "logError(Ljava/lang/Throwable;)V", 0); } /* 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(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); z41.l.f(th3); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(y yVar) { super(1); this.f122549a = yVar; } public final void a(CollectionInfo collectionInfo) { String str; String str2; CollectionUserInfo user; CollectionUserInfo user2; c0 c0Var = (c0) this.f122549a.getPresenter(); if (collectionInfo == null || (user2 = collectionInfo.getUser()) == null || (str = user2.getImage()) == null) { str = ""; } c0Var.u(str); if (!Intrinsics.areEqual((collectionInfo == null || (user = collectionInfo.getUser()) == null) ? null : user.getId(), b1.f94179a.S0().getUserid())) { ((c0) this.f122549a.getPresenter()).l(); ((c0) this.f122549a.getPresenter()).w(false); } nk1.f e14 = this.f122549a.e1(); String Z0 = this.f122549a.Z0(); CollectionInfo l14 = this.f122549a.e1().l(); if (l14 == null || (str2 = l14.getOrderType()) == null) { str2 = "publish_reverse"; } r W0 = nk1.f.v(e14, Z0, null, true, str2, 2, null).W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W0, "repository.getNoteByColl…dSchedulers.mainThread())"); y yVar = this.f122549a; bj2.h.f(W0, yVar, new C1922a(yVar), new b(z41.l.f160483a)); } /* 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(CollectionInfo collectionInfo) { a(collectionInfo); return Unit.INSTANCE; } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CollectionNoteListController.kt */ public /* synthetic */ class b extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public b(Object obj) { super(1, obj, z41.l.class, "logError", "logError(Ljava/lang/Throwable;)V", 0); } /* 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(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); z41.l.f(th3); } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CollectionNoteListController.kt */ public /* synthetic */ class c { /* renamed from: a reason: collision with root package name */ public static final /* synthetic */ int[] f122551a; static { int[] iArr = new int[Lifecycle.Event.values().length]; iArr[Lifecycle.Event.ON_RESUME.ordinal()] = 1; f122551a = iArr; } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public f(y yVar) { super(1); this.f122548a = yVar; } /* 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(Lifecycle.Event event) { invoke(event); return Unit.INSTANCE; } public final void invoke(Lifecycle.Event event) { Intrinsics.checkNotNullParameter(event, "lifecycle"); if (c.f122551a[event.ordinal()] == 1) { nk1.h.f110463a.f(this.f122548a.Z0()); if (b02.c.f5924t.D() && this.f122548a.f122539i) { this.f122548a.f122539i = false; r<CollectionInfo> W0 = this.f122548a.e1().m(this.f122548a.Z0()).W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W0, "repository.getCollection…dSchedulers.mainThread())"); y yVar = this.f122548a; bj2.h.f(W0, yVar, new a(yVar), new b(z41.l.f160483a)); } } } } @Metadata(bv = {}, d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\t\u001a\u00020\u000622\u0010\u0005\u001a.\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0003 \u0004*\u0016\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0003\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0007\u0010\b"}, d2 = {"Lkotlin/Triple;", "Ltl1/p$a;", "Landroid/view/View;", "", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "invoke", "(Lkotlin/Triple;)V", "<anonymous>"}, k = 3, mv = {1, 6, 0}) /* compiled from: CollectionNoteListController.kt */ public static final class g extends Lambda implements Function1<Triple<? extends p.a, ? extends View, ? extends Boolean>, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122552a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public g(y yVar) { super(1); this.f122552a = yVar; } /* 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(Triple<? extends p.a, ? extends View, ? extends Boolean> triple) { invoke((Triple<p.a, ? extends View, Boolean>) triple); return Unit.INSTANCE; } public final void invoke(Triple<p.a, ? extends View, Boolean> triple) { this.f122552a.v1(triple.getFirst().b().invoke().intValue(), triple.getFirst().a(), (View) triple.getSecond(), triple.getThird().booleanValue()); } } @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Ltl1/p$a;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Ltl1/p$a;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CollectionNoteListController.kt */ public static final class h extends Lambda implements Function1<p.a, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122553a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public h(y yVar) { super(1); this.f122553a = yVar; } public final void a(p.a aVar) { if (aVar.d().length() > 0) { String d14 = aVar.d(); int hashCode = d14.hashCode(); if (hashCode != -905386509) { if (hashCode != 1403537649) { if (hashCode == 2077590540 && d14.equals("likeViewClick")) { this.f122553a.t1(aVar.b().invoke().intValue(), aVar.a()); } } else if (d14.equals("liveUserClick")) { this.f122553a.u1(aVar.b().invoke().intValue(), aVar.a()); } } else if (d14.equals("unLikeViewClick")) { this.f122553a.y1(aVar.b().invoke().intValue(), aVar.a()); } } } /* 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(p.a aVar) { a(aVar); return Unit.INSTANCE; } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"", "index", "Lu32/p;", "a", "(I)Lu32/p;"}, k = 3, mv = {1, 6, 0}) /* compiled from: CollectionNoteListController.kt */ public static final class i extends Lambda implements Function1<Integer, u32.p> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122554a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public i(y yVar) { super(1); this.f122554a = yVar; } public final u32.p a(int i10) { Object obj = CollectionsKt___CollectionsKt.getOrNull(((c0) this.f122554a.getPresenter()).getAdapter().d(), i10); if (obj instanceof NoteItemBean) { NoteItemBean noteItemBean = (NoteItemBean) obj; if (Intrinsics.areEqual(noteItemBean.getType(), "video")) { return dm1.a.a(noteItemBean); } } return null; } /* 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 */ u32.p invoke(Integer num) { return a(num.intValue()); } } @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: CollectionNoteListController.kt */ public static final class j extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122555a; @Metadata(d1 = {"\u0000\u001c\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u000122\u0010\u0002\u001a.\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00050\u0004\u0012\u0004\u0012\u00020\u0006 \u0007*\u0016\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00050\u0004\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\b"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "Lkotlin/Pair;", "", "", "Landroidx/recyclerview/widget/DiffUtil$DiffResult;", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CollectionNoteListController.kt */ public static final class a extends Lambda implements Function1<Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult>, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122556a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public a(y yVar) { super(1); this.f122556a = yVar; } /* 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(Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult> pair) { invoke(pair); return Unit.INSTANCE; } public final void invoke(Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult> pair) { Intrinsics.checkNotNullExpressionValue(pair, AdvanceSetting.NETWORK_TYPE); ((c0) this.f122556a.getPresenter()).y(pair); ((c0) this.f122556a.getPresenter()).v(true); } } @Metadata(k = 3, mv = {1, 6, 0}, xi = 48) /* compiled from: CollectionNoteListController.kt */ public /* synthetic */ class b extends FunctionReferenceImpl implements Function1<Throwable, Unit> { public b(Object obj) { super(1, obj, z41.l.class, "logError", "logError(Ljava/lang/Throwable;)V", 0); } /* 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(Throwable th3) { invoke(th3); return Unit.INSTANCE; } public final void invoke(Throwable th3) { Intrinsics.checkNotNullParameter(th3, "p0"); z41.l.f(th3); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public j(y yVar) { super(1); this.f122555a = yVar; } /* 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) { String str; Intrinsics.checkNotNullParameter(unit, AdvanceSetting.NETWORK_TYPE); ((c0) this.f122555a.getPresenter()).v(false); nk1.f e14 = this.f122555a.e1(); String Z0 = this.f122555a.Z0(); String p14 = this.f122555a.e1().p(); CollectionInfo l14 = this.f122555a.e1().l(); if (l14 == null || (str = l14.getOrderType()) == null) { str = "publish_reverse"; } r W0 = nk1.f.v(e14, Z0, p14, false, str, 4, null).W0(gw2.a.a()); Intrinsics.checkNotNullExpressionValue(W0, "repository.getNoteByColl…dSchedulers.mainThread())"); y yVar = this.f122555a; bj2.h.f(W0, yVar, new a(yVar), new b(z41.l.f160483a)); } } @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: CollectionNoteListController.kt */ public static final class k extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122557a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public k(y yVar) { super(1); this.f122557a = yVar; } /* 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); this.f122557a.i1(); } } @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u00032\u000e\u0010\u0002\u001a\n \u0001*\u0004\u0018\u00010\u00000\u0000H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"Lnk1/a;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lnk1/a;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CollectionNoteListController.kt */ public static final class l extends Lambda implements Function1<nk1.a, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122558a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public l(y yVar) { super(1); this.f122558a = yVar; } public final void a(nk1.a aVar) { String str; String str2; CollectionUserInfo user; h.a aVar2 = nk1.h.f110463a; int b14 = aVar.b(); String a14 = aVar.a(); String Z0 = this.f122558a.Z0(); CollectionInfo l14 = this.f122558a.e1().l(); if (l14 == null || (str = l14.getName()) == null) { str = ""; } CollectionInfo l15 = this.f122558a.e1().l(); if (l15 == null || (user = l15.getUser()) == null || (str2 = user.getId()) == null) { str2 = ""; } aVar2.e(b14, a14, Z0, str, str2); } /* 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(nk1.a aVar) { a(aVar); return Unit.INSTANCE; } } @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: CollectionNoteListController.kt */ public static final class m extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122559a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public m(y yVar) { super(1); this.f122559a = yVar; } /* 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); CollectionInfo l14 = this.f122559a.e1().l(); if (l14 != null) { Routers.build(l14.getNotePostLink()).open(this.f122559a.getActivity()); } } } @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: CollectionNoteListController.kt */ public static final class n extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122560a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public n(y yVar) { super(1); this.f122560a = yVar; } /* 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) { String str; String str2; CollectionUserInfo user; String id3; String name; String desc; CollectionUserInfo user2; Intrinsics.checkNotNullParameter(unit, AdvanceSetting.NETWORK_TYPE); h.a aVar = nk1.h.f110463a; String Z0 = this.f122560a.Z0(); CollectionInfo l14 = this.f122560a.e1().l(); String str3 = ""; if (l14 == null || (str = l14.getName()) == null) { str = str3; } CollectionInfo l15 = this.f122560a.e1().l(); if (l15 == null || (user2 = l15.getUser()) == null || (str2 = user2.getId()) == null) { str2 = str3; } aVar.g(Z0, str, str2); XhsActivity activity = this.f122560a.getActivity(); String Z02 = this.f122560a.Z0(); CollectionInfo l16 = this.f122560a.e1().l(); String str4 = (l16 == null || (desc = l16.getDesc()) == null) ? str3 : desc; CollectionInfo l17 = this.f122560a.e1().l(); String str5 = (l17 == null || (name = l17.getName()) == null) ? str3 : name; String y14 = this.f122560a.e1().y(); b1 b1Var = b1.f94179a; CollectionInfo l18 = this.f122560a.e1().l(); if (!(l18 == null || (user = l18.getUser()) == null || (id3 = user.getId()) == null)) { str3 = id3; } sc2.a.c(activity, Z02, str4, str5, y14, b1Var.d1(str3), null, 64, null); } } @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: CollectionNoteListController.kt */ public static final class o extends Lambda implements Function1<Unit, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122561a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public o(y yVar) { super(1); this.f122561a = yVar; } /* 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); this.f122561a.getActivity().finish(); } } @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lzu0/a;", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lzu0/a;)V"}, k = 3, mv = {1, 6, 0}) /* compiled from: CollectionNoteListController.kt */ public static final class p extends Lambda implements Function1<zu0.a, Unit> { /* renamed from: a reason: collision with root package name */ public final /* synthetic */ y f122562a; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public p(y yVar) { super(1); this.f122562a = yVar; } public final void a(zu0.a aVar) { Intrinsics.checkNotNullParameter(aVar, AdvanceSetting.NETWORK_TYPE); this.f122562a.r1(aVar.b(), aVar.c(), aVar.a()); } /* 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(zu0.a aVar) { a(aVar); return Unit.INSTANCE; } } public static /* synthetic */ void h1(y yVar, NoteItemBean noteItemBean, String str, boolean z14, int i10, Object obj) { if ((i10 & 2) != 0) { str = ""; } if ((i10 & 4) != 0) { z14 = false; } yVar.f1(noteItemBean, str, z14); } public static final void p1(y yVar, int i10, NoteItemBean noteItemBean, x xVar) { Intrinsics.checkNotNullParameter(yVar, "this$0"); Intrinsics.checkNotNullParameter(noteItemBean, "$noteItemBean"); yVar.z1(i10, noteItemBean); } public static final void q1(Throwable th3) { } public final String Z0() { String str = this.f122534d; if (str != null) { return str; } Intrinsics.throwUninitializedPropertyAccessException("collectionId"); return null; } public final rk1.h a1() { rk1.h hVar = this.f122533c; if (hVar != null) { return hVar; } Intrinsics.throwUninitializedPropertyAccessException("collectionNoteTitleBinderV2"); return null; } public final dx2.d<p.a> b1() { dx2.d<p.a> dVar = this.f122537g; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("eventSubject"); return null; } public final String c1() { String str = this.f122535e; if (str != null) { return str; } Intrinsics.throwUninitializedPropertyAccessException("from"); return null; } public final dx2.d<Triple<p.a, View, Boolean>> d1() { dx2.d<Triple<p.a, View, Boolean>> dVar = this.f122538h; if (dVar != null) { return dVar; } Intrinsics.throwUninitializedPropertyAccessException("noteItemClick"); return null; } public final nk1.f e1() { nk1.f fVar = this.f122532b; if (fVar != null) { return fVar; } Intrinsics.throwUninitializedPropertyAccessException("repository"); return null; } public final void f1(NoteItemBean noteItemBean, String str, boolean z14) { if (Intrinsics.areEqual(noteItemBean.getType(), "video")) { u32.i iVar = this.f122540j; if (iVar != null) { iVar.stop(); } String id3 = noteItemBean.getId(); Intrinsics.checkNotNullExpressionValue(id3, "noteItemBean.id"); long currentTimeMillis = System.currentTimeMillis(); String str2 = noteItemBean.trackId; if (str2 == null) { str2 = ""; } NoteFeedIntentData convertToNoteFeedIntentData = l0.convertToNoteFeedIntentData(noteItemBean); VideoInfo videoInfo = noteItemBean.getVideoInfo(); VideoFeedV2Page videoFeedV2Page = new VideoFeedV2Page(id3, "collection", null, null, currentTimeMillis, str2, convertToNoteFeedIntentData, videoInfo != null ? videoInfo.getWhRatio() : -1.0f, 0, 0, null, null, null, Z0(), null, null, null, false, null, null, 1040140, null); if (str.length() == 0) { Routers.build(videoFeedV2Page.getUrl()).with(PageExtensionsKt.toBundle(videoFeedV2Page)).withParcelable("note", noteItemBean).open(getActivity()); } else { Routers.build(videoFeedV2Page.getUrl()).with(PageExtensionsKt.toBundle(videoFeedV2Page)).withString("api_extra", new Gson().toJson(new CollectionApiExtra(str))).withInt("collectionAll", z14 ? 1 : 0).withParcelable("note", noteItemBean).open(getActivity()); } } else { String id4 = noteItemBean.getId(); Intrinsics.checkNotNullExpressionValue(id4, "id"); Routers.build(Pages.PAGE_NEW_NOTE_DETAIL).with(PageExtensionsKt.toBundle(new NoteDetailV2Page(id4, "collection", null, "合集", null, null, null, null, null, null, null, noteItemBean, false, false, 10228, null))).withString("key_raw_url", "xhs://portrait_feed").withParcelable("note_bean", noteItemBean).open(getActivity()); } getActivity().overridePendingTransition(R$anim.matrix_activity_open_enter, R$anim.matrix_activity_open_exit); } public final XhsActivity getActivity() { XhsActivity xhsActivity = this.f122531a; if (xhsActivity != null) { return xhsActivity; } Intrinsics.throwUninitializedPropertyAccessException("activity"); return null; } public final void i1() { RouterBuilder withString = Routers.build(Pages.PAGE_MANAGE_COLLECTION).withString("collection_id", Z0()); CollectionInfo l14 = e1().l(); withString.withString("collection_name", l14 != null ? l14.getName() : null).open(getActivity()); } public final void j1() { bj2.h.d(a1().j(), this, new b(this)); bj2.h.d(a1().m(), this, new c(this)); bj2.h.d(a1().l(), this, new d(this)); bj2.h.d(a1().k(), this, new e(this)); } public final void k1() { Object n14 = getActivity().lifecycle().n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))"); bj2.h.b((com.uber.autodispose.y) n14, new f(this)); } public final void l1() { m1(); a0 a0Var = (a0) getLinker(); if (a0Var != null) { a0Var.b(); } } public final void m1() { j1(); bj2.h.d(d1(), this, new g(this)); bj2.h.d(b1(), this, new h(this)); } public final void n1() { if (this.f122540j == null) { this.f122540j = i.a.b(u32.i.f135893a, ((c0) getPresenter()).getRecyclerView(), new i(this), 0, 0, 12, null); } u32.i iVar = this.f122540j; if (iVar != null) { iVar.c(); } } public final void o1(int i10, NoteItemBean noteItemBean) { String id3 = noteItemBean.getId(); Intrinsics.checkNotNullExpressionValue(id3, "noteItemBean.id"); Object n14 = (noteItemBean.inlikes ^ true ? zc1.a.f161423a.f(id3) : zc1.a.f161423a.d(id3)).n(com.uber.autodispose.d.b(this)); Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))"); ((com.uber.autodispose.y) n14).a(new w(this, i10, noteItemBean), x.f122529a); } @Override // tu0.b public void onAttach(Bundle bundle) { super.onAttach(bundle); m0 m0Var = m0.f132115a; m0Var.y(getActivity()); m0Var.I(getActivity()); boolean D = b02.c.f5924t.D(); boolean z14 = false; if (!D) { ((c0) getPresenter()).w(false); } else { ((c0) getPresenter()).w(true); l1(); k1(); if (c1().length() > 0) { z14 = true; } if (z14) { i1(); } ((c0) getPresenter()).e(); bj2.h.d(((c0) getPresenter()).q(), this, new j(this)); bj2.h.d(((c0) getPresenter()).r(), this, new k(this)); bj2.h.d(((c0) getPresenter()).j(), this, new l(this)); } ((c0) getPresenter()).k(D); bj2.h.d(((c0) getPresenter()).t(), this, new m(this)); bj2.h.d(((c0) getPresenter()).s(), this, new n(this)); bj2.h.d(((c0) getPresenter()).d(), this, new o(this)); bj2.h.d(getActivity().onActivityResults(), this, new p(this)); n1(); } @Override // tu0.b public void onDetach() { super.onDetach(); ((c0) getPresenter()).x(); ej2.a aVar = ej2.a.f72257b; aVar.a(new au0.c(false, 0, 0, 0, null, 31, null)); CollectionInfo l14 = e1().l(); if (l14 != null) { aVar.a(new au0.d(l14.getId(), l14.getCollected())); } u32.i iVar = this.f122540j; if (iVar != null) { iVar.a(); } } public final void r1(int i10, int i14, Intent intent) { if (i14 == -1 && i10 == 8546) { getActivity().finish(); } } public void t1(int i10, NoteItemBean noteItemBean) { Intrinsics.checkNotNullParameter(noteItemBean, "noteItemBean"); x1(i10, noteItemBean); } public void u1(int i10, NoteItemBean noteItemBean) { Intrinsics.checkNotNullParameter(noteItemBean, "noteItemBean"); } public void v1(int i10, NoteItemBean noteItemBean, View view, boolean z14) { String str; CollectionUserInfo user; String id3; String name; Intrinsics.checkNotNullParameter(noteItemBean, "noteItemBean"); Intrinsics.checkNotNullParameter(view, "transitionView"); h.a aVar = nk1.h.f110463a; String id4 = noteItemBean.getId(); Intrinsics.checkNotNullExpressionValue(id4, "noteItemBean.id"); String Z0 = Z0(); CollectionInfo l14 = e1().l(); String str2 = (l14 == null || (name = l14.getName()) == null) ? "" : name; CollectionInfo l15 = e1().l(); if (l15 == null || (user = l15.getUser()) == null || (id3 = user.getId()) == null) { str = ""; } else { str = id3; } aVar.b(i10, id4, Z0, str2, str); w1(noteItemBean); } public final void w1(NoteItemBean noteItemBean) { CollectionInfo l14 = e1().l(); if (l14 != null) { h1(this, noteItemBean, l14.getOrderType(), false, 4, null); } } public final void x1(int i10, NoteItemBean noteItemBean) { o1(i10, noteItemBean); } public void y1(int i10, NoteItemBean noteItemBean) { Intrinsics.checkNotNullParameter(noteItemBean, "noteItemBean"); x1(i10, noteItemBean); } public final void z1(int i10, NoteItemBean noteItemBean) { ArrayList arrayList = new ArrayList(); Iterator<Object> it3 = e1().q().iterator(); while (it3.hasNext()) { Object next = it3.next(); if (next instanceof NoteItemBean) { arrayList.add(((NoteItemBean) next).clone()); } else if (next instanceof CollectionInfo) { arrayList.add(CollectionInfo.copy$default((CollectionInfo) next, null, null, null, 0, 0, null, null, false, null, 511, null)); } } Iterator it4 = arrayList.iterator(); while (it4.hasNext()) { Object next2 = it4.next(); if (next2 instanceof NoteItemBean) { NoteItemBean noteItemBean2 = (NoteItemBean) next2; if (Intrinsics.areEqual(noteItemBean2.getId(), noteItemBean.getId())) { boolean z14 = !noteItemBean2.inlikes; noteItemBean2.inlikes = z14; noteItemBean2.setLikes(z14 ? noteItemBean2.getLikes() + 1 : noteItemBean2.getLikes() - 1); } } } ((c0) getPresenter()).y(nk1.f.s(e1(), arrayList, false, 2, null)); } }