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

667 lines
21 KiB
Java

package o;
import com.scb.phone.domain.entity.mwpartner.EntityMappingException;
import com.scb.phone.domain.errors.RetrofitException;
import o.C0690Mh;
import o.C15715hv;
import o.ZI;
/* loaded from: classes4.dex */
public final class cBZ extends ZI<InterfaceC9562dmA> {
public NxD a;
public final fSC b;
public Double c;
public C1115Vz d;
public C1106Vt e;
public final C17622yQ g;
public final LYo h;
public final PpH i;
private TN k;
public VD l;
public final String m;
public final C0232By n;
/* renamed from: o */
public final KTB f8595o;
private final C0230Bw q;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public cBZ(C16903sI c16903sI, PpH ppH, KTB ktb, LYo lYo, C0230Bw c0230Bw, C0232By c0232By, C17622yQ c17622yQ, String str) {
super(c16903sI);
C14957gcv.e(c16903sI, "");
C14957gcv.e(ppH, "");
C14957gcv.e(ktb, "");
C14957gcv.e(lYo, "");
C14957gcv.e(c0230Bw, "");
C14957gcv.e(c0232By, "");
C14957gcv.e(c17622yQ, "");
C14957gcv.e(str, "");
this.i = ppH;
this.f8595o = ktb;
this.h = lYo;
this.q = c0230Bw;
this.n = c0232By;
this.g = c17622yQ;
this.m = str;
this.b = new fSC();
}
/* loaded from: classes4.dex */
public static final class Sts {
private Sts() {
}
public /* synthetic */ Sts(byte b) {
this();
}
}
/* loaded from: classes4.dex */
public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<NxD, C14866gag> {
private cBZ c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(NxD nxD) {
this.c.a = nxD;
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
HBt(cBZ cbz) {
super(1);
this.c = cbz;
}
}
/* loaded from: classes4.dex */
public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<NxD, C14866gag> {
private cBZ c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(NxD nxD) {
this.c.a = nxD;
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public LWm(cBZ cbz) {
super(1);
this.c = cbz;
}
}
/* loaded from: classes4.dex */
public static final class RVV implements InterfaceC13176fSx<CmE> {
private cBZ c;
public RVV(cBZ cbz) {
this.c = cbz;
}
@Override // o.InterfaceC13176fSx
public final /* synthetic */ void e(CmE cmE) {
CmE cmE2 = cmE;
C14957gcv.e(cmE2, "");
cBZ.d(this.c);
cBZ cbz = this.c;
cbz.k = cbz.g.c(cmE2, true);
if (cmE2.a) {
cBZ cbz2 = this.c;
ZI.IeS ieS = new ZI.IeS(cmE2) { // from class: o.cCu
private CmE d;
@Override // o.ZI.IeS
public final void e(Object obj) {
CmE cmE3 = this.d;
C14957gcv.e(cmE3, "");
((InterfaceC9562dmA) obj).c(cmE3);
}
{
this.d = cmE2;
}
};
if (cbz2.f != 0) {
ieS.e(cbz2.f);
return;
}
return;
}
cBZ cbz3 = this.c;
C5896cCj c5896cCj = new C5896cCj(cbz3);
if (cbz3.f != 0) {
c5896cCj.e(cbz3.f);
}
}
@Override // o.InterfaceC13176fSx
public final void onError(Throwable th) {
C14957gcv.e(th, "");
cBZ.d(this.c);
ggV h = cBZ.h(th);
if (h == null || (th instanceof EntityMappingException)) {
cBZ.a(this.c, th, C0690Mh.IeS.JUST_DISMISS);
}
cBZ cbz = this.c;
ZI.IeS ieS = new ZI.IeS(h, cbz, th) { // from class: o.cCv
private ggV a;
private cBZ b;
private Throwable e;
/* JADX WARN: Code restructure failed: missing block: B:10:0x0069, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x002f, code lost:
if (r0.equals("3020") != false) goto L30;
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x0038, code lost:
if (r0.equals("3019") == false) goto L32;
*/
/* JADX WARN: Code restructure failed: missing block: B:17:0x0041, code lost:
if (r0.equals("3018") == false) goto L32;
*/
/* JADX WARN: Code restructure failed: missing block: B:19:0x004a, code lost:
if (r0.equals("3016") == false) goto L32;
*/
/* JADX WARN: Code restructure failed: missing block: B:21:0x0053, code lost:
if (r0.equals("3007") == false) goto L32;
*/
/* JADX WARN: Code restructure failed: missing block: B:23:0x005c, code lost:
if (r0.equals("3003") != false) goto L30;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0026, code lost:
if (r0.equals("7001") == false) goto L32;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x005e, code lost:
r0 = r1.j;
r5.e(r0.e(r2));
*/
@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 r5) {
/*
r4 = this;
o.ggV r0 = r4.a
o.cBZ r1 = r4.b
java.lang.Throwable r2 = r4.e
o.dmA r5 = (o.InterfaceC9562dmA) r5
java.lang.String r3 = ""
o.C14957gcv.e(r1, r3)
o.C14957gcv.e(r2, r3)
if (r0 == 0) goto L15
java.lang.String r0 = r0.e
goto L16
L15:
r0 = 0
L16:
if (r0 == 0) goto L6a
int r3 = r0.hashCode()
switch(r3) {
case 1567008: goto L56;
case 1567012: goto L4d;
case 1567042: goto L44;
case 1567044: goto L3b;
case 1567045: goto L32;
case 1567067: goto L29;
case 1686170: goto L20;
default: goto L1f;
}
L1f:
goto L6a
L20:
java.lang.String r3 = "7001"
boolean r0 = r0.equals(r3)
if (r0 != 0) goto L5e
goto L6a
L29:
java.lang.String r3 = "3020"
boolean r0 = r0.equals(r3)
if (r0 == 0) goto L6a
goto L5e
L32:
java.lang.String r3 = "3019"
boolean r0 = r0.equals(r3)
if (r0 != 0) goto L5e
goto L6a
L3b:
java.lang.String r3 = "3018"
boolean r0 = r0.equals(r3)
if (r0 != 0) goto L5e
goto L6a
L44:
java.lang.String r3 = "3016"
boolean r0 = r0.equals(r3)
if (r0 != 0) goto L5e
goto L6a
L4d:
java.lang.String r3 = "3007"
boolean r0 = r0.equals(r3)
if (r0 != 0) goto L5e
goto L6a
L56:
java.lang.String r3 = "3003"
boolean r0 = r0.equals(r3)
if (r0 == 0) goto L6a
L5e:
o.sI r0 = o.cBZ.a(r1)
o.Mj r0 = r0.e(r2)
r5.e(r0)
return
L6a:
boolean r0 = o.cBZ.a(r1, r2)
if (r0 == 0) goto L79
o.cCr r0 = new o.cCr
r0.<init>(r5)
o.cBZ.c(r1, r2, r0)
return
L79:
o.cCq r0 = new o.cCq
r0.<init>(r5)
o.cBZ.c(r1, r2, r0)
return
*/
throw new UnsupportedOperationException("Method not decompiled: o.C5908cCv.e(java.lang.Object):void");
}
{
this.a = h;
this.b = cbz;
this.e = th;
}
};
if (cbz.f != 0) {
ieS.e(cbz.f);
}
}
@Override // o.InterfaceC13176fSx
public final void onSubscribe(fSJ fsj) {
C14957gcv.e(fsj, "");
}
}
@Override // o.ZI
public final void w_() {
PpH ppH = this.i;
if (!ppH.h.isDisposed()) {
ppH.h.dispose();
}
KTB ktb = this.f8595o;
if (!ktb.h.isDisposed()) {
ktb.h.dispose();
}
super.w_();
}
public static /* synthetic */ void a(cBZ cbz, C1106Vt c1106Vt, NxD nxD, boolean z, TQ tq, InterfaceC9562dmA interfaceC9562dmA) {
C14957gcv.e(cbz, "");
C14957gcv.e(c1106Vt, "");
C14957gcv.e(nxD, "");
C14957gcv.e(tq, "");
interfaceC9562dmA.c(cbz.q.c(c1106Vt, nxD, z, cbz.c), tq);
}
public static /* synthetic */ void d(VH vh, InterfaceC9562dmA interfaceC9562dmA) {
C14957gcv.e(vh, "");
interfaceC9562dmA.e(vh);
}
public static /* synthetic */ void a(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
C14957gcv.e(interfaceC14894gbR, "");
interfaceC14894gbR.invoke(obj);
}
public static /* synthetic */ void e(cBZ cbz, C1106Vt c1106Vt, TQ tq, NxD nxD) {
C14957gcv.e(cbz, "");
C14957gcv.e(c1106Vt, "");
C14957gcv.e(tq, "");
C14957gcv.c(nxD, "");
if (cbz.f != 0) {
cbz.f.ar_();
}
VD vd = cbz.l;
if (vd == null) {
C14957gcv.a("");
vd = null;
}
int i = IeS.a[vd.ordinal()];
ZI.IeS ieS = new ZI.IeS(cbz, c1106Vt, nxD, (i == 1 || i == 2) ? false : true, tq) { // from class: o.cCg
private C1106Vt a;
private NxD b;
private cBZ c;
private boolean d;
private TQ e;
@Override // o.ZI.IeS
public final void e(Object obj) {
cBZ.a(this.c, this.a, this.b, this.d, this.e, (InterfaceC9562dmA) obj);
}
{
this.c = cbz;
this.a = c1106Vt;
this.b = nxD;
this.d = r4;
this.e = tq;
}
};
if (cbz.f != 0) {
ieS.e(cbz.f);
}
}
public static /* synthetic */ void b(cBZ cbz, InterfaceC9562dmA interfaceC9562dmA) {
C14957gcv.e(cbz, "");
C16903sI c16903sI = cbz.j;
interfaceC9562dmA.e(c16903sI.c((String) null, c16903sI.e(C15715hv.tOB.error_generic_resource), C0690Mh.IeS.JUST_DISMISS));
}
public static /* synthetic */ void e(cBZ cbz, C1106Vt c1106Vt, NxD nxD, boolean z, InterfaceC9562dmA interfaceC9562dmA) {
C14957gcv.e(cbz, "");
C14957gcv.e(c1106Vt, "");
C14957gcv.e(nxD, "");
interfaceC9562dmA.e(cbz.q.c(c1106Vt, nxD, z, cbz.c));
}
public static /* synthetic */ void d(cBZ cbz, InterfaceC9562dmA interfaceC9562dmA) {
C14957gcv.e(cbz, "");
TN tn = cbz.k;
if (tn == null) {
C14957gcv.a("");
tn = null;
}
interfaceC9562dmA.e(tn);
}
public static /* synthetic */ void a(cBZ cbz, C1106Vt c1106Vt, NxD nxD) {
C14957gcv.e(cbz, "");
C14957gcv.e(c1106Vt, "");
C14957gcv.c(nxD, "");
if (cbz.f != 0) {
cbz.f.ar_();
}
VD vd = cbz.l;
if (vd == null) {
C14957gcv.a("");
vd = null;
}
int i = IeS.a[vd.ordinal()];
ZI.IeS ieS = new ZI.IeS(cbz, c1106Vt, nxD, (i == 1 || i == 2) ? false : true) { // from class: o.cBY
private NxD a;
private C1106Vt b;
private boolean c;
private cBZ d;
@Override // o.ZI.IeS
public final void e(Object obj) {
cBZ.e(this.d, this.b, this.a, this.c, (InterfaceC9562dmA) obj);
}
{
this.d = cbz;
this.b = c1106Vt;
this.a = nxD;
this.c = r4;
}
};
if (cbz.f != 0) {
ieS.e(cbz.f);
}
}
public static /* synthetic */ void b(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
C14957gcv.e(interfaceC14894gbR, "");
interfaceC14894gbR.invoke(obj);
}
public static /* synthetic */ void e(cBZ cbz, Throwable th, InterfaceC9562dmA interfaceC9562dmA) {
C14957gcv.e(cbz, "");
C14957gcv.e(th, "");
interfaceC9562dmA.e(cbz.j.e(th));
}
public static /* synthetic */ void e(cBZ cbz, WW ww, C1106Vt c1106Vt, NxD nxD, double d, InterfaceC9562dmA interfaceC9562dmA) {
C14957gcv.e(cbz, "");
C14957gcv.e(ww, "");
C0232By c0232By = cbz.n;
VD vd = cbz.l;
if (vd == null) {
C14957gcv.a("");
vd = null;
}
interfaceC9562dmA.d(c0232By.d(vd, ww, c1106Vt, nxD, d, cbz.d, cbz.f8595o.c.m()));
}
public static /* synthetic */ void b(cBZ cbz, Throwable th) {
if (cbz.f != 0) {
cbz.f.ar_();
}
ZI.IeS ieS = new ZI.IeS(cbz, th) { // from class: o.cCk
private Throwable c;
private cBZ e;
@Override // o.ZI.IeS
public final void e(Object obj) {
cBZ.e(this.e, this.c, (InterfaceC9562dmA) obj);
}
{
this.e = cbz;
this.c = th;
}
};
if (cbz.f != 0) {
ieS.e(cbz.f);
}
}
public static /* synthetic */ void d(cBZ cbz, Throwable th) {
VD vd = cbz.l;
if (vd == null) {
C14957gcv.a("");
vd = null;
}
int i = IeS.a[vd.ordinal()];
if (i == 1 || i == 2) {
cbz.d(cbz.j.d(th, C0690Mh.IeS.NAVIGATE_BACK));
} else {
cbz.d(cbz.j.e(th));
}
}
public static /* synthetic */ void c(cBZ cbz, Throwable th) {
VD vd = cbz.l;
if (vd == null) {
C14957gcv.a("");
vd = null;
}
int i = IeS.a[vd.ordinal()];
if (i == 1 || i == 2) {
cbz.d(cbz.j.d(th, C0690Mh.IeS.NAVIGATE_BACK));
} else {
cbz.d(cbz.j.e(th));
}
}
public static /* synthetic */ void a(cBZ cbz, WW ww, double d) {
C14957gcv.e(cbz, "");
C14957gcv.e(ww, "");
C1106Vt c1106Vt = cbz.e;
NxD nxD = cbz.a;
if (cbz.f != 0) {
cbz.f.ar_();
}
if (c1106Vt != null && nxD != null) {
ZI.IeS ieS = new ZI.IeS(cbz, ww, c1106Vt, nxD, d) { // from class: o.cCh
private C1106Vt a;
private WW b;
private cBZ c;
private double d;
private NxD e;
@Override // o.ZI.IeS
public final void e(Object obj) {
cBZ.e(this.c, this.b, this.a, this.e, this.d, (InterfaceC9562dmA) obj);
}
{
this.c = cbz;
this.b = ww;
this.a = c1106Vt;
this.e = nxD;
this.d = d;
}
};
if (cbz.f != 0) {
ieS.e(cbz.f);
return;
}
return;
}
ZI.IeS ieS2 = new ZI.IeS(cbz) { // from class: o.cCf
private cBZ d;
@Override // o.ZI.IeS
public final void e(Object obj) {
cBZ.b(this.d, (InterfaceC9562dmA) obj);
}
{
this.d = cbz;
}
};
if (cbz.f != 0) {
ieS2.e(cbz.f);
}
}
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 d(cBZ cbz) {
if (cbz.f != 0) {
cbz.f.ar_();
}
}
public static final /* synthetic */ void a(cBZ cbz, Throwable th, C0690Mh.IeS ieS) {
if (cbz.b(th)) {
cbz.d(cbz.j.d(th, ieS));
}
}
public static final /* synthetic */ void c(cBZ cbz, Throwable th, Runnable runnable) {
if (cbz.b(th)) {
cbz.d(cbz.j.c(th, runnable));
}
}
public final void e(C1106Vt c1106Vt) {
C14957gcv.e(c1106Vt, "");
this.e = c1106Vt;
C10400eD c10400eD = new C10400eD(c1106Vt.a, c1106Vt.c, c1106Vt.d, c1106Vt.b);
PpH ppH = this.i;
C14957gcv.e(c10400eD, "");
AbstractC13163fSk<NxD> doOnNext = ppH.c.d(c10400eD).doOnNext(new fSQ(new HBt(this)) { // from class: o.cCp
private InterfaceC14894gbR c;
@Override // o.fSQ
public final void c(Object obj) {
cBZ.a(this.c, obj);
}
{
this.c = r1;
}
});
if (this.f != 0) {
this.f.y();
}
this.i.d(doOnNext, new fSQ(this, c1106Vt) { // from class: o.cCs
private cBZ b;
private C1106Vt d;
@Override // o.fSQ
public final void c(Object obj) {
cBZ.a(this.b, this.d, (NxD) obj);
}
{
this.b = this;
this.d = c1106Vt;
}
}, new fSQ(this) { // from class: o.cCc
private cBZ c;
@Override // o.fSQ
public final void c(Object obj) {
cBZ.d(this.c, (Throwable) obj);
}
{
this.c = this;
}
});
}
public final boolean e(WW ww, C13396fZU<Double, Double> c13396fZU) {
C14957gcv.e(c13396fZU, "");
if (ww != null) {
if (c13396fZU.d.doubleValue() <= 0.0d || c13396fZU.e.doubleValue() <= 0.0d) {
VD vd = this.l;
if (vd == null) {
C14957gcv.a("");
vd = null;
}
if (vd == VD.ADD_FAVOURITE) {
}
}
return true;
}
return false;
}
/* loaded from: classes4.dex */
public final /* synthetic */ class IeS {
public static final int[] a;
static {
int[] iArr = new int[VD.values().length];
try {
iArr[VD.RETRY.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[VD.FAVOURITE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
a = iArr;
}
}
static {
new Sts((byte) 0);
}
}