导航菜单

页面标题

页面副标题

Aisle v12.32 - A1.java 源代码

正在查看: Aisle v12.32 应用的 A1.java JAVA 源代码文件

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


package W2;

import Q2.a;
import W2.A1;
import android.app.Dialog;
import android.graphics.Typeface;
import android.os.Bundle;
import android.text.SpannableString;
import android.text.method.LinkMovementMethod;
import android.text.style.ClickableSpan;
import android.text.style.ForegroundColorSpan;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;
import androidx.lifecycle.AbstractC1405w;
import androidx.recyclerview.widget.RecyclerView;
import com.aisle.app.domain.model.applicationFields.ItemValues;
import com.appsflyer.R;
import com.google.android.flexbox.FlexboxLayoutManager;
import com.google.android.material.bottomsheet.BottomSheetBehavior;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import o2.InterfaceC1986a;
import v4.AbstractC2179b;
import v4.C2196t;

@Metadata
@SourceDebugExtension({"SMAP\nEditProfileBottomListDialog.kt\nKotlin\n*S Kotlin\n*F\n+ 1 EditProfileBottomListDialog.kt\ncom/aisle/app/presentation/common/dialogs/EditProfileBottomListDialog\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 View.kt\nandroidx/core/view/ViewKt\n*L\n1#1,218:1\n1#2:219\n257#3,2:220\n*S KotlinDebug\n*F\n+ 1 EditProfileBottomListDialog.kt\ncom/aisle/app/presentation/common/dialogs/EditProfileBottomListDialog\n*L\n180#1:220,2\n*E\n"})
public final class A1 extends AbstractC0967r2 {

    private boolean f9887D;

    private boolean f9888E;

    private boolean f9889F;

    private String f9890G;

    private int f9891H;

    private List f9892I;

    private Function1 f9893J;

    private R2.O f9894K;

    public S1.H f9895L;

    static final class a extends kotlin.coroutines.jvm.internal.l implements Function2 {

        int f9896a;

        a(kotlin.coroutines.d dVar) {
            super(2, dVar);
        }

        public final kotlin.coroutines.d create(Object obj, kotlin.coroutines.d dVar) {
            return A1.this.new a(dVar);
        }

        public final Object invoke(cb.N n5, kotlin.coroutines.d dVar) {
            return create(n5, dVar).invokeSuspend(Unit.a);
        }

        public final Object invokeSuspend(Object obj) {
            Object e5 = Ma.b.e();
            int i5 = this.f9896a;
            if (i5 == 0) {
                Ja.q.b(obj);
                this.f9896a = 1;
                if (cb.Y.a(100L, this) == e5) {
                    return e5;
                }
            } else {
                if (i5 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                Ja.q.b(obj);
            }
            A1.this.K();
            return Unit.a;
        }
    }

    public static final class b extends AbstractC2179b {
        b() {
        }

        public static final void I(A1 a12, int i5, b bVar, View view) {
            int i6 = 0;
            for (Object obj : a12.l0()) {
                int i7 = i6 + 1;
                if (i6 < 0) {
                    kotlin.collections.r.u();
                }
                Intrinsics.checkNotNull(view);
                v4.z0.J(view, 0L, 1, null);
                a12.l0().set(i6, new Pair(((Pair) a12.l0().get(i6)).c(), Boolean.FALSE));
                i6 = i7;
            }
            a12.l0().set(i5, new Pair(((Pair) a12.l0().get(i5)).c(), Boolean.valueOf(!((Boolean) ((Pair) a12.l0().get(i5)).d()).booleanValue())));
            bVar.l();
        }

        @Override
        public List D() {
            return A1.this.l0();
        }

        @Override
        public R2.U C() {
            R2.U d5 = R2.U.d(A1.this.getLayoutInflater());
            Intrinsics.checkNotNullExpressionValue(d5, "inflate(...)");
            return d5;
        }

