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

297 lines
11 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.scb.phone.domain.entity.mwpartner.EntityMappingException;
import com.scb.phone.domain.errors.RetrofitException;
import o.C0690Mh;
import o.InterfaceC9620dnF;
import o.MC;
import o.YXP;
import o.ZI;
/* renamed from: o.cjY, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C7186cjY extends ZI<InterfaceC9620dnF.IeS> {
private final String a;
private final C17632yX b;
private final fSC c;
private final YXP e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C7186cjY(YXP yxp, C17632yX c17632yX, C16903sI c16903sI, String str) {
super(c16903sI);
C14957gcv.e(yxp, "");
C14957gcv.e(c17632yX, "");
C14957gcv.e(c16903sI, "");
C14957gcv.e(str, "");
this.e = yxp;
this.b = c17632yX;
this.a = str;
this.c = new fSC();
}
/* renamed from: o.cjY$Sts */
/* loaded from: classes4.dex */
public static final class Sts {
private Sts() {
}
public /* synthetic */ Sts(byte b) {
this();
}
}
/* renamed from: o.cjY$IeS */
/* loaded from: classes4.dex */
public static final class IeS implements InterfaceC13176fSx<C16819rWs> {
private C7186cjY a;
private TN b;
IeS(C7186cjY c7186cjY, TN tn) {
this.a = c7186cjY;
this.b = tn;
}
@Override // o.InterfaceC13176fSx
public final /* synthetic */ void e(C16819rWs c16819rWs) {
final C16819rWs c16819rWs2 = c16819rWs;
C14957gcv.e(c16819rWs2, "");
C7186cjY.c(this.a);
this.a.e.c.a();
final C7186cjY c7186cjY = this.a;
final TN tn = this.b;
ZI.IeS ieS = new ZI.IeS(c16819rWs2, tn, c7186cjY) { // from class: o.ckc
private C16819rWs b;
private TN c;
private C7186cjY d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C17632yX c17632yX;
C16819rWs c16819rWs3 = this.b;
TN tn2 = this.c;
C7186cjY c7186cjY2 = this.d;
InterfaceC9620dnF.IeS ieS2 = (InterfaceC9620dnF.IeS) obj;
C14957gcv.e(c16819rWs3, "");
C14957gcv.e(tn2, "");
C14957gcv.e(c7186cjY2, "");
iJI iji = c16819rWs3.h;
String str = iji != null ? iji.a : null;
if (!C14957gcv.b((Object) str, (Object) "8101") && !C14957gcv.b((Object) str, (Object) "8102")) {
c17632yX = c7186cjY2.b;
ieS2.d(c17632yX.b(tn2, c16819rWs3, true));
return;
}
String str2 = c16819rWs3.e;
String str3 = c16819rWs3.d;
String str4 = c16819rWs3.c;
iJI iji2 = c16819rWs3.h;
String str5 = iji2 != null ? iji2.d : null;
String str6 = c16819rWs3.b;
String str7 = c16819rWs3.a;
if (str7 == null) {
str7 = "";
}
iJI iji3 = c16819rWs3.h;
ieS2.a(new MC.tOB(str2, str3, str4, str5, str6, str7, iji3 != null ? iji3.b : null, tn2.j, tn2.n, c16819rWs3.g));
}
{
this.b = c16819rWs2;
this.c = tn;
this.d = c7186cjY;
}
};
if (c7186cjY.f != 0) {
ieS.e(c7186cjY.f);
}
}
@Override // o.InterfaceC13176fSx
public final void onError(final Throwable th) {
C14957gcv.e(th, "");
C7186cjY.c(this.a);
final ggV h = C7186cjY.h(th);
if (h == null || (th instanceof EntityMappingException)) {
C7186cjY.d(this.a, th, C0690Mh.IeS.JUST_DISMISS);
}
final C7186cjY c7186cjY = this.a;
ZI.IeS ieS = new ZI.IeS(h, c7186cjY, th) { // from class: o.cjW
private Throwable a;
private C7186cjY c;
private ggV d;
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
/* JADX WARN: Code restructure failed: missing block: B:13:0x003c, code lost:
if (r4.equals("7001") == false) goto L28;
*/
/* JADX WARN: Code restructure failed: missing block: B:14:0x0061, code lost:
r1.e.c.a();
o.C7186cjY.b(r1, r2, new o.RunnableC7242ckb(r7));
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x0072, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:17:0x0045, code lost:
if (r4.equals("3018") == false) goto L28;
*/
/* JADX WARN: Code restructure failed: missing block: B:23:0x005f, code lost:
if (r4.equals("3003") != false) goto L26;
*/
/* JADX WARN: Failed to find 'out' block for switch in B:6:0x001c. Please report as an issue. */
@Override // o.ZI.IeS
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void e(java.lang.Object r7) {
/*
r6 = this;
o.ggV r0 = r6.d
o.cjY r1 = r6.c
java.lang.Throwable r2 = r6.a
o.dnF$IeS r7 = (o.InterfaceC9620dnF.IeS) r7
java.lang.String r3 = ""
o.C14957gcv.e(r1, r3)
o.C14957gcv.e(r2, r3)
if (r0 == 0) goto L15
java.lang.String r4 = r0.e
goto L16
L15:
r4 = 0
L16:
if (r4 == 0) goto L73
int r5 = r4.hashCode()
switch(r5) {
case 1567008: goto L59;
case 1567037: goto L48;
case 1567044: goto L3f;
case 1686170: goto L36;
case 1716924: goto L20;
default: goto L1f;
}
L1f:
goto L73
L20:
java.lang.String r5 = "8103"
boolean r4 = r4.equals(r5)
if (r4 == 0) goto L73
java.lang.String r1 = r0.d
o.C14957gcv.c(r1, r3)
java.lang.String r0 = r0.c
o.C14957gcv.c(r0, r3)
r7.c(r1, r0)
return
L36:
java.lang.String r0 = "7001"
boolean r0 = r4.equals(r0)
if (r0 != 0) goto L61
goto L73
L3f:
java.lang.String r0 = "3018"
boolean r0 = r4.equals(r0)
if (r0 != 0) goto L61
goto L73
L48:
java.lang.String r0 = "3011"
boolean r0 = r4.equals(r0)
if (r0 == 0) goto L73
o.cjZ r0 = new o.cjZ
r0.<init>(r7)
o.C7186cjY.b(r1, r2, r0)
return
L59:
java.lang.String r0 = "3003"
boolean r0 = r4.equals(r0)
if (r0 == 0) goto L73
L61:
o.YXP r0 = o.C7186cjY.b(r1)
o.Cmy r0 = r0.c
r0.a()
o.ckb r0 = new o.ckb
r0.<init>(r7)
o.C7186cjY.b(r1, r2, r0)
return
L73:
o.YXP r0 = o.C7186cjY.b(r1)
o.Cmy r0 = r0.c
r0.a()
boolean r0 = o.C7186cjY.b(r1, r2)
if (r0 == 0) goto L8b
o.cka r0 = new o.cka
r0.<init>(r7)
o.C7186cjY.b(r1, r2, r0)
return
L8b:
o.ckd r0 = new o.ckd
r0.<init>(r7)
o.C7186cjY.b(r1, r2, r0)
return
*/
throw new UnsupportedOperationException("Method not decompiled: o.C7184cjW.e(java.lang.Object):void");
}
{
this.d = h;
this.c = c7186cjY;
this.a = th;
}
};
if (c7186cjY.f != 0) {
ieS.e(c7186cjY.f);
}
}
@Override // o.InterfaceC13176fSx
public final void onSubscribe(fSJ fsj) {
C14957gcv.e(fsj, "");
}
}
public static final /* synthetic */ ggV h(Throwable th) {
if (!(th instanceof RetrofitException)) {
return null;
}
RetrofitException retrofitException = (RetrofitException) th;
if (retrofitException.e != null) {
return retrofitException.e.c;
}
return null;
}
public static final /* synthetic */ void c(C7186cjY c7186cjY) {
if (c7186cjY.f != 0) {
c7186cjY.f.ar_();
}
}
public static final /* synthetic */ void d(C7186cjY c7186cjY, Throwable th, C0690Mh.IeS ieS) {
if (c7186cjY.b(th)) {
c7186cjY.d(c7186cjY.j.d(th, ieS));
}
}
public static final /* synthetic */ void b(C7186cjY c7186cjY, Throwable th, Runnable runnable) {
if (c7186cjY.b(th)) {
c7186cjY.d(c7186cjY.j.c(th, runnable));
}
}
public final void b(TN tn, boolean z) {
C14957gcv.e(tn, "");
if (this.f != 0) {
this.f.y();
}
this.e.b(new IeS(this, tn), new YXP.LWm(new C6210cM(tn.j, z, this.a)), this.c);
}
static {
new Sts((byte) 0);
}
}