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


package rp1;

import android.content.DialogInterface;
import android.os.Bundle;
import android.view.View;
import androidx.recyclerview.widget.DiffUtil;
import com.alibaba.wireless.security.open.nocaptcha.INoCaptchaComponent;
import com.drakeet.multitype.MultiTypeAdapter;
import com.meizu.cloud.pushsdk.notification.model.AdvanceSetting;
import com.xingin.android.redutils.base.XhsActivity;
import com.xingin.android.xhscomm.router.Routers;
import com.xingin.entities.BaseUserBean;
import com.xingin.matrix.follow.doublerow.entities.FollowFeedRecommendUserV2;
import com.xingin.matrix.profile.R$string;
import com.xingin.matrix.v2.profile.common.widgets.StickHeaderDecoration;
import com.xingin.matrix.v2.profile.recommendv2.itembinder.RecommendUserV2ItemBinder;
import com.xingin.pages.Pages;
import h52.u;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import ki1.b;
import kotlin.Lazy;
import kotlin.LazyKt__LazyJVMKt;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.Triple;
import kotlin.TuplesKt;
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.FunctionReferenceImpl;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import kotlin.text.StringsKt__StringsJVMKt;
import p00.b;
import rp1.v;

@Metadata(bv = {}, d1 = {"\u0000ˆ\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\r\n\u0002\u0018\u0002\n\u0002\b\f\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\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\t\u0018\u00002\u0014\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u0000\u0012\u0004\u0012\u00020\u00030\u0001B\u0007¢\u0006\u0004\bd\u0010eJ\b\u0010\u0005\u001a\u00020\u0004H\u0002J\b\u0010\u0006\u001a\u00020\u0004H\u0002J(\u0010\u000e\u001a\u00020\u00042\u0006\u0010\b\u001a\u00020\u00072\u0006\u0010\n\u001a\u00020\t2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\r\u001a\u00020\tH\u0002J\"\u0010\u0014\u001a\u00020\u00042\u0018\u0010\u0013\u001a\u0014\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00110\u0010\u0012\u0004\u0012\u00020\u00120\u000fH\u0002J\"\u0010\u0018\u001a\u00020\u00042\u0006\u0010\u0015\u001a\u00020\t2\u0006\u0010\u0016\u001a\u00020\t2\b\b\u0002\u0010\u0017\u001a\u00020\tH\u0002J\u001c\u0010\u001a\u001a\u00020\u00042\u0012\u0010\u0019\u001a\u000e\u0012\u0004\u0012\u00020\u000b\u0012\u0004\u0012\u00020\t0\u000fH\u0002J \u0010\u001d\u001a\u00020\u00042\u0006\u0010\u001b\u001a\u00020\u00072\u0006\u0010\n\u001a\u00020\t2\u0006\u0010\u001c\u001a\u00020\u000bH\u0002J4\u0010\u001f\u001a\u00020\u00042\u0006\u0010\u001b\u001a\u00020\u00072\u0006\u0010\n\u001a\u00020\t2\u0006\u0010\u001c\u001a\u00020\u000b2\b\b\u0002\u0010\u001e\u001a\u00020\t2\b\b\u0002\u0010\u0017\u001a\u00020\tH\u0002J\u0012\u0010\"\u001a\u00020\u00042\b\u0010!\u001a\u0004\u0018\u00010 H\u0014J\b\u0010#\u001a\u00020\u0004H\u0014J\u0010\u0010%\u001a\u00020\u00042\u0006\u0010$\u001a\u00020\u0007H\u0016J\b\u0010&\u001a\u00020\u0004H\u0014R\u001b\u0010\r\u001a\u00020\t8BX‚„\u0002¢\u0006\f\n\u0004\b'\u0010(\u001a\u0004\b)\u0010*R\u001b\u0010\u0017\u001a\u00020\t8BX‚„\u0002¢\u0006\f\n\u0004\b+\u0010(\u001a\u0004\b,\u0010*R\"\u0010.\u001a\u00020-8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b.\u0010/\u001a\u0004\b0\u00101\"\u0004\b2\u00103R\"\u00105\u001a\u0002048\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b5\u00106\u001a\u0004\b7\u00108\"\u0004\b9\u0010:R(\u0010<\u001a\b\u0012\u0004\u0012\u00020\t0;8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b<\u0010=\u001a\u0004\b>\u0010?\"\u0004\b@\u0010AR\"\u0010C\u001a\u00020B8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bC\u0010D\u001a\u0004\bE\u0010F\"\u0004\bG\u0010HR\"\u0010\n\u001a\u00020\t8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b\n\u0010I\u001a\u0004\bJ\u0010*\"\u0004\bK\u0010LR(\u0010O\u001a\b\u0012\u0004\u0012\u00020N0M8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bO\u0010P\u001a\u0004\bQ\u0010R\"\u0004\bS\u0010TR4\u0010U\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020\u000b\u0012\u0004\u0012\u00020\t0\u000f0M8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bU\u0010P\u001a\u0004\bV\u0010R\"\u0004\bW\u0010TR:\u0010Z\u001a\u001a\u0012\u0016\u0012\u0014\u0012\u0004\u0012\u00020\u0007\u0012\u0004\u0012\u00020Y\u0012\u0004\u0012\u00020\u000b0X0M8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\bZ\u0010P\u001a\u0004\b[\u0010R\"\u0004\b\\\u0010TR4\u0010^\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00020]\u0012\u0004\u0012\u00020\u000b0\u000f0M8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\b^\u0010P\u001a\u0004\b_\u0010R\"\u0004\b`\u0010TR:\u0010a\u001a\u001a\u0012\u0016\u0012\u0014\u0012\u0004\u0012\u00020\u0007\u0012\u0004\u0012\u00020]\u0012\u0004\u0012\u00020\u000b0X0M8\u0006@\u0006X‡.¢\u0006\u0012\n\u0004\ba\u0010P\u001a\u0004\bb\u0010R\"\u0004\bc\u0010T¨\u0006f"}, d2 = {"Lrp1/r;", "Lbv0/b;", "Lrp1/u;", "Lrp1/t;", "", "w1", com.alipay.sdk.widget.c.f18364b, "", "isRefresh", "", "userId", "", "source", "pinAuthorIds", INoCaptchaComponent.f17800x1, "Lkotlin/Pair;", "", "", "Landroidx/recyclerview/widget/DiffUtil$DiffResult;", AdvanceSetting.NETWORK_TYPE, "d1", "id", "nickName", "parentSource", "z1", "pair", INoCaptchaComponent.f17802y1, "isFollowed", "pos", "i1", "instanceId", "e1", "Landroid/os/Bundle;", "savedInstanceState", "onAttach", "onDetach", "firstTime", "T0", "S0", "pinAuthorIds$delegate", "Lkotlin/Lazy;", "p1", "()Ljava/lang/String;", "parentSource$delegate", "o1", "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;", "adapter", "Lcom/drakeet/multitype/MultiTypeAdapter;", "getAdapter", "()Lcom/drakeet/multitype/MultiTypeAdapter;", "setAdapter", "(Lcom/drakeet/multitype/MultiTypeAdapter;)V", "Lp00/b;", "impressionHelper", "Lp00/b;", "n1", "()Lp00/b;", "setImpressionHelper", "(Lp00/b;)V", "Ltp1/n;", "commonRepository", "Ltp1/n;", "k1", "()Ltp1/n;", "setCommonRepository", "(Ltp1/n;)V", "Ljava/lang/String;", "u1", "setUserId", "(Ljava/lang/String;)V", "Ldx2/d;", "Lcom/xingin/matrix/v2/profile/recommendv2/itembinder/RecommendUserV2ItemBinder$d;", "recommendUserClickSubject", "Ldx2/d;", "r1", "()Ldx2/d;", "setRecommendUserClickSubject", "(Ldx2/d;)V", "removeRecommendSubject", "t1", "setRemoveRecommendSubject", "Lkotlin/Triple;", "Lcom/xingin/matrix/follow/doublerow/entities/FollowFeedRecommendUserV2;", "recommendFollowSubject", "q1", "setRecommendFollowSubject", "Lcom/xingin/entities/BaseUserBean;", "commonUserItemClickSubject", "m1", "setCommonUserItemClickSubject", "commonUserFollowSubject", "l1", "setCommonUserFollowSubject", "<init>", "()V", "matrix_profile_library_release"}, k = 1, mv = {1, 6, 0})
/* compiled from: RelationMergeCommonController.kt */
public final class r extends bv0.b<u, r, t> {

