导航菜单

页面标题

页面副标题

Mitra Bukalapak v2.55.0 - QrDeeplink.java 源代码

正在查看: Mitra Bukalapak v2.55.0 应用的 QrDeeplink.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.bukalapak.mitra.feature.deeplink.registry;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.bukalapak.android.lib.api4.tungku.data.Qriscode;
import com.bukalapak.mitra.feature.deeplink.MitraDeeplink;
import defpackage.b17$a;
import defpackage.bc8;
import defpackage.dd0;
import defpackage.k54;
import java.io.Serializable;
import kotlin.Metadata;

@Metadata(d1 = {"\u0000J\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\bÆ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b#\u0010$J\u0018\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\t\u001a\u0004\u0018\u00010\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u0018\u0010\n\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\u000b\u001a\u0004\u0018\u00010\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u0018\u0010\f\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\r\u001a\u0004\u0018\u00010\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u0018\u0010\u000e\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\u000f\u001a\u0004\u0018\u00010\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007JU\u0010\u0015\u001a\u00028\u0000\"\u0004\b\u0000\u0010\u00102\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u00042.\u0010\u0014\u001a*\u0012\u0004\u0012\u00020\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0012\u0012\u0006\u0012\u0004\u0018\u00010\u0012\u0012\n\u0012\b\u0012\u0004\u0012\u00020\b0\u0013\u0012\u0004\u0012\u00028\u00000\u0011H\u0002¢\u0006\u0004\b\u0015\u0010\u0016Ju\u0010\u0019\u001a\u00028\u0000\"\u0004\b\u0000\u0010\u00102\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u00042.\u0010\u0017\u001a*\u0012\u0004\u0012\u00020\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0012\u0012\u0006\u0012\u0004\u0018\u00010\u0012\u0012\n\u0012\b\u0012\u0004\u0012\u00020\b0\u0013\u0012\u0004\u0012\u00028\u00000\u00112\u001e\u0010\u0014\u001a\u001a\u0012\u0004\u0012\u00020\u0002\u0012\n\u0012\b\u0012\u0004\u0012\u00020\b0\u0013\u0012\u0004\u0012\u00028\u00000\u0018H\u0002¢\u0006\u0004\b\u0019\u0010\u001aR\u0014\u0010\u001e\u001a\u00020\u001b8BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u001c\u0010\u001dR\u0014\u0010\"\u001a\u00020\u001f8BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b \u0010!¨\u0006%"}, d2 = {"Lcom/bukalapak/mitra/feature/deeplink/registry/QrDeeplink;", "", "Landroid/content/Context;", "context", "Landroid/os/Bundle;", "extras", "Lvz8;", "goToQrCodeScreen", "Landroid/content/Intent;", "goToQrCodeScreenInternal", "goToQrisCodeScreen", "goToQrisCodeScreenInternal", "goToQrisCheckTransactionScreen", "goToQrisCheckTransactionScreenInternal", "goToQrScannerScreen", "goToQrScannerScreenInternal", "T", "Lkotlin/Function4;", "", "Lkotlin/Function0;", "body", "e", "(Landroid/content/Context;Landroid/os/Bundle;Lyx2;)Ljava/lang/Object;", "bodyLogin", "Lkotlin/Function2;", "f", "(Landroid/content/Context;Landroid/os/Bundle;Lyx2;Lux2;)Ljava/lang/Object;", "Lb17;", "d", "()Lb17;", "qrNavigation", "Loq3;", "c", "()Loq3;", "homeNavigation", "<init>", "()V", "feature_deeplink_release"}, k = 1, mv = {1, 8, 0})
public final class QrDeeplink {
    public static final QrDeeplink a = new QrDeeplink();

    @Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
    class a extends oy2 implements yx2<Context, String, String, ex2<? extends Intent>, vz8> {
        public static final a a = new a();

        a() {
            super(4, k54.class, "buildStackLogin", "buildStackLogin(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function0;)Landroidx/core/app/TaskStackBuilder;", 1);
        }

        public final vz8 k(Context context, String str, String str2, ex2<? extends Intent> ex2Var) {
            p64.h(context, "p0");
            p64.h(ex2Var, "p3");
            return k54.g(context, str, str2, ex2Var);
        }
    }

