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

654 lines
22 KiB
Java

package o;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import o.C14930gcM;
import o.C3331avY;
import o.InterfaceC9115ddd;
import o.ZI;
/* renamed from: o.avY, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C3331avY extends ZI<InterfaceC9115ddd.IeS> {
public final C15651hV a;
public boolean b;
public C0367Fb c;
public String d;
public final C16478oh e;
public HR g;
public Integer h;
public YY i;
private final InterfaceC3521azC k;
public static final /* synthetic */ C1096Vn b(C3331avY c3331avY, C0367Fb c0367Fb, String str, C8463dLv c8463dLv) {
HO ho;
HR hr;
String str2;
String str3;
String str4;
HR hr2;
String str5;
String str6;
HO ho2;
String str7;
HN hn;
int i;
List<String> list;
List<String> list2;
HP hp;
ArrayList arrayList;
HM hm;
Object obj;
if (c3331avY.b) {
Iterator<T> it = c3331avY.c().iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
int i2 = ((HO) obj).j;
Integer num = c3331avY.h;
if (num != null && i2 == num.intValue()) {
break;
}
}
ho = (HO) obj;
} else {
ho = null;
}
HR hr3 = c3331avY.g;
String str8 = "";
if (hr3 == null) {
C14957gcv.a("");
hr = null;
} else {
hr = hr3;
}
String str9 = str.length() == 0 ? null : str;
C16478oh c16478oh = c3331avY.e;
C14957gcv.e(c8463dLv, "");
String str10 = c8463dLv.n;
String str11 = c8463dLv.j;
String str12 = c8463dLv.b;
String str13 = c8463dLv.g;
String str14 = c8463dLv.a;
String str15 = c8463dLv.f8761o;
String str16 = c8463dLv.e;
String str17 = c8463dLv.d;
String str18 = c8463dLv.h;
C15758iOf c15758iOf = c8463dLv.f;
if (c15758iOf != null) {
str7 = str18;
String str19 = c15758iOf.d;
ho2 = ho;
xLZ xlz = c15758iOf.e;
if (xlz != null) {
str6 = str9;
hr2 = hr;
str5 = str17;
str4 = str16;
hp = new HP(xlz.a, xlz.c, xlz.b, xlz.e, xlz.h, xlz.d);
} else {
str4 = str16;
hr2 = hr;
str5 = str17;
str6 = str9;
hp = null;
}
List<C16360nhu> list3 = c15758iOf.c;
if (list3 != null) {
List<C16360nhu> list4 = list3;
C14957gcv.e(list4, "");
ArrayList arrayList2 = new ArrayList(list4 instanceof Collection ? list4.size() : 10);
Iterator it2 = list4.iterator();
while (it2.hasNext()) {
C16360nhu c16360nhu = (C16360nhu) it2.next();
arrayList2.add(new HU(c16360nhu.d, c16360nhu.c, c16360nhu.a, c16360nhu.b, c16360nhu.e));
it2 = it2;
str15 = str15;
str8 = str8;
}
str2 = str15;
str3 = str8;
arrayList = arrayList2;
} else {
str2 = str15;
str3 = "";
arrayList = null;
}
FFT fft = c15758iOf.b;
if (fft != null) {
wKJ wkj = fft.e;
hm = new HM(wkj != null ? new HS(wkj.b, wkj.a, wkj.d) : null);
} else {
hm = null;
}
hn = new HN(str19, hp, arrayList, hm);
} else {
str2 = str15;
str3 = "";
str4 = str16;
hr2 = hr;
str5 = str17;
str6 = str9;
ho2 = ho;
str7 = str18;
hn = null;
}
C1092Vk c1092Vk = new C1092Vk(str10, str11, str12, str13, str14, str2, str4, str5, str7, hn, c8463dLv.c);
C0367Fb c0367Fb2 = c3331avY.c;
if (c0367Fb2 == null || (list2 = c0367Fb2.c) == null || !list2.contains("SHOW_CREDITCARD_TENOR")) {
C0367Fb c0367Fb3 = c3331avY.c;
if (c0367Fb3 == null || (list = c0367Fb3.c) == null || !list.contains("SHOW_SPEEDYCASH_TENOR")) {
cXT cxt = cXT.e;
C0367Fb c0367Fb4 = c3331avY.c;
String str20 = c0367Fb4 != null ? c0367Fb4.V : null;
if (!cXT.e(str20 == null ? str3 : str20)) {
i = -1;
}
}
i = 102;
} else {
i = 101;
}
return new C1096Vn(hr2, c0367Fb, str6, ho2, c1092Vk, i);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C3331avY(C16903sI c16903sI, C16478oh c16478oh, C15651hV c15651hV, InterfaceC3521azC interfaceC3521azC) {
super(c16903sI);
C14957gcv.e(c16903sI, "");
C14957gcv.e(c16478oh, "");
C14957gcv.e(c15651hV, "");
C14957gcv.e(interfaceC3521azC, "");
this.e = c16478oh;
this.a = c15651hV;
this.k = interfaceC3521azC;
this.i = YY.NORMAL;
}
/* renamed from: o.avY$IeS */
/* loaded from: classes4.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
/* renamed from: o.avY$HBt */
/* loaded from: classes4.dex */
public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<C8463dLv, C14866gag> {
private C3331avY c;
private String e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(C8463dLv c8463dLv) {
final C8463dLv c8463dLv2 = c8463dLv;
C14957gcv.e(c8463dLv2, "");
C3331avY.b(this.c);
final C0367Fb c0367Fb = this.c.c;
if (c0367Fb != null) {
final C3331avY c3331avY = this.c;
final String str = this.e;
ZI.IeS ieS = new ZI.IeS(c3331avY, c0367Fb, str, c8463dLv2) { // from class: o.awm
private C3331avY b;
private String c;
private C0367Fb d;
private C8463dLv e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C3331avY.HBt.e(this.b, this.d, this.c, this.e, (InterfaceC9115ddd.IeS) obj);
}
{
this.b = c3331avY;
this.d = c0367Fb;
this.c = str;
this.e = c8463dLv2;
}
};
if (c3331avY.f != 0) {
ieS.e(c3331avY.f);
}
}
return C14866gag.c;
}
public static /* synthetic */ void e(C3331avY c3331avY, C0367Fb c0367Fb, String str, C8463dLv c8463dLv, InterfaceC9115ddd.IeS ieS) {
C14957gcv.e(c3331avY, "");
C14957gcv.e(c0367Fb, "");
C14957gcv.e(str, "");
C14957gcv.e(c8463dLv, "");
ieS.d(C3331avY.b(c3331avY, c0367Fb, str, c8463dLv), c3331avY.i);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public HBt(C3331avY c3331avY, String str) {
super(1);
this.c = c3331avY;
this.e = str;
}
}
/* renamed from: o.avY$Sts */
/* loaded from: classes4.dex */
public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C3331avY d;
/* JADX WARN: Code restructure failed: missing block: B:24:0x004b, code lost:
if (r1.equals("3006") == false) goto L28;
*/
/* JADX WARN: Code restructure failed: missing block: B:25:0x0056, code lost:
o.C3331avY.c(r3.d, r4);
*/
/* JADX WARN: Code restructure failed: missing block: B:27:0x0054, code lost:
if (r1.equals("1899") != false) goto L27;
*/
@Override // o.InterfaceC14894gbR
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final /* synthetic */ o.C14866gag invoke(java.lang.Throwable r4) {
/*
r3 = this;
java.lang.Throwable r4 = (java.lang.Throwable) r4
java.lang.String r0 = ""
o.C14957gcv.e(r4, r0)
boolean r0 = r4 instanceof com.scb.phone.domain.errors.RetrofitException
r1 = 0
if (r0 == 0) goto L10
r0 = r4
com.scb.phone.domain.errors.RetrofitException r0 = (com.scb.phone.domain.errors.RetrofitException) r0
goto L11
L10:
r0 = r1
L11:
if (r0 == 0) goto L1d
o.VCl r0 = r0.e
if (r0 == 0) goto L1d
o.ggV r0 = r0.c
if (r0 == 0) goto L1d
java.lang.String r1 = r0.e
L1d:
if (r1 == 0) goto L5c
int r0 = r1.hashCode()
r2 = 1515399(0x171f87, float:2.123526E-39)
if (r0 == r2) goto L4e
r2 = 1567011(0x17e923, float:2.19585E-39)
if (r0 == r2) goto L45
r2 = 1567067(0x17e95b, float:2.195929E-39)
if (r0 != r2) goto L5c
java.lang.String r0 = "3020"
boolean r0 = r1.equals(r0)
if (r0 == 0) goto L5c
o.avY r0 = r3.d
o.awl r1 = new o.awl
r1.<init>(r0)
o.C3331avY.d(r0, r4, r1)
goto L66
L45:
java.lang.String r0 = "3006"
boolean r0 = r1.equals(r0)
if (r0 != 0) goto L56
goto L5c
L4e:
java.lang.String r0 = "1899"
boolean r0 = r1.equals(r0)
if (r0 == 0) goto L5c
L56:
o.avY r0 = r3.d
o.C3331avY.c(r0, r4)
goto L66
L5c:
o.avY r0 = r3.d
o.awn r1 = new o.awn
r1.<init>(r0)
o.C3331avY.d(r0, r4, r1)
L66:
o.gag r4 = o.C14866gag.c
return r4
*/
throw new UnsupportedOperationException("Method not decompiled: o.C3331avY.Sts.invoke(java.lang.Object):java.lang.Object");
}
public static /* synthetic */ void c(C3331avY c3331avY, InterfaceC9115ddd.IeS ieS) {
C14957gcv.e(c3331avY, "");
String str = c3331avY.k.a().w;
C14957gcv.c((Object) str, "");
ieS.b(str);
}
public static /* synthetic */ void b(C3331avY c3331avY) {
C14957gcv.e(c3331avY, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.awo
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9115ddd.IeS) obj).e();
}
};
if (c3331avY.f != 0) {
ieS.e(c3331avY.f);
}
}
public static /* synthetic */ void d(final C3331avY c3331avY) {
C14957gcv.e(c3331avY, "");
ZI.IeS ieS = new ZI.IeS(c3331avY) { // from class: o.awp
private C3331avY a;
@Override // o.ZI.IeS
public final void e(Object obj) {
C3331avY.Sts.c(this.a, (InterfaceC9115ddd.IeS) obj);
}
{
this.a = c3331avY;
}
};
if (c3331avY.f != 0) {
ieS.e(c3331avY.f);
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public Sts(C3331avY c3331avY) {
super(1);
this.d = c3331avY;
}
}
public static String b(String str) {
if (str.length() == 0) {
return null;
}
return str;
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:20:0x0040 */
/* JADX WARN: Removed duplicated region for block: B:23:0x0048 */
/* JADX WARN: Removed duplicated region for block: B:26:0x0057 */
/* JADX WARN: Removed duplicated region for block: B:29:0x005f */
/* JADX WARN: Removed duplicated region for block: B:32:0x006e */
/* JADX WARN: Removed duplicated region for block: B:35:0x0076 */
/* JADX WARN: Removed duplicated region for block: B:41:0x00c1 */
/* JADX WARN: Removed duplicated region for block: B:44:0x0086 */
/* JADX WARN: Removed duplicated region for block: B:47:0x008e */
/* JADX WARN: Removed duplicated region for block: B:50:0x0098 */
/* JADX WARN: Removed duplicated region for block: B:53:0x00a0 */
/* JADX WARN: Removed duplicated region for block: B:56:0x00aa */
/* JADX WARN: Removed duplicated region for block: B:59:0x00b2 */
/* JADX WARN: Removed duplicated region for block: B:61:0x00b5 */
/* JADX WARN: Removed duplicated region for block: B:62:0x00a3 */
/* JADX WARN: Removed duplicated region for block: B:63:0x0091 */
/* JADX WARN: Removed duplicated region for block: B:64:0x0079 */
/* JADX WARN: Removed duplicated region for block: B:65:0x0062 */
/* JADX WARN: Removed duplicated region for block: B:66:0x004b */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void b(boolean r9) {
/*
Method dump skipped, instructions count: 523
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.C3331avY.b(boolean):void");
}
public static /* synthetic */ void d(C3331avY c3331avY, InterfaceC9115ddd.IeS ieS) {
C14957gcv.e(c3331avY, "");
ieS.d(c3331avY.c != null);
}
public static /* synthetic */ void d(InterfaceC9115ddd.IeS ieS) {
ieS.a(false);
ieS.c(false);
ieS.b(false);
}
public static /* synthetic */ void b(C3331avY c3331avY, boolean z, int i, InterfaceC9115ddd.IeS ieS) {
C14957gcv.e(c3331avY, "");
ieS.d(c3331avY.b, z, i);
}
public static /* synthetic */ void a(C3331avY c3331avY, InterfaceC9115ddd.IeS ieS) {
C14957gcv.e(c3331avY, "");
ieS.d(c3331avY.c(), c3331avY.h);
}
/* JADX WARN: Multi-variable type inference failed */
public static /* synthetic */ void c(C3331avY c3331avY, C14930gcM.RVV rvv, C14930gcM.RVV rvv2, C14930gcM.RVV rvv3, InterfaceC9115ddd.IeS ieS) {
HP hp;
HP hp2;
C14957gcv.e(c3331avY, "");
C14957gcv.e(rvv, "");
C14957gcv.e(rvv2, "");
C14957gcv.e(rvv3, "");
HR hr = c3331avY.g;
String str = null;
if (hr == null) {
C14957gcv.a("");
hr = null;
}
HN hn = hr.f;
String str2 = (hn == null || (hp2 = hn.d) == null) ? null : hp2.d;
String str3 = (String) rvv.d;
C16478oh c16478oh = c3331avY.e;
String g = C16478oh.g((Double) rvv2.d);
String str4 = (String) rvv3.d;
C16478oh c16478oh2 = c3331avY.e;
HR hr2 = c3331avY.g;
if (hr2 == null) {
C14957gcv.a("");
hr2 = null;
}
HN hn2 = hr2.f;
if (hn2 != null && (hp = hn2.d) != null) {
str = hp.i;
}
ieS.a(str2, str3, g, str4, c16478oh2.b_(str));
}
public static final /* synthetic */ void b(C3331avY c3331avY) {
if (c3331avY.f != 0) {
c3331avY.f.ar_();
}
}
public final List<HO> c() {
List<String> list;
List<HO> list2;
List<String> list3;
List<HO> list4;
C0367Fb c0367Fb = this.c;
HR hr = null;
if (c0367Fb == null || (list3 = c0367Fb.c) == null || !list3.contains("SHOW_CREDITCARD_TENOR")) {
C0367Fb c0367Fb2 = this.c;
if (c0367Fb2 != null && (list = c0367Fb2.c) != null && list.contains("SHOW_SPEEDYCASH_TENOR")) {
HR hr2 = this.g;
if (hr2 == null) {
C14957gcv.a("");
} else {
hr = hr2;
}
HG hg = hr.c;
return (hg == null || (list2 = hg.i) == null) ? C14851gaI.c : list2;
}
return C14851gaI.c;
}
HR hr3 = this.g;
if (hr3 == null) {
C14957gcv.a("");
} else {
hr = hr3;
}
HG hg2 = hr.c;
return (hg2 == null || (list4 = hg2.e) == null) ? C14851gaI.c : list4;
}
public static final /* synthetic */ void c(C3331avY c3331avY, Throwable th) {
if (c3331avY.b(th)) {
c3331avY.d(c3331avY.j.e(th));
}
}
public static final /* synthetic */ void d(C3331avY c3331avY, Throwable th, Runnable runnable) {
if (c3331avY.b(th)) {
c3331avY.d(c3331avY.j.c(th, runnable));
}
}
/* JADX WARN: Code restructure failed: missing block: B:19:0x004e, code lost:
if (r6 != null) goto L38;
*/
/* JADX WARN: Code restructure failed: missing block: B:20:0x0072, code lost:
r5 = r6;
*/
/* JADX WARN: Code restructure failed: missing block: B:56:0x006f, code lost:
if (r6 != null) goto L38;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void a(o.HR r5, o.C0367Fb r6, java.lang.String r7, o.YY r8) {
/*
r4 = this;
java.lang.String r0 = ""
o.C14957gcv.e(r5, r0)
o.C14957gcv.e(r8, r0)
r4.g = r5
r4.c = r6
r4.d = r7
java.util.List r5 = r4.c()
o.C14957gcv.e(r5, r0)
boolean r6 = r5.isEmpty()
r7 = 0
r1 = 0
if (r6 == 0) goto L1f
r5 = r1
goto L23
L1f:
java.lang.Object r5 = r5.get(r7)
L23:
o.HO r5 = (o.HO) r5
if (r5 == 0) goto L2e
int r5 = r5.j
java.lang.Integer r5 = java.lang.Integer.valueOf(r5)
goto L2f
L2e:
r5 = r1
L2f:
o.Fb r6 = r4.c
r2 = 1
if (r6 == 0) goto L51
java.util.List<java.lang.String> r6 = r6.c
if (r6 == 0) goto L51
java.lang.String r3 = "SHOW_CREDITCARD_TENOR"
boolean r6 = r6.contains(r3)
if (r6 != r2) goto L51
o.HR r6 = r4.g
if (r6 != 0) goto L48
o.C14957gcv.a(r0)
r6 = r1
L48:
o.HG r6 = r6.c
if (r6 == 0) goto L75
java.lang.Integer r6 = r6.d
if (r6 != 0) goto L72
goto L75
L51:
o.Fb r6 = r4.c
if (r6 == 0) goto L74
java.util.List<java.lang.String> r6 = r6.c
if (r6 == 0) goto L74
java.lang.String r3 = "SHOW_SPEEDYCASH_TENOR"
boolean r6 = r6.contains(r3)
if (r6 != r2) goto L74
o.HR r6 = r4.g
if (r6 != 0) goto L69
o.C14957gcv.a(r0)
r6 = r1
L69:
o.HG r6 = r6.c
if (r6 == 0) goto L75
java.lang.Integer r6 = r6.j
if (r6 != 0) goto L72
goto L75
L72:
r5 = r6
goto L75
L74:
r5 = r1
L75:
r4.h = r5
o.Fb r5 = r4.c
if (r5 == 0) goto L86
java.util.List<java.lang.String> r5 = r5.c
if (r5 == 0) goto L86
java.lang.String r6 = "PURCHASE_INSTALLMENT_SOURCE"
boolean r5 = r5.contains(r6)
goto L87
L86:
r5 = r7
L87:
o.Fb r6 = r4.c
if (r6 == 0) goto L96
java.util.List<java.lang.String> r6 = r6.c
if (r6 == 0) goto L96
java.lang.String r3 = "PURCHASE_FULL_AMOUNT_SOURCE"
boolean r6 = r6.contains(r3)
goto L97
L96:
r6 = r7
L97:
if (r5 != 0) goto L9a
goto Lb3
L9a:
if (r6 == 0) goto Lb2
o.HR r5 = r4.g
if (r5 != 0) goto La4
o.C14957gcv.a(r0)
goto La5
La4:
r1 = r5
La5:
java.util.List<java.lang.String> r5 = r1.g
o.YL r6 = o.YL.CREDIT_CARD_FULL_AMOUNT
java.lang.String r6 = r6.code
boolean r5 = r5.contains(r6)
r5 = r5 ^ r2
r7 = r5
goto Lb3
Lb2:
r7 = r2
Lb3:
r4.b = r7
r4.i = r8
r4.b(r2)
return
*/
throw new UnsupportedOperationException("Method not decompiled: o.C3331avY.a(o.HR, o.Fb, java.lang.String, o.YY):void");
}
static {
new IeS((byte) 0);
}
}