导航菜单

页面标题

页面副标题

Atlys v4.8.7 - C3700L.java 源代码

正在查看: Atlys v4.8.7 应用的 C3700L.java JAVA 源代码文件

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


package gi;

import Gh.C0712c;
import Gh.C0726g1;
import Gh.C0732i1;
import Gh.C0778y0;
import Gh.L0;
import Gh.n2;
import Gi.I2;
import Gi.K2;
import Gi.N2;
import Oi.C1086a0;
import Oi.C1102g0;
import Oi.C1103h;
import Oi.D0;
import Oi.F0;
import Oi.S;
import Oi.W;
import Oi.Y;
import Oi.Y0;
import Q6.C1220x0;
import Vh.C1429c0;
import Vh.C1433e0;
import Vh.C1437g0;
import Wh.AbstractC1531i;
import Wh.C1523a;
import android.app.Application;
import android.content.res.Resources;
import androidx.lifecycle.p0;
import androidx.lifecycle.r0;
import androidx.lifecycle.w0;
import bn.AbstractC2534l;
import bn.AbstractC2541s;
import ch.C2748t;
import com.atlys.android.R;
import com.stripe.android.financialconnections.model.BankAccount;
import com.stripe.android.financialconnections.model.FinancialConnectionsAccount;
import fi.C3485a;
import gn.C3766k;
import gn.InterfaceC3763h;
import gn.h0;
import gn.l0;
import gn.m0;
import gn.x0;
import gn.z0;
import h.AbstractC3784d;
import hi.C3878b;
import java.util.Map;
import java.util.regex.Pattern;
import javax.inject.Provider;
import kotlin.Pair;
import xl.AbstractC6633B;

public final class C3700L extends w0 {

    public final h0 f48151A;

    public final C1102g0 f48152B;

    public final h0 f48153C;

    public final F0 f48154D;

    public final C1103h f48155E;

    public final x0 f48156F;

    public final InterfaceC3763h f48157G;

    public final l0 f48158I;

    public final l0 f48159J;

    public final l0 f48160K;

    public final l0 f48161L;

    public final K2 f48162M;

    public final h0 f48163N;

    public final z0 f48164O;

    public final z0 f48165P;

    public final h0 f48166Q;

    public I2.a f48167R;

    public final C3726y f48168s;

    public final Application f48169t;

    public final Provider f48170u;

    public final p0 f48171v;

    public final C1437g0 f48172w;

    public final Y0 f48173x;

    public final h0 f48174y;

    public final Y0 f48175z;

