正在查看: Crafto v9.3.3 应用的 DialogC1436h.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Crafto v9.3.3 应用的 DialogC1436h.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.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 com.stripe.android.paymentsheet.ui.BaseSheetActivity;
import java.util.ArrayList;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import org.jetbrains.annotations.NotNull;
import t7.C3321s;
@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 DialogC1436h extends Dialog implements DialogInterface.OnDismissListener {
@NotNull
public Context a;
public a b;
@NotNull
public tb.z c;
@NotNull
public v0 d;
@NotNull
public androidx.lifecycle.I e;
@NotNull
public ArrayList<State> f;
@NotNull
public ArrayList<PratyashiData> g;
public C3321s h;
public boolean i;
public String j;
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(DialogC1436h dialogC1436h, String str, String str2, String str3, int i) {
if ((i & 8) != 0) {
str2 = null;
}
String str4 = str2;
Object obj = dialogC1436h.a;
if (obj instanceof BaseActivityUsa) {
((BaseActivityUsa) obj).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) {
C3321s c3321s = this.h;
C3321s c3321s2 = null;
if (c3321s == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c3321s = null;
}
if (Intrinsics.areEqual(textView, c3321s.e)) {
C3321s c3321s3 = this.h;
if (c3321s3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c3321s3 = null;
}
TextView textView2 = c3321s3.e;
if (textView2 != null) {
textView2.setText(getContext().getResources().getString(2132019471));
}
C3321s c3321s4 = this.h;
if (c3321s4 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c3321s4 = null;
}
TextView textView3 = c3321s4.e;
if (textView3 != null) {
textView3.setTag(null);
}
C3321s c3321s5 = this.h;
if (c3321s5 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c3321s5 = null;
}
TextView textView4 = c3321s5.e;
if (textView4 != null) {
qb.A.C(textView4);
}
C3321s c3321s6 = this.h;
if (c3321s6 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c3321s6 = null;
}
TextView textView5 = c3321s6.c;
if (textView5 != null) {
qb.A.d(textView5);
}
C3321s c3321s7 = this.h;
if (c3321s7 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
} else {
c3321s2 = c3321s7;
}
TextView textView6 = c3321s2.b;
if (textView6 != null) {
qb.A.d(textView6);
}
} else {
C3321s c3321s8 = this.h;
if (c3321s8 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c3321s8 = null;
}
if (Intrinsics.areEqual(textView, c3321s8.c)) {
C3321s c3321s9 = this.h;
if (c3321s9 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c3321s9 = null;
}
TextView textView7 = c3321s9.c;
if (textView7 != null) {
textView7.setText(getContext().getResources().getString(2132019304));
}
C3321s c3321s10 = this.h;
if (c3321s10 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c3321s10 = null;
}
TextView textView8 = c3321s10.c;
if (textView8 != null) {
textView8.setTag(null);
}
C3321s c3321s11 = this.h;
if (c3321s11 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
} else {
c3321s2 = c3321s11;
}
TextView textView9 = c3321s2.b;
if (textView9 != null) {
qb.A.d(textView9);
}
} else {
C3321s c3321s12 = this.h;
if (c3321s12 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c3321s12 = null;
}
if (Intrinsics.areEqual(textView, c3321s12.b)) {
C3321s c3321s13 = this.h;
if (c3321s13 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c3321s13 = null;
}
TextView textView10 = c3321s13.b;
if (textView10 != null) {
textView10.setText(getContext().getResources().getString(2132019295));
}
C3321s c3321s14 = this.h;
if (c3321s14 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c3321s14 = null;
}
TextView textView11 = c3321s14.b;
if (textView11 != null) {
textView11.setTag(null);
}
}
}
}
}
}
public final void d(ArrayList arrayList) {
TextView textView;
Context context = this.a;
if (context != null) {
String string = context.getResources().getString(2132019304);
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
C3321s c3321s = this.h;
if (c3321s == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c3321s = null;
}
if (c3321s != null && (textView = c3321s.b) != null) {
c(textView);
}
C1437i c1437i = new C1437i(this);
this.c.getClass();
tb.z.e(context, string, arrayList, c1437i);
}
}
public final void e(ArrayList arrayList) {
TextView textView;
Context context = this.a;
if (context != null) {
String string = context.getResources().getString(2132019471);
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
C3321s c3321s = this.h;
if (c3321s == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c3321s = null;
}
if (c3321s != null && (textView = c3321s.c) != null) {
c(textView);
}
C1439k c1439k = new C1439k(this);
this.c.getClass();
tb.z.e(context, string, arrayList, c1439k);
}
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
requestWindowFeature(1);
Window window = getWindow();
if (window != null) {
window.setBackgroundDrawable(new ColorDrawable(-16777216));
}
C3321s c3321s = null;
View inflate = getLayoutInflater().inflate(2131558475, (ViewGroup) null, false);
int i = 2131362341;
TextView textView = (TextView) N4.e.b(2131362341, inflate);
if (textView != null) {
i = 2131362663;
if (((LinearLayout) N4.e.b(2131362663, inflate)) != null) {
i = 2131362667;
if (((TextView) N4.e.b(2131362667, inflate)) != null) {
i = 2131362693;
TextView textView2 = (TextView) N4.e.b(2131362693, inflate);
if (textView2 != null) {
i = 2131363943;
TextView textView3 = (TextView) N4.e.b(2131363943, inflate);
if (textView3 != null) {
RelativeLayout relativeLayout = (RelativeLayout) inflate;
TextView textView4 = (TextView) N4.e.b(2131364580, inflate);
if (textView4 != null) {
this.h = new C3321s(relativeLayout, textView, textView2, textView3, textView4);
setContentView(relativeLayout);
setCancelable(false);
setOnDismissListener(this);
C3321s c3321s2 = this.h;
if (c3321s2 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c3321s2 = null;
}
c3321s2.d.setOnClickListener(new ViewOnClickListenerC1431c(this, 0));
C3321s c3321s3 = this.h;
if (c3321s3 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
c3321s3 = null;
}
c3321s3.e.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
DialogC1436h dialogC1436h = DialogC1436h.this;
Intrinsics.checkNotNullParameter(dialogC1436h, "this$0");
if (dialogC1436h.f.size() > 0) {
dialogC1436h.e(dialogC1436h.f);
} else {
dialogC1436h.i = true;
}
DialogC1436h.b(dialogC1436h, "State", null, "Filter", 232);
}
});
C3321s c3321s4 = this.h;
if (c3321s4 == null) {
Intrinsics.throwUninitializedPropertyAccessException("binding");
} else {
c3321s = c3321s4;
}
c3321s.c.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
DialogC1436h dialogC1436h = DialogC1436h.this;
Intrinsics.checkNotNullParameter(dialogC1436h, "this$0");
if (dialogC1436h.g.size() > 0) {
dialogC1436h.d(dialogC1436h.g);
}
DialogC1436h.b(dialogC1436h, "District", null, "Filter", 232);
}
});
v0 v0Var = this.d;
androidx.lifecycle.S s = v0Var.v;
androidx.lifecycle.T t = new androidx.lifecycle.T() {
public final void onChanged(Object obj) {
ArrayList<State> data;
Meta meta = (Meta) obj;
DialogC1436h dialogC1436h = DialogC1436h.this;
Intrinsics.checkNotNullParameter(dialogC1436h, "this$0");
if (meta == null || (data = meta.getData()) == null) {
return;
}
dialogC1436h.f = data;
if (dialogC1436h.i) {
dialogC1436h.i = false;
dialogC1436h.e(data);
}
}
};
androidx.lifecycle.I i2 = this.e;
s.observe(i2, t);
final int i3 = 0;
v0Var.x.observe(i2, new androidx.lifecycle.T() {
public final void onChanged(Object obj) {
ArrayList<PratyashiData> data;
switch (i3) {
case 0:
Meta meta = (Meta) obj;
DialogC1436h dialogC1436h = (DialogC1436h) this;
Intrinsics.checkNotNullParameter(dialogC1436h, "this$0");
if (meta != null && (data = meta.getData()) != null) {
dialogC1436h.g = data;
dialogC1436h.d(data);
break;
}
break;
default:
BaseSheetActivity.O((BaseSheetActivity) this, (Boolean) obj);
break;
}
}
});
return;
}
i = 2131364580;
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
@Override
public final void onDismiss(DialogInterface dialogInterface) {
do.a.a.c("onDismiss", new Object[0]);
}
}