导航菜单

页面标题

页面副标题

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

正在查看: Mitra Bukalapak v2.55.0 应用的 HomeDeeplink.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.mitra.feature.deeplink.MitraDeeplink;
import defpackage.dd0;
import defpackage.k54;
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\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\bÀ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b%\u0010&J\u001a\u0010\u0007\u001a\u0004\u0018\u00010\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 \u0010\u000e\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u000b\u001a\u00020\n2\u0006\u0010\r\u001a\u00020\fH\u0002J\u001a\u0010\u000f\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\u0010\u001a\u0004\u0018\u00010\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u0018\u0010\u0011\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\u0012\u001a\u0004\u0018\u00010\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u0018\u0010\u0013\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\u0014\u001a\u0004\u0018\u00010\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u0018\u0010\u0015\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\u0016\u001a\u0004\u0018\u00010\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007JU\u0010\u001b\u001a\u00028\u0000\"\u0004\b\u0000\u0010\u00172\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u00042.\u0010\u001a\u001a*\u0012\u0004\u0012\u00020\u0002\u0012\u0006\u0012\u0004\u0018\u00010\n\u0012\u0006\u0012\u0004\u0018\u00010\n\u0012\n\u0012\b\u0012\u0004\u0012\u00020\b0\u0019\u0012\u0004\u0012\u00028\u00000\u0018H\u0002¢\u0006\u0004\b\u001b\u0010\u001cJU\u0010\u001d\u001a\u00028\u0000\"\u0004\b\u0000\u0010\u00172\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u00042.\u0010\u001a\u001a*\u0012\u0004\u0012\u00020\u0002\u0012\u0006\u0012\u0004\u0018\u00010\n\u0012\u0006\u0012\u0004\u0018\u00010\n\u0012\n\u0012\b\u0012\u0004\u0012\u00020\b0\u0019\u0012\u0004\u0012\u00028\u00000\u0018H\u0002¢\u0006\u0004\b\u001d\u0010\u001cJE\u0010\u001f\u001a\u00028\u0000\"\u0004\b\u0000\u0010\u00172\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u00042\u001e\u0010\u001a\u001a\u001a\u0012\u0004\u0012\u00020\u0002\u0012\n\u0012\b\u0012\u0004\u0012\u00020\b0\u0019\u0012\u0004\u0012\u00028\u00000\u001eH\u0002¢\u0006\u0004\b\u001f\u0010 R\u0014\u0010$\u001a\u00020!8BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\"\u0010#¨\u0006'"}, d2 = {"Lcom/bukalapak/mitra/feature/deeplink/registry/HomeDeeplink;", "", "Landroid/content/Context;", "context", "Landroid/os/Bundle;", "extras", "Lvz8;", "goToHomeScreen", "Landroid/content/Intent;", "goToHomeScreenInternal", "", "deeplinkUrl", "", "resetTask", "c", "goToTabAccountProfileScreen", "goToTabAccountProfileScreenInternal", "goToGamesMenuScreen", "goToGamesMenuScreenInternal", "goToExtraFeaturesMenuScreen", "goToExtraFeaturesMenuScreenInternal", "goToLandingScreen", "goToLandingScreenInternal", "T", "Lkotlin/Function4;", "Lkotlin/Function0;", "body", "f", "(Landroid/content/Context;Landroid/os/Bundle;Lyx2;)Ljava/lang/Object;", "e", "Lkotlin/Function2;", "g", "(Landroid/content/Context;Landroid/os/Bundle;Lux2;)Ljava/lang/Object;", "Loq3;", "d", "()Loq3;", "homeNavigation", "<init>", "()V", "feature_deeplink_release"}, k = 1, mv = {1, 8, 0})
public final class HomeDeeplink {
    public static final HomeDeeplink a = new HomeDeeplink();

    @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;
        final String $deeplinkUrl;
        final String $referrerScreen;

        c(Context context, String str, String str2) {
            super(0);
            this.$context = context;
            this.$referrerScreen = str;
            this.$deeplinkUrl = str2;
        }