    public C3700L(C3726y args, Application application, C3878b lazyPaymentConfig, p0 savedStateHandle, Ni.c cVar) {
        C1429c0 c1429c0;
        String str;
        C1429c0 c1429c02;
        C1220x0 c1220x0;
        C0712c c0712c;
        F0 f02;
        di.k kVar;
        boolean z10;
        boolean z11;
        Map map;
        int i10;
        InterfaceC3763h c3766k;
        di.k kVar2;
        Object c3718q;
        C1433e0 c1433e0;
        di.j jVar;
        Boolean a12;
        di.j jVar2;
        String str2;
        kotlin.jvm.internal.l.h(args, "args");
        kotlin.jvm.internal.l.h(application, "application");
        kotlin.jvm.internal.l.h(lazyPaymentConfig, "lazyPaymentConfig");
        kotlin.jvm.internal.l.h(savedStateHandle, "savedStateHandle");
        this.f48168s = args;
        this.f48169t = application;
        this.f48170u = lazyPaymentConfig;
        this.f48171v = savedStateHandle;
        C3485a c3485a = args.f48275a;
        C1433e0 c1433e02 = c3485a.f46997g;
        C1437g0 c1437g0 = c3485a.f47000j;
        this.f48172w = c1437g0;
        boolean z12 = c1437g0.f25064d == 3;
        boolean z13 = c1437g0.f25062b == 3;
        boolean z14 = c1437g0.f25061a != 2;
        boolean z15 = c1437g0.f25063c != 2;
        di.k kVar3 = args.f48281g;
        boolean z16 = c1437g0.f25065e;
        String str3 = kVar3 != null ? kVar3.f44694c.f44687a : ((z14 || z16) && c1433e02 != null) ? c1433e02.f25052c : null;
        Y0 y0 = new Y0(new C1086a0(), false, str3, 2);
        this.f48173x = y0;
        C1220x0 c1220x02 = y0.f17862t;
        Wh.F f10 = new Wh.F(c1220x02, 27);
        Y2.a k2 = r0.k(this);
        gn.r0 r0Var = gn.p0.f48536a;
        this.f48174y = m0.x(f10, k2, r0Var, str3 == null ? "" : str3);
        String str4 = kVar3 != null ? kVar3.f44694c.f44688b : ((z15 || z16) && c1433e02 != null) ? c1433e02.f25051b : null;
        Pattern pattern = S.f17789c;
        Y0 y02 = new Y0(new S(), false, (kVar3 == null || (jVar2 = kVar3.f44694c) == null || (str2 = jVar2.f44688b) == null) ? str4 : str2, 2);
        this.f48175z = y02;
        C1220x0 c1220x03 = y02.f17862t;
        this.f48151A = m0.x(new Wh.F(c1220x03, 28), r0.k(this), r0Var, str4);
        if (kVar3 != null) {
            C0712c c0712c2 = kVar3.f44694c.f44690d;
            if (c0712c2 != null) {
                str = c0712c2.f10852b;
            }
            str = null;
        } else {
            if ((z13 || z16) && c1433e02 != null && (c1429c0 = c1433e02.f25050a) != null) {
                str = c1429c0.f25037b;
            }
            str = null;
        }
        String str5 = kVar3 != null ? kVar3.f44694c.f44689c : ((z13 || z16) && c1433e02 != null) ? c1433e02.f25053d : null;
        C1102g0 c1102g0 = new C1102g0(str5 == null ? "" : str5, str, false, 12);
        this.f48152B = c1102g0;
        C1220x0 c1220x04 = c1102g0.f17943k;
        this.f48153C = m0.x(new Wh.F(c1220x04, 29), r0.k(this), r0Var, str5);
        if (kVar3 != null) {
            c0712c = kVar3.f44694c.f44690d;
            c1220x0 = c1220x04;
        } else if ((!z12 && !z16) || c1433e02 == null || (c1429c02 = c1433e02.f25050a) == null) {
            c1220x0 = c1220x04;
            c0712c = null;
        } else {
            c1220x0 = c1220x04;
            c0712c = new C0712c(c1429c02.f25036a, c1429c02.f25037b, c1429c02.f25038c, c1429c02.f25039d, c1429c02.f25040e, c1429c02.f25041f);
        }
        C1523a c1523a = c3485a.f46998h;
        if (c1523a != null) {
            Map h10 = AbstractC1531i.h(c1523a, c1433e02);
            Y.Companion.getClass();
            Y y10 = Y.f17837w;
            String str6 = (String) h10.get(y10);
            if (str6 != null && (a12 = AbstractC2534l.a1(str6)) != null) {
                f02 = new F0(y10, new D0(a12.booleanValue()));
                this.f48154D = f02;
                Y.Companion.getClass();
                Y a10 = W.a("billing_details[address]");
                if (c0712c == null) {
                    kVar = kVar3;
                    z11 = z14;
                    z10 = z15;
                    map = AbstractC6633B.v0(new Pair(Y.f17827m, c0712c.f10853c), new Pair(Y.f17828n, c0712c.f10854d), new Pair(Y.f17829o, c0712c.f10851a), new Pair(Y.f17833s, c0712c.f10856f), new Pair(Y.f17834t, c0712c.f10852b), new Pair(Y.f17831q, c0712c.f10855e));
                } else {
                    kVar = kVar3;
                    z10 = z15;
                    z11 = z14;
                    map = xl.w.f67384a;
                }
                Map map2 = map;
                C1523a c1523a2 = c3485a.f46998h;
                C1103h c1103h = new C1103h(a10, cVar, map2, null, null, null, f02, c1523a2 == null ? AbstractC1531i.h(c1523a2, c3485a.f46997g) : null, false, 824);
                this.f48155E = c1103h;
                this.f48156F = c0712c != null ? m0.b(null) : m0.x(new C3694F((hn.p) c1103h.a(), 0), r0.k(this), r0Var, c0712c);
                if (z12) {
                    i10 = 1;
                    c3766k = z13 ? new C3766k(Y.l, 1) : z10 ? new C3766k(Y.f17826k, 1) : z11 ? new C3766k(Y.f17819d, 1) : new C3766k(null, 1);
                } else {
                    i10 = 1;
                    c3766k = new C3694F((hn.p) c1103h.b(), i10);
                }
                this.f48157G = c3766k;
                l0 a11 = m0.a(i10, 0, 0, 6);
                this.f48158I = a11;
                this.f48159J = a11;
                l0 a13 = m0.a(i10, 0, 0, 6);
                this.f48160K = a13;
                this.f48161L = a13;
                kVar2 = kVar;
                boolean z17 = (kVar != null || (jVar = kVar2.f44694c) == null) ? false : jVar.f44691e;
                N2 n22 = new N2();
                String merchantName = c3485a.f46995e;
                kotlin.jvm.internal.l.h(merchantName, "merchantName");
                I2 i22 = new I2(z17);
                this.f48162M = new K2(n22.f11328a, i22, merchantName);
                this.f48163N = m0.x(i22.f11284c, r0.k(this), gn.p0.f48537b, Boolean.valueOf(z17));
                if (kVar2 == null) {
                    c3718q = kVar2.f44695d;
                } else {
                    String string = application.getString(R.string.stripe_continue_button_label);
                    kotlin.jvm.internal.l.g(string, "application.getString(\n …n_label\n                )");
                    c3718q = new C3718q(null, string, false);
                }
                z0 b10 = m0.b(c3718q);
                this.f48164O = b10;
                this.f48165P = b10;
                this.f48166Q = m0.x(m0.j(new C3694F(c1220x02, 2), new C3694F(c1220x03, 3), new C3694F(c1220x0, 4), new C3694F((hn.p) c1103h.a(), 5), new C3727z(this, null)), r0.k(this), gn.p0.a(3, 0L), Boolean.FALSE);
                dn.G.C(r0.k(this), null, 0, new C3725x(this, null), 3);
                c1433e0 = c3485a.f46997g;
                if ((c1433e0 == null ? c1433e0.f25052c : null) != null) {
                    boolean z18 = c3485a.f47000j.f25065e;
                }
                if ((c1433e0 == null ? c1433e0.f25051b : null) == null) {
                    boolean z19 = c3485a.f47000j.f25065e;
                    return;
                }
                return;
            }
        }
        f02 = null;
        this.f48154D = f02;
        Y.Companion.getClass();
        Y a102 = W.a("billing_details[address]");
        if (c0712c == null) {
        }
        Map map22 = map;
        C1523a c1523a22 = c3485a.f46998h;
        C1103h c1103h2 = new C1103h(a102, cVar, map22, null, null, null, f02, c1523a22 == null ? AbstractC1531i.h(c1523a22, c3485a.f46997g) : null, false, 824);
        this.f48155E = c1103h2;
        this.f48156F = c0712c != null ? m0.b(null) : m0.x(new C3694F((hn.p) c1103h2.a(), 0), r0.k(this), r0Var, c0712c);
        if (z12) {
        }
        this.f48157G = c3766k;
        l0 a112 = m0.a(i10, 0, 0, 6);
        this.f48158I = a112;
        this.f48159J = a112;
        l0 a132 = m0.a(i10, 0, 0, 6);
        this.f48160K = a132;
        this.f48161L = a132;
        kVar2 = kVar;
        if (kVar != null) {
        }
        N2 n222 = new N2();
        String merchantName2 = c3485a.f46995e;
        kotlin.jvm.internal.l.h(merchantName2, "merchantName");
        I2 i222 = new I2(z17);
        this.f48162M = new K2(n222.f11328a, i222, merchantName2);
        this.f48163N = m0.x(i222.f11284c, r0.k(this), gn.p0.f48537b, Boolean.valueOf(z17));
        if (kVar2 == null) {
        }
        z0 b102 = m0.b(c3718q);
        this.f48164O = b102;
        this.f48165P = b102;
        this.f48166Q = m0.x(m0.j(new C3694F(c1220x02, 2), new C3694F(c1220x03, 3), new C3694F(c1220x0, 4), new C3694F((hn.p) c1103h2.a(), 5), new C3727z(this, null)), r0.k(this), gn.p0.a(3, 0L), Boolean.FALSE);
        dn.G.C(r0.k(this), null, 0, new C3725x(this, null), 3);
        c1433e0 = c3485a.f46997g;
        if ((c1433e0 == null ? c1433e0.f25052c : null) != null) {
        }
        if ((c1433e0 == null ? c1433e0.f25051b : null) == null) {
        }
    }

