小红书.apk(点击下载) / w.java


package yj1;

import android.annotation.SuppressLint;
import android.content.DialogInterface;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.View;
import androidx.lifecycle.Lifecycle;
import androidx.recyclerview.widget.DiffUtil;
import androidx.recyclerview.widget.StaggeredGridLayoutManager;
import com.alibaba.wireless.security.open.nocaptcha.INoCaptchaComponent;
import com.drakeet.multitype.MultiTypeAdapter;
import com.meizu.cloud.pushsdk.notification.model.AdvanceSetting;
import com.xingin.alioth.entities.bean.FilterTagGroup;
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.NoteItemBean;
import com.xingin.entities.l0;
import com.xingin.matrix.R$anim;
import com.xingin.matrix.R$string;
import com.xingin.pages.NoteDetailV2Page;
import com.xingin.pages.PageExtensionsKt;
import com.xingin.pages.Pages;
import com.xingin.pages.VideoFeedV2Page;
import com.xingin.widgets.dialog.XYAlertDialog;
import ii1.k;
import java.util.ArrayList;
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.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.FunctionReferenceImpl;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import tl1.p;
import u32.i;

@Metadata(bv = {}, d1 = {"\u0000†\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\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\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0007\u0018\u00002\u0014\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0000\u0012\u0004\u0012\u00020\u00030\u00012\u00020\u0004:\u0001ZB\u0007¢\u0006\u0004\bX\u0010YJ\b\u0010\u0006\u001a\u00020\u0005H\u0002J\b\u0010\u0007\u001a\u00020\u0005H\u0002J\b\u0010\b\u001a\u00020\u0005H\u0002J\b\u0010\t\u001a\u00020\u0005H\u0002J\b\u0010\n\u001a\u00020\u0005H\u0002J\b\u0010\u000b\u001a\u00020\u0005H\u0002J\b\u0010\f\u001a\u00020\u0005H\u0002J\b\u0010\r\u001a\u00020\u0005H\u0002J\b\u0010\u000e\u001a\u00020\u0005H\u0002J\u0010\u0010\u0011\u001a\u00020\u00052\u0006\u0010\u0010\u001a\u00020\u000fH\u0002J\u0018\u0010\u0014\u001a\u00020\u00052\u0006\u0010\u0013\u001a\u00020\u00122\u0006\u0010\u0010\u001a\u00020\u000fH\u0002J\u0018\u0010\u0015\u001a\u00020\u00052\u0006\u0010\u0013\u001a\u00020\u00122\u0006\u0010\u0010\u001a\u00020\u000fH\u0002J\b\u0010\u0016\u001a\u00020\u0005H\u0003J\b\u0010\u0017\u001a\u00020\u0005H\u0002J\b\u0010\u0018\u001a\u00020\u0005H\u0002J\b\u0010\u0019\u001a\u00020\u0005H\u0002J\u0012\u0010\u001b\u001a\u00020\u00052\b\b\u0002\u0010\u001a\u001a\u00020\u0012H\u0002J\u0018\u0010\u001d\u001a\u00020\u00052\u0006\u0010\u001c\u001a\u00020\u00122\u0006\u0010\u0010\u001a\u00020\u000fH\u0002J\b\u0010\u001e\u001a\u00020\u0005H\u0002J\"\u0010#\u001a\u00020\u00052\u0018\u0010\"\u001a\u0014\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00040 \u0012\u0004\u0012\u00020!0\u001fH\u0002J\u0012\u0010&\u001a\u00020\u00052\b\u0010%\u001a\u0004\u0018\u00010$H\u0014J(\u0010+\u001a\u00020\u00052\u0006\u0010\u001c\u001a\u00020\u00122\u0006\u0010\u0010\u001a\u00020\u000f2\u0006\u0010(\u001a\u00020'2\u0006\u0010*\u001a\u00020)H\u0016J\u0018\u0010,\u001a\u00020\u00052\u0006\u0010\u0013\u001a\u00020\u00122\u0006\u0010\u0010\u001a\u00020\u000fH\u0016J\u0018\u0010-\u001a\u00020\u00052\u0006\u0010\u0013\u001a\u00020\u00122\u0006\u0010\u0010\u001a\u00020\u000fH\u0016J\u0018\u0010.\u001a\u00020\u00052\u0006\u0010\u0013\u001a\u00020\u00122\u0006\u0010\u0010\u001a\u00020\u000fH\u0016J\b\u0010/\u001a\u00020\u0005H\u0014R\"\u00101\u001a\u0002008\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b1\u00102\u001a\u0004\b3\u00104\"\u0004\b5\u00106R\"\u00108\u001a\u0002078\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b8\u00109\u001a\u0004\b:\u0010;\"\u0004\b<\u0010=R\"\u0010?\u001a\u00020>8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b?\u0010@\u001a\u0004\bA\u0010B\"\u0004\bC\u0010DR\"\u0010F\u001a\u00020E8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bF\u0010G\u001a\u0004\bH\u0010I\"\u0004\bJ\u0010KR(\u0010N\u001a\b\u0012\u0004\u0012\u00020M0L8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bN\u0010O\u001a\u0004\bP\u0010Q\"\u0004\bR\u0010SR:\u0010U\u001a\u001a\u0012\u0016\u0012\u0014\u0012\u0004\u0012\u00020M\u0012\u0004\u0012\u00020'\u0012\u0004\u0012\u00020)0T0L8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bU\u0010O\u001a\u0004\bV\u0010Q\"\u0004\bW\u0010S¨\u0006["}, d2 = {"Lyj1/w;", "Ltu0/b;", "Lyj1/a0;", "Lyj1/y;", "", "", "H1", "q1", com.alipay.sdk.widget.c.f18364b, "w1", "t1", "D1", "loadMore", "r1", "u1", "Lcom/xingin/entities/NoteItemBean;", "noteItemBean", "p1", "", "position", INoCaptchaComponent.f17800x1, "C1", "f1", "F1", "K1", "I1", "startPosition", "L1", "pos", "G1", "E1", "Lkotlin/Pair;", "", "Landroidx/recyclerview/widget/DiffUtil$DiffResult;", AdvanceSetting.NETWORK_TYPE, "j1", "Landroid/os/Bundle;", "savedInstanceState", "onAttach", "Landroid/view/View;", "transitionView", "", "isViaUserGuideClick", "A1", "B1", INoCaptchaComponent.f17802y1, "z1", "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", "Lcom/drakeet/multitype/MultiTypeAdapter;", "multiTypeAdapter", "Lcom/drakeet/multitype/MultiTypeAdapter;", "l1", "()Lcom/drakeet/multitype/MultiTypeAdapter;", "setMultiTypeAdapter", "(Lcom/drakeet/multitype/MultiTypeAdapter;)V", "Lyj1/d1;", "repository", "Lyj1/d1;", "n1", "()Lyj1/d1;", "setRepository", "(Lyj1/d1;)V", "Lbk1/a;", "trackHelper", "Lbk1/a;", "o1", "()Lbk1/a;", "setTrackHelper", "(Lbk1/a;)V", "Ldx2/d;", "Ltl1/p$a;", "eventSubject", "Ldx2/d;", "k1", "()Ldx2/d;", "setEventSubject", "(Ldx2/d;)V", "Lkotlin/Triple;", "noteItemClick", "m1", "setNoteItemClick", "<init>", "()V", "a", "matrix_library_release"}, k = 1, mv = {1, 6, 0})
/* compiled from: BrowsingHistoryPageController.kt */
public final class w extends tu0.b<a0, w, y> {

