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

542 lines
19 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import o.C15715hv;
import o.C7640csD;
import o.InterfaceC9520dlL;
import o.UB;
import o.ZI;
import o.gDd;
/* renamed from: o.csD, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C7640csD extends ZI<InterfaceC9520dlL.RVV> {
final C0153Ai b;
final C0150Ah c;
private final DecimalFormat d;
public final C15903jW e;
public static final /* synthetic */ void a(C7640csD c7640csD, int i, int i2, Runnable runnable) {
c7640csD.d(c7640csD.j.c(i, i2, runnable));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C7640csD(C16903sI c16903sI, C0153Ai c0153Ai, C0150Ah c0150Ah, C15903jW c15903jW) {
super(c16903sI);
C14957gcv.e(c16903sI, "");
C14957gcv.e(c0153Ai, "");
C14957gcv.e(c0150Ah, "");
C14957gcv.e(c15903jW, "");
this.b = c0153Ai;
this.c = c0150Ah;
this.e = c15903jW;
this.d = new DecimalFormat("#0.00");
}
/* renamed from: o.csD$HBt */
/* loaded from: classes4.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
/* renamed from: o.csD$IeS */
/* loaded from: classes4.dex */
public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C7640csD e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
final C7640csD c7640csD = this.e;
C7640csD.c(c7640csD, th2, new Runnable(c7640csD) { // from class: o.csL
private C7640csD a;
@Override // java.lang.Runnable
public final void run() {
C7640csD.IeS.a(this.a);
}
{
this.a = c7640csD;
}
});
return C14866gag.c;
}
public static /* synthetic */ void a(C7640csD c7640csD) {
C14957gcv.e(c7640csD, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.csK
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9520dlL.RVV) obj).e();
}
};
if (c7640csD.f != 0) {
ieS.e(c7640csD.f);
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public IeS(C7640csD c7640csD) {
super(1);
this.e = c7640csD;
}
}
/* renamed from: o.csD$LWm */
/* loaded from: classes4.dex */
public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<gDd, C14866gag> {
private C7640csD b;
private C9765dq d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(gDd gdd) {
gDd gdd2 = gdd;
C14957gcv.e(gdd2, "");
C7640csD.d(this.b);
C0153Ai c0153Ai = this.b.b;
C14957gcv.e(gdd2, "");
String str = gdd2.d;
List<wZk> list = gdd2.b;
C14957gcv.e(list, "");
List<wZk> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
for (wZk wzk : list2) {
String str2 = wzk.e;
String str3 = wzk.b;
String b_ = c0153Ai.b_(wzk.j);
C14957gcv.c((Object) b_, "");
String c = C0153Ai.c(Double.valueOf(wzk.a));
C14957gcv.c((Object) c, "");
String c2 = C0153Ai.c(Double.valueOf(wzk.h));
C14957gcv.c((Object) c2, "");
arrayList.add(new UA(str2, str3, b_, c, c2, wzk.f, wzk.c, 0, 0));
}
ArrayList arrayList2 = arrayList;
List<wZk> list3 = gdd2.a;
C14957gcv.e(list3, "");
List<wZk> list4 = list3;
C14957gcv.e(list4, "");
ArrayList arrayList3 = new ArrayList(list4 instanceof Collection ? list4.size() : 10);
for (wZk wzk2 : list4) {
String str4 = wzk2.e;
String str5 = wzk2.b;
String b_2 = c0153Ai.b_(wzk2.j);
C14957gcv.c((Object) b_2, "");
String c3 = C0153Ai.c(Double.valueOf(wzk2.a));
C14957gcv.c((Object) c3, "");
String c4 = C0153Ai.c(Double.valueOf(wzk2.h));
C14957gcv.c((Object) c4, "");
arrayList3.add(new UA(str4, str5, b_2, c3, c4, wzk2.f, wzk2.c, 0, 0));
c0153Ai = c0153Ai;
str = str;
}
String str6 = str;
ArrayList arrayList4 = arrayList3;
List<gDd.RVV> list5 = gdd2.c;
C14957gcv.e(list5, "");
List<gDd.RVV> list6 = list5;
C14957gcv.e(list6, "");
ArrayList arrayList5 = new ArrayList(list6 instanceof Collection ? list6.size() : 10);
for (gDd.RVV rvv : list6) {
arrayList5.add(new UB.IeS(rvv.b, rvv.e, rvv.a, rvv.d, rvv.c));
}
final UB ub = new UB(str6, arrayList2, arrayList4, arrayList5);
final List<UA> list7 = ub.d;
final List<UA> list8 = ub.b;
final List<UB.IeS> list9 = ub.e;
if (C7640csD.b(list9)) {
final C7640csD c7640csD = this.b;
final C9765dq c9765dq = this.d;
ZI.IeS ieS = new ZI.IeS(ub, list7, list8, list9, c9765dq, c7640csD) { // from class: o.csG
private List a;
private List b;
private List c;
private UB d;
private C9765dq e;
private C7640csD j;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7640csD.LWm.c(this.d, this.a, this.c, this.b, this.e, this.j, (InterfaceC9520dlL.RVV) obj);
}
{
this.d = ub;
this.a = list7;
this.c = list8;
this.b = list9;
this.e = c9765dq;
this.j = c7640csD;
}
};
if (c7640csD.f != 0) {
ieS.e(c7640csD.f);
}
} else {
C7640csD c7640csD2 = this.b;
int i = C15715hv.tOB.error_default_title;
int i2 = C15715hv.tOB.error_generic_resource;
final C7640csD c7640csD3 = this.b;
C7640csD.a(c7640csD2, i, i2, new Runnable(c7640csD3) { // from class: o.csH
private C7640csD b;
@Override // java.lang.Runnable
public final void run() {
C7640csD.LWm.c(this.b);
}
{
this.b = c7640csD3;
}
});
}
return C14866gag.c;
}
public static /* synthetic */ void c(C7640csD c7640csD) {
C14957gcv.e(c7640csD, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.csJ
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9520dlL.RVV) obj).d();
}
};
if (c7640csD.f != 0) {
ieS.e(c7640csD.f);
}
}
public static /* synthetic */ void c(UB ub, List list, List list2, List list3, C9765dq c9765dq, C7640csD c7640csD, InterfaceC9520dlL.RVV rvv) {
C14957gcv.e(ub, "");
C14957gcv.e(list, "");
C14957gcv.e(list2, "");
C14957gcv.e(list3, "");
C14957gcv.e(c9765dq, "");
C14957gcv.e(c7640csD, "");
rvv.c(ub);
rvv.b(list);
rvv.e(list2, list3);
String str = c9765dq.d;
if (C14957gcv.b((Object) str, (Object) "B")) {
rvv.c();
if (C7640csD.e(ub.b.get(0).e)) {
rvv.e(ub.b.get(0).e);
return;
}
return;
}
if (C14957gcv.b((Object) str, (Object) "S")) {
rvv.b();
if (C7640csD.e(ub.d.get(0).e)) {
rvv.e(ub.d.get(0).e);
}
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public LWm(C7640csD c7640csD, C9765dq c9765dq) {
super(1);
this.b = c7640csD;
this.d = c9765dq;
}
}
public static boolean b(String str) {
C14957gcv.e(str, "");
return C14957gcv.b((Object) str, (Object) "B");
}
/* renamed from: o.csD$RVV */
/* loaded from: classes4.dex */
public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<C10146dxJ, C14866gag> {
private C7640csD b;
private C9712dp d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(C10146dxJ c10146dxJ) {
final C10146dxJ c10146dxJ2 = c10146dxJ;
C14957gcv.e(c10146dxJ2, "");
C7640csD.d(this.b);
final C7640csD c7640csD = this.b;
final C9712dp c9712dp = this.d;
ZI.IeS ieS = new ZI.IeS(c7640csD, c10146dxJ2, c9712dp) { // from class: o.csN
private C10146dxJ b;
private C9712dp c;
private C7640csD e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7640csD.RVV.d(this.e, this.b, this.c, (InterfaceC9520dlL.RVV) obj);
}
{
this.e = c7640csD;
this.b = c10146dxJ2;
this.c = c9712dp;
}
};
if (c7640csD.f != 0) {
ieS.e(c7640csD.f);
}
return C14866gag.c;
}
public static /* synthetic */ void d(C7640csD c7640csD, C10146dxJ c10146dxJ, C9712dp c9712dp, InterfaceC9520dlL.RVV rvv) {
C14957gcv.e(c7640csD, "");
C14957gcv.e(c10146dxJ, "");
C14957gcv.e(c9712dp, "");
C0150Ah c0150Ah = c7640csD.c;
rvv.c(C0150Ah.e(c10146dxJ), C7640csD.b(c9712dp.e));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public RVV(C7640csD c7640csD, C9712dp c9712dp) {
super(1);
this.b = c7640csD;
this.d = c9712dp;
}
}
/* renamed from: o.csD$Sts */
/* loaded from: classes4.dex */
public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C7640csD a;
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
/* JADX WARN: Code restructure failed: missing block: B:12:0x002a, code lost:
if (r0.equals("3018") == false) goto L23;
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x0035, code lost:
o.C7640csD.b(r2.a, r3);
*/
/* JADX WARN: Code restructure failed: missing block: B:18:0x0033, code lost:
if (r0.equals("3017") != false) goto L19;
*/
@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 r3) {
/*
r2 = this;
java.lang.Throwable r3 = (java.lang.Throwable) r3
java.lang.String r0 = ""
o.C14957gcv.e(r3, r0)
boolean r0 = r3 instanceof com.scb.phone.domain.errors.RetrofitException
if (r0 == 0) goto L59
r0 = r3
com.scb.phone.domain.errors.RetrofitException r0 = (com.scb.phone.domain.errors.RetrofitException) r0
o.VCl r0 = r0.e
if (r0 == 0) goto L19
o.ggV r0 = r0.c
if (r0 == 0) goto L19
java.lang.String r0 = r0.e
goto L1a
L19:
r0 = 0
L1a:
if (r0 == 0) goto L4e
int r1 = r0.hashCode()
switch(r1) {
case 1567039: goto L3b;
case 1567043: goto L2d;
case 1567044: goto L24;
default: goto L23;
}
L23:
goto L4e
L24:
java.lang.String r1 = "3018"
boolean r0 = r0.equals(r1)
if (r0 != 0) goto L35
goto L4e
L2d:
java.lang.String r1 = "3017"
boolean r0 = r0.equals(r1)
if (r0 == 0) goto L4e
L35:
o.csD r0 = r2.a
o.C7640csD.b(r0, r3)
goto L63
L3b:
java.lang.String r1 = "3013"
boolean r0 = r0.equals(r1)
if (r0 == 0) goto L4e
o.csD r0 = r2.a
o.csP r1 = new o.csP
r1.<init>(r0)
o.C7640csD.c(r0, r3, r1)
goto L63
L4e:
o.csD r0 = r2.a
o.csS r1 = new o.csS
r1.<init>(r0)
o.C7640csD.c(r0, r3, r1)
goto L63
L59:
o.csD r0 = r2.a
o.csR r1 = new o.csR
r1.<init>(r0)
o.C7640csD.c(r0, r3, r1)
L63:
o.gag r3 = o.C14866gag.c
return r3
*/
throw new UnsupportedOperationException("Method not decompiled: o.C7640csD.Sts.invoke(java.lang.Object):java.lang.Object");
}
public static /* synthetic */ void b(C7640csD c7640csD) {
C14957gcv.e(c7640csD, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.csQ
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9520dlL.RVV) obj).e();
}
};
if (c7640csD.f != 0) {
ieS.e(c7640csD.f);
}
}
public static /* synthetic */ void a(C7640csD c7640csD) {
C14957gcv.e(c7640csD, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.csO
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9520dlL.RVV) obj).e();
}
};
if (c7640csD.f != 0) {
ieS.e(c7640csD.f);
}
}
public static /* synthetic */ void e(C7640csD c7640csD) {
C14957gcv.e(c7640csD, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.csM
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9520dlL.RVV) obj).a();
}
};
if (c7640csD.f != 0) {
ieS.e(c7640csD.f);
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public Sts(C7640csD c7640csD) {
super(1);
this.a = c7640csD;
}
}
public final String d(double d, double d2) {
this.d.setRoundingMode(RoundingMode.HALF_UP);
DecimalFormat decimalFormat = this.d;
BigDecimal bigDecimal = new BigDecimal(String.valueOf(d2 * d));
return decimalFormat.format(bigDecimal.stripTrailingZeros().precision() - bigDecimal.stripTrailingZeros().scale() > 10 ? 0.0d : bigDecimal.doubleValue()).toString();
}
public final String b(double d, double d2) {
double d3 = d2 / d;
this.d.setRoundingMode(RoundingMode.HALF_UP);
DecimalFormat decimalFormat = this.d;
BigDecimal bigDecimal = new BigDecimal(String.valueOf(d3));
return decimalFormat.format(bigDecimal.stripTrailingZeros().precision() - bigDecimal.stripTrailingZeros().scale() > 10 ? 0.0d : bigDecimal.doubleValue()).toString();
}
public final void e(String str, String str2) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
if (c(str) && c(str2)) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.csF
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9520dlL.RVV) obj).a(true);
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
}
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.csE
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9520dlL.RVV) obj).a(false);
}
};
if (this.f != 0) {
ieS2.e(this.f);
}
}
public static boolean c(String str) {
return str.length() > 0 && Double.parseDouble(gdZ.a(str, ",", "")) != 0.0d;
}
@Override // o.ZI
public final void w_() {
this.e.a();
super.w_();
}
public static /* synthetic */ void b(C7640csD c7640csD, String str, InterfaceC9520dlL.RVV rvv) {
C14957gcv.e(c7640csD, "");
C14957gcv.e(str, "");
C14957gcv.e(str, "");
rvv.a(C14957gcv.b((Object) str, (Object) "B") ? C15715hv.tOB.prepaid_travel_conversion_landing_buy_title : C15715hv.tOB.prepaid_travel_conversion_landing_sell_title);
}
public static final /* synthetic */ void d(C7640csD c7640csD) {
if (c7640csD.f != 0) {
c7640csD.f.ar_();
}
}
public static final /* synthetic */ boolean e(String str) {
return C14957gcv.b((Object) str, (Object) "JPY") || C14957gcv.b((Object) str, (Object) "KRW");
}
public static final /* synthetic */ void b(C7640csD c7640csD, Throwable th) {
if (c7640csD.b(th)) {
c7640csD.d(c7640csD.j.e(th));
}
}
public static final /* synthetic */ void c(C7640csD c7640csD, Throwable th, Runnable runnable) {
if (c7640csD.b(th)) {
c7640csD.d(c7640csD.j.c(th, runnable));
}
}
public static final /* synthetic */ boolean b(List list) {
List list2 = list;
return (list2 == null || list2.isEmpty() || ((UB.IeS) list.get(0)).c == 0.0d) ? false : true;
}
static {
new HBt((byte) 0);
}
}