    public final String f() {
        String merchantName = h();
        boolean booleanValue = ((Boolean) this.f48163N.f48483a.getValue()).booleanValue();
        boolean z10 = !this.f48168s.f48277c;
        Application context = this.f48169t;
        kotlin.jvm.internal.l.h(context, "context");
        kotlin.jvm.internal.l.h(merchantName, "merchantName");
        String string = (booleanValue || z10) ? context.getString(R.string.stripe_paymentsheet_ach_save_mandate, merchantName) : context.getString(R.string.stripe_paymentsheet_ach_continue_mandate);
        kotlin.jvm.internal.l.g(string, "if (isSaveForFutureUseSe…ntinue_mandate)\n        }");
        return AbstractC2541s.f0(AbstractC2541s.f0(string, "<terms>", "<a href=\"https://stripe.com/ach-payments/authorization\">"), "</terms>", "</a>");
    }

    public final String g() {
        C3726y c3726y = this.f48168s;
        boolean z10 = c3726y.f48276b;
        Application application = this.f48169t;
        if (!z10) {
            String string = application.getString(R.string.stripe_continue_button_label);
            kotlin.jvm.internal.l.g(string, "application.getString(\n …utton_label\n            )");
            return string;
        }
        if (!c3726y.f48277c) {
            String string2 = application.getString(R.string.stripe_setup_button_label);
            kotlin.jvm.internal.l.g(string2, "{\n                    ap…      )\n                }");
            return string2;
        }
        Ci.a aVar = c3726y.f48275a.f46996f;
        kotlin.jvm.internal.l.e(aVar);
        Resources resources = application.getResources();
        kotlin.jvm.internal.l.g(resources, "application.resources");
        return aVar.a(resources);
    }

