正在查看: Empower MX v1.29.4.340 应用的 PaymentSheetActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Empower MX v1.29.4.340 应用的 PaymentSheetActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.paymentsheet;
import G9.AbstractC0672d;
import G9.D;
import Gf.M;
import Rf.N;
import Uf.AbstractC0815g;
import Uf.InterfaceC0813e;
import Uf.InterfaceC0814f;
import android.content.Intent;
import android.os.Bundle;
import androidx.activity.ComponentActivity;
import androidx.lifecycle.e0;
import androidx.lifecycle.f0;
import androidx.lifecycle.g0;
import androidx.lifecycle.y;
import com.stripe.android.googlepaylauncher.k;
import com.stripe.android.paymentsheet.q;
import com.stripe.android.paymentsheet.r;
import com.stripe.android.paymentsheet.s;
import k0.l0;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import o9.C2797C;
import q8.AbstractC2854a;
import s0.O;
import s0.z1;
import sf.s;
@Metadata(d1 = {"\u0000V\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0003\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0010\u000b\n\u0002\b\u0002\b\u0000\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0007¢\u0006\u0004\b\u0003\u0010\u0004J\u001d\u0010\u0007\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00060\u0005H\u0002ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u0007\u0010\bJ\u0019\u0010\f\u001a\u00020\u000b2\b\u0010\n\u001a\u0004\u0018\u00010\tH\u0002¢\u0006\u0004\b\f\u0010\rJ\u0013\u0010\u0010\u001a\u00060\u000ej\u0002`\u000fH\u0002¢\u0006\u0004\b\u0010\u0010\u0011J\u0019\u0010\u0014\u001a\u00020\u000b2\b\u0010\u0013\u001a\u0004\u0018\u00010\u0012H\u0014¢\u0006\u0004\b\u0014\u0010\u0015J\u0017\u0010\u0017\u001a\u00020\u000b2\u0006\u0010\u0016\u001a\u00020\u0002H\u0016¢\u0006\u0004\b\u0017\u0010\u0018R(\u0010!\u001a\u00020\u00198\u0000@\u0000X\u0081\u000e¢\u0006\u0018\n\u0004\b\u001a\u0010\u001b\u0012\u0004\b \u0010\u0004\u001a\u0004\b\u001c\u0010\u001d\"\u0004\b\u001e\u0010\u001fR\u001b\u0010'\u001a\u00020\"8VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b#\u0010$\u001a\u0004\b%\u0010&R\u001d\u0010+\u001a\u0004\u0018\u00010\u00068BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b(\u0010$\u001a\u0004\b)\u0010*\u0082\u0002\u000b\n\u0002\b!\n\u0005\b¡\u001e0\u0001¨\u0006.²\u0006\f\u0010-\u001a\u00020,8\nX\u008a\u0084\u0002"}, d2 = {"Lcom/stripe/android/paymentsheet/PaymentSheetActivity;", "LG9/d;", "Lcom/stripe/android/paymentsheet/r;", "<init>", "()V", "Lsf/s;", "Lcom/stripe/android/paymentsheet/q;", "F1", "()Ljava/lang/Object;", "", "error", "", "B1", "(Ljava/lang/Throwable;)V", "Ljava/lang/IllegalArgumentException;", "Lkotlin/IllegalArgumentException;", "A1", "()Ljava/lang/IllegalArgumentException;", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "result", "G1", "(Lcom/stripe/android/paymentsheet/r;)V", "Landroidx/lifecycle/f0$c;", "c0", "Landroidx/lifecycle/f0$c;", "E1", "()Landroidx/lifecycle/f0$c;", "setViewModelFactory$paymentsheet_release", "(Landroidx/lifecycle/f0$c;)V", "getViewModelFactory$paymentsheet_release$annotations", "viewModelFactory", "Lcom/stripe/android/paymentsheet/s;", "d0", "Lsf/l;", "D1", "()Lcom/stripe/android/paymentsheet/s;", "viewModel", "e0", "C1", "()Lcom/stripe/android/paymentsheet/q;", "starterArgs", "", "isProcessing", "paymentsheet_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class PaymentSheetActivity extends AbstractC0672d {
private f0.c viewModelFactory = new s.d(new g());
private final sf.l viewModel = new e0(M.b(s.class), new c(this), new f(), new d(null, this));
private final sf.l starterArgs = sf.m.a(new e());
class a implements g.b, Gf.m {
final s d;
a(s sVar) {
this.d = sVar;
}
public final sf.i b() {
return new Gf.p(1, this.d, s.class, "onGooglePayResult", "onGooglePayResult$paymentsheet_release(Lcom/stripe/android/googlepaylauncher/GooglePayPaymentMethodLauncher$Result;)V", 0);
}
public final void a(k.f fVar) {
Intrinsics.checkNotNullParameter(fVar, "p0");
this.d.q2(fVar);
}
public final boolean equals(Object obj) {
if ((obj instanceof g.b) && (obj instanceof Gf.m)) {
return Intrinsics.d(b(), ((Gf.m) obj).b());
}
return false;
}
public final int hashCode() {
return b().hashCode();
}
}
static final class b extends Gf.s implements Function2 {
static final class a extends Gf.s implements Function2 {
final PaymentSheetActivity d;
static final class C0396a extends kotlin.coroutines.jvm.internal.m implements Function2 {
int d;
final PaymentSheetActivity e;
final ja.g i;
static final class C0397a implements InterfaceC0814f {
final PaymentSheetActivity d;
final ja.g e;
static final class C0398a extends kotlin.coroutines.jvm.internal.d {
Object d;
Object e;
int v;
C0398a(vf.b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.e = obj;
this.v |= Integer.MIN_VALUE;
return C0397a.this.a(null, this);
}
}
C0397a(PaymentSheetActivity paymentSheetActivity, ja.g gVar) {
this.d = paymentSheetActivity;
this.e = gVar;
}
@Override
public final java.lang.Object a(com.stripe.android.paymentsheet.r r5, vf.b r6) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.paymentsheet.PaymentSheetActivity.b.a.C0396a.C0397a.a(com.stripe.android.paymentsheet.r, vf.b):java.lang.Object");
}
}
C0396a(PaymentSheetActivity paymentSheetActivity, ja.g gVar, vf.b bVar) {
super(2, bVar);
this.e = paymentSheetActivity;
this.i = gVar;
}
public final vf.b create(Object obj, vf.b bVar) {
return new C0396a(this.e, this.i, bVar);
}
public final Object invoke(N n, vf.b bVar) {
return create(n, bVar).invokeSuspend(Unit.a);
}
public final Object invokeSuspend(Object obj) {
Object f = wf.b.f();
int i = this.d;
if (i == 0) {
sf.t.b(obj);
InterfaceC0813e u = AbstractC0815g.u(this.e.w1().Y1());
C0397a c0397a = new C0397a(this.e, this.i);
this.d = 1;
if (u.b(c0397a, this) == f) {
return f;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
sf.t.b(obj);
}
return Unit.a;
}
}
class C0399b extends Gf.p implements Function0 {
C0399b(Object obj) {
super(0, obj, s.class, "onUserCancel", "onUserCancel()V", 0);
}
public Object invoke() {
u();
return Unit.a;
}
public final void u() {
((s) ((Gf.f) this).e).D0();
}
}
static final class c extends Gf.s implements Function2 {
final PaymentSheetActivity d;
c(PaymentSheetActivity paymentSheetActivity) {
super(2);
this.d = paymentSheetActivity;
}
public final void a(s0.l lVar, int i) {
if ((i & 11) == 2 && lVar.w()) {
lVar.F();
return;
}
if (s0.o.H()) {
s0.o.Q(1652456663, i, -1, "com.stripe.android.paymentsheet.PaymentSheetActivity.onCreate.<anonymous>.<anonymous>.<anonymous> (PaymentSheetActivity.kt:86)");
}
com.stripe.android.paymentsheet.ui.b.c(this.d.w1(), D.d, null, lVar, 56, 4);
if (s0.o.H()) {
s0.o.P();
}
}
public Object invoke(Object obj, Object obj2) {
a((s0.l) obj, ((Number) obj2).intValue());
return Unit.a;
}
}
static final class d extends Gf.s implements Function1 {
final z1 d;
d(z1 z1Var) {
super(1);
this.d = z1Var;
}
public final Boolean invoke(l0 l0Var) {
Intrinsics.checkNotNullParameter(l0Var, "it");
return Boolean.valueOf(!a.d(this.d));
}
}
a(PaymentSheetActivity paymentSheetActivity) {
super(2);
this.d = paymentSheetActivity;
}
public static final boolean d(z1 z1Var) {
return ((Boolean) z1Var.getValue()).booleanValue();
}
public final void c(s0.l lVar, int i) {
if ((i & 11) == 2 && lVar.w()) {
lVar.F();
return;
}
if (s0.o.H()) {
s0.o.Q(952004382, i, -1, "com.stripe.android.paymentsheet.PaymentSheetActivity.onCreate.<anonymous>.<anonymous> (PaymentSheetActivity.kt:67)");
}
z1 a = ra.g.a(this.d.w1().i0(), lVar, 8);
lVar.e(-1455294829);
boolean U = lVar.U(a);
Object f = lVar.f();
if (U || f == s0.l.a.a()) {
f = new d(a);
lVar.M(f);
}
lVar.R();
ja.g b = ja.h.b((l0) null, (Function1) f, lVar, 0, 1);
O.f(Unit.a, new C0396a(this.d, b, null), lVar, 70);
AbstractC2854a.a(b, null, new C0399b(this.d.w1()), A0.c.b(lVar, 1652456663, true, new c(this.d)), lVar, ja.g.e | 3072, 2);
if (s0.o.H()) {
s0.o.P();
}
}
public Object invoke(Object obj, Object obj2) {
c((s0.l) obj, ((Number) obj2).intValue());
return Unit.a;
}
}
b() {
super(2);
}
public final void a(s0.l lVar, int i) {
if ((i & 11) == 2 && lVar.w()) {
lVar.F();
return;
}
if (s0.o.H()) {
s0.o.Q(485212172, i, -1, "com.stripe.android.paymentsheet.PaymentSheetActivity.onCreate.<anonymous> (PaymentSheetActivity.kt:66)");
}
fa.m.a((fa.h) null, (fa.j) null, (fa.n) null, A0.c.b(lVar, 952004382, true, new a(PaymentSheetActivity.this)), lVar, 3072, 7);
if (s0.o.H()) {
s0.o.P();
}
}
public Object invoke(Object obj, Object obj2) {
a((s0.l) obj, ((Number) obj2).intValue());
return Unit.a;
}
}
public static final class c extends Gf.s implements Function0 {
final ComponentActivity d;
public c(ComponentActivity componentActivity) {
super(0);
this.d = componentActivity;
}
public final g0 invoke() {
return this.d.H();
}
}
public static final class d extends Gf.s implements Function0 {
final Function0 d;
final ComponentActivity e;
public d(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 e extends Gf.s implements Function0 {
e() {
super(0);
}
public final q invoke() {
q.a aVar = q.w;
Intent intent = PaymentSheetActivity.this.getIntent();
Intrinsics.checkNotNullExpressionValue(intent, "getIntent(...)");
return aVar.a(intent);
}
}
static final class f extends Gf.s implements Function0 {
f() {
super(0);
}
public final f0.c invoke() {
return PaymentSheetActivity.this.getViewModelFactory();
}
}
static final class g extends Gf.s implements Function0 {
g() {
super(0);
}
public final q invoke() {
q C1 = PaymentSheetActivity.this.C1();
if (C1 != null) {
return C1;
}
throw new IllegalArgumentException("Required value was null.");
}
}
private final IllegalArgumentException A1() {
return new IllegalArgumentException("PaymentSheet started without arguments.");
}
private final void B1(Throwable error) {
if (error == null) {
error = A1();
}
G1(new r.c(error));
finish();
}
public final q C1() {
return (q) this.starterArgs.getValue();
}
private final Object F1() {
Object b2;
q C1 = C1();
if (C1 == null) {
s.a aVar = sf.s.e;
b2 = sf.s.b(sf.t.a(A1()));
} else {
try {
C1.c().a();
p.b(C1.a());
p.a(C1.a().d());
b2 = sf.s.b(C1);
} catch (IllegalArgumentException e2) {
s.a aVar2 = sf.s.e;
b2 = sf.s.b(sf.t.a(e2));
}
}
y1(sf.s.g(b2));
return b2;
}
@Override
public s w1() {
return (s) this.viewModel.getValue();
}
public final f0.c getViewModelFactory() {
return this.viewModelFactory;
}
public void G1(r result) {
Intrinsics.checkNotNullParameter(result, "result");
setResult(-1, new Intent().putExtras(new C2797C(result).a()));
}
@Override
protected void onCreate(Bundle savedInstanceState) {
Object F1 = F1();
super.onCreate(savedInstanceState);
if (((q) (sf.s.g(F1) ? null : F1)) == null) {
B1(sf.s.e(F1));
return;
}
w1().v2(this, this);
s w1 = w1();
androidx.lifecycle.r a2 = y.a(this);
g.d g2 = g(new com.stripe.android.googlepaylauncher.l(), new a(w1()));
Intrinsics.checkNotNullExpressionValue(g2, "registerForActivityResult(...)");
w1.y2(a2, g2);
if (!H9.a.a(this)) {
w1().v();
}
e.e.b(this, (s0.q) null, A0.c.c(485212172, true, new b()), 1, (Object) null);
}
}