        public final Intent invoke() {
            return HomeDeeplink.a.d().f(this.$context, this.$referrerScreen, this.$deeplinkUrl);
        }
    }

    @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 yx2<Context, String, String, ex2<? extends Intent>, Intent> {
        public static final e a = new e();

        e() {
            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 f extends dk4 implements ex2<Intent> {
        final Context $context;
        final String $deeplinkUrl;
        final String $referrerScreen;

        f(Context context, String str, String str2) {
            super(0);
            this.$context = context;
            this.$referrerScreen = str;
            this.$deeplinkUrl = str2;
        }

        public final Intent invoke() {
            return HomeDeeplink.a.d().d(this.$context, this.$referrerScreen, this.$deeplinkUrl);
        }
    }

    @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 g extends dk4 implements ex2<Intent> {
        final Context $context;
        final String $deeplinkUrl;

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

        public final Intent invoke() {
            return HomeDeeplink.a.c(this.$context, this.$deeplinkUrl, true);
        }
    }

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

        h() {
            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 i extends oy2 implements ux2<Context, ex2<? extends Intent>, Intent> {
        public static final i a = new i();

        i() {
            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 j extends dk4 implements ex2<Intent> {
        final Context $context;
        final String $deeplinkUrl;

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

        public final Intent invoke() {
            return xp1.a.b().c().l(this.$context, d48.a.c0().b(), this.$deeplinkUrl);
        }
    }

    @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 String $deeplinkUrl;

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

        public final Intent invoke() {
            return a.a(HomeDeeplink.a.d(), this.$context, 3, this.$deeplinkUrl, (String) null, (String) null, (Long) null, (String) null, false, false, (String) null, false, 2040, (Object) null);
        }
    }

    private HomeDeeplink() {
    }

    public final Intent c(Context context, String deeplinkUrl, boolean resetTask) {
        return a.a(d(), context, 0, deeplinkUrl, (String) null, (String) null, (Long) null, d48.a.c0().b(), false, false, (String) null, resetTask, 954, (Object) null);
    }

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

    private final <T> T e(Context context, Bundle extras, yx2<? super Context, ? super String, ? super String, ? super ex2<? extends Intent>, ? extends T> body) {
        String b2;
        String a2 = dd0.a(extras);
        Bundle bundle = extras.getBundle("args");
        if (bundle == null || (b2 = bundle.getString("referrer_screen")) == null) {
            b2 = d48.a.c0().b();
        }
        p64.g(b2, "extras.getBundle(EXTRA_A… ?: Screens.DEEPLINK.name");
        return (T) body.k(context, a2, (Object) null, new c(context, b2, a2));
    }

    private final <T> T f(Context context, Bundle extras, yx2<? super Context, ? super String, ? super String, ? super ex2<? extends Intent>, ? extends T> body) {
        String b2;
        String a2 = dd0.a(extras);
        Bundle bundle = extras.getBundle("args");
        if (bundle == null || (b2 = bundle.getString("referrer_screen")) == null) {
            b2 = d48.a.c0().b();
        }
        p64.g(b2, "extras.getBundle(EXTRA_A… ?: Screens.DEEPLINK.name");
        return (T) body.k(context, a2, (Object) null, new f(context, b2, a2));
    }

    private final <T> T g(Context context, Bundle extras, ux2<? super Context, ? super ex2<? extends Intent>, ? extends T> body) {
        return (T) body.invoke(context, new j(context, dd0.a(extras)));
    }

    @MitraDeeplink
    public static final vz8 goToExtraFeaturesMenuScreen(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 goToExtraFeaturesMenuScreenInternal(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 goToGamesMenuScreen(Context context, Bundle extras) {
        p64.h(context, "context");
        p64.h(extras, "extras");
        return (vz8) a.f(context, extras, d.a);
    }

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

    @MitraDeeplink
    public static final vz8 goToHomeScreen(Context context, Bundle extras) {
        p64.h(context, "context");
        p64.h(extras, "extras");
        String a2 = dd0.a(extras);
        if (a2 != null) {
            return k54.f(context, new g(context, a2));
        }
        return null;
    }

    @MitraDeeplink
    public static final Intent goToHomeScreenInternal(Context context, Bundle extras) {
        p64.h(context, "context");
        p64.h(extras, "extras");
        String a2 = dd0.a(extras);
        if (a2 != null) {
            return a.c(context, a2, false);
        }
        return null;
    }

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

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

    @MitraDeeplink
    public static final vz8 goToTabAccountProfileScreen(Context context, Bundle extras) {
        p64.h(context, "context");
        p64.h(extras, "extras");
        String a2 = dd0.a(extras);
        if (a2 != null) {
            return k54.f(context, new k(context, a2));
        }
        return null;
    }

    @MitraDeeplink
    public static final Intent goToTabAccountProfileScreenInternal(Context context, Bundle extras) {
        p64.h(context, "context");
        p64.h(extras, "extras");
        String a2 = dd0.a(extras);
        if (a2 != null) {
            return a.a(a.d(), context, 3, a2, (String) null, (String) null, (Long) null, (String) null, false, false, (String) null, false, 1016, (Object) null);
        }
        return null;
    }
}