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


package yo0;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import cn.jiguang.union.ads.api.JUnionAdError;
import com.alibaba.baichuan.trade.biz.applink.adapter.AppLinkConstants;
import com.tencent.wcdb.database.SQLiteDatabase;
import com.xingin.capa.lib.R$string;
import com.xingin.capa.lib.bean.OnBoardBean;
import com.xingin.capa.lib.post.utils.PostSourceUtils;
import com.xingin.capa.v2.framework.config.PreCapaConfigManager;
import com.xingin.capa.v2.framework.router.CapaDeepLinkWarnActivity;
import com.xingin.capa.v2.framework.router.EmptyEntranceActivity;
import com.xingin.capa.v2.session2.impl.NoteEditorImpl;
import com.xingin.capa.v2.utils.s;
import com.xingin.entities.db.CapaDraftModel;
import com.xingin.pages.CapaDeeplinkUtils;
import com.xingin.pages.Pages;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.jvm.JvmStatic;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import of0.v;
import of0.w;
import uo0.g;
import w13.b7;
import w13.y6;
import w13.z6;
import z60.h;

@Metadata(bv = {}, d1 = {"\u00008\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\t\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u000e\bÆ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u001d\u0010\u001eJ$\u0010\t\u001a\u00020\b2\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u00042\u0006\u0010\u0007\u001a\u00020\u0006H\u0007J\u0018\u0010\n\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004J(\u0010\u000e\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\r\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u0006H\u0002J \u0010\u0012\u001a\u00020\u00112\u0006\u0010\u0003\u001a\u00020\u00012\u0006\u0010\u0010\u001a\u00020\u000f2\u0006\u0010\r\u001a\u00020\u0004H\u0002J\u0018\u0010\u0013\u001a\u00020\b2\u0006\u0010\f\u001a\u00020\u000b2\u0006\u0010\u0003\u001a\u00020\u0002H\u0002J\u0018\u0010\u0016\u001a\u00020\b2\u0006\u0010\u0014\u001a\u00020\u000b2\u0006\u0010\u0015\u001a\u00020\u000bH\u0002J \u0010\u0018\u001a\u00020\b2\u0006\u0010\u0014\u001a\u00020\u000b2\u0006\u0010\u0015\u001a\u00020\u000b2\u0006\u0010\u0017\u001a\u00020\u0011H\u0002J\u0018\u0010\u0019\u001a\u00020\b2\u0006\u0010\u0014\u001a\u00020\u000b2\u0006\u0010\u0015\u001a\u00020\u000bH\u0002R\u0011\u0010\u001c\u001a\u00020\u00118F¢\u0006\u0006\u001a\u0004\b\u001a\u0010\u001b¨\u0006\u001f"}, d2 = {"Lyo0/f;", "", "Landroid/content/Context;", "context", "Landroid/os/Bundle;", "bundle", "", AppLinkConstants.REQUESTCODE, "", h.f160753a, "i", "", "deepLink", "jumpBundle", "j", "", "draftId", "", y7.f.f156778k, "k", "sourceType", "type", "q", "resourceDownloaded", "o", "m", "g", "()Z", "blockPageJump", "<init>", "()V", "capa_library_release"}, k = 1, mv = {1, 6, 0})
/* compiled from: CapaEntrance.kt */
public final class f {

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

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

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

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

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

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ wp0.e f158744d;

        /* renamed from: e  reason: collision with root package name */
        public final /* synthetic */ Bundle f158745e;

        /* renamed from: f  reason: collision with root package name */
        public final /* synthetic */ long f158746f;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public a(String str, String str2, Context context, wp0.e eVar, Bundle bundle, long j14) {
            super(1);
            this.f158741a = str;
            this.f158742b = str2;
            this.f158743c = context;
            this.f158744d = eVar;
            this.f158745e = bundle;
            this.f158746f = j14;
        }

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

