导航菜单

页面标题

页面副标题

Aisle v12.32 - I1.java 源代码

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

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


package W2;

import Q2.a;
import W2.I1;
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.fragment.app.DialogInterfaceOnCancelListenerC1373o;
import androidx.lifecycle.AbstractC1405w;
import androidx.recyclerview.widget.RecyclerView;
import com.aisle.app.domain.model.applicationFields.ItemValues;
import com.google.android.flexbox.FlexboxLayoutManager;
import java.util.ArrayList;
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\nEditProfileListDialog.kt\nKotlin\n*S Kotlin\n*F\n+ 1 EditProfileListDialog.kt\ncom/aisle/app/presentation/common/dialogs/EditProfileListDialog\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 View.kt\nandroidx/core/view/ViewKt\n*L\n1#1,195:1\n1#2:196\n257#3,2:197\n*S KotlinDebug\n*F\n+ 1 EditProfileListDialog.kt\ncom/aisle/app/presentation/common/dialogs/EditProfileListDialog\n*L\n151#1:197,2\n*E\n"})
public final class I1 extends DialogInterfaceOnCancelListenerC1373o {

    private List f9992A;

    private Function1 f9993B;

    private R2.S f9994C;

    public S1.H f9995D;

    private boolean f9996x;

    private String f9997y;

    private int f9998z;

    public static final class a extends AbstractC2179b {

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

            int f10000a;

            final I1 f10001b;

            C0048a(I1 i12, kotlin.coroutines.d dVar) {
                super(2, dVar);
                this.f10001b = i12;
            }

            public final kotlin.coroutines.d create(Object obj, kotlin.coroutines.d dVar) {
                return new C0048a(this.f10001b, 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.f10000a;
                if (i5 == 0) {
                    Ja.q.b(obj);
                    this.f10000a = 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);
                }
                this.f10001b.K();
                return Unit.a;
            }
        }

        a() {
        }

        public static final void I(I1 i12, int i5, a aVar, View view) {
            int i6 = 0;
            for (Object obj : i12.e0()) {
                int i7 = i6 + 1;
                if (i6 < 0) {
                    kotlin.collections.r.u();
                }
                Intrinsics.checkNotNull(view);
                v4.z0.J(view, 0L, 1, null);
                i12.e0().set(i6, new Pair(((Pair) i12.e0().get(i6)).c(), Boolean.FALSE));
                i6 = i7;
            }
            i12.e0().set(i5, new Pair(((Pair) i12.e0().get(i5)).c(), Boolean.valueOf(!((Boolean) ((Pair) i12.e0().get(i5)).d()).booleanValue())));
            aVar.l();
            i12.g0().invoke(((Pair) i12.e0().get(i5)).c());
            cb.i.d(AbstractC1405w.a(i12), (CoroutineContext) null, (cb.P) null, new C0048a(i12, null), 3, (Object) null);
        }

        @Override
        public List D() {
            return I1.this.e0();
        }

        @Override
        public R2.T C() {
            R2.T d5 = R2.T.d(I1.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) I1.this.e0().get(i5);
            InterfaceC1986a P4 = aVar.P();
            final I1 i12 = I1.this;
            R2.T t5 = (R2.T) P4;
            t5.f6256c.setText(((ItemValues) pair.c()).getName());
            t5.f6257d.setSelected(((Boolean) pair.d()).booleanValue());
            t5.b().setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    I1.a.I(I1.this, i5, this, view);
                }
            });
        }
    }

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

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

    public I1() {
        this(false, null, 0, null, null, 31, null);
    }

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

    public static final void h0(I1 i12, View view) {
        i12.K();
    }

    public static final void i0(I1 i12, View view) {
        i12.K();
    }

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

    public final List e0() {
        return this.f9992A;
    }

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

    public final Function1 g0() {
        return this.f9993B;
    }

    public final void j0() {
        this.f9996x = false;
        this.f9997y = "";
        this.f9998z = 0;
        this.f9992A = new ArrayList();
        this.f9993B = new Function1() {
            public final Object invoke(Object obj) {
                Unit k02;
                k02 = I1.k0((ItemValues) obj);
                return k02;
            }
        };
    }

    public final void l0(int i5) {
        this.f9998z = i5;
    }

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

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

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

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        W(0, 2132083004);
    }

    @Override
    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 super.onCreateView(layoutInflater, viewGroup, bundle);
    }

    @Override
    public void onStart() {
        Window window;
        super.onStart();
        Dialog N4 = N();
        if (N4 == null || (window = N4.getWindow()) == null) {
            return;
        }
        WindowManager.LayoutParams attributes = window.getAttributes();
        attributes.width = -1;
        attributes.height = -1;
        window.setAttributes(attributes);
    }

    @Override
    public void onViewCreated(View view, Bundle bundle) {
        Intrinsics.checkNotNullParameter(view, "view");
        this.f9994C = R2.S.a(view);
        n0(androidx.navigation.fragment.b.a(this));
        R2.S s5 = this.f9994C;
        if (s5 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            s5 = null;
        }
        s5.b().setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view2) {
                I1.h0(I1.this, view2);
            }
        });
        R2.S s6 = this.f9994C;
        if (s6 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            s6 = null;
        }
        s6.b().setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view2) {
                I1.i0(I1.this, view2);
            }
        });
        s6.f6229f.setText(this.f9997y);
        s6.f6226c.setImageResource(this.f9998z);
        if (this.f9996x) {
            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");
            b bVar = new b();
            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(bVar, 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);
            s6.f6225b.setText(spannableString);
            s6.f6225b.setMovementMethod(LinkMovementMethod.getInstance());
        }
        TextView textView = s6.f6225b;
        Intrinsics.checkNotNullExpressionValue(textView, "descriptionText");
        textView.setVisibility(this.f9996x ? 0 : 8);
        RecyclerView recyclerView = s6.f6227d;
        recyclerView.setLayoutManager(new FlexboxLayoutManager(recyclerView.getContext()));
        recyclerView.setAdapter(new a());
    }

    public final void p0(boolean z4) {
        this.f9996x = z4;
    }

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

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

    public I1(boolean z4, String str, int i5, List list, Function1 function1) {
        super(2131558541);
        Intrinsics.checkNotNullParameter(str, "title");
        Intrinsics.checkNotNullParameter(list, "list");
        Intrinsics.checkNotNullParameter(function1, "onClick");
        this.f9996x = z4;
        this.f9997y = str;
        this.f9998z = i5;
        this.f9992A = list;
        this.f9993B = function1;
    }
}