正在查看: Empower MX v1.29.4.340 应用的 GooglePayLauncherActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Empower MX v1.29.4.340 应用的 GooglePayLauncherActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.googlepaylauncher;
import Gf.M;
import Gf.s;
import Rf.N;
import Rf.P;
import Sb.Ge.ihSDFU;
import Uf.E;
import Uf.InterfaceC0814f;
import android.content.Intent;
import android.os.Bundle;
import androidx.activity.ComponentActivity;
import androidx.lifecycle.O;
import androidx.lifecycle.e0;
import androidx.lifecycle.f0;
import androidx.lifecycle.g0;
import androidx.lifecycle.o;
import androidx.lifecycle.y;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.tasks.Task;
import com.stripe.android.googlepaylauncher.GooglePayLauncherActivity;
import com.stripe.android.googlepaylauncher.f;
import com.stripe.android.googlepaylauncher.g;
import com.stripe.android.googlepaylauncher.j;
import com.stripe.android.model.r;
import com.stripe.android.view.o;
import i9.InterfaceC1721h;
import kotlin.KotlinNothingValueException;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import org.json.JSONObject;
import sf.s;
import sf.t;
import sf.x;
import z4.C3120i;
@Metadata(d1 = {"\u0000V\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0000\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u001d\u0010\b\u001a\u00020\u00072\f\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\u00050\u0004H\u0002¢\u0006\u0004\b\b\u0010\tJ\u0017\u0010\f\u001a\u00020\u00072\u0006\u0010\u000b\u001a\u00020\nH\u0002¢\u0006\u0004\b\f\u0010\rJ\u0019\u0010\u0010\u001a\u00020\u00072\b\u0010\u000f\u001a\u0004\u0018\u00010\u000eH\u0014¢\u0006\u0004\b\u0010\u0010\u0011J\u000f\u0010\u0012\u001a\u00020\u0007H\u0016¢\u0006\u0004\b\u0012\u0010\u0003J)\u0010\u0018\u001a\u00020\u00072\u0006\u0010\u0014\u001a\u00020\u00132\u0006\u0010\u0015\u001a\u00020\u00132\b\u0010\u0017\u001a\u0004\u0018\u00010\u0016H\u0017¢\u0006\u0004\b\u0018\u0010\u0019R\u001b\u0010\u001f\u001a\u00020\u001a8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u001b\u0010\u001c\u001a\u0004\b\u001d\u0010\u001eR\u001b\u0010$\u001a\u00020 8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b!\u0010\u001c\u001a\u0004\b\"\u0010#R\u0016\u0010(\u001a\u00020%8\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b&\u0010'¨\u0006)"}, d2 = {"Lcom/stripe/android/googlepaylauncher/GooglePayLauncherActivity;", "Landroidx/appcompat/app/c;", "<init>", "()V", "LB4/a;", "Lz4/i;", "taskResult", "", "E1", "(LB4/a;)V", "Lcom/stripe/android/googlepaylauncher/f;", "result", "A1", "(Lcom/stripe/android/googlepaylauncher/f;)V", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "finish", "", "requestCode", "resultCode", "Landroid/content/Intent;", "data", "onActivityResult", "(IILandroid/content/Intent;)V", "Lcom/stripe/android/googlepaylauncher/j;", "b0", "Lsf/l;", "C1", "()Lcom/stripe/android/googlepaylauncher/j;", "viewModel", "Li9/h;", "c0", "B1", "()Li9/h;", "errorReporter", "Lcom/stripe/android/googlepaylauncher/g;", "d0", "Lcom/stripe/android/googlepaylauncher/g;", "args", "payments-core_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class GooglePayLauncherActivity extends androidx.appcompat.app.c {
private final sf.l viewModel = new e0(M.b(j.class), new d(this), new f(), new e(null, this));
private final sf.l errorReporter = sf.m.a(new a());
private g args;
static final class a extends s implements Function0 {
a() {
super(0);
}
public final InterfaceC1721h invoke() {
return InterfaceC1721h.a.b(InterfaceC1721h.a, GooglePayLauncherActivity.this, null, 2, null);
}
}
static final class b extends kotlin.coroutines.jvm.internal.m implements Function2 {
int d;
static final class a implements InterfaceC0814f {
final GooglePayLauncherActivity d;
a(GooglePayLauncherActivity googlePayLauncherActivity) {
this.d = googlePayLauncherActivity;
}
@Override
public final Object a(com.stripe.android.googlepaylauncher.f fVar, vf.b bVar) {
if (fVar != null) {
this.d.A1(fVar);
}
return Unit.a;
}
}
b(vf.b bVar) {
super(2, bVar);
}
public final vf.b create(Object obj, vf.b bVar) {
return GooglePayLauncherActivity.this.new b(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) {
t.b(obj);
E s = GooglePayLauncherActivity.this.C1().s();
a aVar = new a(GooglePayLauncherActivity.this);
this.d = 1;
if (s.b(aVar, this) == f) {
return f;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
t.b(obj);
}
throw new KotlinNothingValueException();
}
}
static final class c extends kotlin.coroutines.jvm.internal.m implements Function2 {
int d;
final g.d i;
static final class a extends kotlin.coroutines.jvm.internal.m implements Function2 {
int d;
final GooglePayLauncherActivity e;
final g.d i;
static final class C0307a implements InterfaceC0814f {
final g.d d;
final GooglePayLauncherActivity e;
C0307a(g.d dVar, GooglePayLauncherActivity googlePayLauncherActivity) {
this.d = dVar;
this.e = googlePayLauncherActivity;
}
@Override
public final Object a(Task task, vf.b bVar) {
if (task != null) {
this.d.b(task);
this.e.C1().w();
}
return Unit.a;
}
}
a(GooglePayLauncherActivity googlePayLauncherActivity, g.d dVar, vf.b bVar) {
super(2, bVar);
this.e = googlePayLauncherActivity;
this.i = dVar;
}
public final vf.b create(Object obj, vf.b bVar) {
return new a(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) {
t.b(obj);
E r = this.e.C1().r();
C0307a c0307a = new C0307a(this.i, this.e);
this.d = 1;
if (r.b(c0307a, this) == f) {
return f;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
t.b(obj);
}
throw new KotlinNothingValueException();
}
}
c(g.d dVar, vf.b bVar) {
super(2, bVar);
this.i = dVar;
}
public final vf.b create(Object obj, vf.b bVar) {
return GooglePayLauncherActivity.this.new c(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) {
t.b(obj);
GooglePayLauncherActivity googlePayLauncherActivity = GooglePayLauncherActivity.this;
o.b bVar = o.b.w;
a aVar = new a(googlePayLauncherActivity, this.i, null);
this.d = 1;
if (O.b(googlePayLauncherActivity, bVar, aVar, this) == f) {
return f;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
t.b(obj);
}
return Unit.a;
}
}
public static final class d extends s implements Function0 {
final ComponentActivity d;
public d(ComponentActivity componentActivity) {
super(0);
this.d = componentActivity;
}
public final g0 invoke() {
return this.d.H();
}
}
public static final class e extends s implements Function0 {
final Function0 d;
final ComponentActivity e;
public e(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 f extends s implements Function0 {
f() {
super(0);
}
public final f0.c invoke() {
g gVar = GooglePayLauncherActivity.this.args;
if (gVar == null) {
Intrinsics.x("args");
gVar = null;
}
return new j.c(gVar, false, null, 6, null);
}
}
public final void A1(com.stripe.android.googlepaylauncher.f result) {
setResult(-1, new Intent().putExtras(androidx.core.os.c.a(new Pair[]{x.a("extra_result", result)})));
finish();
}
private final InterfaceC1721h B1() {
return (InterfaceC1721h) this.errorReporter.getValue();
}
public final j C1() {
return (j) this.viewModel.getValue();
}
public static final void D1(GooglePayLauncherActivity googlePayLauncherActivity, B4.a aVar) {
Intrinsics.checkNotNullParameter(googlePayLauncherActivity, "this$0");
Intrinsics.f(aVar);
googlePayLauncherActivity.E1(aVar);
}
public void finish() {
super/*android.app.Activity*/.finish();
ra.c.a(this);
}
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super/*androidx.fragment.app.i*/.onActivityResult(requestCode, resultCode, data);
switch (requestCode) {
case 50000:
case 50001:
j C1 = C1();
if (data == null) {
data = new Intent();
}
C1.x(requestCode, data);
break;
}
}
protected void onCreate(Bundle savedInstanceState) {
Object b2;
g a2;
super/*androidx.fragment.app.i*/.onCreate(savedInstanceState);
try {
s.a aVar = sf.s.e;
g.a aVar2 = g.d;
Intent intent = getIntent();
Intrinsics.checkNotNullExpressionValue(intent, "getIntent(...)");
a2 = aVar2.a(intent);
} catch (Throwable th) {
s.a aVar3 = sf.s.e;
b2 = sf.s.b(t.a(th));
}
if (a2 == null) {
throw new IllegalArgumentException("GooglePayLauncherActivity was started without arguments.");
}
b2 = sf.s.b(a2);
Throwable e2 = sf.s.e(b2);
if (e2 != null) {
A1(new f.c(e2));
return;
}
this.args = (g) b2;
Rf.i.d(y.a(this), (CoroutineContext) null, (P) null, new b(null), 3, (Object) null);
g.d g = g(new B4.c(), new g.b() {
public final void a(Object obj) {
GooglePayLauncherActivity.D1(GooglePayLauncherActivity.this, (B4.a) obj);
}
});
Intrinsics.checkNotNullExpressionValue(g, "registerForActivityResult(...)");
Rf.i.d(y.a(this), (CoroutineContext) null, (P) null, new c(g, null), 3, (Object) null);
}
private final void E1(B4.a taskResult) {
int f2 = taskResult.b().f();
if (f2 != 0) {
if (f2 != 16) {
Status b2 = taskResult.b();
Intrinsics.checkNotNullExpressionValue(b2, "getStatus(...)");
String r = b2.r();
String str = "";
if (r == null) {
r = "";
}
InterfaceC1721h.b.a(B1(), InterfaceC1721h.d.P, null, kotlin.collections.P.l(new Pair[]{x.a("status_message", r), x.a("status_code", String.valueOf(b2.f()))}), 2, null);
j C1 = C1();
int f3 = b2.f();
String r2 = b2.r();
if (r2 != null) {
str = r2;
}
C1.A(new f.c(new RuntimeException("Google Pay failed with error " + f3 + ihSDFU.SAxYHVEl + str)));
return;
}
C1().A(f.a.d);
return;
}
C3120i c3120i = (C3120i) taskResult.a();
if (c3120i != null) {
C1().n(o.a.b(com.stripe.android.view.o.a, this, (Integer) null, 2, (Object) null), r.T.j(new JSONObject(c3120i.e())));
return;
}
InterfaceC1721h.b.a(B1(), InterfaceC1721h.f.H, null, null, 6, null);
C1().A(new f.c(new RuntimeException("Google Pay missing result data.")));
}
}