641 lines
19 KiB
Java
641 lines
19 KiB
Java
package o;
|
|
|
|
import com.scb.phone.presentation.mapper.transferandpay.BaseAssetsDisplayMapper;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import o.Hft;
|
|
import o.InterfaceC9010dbe;
|
|
import o.ZI;
|
|
import o.cNJ;
|
|
import o.wRi;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class cNJ extends ZI<InterfaceC9010dbe.SWS> {
|
|
private final C0295Dk a;
|
|
private final C16142lc b;
|
|
private final fSC c;
|
|
private final BaseAssetsDisplayMapper d;
|
|
private final C16739qp e;
|
|
private final iRl h;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
@InterfaceC13391fZD
|
|
public cNJ(iRl irl, C16739qp c16739qp, C0295Dk c0295Dk, BaseAssetsDisplayMapper baseAssetsDisplayMapper, C16142lc c16142lc, C16903sI c16903sI) {
|
|
super(c16903sI);
|
|
C14957gcv.e(irl, "");
|
|
C14957gcv.e(c16739qp, "");
|
|
C14957gcv.e(c0295Dk, "");
|
|
C14957gcv.e(baseAssetsDisplayMapper, "");
|
|
C14957gcv.e(c16142lc, "");
|
|
C14957gcv.e(c16903sI, "");
|
|
this.h = irl;
|
|
this.e = c16739qp;
|
|
this.a = c0295Dk;
|
|
this.d = baseAssetsDisplayMapper;
|
|
this.b = c16142lc;
|
|
this.c = new fSC();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes4.dex */
|
|
public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<zHg, C14866gag> {
|
|
private cNJ b;
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ C14866gag invoke(zHg zhg) {
|
|
zHg zhg2 = zhg;
|
|
C14957gcv.e(zhg2, "");
|
|
List<C0375Fe> c = this.b.a.c(zhg2, true);
|
|
ArrayList arrayList = new ArrayList();
|
|
for (Object obj : c) {
|
|
if (((C0375Fe) obj).i == EnumC0378Fg.IMAGE) {
|
|
arrayList.add(obj);
|
|
}
|
|
}
|
|
final List c2 = C14881gav.c(arrayList, 3);
|
|
if (!(!c2.isEmpty())) {
|
|
c2 = null;
|
|
}
|
|
if (c2 != null) {
|
|
cNJ cnj = this.b;
|
|
ZI.IeS ieS = new ZI.IeS(c2) { // from class: o.cNW
|
|
private List b;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj2) {
|
|
cNJ.LWm.a(this.b, (InterfaceC9010dbe.SWS) obj2);
|
|
}
|
|
|
|
{
|
|
this.b = c2;
|
|
}
|
|
};
|
|
if (cnj.f != 0) {
|
|
ieS.e(cnj.f);
|
|
}
|
|
}
|
|
return C14866gag.c;
|
|
}
|
|
|
|
public static /* synthetic */ void a(List list, InterfaceC9010dbe.SWS sws) {
|
|
C14957gcv.e(list, "");
|
|
sws.c((List<C0375Fe>) list);
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
LWm(cNJ cnj) {
|
|
super(1);
|
|
this.b = cnj;
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes4.dex */
|
|
public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
|
|
public static final Sts d = new Sts();
|
|
|
|
@Override // o.InterfaceC14894gbR
|
|
public final /* synthetic */ C14866gag invoke(Throwable th) {
|
|
C14957gcv.e(th, "");
|
|
return C14866gag.c;
|
|
}
|
|
|
|
Sts() {
|
|
super(1);
|
|
}
|
|
}
|
|
|
|
@Override // o.ZI
|
|
public final void w_() {
|
|
super.w_();
|
|
this.c.dispose();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes4.dex */
|
|
public final class HBt extends wRi.LWm<Integer> {
|
|
private cNJ b;
|
|
private String e;
|
|
|
|
public HBt(cNJ cnj, String str) {
|
|
C14957gcv.e(str, "");
|
|
this.b = cnj;
|
|
this.e = str;
|
|
}
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final /* synthetic */ void onNext(Object obj) {
|
|
cNJ cnj = this.b;
|
|
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.cNV
|
|
private cNJ.HBt a;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj2) {
|
|
cNJ.HBt.a(this.a, (InterfaceC9010dbe.SWS) obj2);
|
|
}
|
|
|
|
{
|
|
this.a = this;
|
|
}
|
|
};
|
|
if (cnj.f != 0) {
|
|
ieS.e(cnj.f);
|
|
}
|
|
this.b.h.a.U();
|
|
}
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final void onComplete() {
|
|
cNJ.e(this.b);
|
|
cNJ.b(this.b);
|
|
}
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final void onError(final Throwable th) {
|
|
C14957gcv.e(th, "");
|
|
if (this.b.i(th)) {
|
|
return;
|
|
}
|
|
cNJ.e(this.b);
|
|
cNJ.b(this.b);
|
|
final cNJ cnj = this.b;
|
|
ZI.IeS ieS = new ZI.IeS(cnj, th) { // from class: o.cNT
|
|
private cNJ b;
|
|
private Throwable c;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
cNJ.HBt.c(this.b, this.c, (InterfaceC9010dbe.SWS) obj);
|
|
}
|
|
|
|
{
|
|
this.b = cnj;
|
|
this.c = th;
|
|
}
|
|
};
|
|
if (cnj.f != 0) {
|
|
ieS.e(cnj.f);
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void c(cNJ cnj, Throwable th, InterfaceC9010dbe.SWS sws) {
|
|
C14957gcv.e(cnj, "");
|
|
C14957gcv.e(th, "");
|
|
sws.c(cnj.j.e(th));
|
|
}
|
|
|
|
public static /* synthetic */ void a(HBt hBt, InterfaceC9010dbe.SWS sws) {
|
|
C14957gcv.e(hBt, "");
|
|
sws.c(hBt.e);
|
|
}
|
|
}
|
|
|
|
public final void a() {
|
|
if (this.h.a.V()) {
|
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.cNL
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((InterfaceC9010dbe.SWS) obj).l();
|
|
}
|
|
};
|
|
if (this.f != 0) {
|
|
ieS.e(this.f);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.cNH
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((InterfaceC9010dbe.SWS) obj).m();
|
|
}
|
|
};
|
|
if (this.f != 0) {
|
|
ieS2.e(this.f);
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes4.dex */
|
|
public static final class RVV {
|
|
private RVV() {
|
|
}
|
|
|
|
public /* synthetic */ RVV(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void b(JF jf, InterfaceC9010dbe.SWS sws) {
|
|
C14957gcv.e(jf, "");
|
|
C14957gcv.e(sws, "");
|
|
sws.e(jf);
|
|
}
|
|
|
|
public static /* synthetic */ void c(C1189Xo c1189Xo, InterfaceC9010dbe.SWS sws) {
|
|
C14957gcv.e(c1189Xo, "");
|
|
C14957gcv.e(sws, "");
|
|
sws.g();
|
|
sws.e();
|
|
sws.c();
|
|
if (C2974aoj.c(c1189Xo.u)) {
|
|
sws.a();
|
|
} else {
|
|
sws.b();
|
|
}
|
|
if (C14957gcv.b((Object) c1189Xo.J, (Object) "0.00")) {
|
|
return;
|
|
}
|
|
sws.d();
|
|
}
|
|
|
|
public static /* synthetic */ void d(boolean z, boolean z2, C1191Xp c1191Xp, InterfaceC9010dbe.SWS sws) {
|
|
if (z) {
|
|
sws.n();
|
|
return;
|
|
}
|
|
if (z2 && c1191Xp.f8452o) {
|
|
sws.o();
|
|
return;
|
|
}
|
|
if (z2 && !c1191Xp.f8452o) {
|
|
sws.i();
|
|
} else if (C14957gcv.b((Object) c1191Xp.p.j(), (Object) "BNPL_PAYMENT")) {
|
|
sws.h();
|
|
} else {
|
|
sws.j();
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void c(cNJ cnj, XU xu, InterfaceC9010dbe.SWS sws) {
|
|
C14957gcv.e(cnj, "");
|
|
C14957gcv.e(xu, "");
|
|
sws.e(cnj.d.b_(xu.d), xu.c, xu.b);
|
|
}
|
|
|
|
public static /* synthetic */ void d(JF jf, InterfaceC9010dbe.SWS sws) {
|
|
C14957gcv.e(jf, "");
|
|
C14957gcv.e(sws, "");
|
|
sws.e(jf);
|
|
sws.k();
|
|
}
|
|
|
|
public static final /* synthetic */ void b(cNJ cnj) {
|
|
if (cnj.f != 0) {
|
|
cnj.f.ar_();
|
|
}
|
|
}
|
|
|
|
public static final /* synthetic */ void e(cNJ cnj) {
|
|
if (cnj.f != 0) {
|
|
cnj.f.aq_();
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:14:0x0026, code lost:
|
|
|
|
if ((!(r0 == null || o.gdZ.d((java.lang.CharSequence) r0))) == false) goto L19;
|
|
*/
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void c(final o.XU r4) {
|
|
/*
|
|
r3 = this;
|
|
if (r4 == 0) goto L39
|
|
java.lang.String r0 = r4.c
|
|
java.lang.CharSequence r0 = (java.lang.CharSequence) r0
|
|
r1 = 0
|
|
r2 = 1
|
|
if (r0 == 0) goto L12
|
|
boolean r0 = o.gdZ.d(r0)
|
|
if (r0 != 0) goto L12
|
|
r0 = r1
|
|
goto L13
|
|
L12:
|
|
r0 = r2
|
|
L13:
|
|
r0 = r0 ^ r2
|
|
if (r0 == 0) goto L28
|
|
java.lang.String r0 = r4.b
|
|
java.lang.CharSequence r0 = (java.lang.CharSequence) r0
|
|
if (r0 == 0) goto L23
|
|
boolean r0 = o.gdZ.d(r0)
|
|
if (r0 != 0) goto L23
|
|
goto L24
|
|
L23:
|
|
r1 = r2
|
|
L24:
|
|
r0 = r1 ^ 1
|
|
if (r0 != 0) goto L29
|
|
L28:
|
|
r4 = 0
|
|
L29:
|
|
if (r4 == 0) goto L39
|
|
o.cNN r0 = new o.cNN
|
|
r0.<init>(r3, r4)
|
|
T extends o.cYp r4 = r3.f
|
|
if (r4 == 0) goto L39
|
|
T extends o.cYp r4 = r3.f
|
|
r0.e(r4)
|
|
L39:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.cNJ.c(o.XU):void");
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:54:0x00ac */
|
|
/* JADX WARN: Removed duplicated region for block: B:56:? A[RETURN, SYNTHETIC] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void c(o.C1191Xp r17) {
|
|
/*
|
|
r16 = this;
|
|
r0 = r16
|
|
r1 = r17
|
|
if (r1 == 0) goto L9
|
|
o.Xo r2 = r1.p
|
|
goto La
|
|
L9:
|
|
r2 = 0
|
|
La:
|
|
if (r2 != 0) goto Ld
|
|
return
|
|
Ld:
|
|
boolean r3 = r2.A
|
|
java.lang.String r2 = r2.z
|
|
o.Xo r4 = r1.p
|
|
boolean r5 = r4.A
|
|
o.VN r6 = r4.at
|
|
r8 = 1
|
|
if (r6 == 0) goto L1c
|
|
r6 = r8
|
|
goto L1d
|
|
L1c:
|
|
r6 = 0
|
|
L1d:
|
|
java.lang.String r9 = r1.g
|
|
java.lang.CharSequence r9 = (java.lang.CharSequence) r9
|
|
if (r9 == 0) goto L2b
|
|
boolean r9 = o.gdZ.d(r9)
|
|
if (r9 != 0) goto L2b
|
|
r9 = 0
|
|
goto L2c
|
|
L2b:
|
|
r9 = r8
|
|
L2c:
|
|
r9 = r9 ^ r8
|
|
o.XF r10 = r4.P
|
|
if (r10 == 0) goto L33
|
|
r10 = r8
|
|
goto L34
|
|
L33:
|
|
r10 = 0
|
|
L34:
|
|
o.WO r11 = r4.C
|
|
if (r11 == 0) goto L3a
|
|
r11 = r8
|
|
goto L3b
|
|
L3a:
|
|
r11 = 0
|
|
L3b:
|
|
boolean r1 = r1.f8452o
|
|
java.lang.String r12 = r4.j()
|
|
if (r12 == 0) goto L5c
|
|
java.lang.String r13 = "LOANPAYMENT"
|
|
java.lang.String r14 = "FAST_PAY_BILL_PAYMENT_SUB_FUNCTION"
|
|
java.lang.String r15 = "BNPL_PAYMENT"
|
|
java.lang.String r7 = "BSCANC_SUCCESS_FUNCTION"
|
|
java.lang.String[] r7 = new java.lang.String[]{r15, r7, r13, r14}
|
|
java.lang.String r13 = ""
|
|
o.C14957gcv.e(r7, r13)
|
|
int r7 = o.C14875gap.d(r7, r12)
|
|
if (r7 < 0) goto L5c
|
|
r7 = r8
|
|
goto L5d
|
|
L5c:
|
|
r7 = 0
|
|
L5d:
|
|
java.lang.String r4 = r4.aE
|
|
java.lang.String r12 = "E_DONATION_FUNCTION"
|
|
boolean r4 = o.gdZ.a(r4, r12, r8)
|
|
if (r6 != 0) goto La3
|
|
if (r9 != 0) goto La3
|
|
if (r10 != 0) goto La3
|
|
if (r11 != 0) goto La3
|
|
if (r1 != 0) goto La3
|
|
if (r7 != 0) goto La3
|
|
if (r4 != 0) goto La3
|
|
r1 = r5 ^ 1
|
|
if (r1 == 0) goto L78
|
|
goto La3
|
|
L78:
|
|
if (r3 == 0) goto La2
|
|
r1 = r2
|
|
java.lang.CharSequence r1 = (java.lang.CharSequence) r1
|
|
if (r1 == 0) goto L94
|
|
boolean r1 = o.gdZ.d(r1)
|
|
if (r1 != 0) goto L94
|
|
o.cNU r1 = new o.cNU
|
|
r1.<init>(r2)
|
|
T extends o.cYp r2 = r0.f
|
|
if (r2 == 0) goto L93
|
|
T extends o.cYp r2 = r0.f
|
|
r1.e(r2)
|
|
L93:
|
|
return
|
|
L94:
|
|
o.cNR r1 = new o.cNR
|
|
r1.<init>()
|
|
T extends o.cYp r2 = r0.f
|
|
if (r2 == 0) goto La2
|
|
T extends o.cYp r2 = r0.f
|
|
r1.e(r2)
|
|
La2:
|
|
return
|
|
La3:
|
|
o.cNM r1 = new o.cNM
|
|
r1.<init>()
|
|
T extends o.cYp r2 = r0.f
|
|
if (r2 == 0) goto Lb1
|
|
T extends o.cYp r2 = r0.f
|
|
r1.e(r2)
|
|
Lb1:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: o.cNJ.c(o.Xp):void");
|
|
}
|
|
|
|
public final void d(C1191Xp c1191Xp) {
|
|
C1189Xo c1189Xo;
|
|
boolean a = gdZ.a((c1191Xp == null || (c1189Xo = c1191Xp.p) == null) ? null : c1189Xo.j(), "TRANSFER", false);
|
|
boolean z = this.b.c.a().r.i;
|
|
if (a && z) {
|
|
this.b.c(new LWm(this), Sts.d, new Hft.RVV("SLIP_SUCCESSFUL", "TRANSFER"));
|
|
}
|
|
}
|
|
|
|
public final void e(C1191Xp c1191Xp, String str) {
|
|
String str2;
|
|
C1189Xo c1189Xo = c1191Xp != null ? c1191Xp.p : null;
|
|
if (c1189Xo == null) {
|
|
return;
|
|
}
|
|
C1189Xo c1189Xo2 = c1191Xp.p;
|
|
if (c1189Xo2 == null || (str2 = c1189Xo2.j()) == null) {
|
|
str2 = "";
|
|
} else if (gdZ.a(str2, "PURCHASE_TRANSFER_FUNCTION", true)) {
|
|
str2 = "TRANSFER";
|
|
} else if (gdZ.a(str2, "PURCHASE_TOPUP_FUNCTION", true)) {
|
|
str2 = "TOPUP";
|
|
} else if (gdZ.a(str2, "PURCHASE_BILL_PAYMENT_FUNCTION", true)) {
|
|
str2 = "BILLPAYMENT";
|
|
}
|
|
String str3 = c1189Xo.aE;
|
|
C14957gcv.e("ALL", "");
|
|
String str4 = str3;
|
|
if (str4 == null || gdZ.d((CharSequence) str4)) {
|
|
str3 = "ALL";
|
|
}
|
|
C10083dw c = C10083dw.c();
|
|
c.E = str;
|
|
c.G = c1189Xo.aj;
|
|
c.F = c1189Xo.ai;
|
|
c.I = c1189Xo.am;
|
|
c.B = c1189Xo.v;
|
|
c.A = str2;
|
|
c.H = c1189Xo.V;
|
|
c.z = c1189Xo.c();
|
|
Double c2 = C6583cXR.c(c1189Xo.j.c);
|
|
C14957gcv.c(c2, "");
|
|
c.D = c2.doubleValue();
|
|
c.J = str3;
|
|
C14957gcv.c(c, "");
|
|
int hashCode = str2.hashCode();
|
|
if (hashCode == -486974465) {
|
|
if (str2.equals("BILLPAYMENT")) {
|
|
c.D = 0.0d;
|
|
C14957gcv.c(c, "");
|
|
c.B = null;
|
|
if (this.f != 0) {
|
|
this.f.y();
|
|
}
|
|
this.h.c(c);
|
|
iRl irl = this.h;
|
|
String str5 = c.E;
|
|
C14957gcv.c((Object) str5, "");
|
|
irl.d(irl.i, new HBt(this, str5));
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (hashCode == 80008848) {
|
|
if (str2.equals("TOPUP")) {
|
|
c.B = null;
|
|
c.F = null;
|
|
if (this.f != 0) {
|
|
this.f.y();
|
|
}
|
|
this.h.b(c);
|
|
iRl irl2 = this.h;
|
|
String str6 = c.E;
|
|
C14957gcv.c((Object) str6, "");
|
|
irl2.d(irl2.i, new HBt(this, str6));
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (hashCode == 2063509483 && str2.equals("TRANSFER")) {
|
|
if (C14957gcv.b((Object) str3, (Object) PWw.CID.name()) || C14957gcv.b((Object) str3, (Object) PWw.MOB.name())) {
|
|
c.J = qhK.PROMPTPAY.name();
|
|
c.H = str3;
|
|
}
|
|
c.G = null;
|
|
c.F = null;
|
|
if (this.f != 0) {
|
|
this.f.y();
|
|
}
|
|
this.h.a(c);
|
|
iRl irl3 = this.h;
|
|
String str7 = c.E;
|
|
C14957gcv.c((Object) str7, "");
|
|
irl3.d(irl3.i, new HBt(this, str7));
|
|
}
|
|
}
|
|
|
|
public final void b(C1191Xp c1191Xp) {
|
|
C14957gcv.e(c1191Xp, "");
|
|
C1189Xo c1189Xo = c1191Xp.p;
|
|
if (c1189Xo != null && c1189Xo.ay != null) {
|
|
C16739qp c16739qp = this.e;
|
|
C1189Xo c1189Xo2 = c1191Xp.p;
|
|
C14957gcv.c(c1189Xo2, "");
|
|
C14957gcv.e(c1189Xo2, "");
|
|
C1195Xt c1195Xt = c1189Xo2.ay;
|
|
String b_ = c16739qp.b_(c1195Xt != null ? c1195Xt.d : null);
|
|
if (b_ == null) {
|
|
b_ = "";
|
|
}
|
|
String str = c1189Xo2.l;
|
|
String b_2 = str != null ? c16739qp.b_(str) : null;
|
|
if (b_2 == null) {
|
|
b_2 = "";
|
|
}
|
|
String str2 = c1195Xt != null ? c1195Xt.c : null;
|
|
if (str2 == null) {
|
|
str2 = "";
|
|
}
|
|
String str3 = c1189Xo2.m;
|
|
final JF e = JF.e();
|
|
e.a = b_;
|
|
e.d = b_2;
|
|
e.c = str2;
|
|
e.b = str3;
|
|
C14957gcv.c(e, "");
|
|
ZI.IeS ieS = new ZI.IeS(e) { // from class: o.cNQ
|
|
private JF a;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
cNJ.d(this.a, (InterfaceC9010dbe.SWS) obj);
|
|
}
|
|
|
|
{
|
|
this.a = e;
|
|
}
|
|
};
|
|
if (this.f != 0) {
|
|
ieS.e(this.f);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
Lqn H = this.h.a.H();
|
|
if (H != null) {
|
|
C14957gcv.c(H, "");
|
|
final JF d = this.e.d(H);
|
|
ZI.IeS ieS2 = new ZI.IeS(d) { // from class: o.cNO
|
|
private JF d;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
cNJ.b(this.d, (InterfaceC9010dbe.SWS) obj);
|
|
}
|
|
|
|
{
|
|
this.d = d;
|
|
}
|
|
};
|
|
if (this.f != 0) {
|
|
ieS2.e(this.f);
|
|
}
|
|
}
|
|
}
|
|
|
|
static {
|
|
new RVV((byte) 0);
|
|
}
|
|
}
|