正在查看: Crafto v9.3.3 应用的 CollectBankAccountActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Crafto v9.3.3 应用的 CollectBankAccountActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.stripe.android.payments.bankaccount.ui;
import Hk.k;
import Hk.l;
import Kk.c;
import android.app.Application;
import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.B;
import androidx.lifecycle.E;
import androidx.lifecycle.J;
import androidx.lifecycle.u0;
import androidx.lifecycle.v0;
import androidx.lifecycle.x0;
import com.stripe.android.payments.bankaccount.navigation.CollectBankAccountContract;
import com.stripe.android.payments.bankaccount.ui.CollectBankAccountViewEffect;
import com.stripe.android.payments.bankaccount.ui.CollectBankAccountViewModel;
import com.stripe.android.payments.financialconnections.FinancialConnectionsPaymentsProxy;
import com.stripe.android.payments.financialconnections.IsFinancialConnectionsAvailable;
import dl.g;
import kotlin.Metadata;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import org.jetbrains.annotations.NotNull;
@Metadata
public final class CollectBankAccountActivity extends AppCompatActivity {
private FinancialConnectionsPaymentsProxy financialConnectionsPaymentsProxy;
@NotNull
private final k starterArgs$delegate = l.b(new Function0<CollectBankAccountContract.Args>() {
{
super(0);
}
public final CollectBankAccountContract.Args m481invoke() {
CollectBankAccountContract.Args.Companion companion = CollectBankAccountContract.Args.Companion;
Intent intent = CollectBankAccountActivity.this.getIntent();
Intrinsics.checkNotNullExpressionValue(intent, "intent");
return companion.fromIntent(intent);
}
});
@NotNull
private final k viewModel$delegate;
@NotNull
private v0.b viewModelFactory;
public CollectBankAccountActivity() {
Function0<Application> function0 = new Function0<Application>() {
{
super(0);
}
@NotNull
public final Application m483invoke() {
Application application = CollectBankAccountActivity.this.getApplication();
Intrinsics.checkNotNullExpressionValue(application, "application");
return application;
}
};
Function0<CollectBankAccountContract.Args> function02 = new Function0<CollectBankAccountContract.Args>() {
{
super(0);
}
@NotNull
public final CollectBankAccountContract.Args m484invoke() {
CollectBankAccountContract.Args starterArgs;
starterArgs = CollectBankAccountActivity.this.getStarterArgs();
if (starterArgs != null) {
return starterArgs;
}
throw new IllegalArgumentException("Required value was null.".toString());
}
};
Intent intent = getIntent();
this.viewModelFactory = new CollectBankAccountViewModel.Factory(function0, function02, this, intent != null ? intent.getExtras() : null);
this.viewModel$delegate = new u0(Reflection.getOrCreateKotlinClass(CollectBankAccountViewModel.class), new Function0<x0>() {
{
super(0);
}
@NotNull
public final x0 m480invoke() {
x0 viewModelStore = this.getViewModelStore();
Intrinsics.checkNotNullExpressionValue(viewModelStore, "viewModelStore");
return viewModelStore;
}
}, new Function0<v0.b>() {
{
super(0);
}
@NotNull
public final v0.b m482invoke() {
return CollectBankAccountActivity.this.getViewModelFactory$payments_core_release();
}
});
}
public final CollectBankAccountContract.Args getStarterArgs() {
return (CollectBankAccountContract.Args) this.starterArgs$delegate.getValue();
}
public final CollectBankAccountViewModel getViewModel() {
return (CollectBankAccountViewModel) this.viewModel$delegate.getValue();
}
private final void initConnectionsPaymentsProxy() {
this.financialConnectionsPaymentsProxy = FinancialConnectionsPaymentsProxy.Companion.create$default(FinancialConnectionsPaymentsProxy.Companion, this, new CollectBankAccountActivity$initConnectionsPaymentsProxy$1(getViewModel()), (Function0) null, (IsFinancialConnectionsAvailable) null, 12, (Object) null);
}
public final void launch(CollectBankAccountViewEffect.OpenConnectionsFlow openConnectionsFlow) {
FinancialConnectionsPaymentsProxy financialConnectionsPaymentsProxy = this.financialConnectionsPaymentsProxy;
if (financialConnectionsPaymentsProxy == null) {
Intrinsics.throwUninitializedPropertyAccessException("financialConnectionsPaymentsProxy");
financialConnectionsPaymentsProxy = null;
}
financialConnectionsPaymentsProxy.present(openConnectionsFlow.getFinancialConnectionsSessionSecret(), openConnectionsFlow.getPublishableKey());
}
@NotNull
public final v0.b getViewModelFactory$payments_core_release() {
return this.viewModelFactory;
}
public void onCreate(Bundle bundle) {
super/*androidx.fragment.app.FragmentActivity*/.onCreate(bundle);
initConnectionsPaymentsProxy();
E a = J.a(this);
CollectBankAccountActivity$onCreate$1 collectBankAccountActivity$onCreate$1 = new CollectBankAccountActivity$onCreate$1(this, null);
Intrinsics.checkNotNullParameter(collectBankAccountActivity$onCreate$1, "block");
g.b(a, (CoroutineContext) null, (dl.J) null, new B(a, collectBankAccountActivity$onCreate$1, (c) null), 3);
}
public final void setViewModelFactory$payments_core_release(@NotNull v0.b bVar) {
Intrinsics.checkNotNullParameter(bVar, "<set-?>");
this.viewModelFactory = bVar;
}
public final void launch(CollectBankAccountViewEffect.FinishWithResult finishWithResult) {
setResult(-1, new Intent().putExtras(new CollectBankAccountContract.Result(finishWithResult.getResult()).toBundle()));
finish();
}
}