正在查看: Perplexity v2.48.1 应用的 PaymentAuthWebViewActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Perplexity v2.48.1 应用的 PaymentAuthWebViewActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.view;
import Ah.J;
import Ak.e;
import Ch.b;
import Ck.e0;
import Ck.g0;
import Ck.h0;
import Ck.i0;
import Ck.k0;
import Ck.l0;
import Ck.m0;
import E6.y;
import Ha.a;
import Ib.o;
import J3.n;
import Ui.C0503b;
import Wh.C0527b;
import Wh.C0540o;
import al.C0630d;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import androidx.appcompat.widget.Toolbar;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import com.google.android.material.progressindicator.CircularProgressIndicator;
import com.stripe.android.core.exception.StripeException;
import com.stripe.android.networking.PaymentAnalyticsEvent;
import com.stripe.android.view.PaymentAuthWebView;
import com.stripe.android.view.PaymentAuthWebViewActivity;
import g3.f0;
import gi.d;
import gm.AbstractC0835j;
import java.util.Map;
import kj.C1049b;
import kotlin.LazyKt;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import om.H;
import qj.C1347a;
import qj.EnumC1349c;
import qj.EnumC1351e;
import rm.AbstractC1529t;
import rm.M0;
@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 = {"Lcom/stripe/android/view/PaymentAuthWebViewActivity;", "LJ3/n;", "<init>", "()V", "payments-core_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
@SourceDebugExtension
public final class PaymentAuthWebViewActivity extends n {
public static final int Y = 0;
public final a X;
public final C0630d x;
public final C0630d y;
public final C0630d z;
public PaymentAuthWebViewActivity() {
final int i = 0;
this.x = LazyKt.a(new Function0(this) {
public final PaymentAuthWebViewActivity x;
{
this.x = this;
}
@Override
public final Object invoke() {
?? r0 = this.x;
switch (i) {
case 0:
int i2 = PaymentAuthWebViewActivity.Y;
CoordinatorLayout inflate = r0.getLayoutInflater().inflate(2131625316, (ViewGroup) null, false);
int i3 = 2131428055;
CircularProgressIndicator C = xb.V.C(inflate, 2131428055);
if (C != null) {
i3 = 2131428233;
Toolbar C2 = xb.V.C(inflate, 2131428233);
if (C2 != null) {
i3 = 2131428270;
PaymentAuthWebView paymentAuthWebView = (PaymentAuthWebView) xb.V.C(inflate, 2131428270);
if (paymentAuthWebView != null) {
i3 = 2131428271;
FrameLayout frameLayout = (FrameLayout) xb.V.C(inflate, 2131428271);
if (frameLayout != null) {
return new gi.d(inflate, C, C2, paymentAuthWebView, frameLayout);
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i3)));
case 1:
int i4 = PaymentAuthWebViewActivity.Y;
Intent intent = r0.getIntent();
Intrinsics.g(intent, "getIntent(...)");
return (Ch.b) intent.getParcelableExtra("extra_args");
case 2:
int i5 = PaymentAuthWebViewActivity.Y;
Ch.b bVar = (Ch.b) r0.y.getValue();
return (bVar == null || !bVar.Y) ? Nh.c.b : Nh.c.a;
default:
int i6 = PaymentAuthWebViewActivity.Y;
Application application = r0.getApplication();
Intrinsics.g(application, "getApplication(...)");
Nh.b i7 = r0.i();
Ch.b bVar2 = (Ch.b) r0.y.getValue();
if (bVar2 != null) {
return new j0(application, i7, bVar2);
}
throw new IllegalArgumentException("Required value was null.");
}
}
});
final int i2 = 1;
this.y = LazyKt.a(new Function0(this) {
public final PaymentAuthWebViewActivity x;
{
this.x = this;
}
@Override
public final Object invoke() {
?? r0 = this.x;
switch (i2) {
case 0:
int i22 = PaymentAuthWebViewActivity.Y;
CoordinatorLayout inflate = r0.getLayoutInflater().inflate(2131625316, (ViewGroup) null, false);
int i3 = 2131428055;
CircularProgressIndicator C = xb.V.C(inflate, 2131428055);
if (C != null) {
i3 = 2131428233;
Toolbar C2 = xb.V.C(inflate, 2131428233);
if (C2 != null) {
i3 = 2131428270;
PaymentAuthWebView paymentAuthWebView = (PaymentAuthWebView) xb.V.C(inflate, 2131428270);
if (paymentAuthWebView != null) {
i3 = 2131428271;
FrameLayout frameLayout = (FrameLayout) xb.V.C(inflate, 2131428271);
if (frameLayout != null) {
return new gi.d(inflate, C, C2, paymentAuthWebView, frameLayout);
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i3)));
case 1:
int i4 = PaymentAuthWebViewActivity.Y;
Intent intent = r0.getIntent();
Intrinsics.g(intent, "getIntent(...)");
return (Ch.b) intent.getParcelableExtra("extra_args");
case 2:
int i5 = PaymentAuthWebViewActivity.Y;
Ch.b bVar = (Ch.b) r0.y.getValue();
return (bVar == null || !bVar.Y) ? Nh.c.b : Nh.c.a;
default:
int i6 = PaymentAuthWebViewActivity.Y;
Application application = r0.getApplication();
Intrinsics.g(application, "getApplication(...)");
Nh.b i7 = r0.i();
Ch.b bVar2 = (Ch.b) r0.y.getValue();
if (bVar2 != null) {
return new j0(application, i7, bVar2);
}
throw new IllegalArgumentException("Required value was null.");
}
}
});
final int i3 = 2;
this.z = LazyKt.a(new Function0(this) {
public final PaymentAuthWebViewActivity x;
{
this.x = this;
}
@Override
public final Object invoke() {
?? r0 = this.x;
switch (i3) {
case 0:
int i22 = PaymentAuthWebViewActivity.Y;
CoordinatorLayout inflate = r0.getLayoutInflater().inflate(2131625316, (ViewGroup) null, false);
int i32 = 2131428055;
CircularProgressIndicator C = xb.V.C(inflate, 2131428055);
if (C != null) {
i32 = 2131428233;
Toolbar C2 = xb.V.C(inflate, 2131428233);
if (C2 != null) {
i32 = 2131428270;
PaymentAuthWebView paymentAuthWebView = (PaymentAuthWebView) xb.V.C(inflate, 2131428270);
if (paymentAuthWebView != null) {
i32 = 2131428271;
FrameLayout frameLayout = (FrameLayout) xb.V.C(inflate, 2131428271);
if (frameLayout != null) {
return new gi.d(inflate, C, C2, paymentAuthWebView, frameLayout);
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i32)));
case 1:
int i4 = PaymentAuthWebViewActivity.Y;
Intent intent = r0.getIntent();
Intrinsics.g(intent, "getIntent(...)");
return (Ch.b) intent.getParcelableExtra("extra_args");
case 2:
int i5 = PaymentAuthWebViewActivity.Y;
Ch.b bVar = (Ch.b) r0.y.getValue();
return (bVar == null || !bVar.Y) ? Nh.c.b : Nh.c.a;
default:
int i6 = PaymentAuthWebViewActivity.Y;
Application application = r0.getApplication();
Intrinsics.g(application, "getApplication(...)");
Nh.b i7 = r0.i();
Ch.b bVar2 = (Ch.b) r0.y.getValue();
if (bVar2 != null) {
return new j0(application, i7, bVar2);
}
throw new IllegalArgumentException("Required value was null.");
}
}
});
final int i4 = 3;
this.X = new a(Reflection.a.b(l0.class), new i0(this, 0), new Function0(this) {
public final PaymentAuthWebViewActivity x;
{
this.x = this;
}
@Override
public final Object invoke() {
?? r0 = this.x;
switch (i4) {
case 0:
int i22 = PaymentAuthWebViewActivity.Y;
CoordinatorLayout inflate = r0.getLayoutInflater().inflate(2131625316, (ViewGroup) null, false);
int i32 = 2131428055;
CircularProgressIndicator C = xb.V.C(inflate, 2131428055);
if (C != null) {
i32 = 2131428233;
Toolbar C2 = xb.V.C(inflate, 2131428233);
if (C2 != null) {
i32 = 2131428270;
PaymentAuthWebView paymentAuthWebView = (PaymentAuthWebView) xb.V.C(inflate, 2131428270);
if (paymentAuthWebView != null) {
i32 = 2131428271;
FrameLayout frameLayout = (FrameLayout) xb.V.C(inflate, 2131428271);
if (frameLayout != null) {
return new gi.d(inflate, C, C2, paymentAuthWebView, frameLayout);
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i32)));
case 1:
int i42 = PaymentAuthWebViewActivity.Y;
Intent intent = r0.getIntent();
Intrinsics.g(intent, "getIntent(...)");
return (Ch.b) intent.getParcelableExtra("extra_args");
case 2:
int i5 = PaymentAuthWebViewActivity.Y;
Ch.b bVar = (Ch.b) r0.y.getValue();
return (bVar == null || !bVar.Y) ? Nh.c.b : Nh.c.a;
default:
int i6 = PaymentAuthWebViewActivity.Y;
Application application = r0.getApplication();
Intrinsics.g(application, "getApplication(...)");
Nh.b i7 = r0.i();
Ch.b bVar2 = (Ch.b) r0.y.getValue();
if (bVar2 != null) {
return new j0(application, i7, bVar2);
}
throw new IllegalArgumentException("Required value was null.");
}
}
}, new i0(this, 1));
}
public final void h() {
l0 k = k();
Intent intent = new Intent();
C1049b v = k.v();
b bVar = k.w;
Intent putExtras = intent.putExtras(C1049b.b(v, bVar.t0 ? 3 : 1, null, bVar.s0, 117).e());
Intrinsics.g(putExtras, "putExtras(...)");
setResult(-1, putExtras);
finish();
}
public final Nh.b i() {
return (Nh.b) this.z.getValue();
}
public final d j() {
return (d) this.x.getValue();
}
public final l0 k() {
return (l0) this.X.getValue();
}
public final void onCreate(Bundle bundle) {
super/*androidx.fragment.app.P*/.onCreate(bundle);
b bVar = (b) this.y.getValue();
if (bVar == null) {
setResult(0);
finish();
Context applicationContext = getApplicationContext();
Intrinsics.g(applicationContext, "getApplicationContext(...)");
f0.J(C1347a.a(applicationContext), EnumC1349c.y, (StripeException) null, (Map) null, 6);
return;
}
i().a("PaymentAuthWebViewActivity#onCreate()");
setContentView(j().a);
setSupportActionBar(j().c);
i().a("PaymentAuthWebViewActivity#customizeToolbar()");
k0 k0Var = k().Y;
if (k0Var != null) {
i().a("PaymentAuthWebViewActivity#customizeToolbar() - updating toolbar title");
j().c.setTitle(xb.i0.B(this, k0Var.a, k0Var.b));
}
String str = k().Z;
if (str != null) {
i().a("PaymentAuthWebViewActivity#customizeToolbar() - updating toolbar background color");
int parseColor = Color.parseColor(str);
j().c.setBackgroundColor(parseColor);
getWindow().setStatusBarColor(parseColor);
}
o.G(getOnBackPressedDispatcher(), (y) null, new J(this, 2), 3);
Intent putExtras = new Intent().putExtras(k().v().e());
Intrinsics.g(putExtras, "putExtras(...)");
setResult(-1, putExtras);
String str2 = bVar.y;
if (AbstractC0835j.b0(str2)) {
i().a("PaymentAuthWebViewActivity#onCreate() - clientSecret is blank");
finish();
Context applicationContext2 = getApplicationContext();
Intrinsics.g(applicationContext2, "getApplicationContext(...)");
f0.J(C1347a.a(applicationContext2), EnumC1351e.x, (StripeException) null, (Map) null, 6);
return;
}
i().a("PaymentAuthWebViewActivity#onCreate() - PaymentAuthWebView init and loadUrl");
M0 c = AbstractC1529t.c(Boolean.FALSE);
H.o(androidx.lifecycle.k0.h(this), null, null, new g0(c, this, null), 3);
m0 m0Var = new m0(i(), c, str2, bVar.X, new h0(1, this, PaymentAuthWebViewActivity.class, "startActivity", "startActivity(Landroid/content/Intent;)V", 0, 0), new h0(1, this, PaymentAuthWebViewActivity.class, "onAuthComplete", "onAuthComplete$payments_core_release(Ljava/lang/Throwable;)V", 0, 1));
j().d.setOnLoadBlank$payments_core_release(new e(m0Var, 3));
j().d.setWebViewClient(m0Var);
j().d.setWebChromeClient(new e0(this, i()));
l0 k = k();
C0527b c2 = C0503b.c(k.y, PaymentAnalyticsEvent.E0, null, null, null, null, 62);
C0540o c0540o = k.x;
c0540o.a(c2);
c0540o.a(C0503b.c(k.y, PaymentAnalyticsEvent.H0, null, null, null, null, 62));
j().d.loadUrl(bVar.z, (Map) k().z.getValue());
}
public final boolean onCreateOptionsMenu(Menu menu) {
Intrinsics.h(menu, "menu");
i().a("PaymentAuthWebViewActivity#onCreateOptionsMenu()");
getMenuInflater().inflate(2131755010, menu);
String str = k().X;
if (str != null) {
i().a("PaymentAuthWebViewActivity#customizeToolbar() - updating close button text");
menu.findItem(2131427390).setTitle(str);
}
return super/*android.app.Activity*/.onCreateOptionsMenu(menu);
}
public final void onDestroy() {
j().e.removeAllViews();
j().d.destroy();
super.onDestroy();
}
public final boolean onOptionsItemSelected(MenuItem item) {
Intrinsics.h(item, "item");
i().a("PaymentAuthWebViewActivity#onOptionsItemSelected()");
if (item.getItemId() != 2131427390) {
return super/*android.app.Activity*/.onOptionsItemSelected(item);
}
h();
return true;
}
}