    public final String h() {
        CharSequence charSequence;
        String str = this.f48168s.f48275a.f46995e;
        int length = str.length() - 1;
        if (length >= 0) {
            while (true) {
                int i10 = length - 1;
                if (str.charAt(length) != '.') {
                    charSequence = str.subSequence(0, length + 1);
                    break;
                }
                if (i10 < 0) {
                    break;
                }
                length = i10;
            }
        }
        charSequence = "";
        return charSequence.toString();
    }

    public final C1103h i() {
        return this.f48155E;
    }

    public final z0 j() {
        return this.f48165P;
    }

    public final Y0 k() {
        return this.f48175z;
    }

    public final InterfaceC3763h l() {
        return this.f48157G;
    }

    public final Y0 m() {
        return this.f48173x;
    }

    public final C1102g0 n() {
        return this.f48152B;
    }

    public final F0 o() {
        return this.f48154D;
    }

    public final K2 p() {
        return this.f48162M;
    }

    public final void q(Oh.n result) {
        Object value;
        FinancialConnectionsAccount financialConnectionsAccount;
        String id2;
        n2 b10;
        Object value2;
        BankAccount bankAccount;
        String id3;
        n2 b11;
        kotlin.jvm.internal.l.h(result, "result");
        this.f48171v.e(Boolean.FALSE, "has_launched");
        this.f48160K.a(result);
        boolean z10 = result instanceof Oh.k;
        Integer valueOf = Integer.valueOf(R.string.stripe_paymentsheet_ach_something_went_wrong);
        if (!z10) {
            if (result instanceof Oh.m) {
                s(valueOf);
                return;
            } else {
                if (result instanceof Oh.j) {
                    s(null);
                    return;
                }
                return;
            }
        }
        Oh.k kVar = (Oh.k) result;
        BankAccount paymentAccount = kVar.a().a().getPaymentAccount();
        boolean z11 = paymentAccount instanceof BankAccount;
        z0 z0Var = this.f48164O;
        if (z11) {
            do {
                value2 = z0Var.getValue();
                bankAccount = paymentAccount;
                id3 = kVar.a().a().getId();
                b11 = kVar.a().b();
            } while (!z0Var.i(value2, new C3723v(bankAccount, id3, b11 != null ? b11.getId() : null, g(), f())));
            return;
        }
        if (!(paymentAccount instanceof FinancialConnectionsAccount)) {
            if (paymentAccount == null) {
                s(valueOf);
            }
        } else {
            do {
                value = z0Var.getValue();
                financialConnectionsAccount = (FinancialConnectionsAccount) paymentAccount;
                id2 = kVar.a().a().getId();
                b10 = kVar.a().b();
            } while (!z0Var.i(value, new C3720s(financialConnectionsAccount, id2, b10 != null ? b10.getId() : null, g(), f())));
        }
    }

