导航菜单

页面标题

页面副标题

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

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

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


package com.stripe.android.paymentsheet.paymentdatacollection.polling;

import Gf.M;
import Gf.s;
import Rf.N;
import android.content.Intent;
import android.os.Bundle;
import androidx.activity.ComponentActivity;
import androidx.core.view.n0;
import androidx.lifecycle.e0;
import androidx.lifecycle.f0;
import androidx.lifecycle.g0;
import c9.C0930c;
import com.stripe.android.paymentsheet.paymentdatacollection.polling.b;
import com.stripe.android.paymentsheet.paymentdatacollection.polling.c;
import fa.j;
import fa.n;
import ja.g;
import ja.h;
import k0.l0;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlin.time.a;
import q8.AbstractC2854a;
import s0.O;
import s0.o;
import s0.q;
import s0.z1;
import sf.l;
import sf.m;
import sf.t;

@Metadata(d1 = {"\u0000B\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\u0004\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\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\u0019\u0010\u000b\u001a\u00020\u00062\b\u0010\n\u001a\u0004\u0018\u00010\tH\u0014¢\u0006\u0004\b\u000b\u0010\fJ\u000f\u0010\r\u001a\u00020\u0006H\u0016¢\u0006\u0004\b\r\u0010\u0003R\u001b\u0010\u0013\u001a\u00020\u000e8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u000f\u0010\u0010\u001a\u0004\b\u0011\u0010\u0012R\"\u0010\u001b\u001a\u00020\u00148\u0000@\u0000X\u0080\u000e¢\u0006\u0012\n\u0004\b\u0015\u0010\u0016\u001a\u0004\b\u0017\u0010\u0018\"\u0004\b\u0019\u0010\u001aR\u001b\u0010 \u001a\u00020\u001c8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u001d\u0010\u0010\u001a\u0004\b\u001e\u0010\u001f¨\u0006#²\u0006\f\u0010\"\u001a\u00020!8\nX\u008a\u0084\u0002"}, d2 = {"Lcom/stripe/android/paymentsheet/paymentdatacollection/polling/PollingActivity;", "Landroidx/appcompat/app/c;", "<init>", "()V", "Lc9/c;", "result", "", "z1", "(Lc9/c;)V", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "finish", "Lcom/stripe/android/paymentsheet/paymentdatacollection/polling/b$a;", "b0", "Lsf/l;", "A1", "()Lcom/stripe/android/paymentsheet/paymentdatacollection/polling/b$a;", "args", "Landroidx/lifecycle/f0$c;", "c0", "Landroidx/lifecycle/f0$c;", "C1", "()Landroidx/lifecycle/f0$c;", "setViewModelFactory$paymentsheet_release", "(Landroidx/lifecycle/f0$c;)V", "viewModelFactory", "Lcom/stripe/android/paymentsheet/paymentdatacollection/polling/c;", "d0", "B1", "()Lcom/stripe/android/paymentsheet/paymentdatacollection/polling/c;", "viewModel", "LC9/f;", "uiState", "paymentsheet_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class PollingActivity extends androidx.appcompat.app.c {

    private final l args = m.a(new a());

    private f0.c viewModelFactory = new c.f(new f());

    private final l viewModel = new e0(M.b(com.stripe.android.paymentsheet.paymentdatacollection.polling.c.class), new c(this), new e(), new d(null, this));

    static final class a extends s implements Function0 {
        a() {
            super(0);
        }

        public final b.a invoke() {
            b.a.C0456a c0456a = b.a.G;
            Intent intent = PollingActivity.this.getIntent();
            Intrinsics.checkNotNullExpressionValue(intent, "getIntent(...)");
            b.a a = c0456a.a(intent);
            if (a != null) {
                return a;
            }
            throw new IllegalArgumentException("Required value was null.");
        }
    }

    static final class b extends s implements Function2 {

        static final class a extends s implements Function2 {
            final PollingActivity d;

            static final class C0453a extends s implements Function0 {
                final PollingActivity d;
                final z1 e;

                C0453a(PollingActivity pollingActivity, z1 z1Var) {
                    super(0);
                    this.d = pollingActivity;
                    this.e = z1Var;
                }

                public final void a() {
                    if (a.d(this.e).e() == C9.e.i) {
                        this.d.B1().q();
                    }
                }

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

            static final class C0454b extends kotlin.coroutines.jvm.internal.m implements Function2 {
                Object d;
                int e;
                final PollingActivity i;
                final g v;
                final z1 w;

                C0454b(PollingActivity pollingActivity, g gVar, z1 z1Var, vf.b bVar) {
                    super(2, bVar);
                    this.i = pollingActivity;
                    this.v = gVar;
                    this.w = z1Var;
                }

                public final vf.b create(Object obj, vf.b bVar) {
                    return new C0454b(this.i, this.v, this.w, bVar);
                }

                public final Object invoke(N n, vf.b bVar) {
                    return create(n, bVar).invokeSuspend(Unit.a);
                }

                public final Object invokeSuspend(Object obj) {
                    C0930c c0930c;
                    Object f = wf.b.f();
                    int i = this.e;
                    if (i == 0) {
                        t.b(obj);
                        C0930c d = com.stripe.android.paymentsheet.paymentdatacollection.polling.d.d(a.d(this.w).e(), this.i.A1());
                        if (d != null) {
                            g gVar = this.v;
                            this.d = d;
                            this.e = 1;
                            if (gVar.c(this) == f) {
                                return f;
                            }
                            c0930c = d;
                        }
                        return Unit.a;
                    }
                    if (i != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    c0930c = (C0930c) this.d;
                    t.b(obj);
                    this.i.z1(c0930c);
                    return Unit.a;
                }
            }

            static final class c extends s implements Function0 {
                public static final c d = new c();

                c() {
                    super(0);
                }

                public final void a() {
                }

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

            static final class d extends s implements Function2 {
                final PollingActivity d;

                d(PollingActivity pollingActivity) {
                    super(2);
                    this.d = pollingActivity;
                }

                public final void a(s0.l lVar, int i) {
                    if ((i & 11) == 2 && lVar.w()) {
                        lVar.F();
                        return;
                    }
                    if (o.H()) {
                        o.Q(-246136616, i, -1, "com.stripe.android.paymentsheet.paymentdatacollection.polling.PollingActivity.onCreate.<anonymous>.<anonymous>.<anonymous> (PollingActivity.kt:81)");
                    }
                    C9.d.d(this.d.B1(), null, lVar, 8, 2);
                    if (o.H()) {
                        o.P();
                    }
                }

                public Object invoke(Object obj, Object obj2) {
                    a((s0.l) obj, ((Number) obj2).intValue());
                    return Unit.a;
                }
            }

            static final class e extends s implements Function1 {
                final z1 d;

                e(z1 z1Var) {
                    super(1);
                    this.d = z1Var;
                }

                public final Boolean invoke(l0 l0Var) {
                    Intrinsics.checkNotNullParameter(l0Var, "proposedValue");
                    boolean z = true;
                    if (l0Var == l0.d && a.d(this.d).e() == C9.e.d) {
                        z = false;
                    }
                    return Boolean.valueOf(z);
                }
            }

            a(PollingActivity pollingActivity) {
                super(2);
                this.d = pollingActivity;
            }

            public static final C9.f d(z1 z1Var) {
                return (C9.f) z1Var.getValue();
            }

            public final void c(s0.l lVar, int i) {
                if ((i & 11) == 2 && lVar.w()) {
                    lVar.F();
                    return;
                }
                if (o.H()) {
                    o.Q(1217612191, i, -1, "com.stripe.android.paymentsheet.paymentdatacollection.polling.PollingActivity.onCreate.<anonymous>.<anonymous> (PollingActivity.kt:49)");
                }
                z1 a = ra.g.a(this.d.B1().p(), lVar, 8);
                lVar.e(-1878004557);
                boolean U = lVar.U(a);
                Object f = lVar.f();
                if (U || f == s0.l.a.a()) {
                    f = new e(a);
                    lVar.M(f);
                }
                lVar.R();
                g b = h.b((l0) null, (Function1) f, lVar, 0, 1);
                e.d.a(true, new C0453a(this.d, a), lVar, 6, 0);
                O.f(d(a).e(), new C0454b(this.d, b, a, null), lVar, 64);
                AbstractC2854a.a(b, null, c.d, A0.c.b(lVar, -246136616, true, new d(this.d)), lVar, g.e | 3456, 2);
                if (o.H()) {
                    o.P();
                }
            }

            public Object invoke(Object obj, Object obj2) {
                c((s0.l) obj, ((Number) obj2).intValue());
                return Unit.a;
            }
        }

        b() {
            super(2);
        }

        public final void a(s0.l lVar, int i) {
            if ((i & 11) == 2 && lVar.w()) {
                lVar.F();
                return;
            }
            if (o.H()) {
                o.Q(-684927091, i, -1, "com.stripe.android.paymentsheet.paymentdatacollection.polling.PollingActivity.onCreate.<anonymous> (PollingActivity.kt:48)");
            }
            fa.m.a((fa.h) null, (j) null, (n) null, A0.c.b(lVar, 1217612191, true, new a(PollingActivity.this)), lVar, 3072, 7);
            if (o.H()) {
                o.P();
            }
        }

        public Object invoke(Object obj, Object obj2) {
            a((s0.l) obj, ((Number) obj2).intValue());
            return Unit.a;
        }
    }

    public static final class c extends s implements Function0 {
        final ComponentActivity d;

        public c(ComponentActivity componentActivity) {
            super(0);
            this.d = componentActivity;
        }

        public final g0 invoke() {
            return this.d.H();
        }
    }

    public static final class d extends s implements Function0 {
        final Function0 d;
        final ComponentActivity e;

        public d(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 e extends s implements Function0 {
        e() {
            super(0);
        }

        public final f0.c invoke() {
            return PollingActivity.this.getViewModelFactory();
        }
    }

    static final class f extends s implements Function0 {
        f() {
            super(0);
        }

        public final c.e invoke() {
            String m = PollingActivity.this.A1().m();
            a.a aVar = kotlin.time.a.e;
            int d = PollingActivity.this.A1().d();
            Nf.b bVar = Nf.b.w;
            return new c.e(m, kotlin.time.b.s(d, bVar), kotlin.time.b.s(PollingActivity.this.A1().b(), bVar), PollingActivity.this.A1().c(), PollingActivity.this.A1().a(), null);
        }
    }

    public final b.a A1() {
        return (b.a) this.args.getValue();
    }

    public final com.stripe.android.paymentsheet.paymentdatacollection.polling.c B1() {
        return (com.stripe.android.paymentsheet.paymentdatacollection.polling.c) this.viewModel.getValue();
    }

    public final void z1(C0930c result) {
        setResult(-1, new Intent().putExtras(result.k()));
        finish();
    }

    public final f0.c getViewModelFactory() {
        return this.viewModelFactory;
    }

    public void finish() {
        super/*android.app.Activity*/.finish();
        ra.c.a(this);
    }

    protected void onCreate(Bundle savedInstanceState) {
        super/*androidx.fragment.app.i*/.onCreate(savedInstanceState);
        n0.b(getWindow(), false);
        e.e.b(this, (q) null, A0.c.c(-684927091, true, new b()), 1, (Object) null);
    }
}