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


package vc2;

import android.app.Activity;
import android.content.DialogInterface;
import android.os.Parcelable;
import com.alibaba.baichuan.trade.biz.applink.adapter.AppLinkConstants;
import com.meizu.cloud.pushsdk.notification.model.AdvanceSetting;
import com.uber.autodispose.a0;
import com.uber.autodispose.y;
import com.xingin.android.xhscomm.router.Routers;
import com.xingin.entities.NoteItemBean;
import com.xingin.entities.SurveyItemBean;
import com.xingin.entities.im.ShareTargetBean;
import com.xingin.entities.x;
import com.xingin.pages.CapaDeeplinkUtils;
import com.xingin.pages.Page;
import com.xingin.pages.PageExtensionsKt;
import com.xingin.pages.Pages;
import com.xingin.pages.Shared2UserPage;
import com.xingin.pages.SharedUserPage;
import com.xingin.pages.SharedUserPageWithUsers;
import com.xingin.redview.dialog.DMCAlertDialogBuilder;
import com.xingin.sharesdk.R$string;
import com.xingin.sharesdk.api.ShareOperateService;
import com.xingin.socialsdk.ShareEntity;
import dw2.r;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import kotlin.text.StringsKt__StringsJVMKt;
import o.f;
import oc2.z;
import pc2.m;
import pc2.q;
import pc2.u;
import pc2.v;
import yc2.j1;
import zc2.g;

@Metadata(bv = {}, d1 = {"\u0000L\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\u0018\u00002\u00020\u0001B€\u0001\u0012\u0006\u0010\u0011\u001a\u00020\u0010\u0012\u0006\u0010\u0016\u001a\u00020\u0015\u0012\u0006\u0010\u0018\u001a\u00020\u0017\u0012\u0006\u0010\u0019\u001a\u00020\b\u0012\u0006\u0010\u001a\u001a\u00020\u0002\u0012\u0006\u0010\u001b\u001a\u00020\b\u0012\u0006\u0010\t\u001a\u00020\b\u0012\b\u0010\u001c\u001a\u0004\u0018\u00010\b\u0012\u0006\u0010\u001d\u001a\u00020\u0002\u0012#\u0010\"\u001a\u001f\u0012\u0013\u0012\u00110\u0002¢\u0006\f\b\u001f\u0012\b\b \u0012\u0004\b\b(!\u0012\u0004\u0012\u00020\u0004\u0018\u00010\u001e\u0012\b\b\u0002\u0010#\u001a\u00020\u000b¢\u0006\u0004\b$\u0010%J\u0010\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0002H\u0016J\b\u0010\u0007\u001a\u00020\u0006H\u0016J\u0018\u0010\n\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\t\u001a\u00020\bH\u0002J\u001a\u0010\r\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u00022\b\b\u0002\u0010\f\u001a\u00020\u000bH\u0002J\u0012\u0010\u000f\u001a\u00020\u00022\b\u0010\u000e\u001a\u0004\u0018\u00010\u0002H\u0002R\u0017\u0010\u0011\u001a\u00020\u00108\u0006¢\u0006\f\n\u0004\b\u0011\u0010\u0012\u001a\u0004\b\u0013\u0010\u0014¨\u0006&"}, d2 = {"Lvc2/p;", "Loc2/z;", "", "operate", "", "b", "Landroid/os/Parcelable;", "a", "", "imageIndex", "r", "", "showDialog", com.igexin.push.core.d.c.f25536c, "src", "t", "Landroid/app/Activity;", "activity", "Landroid/app/Activity;", "s", "()Landroid/app/Activity;", "Lcom/xingin/socialsdk/ShareEntity;", "shareEntity", "Lcom/xingin/entities/NoteItemBean;", "noteItemBean", "noteFrom", "noteId", "noteIndex", AppLinkConstants.REQUESTCODE, "source", "Lkotlin/Function1;", "Lkotlin/ParameterName;", "name", "shareOperate", "shareOperateCallback", "isFollowTop", "<init>", "(Landroid/app/Activity;Lcom/xingin/socialsdk/ShareEntity;Lcom/xingin/entities/NoteItemBean;ILjava/lang/String;IILjava/lang/Integer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Z)V", "sharesdk_library_release"}, k = 1, mv = {1, 6, 0})
/* compiled from: NoteShareOperate.kt */
public final class p extends z {

