正在查看: Empower MX v1.29.4.340 应用的 PaymentOptionsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Empower MX v1.29.4.340 应用的 PaymentOptionsActivity.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 com.stripe.android.paymentsheet.g;
import com.stripe.android.paymentsheet.i;
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.u;
import q8.AbstractC2854a;
import s0.O;
import s0.z1;
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\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\b\n\u0002\u0018\u0002\n\u0002\b\b\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\u0011\u0010\u0006\u001a\u0004\u0018\u00010\u0005H\u0002¢\u0006\u0004\b\u0006\u0010\u0007J\u0019\u0010\u000b\u001a\u00020\n2\b\u0010\t\u001a\u0004\u0018\u00010\bH\u0014¢\u0006\u0004\b\u000b\u0010\fJ\u0017\u0010\u000e\u001a\u00020\n2\u0006\u0010\r\u001a\u00020\u0002H\u0016¢\u0006\u0004\b\u000e\u0010\u000fR(\u0010\u0018\u001a\u00020\u00108\u0000@\u0000X\u0081\u000e¢\u0006\u0018\n\u0004\b\u0011\u0010\u0012\u0012\u0004\b\u0017\u0010\u0004\u001a\u0004\b\u0013\u0010\u0014\"\u0004\b\u0015\u0010\u0016R\u001b\u0010\u001e\u001a\u00020\u00198VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\u001a\u0010\u001b\u001a\u0004\b\u001c\u0010\u001dR\u001d\u0010!\u001a\u0004\u0018\u00010\u00058BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u001f\u0010\u001b\u001a\u0004\b \u0010\u0007¨\u0006$²\u0006\f\u0010#\u001a\u00020\"8\nX\u008a\u0084\u0002"}, d2 = {"Lcom/stripe/android/paymentsheet/PaymentOptionsActivity;", "LG9/d;", "Lcom/stripe/android/paymentsheet/h;", "<init>", "()V", "Lcom/stripe/android/paymentsheet/g;", "D1", "()Lcom/stripe/android/paymentsheet/g;", "Landroid/os/Bundle;", "savedInstanceState", "", "onCreate", "(Landroid/os/Bundle;)V", "result", "E1", "(Lcom/stripe/android/paymentsheet/h;)V", "Landroidx/lifecycle/f0$c;", "c0", "Landroidx/lifecycle/f0$c;", "C1", "()Landroidx/lifecycle/f0$c;", "setViewModelFactory$paymentsheet_release", "(Landroidx/lifecycle/f0$c;)V", "getViewModelFactory$paymentsheet_release$annotations", "viewModelFactory", "Lcom/stripe/android/paymentsheet/i;", "d0", "Lsf/l;", "B1", "()Lcom/stripe/android/paymentsheet/i;", "viewModel", "e0", "A1", "starterArgs", "", "isProcessing", "paymentsheet_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class PaymentOptionsActivity extends AbstractC0672d {
private f0.c viewModelFactory = new i.b(new f());
private final sf.l viewModel = new e0(M.b(i.class), new b(this), new e(), new c(null, this));
private final sf.l starterArgs = sf.m.a(new d());
static final class a extends Gf.s implements Function2 {
static final class C0392a extends Gf.s implements Function2 {
final PaymentOptionsActivity d;
static final class C0393a extends kotlin.coroutines.jvm.internal.m implements Function2 {
int d;
final PaymentOptionsActivity e;
final ja.g i;
static final class C0394a implements InterfaceC0814f {
final PaymentOptionsActivity d;
final ja.g e;
static final class C0395a extends kotlin.coroutines.jvm.internal.d {
Object d;
Object e;
int v;
C0395a(vf.b bVar) {
super(bVar);
}
public final Object invokeSuspend(Object obj) {
this.e = obj;
this.v |= Integer.MIN_VALUE;
return C0394a.this.a(null, this);
}
}
C0394a(PaymentOptionsActivity paymentOptionsActivity, ja.g gVar) {
this.d = paymentOptionsActivity;
this.e = gVar;
}
@Override
public final java.lang.Object a(com.stripe.android.paymentsheet.h r5, vf.b r6) {
throw new UnsupportedOperationException("Method not decompiled: com.stripe.android.paymentsheet.PaymentOptionsActivity.a.C0392a.C0393a.C0394a.a(com.stripe.android.paymentsheet.h, vf.b):java.lang.Object");
}
}
C0393a(PaymentOptionsActivity paymentOptionsActivity, ja.g gVar, vf.b bVar) {
super(2, bVar);
this.e = paymentOptionsActivity;
this.i = gVar;
}
public final vf.b create(Object obj, vf.b bVar) {
return new C0393a(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().t1());
C0394a c0394a = new C0394a(this.e, this.i);
this.d = 1;
if (u.b(c0394a, 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 b extends Gf.p implements Function0 {
b(Object obj) {
super(0, obj, i.class, "onUserCancel", "onUserCancel()V", 0);
}
public Object invoke() {
u();
return Unit.a;
}
public final void u() {
((i) ((Gf.f) this).e).D0();
}
}
static final class c extends Gf.s implements Function2 {
final PaymentOptionsActivity d;
c(PaymentOptionsActivity paymentOptionsActivity) {
super(2);
this.d = paymentOptionsActivity;
}
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(713072409, i, -1, "com.stripe.android.paymentsheet.PaymentOptionsActivity.onCreate.<anonymous>.<anonymous>.<anonymous> (PaymentOptionsActivity.kt:72)");
}
com.stripe.android.paymentsheet.ui.b.c(this.d.w1(), D.e, 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(!C0392a.d(this.d));
}
}
C0392a(PaymentOptionsActivity paymentOptionsActivity) {
super(2);
this.d = paymentOptionsActivity;
}
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(526390752, i, -1, "com.stripe.android.paymentsheet.PaymentOptionsActivity.onCreate.<anonymous>.<anonymous> (PaymentOptionsActivity.kt:53)");
}
z1 a = ra.g.a(this.d.w1().i0(), lVar, 8);
lVar.e(196233186);
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 b2 = ja.h.b((l0) null, (Function1) f, lVar, 0, 1);
O.f(Unit.a, new C0393a(this.d, b2, null), lVar, 70);
AbstractC2854a.a(b2, null, new b(this.d.w1()), A0.c.b(lVar, 713072409, 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;
}
}
a() {
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(-1719713842, i, -1, "com.stripe.android.paymentsheet.PaymentOptionsActivity.onCreate.<anonymous> (PaymentOptionsActivity.kt:52)");
}
fa.m.a((fa.h) null, (fa.j) null, (fa.n) null, A0.c.b(lVar, 526390752, true, new C0392a(PaymentOptionsActivity.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 b extends Gf.s implements Function0 {
final ComponentActivity d;
public b(ComponentActivity componentActivity) {
super(0);
this.d = componentActivity;
}
public final g0 invoke() {
return this.d.H();
}
}
public static final class c extends Gf.s implements Function0 {
final Function0 d;
final ComponentActivity e;
public c(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 d extends Gf.s implements Function0 {
d() {
super(0);
}
public final g invoke() {
g.a aVar = g.w;
Intent intent = PaymentOptionsActivity.this.getIntent();
Intrinsics.checkNotNullExpressionValue(intent, "getIntent(...)");
return aVar.a(intent);
}
}
static final class e extends Gf.s implements Function0 {
e() {
super(0);
}
public final f0.c invoke() {
return PaymentOptionsActivity.this.getViewModelFactory();
}
}
static final class f extends Gf.s implements Function0 {
f() {
super(0);
}
public final g invoke() {
g A1 = PaymentOptionsActivity.this.A1();
if (A1 != null) {
return A1;
}
throw new IllegalArgumentException("Required value was null.");
}
}
public final g A1() {
return (g) this.starterArgs.getValue();
}
private final g D1() {
F9.m b2;
u a2;
o9.q d2;
g A1 = A1();
if (A1 != null && (b2 = A1.b()) != null && (a2 = b2.a()) != null && (d2 = a2.d()) != null) {
p.a(d2);
}
y1(A1() == null);
return A1();
}
@Override
public i w1() {
return (i) this.viewModel.getValue();
}
public final f0.c getViewModelFactory() {
return this.viewModelFactory;
}
public void E1(h result) {
Intrinsics.checkNotNullParameter(result, "result");
setResult(result.a(), new Intent().putExtras(result.b()));
}
@Override
protected void onCreate(Bundle savedInstanceState) {
g D1 = D1();
super.onCreate(savedInstanceState);
if (D1 == null) {
finish();
return;
}
if (!H9.a.a(this)) {
w1().v();
}
e.e.b(this, (s0.q) null, A0.c.c(-1719713842, true, new a()), 1, (Object) null);
}
}