what-the-bank/sources/o/C3841bIi.java

228 lines
8.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.text.TextUtils;
import java.util.Arrays;
import java.util.List;
import o.C0690Mh;
import o.C15715hv;
import o.ZI;
import o.wRi;
/* renamed from: o.bIi */
/* loaded from: classes4.dex */
public class C3841bIi extends ZI<InterfaceC9365diP> {
public String g;
public C1052UoH l;
/* renamed from: o */
public C0881Qr f8543o;
public static final List<String> b = Arrays.asList("ถนน", "ถ.");
public static final List<String> e = Arrays.asList("ซอย", "ซ.");
public static final List<String> c = Arrays.asList("หมู่", "ม.");
public static final List<String> h = Arrays.asList("หมู่บ้าน", "อาคาร", "มบ.", "อ.");
public static final List<String> a = Arrays.asList("ชั้น");
public static final List<String> i = Arrays.asList("ห้อง");
public static final List<String> d = Arrays.asList("เลข", "บ้าน");
@InterfaceC13391fZD
public C3841bIi(C16903sI c16903sI, C1052UoH c1052UoH) {
super(c16903sI);
this.l = c1052UoH;
}
@Override // o.ZI
public final void w_() {
C1052UoH c1052UoH = this.l;
if (!c1052UoH.h.isDisposed()) {
c1052UoH.h.dispose();
}
super.w_();
}
public final C2991ap c() {
return new C2991ap(this.f8543o.n.isEmpty() ? null : this.f8543o.n, this.f8543o.k.isEmpty() ? null : this.f8543o.k, this.f8543o.g.isEmpty() ? null : this.f8543o.g, this.f8543o.d.isEmpty() ? null : this.f8543o.d, this.f8543o.h.isEmpty() ? null : this.f8543o.h, this.f8543o.j.isEmpty() ? null : this.f8543o.j, this.f8543o.f.isEmpty() ? null : this.f8543o.f, this.f8543o.a.isEmpty() ? null : this.f8543o.a, this.f8543o.b, this.f8543o.e, this.f8543o.c, this.f8543o.i, this.f8543o.m);
}
/* renamed from: o.bIi$LWm */
/* loaded from: classes4.dex */
public class LWm extends wRi.LWm<Boolean> {
private C3841bIi d;
private LWm(C3841bIi c3841bIi) {
this.d = c3841bIi;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
super.onNext((Boolean) obj);
C3841bIi.c(this.d);
C3841bIi c3841bIi = this.d;
ZI.IeS ieS = new ZI.IeS() { // from class: o.bIr
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9365diP) obj2).a();
}
};
if (c3841bIi.f != 0) {
ieS.e(c3841bIi.f);
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
super.onError(th);
C3841bIi.b(this.d, th);
}
public /* synthetic */ LWm(C3841bIi c3841bIi, byte b) {
this(c3841bIi);
}
}
public static /* synthetic */ void b(C3841bIi c3841bIi, boolean z, boolean z2, boolean z3, boolean z4, boolean z5, boolean z6, boolean z7) {
if (!z) {
C16903sI c16903sI = c3841bIi.j;
c3841bIi.d(c16903sI.c(c16903sI.e(C15715hv.tOB.onboarding_input_address_error_title), c16903sI.e(C15715hv.tOB.onboarding_input_address_thanon_is_not_allowed), C0690Mh.IeS.JUST_DISMISS));
return;
}
if (!z2) {
C16903sI c16903sI2 = c3841bIi.j;
c3841bIi.d(c16903sI2.c(c16903sI2.e(C15715hv.tOB.onboarding_input_address_error_title), c16903sI2.e(C15715hv.tOB.onboarding_input_address_soi_is_not_allowed), C0690Mh.IeS.JUST_DISMISS));
return;
}
if (!z3) {
C16903sI c16903sI3 = c3841bIi.j;
c3841bIi.d(c16903sI3.c(c16903sI3.e(C15715hv.tOB.onboarding_input_address_error_title), c16903sI3.e(C15715hv.tOB.onboarding_input_address_moo_is_not_allowed), C0690Mh.IeS.JUST_DISMISS));
return;
}
if (!z4) {
C16903sI c16903sI4 = c3841bIi.j;
c3841bIi.d(c16903sI4.c(c16903sI4.e(C15715hv.tOB.onboarding_input_address_error_title), c16903sI4.e(C15715hv.tOB.onboarding_input_address_village_is_not_allowed), C0690Mh.IeS.JUST_DISMISS));
return;
}
if (!z5) {
C16903sI c16903sI5 = c3841bIi.j;
c3841bIi.d(c16903sI5.c(c16903sI5.e(C15715hv.tOB.onboarding_input_address_error_title), c16903sI5.e(C15715hv.tOB.onboarding_input_address_floor_is_not_allowed), C0690Mh.IeS.JUST_DISMISS));
return;
}
if (!z6) {
C16903sI c16903sI6 = c3841bIi.j;
c3841bIi.d(c16903sI6.c(c16903sI6.e(C15715hv.tOB.onboarding_input_address_error_title), c16903sI6.e(C15715hv.tOB.onboarding_input_address_unit_is_not_allowed), C0690Mh.IeS.JUST_DISMISS));
return;
}
if (z7) {
return;
}
C16903sI c16903sI7 = c3841bIi.j;
c3841bIi.d(c16903sI7.c(c16903sI7.e(C15715hv.tOB.onboarding_input_address_error_title), c16903sI7.e(C15715hv.tOB.onboarding_input_address_house_no_is_not_allowed), C0690Mh.IeS.JUST_DISMISS));
}
public static /* synthetic */ void a(C3841bIi c3841bIi, String str, C0877Qo c0877Qo, InterfaceC9365diP interfaceC9365diP) {
char c2;
c3841bIi.f8543o = new C0881Qr();
c3841bIi.g = str;
str.hashCode();
int hashCode = str.hashCode();
if (hashCode == 2223327) {
if (str.equals("HOME")) {
c2 = 0;
}
c2 = 65535;
} else if (hashCode != 2670353) {
if (hashCode == 1844922713 && str.equals("CURRENT")) {
c2 = 2;
}
c2 = 65535;
} else {
if (str.equals("WORK")) {
c2 = 1;
}
c2 = 65535;
}
if (c2 == 0) {
interfaceC9365diP.c();
} else if (c2 == 1) {
interfaceC9365diP.d();
} else if (c2 == 2) {
interfaceC9365diP.e();
}
if (c0877Qo != null) {
interfaceC9365diP.d(c0877Qo);
C0881Qr c0881Qr = c3841bIi.f8543o;
String str2 = c0877Qo.a;
C14957gcv.e(str2, "");
c0881Qr.b = str2;
C0881Qr c0881Qr2 = c3841bIi.f8543o;
String str3 = c0877Qo.k;
C14957gcv.e(str3, "");
c0881Qr2.n = str3;
C0881Qr c0881Qr3 = c3841bIi.f8543o;
String str4 = c0877Qo.m;
C14957gcv.e(str4, "");
c0881Qr3.k = str4;
C0881Qr c0881Qr4 = c3841bIi.f8543o;
String str5 = c0877Qo.i;
C14957gcv.e(str5, "");
c0881Qr4.g = str5;
C0881Qr c0881Qr5 = c3841bIi.f8543o;
String str6 = c0877Qo.b;
C14957gcv.e(str6, "");
c0881Qr5.d = str6;
C0881Qr c0881Qr6 = c3841bIi.f8543o;
String str7 = c0877Qo.j;
C14957gcv.e(str7, "");
c0881Qr6.j = str7;
C0881Qr c0881Qr7 = c3841bIi.f8543o;
String str8 = c0877Qo.h;
C14957gcv.e(str8, "");
c0881Qr7.f = str8;
C0881Qr c0881Qr8 = c3841bIi.f8543o;
String str9 = c0877Qo.e;
C14957gcv.e(str9, "");
c0881Qr8.c = str9;
C0881Qr c0881Qr9 = c3841bIi.f8543o;
String str10 = c0877Qo.d;
C14957gcv.e(str10, "");
c0881Qr9.e = str10;
C0881Qr c0881Qr10 = c3841bIi.f8543o;
String str11 = c0877Qo.f;
C14957gcv.e(str11, "");
c0881Qr10.i = str11;
C0881Qr c0881Qr11 = c3841bIi.f8543o;
String str12 = c0877Qo.g;
C14957gcv.e(str12, "");
c0881Qr11.m = str12;
C3849bIq c3849bIq = new C3849bIq(c3841bIi);
if (c3841bIi.f != 0) {
c3849bIq.e(c3841bIi.f);
}
}
}
public static /* synthetic */ void d(C3841bIi c3841bIi, InterfaceC9365diP interfaceC9365diP) {
boolean isEmpty = TextUtils.isEmpty(c3841bIi.f8543o.b);
boolean isEmpty2 = TextUtils.isEmpty(c3841bIi.f8543o.c);
boolean z = !TextUtils.isEmpty(c3841bIi.f8543o.k);
boolean z2 = !TextUtils.isEmpty(c3841bIi.f8543o.n);
boolean isEmpty3 = TextUtils.isEmpty(c3841bIi.f8543o.g);
boolean z3 = (isEmpty ^ true) && (isEmpty2 ^ true);
boolean z4 = z && z2 && (isEmpty3 ^ true);
if (z || z2) {
z3 &= z4;
}
interfaceC9365diP.b(z3);
}
static /* synthetic */ void c(C3841bIi c3841bIi) {
if (c3841bIi.f != 0) {
c3841bIi.f.ar_();
}
}
static /* synthetic */ void b(C3841bIi c3841bIi, Throwable th) {
if (c3841bIi.b(th)) {
c3841bIi.d(c3841bIi.j.e(th));
}
}
}