正在查看: Mitra Bukalapak v2.55.0 应用的 GroceryDeeplink.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mitra Bukalapak v2.55.0 应用的 GroceryDeeplink.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.bukalapak.mitra.feature.deeplink.registry;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.bukalapak.mitra.feature.deeplink.MitraDeeplink;
import defpackage.bc8;
import defpackage.dd0;
import defpackage.fe7;
import defpackage.k54;
import defpackage.rf3$a;
import defpackage.tl0;
import defpackage.ug3$a;
import java.util.ArrayList;
import kotlin.Metadata;
@Metadata(d1 = {"\u0000f\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\u0013\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0006\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0007\bÆ\u0002\u0018\u00002\u00020\u0001:\u0001BB\t\b\u0002¢\u0006\u0004\b@\u0010AJ\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\u0010\u0010\n\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u0002H\u0007J\u0010\u0010\u000b\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\u0002H\u0007J\u001a\u0010\f\u001a\u0004\u0018\u00010\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\u001a\u0010\u000e\u001a\u0004\u0018\u00010\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\u0007J\u001a\u0010\u0010\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\u0011\u001a\u0004\u0018\u00010\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\u0012\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\u0013\u001a\u0004\u0018\u00010\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u0018\u0010\u0014\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\u0015\u001a\u0004\u0018\u00010\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u0018\u0010\u0016\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\u0017\u001a\u0004\u0018\u00010\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\u0018\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\u0019\u001a\u0004\u0018\u00010\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\u001a\u001a\u0004\u0018\u00010\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u001a\u0010\u001b\u001a\u0004\u0018\u00010\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0007J\u0010\u0010\u001d\u001a\u00020\u001c2\u0006\u0010\u0005\u001a\u00020\u0004H\u0002J\u0010\u0010 \u001a\u00020\u001f2\u0006\u0010\u001e\u001a\u00020\u001cH\u0002J,\u0010\"\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u001e\u001a\u00020\u001c2\u0006\u0010\u0005\u001a\u00020\u00042\n\b\u0002\u0010!\u001a\u0004\u0018\u00010\u0004H\u0002J*\u0010$\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u001e\u001a\u00020\u001c2\u0006\u0010\u0005\u001a\u00020\u00042\b\b\u0002\u0010#\u001a\u00020\u001fH\u0002J\u0018\u0010%\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0002J\u001a\u0010(\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\u00022\b\u0010'\u001a\u0004\u0018\u00010&H\u0002JW\u0010-\u001a\u0004\u0018\u00018\u0000\"\u0004\b\u0000\u0010)2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u00042.\u0010,\u001a*\u0012\u0004\u0012\u00020\u0002\u0012\u0006\u0012\u0004\u0018\u00010&\u0012\u0006\u0012\u0004\u0018\u00010&\u0012\n\u0012\b\u0012\u0004\u0012\u00020\b0+\u0012\u0004\u0012\u00028\u00000*H\u0002¢\u0006\u0004\b-\u0010.JU\u0010/\u001a\u00028\u0000\"\u0004\b\u0000\u0010)2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u00042.\u0010,\u001a*\u0012\u0004\u0012\u00020\u0002\u0012\u0006\u0012\u0004\u0018\u00010&\u0012\u0006\u0012\u0004\u0018\u00010&\u0012\n\u0012\b\u0012\u0004\u0012\u00020\b0+\u0012\u0004\u0012\u00028\u00000*H\u0002¢\u0006\u0004\b/\u0010.R\u0011\u00103\u001a\u0002008F¢\u0006\u0006\u001a\u0004\b1\u00102R\u0011\u00107\u001a\u0002048F¢\u0006\u0006\u001a\u0004\b5\u00106R\u0011\u0010;\u001a\u0002088F¢\u0006\u0006\u001a\u0004\b9\u0010:R\u0011\u0010?\u001a\u00020<8F¢\u0006\u0006\u001a\u0004\b=\u0010>¨\u0006C"}, d2 = {"Lcom/bukalapak/mitra/feature/deeplink/registry/GroceryDeeplink;", "", "Landroid/content/Context;", "context", "Landroid/os/Bundle;", "extras", "Lvz8;", "goToShoppingCartScreen", "Landroid/content/Intent;", "goToShoppingCartScreenInternal", "goToProductSearchScreen", "goToProductSearchScreenInternal", "goToProductlistScreen", "goToProductlistScreenInternal", "goToUlasanBelanja", "goToUlasanBelanjaInternal", "goToGroupBuying", "goToGroupBuyingInternal", "goToGroupBuyingDetailScreen", "goToGroupBuyingDetailScreenInternal", "goToFlashDealScreen", "goToFlashDealScreenInternal", "goToPWPScreen", "goToPWPScreenInternal", "goToPromoCategoryListScreen", "goToPromoCategoryListScreenInternal", "goToSWShoppingCartScreen", "goToSWShoppingCartScreenInternal", "Lcom/bukalapak/mitra/feature/deeplink/registry/GroceryDeeplink$a;", "k", "param", "", "p", "extraArgs", "h", "isDirectlyToProductList", "e", "l", "", "deeplinkUrl", "m", "T", "Lkotlin/Function4;", "Lkotlin/Function0;", "body", "n", "(Landroid/content/Context;Landroid/os/Bundle;Lyx2;)Ljava/lang/Object;", "o", "Lf4;", "d", "()Lf4;", "accountNavigation", "Lug3;", "g", "()Lug3;", "groceryNavigation", "Lrf3;", "f", "()Lrf3;", "groceryListNavigation", "Lh35;", "j", "()Lh35;", "miscNavigation", "<init>", "()V", "a", "feature_deeplink_release"}, k = 1, mv = {1, 8, 0})
public final class GroceryDeeplink {
public static final GroceryDeeplink a = new GroceryDeeplink();
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u000e\n\u0002\b\f\n\u0002\u0010\t\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0002\u0018\u00002\u00020\u0001BM\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\b\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u000b\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u000e\u001a\u0004\u0018\u00010\u0002\u0012\b\u0010\u0013\u001a\u0004\u0018\u00010\u000f\u0012\b\u0010\u0014\u001a\u0004\u0018\u00010\u000f\u0012\b\u0010\u0018\u001a\u0004\u0018\u00010\u0015¢\u0006\u0004\b\u0019\u0010\u001aR\u0019\u0010\u0006\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0003\u0010\u0005R\u0019\u0010\b\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\u0007\u0010\u0004\u001a\u0004\b\u0007\u0010\u0005R\u0019\u0010\u000b\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\t\u0010\u0004\u001a\u0004\b\n\u0010\u0005R\u0019\u0010\u000e\u001a\u0004\u0018\u00010\u00028\u0006¢\u0006\f\n\u0004\b\f\u0010\u0004\u001a\u0004\b\r\u0010\u0005R\u0019\u0010\u0013\u001a\u0004\u0018\u00010\u000f8\u0006¢\u0006\f\n\u0004\b\u0010\u0010\u0011\u001a\u0004\b\f\u0010\u0012R\u0019\u0010\u0014\u001a\u0004\u0018\u00010\u000f8\u0006¢\u0006\f\n\u0004\b\r\u0010\u0011\u001a\u0004\b\u0010\u0010\u0012R\u0019\u0010\u0018\u001a\u0004\u0018\u00010\u00158\u0006¢\u0006\f\n\u0004\b\n\u0010\u0016\u001a\u0004\b\t\u0010\u0017¨\u0006\u001b"}, d2 = {"Lcom/bukalapak/mitra/feature/deeplink/registry/GroceryDeeplink$a;", "", "", "a", "Ljava/lang/String;", "()Ljava/lang/String;", "categoryName", "b", "categorySlug", "c", "g", "subCategorySlug", "d", "f", "searchKeyword", "", "e", "Ljava/lang/Long;", "()Ljava/lang/Long;", "productId", "remindedQuantity", "Ltl0;", "Ltl0;", "()Ltl0;", "categoryType", "<init>", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Long;Ljava/lang/Long;Ltl0;)V", "feature_deeplink_release"}, k = 1, mv = {1, 8, 0})
private static final class a {
private final String categoryName;
private final String categorySlug;
private final String subCategorySlug;
private final String searchKeyword;
private final Long productId;
private final Long remindedQuantity;
private final tl0 categoryType;
public a(String str, String str2, String str3, String str4, Long l, Long l2, tl0 tl0Var) {
this.categoryName = str;
this.categorySlug = str2;
this.subCategorySlug = str3;
this.searchKeyword = str4;
this.productId = l;
this.remindedQuantity = l2;
this.categoryType = tl0Var;
}
public final String getCategoryName() {
return this.categoryName;
}
public final String getCategorySlug() {
return this.categorySlug;
}
public final tl0 getCategoryType() {
return this.categoryType;
}
public final Long getProductId() {
return this.productId;
}
public final Long getRemindedQuantity() {
return this.remindedQuantity;
}
public final String getSearchKeyword() {
return this.searchKeyword;
}
public final String getSubCategorySlug() {
return this.subCategorySlug;
}
}
@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 a0 extends dk4 implements ex2<Intent> {
final String $browserUrl;
final Context $context;
a0(Context context, String str) {
super(0);
this.$context = context;
this.$browserUrl = str;
}
public final Intent invoke() {
return GroceryDeeplink.a.g().t(this.$context, this.$browserUrl);
}
}
@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 b extends dk4 implements ex2<Intent> {
final Context $context;
final String $deeplinkUrl;
b(Context context, String str) {
super(0);
this.$context = context;
this.$deeplinkUrl = str;
}
public final Intent invoke() {
return ug3$a.b(GroceryDeeplink.a.g(), this.$context, null, this.$deeplinkUrl, 2, 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 c extends dk4 implements ex2<Intent> {
final Context $context;
final String $deeplinkUrl;
c(Context context, String str) {
super(0);
this.$context = context;
this.$deeplinkUrl = str;
}
public final Intent invoke() {
return ug3$a.b(GroceryDeeplink.a.g(), this.$context, null, this.$deeplinkUrl, 2, 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 d extends dk4 implements ex2<Intent> {
final Context $context;
final String $url;
d(Context context, String str) {
super(0);
this.$context = context;
this.$url = str;
}
public final Intent invoke() {
return GroceryDeeplink.a.g().D(this.$context, this.$url);
}
}
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
class e extends oy2 implements yx2<Context, String, String, ex2<? extends Intent>, vz8> {
public static final e a = new e();
e() {
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 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(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 $url;
g(Context context, String str) {
super(0);
this.$context = context;
this.$url = str;
}
public final Intent invoke() {
return GroceryDeeplink.a.g().D(this.$context, this.$url);
}
}
@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;
final String $deeplinkUrl;
final Long $id;
final String $sharedText;
h(Context context, Long l, String str, String str2) {
super(0);
this.$context = context;
this.$id = l;
this.$sharedText = str;
this.$deeplinkUrl = str2;
}
public final Intent invoke() {
return GroceryDeeplink.a.g().x(this.$context, this.$id.longValue(), this.$sharedText, 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 i extends dk4 implements ex2<Intent> {
public static final i g = new i();
i() {
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 j extends dk4 implements ex2<Intent> {
final Context $context;
final Bundle $extras;
j(Bundle bundle, Context context) {
super(0);
this.$extras = bundle;
this.$context = context;
}
public final Intent invoke() {
Bundle bundle = this.$extras.getBundle("args");
if (bundle == null || !bundle.getBoolean("_task_done")) {
return new Intent("DeeplinkTaskIntent");
}
ArrayList<String> stringArrayList = bundle != null ? bundle.getStringArrayList("pwp_active_warehouse_ids") : null;
if (stringArrayList != null && stringArrayList.size() > 1) {
return rf3$a.b(GroceryDeeplink.a.f(), this.$context, null, null, 6, null);
}
if (stringArrayList != null && (!stringArrayList.isEmpty())) {
rf3 f = GroceryDeeplink.a.f();
Context context = this.$context;
Object d0 = iu0.d0(stringArrayList);
p64.g(d0, "activeWarehouseIds.first()");
return rf3$a.a(f, context, (String) d0, null, null, 12, null);
}
if (stringArrayList == null || !stringArrayList.isEmpty()) {
return rf3$a.b(GroceryDeeplink.a.f(), this.$context, null, null, 6, null);
}
ug3 g = GroceryDeeplink.a.g();
Context context2 = this.$context;
String a = dd0.a(this.$extras);
String string = this.$context.getString(fe7.p);
p64.g(string, "context.getString(RGroce…g.grocery_list_pwp_title)");
return ug3$a.a(g, context2, a, string, "tebus_murah", this.$context.getString(fe7.n), null, this.$context.getString(fe7.o), 32, 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 k extends dk4 implements ex2<Intent> {
final Context $context;
k(Context context) {
super(0);
this.$context = context;
}
public final Intent invoke() {
return ug3$a.e(GroceryDeeplink.a.g(), this.$context, null, null, 0L, 0L, false, false, null, null, 510, 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> {
final Context $context;
final Bundle $extras;
final a $param;
m(Context context, a aVar, Bundle bundle) {
super(0);
this.$context = context;
this.$param = aVar;
this.$extras = bundle;
}
public final Intent invoke() {
return GroceryDeeplink.i(GroceryDeeplink.a, this.$context, this.$param, this.$extras, null, 8, 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 n extends dk4 implements ex2<Intent> {
final Context $context;
final Bundle $extras;
final a $param;
n(Context context, a aVar, Bundle bundle) {
super(0);
this.$context = context;
this.$param = aVar;
this.$extras = bundle;
}
public final Intent invoke() {
return GroceryDeeplink.i(GroceryDeeplink.a, this.$context, this.$param, this.$extras, null, 8, 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 Context $context;
final Bundle $extras;
final a $param;
o(Context context, a aVar, Bundle bundle) {
super(0);
this.$context = context;
this.$param = aVar;
this.$extras = bundle;
}
public final Intent invoke() {
return GroceryDeeplink.i(GroceryDeeplink.a, this.$context, this.$param, this.$extras, null, 8, 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 p extends dk4 implements ex2<Intent> {
final Context $context;
final Bundle $extras;
final a $param;
p(Bundle bundle, Context context, a aVar) {
super(0);
this.$extras = bundle;
this.$context = context;
this.$param = aVar;
}
public final Intent invoke() {
Bundle bundle = this.$extras.getBundle("args");
return (bundle == null || !bundle.getBoolean("_task_done")) ? new Intent("DeeplinkTaskIntent") : GroceryDeeplink.a.h(this.$context, this.$param, this.$extras, bundle);
}
}
@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 q extends dk4 implements ex2<Intent> {
final Context $context;
final Bundle $extras;
final a $param;
q(Context context, a aVar, Bundle bundle) {
super(0);
this.$context = context;
this.$param = aVar;
this.$extras = bundle;
}
public final Intent invoke() {
return GroceryDeeplink.i(GroceryDeeplink.a, this.$context, this.$param, this.$extras, null, 8, 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 r extends dk4 implements ex2<Intent> {
final Context $context;
final Bundle $extras;
final a $param;
r(Context context, a aVar, Bundle bundle) {
super(0);
this.$context = context;
this.$param = aVar;
this.$extras = bundle;
}
public final Intent invoke() {
String className;
Intent i = GroceryDeeplink.i(GroceryDeeplink.a, this.$context, this.$param, this.$extras, null, 8, null);
ComponentName component = i.getComponent();
if (component != null && (className = component.getClassName()) != null) {
p64.g(className, "className");
if (bu8.R(className, "HomeActivity", false, 2, (Object) null)) {
i.setFlags(603979776);
}
}
return i;
}
}
@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 s extends dk4 implements ex2<Intent> {
final Context $context;
final Bundle $extras;
s(Context context, Bundle bundle) {
super(0);
this.$context = context;
this.$extras = bundle;
}
public final Intent invoke() {
return GroceryDeeplink.a.l(this.$context, this.$extras);
}
}
@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 t extends dk4 implements ex2<Intent> {
final Context $context;
final Bundle $extras;
t(Context context, Bundle bundle) {
super(0);
this.$context = context;
this.$extras = bundle;
}
public final Intent invoke() {
return GroceryDeeplink.a.l(this.$context, this.$extras);
}
}
@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 u extends dk4 implements ex2<Intent> {
final Context $context;
final String $deeplinkUrl;
u(Context context, String str) {
super(0);
this.$context = context;
this.$deeplinkUrl = str;
}
public final Intent invoke() {
return GroceryDeeplink.a.m(this.$context, 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 v extends dk4 implements ex2<Intent> {
final Context $context;
final String $deeplinkUrl;
v(Context context, String str) {
super(0);
this.$context = context;
this.$deeplinkUrl = str;
}
public final Intent invoke() {
return GroceryDeeplink.a.m(this.$context, this.$deeplinkUrl);
}
}
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
class w extends oy2 implements yx2<Context, String, String, ex2<? extends Intent>, vz8> {
public static final w a = new w();
w() {
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 x extends oy2 implements yx2<Context, String, String, ex2<? extends Intent>, Intent> {
public static final x a = new x();
x() {
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 y extends dk4 implements ex2<Intent> {
final Context $context;
final String $deeplinkUrl;
final Bundle $extras;
y(Context context, String str, Bundle bundle) {
super(0);
this.$context = context;
this.$deeplinkUrl = str;
this.$extras = bundle;
}
public final Intent invoke() {
return ug3$a.f(GroceryDeeplink.a.g(), this.$context, null, null, this.$deeplinkUrl, this.$extras, 6, 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 z extends dk4 implements ex2<Intent> {
final String $browserUrl;
final Context $context;
z(Context context, String str) {
super(0);
this.$context = context;
this.$browserUrl = str;
}
public final Intent invoke() {
return GroceryDeeplink.a.g().t(this.$context, this.$browserUrl);
}
}
private GroceryDeeplink() {
}
private final Intent e(Context context, a param, Bundle extras, boolean isDirectlyToProductList) {
String a2 = dd0.a(extras);
bc8 bc8Var = bc8.a;
String c2 = bc8Var.c().c();
String categoryName = param.getCategoryName();
boolean R = categoryName != null ? bu8.R(c2, categoryName, false, 2, (Object) null) : false;
if (!bc8Var.b().f()) {
return a.e(d(), context, (Integer) null, (String) null, a2, (String) null, 20, (Object) null);
}
if (categoryName != null && !R) {
return ug3$a.a(g(), context, a2, categoryName, "group_buying", null, null, null, 112, null);
}
if (!isDirectlyToProductList) {
return a.a(xp1.a.b().c(), context, 1, a2, param.getCategorySlug(), param.getSubCategorySlug(), param.getProductId(), (String) null, false, false, (String) null, false, 1984, (Object) null);
}
ug3 g2 = g();
String categorySlug = param.getCategorySlug();
String subCategorySlug = param.getSubCategorySlug();
Long productId = param.getProductId();
long longValue = productId != null ? productId.longValue() : 0L;
tl0 categoryType = param.getCategoryType();
if (categoryType == null) {
categoryType = tl0.ALL;
}
return ug3$a.c(g2, context, a2, null, null, categorySlug, subCategorySlug, categoryType, longValue, null, 268, null);
}
@MitraDeeplink
public static final vz8 goToFlashDealScreen(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
String a2 = dd0.a(extras);
return k54.h(context, a2, null, new b(context, a2), 4, null);
}
@MitraDeeplink
public static final Intent goToFlashDealScreenInternal(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
String a2 = dd0.a(extras);
return k54.c(context, a2, null, new c(context, a2), 4, null);
}
@MitraDeeplink
public static final vz8 goToGroupBuying(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
String a2 = dd0.a(extras);
if (a2 != null) {
return k54.h(context, a2, null, new d(context, a2), 4, null);
}
return null;
}
@MitraDeeplink
public static final vz8 goToGroupBuyingDetailScreen(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
return (vz8) a.n(context, extras, e.a);
}
@MitraDeeplink
public static final Intent goToGroupBuyingDetailScreenInternal(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
return (Intent) a.n(context, extras, f.a);
}
@MitraDeeplink
public static final Intent goToGroupBuyingInternal(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
String a2 = dd0.a(extras);
if (a2 != null) {
return k54.c(context, a2, null, new g(context, a2), 4, null);
}
return null;
}
@MitraDeeplink
public static final vz8 goToPWPScreen(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
return k54.g(context, dd0.a(extras), "/tebus-murah", i.g);
}
@MitraDeeplink
public static final Intent goToPWPScreenInternal(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
return k54.b(context, dd0.a(extras), "/tebus-murah", new j(extras, context));
}
@MitraDeeplink
public static final vz8 goToProductSearchScreen(Context context) {
p64.h(context, "context");
return k54.f(context, new k(context));
}
@MitraDeeplink
public static final Intent goToProductSearchScreenInternal(Context context) {
p64.h(context, "context");
return ug3$a.e(a.g(), context, null, null, 0L, 0L, false, false, null, null, 510, null);
}
@MitraDeeplink
public static final vz8 goToProductlistScreen(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
try {
String a2 = dd0.a(extras);
GroceryDeeplink groceryDeeplink = a;
a k2 = groceryDeeplink.k(extras);
return p64.c(k2.getCategorySlug(), "super-warung") ? k54.g(context, a2, "/grosir/super-warung", l.g) : groceryDeeplink.p(k2) ? k54.h(context, a2, null, new m(context, k2, extras), 4, null) : k54.f(context, new n(context, k2, extras));
} catch (NumberFormatException unused) {
return null;
}
}
@MitraDeeplink
public static final Intent goToProductlistScreenInternal(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
try {
String a2 = dd0.a(extras);
GroceryDeeplink groceryDeeplink = a;
a k2 = groceryDeeplink.k(extras);
return p64.c(k2.getCategorySlug(), "super-warung") ? k2.getCategoryType() == tl0.SPECIAL_PROGRAM ? k54.c(context, a2, null, new o(context, k2, extras), 4, null) : k54.b(context, a2, "/grosir/super-warung", new p(extras, context, k2)) : groceryDeeplink.p(k2) ? k54.c(context, a2, null, new q(context, k2, extras), 4, null) : k54.a(context, new r(context, k2, extras));
} catch (NumberFormatException unused) {
return null;
}
}
@MitraDeeplink
public static final vz8 goToPromoCategoryListScreen(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
return k54.h(context, dd0.a(extras), null, new s(context, extras), 4, null);
}
@MitraDeeplink
public static final Intent goToPromoCategoryListScreenInternal(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
return k54.c(context, dd0.a(extras), null, new t(context, extras), 4, null);
}
@MitraDeeplink
public static final vz8 goToSWShoppingCartScreen(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
String a2 = dd0.a(extras);
return k54.h(context, a2, null, new u(context, a2), 4, null);
}
@MitraDeeplink
public static final Intent goToSWShoppingCartScreenInternal(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
String a2 = dd0.a(extras);
return k54.c(context, a2, null, new v(context, a2), 4, null);
}
@MitraDeeplink
public static final vz8 goToShoppingCartScreen(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
return (vz8) a.o(context, extras, w.a);
}
@MitraDeeplink
public static final Intent goToShoppingCartScreenInternal(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
return (Intent) a.o(context, extras, x.a);
}
@MitraDeeplink
public static final vz8 goToUlasanBelanja(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
String a2 = dd0.a(extras);
if (a2 != null) {
return k54.h(context, a2, null, new z(context, a2), 4, null);
}
return null;
}
@MitraDeeplink
public static final Intent goToUlasanBelanjaInternal(Context context, Bundle extras) {
p64.h(context, "context");
p64.h(extras, "extras");
String a2 = dd0.a(extras);
if (a2 != null) {
return k54.c(context, a2, null, new a0(context, a2), 4, null);
}
return null;
}
public final Intent h(Context context, a param, Bundle extras, Bundle extraArgs) {
Intent a2;
String a3 = dd0.a(extras);
boolean z2 = param.getCategoryType() != null;
String categorySlug = param.getCategorySlug();
if (categorySlug == null || bu8.y(categorySlug)) {
String searchKeyword = param.getSearchKeyword();
if (searchKeyword != null && !bu8.y(searchKeyword)) {
ug3 g2 = g();
String searchKeyword2 = param.getSearchKeyword();
Long productId = param.getProductId();
long longValue = productId != null ? productId.longValue() : 0L;
Long remindedQuantity = param.getRemindedQuantity();
return ug3$a.e(g2, context, a3, searchKeyword2, longValue, remindedQuantity != null ? remindedQuantity.longValue() : 0L, false, false, null, null, 480, null);
}
if (!z2) {
return a.a(xp1.a.b().c(), context, 1, a3, (String) null, (String) null, (Long) null, (String) null, false, false, (String) null, false, 2040, (Object) null);
}
ug3 g3 = g();
tl0 categoryType = param.getCategoryType();
if (categoryType == null) {
categoryType = tl0.ALL;
}
return ug3$a.c(g3, context, a3, null, null, null, null, categoryType, 0L, null, 444, null);
}
String categorySlug2 = param.getCategorySlug();
if (categorySlug2 != null) {
int hashCode = categorySlug2.hashCode();
if (hashCode != -1073921316) {
if (hashCode != 1986091870) {
if (hashCode == 1998778586 && categorySlug2.equals("top-discounts")) {
a2 = ug3$a.e(g(), context, a3, null, 0L, 0L, true, false, null, null, 476, null);
}
} else if (categorySlug2.equals("oos-products")) {
a2 = ug3$a.e(g(), context, a3, null, 0L, 0L, false, true, null, null, 444, null);
}
} else if (categorySlug2.equals("top-products")) {
a2 = ug3$a.d(g(), context, null, null, null, null, a3, 30, null);
}
return a2;
}
String string = extraArgs != null ? extraArgs.getString("super_warung_status") : null;
boolean z3 = extraArgs != null ? extraArgs.getBoolean("_task_done") : false;
if (p64.c(param.getCategorySlug(), "super-warung") && string != null && !iu0.k(new String[]{"inbound_approved", "sa_visited"}).contains(string)) {
a2 = j().d(context, vo9.a.R() + "super-warung", true);
} else {
if (param.getCategoryName() != null) {
return e(context, param, extras, z2);
}
if (z2) {
ug3 g4 = g();
String categorySlug3 = param.getCategorySlug();
String subCategorySlug = param.getSubCategorySlug();
Long productId2 = param.getProductId();
long longValue2 = productId2 != null ? productId2.longValue() : 0L;
tl0 categoryType2 = param.getCategoryType();
if (categoryType2 == null) {
categoryType2 = tl0.ALL;
}
a2 = ug3$a.c(g4, context, a3, null, null, categorySlug3, subCategorySlug, categoryType2, longValue2, null, 268, null);
} else {
a2 = a.a(xp1.a.b().c(), context, 1, a3, param.getCategorySlug(), param.getSubCategorySlug(), param.getProductId(), (String) null, false, false, (String) null, false, 1984, (Object) null);
a2.putExtra("_task_done", z3);
}
}
return a2;
}
static Intent i(GroceryDeeplink groceryDeeplink, Context context, a aVar, Bundle bundle, Bundle bundle2, int i2, Object obj) {
if ((i2 & 8) != 0) {
bundle2 = null;
}
return groceryDeeplink.h(context, aVar, bundle, bundle2);
}
private final a k(Bundle extras) throws NumberFormatException {
String string = extras.getString("category_name");
String string2 = extras.getString("category");
String string3 = extras.getString("sub_category");
String string4 = extras.getString("search_keyword");
String string5 = extras.getString("product_id");
Long valueOf = string5 != null ? Long.valueOf(Long.parseLong(string5)) : null;
String string6 = extras.getString("quantity");
return new a(string, string2, string3, string4, valueOf, string6 != null ? Long.valueOf(Long.parseLong(string6)) : null, tl0.INSTANCE.a(extras.getString("category_type")));
}
public final Intent l(Context context, Bundle extras) {
String string = extras.getString("category");
String string2 = extras.getString("sub_category");
String a2 = dd0.a(extras);
bc8 bc8Var = bc8.a;
boolean d2 = bc8Var.c().d();
boolean f2 = bc8Var.b().f();
if (d2 && f2) {
return g().F(context, string, string2, a2);
}
ug3 g2 = g();
String string3 = context.getString(fe7.m);
p64.g(string3, "context.getString(RGroce…ist_promo_category_title)");
return ug3$a.a(g2, context, a2, string3, "promo_grosir", context.getString(fe7.k), null, context.getString(fe7.l), 32, null);
}
public final Intent m(Context context, String deeplinkUrl) {
return ug3$a.g(g(), context, null, deeplinkUrl, 2, null);
}
private final <T> T n(Context context, Bundle extras, yx2<? super Context, ? super String, ? super String, ? super ex2<? extends Intent>, ? extends T> body) {
try {
String a2 = dd0.a(extras);
String string = extras.getString("id");
Long valueOf = string != null ? Long.valueOf(Long.parseLong(string)) : null;
String string2 = extras.getString("sharedText");
String A0 = string2 != null ? bu8.A0(string2, "\"", "\"") : null;
if (valueOf != null && A0 != null && A0.length() != 0) {
return (T) body.k(context, a2, (Object) null, new h(context, valueOf, A0, a2));
}
return null;
} catch (Exception unused) {
return null;
}
}
private final <T> T o(Context context, Bundle extras, yx2<? super Context, ? super String, ? super String, ? super ex2<? extends Intent>, ? extends T> body) {
String a2 = dd0.a(extras);
return (T) body.k(context, a2, (Object) null, new y(context, a2, extras));
}
private final boolean p(a param) {
return p64.c(param.getCategorySlug(), "top-products");
}
public final f4 d() {
return xp1.a.b().b();
}
public final rf3 f() {
return xp1.a.b().E();
}
public final ug3 g() {
return xp1.a.b().w();
}
public final h35 j() {
return xp1.a.b().q();
}
}