导航菜单

页面标题

页面副标题

Crafto v9.3.3 - DialogC3066h.java 源代码

正在查看: Crafto v9.3.3 应用的 DialogC3066h.java JAVA 源代码文件

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


package Ua;

import Ra.v0;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.crafto.android.R;
import com.crafto.android.usa.data.model.Meta;
import com.crafto.android.usa.data.model.address.State;
import com.crafto.android.usa.data.model.politics.PartyData;
import com.crafto.android.usa.data.model.politics.PratyashiData;
import com.crafto.android.usa.ui.base.BaseActivityUsa;
import java.util.ArrayList;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import org.jetbrains.annotations.NotNull;
import qb.C7505A;
import t7.C8282s;
import tb.C8441z;

@SourceDebugExtension({"SMAP\nAddressSelectDialog.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AddressSelectDialog.kt\ncom/crafto/android/usa/ui/register/AddressSelectDialog\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,468:1\n1#2:469\n*E\n"})
public final class DialogC3066h extends Dialog implements DialogInterface.OnDismissListener {

    @NotNull
    public Context f27466a;

    public a f27467b;

    @NotNull
    public C8441z f27468c;

    @NotNull
    public v0 f27469d;

    @NotNull
    public androidx.lifecycle.I f27470e;

    @NotNull
    public ArrayList<State> f27471f;

    @NotNull
    public ArrayList<PratyashiData> f27472g;

    public C8282s f27473h;

    public boolean f27474i;

    public String f27475j;

    public interface a {
        void a(@NotNull PartyData partyData);

        void b(PratyashiData pratyashiData);
    }

    public static ArrayList a() {
        ArrayList arrayList = new ArrayList();
        arrayList.add(new PartyData("1", "https://media.crafto.app/political/32a426e1-82cf-463c-b0e2-eb4d15201884?dimension=400x400", "Bharatiya Janta Party (BJP)", null, 8, null));
        arrayList.add(new PartyData("2", "https://media.crafto.app/political/bacec5ca-adc1-4744-a071-7c713e5280b5?dimension=400x400", "Congress (INC)", null, 8, null));
        arrayList.add(new PartyData("3", "https://media.crafto.app/political/8189d81d-352e-45ff-8500-54cf3f6f7607?dimension=400x400", "Samajwadi Party (SP)", null, 8, null));
        arrayList.add(new PartyData("4", "https://media.crafto.app/political/68e9d73f-7ec7-467c-8ba5-cbe456f2c87f?dimension=400x400", "Bahujan Samaj Party (BSP)", null, 8, null));
        arrayList.add(new PartyData("8", "https://media.crafto.app/political/40e465db-f980-4c3d-8dfd-5cfc5f1defe6?dimension=1200x860", "Janata Dal (United) (JDU)", null, 8, null));
        arrayList.add(new PartyData("6", "https://media.crafto.app/political/56edac03-74fa-4184-b257-899143f0adcc?dimension=400x400", "Aam Aadmi Party (AAP)", null, 8, null));
        return arrayList;
    }

    public static void b(DialogC3066h dialogC3066h, String str, String str2, String str3, int i10) {
        if ((i10 & 8) != 0) {
            str2 = null;
        }
        String str4 = str2;
        Context context = dialogC3066h.f27466a;
        if (context instanceof BaseActivityUsa) {
            ((BaseActivityUsa) context).O("Click Action", "Address Dialog", (r23 & 4) != 0 ? null : str, (r23 & 8) != 0 ? null : str4, (r23 & 16) != 0 ? null : str3, (r23 & 32) != 0 ? false : false, (r23 & 64) != 0 ? -1 : -1, (r23 & 128) != 0 ? -1 : -1, 0, null);
        }
    }