    /* renamed from: a  reason: collision with root package name */
    public final Activity f140068a;

    /* renamed from: b  reason: collision with root package name */
    public final ShareEntity f140069b;

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

    /* renamed from: d  reason: collision with root package name */
    public final int f140071d;

    /* renamed from: e  reason: collision with root package name */
    public final String f140072e;

    /* renamed from: f  reason: collision with root package name */
    public final int f140073f;

    /* renamed from: g  reason: collision with root package name */
    public final int f140074g;

    /* renamed from: h  reason: collision with root package name */
    public final Integer f140075h;

    /* renamed from: i  reason: collision with root package name */
    public final String f140076i;

    /* renamed from: j  reason: collision with root package name */
    public final Function1<String, Unit> f140077j;

    /* renamed from: k  reason: collision with root package name */
    public final boolean f140078k;

    @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u00022\b\u0010\u0001\u001a\u0004\u0018\u00010\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lpc2/m;", AdvanceSetting.NETWORK_TYPE, "", "invoke", "(Lpc2/m;)V", "<anonymous>"}, k = 3, mv = {1, 6, 0})
    /* compiled from: NoteShareOperate.kt */
    public static final class a extends Lambda implements Function1<m, Unit> {

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

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public a(p pVar, String str) {
            super(1);
            this.f140079a = pVar;
            this.f140080b = str;
        }

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

        public final void invoke(m mVar) {
            Function1 function1 = this.f140079a.f140077j;
            if (function1 != null) {
                function1.invoke(this.f140080b);
            }
        }
    }

    @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u00022\b\u0010\u0001\u001a\u0004\u0018\u00010\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lpc2/m;", AdvanceSetting.NETWORK_TYPE, "", "invoke", "(Lpc2/m;)V", "<anonymous>"}, k = 3, mv = {1, 6, 0})
    /* compiled from: NoteShareOperate.kt */
    public static final class b extends Lambda implements Function1<m, Unit> {

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

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public b(p pVar, String str) {
            super(1);
            this.f140081a = pVar;
            this.f140082b = str;
        }

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

        public final void invoke(m mVar) {
            p.q(this.f140081a, this.f140082b, false, 2, null);
        }
    }

    @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u00022\b\u0010\u0001\u001a\u0004\u0018\u00010\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lpc2/m;", AdvanceSetting.NETWORK_TYPE, "", "invoke", "(Lpc2/m;)V", "<anonymous>"}, k = 3, mv = {1, 6, 0})
    /* compiled from: NoteShareOperate.kt */
    public static final class c extends Lambda implements Function1<m, Unit> {

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

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public c(p pVar, String str) {
            super(1);
            this.f140083a = pVar;
            this.f140084b = str;
        }

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

        public final void invoke(m mVar) {
            if (mVar == null || mVar.getAction() == 1) {
                this.f140083a.p(this.f140084b, true);
            } else {
                p.q(this.f140083a, this.f140084b, false, 2, null);
            }
        }
    }

    @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u00022\b\u0010\u0001\u001a\u0004\u0018\u00010\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lpc2/m;", AdvanceSetting.NETWORK_TYPE, "", "invoke", "(Lpc2/m;)V", "<anonymous>"}, k = 3, mv = {1, 6, 0})
    /* compiled from: NoteShareOperate.kt */
    public static final class d extends Lambda implements Function1<m, Unit> {

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

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

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

        public final void invoke(m mVar) {
            if (mVar != null) {
                Routers.build(mVar.getLink()).open(this.f140085a.s());
            }
        }
    }