    /* renamed from: k  reason: collision with root package name */
    public static final a f158104k = new a(null);

    /* renamed from: a  reason: collision with root package name */
    public XhsActivity f158105a;

    /* renamed from: b  reason: collision with root package name */
    public MultiTypeAdapter f158106b;

    /* renamed from: c  reason: collision with root package name */
    public d1 f158107c;

    /* renamed from: d  reason: collision with root package name */
    public bk1.a f158108d;

    /* renamed from: e  reason: collision with root package name */
    public dx2.d<p.a> f158109e;

    /* renamed from: f  reason: collision with root package name */
    public dx2.d<Triple<p.a, View, Boolean>> f158110f;

    /* renamed from: g  reason: collision with root package name */
    public u32.i f158111g;

    /* renamed from: h  reason: collision with root package name */
    public boolean f158112h;

    /* renamed from: i  reason: collision with root package name */
    public boolean f158113i;

    /* renamed from: j  reason: collision with root package name */
    public boolean f158114j;

    @Metadata(bv = {}, d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\b\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\u0006X†T¢\u0006\u0006\n\u0004\b\u0003\u0010\u0004¨\u0006\u0007"}, d2 = {"Lyj1/w$a;", "", "", "LOAD_MORE_REFRESH_NUM", "I", "<init>", "()V", "matrix_library_release"}, k = 1, mv = {1, 6, 0})
    /* compiled from: BrowsingHistoryPageController.kt */
    public static final class a {
        public a() {
        }

        public /* synthetic */ a(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }
    }

    @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: BrowsingHistoryPageController.kt */
    public /* synthetic */ class a0 extends FunctionReferenceImpl implements Function1<Throwable, Unit> {
        public a0(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\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: BrowsingHistoryPageController.kt */
    public static final class b extends Lambda implements Function1<Integer, Unit> {

        /* renamed from: a  reason: collision with root package name */
        public static final b f158115a = new b();

        public b() {
            super(1);
        }

        /* 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(Integer num) {
            invoke(num.intValue());
            return Unit.INSTANCE;
        }

        public final void invoke(int i10) {
        }
    }

    @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: BrowsingHistoryPageController.kt */
    public static final class b0 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 */ w f158116a;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public b0(w wVar) {
            super(1);
            this.f158116a = wVar;
        }

        /* 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) {
            w.N1(this.f158116a, 0, 1, null);
            this.f158116a.E1();
            w wVar = this.f158116a;
            Intrinsics.checkNotNullExpressionValue(pair, AdvanceSetting.NETWORK_TYPE);
            wVar.j1(pair);
        }
    }

    @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: BrowsingHistoryPageController.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 */ DialogInterface f158117a;

        /* renamed from: b  reason: collision with root package name */
        public final /* synthetic */ w f158118b;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public c(DialogInterface dialogInterface, w wVar) {
            super(1);
            this.f158117a = dialogInterface;
            this.f158118b = wVar;
        }

        /* 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) {
            DialogInterface dialogInterface = this.f158117a;
            if (dialogInterface != null) {
                dialogInterface.dismiss();
            }
            this.f158118b.F1();
            ((a0) this.f158118b.getPresenter()).p(false, false);
            al2.e.f(R$string.cqz);
            w wVar = this.f158118b;
            Intrinsics.checkNotNullExpressionValue(pair, AdvanceSetting.NETWORK_TYPE);
            wVar.j1(pair);
        }
    }

    @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: BrowsingHistoryPageController.kt */
    public /* synthetic */ class c0 extends FunctionReferenceImpl implements Function1<Throwable, Unit> {
        public c0(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: BrowsingHistoryPageController.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);
        }
    }

    @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: BrowsingHistoryPageController.kt */
    public static final class d0 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 */ w f158119a;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public d0(w wVar) {
            super(1);
            this.f158119a = wVar;
        }

        /* 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) {
            ((a0) this.f158119a.getPresenter()).p(this.f158119a.n1().a0(), this.f158119a.f158113i);
            this.f158119a.E1();
            w.N1(this.f158119a, 0, 1, null);
        }
    }

    @Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: BrowsingHistoryPageController.kt */
    public static final class e extends Lambda implements Function1<Integer, Unit> {

        /* renamed from: a  reason: collision with root package name */
        public static final e f158120a = new e();

        public e() {
            super(1);
        }

        /* 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(Integer num) {
            invoke(num.intValue());
            return Unit.INSTANCE;
        }

        public final void invoke(int i10) {
        }
    }

    @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: BrowsingHistoryPageController.kt */
    public /* synthetic */ class e0 extends FunctionReferenceImpl implements Function1<Throwable, Unit> {
        public e0(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>", "", AdvanceSetting.NETWORK_TYPE, "Lkotlin/Pair;", "", "", "Landroidx/recyclerview/widget/DiffUtil$DiffResult;", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: BrowsingHistoryPageController.kt */
    public static final class f 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 */ w f158121a;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public f(w wVar) {
            super(1);
            this.f158121a = wVar;
        }

        /* 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) {
            this.f158121a.E1();
            al2.e.f(R$string.cqz);
            w wVar = this.f158121a;
            Intrinsics.checkNotNullExpressionValue(pair, AdvanceSetting.NETWORK_TYPE);
            wVar.j1(pair);
            if (this.f158121a.n1().T() <= 8) {
                this.f158121a.loadMore();
            }
        }
    }

    @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: BrowsingHistoryPageController.kt */
    public /* synthetic */ class g extends FunctionReferenceImpl implements Function1<Throwable, Unit> {
        public g(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(bv = {}, d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0001\u001a\u00020\u00002\u0006\u0010\u0003\u001a\u00020\u0002H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"Lcom/xingin/entities/NoteItemBean;", "note", "", "pos", "", "a", "(Lcom/xingin/entities/NoteItemBean;I)V"}, k = 3, mv = {1, 6, 0})
    /* compiled from: BrowsingHistoryPageController.kt */
    public static final class h extends Lambda implements Function2<NoteItemBean, Integer, Unit> {

        /* renamed from: a  reason: collision with root package name */
        public static final h f158122a = new h();

        public h() {
            super(2);
        }

        public final void a(NoteItemBean noteItemBean, int i10) {
            Intrinsics.checkNotNullParameter(noteItemBean, "note");
            bk1.b.f7913a.e(i10, noteItemBean);
        }

        /* 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, java.lang.Object] */
        @Override // kotlin.jvm.functions.Function2
        public /* bridge */ /* synthetic */ Unit invoke(NoteItemBean noteItemBean, Integer num) {
            a(noteItemBean, num.intValue());
            return Unit.INSTANCE;
        }
    }

    @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: BrowsingHistoryPageController.kt */
    public static final class i extends Lambda implements Function1<Lifecycle.Event, Unit> {

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ w f158123a;

        @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
        /* compiled from: BrowsingHistoryPageController.kt */
        public /* synthetic */ class a {

            /* renamed from: a  reason: collision with root package name */
            public static final /* synthetic */ int[] f158124a;

            static {
                int[] iArr = new int[Lifecycle.Event.values().length];
                iArr[Lifecycle.Event.ON_RESUME.ordinal()] = 1;
                iArr[Lifecycle.Event.ON_PAUSE.ordinal()] = 2;
                iArr[Lifecycle.Event.ON_DESTROY.ordinal()] = 3;
                f158124a = iArr;
            }
        }

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public i(w wVar) {
            super(1);
            this.f158123a = wVar;
        }

        /* 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");
            int i10 = a.f158124a[event.ordinal()];
            if (i10 == 1) {
                bk1.b.f7913a.h();
            } else if (i10 == 2) {
                bk1.b.f7913a.g();
            } else if (i10 == 3 && this.f158123a.f158114j) {
                this.f158123a.n1().r0();
            }
        }
    }

    @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"<anonymous>", "", "invoke", "()Ljava/lang/Boolean;"}, k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: BrowsingHistoryPageController.kt */
    public static final class j extends Lambda implements Function0<Boolean> {

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ w f158125a;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public j(w wVar) {
            super(0);
            this.f158125a = wVar;
        }

        @Override // kotlin.jvm.functions.Function0
        public final Boolean invoke() {
            return Boolean.valueOf(this.f158125a.n1().C());
        }
    }

    @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: BrowsingHistoryPageController.kt */
    public /* synthetic */ class k extends FunctionReferenceImpl implements Function0<Unit> {
        public k(Object obj) {
            super(0, obj, w.class, "loadMore", "loadMore()V", 0);
        }

        @Override // kotlin.jvm.functions.Function0
        public final void invoke() {
            ((w) this.receiver).loadMore();
        }
    }

    @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: BrowsingHistoryPageController.kt */
    public static final class l 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 */ w f158126a;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public l(w wVar) {
            super(1);
            this.f158126a = wVar;
        }

        /* 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.f158126a.A1(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: BrowsingHistoryPageController.kt */
    public static final class m extends Lambda implements Function1<p.a, Unit> {

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ w f158127a;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public m(w wVar) {
            super(1);
            this.f158127a = wVar;
        }

        public final void a(p.a aVar) {
            String d14 = aVar.d();
            int hashCode = d14.hashCode();
            if (hashCode != -905386509) {
                if (hashCode != 1403537649) {
                    if (hashCode == 2077590540 && d14.equals("likeViewClick")) {
                        this.f158127a.y1(aVar.b().invoke().intValue(), aVar.a());
                    }
                } else if (d14.equals("liveUserClick")) {
                    this.f158127a.z1(aVar.b().invoke().intValue(), aVar.a());
                }
            } else if (d14.equals("unLikeViewClick")) {
                this.f158127a.B1(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(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: BrowsingHistoryPageController.kt */
    public static final class n extends Lambda implements Function1<Unit, Unit> {

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ w f158128a;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public n(w wVar) {
            super(1);
            this.f158128a = wVar;
        }

        /* 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.f158128a.getActivity().finish();
        }
    }

    @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: BrowsingHistoryPageController.kt */
    public static final class o extends Lambda implements Function1<Unit, Unit> {

        /* renamed from: a  reason: collision with root package name */
        public static final o f158129a = new o();

        public o() {
            super(1);
        }

        /* 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);
            bk1.b.f7913a.a();
        }
    }

    @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: BrowsingHistoryPageController.kt */
    public static final class p extends Lambda implements Function1<Unit, Unit> {

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ w f158130a;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public p(w wVar) {
            super(1);
            this.f158130a = wVar;
        }

        /* 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.f158130a.K1();
        }
    }

    @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: BrowsingHistoryPageController.kt */
    public static final class q extends Lambda implements Function1<Unit, Unit> {

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ w f158131a;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public q(w wVar) {
            super(1);
            this.f158131a = wVar;
        }

        /* 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.f158131a.K1();
        }
    }

    @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: BrowsingHistoryPageController.kt */
    public static final class r extends Lambda implements Function1<Unit, Unit> {

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ w f158132a;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public r(w wVar) {
            super(1);
            this.f158132a = wVar;
        }

        /* 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.f158132a.I1();
        }
    }

    @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: BrowsingHistoryPageController.kt */
    public static final class s extends Lambda implements Function1<Unit, Unit> {

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ w f158133a;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public s(w wVar) {
            super(1);
            this.f158133a = wVar;
        }

        /* 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.f158133a.f1();
        }
    }

    @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: BrowsingHistoryPageController.kt */
    public static final class t extends Lambda implements Function1<Integer, u32.p> {

        /* renamed from: a  reason: collision with root package name */
        public final /* synthetic */ w f158134a;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public t(w wVar) {
            super(1);
            this.f158134a = wVar;
        }

        public final u32.p a(int i10) {
            Object obj = CollectionsKt___CollectionsKt.getOrNull(this.f158134a.l1().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\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: BrowsingHistoryPageController.kt */
    public static final class u 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 */ w f158135a;

        /* renamed from: b  reason: collision with root package name */
        public final /* synthetic */ int f158136b;

        /* renamed from: c  reason: collision with root package name */
        public final /* synthetic */ NoteItemBean f158137c;

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ boolean f158138d;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public u(w wVar, int i10, NoteItemBean noteItemBean, boolean z14) {
            super(1);
            this.f158135a = wVar;
            this.f158136b = i10;
            this.f158137c = noteItemBean;
            this.f158138d = z14;
        }

        /* 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) {
            w wVar = this.f158135a;
            Intrinsics.checkNotNullExpressionValue(pair, AdvanceSetting.NETWORK_TYPE);
            wVar.j1(pair);
            bk1.b.f7913a.f(this.f158136b, this.f158137c, this.f158138d, true);
        }
    }

    @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: BrowsingHistoryPageController.kt */
    public static final class v 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 */ w f158139a;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public v(w wVar) {
            super(1);
            this.f158139a = wVar;
        }

        /* 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) {
            w wVar = this.f158139a;
            Intrinsics.checkNotNullExpressionValue(pair, "pair");
            wVar.j1(pair);
            if (this.f158139a.f158113i) {
                w wVar2 = this.f158139a;
                wVar2.L1(wVar2.n1().T());
            }
            u32.i iVar = this.f158139a.f158111g;
            if (iVar != null) {
                iVar.d();
            }
        }
    }

    @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
    /* renamed from: yj1.w$w  reason: collision with other inner class name */
    /* compiled from: BrowsingHistoryPageController.kt */
    public /* synthetic */ class C2572w extends FunctionReferenceImpl implements Function1<Throwable, Unit> {
        public C2572w(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: BrowsingHistoryPageController.kt */
    public static final class x 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 */ w f158140a;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public x(w wVar) {
            super(1);
            this.f158140a = wVar;
        }

        /* 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) {
            w wVar = this.f158140a;
            Intrinsics.checkNotNullExpressionValue(pair, "pair");
            wVar.j1(pair);
            u32.i iVar = this.f158140a.f158111g;
            if (iVar != null) {
                iVar.d();
            }
        }
    }

    @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: BrowsingHistoryPageController.kt */
    public /* synthetic */ class y extends FunctionReferenceImpl implements Function1<Throwable, Unit> {
        public y(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>", "", AdvanceSetting.NETWORK_TYPE, "Lkotlin/Pair;", "", "", "Landroidx/recyclerview/widget/DiffUtil$DiffResult;", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: BrowsingHistoryPageController.kt */
    public static final class z 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 */ w f158141a;

        /* renamed from: b  reason: collision with root package name */
        public final /* synthetic */ int f158142b;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public z(w wVar, int i10) {
            super(1);
            this.f158141a = wVar;
            this.f158142b = i10;
        }

        /* 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) {
            w wVar = this.f158141a;
            wVar.f158112h = wVar.n1().B();
            this.f158141a.l1().notifyItemChanged(this.f158142b, ii1.a.SELECT_BROWSING_HISTORY);
            this.f158141a.E1();
        }
    }

    public static /* synthetic */ void N1(w wVar, int i10, int i14, Object obj) {
        if ((i14 & 1) != 0) {
            i10 = 0;
        }
        wVar.L1(i10);
    }

    public static final void h1(w wVar, DialogInterface dialogInterface, int i10) {
        Intrinsics.checkNotNullParameter(wVar, "this$0");
        bj2.h.d(k.a.m(ii1.k.f91169c, null, 1, null), wVar, b.f158115a);
        dw2.r<Pair<List<Object>, DiffUtil.DiffResult>> W0 = wVar.n1().F().W0(gw2.a.a());
        Intrinsics.checkNotNullExpressionValue(W0, "repository.deleteSelecte…dSchedulers.mainThread())");
        bj2.h.f(W0, wVar, new c(dialogInterface, wVar), new d(z41.l.f160483a));
    }

    public static final void i1(DialogInterface dialogInterface, int i10) {
        if (dialogInterface != null) {
            dialogInterface.dismiss();
        }
    }

    public void A1(int i10, NoteItemBean noteItemBean, View view, boolean z14) {
        Intrinsics.checkNotNullParameter(noteItemBean, "noteItemBean");
        Intrinsics.checkNotNullParameter(view, "transitionView");
        bk1.b.f7913a.d(i10, noteItemBean);
        if (this.f158113i) {
            G1(i10, noteItemBean);
        } else {
            p1(noteItemBean);
        }
    }

    public void B1(int i10, NoteItemBean noteItemBean) {
        Intrinsics.checkNotNullParameter(noteItemBean, "noteItemBean");
        x1(i10, noteItemBean);
    }

    public final void C1(int i10, NoteItemBean noteItemBean) {
        if (this.f158113i) {
            G1(i10, noteItemBean);
            return;
        }
        String str = noteItemBean.modelType;
        if (Intrinsics.areEqual(str, "live")) {
            Routers.build(noteItemBean.link).open(getActivity());
            if (noteItemBean.isAd) {
                id1.i.f90218a.r(noteItemBean, i10);
            } else {
                id1.i.f90218a.u(noteItemBean, i10);
            }
        } else if (Intrinsics.areEqual(str, "live_v2")) {
            Routers.build(noteItemBean.live.getLink()).open(getActivity());
            if (noteItemBean.isAd) {
                id1.i.f90218a.r(noteItemBean, i10);
            } else {
                id1.i.f90218a.u(noteItemBean, i10);
            }
        } else {
            Routers.build(noteItemBean.getUser().getLive().getLiveLink()).open(getActivity());
            id1.i.f90218a.s(noteItemBean, false);
        }
    }

    public final void D1() {
        dw2.r<Pair<List<Object>, DiffUtil.DiffResult>> W0 = n1().k0().W0(gw2.a.a());
        Intrinsics.checkNotNullExpressionValue(W0, "repository.refreshHistor…dSchedulers.mainThread())");
        bj2.h.f(W0, this, new x(this), new y(z41.l.f160483a));
    }

    public final void E1() {
        ((a0) getPresenter()).q(n1().X(), this.f158112h);
    }

    public final void F1() {
        this.f158112h = false;
        this.f158113i = false;
    }

    public final void G1(int i10, NoteItemBean noteItemBean) {
        dw2.r<Pair<List<Object>, DiffUtil.DiffResult>> rVar;
        if (noteItemBean.browsingHistoryState == 1) {
            rVar = n1().t0(i10, true);
        } else {
            rVar = n1().t0(i10, false);
        }
        dw2.r<Pair<List<Object>, DiffUtil.DiffResult>> W0 = rVar.W0(gw2.a.a());
        Intrinsics.checkNotNullExpressionValue(W0, "if (noteItemBean.browsin…dSchedulers.mainThread())");
        bj2.h.f(W0, this, new z(this, i10), new a0(z41.l.f160483a));
    }

    public final void H1() {
        if (!vt2.f.g().f("hasShowBrowsingHistoryToast", false)) {
            vt2.f.g().q("hasShowBrowsingHistoryToast", true);
            al2.e.f(R$string.cr6);
        }
    }

    public final void I1() {
        this.f158112h = !this.f158112h;
        dw2.r<Pair<List<Object>, DiffUtil.DiffResult>> W0 = n1().y0(this.f158112h).W0(gw2.a.a());
        Intrinsics.checkNotNullExpressionValue(W0, "repository.updateCheckUp…dSchedulers.mainThread())");
        bj2.h.f(W0, this, new b0(this), new c0(z41.l.f160483a));
    }

    public final void K1() {
        this.f158114j = true;
        this.f158112h = false;
        this.f158113i = true ^ this.f158113i;
        dw2.r<Pair<List<Object>, DiffUtil.DiffResult>> W0 = n1().E0(this.f158113i).W0(gw2.a.a());
        Intrinsics.checkNotNullExpressionValue(W0, "repository.updateManageS…dSchedulers.mainThread())");
        bj2.h.f(W0, this, new d0(this), new e0(z41.l.f160483a));
    }

    public final void L1(int i10) {
        int size = n1().O().size();
        while (i10 < size) {
            l1().notifyItemChanged(i10, ii1.a.SELECT_BROWSING_HISTORY);
            i10++;
        }
    }

    @SuppressLint({"XHSToastChinese"})
    public final void f1() {
        if (n1().B()) {
            XYAlertDialog.a aVar = new XYAlertDialog.a(getActivity(), 0, 2, null);
            String string = getActivity().getString(R$string.cqy);
            Intrinsics.checkNotNullExpressionValue(string, "activity.getString(R.str…tory_delete_confirm_info)");
            XYAlertDialog.a n14 = aVar.n(string);
            String string2 = getActivity().getString(R$string.matrix_btn_confirm);
            Intrinsics.checkNotNullExpressionValue(string2, "activity.getString(R.string.matrix_btn_confirm)");
            XYAlertDialog.a j14 = XYAlertDialog.a.j(n14, string2, new u(this), false, 4, null);
            String string3 = getActivity().getString(R$string.matrix_btn_cancel);
            Intrinsics.checkNotNullExpressionValue(string3, "activity.getString(R.string.matrix_btn_cancel)");
            j14.m(string3, v.f158102a).o();
            return;
        }
        bj2.h.d(k.a.j(ii1.k.f91169c, null, new ArrayList(n1().W()), 1, null), this, e.f158120a);
        dw2.r<Pair<List<Object>, DiffUtil.DiffResult>> W0 = n1().F().W0(gw2.a.a());
        Intrinsics.checkNotNullExpressionValue(W0, "repository.deleteSelecte…dSchedulers.mainThread())");
        bj2.h.f(W0, this, new f(this), new g(z41.l.f160483a));
    }

    public final XhsActivity getActivity() {
        XhsActivity xhsActivity = this.f158105a;
        if (xhsActivity != null) {
            return xhsActivity;
        }
        Intrinsics.throwUninitializedPropertyAccessException("activity");
        return null;
    }

    public final void j1(Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult> pair) {
        StaggeredGridLayoutManager i10;
        StaggeredGridLayoutManager i14 = ((a0) getPresenter()).i();
        Parcelable onSaveInstanceState = i14 != null ? i14.onSaveInstanceState() : null;
        l1().o((List) pair.getFirst());
        ((DiffUtil.DiffResult) pair.getSecond()).dispatchUpdatesTo(l1());
        if (onSaveInstanceState != null && (i10 = ((a0) getPresenter()).i()) != null) {
            i10.onRestoreInstanceState(onSaveInstanceState);
        }
    }

    public final dx2.d<p.a> k1() {
        dx2.d<p.a> dVar = this.f158109e;
        if (dVar != null) {
            return dVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("eventSubject");
        return null;
    }

    public final MultiTypeAdapter l1() {
        MultiTypeAdapter multiTypeAdapter = this.f158106b;
        if (multiTypeAdapter != null) {
            return multiTypeAdapter;
        }
        Intrinsics.throwUninitializedPropertyAccessException("multiTypeAdapter");
        return null;
    }

    public final void loadMore() {
        dw2.r<Pair<List<Object>, DiffUtil.DiffResult>> W0 = n1().b0().W0(gw2.a.a());
        Intrinsics.checkNotNullExpressionValue(W0, "repository.loadMoreHisto…dSchedulers.mainThread())");
        bj2.h.f(W0, this, new v(this), new C2572w(z41.l.f160483a));
    }

    public final dx2.d<Triple<p.a, View, Boolean>> m1() {
        dx2.d<Triple<p.a, View, Boolean>> dVar = this.f158110f;
        if (dVar != null) {
            return dVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("noteItemClick");
        return null;
    }

    public final d1 n1() {
        d1 d1Var = this.f158107c;
        if (d1Var != null) {
            return d1Var;
        }
        Intrinsics.throwUninitializedPropertyAccessException("repository");
        return null;
    }

    public final bk1.a o1() {
        bk1.a aVar = this.f158108d;
        if (aVar != null) {
            return aVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("trackHelper");
        return null;
    }

    @Override // tu0.b
    public void onAttach(Bundle bundle) {
        super.onAttach(bundle);
        D1();
        u1();
        r1();
        q1();
        t1();
        v1();
        w1();
        H1();
    }

    @Override // tu0.b
    public void onDetach() {
        o1().b();
        u32.i iVar = this.f158111g;
        if (iVar != null) {
            iVar.a();
        }
        super.onDetach();
    }

    public final void p1(NoteItemBean noteItemBean) {
        if (Intrinsics.areEqual(noteItemBean.getType(), "video")) {
            gy1.b.f84556a.c(noteItemBean);
            u32.i iVar = this.f158111g;
            if (iVar != null) {
                iVar.stop();
            }
            String id3 = noteItemBean.getId();
            Intrinsics.checkNotNullExpressionValue(id3, "noteItemBean.id");
            VideoFeedV2Page videoFeedV2Page = new VideoFeedV2Page(id3, "browsing_history", null, null, System.currentTimeMillis(), null, l0.convertToNoteFeedIntentData(noteItemBean), 0.0f, 0, 0, FilterTagGroup.SINGLE, null, null, null, null, null, null, false, null, null, 1047468, null);
            Routers.build(videoFeedV2Page.getUrl()).with(PageExtensionsKt.toBundle(videoFeedV2Page)).withParcelable("note", noteItemBean).open(getActivity());
        } else {
            RouterBuilder build = Routers.build(Pages.PAGE_NEW_NOTE_DETAIL);
            String id4 = noteItemBean.getId();
            Intrinsics.checkNotNullExpressionValue(id4, "noteItemBean.id");
            build.with(PageExtensionsKt.toBundle(new NoteDetailV2Page(id4, "browsing_history", null, null, null, null, null, null, null, null, null, noteItemBean, false, false, 14332, 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 void q1() {
        o1().a(((a0) getPresenter()).getRecyclerView(), h.f158122a);
    }

    public final void r1() {
        bj2.h.d(getActivity().lifecycle(), this, new i(this));
    }

    public final void t1() {
        bj2.h.e(((a0) getPresenter()).loadMore(new j(this)), this, new k(this));
    }

    public final void u1() {
        bj2.h.d(m1(), this, new l(this));
        bj2.h.d(k1(), this, new m(this));
    }

    public final void v1() {
        bj2.h.d(((a0) getPresenter()).d(), this, new n(this));
        bj2.h.d(((a0) getPresenter()).n(), this, o.f158129a);
        bj2.h.d(((a0) getPresenter()).m(), this, new p(this));
        bj2.h.d(((a0) getPresenter()).f(), this, new q(this));
        bj2.h.d(((a0) getPresenter()).g(), this, new r(this));
        bj2.h.d(((a0) getPresenter()).e(), this, new s(this));
    }

    public final void w1() {
        if (this.f158111g == null) {
            this.f158111g = i.a.b(u32.i.f135893a, ((a0) getPresenter()).getRecyclerView(), new t(this), 0, 0, 12, null);
        }
        u32.i iVar = this.f158111g;
        if (iVar != null) {
            iVar.c();
        }
    }

    public final void x1(int i10, NoteItemBean noteItemBean) {
        if (this.f158113i) {
            G1(i10, noteItemBean);
            return;
        }
        String id3 = noteItemBean.getId();
        Intrinsics.checkNotNullExpressionValue(id3, "noteItemBean.id");
        boolean z14 = !noteItemBean.inlikes;
        bk1.b.f7913a.f(i10, noteItemBean, z14, false);
        dw2.r<Pair<List<Object>, DiffUtil.DiffResult>> W0 = n1().B0(i10, id3, z14).W0(gw2.a.a());
        Intrinsics.checkNotNullExpressionValue(W0, "repository.updateLikeSta…dSchedulers.mainThread())");
        bj2.h.d(W0, this, new u(this, i10, noteItemBean, z14));
    }

    public void y1(int i10, NoteItemBean noteItemBean) {
        Intrinsics.checkNotNullParameter(noteItemBean, "noteItemBean");
        x1(i10, noteItemBean);
    }

    public void z1(int i10, NoteItemBean noteItemBean) {
        Intrinsics.checkNotNullParameter(noteItemBean, "noteItemBean");
        C1(i10, noteItemBean);
    }
}