    public final void c(TextView... textViewArr) {
        for (TextView textView : textViewArr) {
            C8282s c8282s = this.f27473h;
            C8282s c8282s2 = null;
            if (c8282s == null) {
                Intrinsics.throwUninitializedPropertyAccessException("binding");
                c8282s = null;
            }
            if (Intrinsics.areEqual(textView, c8282s.f89340e)) {
                C8282s c8282s3 = this.f27473h;
                if (c8282s3 == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("binding");
                    c8282s3 = null;
                }
                TextView textView2 = c8282s3.f89340e;
                if (textView2 != null) {
                    textView2.setText(getContext().getResources().getString(R.string.select_state));
                }
                C8282s c8282s4 = this.f27473h;
                if (c8282s4 == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("binding");
                    c8282s4 = null;
                }
                TextView textView3 = c8282s4.f89340e;
                if (textView3 != null) {
                    textView3.setTag(null);
                }
                C8282s c8282s5 = this.f27473h;
                if (c8282s5 == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("binding");
                    c8282s5 = null;
                }
                TextView textView4 = c8282s5.f89340e;
                if (textView4 != null) {
                    C7505A.C(textView4);
                }
                C8282s c8282s6 = this.f27473h;
                if (c8282s6 == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("binding");
                    c8282s6 = null;
                }
                TextView textView5 = c8282s6.f89338c;
                if (textView5 != null) {
                    C7505A.d(textView5);
                }
                C8282s c8282s7 = this.f27473h;
                if (c8282s7 == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("binding");
                } else {
                    c8282s2 = c8282s7;
                }
                TextView textView6 = c8282s2.f89337b;
                if (textView6 != null) {
                    C7505A.d(textView6);
                }
            } else {
                C8282s c8282s8 = this.f27473h;
                if (c8282s8 == null) {
                    Intrinsics.throwUninitializedPropertyAccessException("binding");
                    c8282s8 = null;
                }
                if (Intrinsics.areEqual(textView, c8282s8.f89338c)) {
                    C8282s c8282s9 = this.f27473h;
                    if (c8282s9 == null) {
                        Intrinsics.throwUninitializedPropertyAccessException("binding");
                        c8282s9 = null;
                    }
                    TextView textView7 = c8282s9.f89338c;
                    if (textView7 != null) {
                        textView7.setText(getContext().getResources().getString(R.string.prompt_lokshabha_area));
                    }
                    C8282s c8282s10 = this.f27473h;
                    if (c8282s10 == null) {
                        Intrinsics.throwUninitializedPropertyAccessException("binding");
                        c8282s10 = null;
                    }
                    TextView textView8 = c8282s10.f89338c;
                    if (textView8 != null) {
                        textView8.setTag(null);
                    }
                    C8282s c8282s11 = this.f27473h;
                    if (c8282s11 == null) {
                        Intrinsics.throwUninitializedPropertyAccessException("binding");
                    } else {
                        c8282s2 = c8282s11;
                    }
                    TextView textView9 = c8282s2.f89337b;
                    if (textView9 != null) {
                        C7505A.d(textView9);
                    }
                } else {
                    C8282s c8282s12 = this.f27473h;
                    if (c8282s12 == null) {
                        Intrinsics.throwUninitializedPropertyAccessException("binding");
                        c8282s12 = null;
                    }
                    if (Intrinsics.areEqual(textView, c8282s12.f89337b)) {
                        C8282s c8282s13 = this.f27473h;
                        if (c8282s13 == null) {
                            Intrinsics.throwUninitializedPropertyAccessException("binding");
                            c8282s13 = null;
                        }
                        TextView textView10 = c8282s13.f89337b;
                        if (textView10 != null) {
                            textView10.setText(getContext().getResources().getString(R.string.prompt_city));
                        }
                        C8282s c8282s14 = this.f27473h;
                        if (c8282s14 == null) {
                            Intrinsics.throwUninitializedPropertyAccessException("binding");
                            c8282s14 = null;
                        }
                        TextView textView11 = c8282s14.f89337b;
                        if (textView11 != null) {
                            textView11.setTag(null);
                        }
                    }
                }
            }
        }
    }

    public final void d(ArrayList arrayList) {
        TextView textView;
        Context context = this.f27466a;
        if (context != null) {
            String string = context.getResources().getString(R.string.prompt_lokshabha_area);
            Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
            C8282s c8282s = this.f27473h;
            if (c8282s == null) {
                Intrinsics.throwUninitializedPropertyAccessException("binding");
                c8282s = null;
            }
            if (c8282s != null && (textView = c8282s.f89337b) != null) {
                c(textView);
            }
            C3067i c3067i = new C3067i(this);
            this.f27468c.getClass();
            C8441z.e(context, string, arrayList, c3067i);
        }
    }

    public final void e(ArrayList arrayList) {
        TextView textView;
        Context context = this.f27466a;
        if (context != null) {
            String string = context.getResources().getString(R.string.select_state);
            Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
            C8282s c8282s = this.f27473h;
            if (c8282s == null) {
                Intrinsics.throwUninitializedPropertyAccessException("binding");
                c8282s = null;
            }
            if (c8282s != null && (textView = c8282s.f89338c) != null) {
                c(textView);
            }
            C3069k c3069k = new C3069k(this);
            this.f27468c.getClass();
            C8441z.e(context, string, arrayList, c3069k);
        }
    }

