导航菜单

页面标题

页面副标题

Perplexity v2.48.1 - ChallengeActivity.java 源代码

正在查看: Perplexity v2.48.1 应用的 ChallengeActivity.java JAVA 源代码文件

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


package com.stripe.android.stripe3ds2.views;

import Ck.r0;
import D3.J;
import Ha.a;
import J3.n;
import M3.d;
import Xj.b;
import Xj.g;
import Xj.j;
import Yj.e;
import al.C0630d;
import android.content.Context;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.FrameLayout;
import androidx.fragment.app.FragmentContainerView;
import androidx.fragment.app.K;
import androidx.fragment.app.P;
import androidx.fragment.app.l0;
import androidx.lifecycle.k0;
import bk.AbstractC0654h;
import bk.C0652f;
import bk.C0657k;
import bk.I;
import bk.InterfaceC0658l;
import bk.Y;
import bl.f;
import ck.C0699e;
import ck.EnumC0704j;
import com.stripe.android.stripe3ds2.views.ChallengeActivity;
import dk.C0714c;
import ek.C0753e;
import ek.C0754f;
import ek.H;
import ek.l;
import ek.u;
import ek.v;
import ek.x;
import ek.z;
import gm.AbstractC0835j;
import java.util.List;
import java.util.ServiceLoader;
import kotlin.LazyKt;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import om.U;
import org.webrtc.VideoFrameBufferType;
import wm.C1772e;
import wm.ExecutorC1771d;
import xb.V;
import xb.i0;

@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/stripe/android/stripe3ds2/views/ChallengeActivity;", "LJ3/n;", "<init>", "()V", "3ds2sdk_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
@SourceDebugExtension
public final class ChallengeActivity extends n {
    public static final ExecutorC1771d x0;
    public final C0630d X;
    public final C0630d Y;
    public final C0630d Z;
    public final a r0;
    public final C0630d s0;
    public final C0630d t0;
    public final C0630d u0;
    public x v0;
    public C0699e w0;
    public final C0630d x;
    public final C0630d y;
    public final C0630d z;

    static {
        C1772e c1772e = U.a;
        x0 = ExecutorC1771d.w;
    }

