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

671 lines
21 KiB
Java

package o;
import com.huawei.hms.support.api.entity.common.CommonConstant;
import com.scb.phone.domain.errors.RetrofitException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import o.C0690Mh;
import o.C4485baz;
import o.ZI;
/* renamed from: o.baz, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C4485baz extends ZI<InterfaceC9243dfz> {
public KR a;
public List<String> b;
public String c;
public String d;
public final C15625hH e;
public String g;
public WW h;
public WW i;
public JO m;
/* renamed from: o, reason: collision with root package name */
public String f8559o;
public static final /* synthetic */ void e(C4485baz c4485baz, KR kr) {
c4485baz.a = kr;
c4485baz.g = kr.e;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C4485baz(C16903sI c16903sI, C15625hH c15625hH) {
super(c16903sI);
C14957gcv.e(c16903sI, "");
C14957gcv.e(c15625hH, "");
this.e = c15625hH;
this.b = C14851gaI.c;
this.c = CommonConstant.RETKEY.EMAIL;
}
/* renamed from: o.baz$LWm */
/* loaded from: classes4.dex */
public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C4485baz c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C4485baz.d(this.c, th2, C0690Mh.IeS.NAVIGATE_BACK);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public LWm(C4485baz c4485baz) {
super(1);
this.c = c4485baz;
}
}
/* renamed from: o.baz$Sts */
/* loaded from: classes4.dex */
public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<List<? extends String>, C14866gag> {
private C4485baz d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(List<? extends String> list) {
List<? extends String> list2 = list;
C14957gcv.e(list2, "");
C4485baz.d(this.d);
this.d.b = list2;
this.d.d();
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public Sts(C4485baz c4485baz) {
super(1);
this.d = c4485baz;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.baz$HBt */
/* loaded from: classes4.dex */
public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C4485baz b;
private List<String> c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
ggV ggv;
Throwable th2 = th;
C14957gcv.e(th2, "");
if (th2 instanceof RetrofitException) {
List<String> list = this.c;
VCl vCl = ((RetrofitException) th2).e;
if (C14881gav.b(list, (vCl == null || (ggv = vCl.c) == null) ? null : ggv.e)) {
final C4485baz c4485baz = this.b;
C4485baz.d(c4485baz, th2, new Runnable(c4485baz) { // from class: o.baI
private C4485baz d;
@Override // java.lang.Runnable
public final void run() {
C4485baz.HBt.e(this.d);
}
{
this.d = c4485baz;
}
});
return C14866gag.c;
}
}
C4485baz.d(this.b, th2, C0690Mh.IeS.NAVIGATE_BACK);
return C14866gag.c;
}
public static /* synthetic */ void e(C4485baz c4485baz) {
C14957gcv.e(c4485baz, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.baD
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9243dfz) obj).c();
}
};
if (c4485baz.f != 0) {
ieS.e(c4485baz.f);
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
HBt(List<String> list, C4485baz c4485baz) {
super(1);
this.c = list;
this.b = c4485baz;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.baz$IeS */
/* loaded from: classes4.dex */
public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<KR, C14866gag> {
private C4485baz c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(KR kr) {
final KR kr2 = kr;
C14957gcv.e(kr2, "");
C4485baz.d(this.c);
C4485baz.e(this.c, kr2);
C4485baz c4485baz = this.c;
ZI.IeS ieS = new ZI.IeS(kr2) { // from class: o.baG
private KR a;
@Override // o.ZI.IeS
public final void e(Object obj) {
C4485baz.IeS.a(this.a, (InterfaceC9243dfz) obj);
}
{
this.a = kr2;
}
};
if (c4485baz.f != 0) {
ieS.e(c4485baz.f);
}
this.c.a();
return C14866gag.c;
}
public static /* synthetic */ void a(KR kr, InterfaceC9243dfz interfaceC9243dfz) {
C14957gcv.e(kr, "");
interfaceC9243dfz.d(kr.c);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
IeS(C4485baz c4485baz) {
super(1);
this.c = c4485baz;
}
}
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
/* JADX WARN: Code restructure failed: missing block: B:10:0x003d, code lost:
r0 = r0.c;
*/
/* JADX WARN: Code restructure failed: missing block: B:11:0x003f, code lost:
if (r0 == null) goto L65;
*/
/* JADX WARN: Code restructure failed: missing block: B:12:0x0041, code lost:
r1 = new java.util.ArrayList();
r0 = r0.iterator();
*/
/* JADX WARN: Code restructure failed: missing block: B:14:0x0052, code lost:
if (r0.hasNext() == false) goto L69;
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x0054, code lost:
r2 = r0.next();
*/
/* JADX WARN: Code restructure failed: missing block: B:16:0x0063, code lost:
if (o.C14957gcv.b(((o.KY) r2).c, java.lang.Boolean.TRUE) == false) goto L72;
*/
/* JADX WARN: Code restructure failed: missing block: B:18:0x0065, code lost:
r1.add(r2);
*/
/* JADX WARN: Code restructure failed: missing block: B:23:0x0069, code lost:
r0 = r1.iterator();
r1 = false;
*/
/* JADX WARN: Code restructure failed: missing block: B:25:0x0076, code lost:
if (r0.hasNext() == false) goto L75;
*/
/* JADX WARN: Code restructure failed: missing block: B:26:0x0078, code lost:
r2 = (o.KY) r0.next();
*/
/* JADX WARN: Code restructure failed: missing block: B:27:0x0081, code lost:
if ((r2 instanceof o.KW) == false) goto L74;
*/
/* JADX WARN: Code restructure failed: missing block: B:30:0x0095, code lost:
if ((r2 instanceof o.KZ) == false) goto L79;
*/
/* JADX WARN: Code restructure failed: missing block: B:33:0x00a0, code lost:
if ((r2 instanceof o.C0635Lc) == false) goto L86;
*/
/* JADX WARN: Code restructure failed: missing block: B:36:0x00a4, code lost:
if (r5.i == null) goto L87;
*/
/* JADX WARN: Code restructure failed: missing block: B:39:0x00ad, code lost:
if ((!o.C2974aoj.c(r5.f8559o)) == false) goto L88;
*/
/* JADX WARN: Code restructure failed: missing block: B:41:0x00af, code lost:
r1 = true;
*/
/* JADX WARN: Code restructure failed: missing block: B:49:0x009b, code lost:
if (d(true) == false) goto L90;
*/
/* JADX WARN: Code restructure failed: missing block: B:54:0x0087, code lost:
if (h() == false) goto L91;
*/
/* JADX WARN: Code restructure failed: missing block: B:57:0x0090, code lost:
if ((!o.C2974aoj.c(r5.f8559o)) == false) goto L92;
*/
/* JADX WARN: Code restructure failed: missing block: B:62:0x00d3, code lost:
if (r1 == false) goto L65;
*/
/* JADX WARN: Code restructure failed: missing block: B:63:0x00d5, code lost:
r0 = new o.C4483bax();
*/
/* JADX WARN: Code restructure failed: missing block: B:64:0x00dc, code lost:
if (r5.f == 0) goto L93;
*/
/* JADX WARN: Code restructure failed: missing block: B:65:0x00de, code lost:
r0.e(r5.f);
*/
/* JADX WARN: Code restructure failed: missing block: B:66:0x00e3, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:68:?, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:70:0x0023, code lost:
if (r0.equals("SPEEDY_CASH_M") == false) goto L65;
*/
/* JADX WARN: Code restructure failed: missing block: B:72:0x002d, code lost:
if (r0.equals("SPEEDY_LOAN") == false) goto L65;
*/
/* JADX WARN: Code restructure failed: missing block: B:73:0x00cf, code lost:
r1 = j();
*/
/* JADX WARN: Code restructure failed: missing block: B:75:0x0037, code lost:
if (r0.equals("SPEEDY_CASH") != false) goto L19;
*/
/* JADX WARN: Code restructure failed: missing block: B:77:0x00b7, code lost:
if (r0.equals("MCMC") == false) goto L65;
*/
/* JADX WARN: Code restructure failed: missing block: B:78:0x00c2, code lost:
r1 = j();
*/
/* JADX WARN: Code restructure failed: missing block: B:7:0x0019, code lost:
if (r0.equals("CREDIT_CARD") == false) goto L65;
*/
/* JADX WARN: Code restructure failed: missing block: B:80:0x00c0, code lost:
if (r0.equals("AUTO_TOP_UP") != false) goto L56;
*/
/* JADX WARN: Code restructure failed: missing block: B:82:0x00cd, code lost:
if (r0.equals("SPEEDY_LOAN_TOP_UP") != false) goto L59;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0039, code lost:
r0 = r5.a;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x003b, code lost:
if (r0 == null) goto L65;
*/
/* JADX WARN: Failed to find 'out' block for switch in B:5:0x000e. Please report as an issue. */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void a() {
/*
Method dump skipped, instructions count: 274
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.C4485baz.a():void");
}
private final boolean h() {
VtH b = b();
return b != null && (b.h.isEmpty() || b(b) != null);
}
private final boolean d(boolean z) {
if (!C14957gcv.b((Object) this.g, (Object) "DIRECT_DEBIT")) {
if (C14957gcv.b((Object) this.g, (Object) "CASH")) {
return true;
}
} else if (this.i != null && (!z || (!C2974aoj.c(this.f8559o)))) {
return true;
}
return false;
}
/* renamed from: o.baz$ojQ */
/* loaded from: classes4.dex */
public static final class ojQ extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C4485baz e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C4485baz.b(this.e, th2);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public ojQ(C4485baz c4485baz) {
super(1);
this.e = c4485baz;
}
}
/* renamed from: o.baz$saX */
/* loaded from: classes4.dex */
public static final class saX extends AbstractC14961gcz implements InterfaceC14894gbR<Boolean, C14866gag> {
private C4485baz e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Boolean bool) {
C4485baz.d(this.e);
final C4485baz c4485baz = this.e;
ZI.IeS ieS = new ZI.IeS(c4485baz) { // from class: o.baL
private C4485baz d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C4485baz.saX.b(this.d, (InterfaceC9243dfz) obj);
}
{
this.d = c4485baz;
}
};
if (c4485baz.f != 0) {
ieS.e(c4485baz.f);
}
return C14866gag.c;
}
/* JADX WARN: Code restructure failed: missing block: B:17:0x0060, code lost:
if (r4 == null) goto L20;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static /* synthetic */ void b(o.C4485baz r4, o.InterfaceC9243dfz r5) {
/*
java.lang.String r0 = ""
o.C14957gcv.e(r4, r0)
o.hH r1 = o.C4485baz.c(r4)
o.KR r4 = o.C4485baz.e(r4)
r2 = 0
if (r4 == 0) goto L13
o.PAj r4 = r4.d
goto L14
L13:
r4 = r2
L14:
o.rp r1 = r1.e
if (r4 == 0) goto L1a
java.util.List<o.AdB> r2 = r4.b
L1a:
if (r2 == 0) goto L62
java.lang.Iterable r2 = (java.lang.Iterable) r2
java.util.ArrayList r4 = new java.util.ArrayList
o.C14957gcv.e(r2, r0)
boolean r0 = r2 instanceof java.util.Collection
if (r0 == 0) goto L2f
r0 = r2
java.util.Collection r0 = (java.util.Collection) r0
int r0 = r0.size()
goto L31
L2f:
r0 = 10
L31:
r4.<init>(r0)
java.util.Collection r4 = (java.util.Collection) r4
java.util.Iterator r0 = r2.iterator()
L3a:
boolean r2 = r0.hasNext()
if (r2 == 0) goto L58
java.lang.Object r2 = r0.next()
o.AdB r2 = (o.C0145AdB) r2
o.sn r3 = r1.a
o.RtP r3 = r1.b
o.Xky r3 = r3.c
boolean r3 = r3.T()
o.WW r2 = o.C16965sn.c(r2, r3)
r4.add(r2)
goto L3a
L58:
java.util.List r4 = (java.util.List) r4
java.lang.Iterable r4 = (java.lang.Iterable) r4
java.util.List r4 = o.C14881gav.d(r4)
if (r4 != 0) goto L66
L62:
o.gaI r4 = o.C14851gaI.c
java.util.List r4 = (java.util.List) r4
L66:
r5.a(r4)
return
*/
throw new UnsupportedOperationException("Method not decompiled: o.C4485baz.saX.b(o.baz, o.dfz):void");
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public saX(C4485baz c4485baz) {
super(1);
this.e = c4485baz;
}
}
/* renamed from: o.baz$RVV */
/* loaded from: classes4.dex */
public static final class RVV {
private RVV() {
}
public /* synthetic */ RVV(byte b) {
this();
}
}
public static /* synthetic */ void a(String str, C4485baz c4485baz, InterfaceC9243dfz interfaceC9243dfz) {
C14957gcv.e(str, "");
C14957gcv.e(c4485baz, "");
if (C14957gcv.b((Object) str, (Object) "CASH")) {
c4485baz.f8559o = null;
}
interfaceC9243dfz.d();
}
public static /* synthetic */ void e(List list, KY ky, InterfaceC9243dfz interfaceC9243dfz) {
C14957gcv.e(list, "");
C14957gcv.e(ky, "");
interfaceC9243dfz.b(list.indexOf(ky));
}
public static final /* synthetic */ void d(C4485baz c4485baz) {
if (c4485baz.f != 0) {
c4485baz.f.ar_();
}
}
public static final /* synthetic */ void b(C4485baz c4485baz, Throwable th) {
if (c4485baz.b(th)) {
c4485baz.d(c4485baz.j.e(th));
}
}
public static final /* synthetic */ void d(C4485baz c4485baz, Throwable th, C0690Mh.IeS ieS) {
if (c4485baz.b(th)) {
c4485baz.d(c4485baz.j.d(th, ieS));
}
}
public static final /* synthetic */ void d(C4485baz c4485baz, Throwable th, Runnable runnable) {
if (c4485baz.b(th)) {
c4485baz.d(c4485baz.j.c(th, runnable));
}
}
public final void d() {
if (this.f != 0) {
this.f.y();
}
String[] strArr = {"3037", "3052"};
C14957gcv.e(strArr, "");
C14957gcv.e(strArr, "");
List asList = Arrays.asList(strArr);
C14957gcv.c(asList, "");
C15625hH c15625hH = this.e;
IeS ieS = new IeS(this);
HBt hBt = new HBt(asList, this);
String str = this.d;
if (str == null) {
C14957gcv.a("");
str = null;
}
c15625hH.d(ieS, hBt, str, this.b);
}
public final C0638Ld c() {
List<KY> list;
KR kr = this.a;
if (kr == null || (list = kr.c) == null) {
return null;
}
ArrayList arrayList = new ArrayList();
for (Object obj : list) {
if (obj instanceof C0638Ld) {
arrayList.add(obj);
}
}
ArrayList arrayList2 = arrayList;
C14957gcv.e(arrayList2, "");
return (C0638Ld) (arrayList2.isEmpty() ? null : arrayList2.get(0));
}
public final ZRx b(VtH vtH) {
List<ZRx> list;
String str;
JO jo = this.m;
Object obj = null;
String a = (jo == null || (str = jo.a) == null) ? null : gdZ.a(str, " ", "");
if (vtH == null || (list = vtH.h) == null) {
return null;
}
Iterator<T> it = list.iterator();
while (true) {
if (!it.hasNext()) {
break;
}
Object next = it.next();
if (C14957gcv.b((Object) ((ZRx) next).d, (Object) a)) {
obj = next;
break;
}
}
return (ZRx) obj;
}
private final boolean j() {
boolean z;
boolean z2;
List<KY> list;
KR kr = this.a;
if (kr == null || (list = kr.c) == null) {
z = false;
z2 = false;
} else {
ArrayList<KY> arrayList = new ArrayList();
for (Object obj : list) {
if (C14957gcv.b(((KY) obj).c, Boolean.TRUE)) {
arrayList.add(obj);
}
}
z = false;
z2 = false;
for (KY ky : arrayList) {
if (ky instanceof KW) {
if (h()) {
z = true;
}
} else if (ky instanceof KZ) {
if (d(false)) {
z2 = true;
}
} else if ((ky instanceof C0635Lc) && this.i != null) {
z2 = true;
}
}
}
return z && z2;
}
public final VtH b() {
PAj pAj;
List<PpS> list;
KR kr = this.a;
Object obj = null;
if (kr == null || (pAj = kr.d) == null || (list = pAj.c) == null) {
return null;
}
ArrayList arrayList = new ArrayList();
for (Object obj2 : list) {
PpS ppS = (PpS) obj2;
if (ppS.d == LlU.RECEIVING_ACCOUNT_ACCOUNT_DEBIT || ppS.d == LlU.RECEIVING_ACCOUNT_ACCOUNT) {
arrayList.add(obj2);
}
}
Iterator it = arrayList.iterator();
if (!it.hasNext()) {
return null;
}
PpS ppS2 = (PpS) it.next();
C14957gcv.d(ppS2, "");
Iterator<T> it2 = ((SaB) ppS2).c.iterator();
while (true) {
if (!it2.hasNext()) {
break;
}
Object next = it2.next();
String str = ((VtH) next).c;
WW ww = this.h;
if (C14957gcv.b((Object) str, (Object) (ww != null ? ww.t : null))) {
obj = next;
break;
}
}
return (VtH) obj;
}
static {
new RVV((byte) 0);
}
}