    @Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
    class b extends oy2 implements yx2<Context, String, String, ex2<? extends Intent>, Intent> {
        public static final b a = new b();

        b() {
            super(4, k54.class, "buildIntentLogin", "buildIntentLogin(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function0;)Landroid/content/Intent;", 1);
        }

        public final Intent k(Context context, String str, String str2, ex2<? extends Intent> ex2Var) {
            p64.h(context, "p0");
            p64.h(ex2Var, "p3");
            return k54.b(context, str, str2, ex2Var);
        }
    }

    @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"T", "Landroid/content/Intent;", "a", "()Landroid/content/Intent;"}, k = 3, mv = {1, 8, 0})
    static final class c extends dk4 implements ex2<Intent> {
        final Context $context;

        c(Context context) {
            super(0);
            this.$context = context;
        }

        public final Intent invoke() {
            return QrDeeplink.a.d().B(this.$context);
        }
    }

    @Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
    class d extends oy2 implements yx2<Context, String, String, ex2<? extends Intent>, vz8> {
        public static final d a = new d();

        d() {
            super(4, k54.class, "buildStackLogin", "buildStackLogin(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function0;)Landroidx/core/app/TaskStackBuilder;", 1);
        }

        public final vz8 k(Context context, String str, String str2, ex2<? extends Intent> ex2Var) {
            p64.h(context, "p0");
            p64.h(ex2Var, "p3");
            return k54.g(context, str, str2, ex2Var);
        }
    }

    @Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
    class e extends oy2 implements ux2<Context, ex2<? extends Intent>, vz8> {
        public static final e a = new e();

        e() {
            super(2, k54.class, "buildStack", "buildStack(Landroid/content/Context;Lkotlin/jvm/functions/Function0;)Landroidx/core/app/TaskStackBuilder;", 1);
        }

        public final vz8 invoke(Context context, ex2<? extends Intent> ex2Var) {
            p64.h(context, "p0");
            p64.h(ex2Var, "p1");
            return k54.f(context, ex2Var);
        }
    }

    @Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
    class f extends oy2 implements yx2<Context, String, String, ex2<? extends Intent>, Intent> {
        public static final f a = new f();

        f() {
            super(4, k54.class, "buildIntentLogin", "buildIntentLogin(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function0;)Landroid/content/Intent;", 1);
        }

        public final Intent k(Context context, String str, String str2, ex2<? extends Intent> ex2Var) {
            p64.h(context, "p0");
            p64.h(ex2Var, "p3");
            return k54.b(context, str, str2, ex2Var);
        }
    }

    @Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
    class g extends oy2 implements ux2<Context, ex2<? extends Intent>, Intent> {
        public static final g a = new g();

        g() {
            super(2, k54.class, "buildIntent", "buildIntent(Landroid/content/Context;Lkotlin/jvm/functions/Function0;)Landroid/content/Intent;", 1);
        }

        public final Intent invoke(Context context, ex2<? extends Intent> ex2Var) {
            p64.h(context, "p0");
            p64.h(ex2Var, "p1");
            return k54.a(context, ex2Var);
        }
    }

    @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"T", "Landroid/content/Intent;", "a", "()Landroid/content/Intent;"}, k = 3, mv = {1, 8, 0})
    static final class h extends dk4 implements ex2<Intent> {
        final Context $context;

        h(Context context) {
            super(0);
            this.$context = context;
        }

        public final Intent invoke() {
            return b17$a.a(QrDeeplink.a.d(), this.$context, null, null, null, 14, null);
        }
    }

    @Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"T", "Landroid/content/Intent;", "a", "()Landroid/content/Intent;"}, k = 3, mv = {1, 8, 0})
    static final class i extends dk4 implements ex2<Intent> {
        final Context $context;

        i(Context context) {
            super(0);
            this.$context = context;
        }

        public final Intent invoke() {
            return a.a(QrDeeplink.a.c(), this.$context, 0, (String) null, (String) null, (String) null, (Long) null, (String) null, false, false, (String) null, false, 2046, (Object) null);
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Landroid/content/Intent;", "a", "()Landroid/content/Intent;"}, k = 3, mv = {1, 8, 0})
    static final class j extends dk4 implements ex2<Intent> {
        public static final j g = new j();

        j() {
            super(0);
        }

        public final Intent invoke() {
            return new Intent("DeeplinkTaskIntent");
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Landroid/content/Intent;", "a", "()Landroid/content/Intent;"}, k = 3, mv = {1, 8, 0})
    static final class k extends dk4 implements ex2<Intent> {
        final Context $context;
        final Qriscode $qrisCode;
        final String $rrn;

        k(Context context, Qriscode qriscode, String str) {
            super(0);
            this.$context = context;
            this.$qrisCode = qriscode;
            this.$rrn = str;
        }

        public final Intent invoke() {
            return b17$a.c(QrDeeplink.a.d(), this.$context, d48.a.c0().b(), null, this.$qrisCode, this.$rrn, 4, null);
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Landroid/content/Intent;", "a", "()Landroid/content/Intent;"}, k = 3, mv = {1, 8, 0})
    static final class l extends dk4 implements ex2<Intent> {
        public static final l g = new l();

        l() {
            super(0);
        }

        public final Intent invoke() {
            return new Intent("DeeplinkTaskIntent");
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Landroid/content/Intent;", "a", "()Landroid/content/Intent;"}, k = 3, mv = {1, 8, 0})
    static final class m extends dk4 implements ex2<Intent> {
        public static final m g = new m();

        m() {
            super(0);
        }

        public final Intent invoke() {
            return new Intent("DeeplinkTaskIntent");
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Landroid/content/Intent;", "a", "()Landroid/content/Intent;"}, k = 3, mv = {1, 8, 0})
    static final class n extends dk4 implements ex2<Intent> {
        final Context $context;
        final String $source;

        n(Context context, String str) {
            super(0);
            this.$context = context;
            this.$source = str;
        }

        public final Intent invoke() {
            return b17$a.d(QrDeeplink.a.d(), this.$context, false, null, this.$source, null, 22, null);
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Landroid/content/Intent;", "a", "()Landroid/content/Intent;"}, k = 3, mv = {1, 8, 0})
    static final class o extends dk4 implements ex2<Intent> {
        final Intent $intent;

        o(Intent intent) {
            super(0);
            this.$intent = intent;
        }

        public final Intent invoke() {
            return this.$intent;
        }
    }

    @Metadata(d1 = {"\u0000\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0001\u001a\u00020\u0000H\n¢\u0006\u0004\b\u0001\u0010\u0002"}, d2 = {"Landroid/content/Intent;", "a", "()Landroid/content/Intent;"}, k = 3, mv = {1, 8, 0})
    static final class p extends dk4 implements ex2<Intent> {
        public static final p g = new p();

        p() {
            super(0);
        }

        public final Intent invoke() {
            return new Intent("DeeplinkTaskIntent");
        }
    }

    private QrDeeplink() {
    }

    public final oq3 c() {
        return xp1.a.b().c();
    }

    public final b17 d() {
        return xp1.a.b().F();
    }

    private final <T> T e(Context context, Bundle extras, yx2<? super Context, ? super String, ? super String, ? super ex2<? extends Intent>, ? extends T> body) {
        return (T) body.k(context, dd0.a(extras), (Object) null, new c(context));
    }

    private final <T> T f(Context context, Bundle extras, yx2<? super Context, ? super String, ? super String, ? super ex2<? extends Intent>, ? extends T> bodyLogin, ux2<? super Context, ? super ex2<? extends Intent>, ? extends T> body) {
        return bc8.a.b().i0() ? (T) bodyLogin.k(context, dd0.a(extras), (Object) null, new h(context)) : (T) body.invoke(context, new i(context));
    }

    @MitraDeeplink
    public static final vz8 goToQrCodeScreen(Context context, Bundle extras) {
        p64.h(context, "context");
        p64.h(extras, "extras");
        return (vz8) a.e(context, extras, a.a);
    }

    @MitraDeeplink
    public static final Intent goToQrCodeScreenInternal(Context context, Bundle extras) {
        p64.h(context, "context");
        p64.h(extras, "extras");
        return (Intent) a.e(context, extras, b.a);
    }

    @MitraDeeplink
    public static final vz8 goToQrScannerScreen(Context context, Bundle extras) {
        p64.h(context, "context");
        p64.h(extras, "extras");
        return (vz8) a.f(context, extras, d.a, e.a);
    }

    @MitraDeeplink
    public static final Intent goToQrScannerScreenInternal(Context context, Bundle extras) {
        p64.h(context, "context");
        p64.h(extras, "extras");
        return (Intent) a.f(context, extras, f.a, g.a);
    }

    @MitraDeeplink
    public static final vz8 goToQrisCheckTransactionScreen(Context context, Bundle extras) {
        p64.h(context, "context");
        p64.h(extras, "extras");
        return k54.g(context, dd0.a(extras), "/qris-check-transaction", j.g);
    }

    @MitraDeeplink
    public static final Intent goToQrisCheckTransactionScreenInternal(Context context, Bundle extras) {
        p64.h(context, "context");
        p64.h(extras, "extras");
        Bundle bundle = extras.getBundle("args");
        String string = extras.getString("rrn");
        if (string == null) {
            string = "";
        }
        boolean z = bundle != null ? bundle.getBoolean("_task_done") : false;
        Serializable serializable = bundle != null ? bundle.getSerializable("qris_code") : null;
        return z ? k54.c(context, dd0.a(extras), null, new k(context, serializable instanceof Qriscode ? (Qriscode) serializable : null, string), 4, null) : k54.b(context, dd0.a(extras), "/qris-check-transaction", l.g);
    }

    @MitraDeeplink
    public static final vz8 goToQrisCodeScreen(Context context, Bundle extras) {
        p64.h(context, "context");
        p64.h(extras, "extras");
        return k54.g(context, dd0.a(extras), "/qris", m.g);
    }

    @MitraDeeplink
    public static final Intent goToQrisCodeScreenInternal(Context context, Bundle extras) {
        p64.h(context, "context");
        p64.h(extras, "extras");
        String string = extras.getString("status");
        String string2 = extras.getString("source");
        if (string2 == null || bu8.y(string2)) {
            string2 = d48.a.c0().b();
        }
        String str = string2;
        boolean c2 = p64.c(str, "notification_push");
        if (iu0.R(iu0.k(new String[]{"approved", "submitted", "rejected"}), string) && c2) {
            return k54.c(context, dd0.a(extras), null, new n(context, str), 4, null);
        }
        Bundle bundle = extras.getBundle("args");
        if (bundle == null || !bundle.getBoolean("_task_done")) {
            return k54.b(context, dd0.a(extras), "/qris", p.g);
        }
        Serializable serializable = bundle != null ? bundle.getSerializable("qris_code") : null;
        Qriscode qriscode = serializable instanceof Qriscode ? (Qriscode) serializable : null;
        if (qriscode == null) {
            return null;
        }
        QrDeeplink qrDeeplink = a;
        Intent b2 = b17$a.b(qrDeeplink.d(), context, false, qriscode, str, null, false, 50, null);
        String action = b2.getAction();
        if (action != null) {
            switch (action.hashCode()) {
                case -2078929612:
                    if (action.equals("QrisComingSoonSheetIntent")) {
                        b17$a.n(qrDeeplink.d(), context, qriscode, str, null, 8, null);
                        return null;
                    }
                    break;
                case -1734928213:
                    if (action.equals("QrisPrintInfoSheetIntent")) {
                        b17$a.q(qrDeeplink.d(), context, qriscode, str, null, 8, null);
                        return null;
                    }
                    break;
                case -841574537:
                    if (action.equals("QrisWalletFrozenSheetIntent")) {
                        b17$a.t(qrDeeplink.d(), context, qriscode, str, null, 8, null);
                        return null;
                    }
                    break;
                case -738499692:
                    if (action.equals("QrisDisabledSheetIntent")) {
                        b17$a.p(qrDeeplink.d(), context, qriscode, str, null, 8, null);
                        return null;
                    }
                    break;
                case 1073509718:
                    if (action.equals("QrisDeactivatedSheetIntent")) {
                        b17$a.o(qrDeeplink.d(), context, qriscode, str, null, 8, null);
                        return null;
                    }
                    break;
                case 1809985926:
                    if (action.equals("QrisUnexpectedStateSheetIntent")) {
                        b17$a.s(qrDeeplink.d(), context, qriscode, str, null, 8, null);
                        return null;
                    }
                    break;
            }
        }
        return k54.c(context, dd0.a(extras), null, new o(b2), 4, null);
    }
}