    public ChallengeActivity() {
        final int i = 5;
        this.x = LazyKt.a(new Function0(this) {
            public final ChallengeActivity x;

            {
                this.x = this;
            }

            @Override
            public final Object invoke() {
                P p = this.x;
                switch (i) {
                    case 0:
                        ExecutorC1771d executorC1771d = ChallengeActivity.x0;
                        return new C0657k(p.i().x, (Yj.e) p.y.getValue(), p.i().X, ChallengeActivity.x0);
                    case 1:
                        ExecutorC1771d workContext = ChallengeActivity.x0;
                        Intrinsics.h(workContext, "workContext");
                        String acsUrl = p.i().z.z;
                        Yj.e errorReporter = (Yj.e) p.y.getValue();
                        Intrinsics.h(acsUrl, "acsUrl");
                        Intrinsics.h(errorReporter, "errorReporter");
                        W9.i iVar = new W9.i(acsUrl, errorReporter, workContext);
                        C1772e c1772e = U.a;
                        return new Y(iVar, errorReporter, ExecutorC1771d.w);
                    case 2:
                        ExecutorC1771d executorC1771d2 = ChallengeActivity.x0;
                        return new C0756h((InterfaceC0658l) p.Y.getValue(), (bk.I) p.x.getValue(), (Yj.e) p.y.getValue(), ChallengeActivity.x0);
                    case 3:
                        ExecutorC1771d executorC1771d3 = ChallengeActivity.x0;
                        Bundle extras = p.getIntent().getExtras();
                        if (extras == null) {
                            extras = Bundle.EMPTY;
                        }
                        Intrinsics.e(extras);
                        Object z = com.google.common.util.concurrent.x.z(extras, "extra_args", z.class);
                        if (z != null) {
                            return (z) z;
                        }
                        throw new IllegalArgumentException("Required value was null.");
                    case 4:
                        ExecutorC1771d executorC1771d4 = ChallengeActivity.x0;
                        return new H(p);
                    case VideoFrameBufferType.I010:
                        ExecutorC1771d executorC1771d5 = ChallengeActivity.x0;
                        return new bk.I(p.i().Y, (Y) p.Z.getValue(), p.i().x);
                    case VideoFrameBufferType.I210:
                        ExecutorC1771d executorC1771d6 = ChallengeActivity.x0;
                        return new y(p, p.i().y);
                    case 7:
                        ExecutorC1771d executorC1771d7 = ChallengeActivity.x0;
                        Context applicationContext = p.getApplicationContext();
                        Intrinsics.g(applicationContext, "getApplicationContext(...)");
                        return new Yj.d(applicationContext, new Yj.g(p.i().x.z), null, null, 252);
                    case 8:
                        ExecutorC1771d executorC1771d8 = ChallengeActivity.x0;
                        return (u) ((Vj.a) p.X.getValue()).b.getFragment();
                    case 9:
                        return ((u) p.z.getValue()).l();
                    default:
                        ExecutorC1771d executorC1771d9 = ChallengeActivity.x0;
                        View inflate = p.getLayoutInflater().inflate(2131625298, (ViewGroup) null, false);
                        FragmentContainerView C = V.C(inflate, 2131427791);
                        if (C != null) {
                            return new Vj.a((FrameLayout) inflate, C);
                        }
                        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(2131427791)));
                }
            }
        });
        final int i2 = 7;
        this.y = LazyKt.a(new Function0(this) {
            public final ChallengeActivity x;

            {
                this.x = this;
            }

            @Override
            public final Object invoke() {
                P p = this.x;
                switch (i2) {
                    case 0:
                        ExecutorC1771d executorC1771d = ChallengeActivity.x0;
                        return new C0657k(p.i().x, (Yj.e) p.y.getValue(), p.i().X, ChallengeActivity.x0);
                    case 1:
                        ExecutorC1771d workContext = ChallengeActivity.x0;
                        Intrinsics.h(workContext, "workContext");
                        String acsUrl = p.i().z.z;
                        Yj.e errorReporter = (Yj.e) p.y.getValue();
                        Intrinsics.h(acsUrl, "acsUrl");
                        Intrinsics.h(errorReporter, "errorReporter");
                        W9.i iVar = new W9.i(acsUrl, errorReporter, workContext);
                        C1772e c1772e = U.a;
                        return new Y(iVar, errorReporter, ExecutorC1771d.w);
                    case 2:
                        ExecutorC1771d executorC1771d2 = ChallengeActivity.x0;
                        return new C0756h((InterfaceC0658l) p.Y.getValue(), (bk.I) p.x.getValue(), (Yj.e) p.y.getValue(), ChallengeActivity.x0);
                    case 3:
                        ExecutorC1771d executorC1771d3 = ChallengeActivity.x0;
                        Bundle extras = p.getIntent().getExtras();
                        if (extras == null) {
                            extras = Bundle.EMPTY;
                        }
                        Intrinsics.e(extras);
                        Object z = com.google.common.util.concurrent.x.z(extras, "extra_args", z.class);
                        if (z != null) {
                            return (z) z;
                        }
                        throw new IllegalArgumentException("Required value was null.");
                    case 4:
                        ExecutorC1771d executorC1771d4 = ChallengeActivity.x0;
                        return new H(p);
                    case VideoFrameBufferType.I010:
                        ExecutorC1771d executorC1771d5 = ChallengeActivity.x0;
                        return new bk.I(p.i().Y, (Y) p.Z.getValue(), p.i().x);
                    case VideoFrameBufferType.I210:
                        ExecutorC1771d executorC1771d6 = ChallengeActivity.x0;
                        return new y(p, p.i().y);
                    case 7:
                        ExecutorC1771d executorC1771d7 = ChallengeActivity.x0;
                        Context applicationContext = p.getApplicationContext();
                        Intrinsics.g(applicationContext, "getApplicationContext(...)");
                        return new Yj.d(applicationContext, new Yj.g(p.i().x.z), null, null, 252);
                    case 8:
                        ExecutorC1771d executorC1771d8 = ChallengeActivity.x0;
                        return (u) ((Vj.a) p.X.getValue()).b.getFragment();
                    case 9:
                        return ((u) p.z.getValue()).l();
                    default:
                        ExecutorC1771d executorC1771d9 = ChallengeActivity.x0;
                        View inflate = p.getLayoutInflater().inflate(2131625298, (ViewGroup) null, false);
                        FragmentContainerView C = V.C(inflate, 2131427791);
                        if (C != null) {
                            return new Vj.a((FrameLayout) inflate, C);
                        }
                        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(2131427791)));
                }
            }
        });
        final int i3 = 8;
        this.z = LazyKt.a(new Function0(this) {
            public final ChallengeActivity x;

            {
                this.x = this;
            }

            @Override
            public final Object invoke() {
                P p = this.x;
                switch (i3) {
                    case 0:
                        ExecutorC1771d executorC1771d = ChallengeActivity.x0;
                        return new C0657k(p.i().x, (Yj.e) p.y.getValue(), p.i().X, ChallengeActivity.x0);
                    case 1:
                        ExecutorC1771d workContext = ChallengeActivity.x0;
                        Intrinsics.h(workContext, "workContext");
                        String acsUrl = p.i().z.z;
                        Yj.e errorReporter = (Yj.e) p.y.getValue();
                        Intrinsics.h(acsUrl, "acsUrl");
                        Intrinsics.h(errorReporter, "errorReporter");
                        W9.i iVar = new W9.i(acsUrl, errorReporter, workContext);
                        C1772e c1772e = U.a;
                        return new Y(iVar, errorReporter, ExecutorC1771d.w);
                    case 2:
                        ExecutorC1771d executorC1771d2 = ChallengeActivity.x0;
                        return new C0756h((InterfaceC0658l) p.Y.getValue(), (bk.I) p.x.getValue(), (Yj.e) p.y.getValue(), ChallengeActivity.x0);
                    case 3:
                        ExecutorC1771d executorC1771d3 = ChallengeActivity.x0;
                        Bundle extras = p.getIntent().getExtras();
                        if (extras == null) {
                            extras = Bundle.EMPTY;
                        }
                        Intrinsics.e(extras);
                        Object z = com.google.common.util.concurrent.x.z(extras, "extra_args", z.class);
                        if (z != null) {
                            return (z) z;
                        }
                        throw new IllegalArgumentException("Required value was null.");
                    case 4:
                        ExecutorC1771d executorC1771d4 = ChallengeActivity.x0;
                        return new H(p);
                    case VideoFrameBufferType.I010:
                        ExecutorC1771d executorC1771d5 = ChallengeActivity.x0;
                        return new bk.I(p.i().Y, (Y) p.Z.getValue(), p.i().x);
                    case VideoFrameBufferType.I210:
                        ExecutorC1771d executorC1771d6 = ChallengeActivity.x0;
                        return new y(p, p.i().y);
                    case 7:
                        ExecutorC1771d executorC1771d7 = ChallengeActivity.x0;
                        Context applicationContext = p.getApplicationContext();
                        Intrinsics.g(applicationContext, "getApplicationContext(...)");
                        return new Yj.d(applicationContext, new Yj.g(p.i().x.z), null, null, 252);
                    case 8:
                        ExecutorC1771d executorC1771d8 = ChallengeActivity.x0;
                        return (u) ((Vj.a) p.X.getValue()).b.getFragment();
                    case 9:
                        return ((u) p.z.getValue()).l();
                    default:
                        ExecutorC1771d executorC1771d9 = ChallengeActivity.x0;
                        View inflate = p.getLayoutInflater().inflate(2131625298, (ViewGroup) null, false);
                        FragmentContainerView C = V.C(inflate, 2131427791);
                        if (C != null) {
                            return new Vj.a((FrameLayout) inflate, C);
                        }
                        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(2131427791)));
                }
            }
        });
        final int i4 = 9;
        LazyKt.a(new Function0(this) {
            public final ChallengeActivity x;

            {
                this.x = this;
            }

            @Override
            public final Object invoke() {
                P p = this.x;
                switch (i4) {
                    case 0:
                        ExecutorC1771d executorC1771d = ChallengeActivity.x0;
                        return new C0657k(p.i().x, (Yj.e) p.y.getValue(), p.i().X, ChallengeActivity.x0);
                    case 1:
                        ExecutorC1771d workContext = ChallengeActivity.x0;
                        Intrinsics.h(workContext, "workContext");
                        String acsUrl = p.i().z.z;
                        Yj.e errorReporter = (Yj.e) p.y.getValue();
                        Intrinsics.h(acsUrl, "acsUrl");
                        Intrinsics.h(errorReporter, "errorReporter");
                        W9.i iVar = new W9.i(acsUrl, errorReporter, workContext);
                        C1772e c1772e = U.a;
                        return new Y(iVar, errorReporter, ExecutorC1771d.w);
                    case 2:
                        ExecutorC1771d executorC1771d2 = ChallengeActivity.x0;
                        return new C0756h((InterfaceC0658l) p.Y.getValue(), (bk.I) p.x.getValue(), (Yj.e) p.y.getValue(), ChallengeActivity.x0);
                    case 3:
                        ExecutorC1771d executorC1771d3 = ChallengeActivity.x0;
                        Bundle extras = p.getIntent().getExtras();
                        if (extras == null) {
                            extras = Bundle.EMPTY;
                        }
                        Intrinsics.e(extras);
                        Object z = com.google.common.util.concurrent.x.z(extras, "extra_args", z.class);
                        if (z != null) {
                            return (z) z;
                        }
                        throw new IllegalArgumentException("Required value was null.");
                    case 4:
                        ExecutorC1771d executorC1771d4 = ChallengeActivity.x0;
                        return new H(p);
                    case VideoFrameBufferType.I010:
                        ExecutorC1771d executorC1771d5 = ChallengeActivity.x0;
                        return new bk.I(p.i().Y, (Y) p.Z.getValue(), p.i().x);
                    case VideoFrameBufferType.I210:
                        ExecutorC1771d executorC1771d6 = ChallengeActivity.x0;
                        return new y(p, p.i().y);
                    case 7:
                        ExecutorC1771d executorC1771d7 = ChallengeActivity.x0;
                        Context applicationContext = p.getApplicationContext();
                        Intrinsics.g(applicationContext, "getApplicationContext(...)");
                        return new Yj.d(applicationContext, new Yj.g(p.i().x.z), null, null, 252);
                    case 8:
                        ExecutorC1771d executorC1771d8 = ChallengeActivity.x0;
                        return (u) ((Vj.a) p.X.getValue()).b.getFragment();
                    case 9:
                        return ((u) p.z.getValue()).l();
                    default:
                        ExecutorC1771d executorC1771d9 = ChallengeActivity.x0;
                        View inflate = p.getLayoutInflater().inflate(2131625298, (ViewGroup) null, false);
                        FragmentContainerView C = V.C(inflate, 2131427791);
                        if (C != null) {
                            return new Vj.a((FrameLayout) inflate, C);
                        }
                        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(2131427791)));
                }
            }
        });
        final int i5 = 10;
        this.X = LazyKt.a(new Function0(this) {
            public final ChallengeActivity x;

            {
                this.x = this;
            }

            @Override
            public final Object invoke() {
                P p = this.x;
                switch (i5) {
                    case 0:
                        ExecutorC1771d executorC1771d = ChallengeActivity.x0;
                        return new C0657k(p.i().x, (Yj.e) p.y.getValue(), p.i().X, ChallengeActivity.x0);
                    case 1:
                        ExecutorC1771d workContext = ChallengeActivity.x0;
                        Intrinsics.h(workContext, "workContext");
                        String acsUrl = p.i().z.z;
                        Yj.e errorReporter = (Yj.e) p.y.getValue();
                        Intrinsics.h(acsUrl, "acsUrl");
                        Intrinsics.h(errorReporter, "errorReporter");
                        W9.i iVar = new W9.i(acsUrl, errorReporter, workContext);
                        C1772e c1772e = U.a;
                        return new Y(iVar, errorReporter, ExecutorC1771d.w);
                    case 2:
                        ExecutorC1771d executorC1771d2 = ChallengeActivity.x0;
                        return new C0756h((InterfaceC0658l) p.Y.getValue(), (bk.I) p.x.getValue(), (Yj.e) p.y.getValue(), ChallengeActivity.x0);
                    case 3:
                        ExecutorC1771d executorC1771d3 = ChallengeActivity.x0;
                        Bundle extras = p.getIntent().getExtras();
                        if (extras == null) {
                            extras = Bundle.EMPTY;
                        }
                        Intrinsics.e(extras);
                        Object z = com.google.common.util.concurrent.x.z(extras, "extra_args", z.class);
                        if (z != null) {
                            return (z) z;
                        }
                        throw new IllegalArgumentException("Required value was null.");
                    case 4:
                        ExecutorC1771d executorC1771d4 = ChallengeActivity.x0;
                        return new H(p);
                    case VideoFrameBufferType.I010:
                        ExecutorC1771d executorC1771d5 = ChallengeActivity.x0;
                        return new bk.I(p.i().Y, (Y) p.Z.getValue(), p.i().x);
                    case VideoFrameBufferType.I210:
                        ExecutorC1771d executorC1771d6 = ChallengeActivity.x0;
                        return new y(p, p.i().y);
                    case 7:
                        ExecutorC1771d executorC1771d7 = ChallengeActivity.x0;
                        Context applicationContext = p.getApplicationContext();
                        Intrinsics.g(applicationContext, "getApplicationContext(...)");
                        return new Yj.d(applicationContext, new Yj.g(p.i().x.z), null, null, 252);
                    case 8:
                        ExecutorC1771d executorC1771d8 = ChallengeActivity.x0;
                        return (u) ((Vj.a) p.X.getValue()).b.getFragment();
                    case 9:
                        return ((u) p.z.getValue()).l();
                    default:
                        ExecutorC1771d executorC1771d9 = ChallengeActivity.x0;
                        View inflate = p.getLayoutInflater().inflate(2131625298, (ViewGroup) null, false);
                        FragmentContainerView C = V.C(inflate, 2131427791);
                        if (C != null) {
                            return new Vj.a((FrameLayout) inflate, C);
                        }
                        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(2131427791)));
                }
            }
        });
        final int i6 = 0;
        this.Y = LazyKt.a(new Function0(this) {
            public final ChallengeActivity x;

            {
                this.x = this;
            }

            @Override
            public final Object invoke() {
                P p = this.x;
                switch (i6) {
                    case 0:
                        ExecutorC1771d executorC1771d = ChallengeActivity.x0;
                        return new C0657k(p.i().x, (Yj.e) p.y.getValue(), p.i().X, ChallengeActivity.x0);
                    case 1:
                        ExecutorC1771d workContext = ChallengeActivity.x0;
                        Intrinsics.h(workContext, "workContext");
                        String acsUrl = p.i().z.z;
                        Yj.e errorReporter = (Yj.e) p.y.getValue();
                        Intrinsics.h(acsUrl, "acsUrl");
                        Intrinsics.h(errorReporter, "errorReporter");
                        W9.i iVar = new W9.i(acsUrl, errorReporter, workContext);
                        C1772e c1772e = U.a;
                        return new Y(iVar, errorReporter, ExecutorC1771d.w);
                    case 2:
                        ExecutorC1771d executorC1771d2 = ChallengeActivity.x0;
                        return new C0756h((InterfaceC0658l) p.Y.getValue(), (bk.I) p.x.getValue(), (Yj.e) p.y.getValue(), ChallengeActivity.x0);
                    case 3:
                        ExecutorC1771d executorC1771d3 = ChallengeActivity.x0;
                        Bundle extras = p.getIntent().getExtras();
                        if (extras == null) {
                            extras = Bundle.EMPTY;
                        }
                        Intrinsics.e(extras);
                        Object z = com.google.common.util.concurrent.x.z(extras, "extra_args", z.class);
                        if (z != null) {
                            return (z) z;
                        }
                        throw new IllegalArgumentException("Required value was null.");
                    case 4:
                        ExecutorC1771d executorC1771d4 = ChallengeActivity.x0;
                        return new H(p);
                    case VideoFrameBufferType.I010:
                        ExecutorC1771d executorC1771d5 = ChallengeActivity.x0;
                        return new bk.I(p.i().Y, (Y) p.Z.getValue(), p.i().x);
                    case VideoFrameBufferType.I210:
                        ExecutorC1771d executorC1771d6 = ChallengeActivity.x0;
                        return new y(p, p.i().y);
                    case 7:
                        ExecutorC1771d executorC1771d7 = ChallengeActivity.x0;
                        Context applicationContext = p.getApplicationContext();
                        Intrinsics.g(applicationContext, "getApplicationContext(...)");
                        return new Yj.d(applicationContext, new Yj.g(p.i().x.z), null, null, 252);
                    case 8:
                        ExecutorC1771d executorC1771d8 = ChallengeActivity.x0;
                        return (u) ((Vj.a) p.X.getValue()).b.getFragment();
                    case 9:
                        return ((u) p.z.getValue()).l();
                    default:
                        ExecutorC1771d executorC1771d9 = ChallengeActivity.x0;
                        View inflate = p.getLayoutInflater().inflate(2131625298, (ViewGroup) null, false);
                        FragmentContainerView C = V.C(inflate, 2131427791);
                        if (C != null) {
                            return new Vj.a((FrameLayout) inflate, C);
                        }
                        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(2131427791)));
                }
            }
        });
        final int i7 = 1;
        this.Z = LazyKt.a(new Function0(this) {
            public final ChallengeActivity x;

            {
                this.x = this;
            }

            @Override
            public final Object invoke() {
                P p = this.x;
                switch (i7) {
                    case 0:
                        ExecutorC1771d executorC1771d = ChallengeActivity.x0;
                        return new C0657k(p.i().x, (Yj.e) p.y.getValue(), p.i().X, ChallengeActivity.x0);
                    case 1:
                        ExecutorC1771d workContext = ChallengeActivity.x0;
                        Intrinsics.h(workContext, "workContext");
                        String acsUrl = p.i().z.z;
                        Yj.e errorReporter = (Yj.e) p.y.getValue();
                        Intrinsics.h(acsUrl, "acsUrl");
                        Intrinsics.h(errorReporter, "errorReporter");
                        W9.i iVar = new W9.i(acsUrl, errorReporter, workContext);
                        C1772e c1772e = U.a;
                        return new Y(iVar, errorReporter, ExecutorC1771d.w);
                    case 2:
                        ExecutorC1771d executorC1771d2 = ChallengeActivity.x0;
                        return new C0756h((InterfaceC0658l) p.Y.getValue(), (bk.I) p.x.getValue(), (Yj.e) p.y.getValue(), ChallengeActivity.x0);
                    case 3:
                        ExecutorC1771d executorC1771d3 = ChallengeActivity.x0;
                        Bundle extras = p.getIntent().getExtras();
                        if (extras == null) {
                            extras = Bundle.EMPTY;
                        }
                        Intrinsics.e(extras);
                        Object z = com.google.common.util.concurrent.x.z(extras, "extra_args", z.class);
                        if (z != null) {
                            return (z) z;
                        }
                        throw new IllegalArgumentException("Required value was null.");
                    case 4:
                        ExecutorC1771d executorC1771d4 = ChallengeActivity.x0;
                        return new H(p);
                    case VideoFrameBufferType.I010:
                        ExecutorC1771d executorC1771d5 = ChallengeActivity.x0;
                        return new bk.I(p.i().Y, (Y) p.Z.getValue(), p.i().x);
                    case VideoFrameBufferType.I210:
                        ExecutorC1771d executorC1771d6 = ChallengeActivity.x0;
                        return new y(p, p.i().y);
                    case 7:
                        ExecutorC1771d executorC1771d7 = ChallengeActivity.x0;
                        Context applicationContext = p.getApplicationContext();
                        Intrinsics.g(applicationContext, "getApplicationContext(...)");
                        return new Yj.d(applicationContext, new Yj.g(p.i().x.z), null, null, 252);
                    case 8:
                        ExecutorC1771d executorC1771d8 = ChallengeActivity.x0;
                        return (u) ((Vj.a) p.X.getValue()).b.getFragment();
                    case 9:
                        return ((u) p.z.getValue()).l();
                    default:
                        ExecutorC1771d executorC1771d9 = ChallengeActivity.x0;
                        View inflate = p.getLayoutInflater().inflate(2131625298, (ViewGroup) null, false);
                        FragmentContainerView C = V.C(inflate, 2131427791);
                        if (C != null) {
                            return new Vj.a((FrameLayout) inflate, C);
                        }
                        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(2131427791)));
                }
            }
        });
        final int i8 = 2;
        this.r0 = new a(Reflection.a.b(ek.n.class), new C0754f(this, 0), new Function0(this) {
            public final ChallengeActivity x;

            {
                this.x = this;
            }

            @Override
            public final Object invoke() {
                P p = this.x;
                switch (i8) {
                    case 0:
                        ExecutorC1771d executorC1771d = ChallengeActivity.x0;
                        return new C0657k(p.i().x, (Yj.e) p.y.getValue(), p.i().X, ChallengeActivity.x0);
                    case 1:
                        ExecutorC1771d workContext = ChallengeActivity.x0;
                        Intrinsics.h(workContext, "workContext");
                        String acsUrl = p.i().z.z;
                        Yj.e errorReporter = (Yj.e) p.y.getValue();
                        Intrinsics.h(acsUrl, "acsUrl");
                        Intrinsics.h(errorReporter, "errorReporter");
                        W9.i iVar = new W9.i(acsUrl, errorReporter, workContext);
                        C1772e c1772e = U.a;
                        return new Y(iVar, errorReporter, ExecutorC1771d.w);
                    case 2:
                        ExecutorC1771d executorC1771d2 = ChallengeActivity.x0;
                        return new C0756h((InterfaceC0658l) p.Y.getValue(), (bk.I) p.x.getValue(), (Yj.e) p.y.getValue(), ChallengeActivity.x0);
                    case 3:
                        ExecutorC1771d executorC1771d3 = ChallengeActivity.x0;
                        Bundle extras = p.getIntent().getExtras();
                        if (extras == null) {
                            extras = Bundle.EMPTY;
                        }
                        Intrinsics.e(extras);
                        Object z = com.google.common.util.concurrent.x.z(extras, "extra_args", z.class);
                        if (z != null) {
                            return (z) z;
                        }
                        throw new IllegalArgumentException("Required value was null.");
                    case 4:
                        ExecutorC1771d executorC1771d4 = ChallengeActivity.x0;
                        return new H(p);
                    case VideoFrameBufferType.I010:
                        ExecutorC1771d executorC1771d5 = ChallengeActivity.x0;
                        return new bk.I(p.i().Y, (Y) p.Z.getValue(), p.i().x);
                    case VideoFrameBufferType.I210:
                        ExecutorC1771d executorC1771d6 = ChallengeActivity.x0;
                        return new y(p, p.i().y);
                    case 7:
                        ExecutorC1771d executorC1771d7 = ChallengeActivity.x0;
                        Context applicationContext = p.getApplicationContext();
                        Intrinsics.g(applicationContext, "getApplicationContext(...)");
                        return new Yj.d(applicationContext, new Yj.g(p.i().x.z), null, null, 252);
                    case 8:
                        ExecutorC1771d executorC1771d8 = ChallengeActivity.x0;
                        return (u) ((Vj.a) p.X.getValue()).b.getFragment();
                    case 9:
                        return ((u) p.z.getValue()).l();
                    default:
                        ExecutorC1771d executorC1771d9 = ChallengeActivity.x0;
                        View inflate = p.getLayoutInflater().inflate(2131625298, (ViewGroup) null, false);
                        FragmentContainerView C = V.C(inflate, 2131427791);
                        if (C != null) {
                            return new Vj.a((FrameLayout) inflate, C);
                        }
                        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(2131427791)));
                }
            }
        }, new C0754f(this, 1));
        final int i9 = 3;
        this.s0 = LazyKt.a(new Function0(this) {
            public final ChallengeActivity x;

            {
                this.x = this;
            }

            @Override
            public final Object invoke() {
                P p = this.x;
                switch (i9) {
                    case 0:
                        ExecutorC1771d executorC1771d = ChallengeActivity.x0;
                        return new C0657k(p.i().x, (Yj.e) p.y.getValue(), p.i().X, ChallengeActivity.x0);
                    case 1:
                        ExecutorC1771d workContext = ChallengeActivity.x0;
                        Intrinsics.h(workContext, "workContext");
                        String acsUrl = p.i().z.z;
                        Yj.e errorReporter = (Yj.e) p.y.getValue();
                        Intrinsics.h(acsUrl, "acsUrl");
                        Intrinsics.h(errorReporter, "errorReporter");
                        W9.i iVar = new W9.i(acsUrl, errorReporter, workContext);
                        C1772e c1772e = U.a;
                        return new Y(iVar, errorReporter, ExecutorC1771d.w);
                    case 2:
                        ExecutorC1771d executorC1771d2 = ChallengeActivity.x0;
                        return new C0756h((InterfaceC0658l) p.Y.getValue(), (bk.I) p.x.getValue(), (Yj.e) p.y.getValue(), ChallengeActivity.x0);
                    case 3:
                        ExecutorC1771d executorC1771d3 = ChallengeActivity.x0;
                        Bundle extras = p.getIntent().getExtras();
                        if (extras == null) {
                            extras = Bundle.EMPTY;
                        }
                        Intrinsics.e(extras);
                        Object z = com.google.common.util.concurrent.x.z(extras, "extra_args", z.class);
                        if (z != null) {
                            return (z) z;
                        }
                        throw new IllegalArgumentException("Required value was null.");
                    case 4:
                        ExecutorC1771d executorC1771d4 = ChallengeActivity.x0;
                        return new H(p);
                    case VideoFrameBufferType.I010:
                        ExecutorC1771d executorC1771d5 = ChallengeActivity.x0;
                        return new bk.I(p.i().Y, (Y) p.Z.getValue(), p.i().x);
                    case VideoFrameBufferType.I210:
                        ExecutorC1771d executorC1771d6 = ChallengeActivity.x0;
                        return new y(p, p.i().y);
                    case 7:
                        ExecutorC1771d executorC1771d7 = ChallengeActivity.x0;
                        Context applicationContext = p.getApplicationContext();
                        Intrinsics.g(applicationContext, "getApplicationContext(...)");
                        return new Yj.d(applicationContext, new Yj.g(p.i().x.z), null, null, 252);
                    case 8:
                        ExecutorC1771d executorC1771d8 = ChallengeActivity.x0;
                        return (u) ((Vj.a) p.X.getValue()).b.getFragment();
                    case 9:
                        return ((u) p.z.getValue()).l();
                    default:
                        ExecutorC1771d executorC1771d9 = ChallengeActivity.x0;
                        View inflate = p.getLayoutInflater().inflate(2131625298, (ViewGroup) null, false);
                        FragmentContainerView C = V.C(inflate, 2131427791);
                        if (C != null) {
                            return new Vj.a((FrameLayout) inflate, C);
                        }
                        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(2131427791)));
                }
            }
        });
        final int i10 = 4;
        this.t0 = LazyKt.a(new Function0(this) {
            public final ChallengeActivity x;

            {
                this.x = this;
            }

            @Override
            public final Object invoke() {
                P p = this.x;
                switch (i10) {
                    case 0:
                        ExecutorC1771d executorC1771d = ChallengeActivity.x0;
                        return new C0657k(p.i().x, (Yj.e) p.y.getValue(), p.i().X, ChallengeActivity.x0);
                    case 1:
                        ExecutorC1771d workContext = ChallengeActivity.x0;
                        Intrinsics.h(workContext, "workContext");
                        String acsUrl = p.i().z.z;
                        Yj.e errorReporter = (Yj.e) p.y.getValue();
                        Intrinsics.h(acsUrl, "acsUrl");
                        Intrinsics.h(errorReporter, "errorReporter");
                        W9.i iVar = new W9.i(acsUrl, errorReporter, workContext);
                        C1772e c1772e = U.a;
                        return new Y(iVar, errorReporter, ExecutorC1771d.w);
                    case 2:
                        ExecutorC1771d executorC1771d2 = ChallengeActivity.x0;
                        return new C0756h((InterfaceC0658l) p.Y.getValue(), (bk.I) p.x.getValue(), (Yj.e) p.y.getValue(), ChallengeActivity.x0);
                    case 3:
                        ExecutorC1771d executorC1771d3 = ChallengeActivity.x0;
                        Bundle extras = p.getIntent().getExtras();
                        if (extras == null) {
                            extras = Bundle.EMPTY;
                        }
                        Intrinsics.e(extras);
                        Object z = com.google.common.util.concurrent.x.z(extras, "extra_args", z.class);
                        if (z != null) {
                            return (z) z;
                        }
                        throw new IllegalArgumentException("Required value was null.");
                    case 4:
                        ExecutorC1771d executorC1771d4 = ChallengeActivity.x0;
                        return new H(p);
                    case VideoFrameBufferType.I010:
                        ExecutorC1771d executorC1771d5 = ChallengeActivity.x0;
                        return new bk.I(p.i().Y, (Y) p.Z.getValue(), p.i().x);
                    case VideoFrameBufferType.I210:
                        ExecutorC1771d executorC1771d6 = ChallengeActivity.x0;
                        return new y(p, p.i().y);
                    case 7:
                        ExecutorC1771d executorC1771d7 = ChallengeActivity.x0;
                        Context applicationContext = p.getApplicationContext();
                        Intrinsics.g(applicationContext, "getApplicationContext(...)");
                        return new Yj.d(applicationContext, new Yj.g(p.i().x.z), null, null, 252);
                    case 8:
                        ExecutorC1771d executorC1771d8 = ChallengeActivity.x0;
                        return (u) ((Vj.a) p.X.getValue()).b.getFragment();
                    case 9:
                        return ((u) p.z.getValue()).l();
                    default:
                        ExecutorC1771d executorC1771d9 = ChallengeActivity.x0;
                        View inflate = p.getLayoutInflater().inflate(2131625298, (ViewGroup) null, false);
                        FragmentContainerView C = V.C(inflate, 2131427791);
                        if (C != null) {
                            return new Vj.a((FrameLayout) inflate, C);
                        }
                        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(2131427791)));
                }
            }
        });
        final int i11 = 6;
        this.u0 = LazyKt.a(new Function0(this) {
            public final ChallengeActivity x;

            {
                this.x = this;
            }

            @Override
            public final Object invoke() {
                P p = this.x;
                switch (i11) {
                    case 0:
                        ExecutorC1771d executorC1771d = ChallengeActivity.x0;
                        return new C0657k(p.i().x, (Yj.e) p.y.getValue(), p.i().X, ChallengeActivity.x0);
                    case 1:
                        ExecutorC1771d workContext = ChallengeActivity.x0;
                        Intrinsics.h(workContext, "workContext");
                        String acsUrl = p.i().z.z;
                        Yj.e errorReporter = (Yj.e) p.y.getValue();
                        Intrinsics.h(acsUrl, "acsUrl");
                        Intrinsics.h(errorReporter, "errorReporter");
                        W9.i iVar = new W9.i(acsUrl, errorReporter, workContext);
                        C1772e c1772e = U.a;
                        return new Y(iVar, errorReporter, ExecutorC1771d.w);
                    case 2:
                        ExecutorC1771d executorC1771d2 = ChallengeActivity.x0;
                        return new C0756h((InterfaceC0658l) p.Y.getValue(), (bk.I) p.x.getValue(), (Yj.e) p.y.getValue(), ChallengeActivity.x0);
                    case 3:
                        ExecutorC1771d executorC1771d3 = ChallengeActivity.x0;
                        Bundle extras = p.getIntent().getExtras();
                        if (extras == null) {
                            extras = Bundle.EMPTY;
                        }
                        Intrinsics.e(extras);
                        Object z = com.google.common.util.concurrent.x.z(extras, "extra_args", z.class);
                        if (z != null) {
                            return (z) z;
                        }
                        throw new IllegalArgumentException("Required value was null.");
                    case 4:
                        ExecutorC1771d executorC1771d4 = ChallengeActivity.x0;
                        return new H(p);
                    case VideoFrameBufferType.I010:
                        ExecutorC1771d executorC1771d5 = ChallengeActivity.x0;
                        return new bk.I(p.i().Y, (Y) p.Z.getValue(), p.i().x);
                    case VideoFrameBufferType.I210:
                        ExecutorC1771d executorC1771d6 = ChallengeActivity.x0;
                        return new y(p, p.i().y);
                    case 7:
                        ExecutorC1771d executorC1771d7 = ChallengeActivity.x0;
                        Context applicationContext = p.getApplicationContext();
                        Intrinsics.g(applicationContext, "getApplicationContext(...)");
                        return new Yj.d(applicationContext, new Yj.g(p.i().x.z), null, null, 252);
                    case 8:
                        ExecutorC1771d executorC1771d8 = ChallengeActivity.x0;
                        return (u) ((Vj.a) p.X.getValue()).b.getFragment();
                    case 9:
                        return ((u) p.z.getValue()).l();
                    default:
                        ExecutorC1771d executorC1771d9 = ChallengeActivity.x0;
                        View inflate = p.getLayoutInflater().inflate(2131625298, (ViewGroup) null, false);
                        FragmentContainerView C = V.C(inflate, 2131427791);
                        if (C != null) {
                            return new Vj.a((FrameLayout) inflate, C);
                        }
                        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(2131427791)));
                }
            }
        });
        a9.a aVar = a9.a.x;
        aVar = aVar == null ? new a9.a(20) : aVar;
        if (a9.a.x == null) {
            a9.a.x = aVar;
        }
        ServiceLoader serviceLoader = (ServiceLoader) aVar.w;
        if (serviceLoader.iterator().hasNext() && serviceLoader.iterator().next() != null) {
            throw new ClassCastException();
        }
    }

    public final void h() {
        P p = ((H) this.t0.getValue()).a;
        InputMethodManager inputMethodManager = (InputMethodManager) p.getSystemService(InputMethodManager.class);
        if (inputMethodManager == null || !inputMethodManager.isAcceptingText()) {
            return;
        }
        View currentFocus = p.getCurrentFocus();
        inputMethodManager.hideSoftInputFromWindow(currentFocus != null ? currentFocus.getWindowToken() : null, 0);
    }

    public final z i() {
        return (z) this.s0.getValue();
    }

    public final ek.n j() {
        return (ek.n) this.r0.getValue();
    }

    public final void onCreate(Bundle bundle) {
        View view;
        getSupportFragmentManager().A = new v(i().y, (I) this.x.getValue(), (Y) this.Z.getValue(), (e) this.y.getValue(), (InterfaceC0658l) this.Y.getValue(), i().w.X, i().Z, x0);
        super/*androidx.fragment.app.P*/.onCreate(bundle);
        D3.I onBackPressedDispatcher = getOnBackPressedDispatcher();
        J j = new J(this, 1);
        onBackPressedDispatcher.getClass();
        onBackPressedDispatcher.b(j);
        getWindow().setFlags(8192, 8192);
        setContentView(((Vj.a) this.X.getValue()).a);
        final int i = 0;
        j().r0.e(this, new C0753e(0, new Function1(this) {
            public final ChallengeActivity x;

            {
                this.x = this;
            }

            @Override
            public final Object invoke(Object obj) {
                EnumC0704j enumC0704j;
                String str = null;
                P p = this.x;
                switch (i) {
                    case 0:
                        AbstractC0654h abstractC0654h = (AbstractC0654h) obj;
                        ExecutorC1771d executorC1771d = ChallengeActivity.x0;
                        if (!p.isFinishing()) {
                            p.h();
                            y yVar = (y) p.u0.getValue();
                            yVar.getClass();
                            x xVar = new x(yVar.a, yVar.b);
                            xVar.show();
                            p.v0 = xVar;
                            n j2 = p.j();
                            Intrinsics.e(abstractC0654h);
                            j2.v(abstractC0654h);
                        }
                        return Unit.a;
                    case 1:
                        bk.C c = (bk.C) obj;
                        ExecutorC1771d executorC1771d2 = ChallengeActivity.x0;
                        Intent intent = new Intent();
                        c.getClass();
                        p.setResult(-1, intent.putExtras(g4.f.s(new Pair[]{new Pair("extra_result", c)})));
                        if (!p.isFinishing()) {
                            p.finish();
                        }
                        return Unit.a;
                    case 2:
                        C0699e c0699e = (C0699e) obj;
                        ExecutorC1771d executorC1771d3 = ChallengeActivity.x0;
                        x xVar2 = p.v0;
                        if (xVar2 != null && xVar2.isShowing()) {
                            xVar2.dismiss();
                        }
                        p.v0 = null;
                        if (c0699e != null) {
                            l0 supportFragmentManager = p.getSupportFragmentManager();
                            Intrinsics.g(supportFragmentManager, "getSupportFragmentManager(...)");
                            androidx.fragment.app.a aVar = new androidx.fragment.app.a(supportFragmentManager);
                            aVar.d = 2130772024;
                            aVar.e = 2130772025;
                            aVar.f = 2130772024;
                            aVar.g = 2130772025;
                            int id = ((Vj.a) p.X.getValue()).b.getId();
                            Bundle s = g4.f.s(new Pair[]{new Pair("arg_cres", c0699e)});
                            androidx.fragment.app.V v = aVar.a;
                            if (v == null) {
                                throw new IllegalStateException("Creating a Fragment requires that this FragmentTransaction was built with FragmentManager.beginTransaction()");
                            }
                            ClassLoader classLoader = aVar.b;
                            if (classLoader == null) {
                                throw new IllegalStateException("The FragmentManager must be attached to itshost to create a Fragment");
                            }
                            K instantiate = v.instantiate(classLoader, u.class.getName());
                            instantiate.setArguments(s);
                            if (id == 0) {
                                throw new IllegalArgumentException("Must use non-zero containerViewId");
                            }
                            aVar.f(id, instantiate, (String) null, 2);
                            aVar.e(false, true);
                            p.w0 = c0699e;
                        }
                        return Unit.a;
                    default:
                        ExecutorC1771d executorC1771d4 = ChallengeActivity.x0;
                        if (Intrinsics.c((Boolean) obj, Boolean.TRUE)) {
                            n j3 = p.j();
                            C0699e c0699e2 = p.w0;
                            if (c0699e2 != null && (enumC0704j = c0699e2.X) != null) {
                                str = enumC0704j.w;
                            }
                            if (str == null) {
                                str = "";
                            }
                            j3.s0.k(new bk.B(str, p.i().w.X, p.i().Z));
                        }
                        return Unit.a;
                }
            }
        }));
        final int i2 = 1;
        j().t0.e(this, new C0753e(0, new Function1(this) {
            public final ChallengeActivity x;

            {
                this.x = this;
            }

            @Override
            public final Object invoke(Object obj) {
                EnumC0704j enumC0704j;
                String str = null;
                P p = this.x;
                switch (i2) {
                    case 0:
                        AbstractC0654h abstractC0654h = (AbstractC0654h) obj;
                        ExecutorC1771d executorC1771d = ChallengeActivity.x0;
                        if (!p.isFinishing()) {
                            p.h();
                            y yVar = (y) p.u0.getValue();
                            yVar.getClass();
                            x xVar = new x(yVar.a, yVar.b);
                            xVar.show();
                            p.v0 = xVar;
                            n j2 = p.j();
                            Intrinsics.e(abstractC0654h);
                            j2.v(abstractC0654h);
                        }
                        return Unit.a;
                    case 1:
                        bk.C c = (bk.C) obj;
                        ExecutorC1771d executorC1771d2 = ChallengeActivity.x0;
                        Intent intent = new Intent();
                        c.getClass();
                        p.setResult(-1, intent.putExtras(g4.f.s(new Pair[]{new Pair("extra_result", c)})));
                        if (!p.isFinishing()) {
                            p.finish();
                        }
                        return Unit.a;
                    case 2:
                        C0699e c0699e = (C0699e) obj;
                        ExecutorC1771d executorC1771d3 = ChallengeActivity.x0;
                        x xVar2 = p.v0;
                        if (xVar2 != null && xVar2.isShowing()) {
                            xVar2.dismiss();
                        }
                        p.v0 = null;
                        if (c0699e != null) {
                            l0 supportFragmentManager = p.getSupportFragmentManager();
                            Intrinsics.g(supportFragmentManager, "getSupportFragmentManager(...)");
                            androidx.fragment.app.a aVar = new androidx.fragment.app.a(supportFragmentManager);
                            aVar.d = 2130772024;
                            aVar.e = 2130772025;
                            aVar.f = 2130772024;
                            aVar.g = 2130772025;
                            int id = ((Vj.a) p.X.getValue()).b.getId();
                            Bundle s = g4.f.s(new Pair[]{new Pair("arg_cres", c0699e)});
                            androidx.fragment.app.V v = aVar.a;
                            if (v == null) {
                                throw new IllegalStateException("Creating a Fragment requires that this FragmentTransaction was built with FragmentManager.beginTransaction()");
                            }
                            ClassLoader classLoader = aVar.b;
                            if (classLoader == null) {
                                throw new IllegalStateException("The FragmentManager must be attached to itshost to create a Fragment");
                            }
                            K instantiate = v.instantiate(classLoader, u.class.getName());
                            instantiate.setArguments(s);
                            if (id == 0) {
                                throw new IllegalArgumentException("Must use non-zero containerViewId");
                            }
                            aVar.f(id, instantiate, (String) null, 2);
                            aVar.e(false, true);
                            p.w0 = c0699e;
                        }
                        return Unit.a;
                    default:
                        ExecutorC1771d executorC1771d4 = ChallengeActivity.x0;
                        if (Intrinsics.c((Boolean) obj, Boolean.TRUE)) {
                            n j3 = p.j();
                            C0699e c0699e2 = p.w0;
                            if (c0699e2 != null && (enumC0704j = c0699e2.X) != null) {
                                str = enumC0704j.w;
                            }
                            if (str == null) {
                                str = "";
                            }
                            j3.s0.k(new bk.B(str, p.i().w.X, p.i().Z));
                        }
                        return Unit.a;
                }
            }
        }));
        g gVar = i().y.w;
        b b = i().y.b(j.z);
        J3.b supportActionBar = getSupportActionBar();
        if (supportActionBar == null) {
            view = null;
        } else {
            ?? threeDS2Button = new ThreeDS2Button(new d(this, 2132083196), null, 6);
            threeDS2Button.setBackgroundTintList(ColorStateList.valueOf(0));
            threeDS2Button.setButtonCustomization(b);
            J3.a aVar = new J3.a(-2, -2);
            aVar.a = 8388629;
            supportActionBar.m((ThreeDS2Button) threeDS2Button, aVar);
            supportActionBar.o();
            if (gVar != null) {
                String str = gVar.Z;
                if (str == null || AbstractC0835j.b0(str)) {
                    threeDS2Button.setText(2132018393);
                } else {
                    threeDS2Button.setText(str);
                }
                String str2 = gVar.z;
                if (str2 != null) {
                    supportActionBar.l(new ColorDrawable(Color.parseColor(str2)));
                    String str3 = gVar.X;
                    if (str3 != null) {
                        getWindow().setStatusBarColor(Color.parseColor(str3));
                    } else {
                        getWindow().setStatusBarColor(Color.argb(Color.alpha(Color.parseColor(str2)), Math.min(Math.max((int) (Color.red(r1) * 0.8f), 0), 255), Math.min(Math.max((int) (Color.green(r1) * 0.8f), 0), 255), Math.min(Math.max((int) (Color.blue(r1) * 0.8f), 0), 255)));
                    }
                }
                String str4 = gVar.Y;
                if (str4 == null || AbstractC0835j.b0(str4)) {
                    str4 = getString(2132018394);
                    Intrinsics.e(str4);
                }
                supportActionBar.r(i0.B(this, str4, gVar));
                view = threeDS2Button;
            } else {
                supportActionBar.q();
                threeDS2Button.setText(2132018393);
                view = threeDS2Button;
            }
        }
        if (view != null) {
            view.setOnClickListener(new r0(1, view, this));
        }
        final int i3 = 2;
        j().y0.e(this, new C0753e(0, new Function1(this) {
            public final ChallengeActivity x;

            {
                this.x = this;
            }

            @Override
            public final Object invoke(Object obj) {
                EnumC0704j enumC0704j;
                String str5 = null;
                P p = this.x;
                switch (i3) {
                    case 0:
                        AbstractC0654h abstractC0654h = (AbstractC0654h) obj;
                        ExecutorC1771d executorC1771d = ChallengeActivity.x0;
                        if (!p.isFinishing()) {
                            p.h();
                            y yVar = (y) p.u0.getValue();
                            yVar.getClass();
                            x xVar = new x(yVar.a, yVar.b);
                            xVar.show();
                            p.v0 = xVar;
                            n j2 = p.j();
                            Intrinsics.e(abstractC0654h);
                            j2.v(abstractC0654h);
                        }
                        return Unit.a;
                    case 1:
                        bk.C c = (bk.C) obj;
                        ExecutorC1771d executorC1771d2 = ChallengeActivity.x0;
                        Intent intent = new Intent();
                        c.getClass();
                        p.setResult(-1, intent.putExtras(g4.f.s(new Pair[]{new Pair("extra_result", c)})));
                        if (!p.isFinishing()) {
                            p.finish();
                        }
                        return Unit.a;
                    case 2:
                        C0699e c0699e = (C0699e) obj;
                        ExecutorC1771d executorC1771d3 = ChallengeActivity.x0;
                        x xVar2 = p.v0;
                        if (xVar2 != null && xVar2.isShowing()) {
                            xVar2.dismiss();
                        }
                        p.v0 = null;
                        if (c0699e != null) {
                            l0 supportFragmentManager = p.getSupportFragmentManager();
                            Intrinsics.g(supportFragmentManager, "getSupportFragmentManager(...)");
                            androidx.fragment.app.a aVar2 = new androidx.fragment.app.a(supportFragmentManager);
                            aVar2.d = 2130772024;
                            aVar2.e = 2130772025;
                            aVar2.f = 2130772024;
                            aVar2.g = 2130772025;
                            int id = ((Vj.a) p.X.getValue()).b.getId();
                            Bundle s = g4.f.s(new Pair[]{new Pair("arg_cres", c0699e)});
                            androidx.fragment.app.V v = aVar2.a;
                            if (v == null) {
                                throw new IllegalStateException("Creating a Fragment requires that this FragmentTransaction was built with FragmentManager.beginTransaction()");
                            }
                            ClassLoader classLoader = aVar2.b;
                            if (classLoader == null) {
                                throw new IllegalStateException("The FragmentManager must be attached to itshost to create a Fragment");
                            }
                            K instantiate = v.instantiate(classLoader, u.class.getName());
                            instantiate.setArguments(s);
                            if (id == 0) {
                                throw new IllegalArgumentException("Must use non-zero containerViewId");
                            }
                            aVar2.f(id, instantiate, (String) null, 2);
                            aVar2.e(false, true);
                            p.w0 = c0699e;
                        }
                        return Unit.a;
                    default:
                        ExecutorC1771d executorC1771d4 = ChallengeActivity.x0;
                        if (Intrinsics.c((Boolean) obj, Boolean.TRUE)) {
                            n j3 = p.j();
                            C0699e c0699e2 = p.w0;
                            if (c0699e2 != null && (enumC0704j = c0699e2.X) != null) {
                                str5 = enumC0704j.w;
                            }
                            if (str5 == null) {
                                str5 = "";
                            }
                            j3.s0.k(new bk.B(str5, p.i().w.X, p.i().Z));
                        }
                        return Unit.a;
                }
            }
        }));
        if (bundle == null) {
            ek.n j2 = j();
            C0699e cres = i().w;
            Intrinsics.h(cres, "cres");
            j2.x0.j(cres);
        }
        final int i4 = 3;
        k0.k(new l(j(), null)).e(this, new C0753e(0, new Function1(this) {
            public final ChallengeActivity x;

            {
                this.x = this;
            }

            @Override
            public final Object invoke(Object obj) {
                EnumC0704j enumC0704j;
                String str5 = null;
                P p = this.x;
                switch (i4) {
                    case 0:
                        AbstractC0654h abstractC0654h = (AbstractC0654h) obj;
                        ExecutorC1771d executorC1771d = ChallengeActivity.x0;
                        if (!p.isFinishing()) {
                            p.h();
                            y yVar = (y) p.u0.getValue();
                            yVar.getClass();
                            x xVar = new x(yVar.a, yVar.b);
                            xVar.show();
                            p.v0 = xVar;
                            n j22 = p.j();
                            Intrinsics.e(abstractC0654h);
                            j22.v(abstractC0654h);
                        }
                        return Unit.a;
                    case 1:
                        bk.C c = (bk.C) obj;
                        ExecutorC1771d executorC1771d2 = ChallengeActivity.x0;
                        Intent intent = new Intent();
                        c.getClass();
                        p.setResult(-1, intent.putExtras(g4.f.s(new Pair[]{new Pair("extra_result", c)})));
                        if (!p.isFinishing()) {
                            p.finish();
                        }
                        return Unit.a;
                    case 2:
                        C0699e c0699e = (C0699e) obj;
                        ExecutorC1771d executorC1771d3 = ChallengeActivity.x0;
                        x xVar2 = p.v0;
                        if (xVar2 != null && xVar2.isShowing()) {
                            xVar2.dismiss();
                        }
                        p.v0 = null;
                        if (c0699e != null) {
                            l0 supportFragmentManager = p.getSupportFragmentManager();
                            Intrinsics.g(supportFragmentManager, "getSupportFragmentManager(...)");
                            androidx.fragment.app.a aVar2 = new androidx.fragment.app.a(supportFragmentManager);
                            aVar2.d = 2130772024;
                            aVar2.e = 2130772025;
                            aVar2.f = 2130772024;
                            aVar2.g = 2130772025;
                            int id = ((Vj.a) p.X.getValue()).b.getId();
                            Bundle s = g4.f.s(new Pair[]{new Pair("arg_cres", c0699e)});
                            androidx.fragment.app.V v = aVar2.a;
                            if (v == null) {
                                throw new IllegalStateException("Creating a Fragment requires that this FragmentTransaction was built with FragmentManager.beginTransaction()");
                            }
                            ClassLoader classLoader = aVar2.b;
                            if (classLoader == null) {
                                throw new IllegalStateException("The FragmentManager must be attached to itshost to create a Fragment");
                            }
                            K instantiate = v.instantiate(classLoader, u.class.getName());
                            instantiate.setArguments(s);
                            if (id == 0) {
                                throw new IllegalArgumentException("Must use non-zero containerViewId");
                            }
                            aVar2.f(id, instantiate, (String) null, 2);
                            aVar2.e(false, true);
                            p.w0 = c0699e;
                        }
                        return Unit.a;
                    default:
                        ExecutorC1771d executorC1771d4 = ChallengeActivity.x0;
                        if (Intrinsics.c((Boolean) obj, Boolean.TRUE)) {
                            n j3 = p.j();
                            C0699e c0699e2 = p.w0;
                            if (c0699e2 != null && (enumC0704j = c0699e2.X) != null) {
                                str5 = enumC0704j.w;
                            }
                            if (str5 == null) {
                                str5 = "";
                            }
                            j3.s0.k(new bk.B(str5, p.i().w.X, p.i().Z));
                        }
                        return Unit.a;
                }
            }
        }));
        this.w0 = i().w;
    }

    public final void onDestroy() {
        super.onDestroy();
        x xVar = this.v0;
        if (xVar != null && xVar.isShowing()) {
            xVar.dismiss();
        }
        this.v0 = null;
    }

    public final void onLowMemory() {
        super/*android.app.Activity*/.onLowMemory();
        ((C0714c) j().y).getClass();
        C0714c.b.evictAll();
    }

    public final void onPause() {
        EnumC0704j enumC0704j;
        super/*androidx.fragment.app.P*/.onPause();
        j().z0 = true;
        wf.b bVar = EnumC0704j.y;
        C0699e c0699e = this.w0;
        String str = (c0699e == null || (enumC0704j = c0699e.X) == null) ? null : enumC0704j.w;
        if (str == null) {
            str = "";
        }
        bVar.getClass();
        j().A0 = wf.b.a(str) == EnumC0704j.Z;
        h();
    }

    public final void onResume() {
        super/*androidx.fragment.app.P*/.onResume();
        if (!j().A0) {
            if (j().z0) {
                j().X.j(Unit.a);
            }
        } else {
            List f = getSupportFragmentManager().c.f();
            Intrinsics.g(f, "getFragments(...)");
            Object F0 = f.F0(f);
            Intrinsics.f(F0, "null cannot be cast to non-null type com.stripe.android.stripe3ds2.views.ChallengeFragment");
            j().v(new C0652f(((u) F0).j().getWhitelistingSelection$3ds2sdk_release()));
        }
    }

    public final void onTrimMemory(int i) {
        super/*androidx.activity.ComponentActivity*/.onTrimMemory(i);
        ((C0714c) j().y).getClass();
        C0714c.b.evictAll();
    }
}