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

345 lines
12 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.ArrayList;
import java.util.Arrays;
import o.C0690Mh;
import o.C15715hv;
import o.C7548cqR;
import o.EW;
import o.InterfaceC9558dlx;
import o.QN;
import o.ZI;
/* renamed from: o.cqR, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C7548cqR extends ZI<InterfaceC9558dlx.IeS> {
public final C15867jK a;
public final C17749zU b;
private final C17750zV c;
public ES e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C7548cqR(C16903sI c16903sI, C15867jK c15867jK, C17749zU c17749zU, C17750zV c17750zV) {
super(c16903sI);
C14957gcv.e(c16903sI, "");
C14957gcv.e(c15867jK, "");
C14957gcv.e(c17749zU, "");
C14957gcv.e(c17750zV, "");
this.a = c15867jK;
this.b = c17749zU;
this.c = c17750zV;
}
/* renamed from: o.cqR$HBt */
/* loaded from: classes4.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
/* renamed from: o.cqR$IeS */
/* loaded from: classes4.dex */
public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C7548cqR e;
/* 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("9001") == false) goto L29;
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x0057, code lost:
r0 = r2.e;
o.C7548cqR.d(r0, r3, new o.RunnableC7553cqW(r0));
*/
/* JADX WARN: Code restructure failed: missing block: B:18:0x0033, code lost:
if (r0.equals("3018") == false) goto L29;
*/
/* JADX WARN: Code restructure failed: missing block: B:19:0x003e, code lost:
o.C7548cqR.a(r2.e, r3, o.C0690Mh.IeS.NAVIGATE_BACK);
*/
/* JADX WARN: Code restructure failed: missing block: B:21:0x003c, code lost:
if (r0.equals("3017") != false) goto L22;
*/
/* JADX WARN: Code restructure failed: missing block: B:23:0x004c, code lost:
if (r0.equals("3014") == false) goto L29;
*/
/* JADX WARN: Code restructure failed: missing block: B:25:0x0055, code lost:
if (r0.equals("3013") != false) goto L28;
*/
@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 L6d
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 L62
int r1 = r0.hashCode()
switch(r1) {
case 1567039: goto L4f;
case 1567040: goto L46;
case 1567043: goto L36;
case 1567044: goto L2d;
case 1745752: goto L24;
default: goto L23;
}
L23:
goto L62
L24:
java.lang.String r1 = "9001"
boolean r0 = r0.equals(r1)
if (r0 != 0) goto L57
goto L62
L2d:
java.lang.String r1 = "3018"
boolean r0 = r0.equals(r1)
if (r0 != 0) goto L3e
goto L62
L36:
java.lang.String r1 = "3017"
boolean r0 = r0.equals(r1)
if (r0 == 0) goto L62
L3e:
o.cqR r0 = r2.e
o.Mh$IeS r1 = o.C0690Mh.IeS.NAVIGATE_BACK
o.C7548cqR.a(r0, r3, r1)
goto L77
L46:
java.lang.String r1 = "3014"
boolean r0 = r0.equals(r1)
if (r0 != 0) goto L57
goto L62
L4f:
java.lang.String r1 = "3013"
boolean r0 = r0.equals(r1)
if (r0 == 0) goto L62
L57:
o.cqR r0 = r2.e
o.cqW r1 = new o.cqW
r1.<init>(r0)
o.C7548cqR.d(r0, r3, r1)
goto L77
L62:
o.cqR r0 = r2.e
o.cqV r1 = new o.cqV
r1.<init>(r0)
o.C7548cqR.d(r0, r3, r1)
goto L77
L6d:
o.cqR r0 = r2.e
o.crb r1 = new o.crb
r1.<init>(r0)
o.C7548cqR.d(r0, r3, r1)
L77:
o.gag r3 = o.C14866gag.c
return r3
*/
throw new UnsupportedOperationException("Method not decompiled: o.C7548cqR.IeS.invoke(java.lang.Object):java.lang.Object");
}
public static /* synthetic */ void a(C7548cqR c7548cqR) {
C14957gcv.e(c7548cqR, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.cqZ
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9558dlx.IeS) obj).e();
}
};
if (c7548cqR.f != 0) {
ieS.e(c7548cqR.f);
}
}
public static /* synthetic */ void c(C7548cqR c7548cqR) {
C14957gcv.e(c7548cqR, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.cqX
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9558dlx.IeS) obj).e();
}
};
if (c7548cqR.f != 0) {
ieS.e(c7548cqR.f);
}
}
public static /* synthetic */ void b(C7548cqR c7548cqR) {
C14957gcv.e(c7548cqR, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.cra
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9558dlx.IeS) obj).c();
}
};
if (c7548cqR.f != 0) {
ieS.e(c7548cqR.f);
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public IeS(C7548cqR c7548cqR) {
super(1);
this.e = c7548cqR;
}
}
/* renamed from: o.cqR$RVV */
/* loaded from: classes4.dex */
public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<C16738qof, C14866gag> {
private boolean c;
private C7548cqR d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(C16738qof c16738qof) {
final C16738qof c16738qof2 = c16738qof;
C14957gcv.e(c16738qof2, "");
C7548cqR.b(this.d);
final C7548cqR c7548cqR = this.d;
final boolean z = this.c;
ZI.IeS ieS = new ZI.IeS(c7548cqR, c16738qof2, z) { // from class: o.cqT
private C7548cqR a;
private boolean b;
private C16738qof d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7548cqR.RVV.a(this.a, this.d, this.b, (InterfaceC9558dlx.IeS) obj);
}
{
this.a = c7548cqR;
this.d = c16738qof2;
this.b = z;
}
};
if (c7548cqR.f != 0) {
ieS.e(c7548cqR.f);
}
return C14866gag.c;
}
public static /* synthetic */ void a(C7548cqR c7548cqR, C16738qof c16738qof, boolean z, InterfaceC9558dlx.IeS ieS) {
String e;
C14957gcv.e(c7548cqR, "");
C14957gcv.e(c16738qof, "");
C17750zV c17750zV = c7548cqR.c;
ES es = c7548cqR.e;
if (es == null) {
C14957gcv.a("");
es = null;
}
C14957gcv.e(c16738qof, "");
C14957gcv.e(es, "");
if (z) {
e = c17750zV.e(C15715hv.tOB.prepaid_conversion_success_buy_title);
} else {
e = c17750zV.e(C15715hv.tOB.prepaid_conversion_success_sell_title);
}
ArrayList arrayList = new ArrayList();
QN.HBt a = QN.a();
a.f = e;
a.d = C15715hv.IeS.ic_check_circle_black_48dp;
String str = (String) C16157lj.c(new Object[]{c17750zV, c16738qof.e}, 838289628, -838289623, System.identityHashCode(c17750zV));
if (str == null) {
str = "-";
}
a.a = str;
a.c = c17750zV.c(C15715hv.tOB.reference_id, c16738qof.b);
arrayList.add(new QN(a, (byte) 0));
arrayList.add(new QQ());
arrayList.addAll(es.a);
gcH gch = gcH.d;
String string = c17750zV.e.getString(C15715hv.tOB.prepaid_conversion_remaining_text);
C14957gcv.c((Object) string, "");
String str2 = c16738qof.d;
String c = C17750zV.c(Double.valueOf(c16738qof.c));
String str3 = c16738qof.d;
StringBuilder sb = new StringBuilder();
sb.append(c);
sb.append(" ");
sb.append(str3);
String format = String.format(string, Arrays.copyOf(new Object[]{str2, sb.toString()}, 2));
C14957gcv.c((Object) format, "");
if (z) {
gcH gch2 = gcH.d;
String string2 = c17750zV.e.getString(C15715hv.tOB.prepaid_conversion_remaining_buy_message);
C14957gcv.c((Object) string2, "");
format = String.format(string2, Arrays.copyOf(new Object[]{C17750zV.c(Double.valueOf(c16738qof.c))}, 1));
C14957gcv.c((Object) format, "");
}
EW.LWm b = EW.b(arrayList, "PrepaidTravel_conversion_".concat(String.valueOf(c16738qof.b)));
b.f = format;
EW c2 = b.c();
C14957gcv.c(c2, "");
ieS.d(c2);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public RVV(C7548cqR c7548cqR, boolean z) {
super(1);
this.d = c7548cqR;
this.c = z;
}
}
public static /* synthetic */ void d(C7548cqR c7548cqR, InterfaceC9558dlx.IeS ieS) {
C14957gcv.e(c7548cqR, "");
ES es = c7548cqR.e;
if (es == null) {
C14957gcv.a("");
es = null;
}
ieS.a(es);
}
public static final /* synthetic */ void b(C7548cqR c7548cqR) {
if (c7548cqR.f != 0) {
c7548cqR.f.ar_();
}
}
public static final /* synthetic */ void a(C7548cqR c7548cqR, Throwable th, C0690Mh.IeS ieS) {
if (c7548cqR.b(th)) {
c7548cqR.d(c7548cqR.j.d(th, ieS));
}
}
public static final /* synthetic */ void d(C7548cqR c7548cqR, Throwable th, Runnable runnable) {
if (c7548cqR.b(th)) {
c7548cqR.d(c7548cqR.j.c(th, runnable));
}
}
static {
new HBt((byte) 0);
}
}