    /* renamed from: c  reason: collision with root package name */
    public XhsActivity f126661c;

    /* renamed from: d  reason: collision with root package name */
    public MultiTypeAdapter f126662d;

    /* renamed from: e  reason: collision with root package name */
    public p00.b<String> f126663e;

    /* renamed from: f  reason: collision with root package name */
    public tp1.n f126664f;

    /* renamed from: g  reason: collision with root package name */
    public String f126665g;

    /* renamed from: h  reason: collision with root package name */
    public dx2.d<RecommendUserV2ItemBinder.d> f126666h;

    /* renamed from: i  reason: collision with root package name */
    public dx2.d<Pair<Integer, String>> f126667i;

    /* renamed from: j  reason: collision with root package name */
    public dx2.d<Triple<Boolean, FollowFeedRecommendUserV2, Integer>> f126668j;

    /* renamed from: k  reason: collision with root package name */
    public dx2.d<Pair<BaseUserBean, Integer>> f126669k;

    /* renamed from: l  reason: collision with root package name */
    public dx2.d<Triple<Boolean, BaseUserBean, Integer>> f126670l;

    /* renamed from: m  reason: collision with root package name */
    public final Lazy f126671m = LazyKt__LazyJVMKt.lazy(new C2016r(this));

    /* renamed from: n  reason: collision with root package name */
    public final Lazy f126672n = LazyKt__LazyJVMKt.lazy(new q(this));