        public final void invoke(boolean z14) {
            f.f158740a.o(this.f158741a, this.f158742b, z14);
            k.f158769a.h(this.f158743c, this.f158744d, this.f158745e, this.f158746f);
        }
    }

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

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

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

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

        /* renamed from: d  reason: collision with root package name */
        public final /* synthetic */ wp0.e f158750d;

        /* renamed from: e  reason: collision with root package name */
        public final /* synthetic */ Bundle f158751e;

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public b(String str, String str2, Context context, wp0.e eVar, Bundle bundle) {
            super(1);
            this.f158747a = str;
            this.f158748b = str2;
            this.f158749c = context;
            this.f158750d = eVar;
            this.f158751e = bundle;
        }

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

        public final void invoke(boolean z14) {
            f.f158740a.o(this.f158747a, this.f158748b, z14);
            k.i(k.f158769a, this.f158749c, this.f158750d, this.f158751e, 0, 8, null);
        }
    }

    @Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lw13/z6$a;", "", "a", "(Lw13/z6$a;)V"}, k = 3, mv = {1, 6, 0})
    /* compiled from: CapaEntrance.kt */
    public static final class c extends Lambda implements Function1<z6.a, Unit> {

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

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

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

        public final void a(z6.a aVar) {
            Intrinsics.checkNotNullParameter(aVar, "$this$withCapaLaunchError");
            aVar.t(425);
            aVar.u(1.0f);
            aVar.r(10001);
            aVar.v(this.f158752a);
            aVar.s(this.f158753b);
        }

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

    @Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lw13/y6$a;", "", "a", "(Lw13/y6$a;)V"}, k = 3, mv = {1, 6, 0})
    /* compiled from: CapaEntrance.kt */
    public static final class d extends Lambda implements Function1<y6.a, Unit> {

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

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

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

        /* JADX INFO: super call moved to the top of the method (can break code semantics) */
        public d(String str, String str2, boolean z14) {
            super(1);
            this.f158754a = str;
            this.f158755b = str2;
            this.f158756c = z14;
        }

        public final void a(y6.a aVar) {
            Intrinsics.checkNotNullParameter(aVar, "$this$withCapaLaunchEnd");
            aVar.t(427);
            aVar.u(1.0f);
            aVar.s(this.f158754a);
            aVar.v(this.f158755b);
            aVar.r(this.f158756c ? 1 : 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(y6.a aVar) {
            a(aVar);
            return Unit.INSTANCE;
        }
    }

    @Metadata(bv = {}, d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lw13/b7$a;", "", "a", "(Lw13/b7$a;)V"}, k = 3, mv = {1, 6, 0})
    /* compiled from: CapaEntrance.kt */
    public static final class e extends Lambda implements Function1<b7.a, Unit> {

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

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

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

        public final void a(b7.a aVar) {
            Intrinsics.checkNotNullParameter(aVar, "$this$withCapaLaunchStart");
            aVar.s(426);
            aVar.t(1.0f);
            aVar.r(this.f158757a);
            aVar.u(this.f158758b);
        }

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

    /* JADX WARNING: Code restructure failed: missing block: B:11:0x002a, code lost:
        if (r1.equals(com.xingin.pages.Pages.PAGE_DRAFT_LIST) != false) goto L_0x0036;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:13:0x0033, code lost:
        if (r1.equals("notes_draft_box") == false) goto L_0x0062;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:14:0x0036, code lost:
        yo0.k.f158769a.w(r3, r4);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:25:?, code lost:
        return;
     */
    @JvmStatic
    public static final void h(Context context, Bundle bundle, int i10) {
        if (context != null) {
            Bundle bundle2 = bundle == null ? new Bundle() : bundle;
            n nVar = n.f158929a;
            String string = bundle2.getString("key_raw_url");
            if (string == null) {
                string = "";
            }
            String v14 = nVar.v(string);
            switch (v14.hashCode()) {
                case -687972471:
                    if (v14.equals(Pages.PAGE_CAPA_FILTER_LIB)) {
                        k.f158769a.s(context, bundle, i10);
                        return;
                    }
                    f158740a.j(context, v14, bundle2, i10);
                    return;
                case 3446944:
                    if (v14.equals("post")) {
                        if (!zo0.b.f163176a.i(context, bundle2, i10)) {
                            f158740a.j(context, v14, bundle2, i10);
                            return;
                        }
                        return;
                    }
                    f158740a.j(context, v14, bundle2, i10);
                    return;
                case 515897903:
                    break;
                case 2065821354:
                    break;
                default:
                    f158740a.j(context, v14, bundle2, i10);
                    return;
            }
        }
    }

    public static final void l(Context context) {
        Intrinsics.checkNotNullParameter(context, "$context");
        context.startActivity(p13.a.a(context, CapaDeepLinkWarnActivity.class, new Pair[0]));
    }

    public static final void n(String str, String str2) {
        Intrinsics.checkNotNullParameter(str, "$sourceType");
        Intrinsics.checkNotNullParameter(str2, "$type");
        qe2.a.a().p4("capa_launch_error").J1(new c(str, str2)).b();
    }

    public static final void p(String str, String str2, boolean z14) {
        Intrinsics.checkNotNullParameter(str, "$type");
        Intrinsics.checkNotNullParameter(str2, "$sourceType");
        qe2.a.a().p4("capa_launch_end").I1(new d(str, str2, z14)).b();
    }

    public static final void r(String str, String str2) {
        Intrinsics.checkNotNullParameter(str, "$type");
        Intrinsics.checkNotNullParameter(str2, "$sourceType");
        qe2.a.a().p4("capa_launch_start").L1(new e(str, str2)).b();
    }

    public final boolean f(Object obj, long j14, Bundle bundle) {
        CapaDraftModel B = uo0.e.B(j14);
        if (B == null) {
            return false;
        }
        wp0.e g10 = xp0.a.f155456a.g(B);
        g10.i().setDraftSource(bundle.getInt(CapaDeeplinkUtils.KEY_DRAFT_SOURCE, -1));
        g.f138204a.a(g10);
        bundle.putString("source", g10.i().getSource());
        k.f158769a.F(obj, g10, j14);
        return true;
    }

    public final boolean g() {
        boolean a14 = w.a(v.f114200a);
        if (a14) {
            al2.e.f(R$string.beq);
        }
        return a14;
    }

    public final void i(Context context, Bundle bundle) {
        String str;
        Intrinsics.checkNotNullParameter(context, "context");
        n nVar = n.f158929a;
        if (bundle == null || (str = bundle.getString("key_raw_url")) == null) {
            str = "";
        }
        String v14 = nVar.v(str);
        eq0.e.f73653a.X0(v14);
        int hashCode = v14.hashCode();
        if (hashCode == -1913219326 ? v14.equals(Pages.CAPA_NOTE_POST) : hashCode == -788670634 ? v14.equals(Pages.CAPA_EDIT_POST) : !(hashCode != 1084596080 || !v14.equals(Pages.CAPA_POST_DRAFT))) {
            Intent a14 = p13.a.a(context, EmptyEntranceActivity.class, new Pair[0]);
            if (bundle != null) {
                a14.putExtras(bundle);
            }
            if (!(context instanceof Activity)) {
                a14.addFlags(SQLiteDatabase.CREATE_IF_NECESSARY);
            }
            context.startActivity(a14);
            return;
        }
        h(context, bundle, -1);
    }

    /* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARNING: Code restructure failed: missing block: B:24:0x0093, code lost:
        if (r23.equals(com.xingin.pages.Pages.PAGE_POST_NOTE) == false) goto L_0x005b;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:26:0x009c, code lost:
        if (r23.equals("post_video_album") == false) goto L_0x005b;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:31:0x00c1, code lost:
        if (r23.equals(com.xingin.pages.Pages.PAGE_POST_VIDEO) == false) goto L_0x005b;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:43:0x00fb, code lost:
        if (r23.equals("post") == false) goto L_0x005b;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:45:0x0105, code lost:
        if (r23.equals(com.xingin.pages.Pages.NEW_POST) == false) goto L_0x005b;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:51:0x0139, code lost:
        if (r23.equals(com.xingin.pages.Pages.PAGE_CHOOSE_PUSH_TYPE) == false) goto L_0x005b;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:52:0x013d, code lost:
        r15.B(true);
        yo0.r.f158947a.a(r22, r24, r25, r15);
     */
    /* JADX WARNING: Removed duplicated region for block: B:100:0x0215  */
    /* JADX WARNING: Removed duplicated region for block: B:68:0x01a7  */
    /* JADX WARNING: Removed duplicated region for block: B:72:0x01b4  */
    /* JADX WARNING: Removed duplicated region for block: B:73:0x01bb  */
    /* JADX WARNING: Removed duplicated region for block: B:75:0x01bf  */
    /* JADX WARNING: Removed duplicated region for block: B:78:0x01cf  */
    /* JADX WARNING: Removed duplicated region for block: B:79:0x01d4  */
    /* JADX WARNING: Removed duplicated region for block: B:82:0x01db  */
    /* JADX WARNING: Removed duplicated region for block: B:97:0x0210  */
    /* JADX WARNING: Removed duplicated region for block: B:98:0x0212  */
    public final void j(Context context, String str, Bundle bundle, int i10) {
        String str2;
        String str3;
        boolean z14;
        String second;
        Pair<String, String> t14;
        String f14;
        OnBoardBean e14;
        boolean z15;
        PreCapaConfigManager preCapaConfigManager;
        String first;
        String second2;
        n nVar = n.f158929a;
        String l14 = nVar.l(bundle);
        String str4 = "others";
        String str5 = l14 == null ? str4 : l14;
        String r14 = nVar.r(str);
        q(str5, r14);
        if (g()) {
            m(str5, r14);
            return;
        }
        nVar.f();
        wp0.e j14 = i80.d.j(ut0.b.CAPA_NOTE_UNKNOWN);
        boolean o14 = h60.c.f85022a.o();
        if (!o14) {
            String string = bundle.getString("source");
            NoteEditorImpl i14 = j14.i();
            if (string == null) {
                string = PostSourceUtils.Companion.generateSourceJson(str4);
            }
            i14.setSource(string);
        }
        bundle.putString("source_type", str5);
        boolean z16 = false;
        String str6 = null;
        String str7 = null;
        Long l15 = null;
        switch (str.hashCode()) {
            case -1913219326:
                if (str.equals(Pages.CAPA_NOTE_POST)) {
                    Pair<String, String> t15 = nVar.t(bundle);
                    p pVar = p.f158940a;
                    if (t15 == null || (second = t15.getSecond()) == null) {
                        if (t15 != null) {
                            str6 = t15.getFirst();
                        }
                        if (str6 != null) {
                            str4 = str6;
                        }
                    } else {
                        str4 = second;
                    }
                    pVar.h(str4);
                    j14.B(true);
                    str3 = str5;
                    str2 = r14;
                    z14 = true;
                    nVar.w(context, bundle, j14, new a(str5, r14, context, j14, bundle, System.currentTimeMillis()));
                    z16 = true;
                    break;
                }
                str3 = str5;
                str2 = r14;
                z14 = true;
                long currentTimeMillis = System.currentTimeMillis();
                t14 = nVar.t(bundle);
                p pVar2 = p.f158940a;
                if (t14 != null || (second2 = t14.getSecond()) == null) {
                    first = t14 != null ? t14.getFirst() : null;
                    if (first != null) {
                        str4 = first;
                    }
                } else {
                    str4 = second2;
                }
                pVar2.h(str4);
                x60.c cVar = x60.c.f152480a;
                f14 = cVar.f();
                e14 = cVar.e();
                if (!Intrinsics.areEqual(f14, e14 != null ? e14.getType() : null)) {
                    String g10 = cVar.g();
                    OnBoardBean e15 = cVar.e();
                    if (e15 != null) {
                        str7 = e15.getType();
                    }
                    if (!Intrinsics.areEqual(g10, str7)) {
                        z15 = false;
                        if ((!cVar.d() && cVar.h()) || z15) {
                            cVar.n(true);
                        }
                        preCapaConfigManager = PreCapaConfigManager.f51211a;
                        if (preCapaConfigManager.e().length() <= 0) {
                            String e16 = preCapaConfigManager.e();
                            bundle.putString(CapaDeeplinkUtils.DEEPLINK_PAGE, "{\"page_type\":" + e16 + com.alipay.sdk.util.f.f18326d);
                        }
                        k.f158769a.h(context, j14, bundle, currentTimeMillis);
                        break;
                    }
                }
                z15 = true;
                cVar.n(true);
                preCapaConfigManager = PreCapaConfigManager.f51211a;
                if (preCapaConfigManager.e().length() <= 0) {
                }
                k.f158769a.h(context, j14, bundle, currentTimeMillis);
                break;
            case -796442427:
                break;
            case -788670634:
                if (str.equals(Pages.CAPA_EDIT_POST)) {
                    j14.B(true);
                    bundle.putString("source_type", "re_edit");
                    nVar.w(context, bundle, j14, new b(str5, r14, context, j14, bundle));
                    str3 = str5;
                    str2 = r14;
                    z16 = true;
                    z14 = true;
                    break;
                }
                str3 = str5;
                str2 = r14;
                z14 = true;
                long currentTimeMillis2 = System.currentTimeMillis();
                t14 = nVar.t(bundle);
                p pVar22 = p.f158940a;
                if (t14 != null) {
                    break;
                }
                if (t14 != null) {
                }
                if (first != null) {
                }
                pVar22.h(str4);
                x60.c cVar2 = x60.c.f152480a;
                f14 = cVar2.f();
                e14 = cVar2.e();
                if (!Intrinsics.areEqual(f14, e14 != null ? e14.getType() : null)) {
                }
                z15 = true;
                cVar2.n(true);
                preCapaConfigManager = PreCapaConfigManager.f51211a;
                if (preCapaConfigManager.e().length() <= 0) {
                }
                k.f158769a.h(context, j14, bundle, currentTimeMillis2);
                break;
            case -699420538:
                break;
            case 3446944:
                break;
            case 1084596080:
                if (str.equals(Pages.CAPA_POST_DRAFT)) {
                    Long valueOf = Long.valueOf(bundle.getLong("draftId", -1));
                    if (valueOf.longValue() >= 0) {
                        l15 = valueOf;
                    }
                    if (l15 != null) {
                        f158740a.f(context, l15.longValue(), bundle);
                    }
                    str3 = str5;
                    str2 = r14;
                    z14 = true;
                    break;
                }
                str3 = str5;
                str2 = r14;
                z14 = true;
                long currentTimeMillis22 = System.currentTimeMillis();
                t14 = nVar.t(bundle);
                p pVar222 = p.f158940a;
                if (t14 != null) {
                }
                if (t14 != null) {
                }
                if (first != null) {
                }
                pVar222.h(str4);
                x60.c cVar22 = x60.c.f152480a;
                f14 = cVar22.f();
                e14 = cVar22.e();
                if (!Intrinsics.areEqual(f14, e14 != null ? e14.getType() : null)) {
                }
                z15 = true;
                cVar22.n(true);
                preCapaConfigManager = PreCapaConfigManager.f51211a;
                if (preCapaConfigManager.e().length() <= 0) {
                }
                k.f158769a.h(context, j14, bundle, currentTimeMillis22);
                break;
            case 1100954186:
                break;
            case 1472492988:
                if (str.equals(Pages.PAGE_CAPA_VIDEO_EDIT)) {
                    String string2 = bundle.getString("share_video_path", "");
                    Intrinsics.checkNotNullExpressionValue(string2, "jumpBundle.getString(Cap…KEY_SHARE_VIDEO_PATH, \"\")");
                    k.Z(context, string2, null, 4, null);
                    str3 = str5;
                    str2 = r14;
                    z14 = true;
                    break;
                }
                str3 = str5;
                str2 = r14;
                z14 = true;
                long currentTimeMillis222 = System.currentTimeMillis();
                t14 = nVar.t(bundle);
                p pVar2222 = p.f158940a;
                if (t14 != null) {
                }
                if (t14 != null) {
                }
                if (first != null) {
                }
                pVar2222.h(str4);
                x60.c cVar222 = x60.c.f152480a;
                f14 = cVar222.f();
                e14 = cVar222.e();
                if (!Intrinsics.areEqual(f14, e14 != null ? e14.getType() : null)) {
                }
                z15 = true;
                cVar222.n(true);
                preCapaConfigManager = PreCapaConfigManager.f51211a;
                if (preCapaConfigManager.e().length() <= 0) {
                }
                k.f158769a.h(context, j14, bundle, currentTimeMillis222);
                break;
            case 1551266956:
                break;
            case 1559303235:
                break;
            case 1647570140:
                if (str.equals(Pages.PAGE_CAPA_IMAGE_EDIT)) {
                    k.f158769a.x(context, bundle);
                    str3 = str5;
                    str2 = r14;
                    z14 = true;
                    break;
                }
                str3 = str5;
                str2 = r14;
                z14 = true;
                long currentTimeMillis2222 = System.currentTimeMillis();
                t14 = nVar.t(bundle);
                p pVar22222 = p.f158940a;
                if (t14 != null) {
                }
                if (t14 != null) {
                }
                if (first != null) {
                }
                pVar22222.h(str4);
                x60.c cVar2222 = x60.c.f152480a;
                f14 = cVar2222.f();
                e14 = cVar2222.e();
                if (!Intrinsics.areEqual(f14, e14 != null ? e14.getType() : null)) {
                }
                z15 = true;
                cVar2222.n(true);
                preCapaConfigManager = PreCapaConfigManager.f51211a;
                if (preCapaConfigManager.e().length() <= 0) {
                }
                k.f158769a.h(context, j14, bundle, currentTimeMillis2222);
                break;
            case 1934258727:
                if (str.equals(Pages.PAGE_CAPA_CAMERA)) {
                    k.r(context, bundle, i10, null, 0, 24, null);
                    str3 = str5;
                    str2 = r14;
                    z14 = true;
                    break;
                }
                str3 = str5;
                str2 = r14;
                z14 = true;
                long currentTimeMillis22222 = System.currentTimeMillis();
                t14 = nVar.t(bundle);
                p pVar222222 = p.f158940a;
                if (t14 != null) {
                }
                if (t14 != null) {
                }
                if (first != null) {
                }
                pVar222222.h(str4);
                x60.c cVar22222 = x60.c.f152480a;
                f14 = cVar22222.f();
                e14 = cVar22222.e();
                if (!Intrinsics.areEqual(f14, e14 != null ? e14.getType() : null)) {
                }
                z15 = true;
                cVar22222.n(true);
                preCapaConfigManager = PreCapaConfigManager.f51211a;
                if (preCapaConfigManager.e().length() <= 0) {
                }
                k.f158769a.h(context, j14, bundle, currentTimeMillis22222);
                break;
            default:
                str3 = str5;
                str2 = r14;
                z14 = true;
                long currentTimeMillis222222 = System.currentTimeMillis();
                t14 = nVar.t(bundle);
                p pVar2222222 = p.f158940a;
                if (t14 != null) {
                }
                if (t14 != null) {
                }
                if (first != null) {
                }
                pVar2222222.h(str4);
                x60.c cVar222222 = x60.c.f152480a;
                f14 = cVar222222.f();
                e14 = cVar222222.e();
                if (!Intrinsics.areEqual(f14, e14 != null ? e14.getType() : null)) {
                }
                z15 = true;
                cVar222222.n(true);
                preCapaConfigManager = PreCapaConfigManager.f51211a;
                if (preCapaConfigManager.e().length() <= 0) {
                }
                k.f158769a.h(context, j14, bundle, currentTimeMillis222222);
                break;
        }
        if (!o14) {
            h.f158761a.e(bundle, i80.d.f89172a.b().k());
        }
        k(str, context);
        if (!z16) {
            o(str3, str2, z14);
        }
    }

    public final void k(String str, Context context) {
        if (g20.a.c()) {
            if (!(str == null || str.length() == 0) && !Intrinsics.areEqual(str, Pages.CAPA_NOTE_POST) && !Intrinsics.areEqual(str, Pages.CAPA_EDIT_POST) && !Intrinsics.areEqual(str, Pages.NEW_POST) && !Intrinsics.areEqual(str, Pages.CAPA_POST_DRAFT)) {
                mi2.a.B.M().postDelayed(new b(context), 1000);
            }
        }
    }

    public final void m(String str, String str2) {
        we2.d.c(new d(str, str2));
        s.a("CapaEntrance", "Capa Start failed: " + str + ", target: " + str2);
    }

    public final void o(String str, String str2, boolean z14) {
        we2.d.c(new e(str2, str, z14));
        s.a("CapaEntrance", "Capa Start success: " + str + ", target: " + str2 + ", resource downloaded: " + z14);
    }

    public final void q(String str, String str2) {
        we2.d.c(new c(str2, str));
        s.a("CapaEntrance", "Capa Starting: " + str + ", target: " + str2);
    }
}