正在查看: OVO v3.139.0 应用的 CheckoutActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OVO v3.139.0 应用的 CheckoutActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package ovo.id.wallet.checkout.ui.presentation.compose;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import androidx.activity.ComponentActivity;
import androidx.activity.OnBackPressedDispatcher;
import androidx.activity.result.ActivityResult;
import androidx.appcompat.app.AppCompatActivity;
import androidx.compose.foundation.layout.LayoutWeightElement;
import androidx.compose.ui.Modifier;
import androidx.compose.ui.platform.AndroidCompositionLocals_androidKt;
import androidx.databinding.DataBinderMapperImpl;
import androidx.databinding.ViewDataBinding;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModelKt;
import androidx.lifecycle.ViewModelLazy;
import androidx.lifecycle.ViewModelProvider;
import androidx.lifecycle.ViewModelStore;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import kotlin.Metadata;
import o.i.Alignment;
import o.i.Arrangement;
import o.i.Composer;
import o.i.Function110;
import o.i.Function23;
import o.i.Function31;
import o.i.a02;
import o.i.agc;
import o.i.al1;
import o.i.ap8;
import o.i.ay1;
import o.i.b22;
import o.i.b52;
import o.i.bc;
import o.i.bcd;
import o.i.bjc;
import o.i.bl1;
import o.i.bx1;
import o.i.c22;
import o.i.c27;
import o.i.c65;
import o.i.cf8;
import o.i.cl1;
import o.i.dgc;
import o.i.di2;
import o.i.dx1;
import o.i.f10;
import o.i.fac;
import o.i.fl1;
import o.i.fm1;
import o.i.fqe;
import o.i.fv2;
import o.i.fxa;
import o.i.g7c;
import o.i.ggc;
import o.i.hc;
import o.i.hce;
import o.i.hg2;
import o.i.hhc;
import o.i.hj8;
import o.i.hl1;
import o.i.i62;
import o.i.ihf;
import o.i.il1;
import o.i.im8;
import o.i.in1;
import o.i.iw0;
import o.i.jg2;
import o.i.jgc;
import o.i.jl1;
import o.i.jm1;
import o.i.jo3;
import o.i.jt0;
import o.i.jt7;
import o.i.khf;
import o.i.kt0;
import o.i.lc;
import o.i.ld4;
import o.i.lg2;
import o.i.lwe;
import o.i.mbe;
import o.i.ml1;
import o.i.mwa;
import o.i.n8b;
import o.i.nca;
import o.i.nic;
import o.i.nl1;
import o.i.oa;
import o.i.oye;
import o.i.p1g;
import o.i.p2d;
import o.i.pk4;
import o.i.pw5;
import o.i.q0f;
import o.i.qw9;
import o.i.r20;
import o.i.rig;
import o.i.rl2;
import o.i.rm9;
import o.i.rrc;
import o.i.s23;
import o.i.sff;
import o.i.sh2;
import o.i.ssb;
import o.i.t02;
import o.i.td2;
import o.i.tf8;
import o.i.ti3;
import o.i.u5g;
import o.i.u9e;
import o.i.ua8;
import o.i.uh;
import o.i.us;
import o.i.ux;
import o.i.v11;
import o.i.v42;
import o.i.vk1;
import o.i.vk7;
import o.i.vke;
import o.i.vuc;
import o.i.vx;
import o.i.vx0;
import o.i.wb;
import o.i.wk1;
import o.i.wpa;
import o.i.xc0;
import o.i.xh;
import o.i.xh9;
import o.i.xk1;
import o.i.xo8;
import o.i.yac;
import o.i.yfc;
import o.i.yk1;
import o.i.yrg;
import o.i.z8;
import o.i.ze7;
import o.i.zf2;
import o.i.zfc;
import o.i.zk1;
import o.i.zu5;
import o.i.zx1;
import o.i.zz1;
import ovo.id.base.BaseActivity;
import ovo.id.base.utils.StringWrapper;
import ovo.id.ravier.commons.Type;
import ovo.id.ravier.widgets.CommonLayoutClickType;
import ovo.id.ravier.widgets.LoadingState;
import ovo.id.ravier.widgets.LoadingType;
import ovo.id.wallet.base.data.entity.request.NextRequest;
import ovo.id.wallet.checkout.core.domain.entity.model.CheckoutStateInfo;
import ovo.id.wallet.checkout.core.domain.entity.model.CheckoutSummaryData;
import ovo.id.wallet.checkout.core.domain.entity.model.PromoDetailInfo;
import ovo.id.wallet.checkout.core.domain.entity.model.uicomponent.CampaignPromoItem;
import ovo.id.wallet.checkout.core.domain.entity.model.uicomponent.CheckoutComponentSection;
import ovo.id.wallet.checkout.ui.presentation.utils.CheckoutError;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lovo/id/wallet/checkout/ui/presentation/compose/CheckoutActivity;", "Lovo/id/base/BaseActivity;", "<init>", "()V", "checkout-ui_release"}, k = 1, mv = {1, 8, 0})
public final class CheckoutActivity extends BaseActivity {
public static final int O = 0;
public ViewModelProvider.Factory G;
public jm1 H;
public com.google.android.material.bottomsheet.b L;
public final lc I = s0(new bc(), new c0());
public final lc J = s0(new bc(), new d0());
public final ViewModelLazy K = new ViewModelLazy(vuc.a(CheckoutViewModel.class), new g0(this), new i0(), new h0(this));
public final oye M = im8.b(new n());
public final oye N = im8.b(new o());
public static final class a extends ua8 implements Function23<Composer, Integer, p1g> {
public final vke<StringWrapper> b;
public final Context c;
public final CheckoutActivity d;
public a(rm9 rm9Var, Context context, CheckoutActivity checkoutActivity) {
super(2);
this.b = rm9Var;
this.c = context;
this.d = checkoutActivity;
}
public final Object invoke(Object obj, Object obj2) {
Composer composer = (Composer) obj;
if ((((Number) obj2).intValue() & 11) == 2 && composer.j()) {
composer.F();
} else {
ux.c(c22.b(composer, -1957647700, new ovo.id.wallet.checkout.ui.presentation.compose.a(this.b, this.c)), xh9.a(Modifier.a.b, "topbar_checkout"), c22.b(composer, 989186026, new ovo.id.wallet.checkout.ui.presentation.compose.c(this.d)), (Function31) null, (yrg) null, ihf.a(yfc.G, yfc.x, composer), (khf) null, composer, 390, 88);
}
return p1g.a;
}
}
public static final class a0 extends ua8 implements Function110<nca, p1g> {
public a0() {
super(1);
}
public final Object invoke(Object obj) {
vk7.f((nca) obj, "$this$addCallback");
CheckoutActivity.R0(CheckoutActivity.this);
return p1g.a;
}
}
public static final class b extends ua8 implements Function31<mwa, Composer, Integer, p1g> {
public final vke<Integer> b;
public final CheckoutActivity c;
public final hce d;
public b(rm9 rm9Var, CheckoutActivity checkoutActivity, hce hceVar) {
super(3);
this.b = rm9Var;
this.c = checkoutActivity;
this.d = hceVar;
}
public final Object invoke(Object obj, Object obj2, Object obj3) {
mwa mwaVar = (mwa) obj;
Composer composer = (Composer) obj2;
int intValue = ((Number) obj3).intValue();
vk7.f(mwaVar, "padding");
if ((intValue & 14) == 0) {
intValue |= composer.L(mwaVar) ? 4 : 2;
}
if ((intValue & 91) == 18 && composer.j()) {
composer.F();
} else {
Modifier.a aVar = Modifier.a.b;
Modifier a = xh9.a(androidx.compose.foundation.layout.g.j(androidx.compose.foundation.layout.h.f(aVar), 0.0f, mwaVar.c(), 0.0f, mwaVar.a(), 5), "box_checkout_form");
composer.u(733328855);
kt0 f = jt0.f(Alignment.a.a, false, composer, 0);
composer.u(-1323940314);
int H = composer.H();
n8b m = composer.m();
v42.c0.getClass();
tf8.a aVar2 = v42.a.b;
b22 c = cf8.c(a);
if (!(composer.k() instanceof f10)) {
hc.o();
throw null;
}
composer.A();
if (composer.f()) {
composer.q(aVar2);
} else {
composer.n();
}
u5g.a(composer, f, v42.a.f);
u5g.a(composer, m, v42.a.e);
v42.a.a aVar3 = v42.a.i;
if (composer.f() || !vk7.a(composer.v(), Integer.valueOf(H))) {
di2.a(H, composer, H, aVar3);
}
vx.c(0, c, new u9e(composer), composer, 2058660585);
androidx.compose.foundation.layout.c cVar = androidx.compose.foundation.layout.c.a;
int intValue2 = ((Number) this.b.getValue()).intValue();
CheckoutActivity checkoutActivity = this.c;
hce hceVar = this.d;
switch (intValue2) {
case 100:
composer.u(981953609);
checkoutActivity.P0(composer, 8);
composer.K();
break;
case 101:
composer.u(981953670);
checkoutActivity.O0(composer, 8);
composer.K();
break;
case 102:
composer.u(981953730);
checkoutActivity.N0(hceVar, composer, 70);
composer.K();
break;
default:
composer.u(981953783);
composer.K();
break;
}
bjc.a(cVar.e(xh9.a(aVar, "toast_checkout_form"), Alignment.a.b), hceVar, composer, 48, 0);
composer.K();
composer.p();
composer.K();
composer.K();
}
return p1g.a;
}
}
public static final class b0 extends ua8 implements Function23<Composer, Integer, p1g> {
public b0() {
super(2);
}
public final Object invoke(Object obj, Object obj2) {
Composer composer = (Composer) obj;
if ((((Number) obj2).intValue() & 11) == 2 && composer.j()) {
composer.F();
} else {
nic.a(false, c22.b(composer, -1141331912, new ovo.id.wallet.checkout.ui.presentation.compose.e(CheckoutActivity.this)), composer, 48, 1);
}
return p1g.a;
}
}
public static final class c extends ua8 implements Function23<Composer, Integer, p1g> {
public final int c;
public c(int i) {
super(2);
this.c = i;
}
public final Object invoke(Object obj, Object obj2) {
((Number) obj2).intValue();
int e = jo3.e(this.c | 1);
CheckoutActivity.this.M0((Composer) obj, e);
return p1g.a;
}
}
public static final class c0 implements wb<ActivityResult> {
public c0() {
}
public final void a(Object obj) {
ActivityResult activityResult = (ActivityResult) obj;
int i = CheckoutActivity.O;
CheckoutViewModel U0 = CheckoutActivity.this.U0();
vk7.e(activityResult, "result");
U0.getClass();
if (activityResult.a == -1) {
U0.y();
} else {
U0.H0 = false;
}
U0.Q.setValue((Object) null);
}
}
public static final class d extends ua8 implements Function110<xo8, p1g> {
public final vke<List<CheckoutComponentSection>> b;
public final CheckoutActivity c;
public final vke<CheckoutStateInfo> d;
public d(rm9 rm9Var, rm9 rm9Var2, CheckoutActivity checkoutActivity) {
super(1);
this.b = rm9Var;
this.c = checkoutActivity;
this.d = rm9Var2;
}
public final Object invoke(Object obj) {
xo8 xo8Var = (xo8) obj;
vk7.f(xo8Var, "$this$LazyColumn");
List list = (List) this.b.getValue();
int size = list.size();
wk1 wk1Var = new wk1(list, vk1.b);
xk1 xk1Var = new xk1(this.d, list, this.c);
Object obj2 = c22.a;
xo8Var.c(size, (Function110) null, wk1Var, new b22(-632812321, xk1Var, true));
return p1g.a;
}
}
public static final class d0 implements wb<ActivityResult> {
public d0() {
}
public final void a(Object obj) {
PromoDetailInfo promoDetailInfo;
Bundle extras;
Bundle extras2;
Parcelable parcelable;
Object parcelable2;
ActivityResult activityResult = (ActivityResult) obj;
Intent intent = activityResult.b;
if (intent == null || (extras2 = intent.getExtras()) == null) {
promoDetailInfo = null;
} else {
if (Build.VERSION.SDK_INT >= 33) {
parcelable2 = extras2.getParcelable("promoInfo", PromoDetailInfo.class);
parcelable = (Parcelable) parcelable2;
} else {
Parcelable parcelable3 = extras2.getParcelable("promoInfo");
if (!(parcelable3 instanceof PromoDetailInfo)) {
parcelable3 = null;
}
parcelable = (PromoDetailInfo) parcelable3;
}
promoDetailInfo = (PromoDetailInfo) parcelable;
}
Intent intent2 = activityResult.b;
String string = (intent2 == null || (extras = intent2.getExtras()) == null) ? null : extras.getString("selectedCampaignId");
if (string == null) {
string = "";
}
int i = CheckoutActivity.O;
CheckoutActivity checkoutActivity = CheckoutActivity.this;
CheckoutStateInfo checkoutStateInfo = (CheckoutStateInfo) checkoutActivity.U0().J.getValue();
String selectedCampaign = checkoutStateInfo != null ? checkoutStateInfo.getSelectedCampaign() : null;
String str = selectedCampaign != null ? selectedCampaign : "";
if ((str.length() > 0) && r20.v(string)) {
CheckoutViewModel U0 = checkoutActivity.U0();
U0.getClass();
U0.H(new CampaignPromoItem.UnavailablePromoItem(0), null, null);
} else if (!vk7.a(string, str)) {
checkoutActivity.U0().a(new fxa<>("selectPromoList", promoDetailInfo));
CheckoutViewModel U02 = checkoutActivity.U0();
fxa fxaVar = new fxa(StringWrapper.a.a(fac.ovo_checkout_promo_alert_select), Type.TYPE_POSITIVE);
U02.getClass();
U02.w0.setValue(fxaVar);
}
checkoutActivity.U0().Q.setValue((Object) null);
}
}
public static final class e extends ua8 implements Function110<xo8, p1g> {
public final vke<List<CheckoutComponentSection>> b;
public final vke<CheckoutStateInfo> c;
public final CheckoutActivity d;
public e(rm9 rm9Var, rm9 rm9Var2, CheckoutActivity checkoutActivity) {
super(1);
this.b = rm9Var;
this.c = rm9Var2;
this.d = checkoutActivity;
}
public final Object invoke(Object obj) {
xo8 xo8Var = (xo8) obj;
vk7.f(xo8Var, "$this$LazyColumn");
List list = (List) this.b.getValue();
int size = list.size();
zk1 zk1Var = new zk1(list, yk1.b);
al1 al1Var = new al1(this.c, list, this.d);
Object obj2 = c22.a;
xo8Var.c(size, (Function110) null, zk1Var, new b22(-632812321, al1Var, true));
return p1g.a;
}
}
public static final class e0 extends ua8 implements Function110<zfc, p1g> {
public final zu5<p1g> b;
public e0(zu5<p1g> zu5Var) {
super(1);
this.b = zu5Var;
}
public final Object invoke(Object obj) {
zfc zfcVar = (zfc) obj;
vk7.f(zfcVar, "it");
zfcVar.dismiss();
this.b.invoke();
return p1g.a;
}
}
@s23(c = "ovo.id.wallet.checkout.ui.presentation.compose.CheckoutActivity$DetailScreen$2$1", f = "CheckoutActivity.kt", l = {446}, m = "invokeSuspend")
public static final class f extends lwe implements Function23<hg2, td2<? super p1g>, Object> {
public int b;
public final fxa<StringWrapper, Type> c;
public final Context d;
public final hce e;
public final CheckoutActivity f;
public class a {
public static final int[] a;
static {
int[] iArr = new int[Type.values().length];
try {
iArr[Type.TYPE_POSITIVE.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[Type.TYPE_NEGATIVE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[Type.TYPE_NEUTRAL.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
iArr[Type.TYPE_ALERT.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
a = iArr;
}
}
public f(fxa<? extends StringWrapper, ? extends Type> fxaVar, Context context, hce hceVar, CheckoutActivity checkoutActivity, td2<? super f> td2Var) {
super(2, td2Var);
this.c = fxaVar;
this.d = context;
this.e = hceVar;
this.f = checkoutActivity;
}
public final td2<p1g> create(Object obj, td2<?> td2Var) {
return new f(this.c, this.d, this.e, this.f, td2Var);
}
public final Object invoke(Object obj, Object obj2) {
return create((hg2) obj, (td2) obj2).invokeSuspend(p1g.a);
}
public final Object invokeSuspend(Object obj) {
sff dVar;
jg2 jg2Var = jg2.COROUTINE_SUSPENDED;
int i = this.b;
if (i == 0) {
p2d.b(obj);
fxa<StringWrapper, Type> fxaVar = this.c;
String a2 = ((StringWrapper) fxaVar.a).a(this.d);
if (a2 == null) {
a2 = "";
}
int i2 = a.a[((Type) fxaVar.b).ordinal()];
if (i2 == 1) {
dVar = new sff.d(a2);
} else if (i2 == 2) {
dVar = new sff.b(a2);
} else if (i2 == 3) {
dVar = new sff.c(a2);
} else {
if (i2 != 4) {
throw new qw9();
}
dVar = new sff.a(a2);
}
hce hceVar = this.e;
mbe mbeVar = (mbe) hceVar.b.getValue();
if (mbeVar != null) {
mbeVar.dismiss();
}
this.b = 1;
if (hceVar.a(dVar, this) == jg2Var) {
return jg2Var;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
p2d.b(obj);
}
int i3 = CheckoutActivity.O;
this.f.U0().w0.setValue((Object) null);
return p1g.a;
}
}
public static final class f0 extends ua8 implements Function110<zfc, p1g> {
public f0() {
super(1);
}
public final Object invoke(Object obj) {
zfc zfcVar = (zfc) obj;
vk7.f(zfcVar, "it");
zfcVar.dismiss();
int i = CheckoutActivity.O;
BaseActivity baseActivity = CheckoutActivity.this;
baseActivity.getClass();
baseActivity.startActivity(new Intent("android.settings.SETTINGS"));
return p1g.a;
}
}
public static final class g extends ua8 implements Function23<Composer, Integer, p1g> {
public final hce c;
public final int d;
public g(hce hceVar, int i) {
super(2);
this.c = hceVar;
this.d = i;
}
public final Object invoke(Object obj, Object obj2) {
((Number) obj2).intValue();
int e = jo3.e(this.d | 1);
CheckoutActivity.this.N0(this.c, (Composer) obj, e);
return p1g.a;
}
}
public static final class g0 extends ua8 implements zu5<ViewModelStore> {
public final ComponentActivity b;
public g0(ComponentActivity componentActivity) {
super(0);
this.b = componentActivity;
}
public final Object invoke() {
ViewModelStore viewModelStore = this.b.getViewModelStore();
vk7.e(viewModelStore, "viewModelStore");
return viewModelStore;
}
}
public static final class h extends ua8 implements Function110<CommonLayoutClickType, p1g> {
public final CheckoutError b;
public class a {
public static final int[] a;
static {
int[] iArr = new int[CommonLayoutClickType.values().length];
try {
iArr[CommonLayoutClickType.PRIMARY.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[CommonLayoutClickType.SECONDARY.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
a = iArr;
}
}
public h(CheckoutError checkoutError) {
super(1);
this.b = checkoutError;
}
public final Object invoke(Object obj) {
zu5<p1g> zu5Var;
CheckoutError.ActionMetadata d;
zu5<p1g> zu5Var2;
CommonLayoutClickType commonLayoutClickType = (CommonLayoutClickType) obj;
vk7.f(commonLayoutClickType, "it");
int i = a.a[commonLayoutClickType.ordinal()];
CheckoutError checkoutError = this.b;
if (i == 1) {
CheckoutError.ActionMetadata a2 = checkoutError.getA();
if (a2 != null && (zu5Var = a2.b) != null) {
zu5Var.invoke();
}
} else if (i == 2 && (d = checkoutError.d()) != null && (zu5Var2 = d.b) != null) {
zu5Var2.invoke();
}
return p1g.a;
}
}
public static final class h0 extends ua8 implements zu5<sh2> {
public final ComponentActivity b;
public h0(ComponentActivity componentActivity) {
super(0);
this.b = componentActivity;
}
public final Object invoke() {
sh2 defaultViewModelCreationExtras = this.b.getDefaultViewModelCreationExtras();
vk7.e(defaultViewModelCreationExtras, "this.defaultViewModelCreationExtras");
return defaultViewModelCreationExtras;
}
}
public static final class i extends ua8 implements zu5<p1g> {
public final CheckoutError b;
public i(CheckoutError checkoutError) {
super(0);
this.b = checkoutError;
}
public final Object invoke() {
((CheckoutError.GeneralErrorNoInternet) this.b).a.b.invoke();
return p1g.a;
}
}
public static final class i0 extends ua8 implements zu5<ViewModelProvider.Factory> {
public i0() {
super(0);
}
public final Object invoke() {
ViewModelProvider.Factory factory = CheckoutActivity.this.G;
if (factory != null) {
return factory;
}
vk7.m("factory");
throw null;
}
}
public static final class j extends ua8 implements Function23<Composer, Integer, p1g> {
public final int c;
public j(int i) {
super(2);
this.c = i;
}
public final Object invoke(Object obj, Object obj2) {
((Number) obj2).intValue();
int e = jo3.e(this.c | 1);
CheckoutActivity.this.O0((Composer) obj, e);
return p1g.a;
}
}
public static final class k extends ua8 implements zu5<p1g> {
public static final k b = new k();
public k() {
super(0);
}
public final Object invoke() {
return p1g.a;
}
}
public static final class l extends ua8 implements zu5<p1g> {
public static final l b = new l();
public l() {
super(0);
}
public final Object invoke() {
return p1g.a;
}
}
public static final class m extends ua8 implements Function23<Composer, Integer, p1g> {
public final int c;
public m(int i) {
super(2);
this.c = i;
}
public final Object invoke(Object obj, Object obj2) {
((Number) obj2).intValue();
int e = jo3.e(this.c | 1);
CheckoutActivity.this.P0((Composer) obj, e);
return p1g.a;
}
}
public static final class n extends ua8 implements zu5<zfc> {
public n() {
super(0);
}
public final Object invoke() {
return new zfc(CheckoutActivity.this);
}
}
public static final class o extends ua8 implements zu5<zfc> {
public o() {
super(0);
}
public final Object invoke() {
return new zfc(CheckoutActivity.this, zx1.a.a);
}
}
public class p extends pw5 implements zu5<p1g> {
public p(Object obj) {
super(0, obj, CheckoutActivity.class, "navigateToMain", "navigateToMain()V", 0);
}
public final Object invoke() {
?? r0 = (CheckoutActivity) ((v11) this).receiver;
int i = CheckoutActivity.O;
r0.S0().c(r0);
r0.B0();
return p1g.a;
}
}
public class q extends pw5 implements zu5<p1g> {
public q(Object obj) {
super(0, obj, CheckoutActivity.class, "processInsufficientBalanceDialog", "processInsufficientBalanceDialog()V", 0);
}
public final java.lang.Object invoke() {
throw new UnsupportedOperationException("Method not decompiled: ovo.id.wallet.checkout.ui.presentation.compose.CheckoutActivity.q.invoke():java.lang.Object");
}
}
public class r extends pw5 implements Function110<xh, p1g> {
public r(Object obj) {
super(1, obj, uh.class, "trackAnalyticData", "trackAnalyticData(Landroid/content/Context;Lovo/id/analytics/AnalyticPayload;)V", 1);
}
public final Object invoke(Object obj) {
xh xhVar = (xh) obj;
vk7.f(xhVar, "p0");
uh.a((Context) ((v11) this).receiver, xhVar);
return p1g.a;
}
}
public class s extends pw5 implements Function110<CheckoutSummaryData, p1g> {
public s(Object obj) {
super(1, obj, CheckoutActivity.class, "processConfirmationDialog", "processConfirmationDialog(Lovo/id/wallet/checkout/core/domain/entity/model/CheckoutSummaryData;)V", 0);
}
public final Object invoke(Object obj) {
CheckoutSummaryData checkoutSummaryData = (CheckoutSummaryData) obj;
vk7.f(checkoutSummaryData, "p0");
?? r0 = (CheckoutActivity) ((v11) this).receiver;
int i = CheckoutActivity.O;
r0.getClass();
LayoutInflater from = LayoutInflater.from(r0);
int i2 = wpa.x;
DataBinderMapperImpl dataBinderMapperImpl = fv2.a;
wpa wpaVar = (wpa) ViewDataBinding.m(from, g7c.ovo_layout_checkout_details, (ViewGroup) null, false, (Object) null);
xc0 xc0Var = new xc0();
xc0Var.r(checkoutSummaryData.getContents());
wpaVar.f1497w.setText(checkoutSummaryData.getTitle());
RecyclerView recyclerView = wpaVar.f1495u;
recyclerView.setAdapter(xc0Var);
recyclerView.setLayoutManager(new LinearLayoutManager(1));
com.google.android.material.bottomsheet.b bVar = new com.google.android.material.bottomsheet.b((Context) r0, yac.Ravier_BottomSheetDialog);
bVar.setContentView(((ViewDataBinding) wpaVar).e);
bVar.setCancelable(true);
bVar.show();
r0.L = bVar;
return p1g.a;
}
}
public class t extends pw5 implements Function110<fxa<? extends Integer, ? extends fxa<? extends String, ? extends Object>[]>, p1g> {
public t(Object obj) {
super(1, obj, CheckoutActivity.class, "openNewScreen", "openNewScreen(Lkotlin/Pair;)V", 0);
}
public final Object invoke(Object obj) {
Intent d;
fxa fxaVar = (fxa) obj;
AppCompatActivity appCompatActivity = (CheckoutActivity) ((v11) this).receiver;
int i = CheckoutActivity.O;
appCompatActivity.getClass();
Integer num = fxaVar != null ? (Integer) fxaVar.a : null;
if (num != null && num.intValue() == 103) {
Intent intent = new Intent((Context) appCompatActivity, (Class<?>) CheckoutPromoActivity.class);
fxa[] fxaVarArr = (fxa[]) fxaVar.b;
intent.putExtras(iw0.a((fxa[]) Arrays.copyOf(fxaVarArr, fxaVarArr.length)));
appCompatActivity.J.a(intent, (oa) null);
} else if (num != null && num.intValue() == 104 && (d = appCompatActivity.S0().d(appCompatActivity, (fxa[]) fxaVar.b)) != null) {
z8.m(appCompatActivity, d, appCompatActivity.I, true);
}
return p1g.a;
}
}
public class u extends pw5 implements Function110<zu5<? extends p1g>, p1g> {
public u(Object obj) {
super(1, obj, CheckoutActivity.class, "showNoInternetDialog", "showNoInternetDialog(Lkotlin/jvm/functions/Function0;)V", 0);
}
public final Object invoke(Object obj) {
zu5<p1g> zu5Var = (zu5) obj;
vk7.f(zu5Var, "p0");
CheckoutActivity checkoutActivity = (CheckoutActivity) ((v11) this).receiver;
int i = CheckoutActivity.O;
checkoutActivity.V0(zu5Var);
return p1g.a;
}
}
public class v extends pw5 implements Function110<CheckoutError, p1g> {
public v(Object obj) {
super(1, obj, CheckoutActivity.class, "handleCheckoutError", "handleCheckoutError(Lovo/id/wallet/checkout/ui/presentation/utils/CheckoutError;)V", 0);
}
public final Object invoke(Object obj) {
CheckoutError checkoutError = (CheckoutError) obj;
vk7.f(checkoutError, "p0");
?? r0 = (CheckoutActivity) ((v11) this).receiver;
int i = CheckoutActivity.O;
com.google.android.material.bottomsheet.b bVar = r0.L;
if (bVar != null) {
bVar.dismiss();
}
?? T0 = r0.T0();
int i2 = zfc.f1687t;
T0.s("", dgc.b);
T0.v("", ggc.b);
T0.m("", agc.b);
if (T0.isShowing()) {
T0.dismiss();
}
boolean z = !(checkoutError instanceof CheckoutError.CheckoutTimeoutError ? true : checkoutError instanceof CheckoutError.PromoFailedError ? true : checkoutError instanceof CheckoutError.PromoExpiredError);
String a = checkoutError.getA();
if (vk7.a(a, "")) {
a = null;
}
fl1 fl1Var = new fl1(a, r0);
?? T02 = r0.T0();
T02.setCancelable(z);
T02.p(a);
T02.x(checkoutError.getB().a((Context) r0));
T02.k(checkoutError.getC().a((Context) r0));
CheckoutError.ActionMetadata d = checkoutError.d();
if (d != null) {
String a2 = d.a.a((Context) r0);
if (a2 == null) {
a2 = "";
}
fl1Var.invoke(a2, new bl1(r0, d));
}
CheckoutError.ActionMetadata a3 = checkoutError.getA();
if (a3 != null) {
String a4 = a3.a.a((Context) r0);
T02.s(a4 != null ? a4 : "", new cl1(a3));
}
T02.show();
return p1g.a;
}
}
public class w extends pw5 implements Function110<ssb, p1g> {
public w(Object obj) {
super(1, obj, CheckoutActivity.class, "processTermsConditionsSummaryDialog", "processTermsConditionsSummaryDialog(Lovo/id/wallet/checkout/core/domain/entity/model/PromoTerm;)V", 0);
}
public final Object invoke(Object obj) {
ssb ssbVar = (ssb) obj;
vk7.f(ssbVar, "p0");
CheckoutActivity checkoutActivity = (CheckoutActivity) ((v11) this).receiver;
int i = CheckoutActivity.O;
checkoutActivity.getClass();
com.google.android.material.bottomsheet.b b = fm1.b(checkoutActivity, "ineligible", ssbVar.c, new ml1(checkoutActivity, ssbVar), nl1.b);
b.show();
checkoutActivity.L = b;
return p1g.a;
}
}
public class x extends pw5 implements Function110<NextRequest, p1g> {
public x(Object obj) {
super(1, obj, CheckoutActivity.class, "navigateToSummary", "navigateToSummary(Lovo/id/wallet/base/data/entity/request/NextRequest;)V", 0);
}
public final Object invoke(Object obj) {
NextRequest nextRequest = (NextRequest) obj;
vk7.f(nextRequest, "p0");
AppCompatActivity appCompatActivity = (CheckoutActivity) ((v11) this).receiver;
int i = CheckoutActivity.O;
Intent f = appCompatActivity.S0().f(appCompatActivity, nextRequest);
if (f != null) {
f.setFlags(335577088);
q0f.u(appCompatActivity, f, false, 6);
}
appCompatActivity.finish();
return p1g.a;
}
}
public class y extends pw5 implements Function110<NextRequest, p1g> {
public y(Object obj) {
super(1, obj, CheckoutActivity.class, "navigateToReceipt", "navigateToReceipt(Lovo/id/wallet/base/data/entity/request/NextRequest;)V", 0);
}
public final Object invoke(Object obj) {
NextRequest nextRequest = (NextRequest) obj;
vk7.f(nextRequest, "p0");
AppCompatActivity appCompatActivity = (CheckoutActivity) ((v11) this).receiver;
int i = CheckoutActivity.O;
Intent h = appCompatActivity.S0().h(appCompatActivity, nextRequest);
if (h != null) {
h.setFlags(335577088);
q0f.u(appCompatActivity, h, false, 6);
}
appCompatActivity.finish();
return p1g.a;
}
}
public class z extends pw5 implements zu5<p1g> {
public z(Object obj) {
super(0, obj, CheckoutActivity.class, "abortScreen", "abortScreen()V", 0);
}
public final Object invoke() {
CheckoutActivity.Q0((CheckoutActivity) ((v11) this).receiver);
return p1g.a;
}
}
public static final void Q0(CheckoutActivity checkoutActivity) {
if (!checkoutActivity.isTaskRoot()) {
checkoutActivity.B0();
} else {
checkoutActivity.S0().c(checkoutActivity);
checkoutActivity.B0();
}
}
public static final void R0(CheckoutActivity checkoutActivity) {
checkoutActivity.getClass();
?? zfcVar = new zfc(checkoutActivity, zx1.b.a);
zfcVar.setCancelable(true);
zfcVar.x(checkoutActivity.getResources().getString(fac.ovo_confirm_cancel_transaction_title));
zfcVar.k(checkoutActivity.getResources().getString(fac.ovo_confirm_cancel_transaction_desc));
zfcVar.u(fac.ovo_confirm_cancel_transaction_cancel, new hl1(checkoutActivity));
zfcVar.q(fac.ovo_confirm_cancel_transaction_continue, il1.b);
jl1 jl1Var = new jl1(checkoutActivity);
Integer num = (Integer) checkoutActivity.U0().B0.getValue();
if (num != null && num.intValue() == 102) {
if (zfcVar.isShowing()) {
return;
}
zfcVar.show();
} else if (num != null && num.intValue() == 101) {
jl1Var.invoke();
} else {
jl1Var.invoke();
}
}
public final void G0() {
rl2 rl2Var = vx0.a;
if (rl2Var == null) {
vk7.m("checkoutComponent");
throw null;
}
this.G = new rig(c27.h(CheckoutViewModel.class, rl2Var.f1187o, in1.class, rl2Var.p));
this.H = rl2Var.a;
}
public final void M0(Composer composer, int i2) {
b52 h2 = composer.h(-364591060);
rm9 l2 = jt7.l(U0().B0, 100, h2, 56);
rm9 l3 = jt7.l(U0().C0, StringWrapper.a.e(""), h2, 72);
Context context = (Context) h2.C(AndroidCompositionLocals_androidKt.b);
h2.u(-492369756);
Object v2 = h2.v();
if (v2 == Composer.a.a) {
v2 = new hce();
h2.o(v2);
}
h2.X(false);
bcd.b((Modifier) null, c22.b(h2, -638648336, new a(l3, context, this)), (Function23) null, (Function23) null, (Function23) null, 0, 0L, 0L, (yrg) null, c22.b(h2, -594570501, new b(l2, this, (hce) v2)), h2, 805306416, 509);
rrc b02 = h2.b0();
if (b02 == null) {
return;
}
b02.d = new c(i2);
}
public final void N0(hce hceVar, Composer composer, int i2) {
b52 b52Var;
vk7.f(hceVar, "hostState");
b52 h2 = composer.h(2110505611);
MutableLiveData mutableLiveData = U0().A;
pk4 pk4Var = pk4.a;
rm9 l2 = jt7.l(mutableLiveData, pk4Var, h2, 72);
rm9 l3 = jt7.l(U0().C, pk4Var, h2, 72);
rm9 l4 = jt7.l(U0().J, new CheckoutStateInfo(null, null, null, 0L, false, 0.0d, 0.0d, 0.0d, 255, null), h2, 72);
Modifier.a aVar = Modifier.a.b;
Modifier a2 = xh9.a(aVar, "column_checkout_form_layout");
h2.u(-483455358);
dx1 a3 = bx1.a(Arrangement.c, Alignment.a.m, h2, 0);
h2.u(-1323940314);
int i3 = h2.P;
n8b T = h2.T();
v42.c0.getClass();
tf8.a aVar2 = v42.a.b;
b22 c2 = cf8.c(a2);
if (!(h2.a instanceof f10)) {
hc.o();
throw null;
}
h2.A();
if (h2.O) {
h2.q(aVar2);
} else {
h2.n();
}
u5g.a(h2, a3, v42.a.f);
u5g.a(h2, T, v42.a.e);
v42.a.a aVar3 = v42.a.i;
if (h2.O || !vk7.a(h2.v(), Integer.valueOf(i3))) {
us.b(i3, h2, i3, aVar3);
}
zz1.b(0, c2, new u9e(h2), h2, 2058660585);
if (!(((double) 1.0f) > 0.0d)) {
throw new IllegalArgumentException("invalid weight 1.0; must be greater than zero".toString());
}
hj8.a(xh9.a(new LayoutWeightElement(1.0f, true), "list_checkout_form_upper"), (ap8) null, (mwa) null, false, (Arrangement.l) null, (Alignment.b) null, (c65) null, false, new d(l2, l4, this), h2, 0, 254);
hj8.a(xh9.a(androidx.compose.foundation.layout.h.h(aVar), "list_checkout_form_lower"), (ap8) null, (mwa) null, false, (Arrangement.l) null, (Alignment.b) null, (c65) null, false, new e(l3, l4, this), h2, 0, 254);
a02.c(h2, false, true, false, false);
Context context = (Context) h2.C(AndroidCompositionLocals_androidKt.b);
MutableLiveData mutableLiveData2 = U0().x0;
rm9 l5 = jt7.l(mutableLiveData2, mutableLiveData2.getValue(), h2, 8);
h2.u(773894976);
h2.u(-492369756);
Object v2 = h2.v();
if (v2 == Composer.a.a) {
i62 i62Var = new i62(ld4.i(h2));
h2.o(i62Var);
v2 = i62Var;
}
h2.X(false);
hg2 hg2Var = ((i62) v2).a;
h2.X(false);
fxa fxaVar = (fxa) l5.getValue();
if (fxaVar != null) {
b52Var = h2;
ze7.m(hg2Var, (zf2) null, (lg2) null, new f(fxaVar, context, hceVar, this, null), 3);
} else {
b52Var = h2;
}
rrc b02 = b52Var.b0();
if (b02 == null) {
return;
}
b02.d = new g(hceVar, i2);
}
public final void O0(Composer composer, int i2) {
StringWrapper stringWrapper;
StringWrapper stringWrapper2;
b52 h2 = composer.h(-1281295034);
Context context = (Context) h2.C(AndroidCompositionLocals_androidKt.b);
CheckoutError checkoutError = (CheckoutError) jt7.l(U0().E0, new CheckoutError.GeneralError(new CheckoutError.ActionMetadata(StringWrapper.a.e(""), k.b)), h2, 72).getValue();
Modifier a2 = xh9.a(androidx.compose.foundation.layout.h.f(Modifier.a.b), "ravier_layout_checkout_form");
String a3 = checkoutError.getA();
String a4 = checkoutError.getB().a(context);
String str = a4 == null ? "" : a4;
String a5 = checkoutError.getC().a(context);
String str2 = a5 == null ? "" : a5;
CheckoutError.ActionMetadata a6 = checkoutError.getA();
String a7 = (a6 == null || (stringWrapper2 = a6.a) == null) ? null : stringWrapper2.a(context);
CheckoutError.ActionMetadata d2 = checkoutError.d();
ay1.a aVar = new ay1.a((Object) a3, str, str2, a7, (d2 == null || (stringWrapper = d2.a) == null) ? null : stringWrapper.a(context), false, (String) null, true, 192);
h2.u(1157296644);
boolean L = h2.L(checkoutError);
Object v2 = h2.v();
Composer.a.a aVar2 = Composer.a.a;
if (L || v2 == aVar2) {
v2 = new h(checkoutError);
h2.o(v2);
}
h2.X(false);
jgc.a(a2, aVar, null, null, (Function110) v2, h2, 64, 12);
if (checkoutError instanceof CheckoutError.GeneralErrorNoInternet) {
h2.u(1157296644);
boolean L2 = h2.L(checkoutError);
Object v3 = h2.v();
if (L2 || v3 == aVar2) {
v3 = new i(checkoutError);
h2.o(v3);
}
h2.X(false);
V0((zu5) v3);
}
rrc b02 = h2.b0();
if (b02 == null) {
return;
}
b02.d = new j(i2);
}
public final void P0(Composer composer, int i2) {
b52 h2 = composer.h(700013586);
if ((i2 & 1) == 0 && h2.j()) {
h2.F();
} else {
Modifier.a aVar = Modifier.a.b;
Modifier a2 = xh9.a(androidx.compose.foundation.layout.h.f(aVar), "box_checkout_form_loading");
h2.u(733328855);
kt0 f2 = jt0.f(Alignment.a.a, false, h2, 0);
h2.u(-1323940314);
int i3 = h2.P;
n8b T = h2.T();
v42.c0.getClass();
tf8.a aVar2 = v42.a.b;
b22 c2 = cf8.c(a2);
if (!(h2.a instanceof f10)) {
hc.o();
throw null;
}
h2.A();
if (h2.O) {
h2.q(aVar2);
} else {
h2.n();
}
u5g.a(h2, f2, v42.a.f);
u5g.a(h2, T, v42.a.e);
v42.a.a aVar3 = v42.a.i;
if (h2.O || !vk7.a(h2.v(), Integer.valueOf(i3))) {
us.b(i3, h2, i3, aVar3);
}
zz1.b(0, c2, new u9e(h2), h2, 2058660585);
hhc.b(LoadingType.INLINE, xh9.a(androidx.compose.foundation.layout.c.a.e(aVar, Alignment.a.e), "loading_checkout_form"), LoadingState.LOADING, l.b, h2, 3462, 0);
a02.c(h2, false, true, false, false);
}
rrc b02 = h2.b0();
if (b02 == null) {
return;
}
b02.d = new m(i2);
}
public final jm1 S0() {
jm1 jm1Var = this.H;
if (jm1Var != null) {
return jm1Var;
}
vk7.m("checkoutListener");
throw null;
}
public final zfc T0() {
return (zfc) this.M.getValue();
}
public final CheckoutViewModel U0() {
return (CheckoutViewModel) this.K.getValue();
}
public final void V0(zu5<p1g> zu5Var) {
?? r0 = (zfc) this.N.getValue();
if (r0.isShowing()) {
r0.dismiss();
}
r0.t(new e0(zu5Var));
r0.w(new f0());
r0.show();
}
public final void onCreate(Bundle bundle) {
HashMap hashMap;
Object obj;
Object obj2;
super.onCreate(bundle);
CheckoutViewModel U0 = U0();
String a2 = S0().a();
U0.getClass();
vk7.f(a2, "<set-?>");
U0.G0 = a2;
vx0.t(this, new fxa(U0.P, new r(this)));
vx0.t(this, new fxa(U0.S, new s(this)));
vx0.t(this, new fxa(U0.R, new t(this)));
vx0.t(this, new fxa(U0.W, new u(this)));
vx0.t(this, new fxa(U0.z0, new v(this)));
vx0.t(this, new fxa(U0.v0, new w(this)));
vx0.t(this, new fxa(U0.V, new x(this)));
vx0.t(this, new fxa(U0.U, new y(this)));
vx0.u(this, new fxa(U0.Y, new z(this)));
vx0.u(this, new fxa(U0.Z, new p(this)));
vx0.u(this, new fxa(U0.T, new q(this)));
Bundle extras = getIntent().getExtras();
U0.A0.setValue(100);
U0.K0 = extras != null ? extras.getString("checkoutId") : null;
U0.L0 = extras != null ? extras.getString("notificationId") : null;
U0.M0 = extras != null ? extras.getString("highlightRefId") : null;
if (extras != null) {
if (Build.VERSION.SDK_INT >= 33) {
obj2 = extras.getSerializable("trackingParams", HashMap.class);
} else {
Object serializable = extras.getSerializable("trackingParams");
if (!(serializable instanceof HashMap)) {
serializable = null;
}
obj2 = (HashMap) serializable;
}
hashMap = (HashMap) obj2;
} else {
hashMap = null;
}
String str = U0.L0;
if (str == null || fqe.A(str)) {
Object obj3 = hashMap != null ? hashMap.get("notificationId") : null;
U0.L0 = obj3 instanceof String ? (String) obj3 : null;
}
String str2 = U0.M0;
if (str2 == null || fqe.A(str2)) {
Object obj4 = hashMap != null ? hashMap.get("highlightRefId") : null;
U0.M0 = obj4 instanceof String ? (String) obj4 : null;
}
Object obj5 = hashMap != null ? hashMap.get("reference") : null;
U0.P0 = obj5 instanceof HashMap ? (HashMap) obj5 : null;
Object obj6 = hashMap != null ? hashMap.get("endTime") : null;
Long l2 = obj6 instanceof Long ? (Long) obj6 : null;
if (l2 != null) {
l2.longValue();
}
if (extras != null) {
if (Build.VERSION.SDK_INT >= 33) {
obj = extras.getSerializable("trackingParams", HashMap.class);
} else {
Object serializable2 = extras.getSerializable("trackingParams");
if (!(serializable2 instanceof HashMap)) {
serializable2 = null;
}
obj = (HashMap) serializable2;
}
}
ze7.m(ViewModelKt.getViewModelScope(U0), U0.f1861w.a(), (lg2) null, new ovo.id.wallet.checkout.ui.presentation.compose.m(U0, null), 2);
OnBackPressedDispatcher R = R();
vk7.e(R, "onBackPressedDispatcher");
ti3.a(R, this, new a0());
b0 b0Var = new b0();
Object obj7 = c22.a;
t02.a(this, new b22(902609802, b0Var, true));
}
public final void onRestart() {
super/*android.app.Activity*/.onRestart();
U0().Q0 = true;
}
}