    /* renamed from: o  reason: collision with root package name */
    public final int f126673o = 120;

    /* renamed from: p  reason: collision with root package name */
    public final String f126674p = "user_page";

    /* renamed from: q  reason: collision with root package name */
    public long f126675q;

    @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: RelationMergeCommonController.kt */
    public /* synthetic */ class a extends FunctionReferenceImpl implements Function1<Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult>, Unit> {
        public a(Object obj) {
            super(1, obj, r.class, "dispatchUpdatesToRecyclerView", "dispatchUpdatesToRecyclerView(Lkotlin/Pair;)V", 0);
        }

        public final void a(Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult> pair) {
            Intrinsics.checkNotNullParameter(pair, "p0");
            ((r) this.receiver).d1(pair);
        }

        /* 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) {
            a(pair);
            return Unit.INSTANCE;
        }
    }

    @Metadata(k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: RelationMergeCommonController.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(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/profile/recommendv2/itembinder/RecommendUserV2ItemBinder$d;", "kotlin.jvm.PlatformType", AdvanceSetting.NETWORK_TYPE, "", "a", "(Lcom/xingin/matrix/v2/profile/recommendv2/itembinder/RecommendUserV2ItemBinder$d;)V"}, k = 3, mv = {1, 6, 0})
    /* compiled from: RelationMergeCommonController.kt */
    public static final class c extends Lambda implements Function1<RecommendUserV2ItemBinder.d, Unit> {

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

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

        public final void a(RecommendUserV2ItemBinder.d dVar) {
            v.f126693a.f(dVar.c(), v.a.RECOMMEND, dVar.b().getUserId(), dVar.b().getTrackId());
            r.A1(this.f126676a, dVar.b().getUserId(), dVar.b().getNickname(), null, 4, 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 */ Unit invoke(RecommendUserV2ItemBinder.d dVar) {
            a(dVar);
            return Unit.INSTANCE;
        }
    }

    @Metadata(d1 = {"\u0000\u0018\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\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;", "Lcom/xingin/entities/BaseUserBean;", "", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: RelationMergeCommonController.kt */
    public static final class d extends Lambda implements Function1<Pair<? extends BaseUserBean, ? extends Integer>, Unit> {

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

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

        /* 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 BaseUserBean, ? extends Integer> pair) {
            invoke((Pair<? extends BaseUserBean, Integer>) pair);
            return Unit.INSTANCE;
        }

        public final void invoke(Pair<? extends BaseUserBean, Integer> pair) {
            v.f126693a.f(pair.getSecond().intValue(), v.a.MUTUAL, ((BaseUserBean) pair.getFirst()).getUserid(), ((BaseUserBean) pair.getFirst()).getTrackId());
            r.A1(this.f126677a, ((BaseUserBean) pair.getFirst()).getUserid(), ((BaseUserBean) pair.getFirst()).getNickname(), null, 4, null);
        }
    }

    @Metadata(d1 = {"\u0000\u001c\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u000122\u0010\u0002\u001a.\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u0006 \u0007*\u0016\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\b"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "Lkotlin/Triple;", "", "Lcom/xingin/matrix/follow/doublerow/entities/FollowFeedRecommendUserV2;", "", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: RelationMergeCommonController.kt */
    public static final class e extends Lambda implements Function1<Triple<? extends Boolean, ? extends FollowFeedRecommendUserV2, ? extends Integer>, Unit> {

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

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

        /* 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 Boolean, ? extends FollowFeedRecommendUserV2, ? extends Integer> triple) {
            invoke((Triple<Boolean, FollowFeedRecommendUserV2, Integer>) triple);
            return Unit.INSTANCE;
        }

        public final void invoke(Triple<Boolean, FollowFeedRecommendUserV2, Integer> triple) {
            if (triple.getFirst().booleanValue()) {
                v.f126693a.h(triple.getThird().intValue(), v.a.RECOMMEND, triple.getSecond().getUserId(), triple.getSecond().getTrackId());
            } else {
                v.f126693a.c(triple.getThird().intValue(), v.a.RECOMMEND, triple.getSecond().getUserId(), triple.getSecond().getTrackId());
            }
            this.f126678a.i1(triple.getFirst().booleanValue(), triple.getSecond().getUserId(), triple.getThird().intValue());
        }
    }

    @Metadata(d1 = {"\u0000\u001c\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u000122\u0010\u0002\u001a.\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u0006 \u0007*\u0016\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\b"}, d2 = {"<anonymous>", "", AdvanceSetting.NETWORK_TYPE, "Lkotlin/Triple;", "", "Lcom/xingin/entities/BaseUserBean;", "", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: RelationMergeCommonController.kt */
    public static final class f extends Lambda implements Function1<Triple<? extends Boolean, ? extends BaseUserBean, ? extends Integer>, Unit> {

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

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

        /* 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 Boolean, ? extends BaseUserBean, ? extends Integer> triple) {
            invoke((Triple<Boolean, ? extends BaseUserBean, Integer>) triple);
            return Unit.INSTANCE;
        }

        public final void invoke(Triple<Boolean, ? extends BaseUserBean, Integer> triple) {
            if (triple.getFirst().booleanValue()) {
                v.f126693a.h(triple.getThird().intValue(), v.a.MUTUAL, ((BaseUserBean) triple.getSecond()).getUserid(), ((BaseUserBean) triple.getSecond()).getTrackId());
            } else {
                v.f126693a.c(triple.getThird().intValue(), v.a.MUTUAL, ((BaseUserBean) triple.getSecond()).getUserid(), ((BaseUserBean) triple.getSecond()).getTrackId());
            }
            this.f126679a.i1(triple.getFirst().booleanValue(), ((BaseUserBean) triple.getSecond()).getUserid(), triple.getThird().intValue());
        }
    }

    @Metadata(d1 = {"\u0000\u0018\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\b\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: RelationMergeCommonController.kt */
    public static final class g extends Lambda implements Function1<Pair<? extends Integer, ? extends String>, Unit> {

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

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

        /* 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 Integer, ? extends String> pair) {
            invoke((Pair<Integer, String>) pair);
            return Unit.INSTANCE;
        }

        public final void invoke(Pair<Integer, String> pair) {
            String str;
            Object obj = this.f126680a.getAdapter().d().get(pair.getFirst().intValue());
            FollowFeedRecommendUserV2 followFeedRecommendUserV2 = obj instanceof FollowFeedRecommendUserV2 ? (FollowFeedRecommendUserV2) obj : null;
            v vVar = v.f126693a;
            int intValue = pair.getFirst().intValue();
            if (followFeedRecommendUserV2 == null || (str = followFeedRecommendUserV2.getUserId()) == null) {
                str = "";
            }
            vVar.g(intValue, str, pair.getSecond());
            r rVar = this.f126680a;
            Intrinsics.checkNotNullExpressionValue(pair, AdvanceSetting.NETWORK_TYPE);
            rVar.y1(pair);
        }
    }

    @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: RelationMergeCommonController.kt */
    public static final class h extends Lambda implements Function0<Boolean> {

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public h(r rVar) {
            super(0);
            this.f126681a = rVar;
        }

        @Override // kotlin.jvm.functions.Function0
        public final Boolean invoke() {
            return Boolean.valueOf(!this.f126681a.k1().A().get());
        }
    }

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

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

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

        /* 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);
            r rVar = this.f126682a;
            String u14 = rVar.u1();
            int i10 = this.f126682a.f126673o;
            String p14 = this.f126682a.p1();
            Intrinsics.checkNotNullExpressionValue(p14, "pinAuthorIds");
            rVar.x1(false, u14, i10, p14);
        }
    }

    @Metadata(bv = {}, d1 = {"\u0000\u0014\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\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 = {"", "position", "Landroid/view/View;", "<anonymous parameter 1>", "", "a", "(ILandroid/view/View;)Ljava/lang/String;"}, k = 3, mv = {1, 6, 0})
    /* compiled from: RelationMergeCommonController.kt */
    public static final class j extends Lambda implements Function2<Integer, View, String> {

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public j(r rVar) {
            super(2);
            this.f126683a = rVar;
        }

        public final String a(int i10, View view) {
            Object obj;
            Intrinsics.checkNotNullParameter(view, "<anonymous parameter 1>");
            if (this.f126683a.getAdapter().d().size() <= i10 || (obj = CollectionsKt___CollectionsKt.getOrNull(this.f126683a.getAdapter().d(), i10)) == null) {
                return "";
            }
            if (obj instanceof BaseUserBean) {
                return ((BaseUserBean) obj).getUserid();
            }
            if (obj instanceof FollowFeedRecommendUserV2) {
                return ((FollowFeedRecommendUserV2) obj).getUserId();
            }
            return "";
        }

        /* 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 */ String invoke(Integer num, View view) {
            return a(num.intValue(), view);
        }
    }

    @Metadata(d1 = {"\u0000\u0016\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H\n¢\u0006\u0004\b\u0006\u0010\u0007"}, d2 = {"<anonymous>", "", "position", "", qo2.a.COPY_LINK_TYPE_VIEW, "Landroid/view/View;", "invoke", "(ILandroid/view/View;)Ljava/lang/Boolean;"}, k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: RelationMergeCommonController.kt */
    public static final class k extends Lambda implements Function2<Integer, View, Boolean> {

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public k(r rVar) {
            super(2);
            this.f126684a = rVar;
        }

        /* 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 */ Boolean invoke(Integer num, View view) {
            return invoke(num.intValue(), view);
        }

        public final Boolean invoke(int i10, View view) {
            Intrinsics.checkNotNullParameter(view, qo2.a.COPY_LINK_TYPE_VIEW);
            if (this.f126684a.getAdapter().d().size() <= i10) {
                return Boolean.FALSE;
            }
            return Boolean.valueOf(p00.a.d(view, 0.5f, false, 2, null));
        }
    }

    @Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H\n¢\u0006\u0002\b\u0006"}, d2 = {"<anonymous>", "", "position", "", "<anonymous parameter 1>", "Landroid/view/View;", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48)
    /* compiled from: RelationMergeCommonController.kt */
    public static final class l extends Lambda implements Function2<Integer, View, Unit> {

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public l(r rVar) {
            super(2);
            this.f126685a = rVar;
        }

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

        public final void invoke(int i10, View view) {
            Intrinsics.checkNotNullParameter(view, "<anonymous parameter 1>");
            Object obj = CollectionsKt___CollectionsKt.getOrNull(this.f126685a.getAdapter().d(), i10);
            if (obj != null) {
                if (obj instanceof BaseUserBean) {
                    BaseUserBean baseUserBean = (BaseUserBean) obj;
                    v.f126693a.e(i10, v.a.MUTUAL, baseUserBean.getUserid(), baseUserBean.getTrackId());
                } else if (obj instanceof FollowFeedRecommendUserV2) {
                    FollowFeedRecommendUserV2 followFeedRecommendUserV2 = (FollowFeedRecommendUserV2) obj;
                    v.f126693a.e(i10, v.a.RECOMMEND, followFeedRecommendUserV2.getUserId(), followFeedRecommendUserV2.getTrackId());
                }
            }
        }
    }

    @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: RelationMergeCommonController.kt */
    public static final class m 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 */ boolean f126686a;

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public m(boolean z14, r rVar) {
            super(1);
            this.f126686a = z14;
            this.f126687b = rVar;
        }

        /* 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) {
            if (this.f126686a) {
                ArrayList arrayList = new ArrayList();
                int i10 = 0;
                if ((!this.f126687b.k1().l0().getUsers().isEmpty()) && (!StringsKt__StringsJVMKt.isBlank(this.f126687b.k1().l0().getNotice()))) {
                    arrayList.add(TuplesKt.to(0, this.f126687b.k1().l0().getNotice()));
                }
                Iterator it3 = ((List) pair.getFirst()).iterator();
                while (true) {
                    if (!it3.hasNext()) {
                        i10 = -1;
                        break;
                    } else if (it3.next() instanceof FollowFeedRecommendUserV2) {
                        break;
                    } else {
                        i10++;
                    }
                }
                if (i10 != -1) {
                    arrayList.add(TuplesKt.to(Integer.valueOf(i10), this.f126687b.getActivity().getString(R$string.d6v)));
                }
                ((u) this.f126687b.getPresenter()).b().addItemDecoration(new StickHeaderDecoration(arrayList));
            }
            r rVar = this.f126687b;
            Intrinsics.checkNotNullExpressionValue(pair, AdvanceSetting.NETWORK_TYPE);
            rVar.d1(pair);
        }
    }

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

        /* renamed from: b  reason: collision with root package name */
        public final /* synthetic */ Pair<Integer, String> f126689b;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public o(r rVar, Pair<Integer, String> pair) {
            super(1);
            this.f126688a = rVar;
            this.f126689b = pair;
        }

        /* 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) {
            al2.e.g(this.f126688a.getActivity().getResources().getString(R$string.matrix_recommend_user_feedback));
            r rVar = this.f126688a;
            Intrinsics.checkNotNullExpressionValue(pair, AdvanceSetting.NETWORK_TYPE);
            rVar.d1(pair);
            this.f126688a.getAdapter().notifyItemRangeChanged(this.f126689b.getFirst().intValue() - 1, 3);
            if (((List) pair.getFirst()).size() < 9) {
                r rVar2 = this.f126688a;
                String u14 = rVar2.u1();
                int i10 = this.f126688a.f126673o;
                String p14 = this.f126688a.p1();
                Intrinsics.checkNotNullExpressionValue(p14, "pinAuthorIds");
                rVar2.x1(false, u14, i10, p14);
            }
        }
    }

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

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public q(r rVar) {
            super(0);
            this.f126690a = rVar;
        }

        @Override // kotlin.jvm.functions.Function0
        public final String invoke() {
            String stringExtra = this.f126690a.getActivity().getIntent().getStringExtra("parent_source");
            return stringExtra == null ? "" : stringExtra;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u000e\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "", "invoke"}, k = 3, mv = {1, 6, 0}, xi = 48)
    /* renamed from: rp1.r$r  reason: collision with other inner class name */
    /* compiled from: RelationMergeCommonController.kt */
    public static final class C2016r extends Lambda implements Function0<String> {

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public C2016r(r rVar) {
            super(0);
            this.f126691a = rVar;
        }

        @Override // kotlin.jvm.functions.Function0
        public final String invoke() {
            String stringExtra = this.f126691a.getActivity().getIntent().getStringExtra("pin_author_ids");
            return stringExtra == null ? "" : stringExtra;
        }
    }

    public static /* synthetic */ void A1(r rVar, String str, String str2, String str3, int i10, Object obj) {
        if ((i10 & 4) != 0) {
            str3 = rVar.o1();
            Intrinsics.checkNotNullExpressionValue(str3, "this.parentSource");
        }
        rVar.z1(str, str2, str3);
    }

    public static /* synthetic */ void f1(r rVar, boolean z14, String str, int i10, String str2, String str3, int i14, Object obj) {
        if ((i14 & 8) != 0) {
            str2 = rVar.f126674p;
        }
        if ((i14 & 16) != 0) {
            str3 = rVar.o1();
            Intrinsics.checkNotNullExpressionValue(str3, "this.parentSource");
        }
        rVar.e1(z14, str, i10, str2, str3);
    }

    public static final void h1(r rVar, int i10, boolean z14, String str, Pair pair) {
        Intrinsics.checkNotNullParameter(rVar, "this$0");
        Intrinsics.checkNotNullParameter(str, "$userId");
        Object obj = rVar.getAdapter().d().get(i10);
        boolean z15 = obj instanceof BaseUserBean;
        String trackId = z15 ? ((BaseUserBean) obj).getTrackId() : obj instanceof FollowFeedRecommendUserV2 ? ((FollowFeedRecommendUserV2) obj).getTrackId() : "";
        v.a aVar = z15 ? v.a.MUTUAL : v.a.RECOMMEND;
        if (z14) {
            v.f126693a.i(i10, aVar, str, trackId);
        } else {
            v.f126693a.d(i10, aVar, str, trackId);
        }
    }

    public static final void j1(r rVar, boolean z14, String str, int i10, DialogInterface dialogInterface, int i14) {
        Intrinsics.checkNotNullParameter(rVar, "this$0");
        Intrinsics.checkNotNullParameter(str, "$userId");
        f1(rVar, z14, str, i10, null, null, 24, null);
    }

    @Override // bv0.b
    public void S0() {
        super.S0();
        b.C1797b bVar = p00.b.f116528j;
        v.f126693a.a(System.currentTimeMillis() - this.f126675q);
    }

    @Override // bv0.b
    public void T0(boolean z14) {
        super.T0(z14);
        this.f126675q = System.currentTimeMillis();
        v.f126693a.b();
    }

    public final void d1(Pair<? extends List<? extends Object>, ? extends DiffUtil.DiffResult> pair) {
        getAdapter().o((List) pair.getFirst());
        ((DiffUtil.DiffResult) pair.getSecond()).dispatchUpdatesTo(getAdapter());
    }

    public final void e1(boolean z14, String str, int i10, String str2, String str3) {
        dw2.r<Pair<List<Object>, DiffUtil.DiffResult>> W0 = k1().o(i10, str, !z14, str2, str3).e0(new q(this, i10, z14, str)).W0(gw2.a.a());
        Intrinsics.checkNotNullExpressionValue(W0, "commonRepository.followO…dSchedulers.mainThread())");
        bj2.h.f(W0, this, new a(this), new b(z41.l.f160483a));
    }

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

    public final MultiTypeAdapter getAdapter() {
        MultiTypeAdapter multiTypeAdapter = this.f126662d;
        if (multiTypeAdapter != null) {
            return multiTypeAdapter;
        }
        Intrinsics.throwUninitializedPropertyAccessException("adapter");
        return null;
    }

    public final void i1(boolean z14, String str, int i10) {
        if (z14) {
            b.a.b(ki1.b.f98468a, getActivity(), new p(this, z14, str, i10), new b.DialogInterface$OnClickListenerC1378b(), false, 8, null).show();
        } else {
            f1(this, z14, str, i10, null, null, 24, null);
        }
    }

    public final tp1.n k1() {
        tp1.n nVar = this.f126664f;
        if (nVar != null) {
            return nVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("commonRepository");
        return null;
    }

    public final dx2.d<Triple<Boolean, BaseUserBean, Integer>> l1() {
        dx2.d<Triple<Boolean, BaseUserBean, Integer>> dVar = this.f126670l;
        if (dVar != null) {
            return dVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("commonUserFollowSubject");
        return null;
    }

    public final dx2.d<Pair<BaseUserBean, Integer>> m1() {
        dx2.d<Pair<BaseUserBean, Integer>> dVar = this.f126669k;
        if (dVar != null) {
            return dVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("commonUserItemClickSubject");
        return null;
    }

    public final p00.b<String> n1() {
        p00.b<String> bVar = this.f126663e;
        if (bVar != null) {
            return bVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("impressionHelper");
        return null;
    }

    public final String o1() {
        return (String) this.f126672n.getValue();
    }

    @Override // tu0.b
    public void onAttach(Bundle bundle) {
        super.onAttach(bundle);
        w1();
        n1().a();
        ((u) getPresenter()).initView(getAdapter());
        v1();
    }

    @Override // tu0.b
    public void onDetach() {
        super.onDetach();
        n1().k();
    }

    public final String p1() {
        return (String) this.f126671m.getValue();
    }

    public final dx2.d<Triple<Boolean, FollowFeedRecommendUserV2, Integer>> q1() {
        dx2.d<Triple<Boolean, FollowFeedRecommendUserV2, Integer>> dVar = this.f126668j;
        if (dVar != null) {
            return dVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("recommendFollowSubject");
        return null;
    }

    public final dx2.d<RecommendUserV2ItemBinder.d> r1() {
        dx2.d<RecommendUserV2ItemBinder.d> dVar = this.f126666h;
        if (dVar != null) {
            return dVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("recommendUserClickSubject");
        return null;
    }

    public final dx2.d<Pair<Integer, String>> t1() {
        dx2.d<Pair<Integer, String>> dVar = this.f126667i;
        if (dVar != null) {
            return dVar;
        }
        Intrinsics.throwUninitializedPropertyAccessException("removeRecommendSubject");
        return null;
    }

    public final String u1() {
        String str = this.f126665g;
        if (str != null) {
            return str;
        }
        Intrinsics.throwUninitializedPropertyAccessException("userId");
        return null;
    }

    public final void v1() {
        bj2.h.d(r1(), this, new c(this));
        bj2.h.d(m1(), this, new d(this));
        bj2.h.d(q1(), this, new e(this));
        bj2.h.d(l1(), this, new f(this));
        bj2.h.d(t1(), this, new g(this));
        bj2.h.d(u.p(((u) getPresenter()).b(), 0, new h(this), 1, null), this, new i(this));
        String u14 = u1();
        int i10 = this.f126673o;
        String p14 = p1();
        Intrinsics.checkNotNullExpressionValue(p14, "pinAuthorIds");
        x1(true, u14, i10, p14);
    }

    public final void w1() {
        n1().n(200).r().o(new j(this)).p(new k(this)).q(new l(this));
    }

    public final void x1(boolean z14, String str, int i10, String str2) {
        dw2.r<Pair<List<Object>, DiffUtil.DiffResult>> W0 = k1().H(z14, i10, str, fj2.b.f77239f.n(getActivity(), "android.permission.READ_CONTACTS") ? 1 : 0, str2).W0(gw2.a.a());
        Intrinsics.checkNotNullExpressionValue(W0, "commonRepository.loadUse…dSchedulers.mainThread())");
        bj2.h.f(W0, this, new m(z14, this), new n(z41.l.f160483a));
    }

    public final void y1(Pair<Integer, String> pair) {
        dw2.r<Pair<List<Object>, DiffUtil.DiffResult>> W0 = k1().O(pair.getFirst().intValue()).W0(gw2.a.a());
        Intrinsics.checkNotNullExpressionValue(W0, "commonRepository.removeR…dSchedulers.mainThread())");
        bj2.h.f(W0, this, new o(this, pair), new p(z41.l.f160483a));
    }

    public final void z1(String str, String str2, String str3) {
        Routers.build(Pages.PAGE_OTHER_USER_PROFILE).withString("uid", str).withString("nickname", str2).withString("parent_source", str3).open(getActivity());
    }
}