导航菜单

页面标题

页面副标题

Empower MX v1.29.4.340 - CollectBankAccountActivity.java 源代码

正在查看: Empower MX v1.29.4.340 应用的 CollectBankAccountActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.stripe.android.payments.bankaccount.ui;

import Gf.M;
import Gf.p;
import Gf.s;
import Rf.N;
import Uf.E;
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.financialconnections.FinancialConnectionsSheetResult;
import com.stripe.android.financialconnections.launcher.FinancialConnectionsSheetInstantDebitsResult;
import com.stripe.android.payments.bankaccount.ui.a;
import com.stripe.android.payments.bankaccount.ui.b;
import d9.InterfaceC1510a;
import g9.AbstractC1635e;
import g9.C1631a;
import kotlin.KotlinNothingValueException;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import m9.InterfaceC2544c;
import sf.l;
import sf.m;
import sf.t;

@Metadata(d1 = {"\u0000J\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\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\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0000\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u0017\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\u0007\u0010\bJ\u0013\u0010\n\u001a\u00020\u0006*\u00020\tH\u0002¢\u0006\u0004\b\n\u0010\u000bJ\u0013\u0010\r\u001a\u00020\u0006*\u00020\fH\u0002¢\u0006\u0004\b\r\u0010\u000eJ\u0019\u0010\u0011\u001a\u00020\u00062\b\u0010\u0010\u001a\u0004\u0018\u00010\u000fH\u0014¢\u0006\u0004\b\u0011\u0010\u0012R\u001d\u0010\u0018\u001a\u0004\u0018\u00010\u00138BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u0014\u0010\u0015\u001a\u0004\b\u0016\u0010\u0017R\u0016\u0010\u001c\u001a\u00020\u00198\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\u001a\u0010\u001bR\u001b\u0010!\u001a\u00020\u001d8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u001e\u0010\u0015\u001a\u0004\b\u001f\u0010 ¨\u0006\""}, d2 = {"Lcom/stripe/android/payments/bankaccount/ui/CollectBankAccountActivity;", "Landroidx/appcompat/app/c;", "<init>", "()V", "Ld9/a;", "configuration", "", "C1", "(Ld9/a;)V", "Lcom/stripe/android/payments/bankaccount/ui/a$b;", "E1", "(Lcom/stripe/android/payments/bankaccount/ui/a$b;)V", "Lcom/stripe/android/payments/bankaccount/ui/a$a;", "D1", "(Lcom/stripe/android/payments/bankaccount/ui/a$a;)V", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "Lg9/a$a;", "b0", "Lsf/l;", "A1", "()Lg9/a$a;", "starterArgs", "Lm9/c;", "c0", "Lm9/c;", "financialConnectionsPaymentsProxy", "Lcom/stripe/android/payments/bankaccount/ui/b;", "d0", "B1", "()Lcom/stripe/android/payments/bankaccount/ui/b;", "viewModel", "payments-core_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class CollectBankAccountActivity extends androidx.appcompat.app.c {

    private InterfaceC2544c financialConnectionsPaymentsProxy;

    private final l starterArgs = m.a(new f());

    private final l viewModel = new e0(M.b(com.stripe.android.payments.bankaccount.ui.b.class), new d(this), new g(), new e(null, this));

    class a extends p implements Function1 {
        a(Object obj) {
            super(1, obj, com.stripe.android.payments.bankaccount.ui.b.class, "onConnectionsForInstantDebitsResult", "onConnectionsForInstantDebitsResult(Lcom/stripe/android/financialconnections/launcher/FinancialConnectionsSheetInstantDebitsResult;)V", 0);
        }

        public Object invoke(Object obj) {
            u((FinancialConnectionsSheetInstantDebitsResult) obj);
            return Unit.a;
        }

        public final void u(FinancialConnectionsSheetInstantDebitsResult financialConnectionsSheetInstantDebitsResult) {
            Intrinsics.checkNotNullParameter(financialConnectionsSheetInstantDebitsResult, "p0");
            ((com.stripe.android.payments.bankaccount.ui.b) ((Gf.f) this).e).A(financialConnectionsSheetInstantDebitsResult);
        }
    }

    class b extends p implements Function1 {
        b(Object obj) {
            super(1, obj, com.stripe.android.payments.bankaccount.ui.b.class, "onConnectionsForACHResult", "onConnectionsForACHResult(Lcom/stripe/android/financialconnections/FinancialConnectionsSheetResult;)V", 0);
        }

        public Object invoke(Object obj) {
            u((FinancialConnectionsSheetResult) obj);
            return Unit.a;
        }

        public final void u(FinancialConnectionsSheetResult financialConnectionsSheetResult) {
            Intrinsics.checkNotNullParameter(financialConnectionsSheetResult, "p0");
            ((com.stripe.android.payments.bankaccount.ui.b) ((Gf.f) this).e).z(financialConnectionsSheetResult);
        }
    }

    static final class c extends kotlin.coroutines.jvm.internal.m implements Function2 {
        int d;

        static final class a implements InterfaceC0814f {
            final CollectBankAccountActivity d;

            a(CollectBankAccountActivity collectBankAccountActivity) {
                this.d = collectBankAccountActivity;
            }

            @Override
            public final Object a(com.stripe.android.payments.bankaccount.ui.a aVar, vf.b bVar) {
                if (aVar instanceof a.b) {
                    this.d.E1((a.b) aVar);
                } else if (aVar instanceof a.C0375a) {
                    this.d.D1((a.C0375a) aVar);
                }
                return Unit.a;
            }
        }

        c(vf.b bVar) {
            super(2, bVar);
        }

        public final vf.b create(Object obj, vf.b bVar) {
            return CollectBankAccountActivity.this.new c(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 y = CollectBankAccountActivity.this.B1().y();
                a aVar = new a(CollectBankAccountActivity.this);
                this.d = 1;
                if (y.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();
        }
    }

    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 C1631a.AbstractC0511a invoke() {
            C1631a.AbstractC0511a.C0512a c0512a = C1631a.AbstractC0511a.F;
            Intent intent = CollectBankAccountActivity.this.getIntent();
            Intrinsics.checkNotNullExpressionValue(intent, "getIntent(...)");
            return c0512a.a(intent);
        }
    }

    static final class g extends s implements Function0 {

        static final class a extends s implements Function0 {
            final CollectBankAccountActivity d;

            a(CollectBankAccountActivity collectBankAccountActivity) {
                super(0);
                this.d = collectBankAccountActivity;
            }

            public final C1631a.AbstractC0511a invoke() {
                C1631a.AbstractC0511a A1 = this.d.A1();
                if (A1 != null) {
                    return A1;
                }
                throw new IllegalArgumentException("Required value was null.");
            }
        }

        g() {
            super(0);
        }

        public final f0.c invoke() {
            return new b.c(new a(CollectBankAccountActivity.this));
        }
    }

    public final C1631a.AbstractC0511a A1() {
        return (C1631a.AbstractC0511a) this.starterArgs.getValue();
    }

    public final com.stripe.android.payments.bankaccount.ui.b B1() {
        return (com.stripe.android.payments.bankaccount.ui.b) this.viewModel.getValue();
    }

    private final void C1(InterfaceC1510a configuration) {
        InterfaceC2544c b2;
        if (configuration instanceof InterfaceC1510a.C0489a) {
            b2 = InterfaceC2544c.a.d(InterfaceC2544c.a, this, new a(B1()), null, null, 12, null);
        } else {
            if (!(configuration instanceof InterfaceC1510a.b)) {
                throw new NoWhenBranchMatchedException();
            }
            b2 = InterfaceC2544c.a.b(InterfaceC2544c.a, this, new b(B1()), null, null, 12, null);
        }
        this.financialConnectionsPaymentsProxy = b2;
    }

    public final void D1(a.C0375a c0375a) {
        setResult(-1, new Intent().putExtras(new C1631a.c(c0375a.a()).b()));
        finish();
    }

    public final void E1(a.b bVar) {
        InterfaceC2544c interfaceC2544c = this.financialConnectionsPaymentsProxy;
        if (interfaceC2544c == null) {
            Intrinsics.x("financialConnectionsPaymentsProxy");
            interfaceC2544c = null;
        }
        interfaceC2544c.a(bVar.a(), bVar.b(), bVar.c());
    }

    protected void onCreate(Bundle savedInstanceState) {
        super/*androidx.fragment.app.i*/.onCreate(savedInstanceState);
        C1631a.AbstractC0511a A1 = A1();
        if ((A1 != null ? A1.b() : null) == null) {
            D1(new a.C0375a(new AbstractC1635e.c(new IllegalStateException("Configuration not provided"))));
            return;
        }
        C1631a.AbstractC0511a A12 = A1();
        if (A12 == null) {
            throw new IllegalArgumentException("Required value was null.");
        }
        C1(A12.b());
        y.a(this).c(new c(null));
    }
}