正在查看: Empower MX v1.29.4.340 应用的 ChallengeActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Empower MX v1.29.4.340 应用的 ChallengeActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.stripe3ds2.views;
import Gf.L;
import Gf.M;
import P9.q;
import Rf.J;
import Rf.d0;
import T9.AbstractC0798e;
import T9.AbstractC0807n;
import T9.I;
import T9.InterfaceC0799f;
import T9.O;
import T9.u;
import T9.v;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import androidx.activity.ComponentActivity;
import androidx.fragment.app.FragmentManager;
import androidx.lifecycle.e0;
import androidx.lifecycle.f0;
import androidx.lifecycle.g0;
import com.stripe.android.stripe3ds2.views.ChallengeActivity;
import com.stripe.android.stripe3ds2.views.ThreeDS2Button;
import com.stripe.android.stripe3ds2.views.b;
import com.stripe.android.stripe3ds2.views.d;
import d.C;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import sf.x;
@Metadata(d1 = {"\u0000\u008a\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u0000 T2\u00020\u0001:\u0001UB\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u0017\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\u0007\u0010\bJ\u000f\u0010\t\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\t\u0010\u0003J\u000f\u0010\n\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\n\u0010\u0003J\u000f\u0010\u000b\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\u000b\u0010\u0003J\u0019\u0010\u000e\u001a\u00020\u00062\b\u0010\r\u001a\u0004\u0018\u00010\fH\u0014¢\u0006\u0004\b\u000e\u0010\u000fJ\u000f\u0010\u0010\u001a\u00020\u0006H\u0016¢\u0006\u0004\b\u0010\u0010\u0003J\u0017\u0010\u0013\u001a\u00020\u00062\u0006\u0010\u0012\u001a\u00020\u0011H\u0016¢\u0006\u0004\b\u0013\u0010\u0014J\u000f\u0010\u0015\u001a\u00020\u0006H\u0014¢\u0006\u0004\b\u0015\u0010\u0003J\u000f\u0010\u0016\u001a\u00020\u0006H\u0014¢\u0006\u0004\b\u0016\u0010\u0003J\u000f\u0010\u0017\u001a\u00020\u0006H\u0014¢\u0006\u0004\b\u0017\u0010\u0003R\u001b\u0010\u001d\u001a\u00020\u00188BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u0019\u0010\u001a\u001a\u0004\b\u001b\u0010\u001cR\u001b\u0010\"\u001a\u00020\u001e8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u001f\u0010\u001a\u001a\u0004\b \u0010!R\u001b\u0010'\u001a\u00020#8@X\u0080\u0084\u0002¢\u0006\f\n\u0004\b$\u0010\u001a\u001a\u0004\b%\u0010&R\u001b\u0010,\u001a\u00020(8@X\u0080\u0084\u0002¢\u0006\f\n\u0004\b)\u0010\u001a\u001a\u0004\b*\u0010+R\u001b\u00101\u001a\u00020-8@X\u0080\u0084\u0002¢\u0006\f\n\u0004\b.\u0010\u001a\u001a\u0004\b/\u00100R\u001b\u00106\u001a\u0002028BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b3\u0010\u001a\u001a\u0004\b4\u00105R\u001b\u0010;\u001a\u0002078BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b8\u0010\u001a\u001a\u0004\b9\u0010:R\u001b\u0010@\u001a\u00020<8@X\u0080\u0084\u0002¢\u0006\f\n\u0004\b=\u0010\u001a\u001a\u0004\b>\u0010?R\u001b\u0010E\u001a\u00020A8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\bB\u0010\u001a\u001a\u0004\bC\u0010DR\u001b\u0010J\u001a\u00020F8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\bG\u0010\u001a\u001a\u0004\bH\u0010IR\u001b\u0010O\u001a\u00020K8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\bL\u0010\u001a\u001a\u0004\bM\u0010NR\u0018\u0010S\u001a\u0004\u0018\u00010P8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\bQ\u0010R¨\u0006V"}, d2 = {"Lcom/stripe/android/stripe3ds2/views/ChallengeActivity;", "Landroidx/appcompat/app/c;", "<init>", "()V", "Lcom/stripe/android/stripe3ds2/transactions/b;", "cres", "", "W1", "(Lcom/stripe/android/stripe3ds2/transactions/b;)V", "L1", "I1", "K1", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "onLowMemory", "", "level", "onTrimMemory", "(I)V", "onPause", "onResume", "onDestroy", "LT9/O;", "b0", "Lsf/l;", "S1", "()LT9/O;", "transactionTimer", "LQ9/c;", "c0", "N1", "()LQ9/c;", "errorReporter", "Lcom/stripe/android/stripe3ds2/views/c;", "d0", "P1", "()Lcom/stripe/android/stripe3ds2/views/c;", "fragment", "LN9/c;", "e0", "getFragmentViewBinding$3ds2sdk_release", "()LN9/c;", "fragmentViewBinding", "LN9/b;", "f0", "U1", "()LN9/b;", "viewBinding", "LT9/f;", "g0", "M1", "()LT9/f;", "challengeActionHandler", "LT9/v;", "h0", "O1", "()LT9/v;", "errorRequestExecutor", "Lcom/stripe/android/stripe3ds2/views/b;", "i0", "V1", "()Lcom/stripe/android/stripe3ds2/views/b;", "viewModel", "Lcom/stripe/android/stripe3ds2/views/d;", "j0", "T1", "()Lcom/stripe/android/stripe3ds2/views/d;", "viewArgs", "LW9/r;", "k0", "Q1", "()LW9/r;", "keyboardController", "LW9/i;", "l0", "R1", "()LW9/i;", "progressDialogFactory", "Landroid/app/Dialog;", "m0", "Landroid/app/Dialog;", "progressDialog", "n0", "a", "3ds2sdk_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class ChallengeActivity extends androidx.appcompat.app.c {
private static final a n0 = new a(null);
private static final J o0 = d0.b();
private final sf.l transactionTimer = sf.m.a(new q());
private final sf.l errorReporter = sf.m.a(new c());
private final sf.l fragment = sf.m.a(new e());
private final sf.l fragmentViewBinding = sf.m.a(new f());
private final sf.l viewBinding = sf.m.a(new s());
private final sf.l challengeActionHandler = sf.m.a(new b());
private final sf.l errorRequestExecutor = sf.m.a(new d());
private final sf.l viewModel = new e0(M.b(com.stripe.android.stripe3ds2.views.b.class), new o(this), new t(), new p(null, this));
private final sf.l viewArgs = sf.m.a(new r());
private final sf.l keyboardController = sf.m.a(new g());
private final sf.l progressDialogFactory = sf.m.a(new m());
private Dialog progressDialog;
private static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private a() {
}
}
static final class b extends Gf.s implements Function0 {
b() {
super(0);
}
public final InterfaceC0799f.a invoke() {
return new InterfaceC0799f.a(ChallengeActivity.this.T1().a(), ChallengeActivity.this.N1(), ChallengeActivity.this.T1().c(), (CoroutineContext) ChallengeActivity.o0);
}
}
static final class c extends Gf.s implements Function0 {
c() {
super(0);
}
public final Q9.a invoke() {
Context applicationContext = ChallengeActivity.this.getApplicationContext();
Intrinsics.checkNotNullExpressionValue(applicationContext, "getApplicationContext(...)");
return new Q9.a(applicationContext, new Q9.e(ChallengeActivity.this.T1().f()), null, null, null, null, null, 0, 252, null);
}
}
static final class d extends Gf.s implements Function0 {
d() {
super(0);
}
public final v invoke() {
return new I.b(ChallengeActivity.o0).a(ChallengeActivity.this.T1().b().a(), ChallengeActivity.this.N1());
}
}
static final class e extends Gf.s implements Function0 {
e() {
super(0);
}
public final com.stripe.android.stripe3ds2.views.c invoke() {
return (com.stripe.android.stripe3ds2.views.c) ChallengeActivity.this.U1().b.getFragment();
}
}
static final class f extends Gf.s implements Function0 {
f() {
super(0);
}
public final N9.c invoke() {
return ChallengeActivity.this.P1().l2();
}
}
static final class g extends Gf.s implements Function0 {
g() {
super(0);
}
public final W9.r invoke() {
return new W9.r(ChallengeActivity.this);
}
}
public static final class h extends C {
h() {
super(true);
}
public void d() {
ChallengeActivity.this.V1().A(AbstractC0798e.a.d);
}
}
static final class i extends Gf.s implements Function1 {
i() {
super(1);
}
public final void a(AbstractC0798e abstractC0798e) {
if (ChallengeActivity.this.isFinishing()) {
return;
}
ChallengeActivity.this.L1();
ChallengeActivity challengeActivity = ChallengeActivity.this;
Dialog a = challengeActivity.R1().a();
a.show();
challengeActivity.progressDialog = a;
com.stripe.android.stripe3ds2.views.b V1 = ChallengeActivity.this.V1();
Intrinsics.f(abstractC0798e);
V1.A(abstractC0798e);
}
public Object invoke(Object obj) {
a((AbstractC0798e) obj);
return Unit.a;
}
}
static final class j extends Gf.s implements Function1 {
j() {
super(1);
}
public final void a(AbstractC0807n abstractC0807n) {
ChallengeActivity.this.setResult(-1, new Intent().putExtras(abstractC0807n.c()));
if (ChallengeActivity.this.isFinishing()) {
return;
}
ChallengeActivity.this.finish();
}
public Object invoke(Object obj) {
a((AbstractC0807n) obj);
return Unit.a;
}
}
static final class k extends Gf.s implements Function1 {
final L e;
k(L l) {
super(1);
this.e = l;
}
public final void a(com.stripe.android.stripe3ds2.transactions.b bVar) {
ChallengeActivity.this.K1();
if (bVar != null) {
ChallengeActivity.this.W1(bVar);
L l = this.e;
com.stripe.android.stripe3ds2.transactions.d E = bVar.E();
String b = E != null ? E.b() : null;
if (b == null) {
b = "";
}
l.d = b;
}
}
public Object invoke(Object obj) {
a((com.stripe.android.stripe3ds2.transactions.b) obj);
return Unit.a;
}
}
static final class l extends Gf.s implements Function1 {
final L e;
l(L l) {
super(1);
this.e = l;
}
public final void a(Boolean bool) {
if (Intrinsics.d(bool, Boolean.TRUE)) {
ChallengeActivity.this.V1().t(new AbstractC0807n.g((String) this.e.d, ChallengeActivity.this.T1().d().E(), ChallengeActivity.this.T1().e()));
}
}
public Object invoke(Object obj) {
a((Boolean) obj);
return Unit.a;
}
}
static final class m extends Gf.s implements Function0 {
m() {
super(0);
}
public final W9.i invoke() {
?? r1 = ChallengeActivity.this;
return new W9.i(r1, r1.T1().j());
}
}
static final class n implements androidx.lifecycle.I, Gf.m {
private final Function1 d;
n(Function1 function1) {
Intrinsics.checkNotNullParameter(function1, "function");
this.d = function1;
}
public final void a(Object obj) {
this.d.invoke(obj);
}
public final sf.i b() {
return this.d;
}
public final boolean equals(Object obj) {
if ((obj instanceof androidx.lifecycle.I) && (obj instanceof Gf.m)) {
return Intrinsics.d(b(), ((Gf.m) obj).b());
}
return false;
}
public final int hashCode() {
return b().hashCode();
}
}
public static final class o extends Gf.s implements Function0 {
final ComponentActivity d;
public o(ComponentActivity componentActivity) {
super(0);
this.d = componentActivity;
}
public final g0 invoke() {
return this.d.H();
}
}
public static final class p extends Gf.s implements Function0 {
final Function0 d;
final ComponentActivity e;
public p(Function0 function0, ComponentActivity componentActivity) {
super(0);
this.d = function0;
this.e = componentActivity;
}
public final n2.a invoke() {
n2.a aVar;
Function0 function0 = this.d;
return (function0 == null || (aVar = (n2.a) function0.invoke()) == null) ? this.e.A() : aVar;
}
}
static final class q extends Gf.s implements Function0 {
q() {
super(0);
}
public final u invoke() {
return new u(ChallengeActivity.this.T1().i(), ChallengeActivity.this.O1(), ChallengeActivity.this.T1().a());
}
}
static final class r extends Gf.s implements Function0 {
r() {
super(0);
}
public final com.stripe.android.stripe3ds2.views.d invoke() {
d.a aVar = com.stripe.android.stripe3ds2.views.d.H;
Bundle extras = ChallengeActivity.this.getIntent().getExtras();
if (extras == null) {
extras = Bundle.EMPTY;
}
Intrinsics.f(extras);
return aVar.a(extras);
}
}
static final class s extends Gf.s implements Function0 {
s() {
super(0);
}
public final N9.b invoke() {
N9.b c = N9.b.c(ChallengeActivity.this.getLayoutInflater());
Intrinsics.checkNotNullExpressionValue(c, "inflate(...)");
return c;
}
}
static final class t extends Gf.s implements Function0 {
t() {
super(0);
}
public final f0.c invoke() {
return new b.C0481b(ChallengeActivity.this.M1(), ChallengeActivity.this.S1(), ChallengeActivity.this.N1(), ChallengeActivity.o0);
}
}
private final void I1() {
final ?? a2 = new W9.m(this).a(T1().j().e(), T1().j().c(q.a.CANCEL));
if (a2 != 0) {
a2.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
ChallengeActivity.J1(ThreeDS2Button.this, this, view);
}
});
}
}
public static final void J1(ThreeDS2Button threeDS2Button, ChallengeActivity challengeActivity, View view) {
Intrinsics.checkNotNullParameter(challengeActivity, "this$0");
threeDS2Button.setClickable(false);
challengeActivity.V1().A(AbstractC0798e.a.d);
}
public final void K1() {
Dialog dialog = this.progressDialog;
if (dialog != null && dialog.isShowing()) {
dialog.dismiss();
}
this.progressDialog = null;
}
public final void L1() {
Q1().a();
}
public final InterfaceC0799f M1() {
return (InterfaceC0799f) this.challengeActionHandler.getValue();
}
public final Q9.c N1() {
return (Q9.c) this.errorReporter.getValue();
}
public final v O1() {
return (v) this.errorRequestExecutor.getValue();
}
private final W9.r Q1() {
return (W9.r) this.keyboardController.getValue();
}
public final W9.i R1() {
return (W9.i) this.progressDialogFactory.getValue();
}
public final O S1() {
return (O) this.transactionTimer.getValue();
}
public final com.stripe.android.stripe3ds2.views.d T1() {
return (com.stripe.android.stripe3ds2.views.d) this.viewArgs.getValue();
}
public final void W1(com.stripe.android.stripe3ds2.transactions.b cres) {
FragmentManager Y0 = Y0();
Intrinsics.checkNotNullExpressionValue(Y0, "getSupportFragmentManager(...)");
androidx.fragment.app.v o2 = Y0.o();
Intrinsics.checkNotNullExpressionValue(o2, "beginTransaction()");
W9.a aVar = W9.a.a;
o2.r(aVar.a(), aVar.b(), aVar.a(), aVar.b());
o2.p(U1().b.getId(), com.stripe.android.stripe3ds2.views.c.class, androidx.core.os.c.a(new Pair[]{x.a("arg_cres", cres)}));
o2.f();
}
public final com.stripe.android.stripe3ds2.views.c P1() {
return (com.stripe.android.stripe3ds2.views.c) this.fragment.getValue();
}
public final N9.b U1() {
return (N9.b) this.viewBinding.getValue();
}
public final com.stripe.android.stripe3ds2.views.b V1() {
return (com.stripe.android.stripe3ds2.views.b) this.viewModel.getValue();
}
protected void onCreate(Bundle savedInstanceState) {
Y0().s1(new W9.g(T1().j(), S1(), O1(), N1(), M1(), T1().d().E(), T1().e(), o0));
super/*androidx.fragment.app.i*/.onCreate(savedInstanceState);
i().i(new h());
getWindow().setFlags(8192, 8192);
setContentView(U1().getRoot());
V1().r().h(this, new n(new i()));
V1().p().h(this, new n(new j()));
I1();
L l2 = new L();
l2.d = "";
V1().n().h(this, new n(new k(l2)));
if (savedInstanceState == null) {
V1().v(T1().d());
}
V1().s().h(this, new n(new l(l2)));
}
protected void onDestroy() {
super.onDestroy();
K1();
}
public void onLowMemory() {
super/*android.app.Activity*/.onLowMemory();
V1().u();
}
protected void onPause() {
super/*androidx.fragment.app.i*/.onPause();
V1().y(true);
L1();
}
protected void onResume() {
super/*androidx.fragment.app.i*/.onResume();
if (V1().q()) {
V1().w();
}
}
public void onTrimMemory(int level) {
super/*androidx.activity.ComponentActivity*/.onTrimMemory(level);
V1().u();
}
}