    @Metadata(bv = {}, d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0010\u0005\u001a\u00020\u00022\u0006\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lpc2/m;", AdvanceSetting.NETWORK_TYPE, "", "invoke", "(Lpc2/m;)V", "<anonymous>"}, k = 3, mv = {1, 6, 0})
    /* compiled from: NoteShareOperate.kt */
    public static final class e extends Lambda implements Function1<m, Unit> {

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

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public e(String str, p pVar) {
            super(1);
            this.f140086a = str;
            this.f140087b = pVar;
        }

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

        public final void invoke(m mVar) {
            Intrinsics.checkNotNullParameter(mVar, AdvanceSetting.NETWORK_TYPE);
            g.f161487i.c(this.f140086a, this.f140087b.f140071d, mVar.getTrack_id());
        }
    }

    /* JADX DEBUG: Multi-variable search result rejected for r11v0, resolved type: kotlin.jvm.functions.Function1<? super java.lang.String, kotlin.Unit> */
    /* JADX WARN: Multi-variable type inference failed */
    public p(Activity activity, ShareEntity shareEntity, NoteItemBean noteItemBean, int i10, String str, int i14, int i15, Integer num, String str2, Function1<? super String, Unit> function1, boolean z14) {
        Intrinsics.checkNotNullParameter(activity, "activity");
        Intrinsics.checkNotNullParameter(shareEntity, "shareEntity");
        Intrinsics.checkNotNullParameter(noteItemBean, "noteItemBean");
        Intrinsics.checkNotNullParameter(str, "noteId");
        Intrinsics.checkNotNullParameter(str2, "source");
        this.f140068a = activity;
        this.f140069b = shareEntity;
        this.f140070c = noteItemBean;
        this.f140071d = i10;
        this.f140072e = str;
        this.f140073f = i14;
        this.f140074g = i15;
        this.f140075h = num;
        this.f140076i = str2;
        this.f140077j = function1;
        this.f140078k = z14;
    }

    public static final void A(Throwable th3) {
        Intrinsics.checkNotNullExpressionValue(th3, AdvanceSetting.NETWORK_TYPE);
        h50.c.c(th3);
    }

    public static final void B(p pVar, DialogInterface dialogInterface, int i10) {
        Intrinsics.checkNotNullParameter(pVar, "this$0");
        r<x> W0 = ((ShareOperateService) gd2.a.f81806c.b(ShareOperateService.class)).unFollow("user." + pVar.f140070c.getUser().getId()).W0(gw2.a.a());
        Intrinsics.checkNotNullExpressionValue(W0, "Skynet.getService(ShareO…dSchedulers.mainThread())");
        a0 a0Var = a0.D;
        Intrinsics.checkNotNullExpressionValue(a0Var, "UNBOUND");
        Object n14 = W0.n(com.uber.autodispose.d.b(a0Var));
        Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))");
        ((y) n14).a(new i(pVar), l.f140064a);
    }

    public static final void C(p pVar, x xVar) {
        Function1<String, Unit> function1;
        Intrinsics.checkNotNullParameter(pVar, "this$0");
        if (xVar.getSuccess() && (function1 = pVar.f140077j) != null) {
            function1.invoke("TYPE_UNFOLLOW");
        }
    }

    public static final void D(Throwable th3) {
        Intrinsics.checkNotNullExpressionValue(th3, AdvanceSetting.NETWORK_TYPE);
        h50.c.c(th3);
    }

    public static /* synthetic */ void q(p pVar, String str, boolean z14, int i10, Object obj) {
        if ((i10 & 2) != 0) {
            z14 = false;
        }
        pVar.p(str, z14);
    }

    public static final void u(p pVar, q qVar) {
        Intrinsics.checkNotNullParameter(pVar, "this$0");
        rc2.c.j(pVar.f140068a, qVar.getContent());
    }

    public static final void v(Throwable th3) {
        Intrinsics.checkNotNullExpressionValue(th3, AdvanceSetting.NETWORK_TYPE);
        h50.c.c(th3);
    }

    public static final void w(DialogInterface dialogInterface, int i10) {
    }

    public static final void x(p pVar, String str, String str2) {
        Intrinsics.checkNotNullParameter(pVar, "this$0");
        Intrinsics.checkNotNullParameter(str, "$operate");
        ej2.a aVar = ej2.a.f72257b;
        String id3 = pVar.f140070c.getId();
        Intrinsics.checkNotNullExpressionValue(id3, "noteItemBean.id");
        aVar.a(new pc2.x(id3, Intrinsics.areEqual(str, "TYPE_STICKY")));
        al2.e.f(Intrinsics.areEqual(str, "TYPE_STICKY") ? R$string.dy3 : R$string.dyg);
        Function1<String, Unit> function1 = pVar.f140077j;
        if (function1 != null) {
            function1.invoke(str);
        }
    }

    public static final void y(Throwable th3) {
        Intrinsics.checkNotNullExpressionValue(th3, AdvanceSetting.NETWORK_TYPE);
        h50.c.c(th3);
    }

    public static final void z(p pVar, x xVar) {
        Intrinsics.checkNotNullParameter(pVar, "this$0");
        if (xVar.getSuccess()) {
            if (Intrinsics.areEqual(pVar.f140070c.getType(), "video")) {
                al2.e.p(pVar.f140068a.getString(R$string.dx6));
            } else {
                al2.e.g(pVar.f140068a.getString(R$string.dx6));
            }
            Function1<String, Unit> function1 = pVar.f140077j;
            if (function1 != null) {
                function1.invoke("TYPE_OPERATE_NOT_LIKE");
            }
        }
    }

    @Override // oc2.z
    public Parcelable a() {
        return this.f140070c;
    }

    /* JADX WARNING: Code restructure failed: missing block: B:101:0x032d, code lost:
        if (r28.equals("TYPE_CUSTOMER_SERVICE") == false) goto L_0x0428;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:103:0x0337, code lost:
        if (r28.equals("TYPE_MOMENT_LONG_PICTURE") == false) goto L_0x0428;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:104:0x033b, code lost:
        r(r28, r27.f140074g);
        r1 = r27.f140077j;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:105:0x0342, code lost:
        if (r1 == null) goto L_0x0428;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:106:0x0344, code lost:
        r1.invoke(r28);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:108:0x034f, code lost:
        if (r28.equals("TYPE_VIDEO_FEEDBACK") == false) goto L_0x0428;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:110:0x0359, code lost:
        if (r28.equals("TYPE_NATIVE_VOICE") == false) goto L_0x0428;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:112:0x0363, code lost:
        if (r28.equals("TYPE_PROMOTION") == false) goto L_0x0428;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:113:0x0367, code lost:
        r1 = rc2.c.f125713a;
        r2 = r27.f140068a;
        r3 = r27.f140070c.getId();
        kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, "noteItemBean.id");
        r1.c(r2, r3, r28, new vc2.p.d(r27), new vc2.p.e(r28, r27));
     */
    /* JADX WARNING: Code restructure failed: missing block: B:11:0x0081, code lost:
        if (r28.equals("TYPE_DANMAKU_SETTING") == false) goto L_0x0428;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:120:0x03cd, code lost:
        if (r28.equals("TYPE_DOWNLOAD_ALL_IMAGE") == false) goto L_0x0428;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:121:0x03d0, code lost:
        r1 = r27.f140077j;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:122:0x03d2, code lost:
        if (r1 == null) goto L_0x0428;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:123:0x03d4, code lost:
        r1.invoke(r28);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:125:0x03de, code lost:
        if (r28.equals("TYPE_UNSTICKY") == false) goto L_0x0428;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:126:0x03e1, code lost:
        r1 = (com.xingin.sharesdk.api.ShareOperateService) gd2.a.f81806c.b(com.xingin.sharesdk.api.ShareOperateService.class);
        r2 = r27.f140070c.getId();
        kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r2, "noteItemBean.id");
     */
    /* JADX WARNING: Code restructure failed: missing block: B:127:0x03f6, code lost:
        if (kotlin.jvm.internal.Intrinsics.areEqual(r28, "TYPE_STICKY") == false) goto L_0x03fb;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:128:0x03f8, code lost:
        r6 = "1";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:129:0x03fb, code lost:
        r6 = "0";
     */
    /* JADX WARNING: Code restructure failed: missing block: B:130:0x03fd, code lost:
        r1 = r1.operatePop(r2, r6).W0(gw2.a.a());
        kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r1, "Skynet.getService(ShareO…dSchedulers.mainThread())");
        r2 = com.uber.autodispose.a0.D;
        kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r2, "UNBOUND");
        r1 = r1.n(com.uber.autodispose.d.b(r2));
        kotlin.jvm.internal.Intrinsics.checkExpressionValueIsNotNull(r1, "this.`as`(AutoDispose.autoDisposable(provider))");
        ((com.uber.autodispose.y) r1).a(new vc2.k(r27, r28), vc2.n.f140066a);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:13:0x0089, code lost:
        if (r28.equals("TYPE_STICKY") == false) goto L_0x0428;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:58:0x01d0, code lost:
        if (r28.equals("TYPE_MOMENT_COVER_SNAPSHOT") == false) goto L_0x0428;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:74:0x0265, code lost:
        if (r28.equals("TYPE_DATA_ANALYSIS") == false) goto L_0x0428;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:82:0x02ad, code lost:
        if (r28.equals("TYPE_DOWNLOAD_VIDEO") == false) goto L_0x0428;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:84:0x02b7, code lost:
        if (r28.equals("TYPE_DOWNLOAD_IMAGE") == false) goto L_0x0428;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:95:0x030f, code lost:
        if (r28.equals("TYPE_VIDEO_SPEED") == false) goto L_0x0428;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:97:0x0319, code lost:
        if (r28.equals("TYPE_BACKGROUND_PLAY") == false) goto L_0x0428;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:99:0x0323, code lost:
        if (r28.equals("TYPE_SCREEN_TV") == false) goto L_0x0428;
     */
    @Override // oc2.z
    public void b(String str) {
        List<ShareTargetBean> u14;
        Page page;
        Intrinsics.checkNotNullParameter(str, "operate");
        switch (str.hashCode()) {
            case -2101918425:
                break;
            case -1724070101:
                break;
            case -1367371538:
                if (str.equals("TYPE_SHOW_SPECIFIC_FRIEND") && (u14 = this.f140069b.u()) != null) {
                    Shared2UserPage shared2UserPage = new Shared2UserPage(this.f140070c, u14.get(this.f140069b.t()), false, null, 12, null);
                    Routers.build(shared2UserPage.getUrl()).with(PageExtensionsKt.toBundle(shared2UserPage)).open(this.f140068a);
                    break;
                }
            case -1355723330:
                break;
            case -1075194929:
                break;
            case -932187506:
                break;
            case -765986443:
                break;
            case -504520295:
                break;
            case -431385488:
                break;
            case -193679200:
                break;
            case 70546878:
                break;
            case 185977987:
                if (str.equals("TYPE_OPERATE_NOT_LIKE")) {
                    int i10 = this.f140071d;
                    if (i10 != 4 && i10 != 5) {
                        String id3 = this.f140070c.getId();
                        Intrinsics.checkNotNullExpressionValue(id3, "noteItemBean.id");
                        String id4 = this.f140070c.getId();
                        Intrinsics.checkNotNullExpressionValue(id4, "noteItemBean.id");
                        ((ShareOperateService) gd2.a.f81806c.b(ShareOperateService.class)).dislikeRecommend(id3, "homefeed_note", id4).W0(gw2.a.a()).t1(new h(this), o.f140067a);
                        break;
                    } else {
                        Function1<String, Unit> function1 = this.f140077j;
                        if (function1 != null) {
                            function1.invoke("TYPE_OPERATE_NOT_LIKE");
                            break;
                        }
                    }
                }
                break;
            case 459117161:
                break;
            case 471006601:
                break;
            case 770200088:
                if (str.equals("TYPE_HELP_LOOK")) {
                    Routers.build("https://www.xiaohongshu.com/picasso_pages/help-me-look/select-card?naviHidden=yes").open(this.f140068a);
                    break;
                }
                break;
            case 923810384:
                if (str.equals("TYPE_DELETE")) {
                    rc2.c cVar = rc2.c.f125713a;
                    Activity activity = this.f140068a;
                    String id5 = this.f140070c.getId();
                    Intrinsics.checkNotNullExpressionValue(id5, "noteItemBean.id");
                    rc2.c.d(cVar, activity, id5, str, new c(this, str), null, 16, null);
                    break;
                }
                break;
            case 965187468:
                break;
            case 992984899:
                if (str.equals("TYPE_FRIEND")) {
                    if (sc2.q.f129323a.e()) {
                        NoteItemBean noteItemBean = this.f140070c;
                        ArrayList<y62.b> x14 = this.f140069b.x();
                        ArrayList arrayList = new ArrayList(CollectionsKt__IterablesKt.collectionSizeOrDefault(x14, 10));
                        Iterator<T> it3 = x14.iterator();
                        while (it3.hasNext()) {
                            arrayList.add(it3.next().a());
                        }
                        page = new SharedUserPageWithUsers(noteItemBean, arrayList, false, null, 12, null);
                    } else {
                        page = new SharedUserPage(this.f140070c, false, null, 6, null);
                    }
                    Integer num = this.f140075h;
                    if (num == null) {
                        Routers.build(page.getUrl()).with(PageExtensionsKt.toBundle(page)).open(this.f140068a);
                        break;
                    } else {
                        Routers.build(page.getUrl()).with(PageExtensionsKt.toBundle(page)).open(this.f140068a, num.intValue());
                        break;
                    }
                }
                break;
            case 998059590:
                break;
            case 1003357027:
                if (str.equals("TYPE_PRIVACY")) {
                    rc2.c cVar2 = rc2.c.f125713a;
                    Activity activity2 = this.f140068a;
                    String id6 = this.f140070c.getId();
                    Intrinsics.checkNotNullExpressionValue(id6, "noteItemBean.id");
                    rc2.c.d(cVar2, activity2, id6, str, new a(this, str), null, 16, null);
                    break;
                }
                break;
            case 1156602558:
                if (str.equals("TYPE_LINKED")) {
                    if (sc2.q.f129323a.d()) {
                        rc2.c.g(this.f140068a, this.f140069b.j(), this.f140071d);
                        ShareOperateService shareOperateService = (ShareOperateService) gd2.a.f81806c.b(ShareOperateService.class);
                        String str2 = this.f140069b.e() ? q.SHARE_LINK_TYPE_CNY_SHARE_NOTE : "note";
                        String id7 = this.f140070c.getId();
                        Intrinsics.checkNotNullExpressionValue(id7, "noteItemBean.id");
                        r<q> W0 = shareOperateService.genShareCopyLink(str2, id7, this.f140069b.j()).W0(gw2.a.a());
                        Intrinsics.checkNotNullExpressionValue(W0, "Skynet.getService(ShareO…dSchedulers.mainThread())");
                        a0 a0Var = a0.D;
                        Intrinsics.checkNotNullExpressionValue(a0Var, "UNBOUND");
                        Object n14 = W0.n(com.uber.autodispose.d.b(a0Var));
                        Intrinsics.checkExpressionValueIsNotNull(n14, "this.`as`(AutoDispose.autoDisposable(provider))");
                        ((y) n14).a(new j(this), m.f140065a);
                    } else {
                        rc2.c.g(this.f140068a, this.f140069b.j(), this.f140071d);
                    }
                    Function1<String, Unit> function12 = this.f140077j;
                    if (function12 != null) {
                        function12.invoke(str);
                        break;
                    }
                }
                break;
            case 1190473055:
                if (str.equals("TYPE_MODIFY")) {
                    rc2.c cVar3 = rc2.c.f125713a;
                    Activity activity3 = this.f140068a;
                    String id8 = this.f140070c.getId();
                    Intrinsics.checkNotNullExpressionValue(id8, "noteItemBean.id");
                    rc2.c.d(cVar3, activity3, id8, str, new b(this, str), null, 16, null);
                    break;
                }
                break;
            case 1324747225:
                if (str.equals("TYPE_REPORT")) {
                    int i14 = this.f140071d;
                    if (i14 != 4 && i14 != 5) {
                        String str3 = i14 != 3 ? i14 != 4 ? "note_detail_r10" : "video_feed" : "follow_feed";
                        String str4 = i14 == 3 ? this.f140078k ? "分享_上" : "分享_下" : "分享_举报";
                        f fVar = (f) e30.c.b(f.class);
                        if (fVar != null) {
                            Activity activity4 = this.f140068a;
                            int i15 = this.f140073f;
                            String str5 = this.f140072e;
                            String str6 = this.f140076i;
                            f.a.a(fVar, activity4, i15, str3, str5, "note", str5, str6, t(str6), str4, Boolean.FALSE, this.f140072e, false, null, false, 14336, null);
                            break;
                        }
                    } else {
                        Function1<String, Unit> function13 = this.f140077j;
                        if (function13 != null) {
                            function13.invoke("TYPE_REPORT");
                            break;
                        }
                    }
                }
                break;
            case 1367008910:
                break;
            case 1574105051:
                break;
            case 1749828230:
                if (str.equals("TYPE_TAGGED_ME")) {
                    Routers.build(Pages.PAGE_TAGGED_ME).withString("note_id", this.f140070c.getId()).open(this.f140068a);
                    Function1<String, Unit> function14 = this.f140077j;
                    if (function14 != null) {
                        function14.invoke(str);
                        break;
                    }
                }
                break;
            case 1816350447:
                if (str.equals("TYPE_UNFOLLOW")) {
                    DMCAlertDialogBuilder dMCAlertDialogBuilder = new DMCAlertDialogBuilder(this.f140068a);
                    dMCAlertDialogBuilder.setMessage(R$string.dye).setPositiveButton(R$string.dx9, new f(this)).setNegativeButton(R$string.dvt, g.f140058a);
                    dMCAlertDialogBuilder.create();
                    dMCAlertDialogBuilder.show();
                    break;
                }
                break;
        }
        h50.c.a("operate = " + str);
    }

    public final void p(String str, boolean z14) {
        this.f140070c.share_link = this.f140069b.j();
        v vVar = new v();
        vVar.set("bean", this.f140070c);
        vVar.set("show_dialog", Boolean.valueOf(z14));
        vVar.set("source", this.f140076i);
        oc2.q.f113723a.d().a(new u(this.f140068a, str, vVar));
    }

    public final void r(String str, int i10) {
        this.f140070c.share_link = this.f140069b.j();
        j1.d(this.f140068a, str, this.f140070c, this.f140071d, this.f140072e, this.f140073f, i10);
    }

    public final Activity s() {
        return this.f140068a;
    }

    public final String t(String str) {
        if (str == null) {
            str = "";
        }
        if (Intrinsics.areEqual(str, "explore_feed")) {
            return "explore";
        }
        if (Intrinsics.areEqual(str, "nearby_feed")) {
            return "nearby";
        }
        if (Intrinsics.areEqual(str, "video_feed")) {
            return "video_feed";
        }
        if (Intrinsics.areEqual(str, "profile_page")) {
            return "profile.me";
        }
        if (Intrinsics.areEqual(str, "user_page")) {
            return "profile.userview";
        }
        if (StringsKt__StringsJVMKt.startsWith$default(str, SurveyItemBean.SURVEY_DATA_SOURCE_SEARCH, false, 2, null)) {
            return SurveyItemBean.SURVEY_DATA_SOURCE_SEARCH;
        }
        return (Intrinsics.areEqual(str, "topic.gallery") || Intrinsics.areEqual(str, CapaDeeplinkUtils.DEEPLINK_PAGE) || (StringsKt__StringsJVMKt.endsWith$default(str, ".page", false, 2, null))) ? "tag_page" : str;
    }
}