    @Override
    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        requestWindowFeature(1);
        Window window = getWindow();
        if (window != null) {
            window.setBackgroundDrawable(new ColorDrawable(-16777216));
        }
        C8282s c8282s = null;
        View inflate = getLayoutInflater().inflate(R.layout.address_select_dialog_usa, (ViewGroup) null, false);
        int i10 = R.id.cityTV;
        TextView textView = (TextView) N4.e.b(R.id.cityTV, inflate);
        if (textView != null) {
            i10 = R.id.dialogHeadingLayout;
            if (((LinearLayout) N4.e.b(R.id.dialogHeadingLayout, inflate)) != null) {
                i10 = R.id.dialogHeadingTV;
                if (((TextView) N4.e.b(R.id.dialogHeadingTV, inflate)) != null) {
                    i10 = R.id.districtTV;
                    TextView textView2 = (TextView) N4.e.b(R.id.districtTV, inflate);
                    if (textView2 != null) {
                        i10 = R.id.partyTV;
                        TextView textView3 = (TextView) N4.e.b(R.id.partyTV, inflate);
                        if (textView3 != null) {
                            RelativeLayout relativeLayout = (RelativeLayout) inflate;
                            TextView textView4 = (TextView) N4.e.b(R.id.stateTV, inflate);
                            if (textView4 != null) {
                                this.f27473h = new C8282s(relativeLayout, textView, textView2, textView3, textView4);
                                setContentView(relativeLayout);
                                setCancelable(false);
                                setOnDismissListener(this);
                                C8282s c8282s2 = this.f27473h;
                                if (c8282s2 == null) {
                                    Intrinsics.throwUninitializedPropertyAccessException("binding");
                                    c8282s2 = null;
                                }
                                c8282s2.f89339d.setOnClickListener(new ViewOnClickListenerC3061c(this, 0));
                                C8282s c8282s3 = this.f27473h;
                                if (c8282s3 == null) {
                                    Intrinsics.throwUninitializedPropertyAccessException("binding");
                                    c8282s3 = null;
                                }
                                c8282s3.f89340e.setOnClickListener(new View.OnClickListener() {
                                    @Override
                                    public final void onClick(View view) {
                                        DialogC3066h this$0 = DialogC3066h.this;
                                        Intrinsics.checkNotNullParameter(this$0, "this$0");
                                        if (this$0.f27471f.size() > 0) {
                                            this$0.e(this$0.f27471f);
                                        } else {
                                            this$0.f27474i = true;
                                        }
                                        DialogC3066h.b(this$0, "State", null, "Filter", 232);
                                    }
                                });
                                C8282s c8282s4 = this.f27473h;
                                if (c8282s4 == null) {
                                    Intrinsics.throwUninitializedPropertyAccessException("binding");
                                } else {
                                    c8282s = c8282s4;
                                }
                                c8282s.f89338c.setOnClickListener(new View.OnClickListener() {
                                    @Override
                                    public final void onClick(View view) {
                                        DialogC3066h this$0 = DialogC3066h.this;
                                        Intrinsics.checkNotNullParameter(this$0, "this$0");
                                        if (this$0.f27472g.size() > 0) {
                                            this$0.d(this$0.f27472g);
                                        }
                                        DialogC3066h.b(this$0, "District", null, "Filter", 232);
                                    }
                                });
                                v0 v0Var = this.f27469d;
                                androidx.lifecycle.S s2 = v0Var.f25315v;
                                androidx.lifecycle.T t10 = new androidx.lifecycle.T() {
                                    @Override
                                    public final void onChanged(Object obj) {
                                        ArrayList<State> data;
                                        Meta meta = (Meta) obj;
                                        DialogC3066h this$0 = DialogC3066h.this;
                                        Intrinsics.checkNotNullParameter(this$0, "this$0");
                                        if (meta == null || (data = meta.getData()) == null) {
                                            return;
                                        }
                                        this$0.f27471f = data;
                                        if (this$0.f27474i) {
                                            this$0.f27474i = false;
                                            this$0.e(data);
                                        }
                                    }
                                };
                                androidx.lifecycle.I i11 = this.f27470e;
                                s2.observe(i11, t10);
                                v0Var.f25317x.observe(i11, new C3065g(this, 0));
                                return;
                            }
                            i10 = R.id.stateTV;
                        }
                    }
                }
            }
        }
        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i10)));
    }

    @Override
    public final void onDismiss(DialogInterface dialogInterface) {
        p003do.a.f61810a.c("onDismiss", new Object[0]);
    }
}