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

611 lines
20 KiB
Java

package o;
import com.scb.phone.domain.errors.RetrofitException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
import o.AbstractC15351go;
import o.C14930gcM;
import o.C15715hv;
import o.C15716hvG;
import o.C16079kx;
import o.C6028cGc;
import o.InterfaceC9575dmN;
import o.ZI;
import o.hIr;
/* renamed from: o.cGc, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C6028cGc extends ZI<InterfaceC9575dmN.LWm> {
public List<C1145Wq> a;
public C1148Wt b;
public final C16079kx c;
private final C16077kw d;
public static final /* synthetic */ void c(C6028cGc c6028cGc, String str, String str2, int i, int i2, Runnable runnable, Runnable runnable2) {
c6028cGc.d(c6028cGc.j.b(str, str2, i, i2, runnable, runnable2));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C6028cGc(C16079kx c16079kx, C16077kw c16077kw, C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(c16079kx, "");
C14957gcv.e(c16077kw, "");
C14957gcv.e(c16903sI, "");
this.c = c16079kx;
this.d = c16077kw;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.cGc$ojQ */
/* loaded from: classes4.dex */
public static final class ojQ extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C6028cGc b;
private InterfaceC9575dmN.LWm d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C6028cGc c6028cGc = this.b;
final InterfaceC9575dmN.LWm lWm = this.d;
C6028cGc.a(c6028cGc, th2, new Runnable(lWm) { // from class: o.cGo
private InterfaceC9575dmN.LWm b;
@Override // java.lang.Runnable
public final void run() {
this.b.a();
}
{
this.b = lWm;
}
});
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
ojQ(C6028cGc c6028cGc, InterfaceC9575dmN.LWm lWm) {
super(1);
this.b = c6028cGc;
this.d = lWm;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.cGc$tOB */
/* loaded from: classes4.dex */
public static final class tOB extends AbstractC14961gcz implements InterfaceC14894gbR<C1148Wt, C14866gag> {
private C6028cGc c;
private InterfaceC9575dmN.LWm d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(C1148Wt c1148Wt) {
boolean z;
boolean z2;
boolean z3;
C1148Wt c1148Wt2 = c1148Wt;
C14957gcv.e(c1148Wt2, "");
C6028cGc.e(this.c);
this.c.b = c1148Wt2;
C1148Wt c1148Wt3 = this.c.b;
if (c1148Wt3 == null) {
C14957gcv.a("");
c1148Wt3 = null;
}
C1145Wq c1145Wq = c1148Wt3.a;
if (c1145Wq != null) {
this.d.a(c1145Wq);
}
this.c.d();
InterfaceC9575dmN.LWm lWm = this.d;
C15716hvG.RVV rvv = C15716hvG.d;
z = C15716hvG.a;
z2 = C15716hvG.e;
z3 = C15716hvG.b;
lWm.d(C15716hvG.RVV.d("investment_onboard_investmentinfo", z, z2, z3, null));
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
tOB(C6028cGc c6028cGc, InterfaceC9575dmN.LWm lWm) {
super(1);
this.c = c6028cGc;
this.d = lWm;
}
}
/* renamed from: o.cGc$IeS */
/* loaded from: classes4.dex */
public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C6028cGc c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C6028cGc.a(this.c, th2);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public IeS(C6028cGc c6028cGc) {
super(1);
this.c = c6028cGc;
}
}
/* renamed from: o.cGc$Sts */
/* loaded from: classes4.dex */
public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<List<? extends C1145Wq>, C14866gag> {
private C6028cGc d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(List<? extends C1145Wq> list) {
List<? extends C1145Wq> list2 = list;
C14957gcv.e(list2, "");
C6028cGc.e(this.d);
this.d.a = list2;
List<? extends C1145Wq> list3 = list2;
C14957gcv.e(list3, "");
ArrayList arrayList = new ArrayList(list3 instanceof Collection ? list3.size() : 10);
Iterator<T> it = list3.iterator();
while (it.hasNext()) {
arrayList.add(((C1145Wq) it.next()).e);
}
final ArrayList arrayList2 = arrayList;
final C14930gcM.IeS ieS = new C14930gcM.IeS();
C6028cGc c6028cGc = this.d;
Iterator<? extends C1145Wq> it2 = list2.iterator();
int i = 0;
while (true) {
if (!it2.hasNext()) {
i = -1;
break;
}
C1145Wq next = it2.next();
C1148Wt c1148Wt = c6028cGc.b;
if (c1148Wt == null) {
C14957gcv.a("");
c1148Wt = null;
}
if (C14957gcv.b(next, c1148Wt.a)) {
break;
}
i++;
}
ieS.b = i;
ieS.b = ieS.b != -1 ? ieS.b + 1 : 0;
C6028cGc c6028cGc2 = this.d;
ZI.IeS ieS2 = new ZI.IeS(arrayList2, ieS) { // from class: o.cGl
private List a;
private C14930gcM.IeS e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6028cGc.Sts.a(this.a, this.e, (InterfaceC9575dmN.LWm) obj);
}
{
this.a = arrayList2;
this.e = ieS;
}
};
if (c6028cGc2.f != 0) {
ieS2.e(c6028cGc2.f);
}
this.d.d();
return C14866gag.c;
}
public static /* synthetic */ void a(List list, C14930gcM.IeS ieS, InterfaceC9575dmN.LWm lWm) {
C14957gcv.e(list, "");
C14957gcv.e(ieS, "");
lWm.d(list, ieS.b);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public Sts(C6028cGc c6028cGc) {
super(1);
this.d = c6028cGc;
}
}
public final void d() {
final boolean z;
C1148Wt c1148Wt = this.b;
C1148Wt c1148Wt2 = null;
if (c1148Wt == null) {
C14957gcv.a("");
c1148Wt = null;
}
if (c1148Wt.a != null) {
C1148Wt c1148Wt3 = this.b;
if (c1148Wt3 == null) {
C14957gcv.a("");
c1148Wt3 = null;
}
if (c1148Wt3.c != null) {
C1148Wt c1148Wt4 = this.b;
if (c1148Wt4 == null) {
C14957gcv.a("");
} else {
c1148Wt2 = c1148Wt4;
}
List<WC> list = c1148Wt2.e;
if (list != null) {
List<WC> list2 = list;
if (!(list2 instanceof Collection) || !list2.isEmpty()) {
Iterator<T> it = list2.iterator();
while (it.hasNext()) {
if (((WC) it.next()).e) {
z = true;
break;
}
}
}
}
}
}
z = false;
ZI.IeS ieS = new ZI.IeS(z) { // from class: o.cGj
private boolean a;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9575dmN.LWm) obj).c(this.a);
}
{
this.a = z;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
/* renamed from: o.cGc$LWm */
/* loaded from: classes4.dex */
public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<WJ, C14866gag> {
private C6028cGc e;
/* JADX WARN: Code restructure failed: missing block: B:13:0x003a, code lost:
r2 = r9.e;
r3 = r0.e;
r4 = r0.a;
r5 = o.C15715hv.tOB.proceed;
r6 = o.C15715hv.tOB.cancel;
r0 = r9.e;
o.C6028cGc.c(r2, r3, r4, r5, r6, new o.RunnableC6039cGn(r0, r10), new o.RunnableC6042cGq());
*/
@Override // o.InterfaceC14894gbR
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final /* synthetic */ o.C14866gag invoke(o.WJ r10) {
/*
r9 = this;
o.WJ r10 = (o.WJ) r10
java.lang.String r0 = ""
o.C14957gcv.e(r10, r0)
o.cGc r0 = r9.e
o.C6028cGc.e(r0)
o.EN r0 = r10.a
if (r0 == 0) goto L13
java.lang.String r1 = r0.b
goto L14
L13:
r1 = 0
L14:
if (r1 == 0) goto L6d
int r2 = r1.hashCode()
r3 = 1507423(0x17005f, float:2.11235E-39)
if (r2 == r3) goto L54
r3 = 1567037(0x17e93d, float:2.195887E-39)
if (r2 == r3) goto L32
r3 = 1567069(0x17e95d, float:2.195931E-39)
if (r2 != r3) goto L6d
java.lang.String r2 = "3022"
boolean r1 = r1.equals(r2)
if (r1 != 0) goto L3a
goto L6d
L32:
java.lang.String r2 = "3011"
boolean r1 = r1.equals(r2)
if (r1 == 0) goto L6d
L3a:
o.cGc r2 = r9.e
java.lang.String r3 = r0.e
java.lang.String r4 = r0.a
int r5 = o.C15715hv.tOB.proceed
int r6 = o.C15715hv.tOB.cancel
o.cGc r0 = r9.e
o.cGn r7 = new o.cGn
r7.<init>(r0, r10)
o.cGq r8 = new o.cGq
r8.<init>()
o.C6028cGc.c(r2, r3, r4, r5, r6, r7, r8)
goto L74
L54:
java.lang.String r10 = "1000"
boolean r10 = r1.equals(r10)
if (r10 == 0) goto L6d
o.cGc r10 = r9.e
o.cGk r0 = new o.cGk
r0.<init>()
T extends o.cYp r1 = r10.f
if (r1 == 0) goto L74
T extends o.cYp r10 = r10.f
r0.e(r10)
goto L74
L6d:
o.cGc r10 = r9.e
int r0 = o.C15715hv.tOB.error_generic_resource
r10.c(r0)
L74:
o.gag r10 = o.C14866gag.c
return r10
*/
throw new UnsupportedOperationException("Method not decompiled: o.C6028cGc.LWm.invoke(java.lang.Object):java.lang.Object");
}
public static /* synthetic */ void d(C6028cGc c6028cGc, WJ wj) {
C14957gcv.e(c6028cGc, "");
C14957gcv.e(wj, "");
String str = wj.d;
if (str == null) {
str = "N";
}
String str2 = wj.b;
String str3 = str2 != null ? str2 : "N";
String str4 = wj.c;
C14957gcv.e(str, "");
C14957gcv.e(str3, "");
if (c6028cGc.f != 0) {
c6028cGc.f.y();
}
C16079kx c16079kx = c6028cGc.c;
C13636fe c13636fe = new C13636fe(str, str3, str4);
jbe jbeVar = new jbe(c6028cGc, str3, str);
ZqN zqN = new ZqN(c6028cGc);
C14957gcv.e(c13636fe, "");
C14957gcv.e(jbeVar, "");
C14957gcv.e(zqN, "");
c16079kx.b(c16079kx.f, jbeVar, zqN, new hIr.RVV(c13636fe));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public LWm(C6028cGc c6028cGc) {
super(1);
this.e = c6028cGc;
}
}
/* renamed from: o.cGc$RVV */
/* loaded from: classes4.dex */
public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C6028cGc d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
VCl vCl;
ggV ggv;
Throwable th2 = th;
C14957gcv.e(th2, "");
String str = null;
RetrofitException retrofitException = th2 instanceof RetrofitException ? (RetrofitException) th2 : null;
if (retrofitException != null && (vCl = retrofitException.e) != null && (ggv = vCl.c) != null) {
str = ggv.e;
}
if (C14957gcv.b((Object) str, (Object) "3010")) {
final C6028cGc c6028cGc = this.d;
C6028cGc.a(c6028cGc, retrofitException, new Runnable(c6028cGc) { // from class: o.cGp
private C6028cGc e;
@Override // java.lang.Runnable
public final void run() {
C6028cGc.RVV.c(this.e);
}
{
this.e = c6028cGc;
}
});
} else {
C6028cGc.a(this.d, th2);
}
return C14866gag.c;
}
public static /* synthetic */ void c(C6028cGc c6028cGc) {
C14957gcv.e(c6028cGc, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.cGm
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9575dmN.LWm) obj).e();
}
};
if (c6028cGc.f != 0) {
ieS.e(c6028cGc.f);
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public RVV(C6028cGc c6028cGc) {
super(1);
this.d = c6028cGc;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.cGc$ZqN */
/* loaded from: classes4.dex */
public static final class ZqN extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C6028cGc e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C6028cGc.a(this.e, th2);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
ZqN(C6028cGc c6028cGc) {
super(1);
this.e = c6028cGc;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.cGc$jbe */
/* loaded from: classes4.dex */
public static final class jbe extends AbstractC14961gcz implements InterfaceC14894gbR<Boolean, C14866gag> {
private String a;
private String b;
private C6028cGc e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Boolean bool) {
C6028cGc.e(this.e);
C16077kw c16077kw = this.e.d;
String str = this.b;
String str2 = this.a;
C14957gcv.e(str, "");
VHE vhe = c16077kw.e;
C14957gcv.e(str, "");
vhe.e.e(str);
C14957gcv.e(str2, "");
VHE vhe2 = c16077kw.e;
C14957gcv.e(str2, "");
vhe2.e.a(str2);
C6028cGc c6028cGc = this.e;
C6036cGk c6036cGk = new C6036cGk();
if (c6028cGc.f != 0) {
c6036cGk.e(c6028cGc.f);
}
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
jbe(C6028cGc c6028cGc, String str, String str2) {
super(1);
this.e = c6028cGc;
this.b = str;
this.a = str2;
}
}
@Override // o.ZI
public final void w_() {
super.w_();
this.c.a();
this.d.a();
}
/* renamed from: o.cGc$HBt */
/* loaded from: classes4.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
public static /* synthetic */ void d(C6028cGc c6028cGc, InterfaceC9575dmN.LWm lWm) {
C14957gcv.e(c6028cGc, "");
C16079kx c16079kx = c6028cGc.c;
tOB tob = new tOB(c6028cGc, lWm);
ojQ ojq = new ojQ(c6028cGc, lWm);
C14957gcv.e(tob, "");
C14957gcv.e(ojq, "");
c16079kx.b(c16079kx.d, tob, ojq, new AbstractC15351go.LWm(), new C16079kx.LWm(c16079kx));
}
public static /* synthetic */ void b(C6028cGc c6028cGc, InterfaceC9575dmN.LWm lWm) {
C14957gcv.e(c6028cGc, "");
C1148Wt c1148Wt = c6028cGc.b;
if (c1148Wt == null) {
C14957gcv.a("");
c1148Wt = null;
}
lWm.e(c1148Wt.e);
}
public static /* synthetic */ void a(C6028cGc c6028cGc, InterfaceC9575dmN.LWm lWm) {
C14957gcv.e(c6028cGc, "");
C1148Wt c1148Wt = c6028cGc.b;
if (c1148Wt == null) {
C14957gcv.a("");
c1148Wt = null;
}
C1153Wv c1153Wv = c1148Wt.c;
lWm.e(c1153Wv != null ? c1153Wv.d : null);
}
public static /* synthetic */ void d(C6028cGc c6028cGc, List list, InterfaceC9575dmN.LWm lWm) {
String e;
C14957gcv.e(c6028cGc, "");
C16079kx c16079kx = c6028cGc.c;
String str = null;
if (list != null) {
C0250Ch c0250Ch = c16079kx.e;
C14957gcv.e(list, "");
List<WC> list2 = list;
int i = 0;
if (!(list2 instanceof Collection) || !list2.isEmpty()) {
Iterator it = list2.iterator();
while (it.hasNext()) {
if (((WC) it.next()).e && (i = i + 1) < 0) {
throw new ArithmeticException("Count overflow has happened.");
}
}
}
if (i == 1) {
for (WC wc : list2) {
if (wc.e) {
e = wc.d;
}
}
throw new NoSuchElementException("Collection contains no element matching the predicate.");
}
if (i > 1) {
e = c0250Ch.e(C15715hv.tOB.auto_single_form_investment_info_sof_multi_selected);
}
str = e;
}
lWm.c(str);
}
public static final /* synthetic */ void e(C6028cGc c6028cGc) {
if (c6028cGc.f != 0) {
c6028cGc.f.ar_();
}
}
public static final /* synthetic */ void a(C6028cGc c6028cGc, Throwable th) {
if (c6028cGc.b(th)) {
c6028cGc.d(c6028cGc.j.e(th));
}
}
public static final /* synthetic */ void a(C6028cGc c6028cGc, Throwable th, Runnable runnable) {
if (c6028cGc.b(th)) {
c6028cGc.d(c6028cGc.j.c(th, runnable));
}
}
static {
new HBt((byte) 0);
}
}