        @Override
        public void r(AbstractC2179b.a aVar, final int i5) {
            Intrinsics.checkNotNullParameter(aVar, "holder");
            Pair pair = (Pair) A1.this.l0().get(i5);
            InterfaceC1986a P4 = aVar.P();
            final A1 a12 = A1.this;
            R2.U u5 = (R2.U) P4;
            u5.f6278c.setText(((ItemValues) pair.c()).getName());
            u5.f6279d.setSelected(((Boolean) pair.d()).booleanValue());
            u5.b().setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    A1.b.I(A1.this, i5, this, view);
                }
            });
        }
    }

    public static final class c extends ClickableSpan {
        c() {
        }

        @Override
        public void onClick(View view) {
            Intrinsics.checkNotNullParameter(view, "widget");
            A1.this.m0().K(a.C0568b.a0(Q2.a.f5075a, "https://www.16personalities.com/", false, 2, null));
        }
    }

    public A1() {
        this(false, false, false, null, 0, null, null, 127, null);
    }

    public static final Unit k0(ItemValues itemValues) {
        Intrinsics.checkNotNullParameter(itemValues, "<unused var>");
        return Unit.a;
    }

    public static final void n0(A1 a12, View view) {
        Object obj;
        Intrinsics.checkNotNull(view);
        v4.z0.J(view, 0L, 1, null);
        Iterator it = a12.f9892I.iterator();
        while (true) {
            if (!it.hasNext()) {
                obj = null;
                break;
            } else {
                obj = it.next();
                if (((Boolean) ((Pair) obj).d()).booleanValue()) {
                    break;
                }
            }
        }
        Pair pair = (Pair) obj;
        ItemValues itemValues = pair != null ? (ItemValues) pair.c() : null;
        if (itemValues != null) {
            a12.f9893J.invoke(itemValues);
        }
        cb.i.d(AbstractC1405w.a(a12), (CoroutineContext) null, (cb.P) null, a12.new a(null), 3, (Object) null);
    }

    public static final Unit p0(ItemValues itemValues) {
        Intrinsics.checkNotNullParameter(itemValues, "<unused var>");
        return Unit.a;
    }

    public final List l0() {
        return this.f9892I;
    }

    public final S1.H m0() {
        S1.H h5 = this.f9895L;
        if (h5 != null) {
            return h5;
        }
        Intrinsics.throwUninitializedPropertyAccessException("navController");
        return null;
    }

    public final void o0() {
        this.f9887D = false;
        this.f9888E = false;
        this.f9889F = false;
        this.f9890G = "";
        this.f9891H = 0;
        this.f9892I = new ArrayList();
        this.f9893J = new Function1() {
            public final Object invoke(Object obj) {
                Unit p02;
                p02 = A1.p0((ItemValues) obj);
                return p02;
            }
        };
    }

    public void onCreate(Bundle bundle) {
        super/*androidx.fragment.app.o*/.onCreate(bundle);
        W(0, 2132083005);
    }

    public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        Window window;
        Intrinsics.checkNotNullParameter(layoutInflater, "inflater");
        Dialog N4 = N();
        if (N4 != null && (window = N4.getWindow()) != null) {
            window.requestFeature(1);
        }
        return layoutInflater.inflate(2131558538, viewGroup, false);
    }

    public void onStart() {
        Dialog N4;
        Window window;
        super/*androidx.fragment.app.o*/.onStart();
        Dialog N5 = N();
        if (N5 != null && (window = N5.getWindow()) != null) {
            WindowManager.LayoutParams attributes = window.getAttributes();
            attributes.width = -1;
            attributes.height = -1;
            window.setAttributes(attributes);
            window.getAttributes().windowAnimations = 2132083014;
        }
        if (!this.f9887D || (N4 = N()) == null) {
            return;
        }
        BottomSheetBehavior M4 = BottomSheetBehavior.M(N4.findViewById(R.id.design_bottom_sheet));
        Intrinsics.checkNotNullExpressionValue(M4, "from(...)");
        M4.f0(false);
    }

    public void onViewCreated(View view, Bundle bundle) {
        Intrinsics.checkNotNullParameter(view, "view");
        this.f9894K = R2.O.a(view);
        u0(androidx.navigation.fragment.b.a(this));
        R2.O o5 = this.f9894K;
        if (o5 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            o5 = null;
        }
        o5.f6080c.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view2) {
                A1.n0(A1.this, view2);
            }
        });
        o5.f6083f.setText(this.f9890G);
        o5.f6081d.setImageResource(this.f9891H);
        if (this.f9888E) {
            Typeface h5 = b0.h.h(requireContext(), 2131296263);
            SpannableString spannableString = new SpannableString("Make meaningful connections by adding MBTI-based personality type to your profile. Tap here to find your personality type");
            c cVar = new c();
            int U4 = kotlin.text.h.U("Make meaningful connections by adding MBTI-based personality type to your profile. Tap here to find your personality type", "Tap here", 0, false, 6, (Object) null);
            int i5 = U4 + 8;
            spannableString.setSpan(cVar, U4, i5, 33);
            spannableString.setSpan(h5 != null ? new C2196t("", h5) : null, U4, 121, 33);
            spannableString.setSpan(new ForegroundColorSpan(androidx.core.content.b.getColor(requireContext(), 2131099687)), U4, 121, 33);
            spannableString.setSpan(new ForegroundColorSpan(androidx.core.content.b.getColor(requireContext(), 2131099827)), U4, i5, 33);
            o5.f6079b.setText(spannableString);
            o5.f6079b.setMovementMethod(LinkMovementMethod.getInstance());
        }
        TextView textView = o5.f6079b;
        Intrinsics.checkNotNullExpressionValue(textView, "descriptionText");
        textView.setVisibility(this.f9888E ? 0 : 8);
        RecyclerView recyclerView = o5.f6082e;
        recyclerView.setLayoutManager(new FlexboxLayoutManager(recyclerView.getContext()));
        recyclerView.setAdapter(new b());
    }

    public final void q0(boolean z4) {
        this.f9889F = z4;
    }

    public final void r0(int i5) {
        this.f9891H = i5;
    }

    public final void s0(boolean z4) {
        this.f9887D = z4;
    }

    public final void t0(List list) {
        Intrinsics.checkNotNullParameter(list, "<set-?>");
        this.f9892I = list;
    }

    public final void u0(S1.H h5) {
        Intrinsics.checkNotNullParameter(h5, "<set-?>");
        this.f9895L = h5;
    }

    public final void v0(Function1 function1) {
        Intrinsics.checkNotNullParameter(function1, "<set-?>");
        this.f9893J = function1;
    }

    public final void w0(boolean z4) {
        this.f9888E = z4;
    }

    public final void x0(String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.f9890G = str;
    }

    public A1(boolean z4, boolean z5, boolean z6, String str, int i5, List list, Function1 function1, int i6, DefaultConstructorMarker defaultConstructorMarker) {
        this((i6 & 1) != 0 ? false : z4, (i6 & 2) != 0 ? false : z5, (i6 & 4) != 0 ? false : z6, (i6 & 8) != 0 ? "" : str, (i6 & 16) != 0 ? 0 : i5, (i6 & 32) != 0 ? new ArrayList() : list, (i6 & 64) != 0 ? new Function1() {
            public final Object invoke(Object obj) {
                Unit k02;
                k02 = A1.k0((ItemValues) obj);
                return k02;
            }
        } : function1);
    }

    public A1(boolean z4, boolean z5, boolean z6, String str, int i5, List list, Function1 function1) {
        Intrinsics.checkNotNullParameter(str, "title");
        Intrinsics.checkNotNullParameter(list, "list");
        Intrinsics.checkNotNullParameter(function1, "onClick");
        this.f9887D = z4;
        this.f9888E = z5;
        this.f9889F = z6;
        this.f9890G = str;
        this.f9891H = i5;
        this.f9892I = list;
        this.f9893J = function1;
    }
}