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

245 lines
8.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.text.TextUtils;
import com.scb.phone.domain.errors.RetrofitException;
import o.C0690Mh;
import o.C10635eK;
import o.C1168Xb;
import o.C15715hv;
import o.C5980cEx;
import o.InterfaceC8929daC;
import o.MC;
import o.ZI;
import o.wRi;
/* renamed from: o.cEx, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public class C5980cEx extends ZI<InterfaceC8929daC.saX> {
private final BK a;
public final qwQ b;
private boolean c;
private final String d;
private final C0361Ez e;
private String i;
@InterfaceC13391fZD
public C5980cEx(C16903sI c16903sI, C0361Ez c0361Ez, BK bk, qwQ qwq, String str) {
super(c16903sI);
this.e = c0361Ez;
this.a = bk;
this.b = qwq;
this.d = str;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.cEx$IeS */
/* loaded from: classes4.dex */
public final class IeS extends wRi.LWm<C15972jzc> {
private C5980cEx d;
private final C1189Xo e;
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
C15972jzc c15972jzc = (C15972jzc) obj;
if (c15972jzc instanceof FKU) {
final FKU fku = (FKU) c15972jzc;
final iJI iji = fku.e;
String str = iji.a;
if (str != null && (str.equals("8101") || iji.a.equals("8102"))) {
C5980cEx c5980cEx = this.d;
ZI.IeS ieS = new ZI.IeS(this, iji, fku) { // from class: o.cEz
private iJI a;
private FKU b;
private C5980cEx.IeS e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C5980cEx.IeS.b(this.e, this.a, this.b, (InterfaceC8929daC.saX) obj2);
}
{
this.e = this;
this.a = iji;
this.b = fku;
}
};
if (c5980cEx.f != 0) {
ieS.e(c5980cEx.f);
}
} else {
String str2 = iji.a;
if (str2 != null && str2.equals("8103")) {
C5980cEx c5980cEx2 = this.d;
ZI.IeS ieS2 = new ZI.IeS(iji) { // from class: o.cEy
private iJI c;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC8929daC.saX) obj2).d(r0.b, this.c.d);
}
{
this.c = iji;
}
};
if (c5980cEx2.f != 0) {
ieS2.e(c5980cEx2.f);
}
}
}
} else {
BK bk = this.d.a;
String str3 = this.d.i;
final C1191Xp c1191Xp = new C1191Xp();
C1189Xo h = C1189Xo.h();
if (TextUtils.isEmpty(str3)) {
str3 = "rtp.payer";
}
C1189Xo e = h.e(str3);
e.ab = c15972jzc.w;
e.ac = c15972jzc.q;
e.Z = BK.b(c15972jzc.w, c15972jzc.p, true);
e.Y = c15972jzc.r;
e.T = c15972jzc.s;
e.U = BK.b(c15972jzc.r, c15972jzc.t, true);
C1168Xb.LWm lWm = new C1168Xb.LWm();
lWm.b = BK.c(Double.valueOf(c15972jzc.i));
e.j = new C1168Xb(lWm, (byte) 0);
e.O = c15972jzc.n;
C1189Xo h2 = e.h(BK.c(Double.valueOf(c15972jzc.k)));
h2.an = BK.c(Double.valueOf(c15972jzc.l));
c1191Xp.p = h2;
c1191Xp.s = bk.e(C15715hv.tOB.request_to_pay_success_payment);
c1191Xp.l = c15972jzc.y;
c1191Xp.r = String.format(bk.e(C15715hv.tOB.reference_id), c15972jzc.y);
c1191Xp.t = BK.c(Double.valueOf(c15972jzc.l));
c1191Xp.f = c15972jzc.v == null ? "" : (String) C16157lj.c(new Object[]{bk, c15972jzc.v}, 838289628, -838289623, System.identityHashCode(bk));
C5980cEx c5980cEx3 = this.d;
ZI.IeS ieS3 = new ZI.IeS(c1191Xp) { // from class: o.cEE
private C1191Xp c;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC8929daC.saX) obj2).e(this.c);
}
{
this.c = c1191Xp;
}
};
if (c5980cEx3.f != 0) {
ieS3.e(c5980cEx3.f);
}
}
this.d.c = false;
}
public IeS(C5980cEx c5980cEx, C1189Xo c1189Xo) {
this.d = c5980cEx;
this.e = c1189Xo;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(final Throwable th) {
final ggV h = C5980cEx.h(th);
if (h == null || !this.d.b(th, "8103")) {
if (!this.d.i(th)) {
C5980cEx c5980cEx = this.d;
C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK;
if (c5980cEx.b(th)) {
c5980cEx.d(c5980cEx.j.b(th, ieS));
}
C5980cEx c5980cEx2 = this.d;
ZI.IeS ieS2 = new ZI.IeS(this, th) { // from class: o.cEG
private C5980cEx.IeS a;
private Throwable b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5980cEx.IeS.b(this.a, this.b, (InterfaceC8929daC.saX) obj);
}
{
this.a = this;
this.b = th;
}
};
if (c5980cEx2.f != 0) {
ieS2.e(c5980cEx2.f);
}
}
} else {
C5980cEx c5980cEx3 = this.d;
ZI.IeS ieS3 = new ZI.IeS(h) { // from class: o.cEB
private ggV a;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC8929daC.saX) obj).d(r0.d, this.a.c);
}
{
this.a = h;
}
};
if (c5980cEx3.f != 0) {
ieS3.e(c5980cEx3.f);
}
}
this.d.c = false;
}
public static /* synthetic */ void b(IeS ieS, Throwable th, InterfaceC8929daC.saX sax) {
ieS.d.j.e(th);
sax.E_();
}
public static /* synthetic */ void b(IeS ieS, iJI iji, FKU fku, InterfaceC8929daC.saX sax) {
C0361Ez unused = ieS.d.e;
String str = ieS.e.aF;
String a = ieS.e.a();
C14957gcv.e(str, "");
C14957gcv.e(a, "");
C14957gcv.e(fku, "");
String str2 = fku.b;
String str3 = fku.a;
String str4 = fku.d;
String str5 = iji != null ? iji.d : null;
String str6 = str5 == null ? "" : str5;
String str7 = fku.c;
String str8 = fku.j;
String str9 = fku.f;
String str10 = iji != null ? iji.b : null;
sax.b(new MC.LWm(str2, str3, str4, str6, str7, str8, str9, str10 == null ? "" : str10, a, str, fku.g));
}
}
static /* 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 final void d(C1189Xo c1189Xo, boolean z) {
if (this.c) {
return;
}
this.c = true;
if (this.f != 0) {
this.f.y();
}
this.i = c1189Xo.j();
C10635eK.HBt hBt = new C10635eK.HBt(c1189Xo.a());
hBt.d = z;
hBt.b = this.d;
this.b.a(new C10635eK(hBt));
qwQ qwq = this.b;
qwq.d(qwq.i, new IeS(this, c1189Xo));
}
}