    public final void r(AbstractC3724w screenState) {
        C3721t c3721t;
        String f10;
        z0 z0Var;
        Object value;
        kotlin.jvm.internal.l.h(screenState, "screenState");
        if (!(screenState instanceof C3718q)) {
            if (screenState instanceof C3720s) {
                C3720s c3720s = (C3720s) screenState;
                t(c3720s.e(), c3720s.f().getInstitutionName(), c3720s.f().getLast4());
                return;
            } else if (screenState instanceof C3723v) {
                C3723v c3723v = (C3723v) screenState;
                t(c3723v.e(), c3723v.f().getBankName(), c3723v.f().getLast4());
                return;
            } else {
                if (!(screenState instanceof C3721t) || (f10 = (c3721t = (C3721t) screenState).f()) == null) {
                    return;
                }
                t(f10, c3721t.e(), c3721t.g());
                return;
            }
        }
        do {
            z0Var = this.f48164O;
            value = z0Var.getValue();
        } while (!z0Var.i(value, C3718q.e((C3718q) screenState)));
        C3726y c3726y = this.f48168s;
        String a10 = c3726y.a();
        p0 p0Var = this.f48171v;
        Object b10 = p0Var.b("has_launched");
        Boolean bool = Boolean.TRUE;
        if (kotlin.jvm.internal.l.c(b10, bool)) {
            return;
        }
        p0Var.e(bool, "has_launched");
        boolean z10 = c3726y.f48277c;
        h0 h0Var = this.f48151A;
        h0 h0Var2 = this.f48174y;
        Provider provider = this.f48170u;
        if (a10 != null) {
            if (z10) {
                I2.a aVar = this.f48167R;
                if (aVar != null) {
                    String publishableKey = ((C2748t) provider.get()).f36147a;
                    String str = ((C2748t) provider.get()).f36148b;
                    Lh.a aVar2 = new Lh.a((String) h0Var2.f48483a.getValue(), (String) h0Var.f48483a.getValue());
                    kotlin.jvm.internal.l.h(publishableKey, "publishableKey");
                    ((AbstractC3784d) aVar.f12604b).a(new Oh.c(publishableKey, str, a10, aVar2, true), null);
                    return;
                }
                return;
            }
            I2.a aVar3 = this.f48167R;
            if (aVar3 != null) {
                String publishableKey2 = ((C2748t) provider.get()).f36147a;
                String str2 = ((C2748t) provider.get()).f36148b;
                Lh.a aVar4 = new Lh.a((String) h0Var2.f48483a.getValue(), (String) h0Var.f48483a.getValue());
                kotlin.jvm.internal.l.h(publishableKey2, "publishableKey");
                ((AbstractC3784d) aVar3.f12604b).a(new Oh.d(publishableKey2, str2, a10, aVar4, true), null);
                return;
            }
            return;
        }
        String str3 = c3726y.f48278d;
        if (str3 != null) {
            if (!z10) {
                I2.a aVar5 = this.f48167R;
                if (aVar5 != null) {
                    String publishableKey3 = ((C2748t) provider.get()).f36147a;
                    String str4 = ((C2748t) provider.get()).f36148b;
                    Lh.a aVar6 = new Lh.a((String) h0Var2.f48483a.getValue(), (String) h0Var.f48483a.getValue());
                    kotlin.jvm.internal.l.h(publishableKey3, "publishableKey");
                    ((AbstractC3784d) aVar5.f12604b).a(new Oh.b(publishableKey3, str4, aVar6, str3, null, c3726y.f48280f), null);
                    return;
                }
                return;
            }
            I2.a aVar7 = this.f48167R;
            if (aVar7 != null) {
                String publishableKey4 = ((C2748t) provider.get()).f36147a;
                String str5 = ((C2748t) provider.get()).f36148b;
                Lh.a aVar8 = new Lh.a((String) h0Var2.f48483a.getValue(), (String) h0Var.f48483a.getValue());
                C3485a c3485a = c3726y.f48275a;
                Ci.a aVar9 = c3485a.f46996f;
                Integer valueOf = aVar9 != null ? Integer.valueOf((int) aVar9.f5637a) : null;
                Ci.a aVar10 = c3485a.f46996f;
                String str6 = aVar10 != null ? aVar10.f5638b : null;
                kotlin.jvm.internal.l.h(publishableKey4, "publishableKey");
                ((AbstractC3784d) aVar7.f12604b).a(new Oh.a(publishableKey4, str5, aVar8, str3, null, c3726y.f48280f, valueOf, str6), null);
            }
        }
    }

