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

693 lines
21 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 o.AbstractC15351go;
import o.C0690Mh;
import o.C14930gcM;
import o.C15716hvG;
import o.C16082ky;
import o.InterfaceC9582dmU;
import o.ZI;
import o.cGI;
/* loaded from: classes4.dex */
public final class cGI extends ZI<InterfaceC9582dmU.LWm> {
public List<C1124Wc> a;
public String b;
public String c;
public final C16082ky d;
public String e;
public boolean g;
public boolean h;
public List<C1130Wg> i;
public String k;
public String l;
public String m;
public String n;
/* renamed from: o */
public List<C1136Wk> f8603o;
public String q;
public String t;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public cGI(C16903sI c16903sI, C16082ky c16082ky) {
super(c16903sI);
C14957gcv.e(c16903sI, "");
C14957gcv.e(c16082ky, "");
this.d = c16082ky;
this.t = "";
this.b = "";
this.l = "";
}
/* loaded from: classes4.dex */
public static final class NHB extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private cGI c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
cGI cgi = this.c;
cGI.b(cgi, th2, new Runnable(cgi) { // from class: o.cHf
private cGI d;
@Override // java.lang.Runnable
public final void run() {
cGI.NHB.b(this.d);
}
{
this.d = cgi;
}
});
return C14866gag.c;
}
public static /* synthetic */ void b(cGI cgi) {
C14957gcv.e(cgi, "");
C6057cHa c6057cHa = new C6057cHa();
if (cgi.f != 0) {
c6057cHa.e(cgi.f);
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public NHB(cGI cgi) {
super(1);
this.c = cgi;
}
}
/* loaded from: classes4.dex */
public static final class tOB extends AbstractC14961gcz implements InterfaceC14894gbR<C1131Wh, C14866gag> {
private cGI d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(C1131Wh c1131Wh) {
C1131Wh c1131Wh2 = c1131Wh;
C14957gcv.e(c1131Wh2, "");
cGI.b(this.d, c1131Wh2);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public tOB(cGI cgi) {
super(1);
this.d = cgi;
}
}
public final void c() {
if (this.h) {
if (this.t.length() == 0 || this.b.length() == 0 || this.l.length() == 0) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.cGY
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9582dmU.LWm) obj).b(false);
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
}
ZI.IeS ieS2 = new ZI.IeS(this.g, this) { // from class: o.cGK
private cGI c;
private boolean d;
@Override // o.ZI.IeS
public final void e(Object obj) {
cGI.c(this.d, this.c, (InterfaceC9582dmU.LWm) obj);
}
{
this.d = r1;
this.c = this;
}
};
if (this.f != 0) {
ieS2.e(this.f);
return;
}
return;
}
ZI.IeS ieS3 = new ZI.IeS() { // from class: o.cGZ
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9582dmU.LWm) obj).b(true);
}
};
if (this.f != 0) {
ieS3.e(this.f);
}
}
/* loaded from: classes4.dex */
public static final class jbe extends AbstractC14961gcz implements InterfaceC14894gbR<Boolean, C14866gag> {
private cGI e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Boolean bool) {
cGI.e(this.e);
cGI cgi = this.e;
ZI.IeS ieS = new ZI.IeS() { // from class: o.cHh
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9582dmU.LWm) obj).d();
}
};
if (cgi.f != 0) {
ieS.e(cgi.f);
}
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public jbe(cGI cgi) {
super(1);
this.e = cgi;
}
}
/* loaded from: classes4.dex */
public static final class ojQ extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private cGI c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
cGI.e(this.c, th2);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public ojQ(cGI cgi) {
super(1);
this.c = cgi;
}
}
@Override // o.ZI
public final void w_() {
this.d.a();
super.w_();
}
public final void d(boolean z) {
this.g = z;
if (z) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.cGT
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9582dmU.LWm) obj).n();
}
};
if (this.f != 0) {
ieS.e(this.f);
}
} else {
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.cGQ
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9582dmU.LWm) obj).j();
}
};
if (this.f != 0) {
ieS2.e(this.f);
}
}
c();
}
/* loaded from: classes4.dex */
public static final class ZqN extends AbstractC14961gcz implements InterfaceC14894gbR<List<? extends C1136Wk>, C14866gag> {
private cGI d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(List<? extends C1136Wk> list) {
List<? extends C1136Wk> list2 = list;
C14957gcv.e(list2, "");
cGI.e(this.d, list2);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
ZqN(cGI cgi) {
super(1);
this.d = cgi;
}
}
/* loaded from: classes4.dex */
public static final class saX extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private cGI b;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
cGI cgi = this.b;
cGI.b(cgi, th2, new Runnable(cgi) { // from class: o.cHd
private cGI e;
@Override // java.lang.Runnable
public final void run() {
cGI.saX.e(this.e);
}
{
this.e = cgi;
}
});
return C14866gag.c;
}
public static /* synthetic */ void e(cGI cgi) {
C14957gcv.e(cgi, "");
C6057cHa c6057cHa = new C6057cHa();
if (cgi.f != 0) {
c6057cHa.e(cgi.f);
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
saX(cGI cgi) {
super(1);
this.b = cgi;
}
}
/* loaded from: classes4.dex */
public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<List<? extends C1130Wg>, C14866gag> {
private cGI b;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(List<? extends C1130Wg> list) {
List<? extends C1130Wg> list2 = list;
C14957gcv.e(list2, "");
cGI.e(this.b);
this.b.i = list2;
cGI cgi = this.b;
ZI.IeS ieS = new ZI.IeS(list2) { // from class: o.cHc
private List c;
@Override // o.ZI.IeS
public final void e(Object obj) {
cGI.RVV.a(this.c, (InterfaceC9582dmU.LWm) obj);
}
{
this.c = list2;
}
};
if (cgi.f != 0) {
ieS.e(cgi.f);
}
return C14866gag.c;
}
public static /* synthetic */ void a(List list, InterfaceC9582dmU.LWm lWm) {
C14957gcv.e(list, "");
List list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
Iterator it = list2.iterator();
while (it.hasNext()) {
arrayList.add(((C1130Wg) it.next()).c);
}
lWm.b(arrayList);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public RVV(cGI cgi) {
super(1);
this.b = cgi;
}
}
/* loaded from: classes4.dex */
public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private cGI a;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
cGI.d(this.a, th2, C0690Mh.IeS.JUST_DISMISS);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public Sts(cGI cgi) {
super(1);
this.a = cgi;
}
}
/* loaded from: classes4.dex */
public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private cGI c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
cGI.d(this.c, th2, C0690Mh.IeS.JUST_DISMISS);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public IeS(cGI cgi) {
super(1);
this.c = cgi;
}
}
/* loaded from: classes4.dex */
public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<List<? extends C1124Wc>, C14866gag> {
private cGI b;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(List<? extends C1124Wc> list) {
List<? extends C1124Wc> list2 = list;
C14957gcv.e(list2, "");
cGI.e(this.b);
this.b.a = list2;
cGI cgi = this.b;
ZI.IeS ieS = new ZI.IeS(list2) { // from class: o.cHe
private List b;
@Override // o.ZI.IeS
public final void e(Object obj) {
cGI.LWm.e(this.b, (InterfaceC9582dmU.LWm) obj);
}
{
this.b = list2;
}
};
if (cgi.f != 0) {
ieS.e(cgi.f);
}
return C14866gag.c;
}
public static /* synthetic */ void e(List list, InterfaceC9582dmU.LWm lWm) {
C14957gcv.e(list, "");
List list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
Iterator it = list2.iterator();
while (it.hasNext()) {
arrayList.add(((C1124Wc) it.next()).c);
}
lWm.a(arrayList);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public LWm(cGI cgi) {
super(1);
this.b = cgi;
}
}
/* loaded from: classes4.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
public static /* synthetic */ void c(boolean z, cGI cgi, InterfaceC9582dmU.LWm lWm) {
String str;
String str2;
C14957gcv.e(cgi, "");
if (z) {
String str3 = cgi.n;
lWm.b(!(str3 == null || str3.length() == 0));
return;
}
if (z) {
return;
}
String str4 = cgi.m;
if (str4 != null && str4.length() != 0 && (str = cgi.c) != null && str.length() != 0 && (str2 = cgi.e) != null && str2.length() != 0) {
r0 = true;
}
lWm.b(r0);
}
public static /* synthetic */ void b(List list, InterfaceC9582dmU.LWm lWm) {
C14957gcv.e(list, "");
List list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
Iterator it = list2.iterator();
while (it.hasNext()) {
arrayList.add(((C1124Wc) it.next()).c);
}
lWm.a(arrayList);
}
public static /* synthetic */ void a(List list, InterfaceC9582dmU.LWm lWm) {
C14957gcv.e(list, "");
List list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
Iterator it = list2.iterator();
while (it.hasNext()) {
arrayList.add(((C1130Wg) it.next()).c);
}
lWm.b(arrayList);
}
public static /* synthetic */ void d(String str, cGI cgi, InterfaceC9582dmU.LWm lWm) {
C14957gcv.e(str, "");
C14957gcv.e(cgi, "");
if (C14957gcv.b((Object) str, (Object) "M")) {
lWm.h();
lWm.d(8);
lWm.b(false);
return;
}
cgi.d();
cgi.c = null;
cgi.e = null;
cgi.n = null;
cgi.m = null;
lWm.f();
lWm.b();
lWm.b(true);
}
public static /* synthetic */ void d(boolean z, cGI cgi, InterfaceC9582dmU.LWm lWm) {
C14957gcv.e(cgi, "");
if (z) {
lWm.d(0);
cgi.c();
return;
}
cgi.d();
cgi.c = null;
cgi.e = null;
cgi.n = null;
cgi.m = null;
lWm.f();
lWm.d(8);
lWm.b(true);
}
public static /* synthetic */ void c(C14930gcM.IeS ieS, InterfaceC9582dmU.LWm lWm) {
C14957gcv.e(ieS, "");
lWm.a(ieS.b);
}
public static /* synthetic */ void a(cGI cgi, InterfaceC9582dmU.LWm lWm) {
boolean z;
boolean z2;
boolean z3;
C14957gcv.e(cgi, "");
String str = cgi.q;
if (str == null) {
C14957gcv.a("");
str = null;
}
if (str.length() > 0) {
List<C1136Wk> list = cgi.f8603o;
if (list == null) {
C14957gcv.a("");
list = null;
}
if (!list.isEmpty()) {
String str2 = cgi.q;
if (str2 == null) {
C14957gcv.a("");
str2 = null;
}
cGU cgu = new cGU(str2, cgi);
if (cgi.f != 0) {
cgu.e(cgi.f);
}
List<C1136Wk> list2 = cgi.f8603o;
if (list2 == null) {
C14957gcv.a("");
list2 = null;
}
List<C1136Wk> 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(((C1136Wk) it.next()).a);
}
lWm.c(arrayList);
String str3 = cgi.q;
if (str3 == null) {
C14957gcv.a("");
str3 = null;
}
C14930gcM.IeS ieS = new C14930gcM.IeS();
List<C1136Wk> list4 = cgi.f8603o;
if (list4 == null) {
C14957gcv.a("");
list4 = null;
}
for (C1136Wk c1136Wk : list4) {
if (C14957gcv.b((Object) c1136Wk.b, (Object) str3)) {
List<C1136Wk> list5 = cgi.f8603o;
if (list5 == null) {
C14957gcv.a("");
list5 = null;
}
ieS.b = list5.indexOf(c1136Wk);
}
}
ZI.IeS ieS2 = new ZI.IeS(ieS) { // from class: o.cGM
private C14930gcM.IeS c;
@Override // o.ZI.IeS
public final void e(Object obj) {
cGI.c(this.c, (InterfaceC9582dmU.LWm) obj);
}
{
this.c = ieS;
}
};
if (cgi.f != 0) {
ieS2.e(cgi.f);
}
C15716hvG.RVV rvv = C15716hvG.d;
z = C15716hvG.a;
z2 = C15716hvG.e;
z3 = C15716hvG.b;
lWm.a(C15716hvG.RVV.d("investment_onboard_maritalinfo", z, z2, z3, null));
return;
}
}
lWm.g();
}
public static final /* synthetic */ void e(cGI cgi) {
if (cgi.f != 0) {
cgi.f.ar_();
}
}
public static final /* synthetic */ void e(cGI cgi, List list) {
if (cgi.f != 0) {
cgi.f.ar_();
}
cgi.f8603o = list;
ZI.IeS ieS = new ZI.IeS(cgi) { // from class: o.cGV
private cGI b;
@Override // o.ZI.IeS
public final void e(Object obj) {
cGI.a(this.b, (InterfaceC9582dmU.LWm) obj);
}
{
this.b = cgi;
}
};
if (cgi.f != 0) {
ieS.e(cgi.f);
}
}
public static final /* synthetic */ void b(cGI cgi, C1131Wh c1131Wh) {
cgi.q = c1131Wh.b;
C16082ky c16082ky = cgi.d;
ZqN zqN = new ZqN(cgi);
saX sax = new saX(cgi);
C14957gcv.e(zqN, "");
C14957gcv.e(sax, "");
c16082ky.b(c16082ky.i, zqN, sax, new AbstractC15351go.LWm(), new C16082ky.Sts(c16082ky));
}
public static final /* synthetic */ void e(cGI cgi, Throwable th) {
ggV ggv;
if (th instanceof RetrofitException) {
VCl vCl = ((RetrofitException) th).e;
if (C14957gcv.b((Object) "3010", (Object) ((vCl == null || (ggv = vCl.c) == null) ? null : ggv.e))) {
if (cgi.f != 0) {
cgi.f.ar_();
}
ZI.IeS ieS = new ZI.IeS() { // from class: o.cHb
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9582dmU.LWm) obj).e();
}
};
if (cgi.f != 0) {
ieS.e(cgi.f);
return;
}
return;
}
}
C0690Mh.IeS ieS2 = C0690Mh.IeS.JUST_DISMISS;
if (cgi.b(th)) {
cgi.d(cgi.j.d(th, ieS2));
}
}
public static final /* synthetic */ void d(cGI cgi, Throwable th, C0690Mh.IeS ieS) {
if (cgi.b(th)) {
cgi.d(cgi.j.d(th, ieS));
}
}
public static final /* synthetic */ void b(cGI cgi, Throwable th, Runnable runnable) {
if (cgi.b(th)) {
cgi.d(cgi.j.c(th, runnable));
}
}
private final void d() {
this.t = "";
this.b = "";
this.l = "";
this.k = null;
this.h = false;
this.g = false;
}
static {
new HBt((byte) 0);
}
}