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

330 lines
10 KiB
Java

package o;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Pattern;
import o.AbstractC5071bmC;
import o.InterfaceC9256dgL;
import o.NF;
import o.ZI;
/* renamed from: o.bnQ */
/* loaded from: classes4.dex */
public final class C5138bnQ<T extends InterfaceC9256dgL> extends C5291bqK<T> {
private static final List<String> t;
public NW r;
public final C17800zpz s;
private boolean y;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C5138bnQ(C16903sI c16903sI, mZh mzh, ZUb zUb, zhU zhu, C17020tL c17020tL, zxA zxa, JaU jaU, lUI lui, jVg jvg, yVa yva, C15689hlW c15689hlW, C17800zpz c17800zpz) {
super(c16903sI, mzh, zUb, zhu, c17020tL, zxa, jaU, lui, jvg, yva, c15689hlW);
C14957gcv.e(c16903sI, "");
C14957gcv.e(mzh, "");
C14957gcv.e(zUb, "");
C14957gcv.e(zhu, "");
C14957gcv.e(c17020tL, "");
C14957gcv.e(zxa, "");
C14957gcv.e(jaU, "");
C14957gcv.e(lui, "");
C14957gcv.e(jvg, "");
C14957gcv.e(yva, "");
C14957gcv.e(c15689hlW, "");
C14957gcv.e(c17800zpz, "");
this.s = c17800zpz;
this.r = new NW((byte) 0);
}
/* renamed from: o.bnQ$IeS */
/* loaded from: classes4.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
static {
new IeS((byte) 0);
String[] strArr = {"M", "R"};
C14957gcv.e(strArr, "");
C14957gcv.e(strArr, "");
List<String> asList = Arrays.asList(strArr);
C14957gcv.c(asList, "");
t = asList;
}
@Override // o.C5291bqK
public final void b() {
this.m.remove(AbstractC5071bmC.HBt.INCOMING);
super.b();
C5137bnP c5137bnP = new C5137bnP(false);
if (this.f != 0) {
c5137bnP.e(this.f);
}
ZI.IeS ieS = new ZI.IeS() { // from class: o.bnV
@Override // o.ZI.IeS
public final void e(Object obj) {
C5138bnQ.a((InterfaceC9256dgL) obj);
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
/* JADX INFO: Access modifiers changed from: protected */
@Override // o.C5291bqK
public final void c(NG ng) {
NE ne;
super.c(ng);
this.y = ((ng == null || (ne = ng.b) == null) ? null : ne.c) != null;
ZI.IeS ieS = new ZI.IeS(ng, this) { // from class: o.bnW
private NG a;
private C5138bnQ b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5138bnQ.e(this.a, this.b, (InterfaceC9256dgL) obj);
}
{
this.a = ng;
this.b = this;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
/* JADX WARN: Code restructure failed: missing block: B:23:0x002f, code lost:
if (o.C5138bnQ.t.contains((java.lang.String) r3) == false) goto L34;
*/
@Override // o.AbstractC5071bmC
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void c(int r3, java.lang.String r4, o.AbstractC5071bmC.HBt r5) {
/*
r2 = this;
super.c(r3, r4, r5)
o.bmC$HBt r0 = o.AbstractC5071bmC.HBt.MARITAL_STATUS
if (r5 != r0) goto L70
o.NW r5 = r2.r
if (r4 != 0) goto Ld
if (r3 <= 0) goto L31
Ld:
java.util.Map<java.lang.String, java.lang.String> r4 = r2.l
java.util.Set r4 = r4.keySet()
java.lang.Iterable r4 = (java.lang.Iterable) r4
java.util.List r4 = o.C14881gav.d(r4)
boolean r0 = r2.y
r1 = 1
r0 = r0 ^ r1
int r3 = r3 - r0
java.lang.Object r3 = r4.get(r3)
java.lang.String r4 = ""
o.C14957gcv.c(r3, r4)
java.lang.String r3 = (java.lang.String) r3
java.util.List<java.lang.String> r4 = o.C5138bnQ.t
boolean r3 = r4.contains(r3)
if (r3 != 0) goto L32
L31:
r1 = 0
L32:
r5.b = r1
o.NW r3 = r2.r
boolean r3 = r3.b
o.bnP r4 = new o.bnP
r4.<init>(r3)
T extends o.cYp r3 = r2.f
if (r3 == 0) goto L46
T extends o.cYp r3 = r2.f
r4.e(r3)
L46:
o.bnT r3 = new o.bnT
r3.<init>(r2)
T extends o.cYp r4 = r2.f
if (r4 == 0) goto L54
T extends o.cYp r4 = r2.f
r3.e(r4)
L54:
o.bnX r3 = new o.bnX
r3.<init>(r2)
T extends o.cYp r4 = r2.f
if (r4 == 0) goto L62
T extends o.cYp r4 = r2.f
r3.e(r4)
L62:
o.boa r3 = new o.boa
r3.<init>(r2)
T extends o.cYp r4 = r2.f
if (r4 == 0) goto L70
T extends o.cYp r4 = r2.f
r3.e(r4)
L70:
return
*/
throw new UnsupportedOperationException("Method not decompiled: o.C5138bnQ.c(int, java.lang.String, o.bmC$HBt):void");
}
public static /* synthetic */ void d(C5138bnQ c5138bnQ, InterfaceC9256dgL interfaceC9256dgL) {
C14957gcv.e(c5138bnQ, "");
if (c5138bnQ.r.b && C14957gcv.b(c5138bnQ.r.d, Boolean.TRUE)) {
interfaceC9256dgL.a(!c5138bnQ.i());
}
}
public static /* synthetic */ void e(C5138bnQ c5138bnQ, InterfaceC9256dgL interfaceC9256dgL) {
C14957gcv.e(c5138bnQ, "");
interfaceC9256dgL.c(!((c5138bnQ.r.b && c5138bnQ.r.d == null) ? false : true));
}
public static /* synthetic */ void b(C5138bnQ c5138bnQ, InterfaceC9256dgL interfaceC9256dgL) {
C14957gcv.e(c5138bnQ, "");
if (!c5138bnQ.r.b || !C14957gcv.b(c5138bnQ.r.d, Boolean.TRUE)) {
interfaceC9256dgL.l();
return;
}
String str = c5138bnQ.r.a;
if (str == null || str.length() == 0) {
interfaceC9256dgL.i();
} else if (c5138bnQ.j()) {
interfaceC9256dgL.l();
} else {
interfaceC9256dgL.k();
}
}
public static /* synthetic */ void b(boolean z, InterfaceC9256dgL interfaceC9256dgL) {
C14957gcv.c(interfaceC9256dgL, "");
interfaceC9256dgL.e(z);
}
public static /* synthetic */ void e(NG ng, C5138bnQ c5138bnQ, InterfaceC9256dgL interfaceC9256dgL) {
NF nf;
NF.IeS ieS;
C14957gcv.e(c5138bnQ, "");
interfaceC9256dgL.d(false);
if (ng == null || (nf = ng.c) == null || (ieS = nf.l) == null) {
return;
}
String str = ieS.a;
String str2 = ieS.e;
String str3 = ieS.c;
Boolean bool = ieS.b;
String str4 = ng.b.c;
c5138bnQ.r = new NW(bool, str, str2, str3, str4 != null ? t.contains(str4) : false);
C5137bnP c5137bnP = new C5137bnP(true);
if (c5138bnQ.f != 0) {
c5137bnP.e(c5138bnQ.f);
}
interfaceC9256dgL.b(ieS);
if (C14957gcv.b(ieS.b, Boolean.TRUE)) {
interfaceC9256dgL.d(true);
C5142bnU c5142bnU = new C5142bnU(c5138bnQ);
if (c5138bnQ.f != 0) {
c5142bnU.e(c5138bnQ.f);
}
C5145bnX c5145bnX = new C5145bnX(c5138bnQ);
if (c5138bnQ.f != 0) {
c5145bnX.e(c5138bnQ.f);
}
C5201boa c5201boa = new C5201boa(c5138bnQ);
if (c5138bnQ.f != 0) {
c5201boa.e(c5138bnQ.f);
}
C5141bnT c5141bnT = new C5141bnT(c5138bnQ);
if (c5138bnQ.f != 0) {
c5141bnT.e(c5138bnQ.f);
}
}
}
public static /* synthetic */ void a(InterfaceC9256dgL interfaceC9256dgL) {
interfaceC9256dgL.f();
interfaceC9256dgL.n();
}
public static /* synthetic */ void a(C5138bnQ c5138bnQ, InterfaceC9256dgL interfaceC9256dgL) {
C14957gcv.e(c5138bnQ, "");
if (!c5138bnQ.r.b || !C14957gcv.b(c5138bnQ.r.d, Boolean.TRUE)) {
interfaceC9256dgL.m();
return;
}
String str = c5138bnQ.r.e;
if (str == null || str.length() == 0) {
interfaceC9256dgL.o();
} else if (c5138bnQ.g()) {
interfaceC9256dgL.m();
} else {
interfaceC9256dgL.s();
}
}
public static /* synthetic */ void b(String str, int i, InterfaceC9256dgL interfaceC9256dgL) {
C14957gcv.e(str, "");
String substring = str.substring(0, i);
C14957gcv.c((Object) substring, "");
interfaceC9256dgL.c(substring);
}
private final boolean j() {
String str = this.r.a;
return ((str == null || gdZ.d((CharSequence) str)) ^ true) && Pattern.matches("^[\\u0E01-\\u0E39\\u0E40-\\u0E4C ]+$", this.r.a);
}
private final boolean g() {
String str = this.r.e;
return ((str == null || gdZ.d((CharSequence) str)) ^ true) && Pattern.matches("^[\\u0E01-\\u0E39\\u0E40-\\u0E4C ]+$", this.r.e);
}
private final boolean i() {
String str = this.r.c;
return (str != null ? str.length() : 0) == gdZ.a("X-XXXX-XXXXX-XX-X", "-", "").length();
}
@Override // o.C5291bqK
protected final SVt d() {
Boolean bool = this.r.d;
if (!this.r.b) {
bool = null;
}
if (bool == null) {
return null;
}
boolean booleanValue = bool.booleanValue();
return new SVt(booleanValue ? "THAI" : "NON_THAI", booleanValue ? this.r.a : null, booleanValue ? this.r.e : null, booleanValue ? this.r.c : null);
}
@Override // o.AbstractC5071bmC
public final boolean a() {
C5142bnU c5142bnU = new C5142bnU(this);
if (this.f != 0) {
c5142bnU.e(this.f);
}
C5145bnX c5145bnX = new C5145bnX(this);
if (this.f != 0) {
c5145bnX.e(this.f);
}
C5201boa c5201boa = new C5201boa(this);
if (this.f != 0) {
c5201boa.e(this.f);
}
C5141bnT c5141bnT = new C5141bnT(this);
if (this.f != 0) {
c5141bnT.e(this.f);
}
if (super.a()) {
return !this.r.b || C14957gcv.b(this.r.d, Boolean.FALSE) || (C14957gcv.b(this.r.d, Boolean.TRUE) && j() && g() && i());
}
return false;
}
}