    public final void s(Integer num) {
        z0 z0Var;
        Object value;
        String string;
        this.f48171v.e(Boolean.FALSE, "has_launched");
        I2 i22 = this.f48162M.f11301b;
        i22.f11283b.j(Boolean.TRUE);
        this.f48160K.a(null);
        do {
            z0Var = this.f48164O;
            value = z0Var.getValue();
            string = this.f48169t.getString(R.string.stripe_continue_button_label);
            kotlin.jvm.internal.l.g(string, "application.getString(\n …n_label\n                )");
        } while (!z0Var.i(value, new C3718q(num, string, false)));
    }

    public final void t(String linkAccountSessionId, String str, String str2) {
        if (str == null || str2 == null) {
            return;
        }
        String string = this.f48169t.getString(R.string.stripe_paymentsheet_payment_method_item_card_number, str2);
        int a10 = C3702a.a(str);
        kotlin.jvm.internal.l.h(linkAccountSessionId, "linkAccountSessionId");
        C0726g1 c0726g1 = new C0726g1(linkAccountSessionId, null, null, null, null);
        h0 h0Var = this.f48174y;
        String str3 = (String) h0Var.f48483a.getValue();
        h0 h0Var2 = this.f48151A;
        String str4 = (String) h0Var2.f48483a.getValue();
        h0 h0Var3 = this.f48153C;
        String str5 = (String) h0Var3.f48483a.getValue();
        x0 x0Var = this.f48156F;
        C0732i1 c0732i1 = new C0732i1(L0.USBankAccount, null, null, null, c0726g1, null, new C0778y0((C0712c) x0Var.getValue(), str4, str3, str5), null, 211966);
        boolean z10 = this.f48168s.f48275a.f46992b;
        h0 h0Var4 = this.f48163N;
        di.d dVar = z10 ? ((Boolean) h0Var4.f48483a.getValue()).booleanValue() ? di.d.f44668a : di.d.f44669b : di.d.f44670c;
        AbstractC3724w abstractC3724w = (AbstractC3724w) this.f48165P.getValue();
        di.j jVar = new di.j((String) h0Var.f48483a.getValue(), (String) h0Var2.f48483a.getValue(), (String) h0Var3.f48483a.getValue(), (C0712c) x0Var.getValue(), ((Boolean) h0Var4.f48483a.getValue()).booleanValue());
        kotlin.jvm.internal.l.g(string, "getString(\n             …      last4\n            )");
        this.f48158I.a(new di.k(string, a10, jVar, abstractC3724w, c0732i1, dVar, null));
    }
}