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

642 lines
19 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import o.C0592Ke;
import o.C2050aVt;
import o.InterfaceC6621cYR;
import o.ZI;
import o.wRi;
/* renamed from: o.aVt */
/* loaded from: classes4.dex */
public class C2050aVt extends ZI<InterfaceC6621cYR.XOs> {
private final C16818rW A;
private final DCC B;
private final IPc C;
private boolean D;
public C0278DGx a;
public String b;
public SP c;
public C0933RvJ d;
public String e;
public List<C0610Kp> g;
public List<C0606Kl> h;
public boolean i;
public yJa k;
public boolean l;
public String m;
public boolean n;
/* renamed from: o */
public boolean f8507o;
public String p;
public JZY q;
public String r;
public JZY s;
public String t;
public JZY u;
public final String v;
private final C16127lV w;
public String x;
public List<C0405Fw> y;
@InterfaceC13391fZD
public C2050aVt(C16903sI c16903sI, IPc iPc, DCC dcc, C16818rW c16818rW, C16127lV c16127lV, String str) {
super(c16903sI);
this.l = true;
this.D = true;
this.p = "";
this.r = null;
this.n = false;
this.f8507o = true;
this.C = iPc;
this.B = dcc;
this.A = c16818rW;
this.w = c16127lV;
this.v = str;
}
public static boolean d(String str, String str2, String str3) {
return ("N".equals(str) || "N".equals(str2) || "N".equals(str3)) ? false : true;
}
public final void e(String str) {
if (C6583cXR.b("^[0-9\\u0E01-\\u0E39\\u0E40-\\u0E4Ca-zA-Z _*\"#&()@,.'\\-/]+$", gjJ.b(str)) || gjJ.b((CharSequence) str)) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.aVu
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC6621cYR.XOs) obj).j();
}
};
if (this.f != 0) {
ieS.e(this.f);
}
if (gjJ.b((CharSequence) str)) {
str = null;
}
this.e = str;
this.D = true;
} else {
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.aVy
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC6621cYR.XOs) obj).d();
}
};
if (this.f != 0) {
ieS2.e(this.f);
}
this.D = false;
}
C2052aVv c2052aVv = new C2052aVv(this);
if (this.f != 0) {
c2052aVv.e(this.f);
}
}
public final LCa c() {
yJa yja = this.k;
if (yja == null) {
return new LCa(this.a.f.e, this.a.f.b, this.a.f.i);
}
return new LCa(yja.e, this.k.b, this.k.i);
}
public final Integer a() {
for (int i = 0; i < this.g.size(); i++) {
if (this.g.get(i).d != null && this.g.get(i).d.equals(this.u.b)) {
return Integer.valueOf(i);
}
}
return null;
}
/* renamed from: o.aVt$RVV */
/* loaded from: classes4.dex */
public class RVV extends wRi.LWm<C0278DGx> {
private C2050aVt b;
private RVV(C2050aVt c2050aVt) {
this.b = c2050aVt;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
String str;
String str2;
String str3;
String str4;
String str5;
SP e;
String str6;
String str7;
ArrayList emptyList;
ArrayList emptyList2;
String str8;
Integer num;
C0278DGx c0278DGx = (C0278DGx) obj;
this.b.a = c0278DGx;
C2050aVt c2050aVt = this.b;
String str9 = "";
if (c0278DGx.l == null) {
str = "";
} else {
str = c0278DGx.l.c;
}
C2050aVt.b(c2050aVt, str);
this.b.k = c0278DGx.f;
this.b.e = c0278DGx.c;
C2050aVt c2050aVt2 = this.b;
c2050aVt2.p = c2050aVt2.k.f;
C2050aVt c2050aVt3 = this.b;
c2050aVt3.r = c2050aVt3.k.h;
this.b.u = c0278DGx.n;
this.b.q = c0278DGx.i;
C2050aVt.n(this.b);
C16818rW c16818rW = this.b.A;
C0592Ke.IeS d = C0592Ke.d();
if (c0278DGx.f == null) {
str2 = "";
} else {
str2 = c0278DGx.f.b;
}
d.h = str2;
if (c0278DGx.f == null) {
str3 = "";
} else {
str3 = c0278DGx.f.e;
}
d.f = str3;
if (c0278DGx.f == null) {
str4 = "";
} else {
str4 = c0278DGx.f.j;
}
d.g = str4;
if (c0278DGx.l == null) {
str5 = "";
} else {
str5 = c0278DGx.l.a;
}
d.b = str5;
d.a = c0278DGx.c;
C17665yk c17665yk = c16818rW.d;
if (C17665yk.a(c0278DGx.k) != null) {
C17665yk c17665yk2 = c16818rW.d;
e = C17665yk.a(c0278DGx.k);
} else {
e = SP.e();
}
d.l = e;
d.e = c0278DGx.b;
if (c0278DGx.n.b == null) {
str6 = "";
} else {
str6 = c0278DGx.n.b;
}
d.n = str6;
if (c0278DGx.n.d == null) {
str7 = "";
} else {
str7 = c0278DGx.n.d;
}
d.k = str7;
if (c0278DGx.e != null) {
C16946sd c16946sd = c16818rW.a;
List<QAW> list = c0278DGx.e;
C14957gcv.e(list, "");
List<QAW> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
for (QAW qaw : list2) {
arrayList.add(new C0610Kp(qaw.a, qaw.b, qaw.e, qaw.d, qaw.c));
}
emptyList = arrayList;
} else {
emptyList = Collections.emptyList();
}
d.c = emptyList;
if (c0278DGx.a != null) {
C16951sg c16951sg = c16818rW.b;
List<C12371ewu> list3 = c0278DGx.a;
C14957gcv.e(list3, "");
List<C12371ewu> list4 = list3;
C14957gcv.e(list4, "");
ArrayList arrayList2 = new ArrayList(list4 instanceof Collection ? list4.size() : 10);
for (C12371ewu c12371ewu : list4) {
arrayList2.add(new C0606Kl(c12371ewu.b, c12371ewu.c, c12371ewu.a));
}
emptyList2 = arrayList2;
} else {
emptyList2 = Collections.emptyList();
}
d.d = emptyList2;
if (c0278DGx.i.b == null) {
str8 = "";
} else {
str8 = c0278DGx.i.b;
}
d.i = str8;
if (c0278DGx.i.d != null) {
str9 = c0278DGx.i.d;
}
d.m = str9;
d.j = c0278DGx.g;
int i = 0;
C0592Ke c0592Ke = new C0592Ke(d, (byte) 0);
this.b.g = c0592Ke.c;
this.b.h = c0592Ke.b;
this.b.c = c0592Ke.f;
Integer a = this.b.a();
while (true) {
if (i >= this.b.h.size()) {
num = null;
break;
} else {
if (((C0606Kl) this.b.h.get(i)).a != null && ((C0606Kl) this.b.h.get(i)).a.equals(this.b.q.b)) {
num = Integer.valueOf(i);
break;
}
i++;
}
}
Integer num2 = num;
C2050aVt c2050aVt4 = this.b;
ZI.IeS ieS = new ZI.IeS(this, c0278DGx, c0592Ke, a, num2) { // from class: o.aVz
private C0592Ke a;
private Integer b;
private C0278DGx c;
private Integer d;
private C2050aVt.RVV e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C2050aVt.RVV.d(this.e, this.c, this.a, this.d, this.b, (InterfaceC6621cYR.XOs) obj2);
}
{
this.e = this;
this.c = c0278DGx;
this.a = c0592Ke;
this.d = a;
this.b = num2;
}
};
if (c2050aVt4.f != 0) {
ieS.e(c2050aVt4.f);
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C2050aVt.l(this.b);
if (this.b.i(th)) {
return;
}
C2050aVt c2050aVt = this.b;
ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.aVD
private C2050aVt.RVV a;
private Throwable e;
@Override // o.ZI.IeS
public final void e(Object obj) {
InterfaceC6621cYR.XOs xOs = (InterfaceC6621cYR.XOs) obj;
xOs.c(this.a.b.j.e(this.e));
}
{
this.a = this;
this.e = th;
}
};
if (c2050aVt.f != 0) {
ieS.e(c2050aVt.f);
}
}
public static /* synthetic */ void b(RVV rvv, SP sp, InterfaceC6621cYR.XOs xOs) {
C2050aVt c2050aVt = rvv.b;
if (C2050aVt.b(sp)) {
xOs.b();
String str = sp.j;
C14957gcv.e("", "");
if (str == null) {
str = "";
}
xOs.e(str);
return;
}
xOs.g();
}
public static /* synthetic */ void d(RVV rvv, C0278DGx c0278DGx, C0592Ke c0592Ke, Integer num, Integer num2, InterfaceC6621cYR.XOs xOs) {
String str;
xOs.a(c0278DGx.h);
xOs.a(gjJ.b(c0592Ke.j), c0592Ke.h);
if (rvv.b.t.equals("COMMERCIAL_LOAN")) {
xOs.h();
}
SP sp = rvv.b.c;
C2050aVt c2050aVt = rvv.b;
ZI.IeS ieS = new ZI.IeS(rvv, sp) { // from class: o.aVA
private C2050aVt.RVV b;
private SP d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2050aVt.RVV.b(this.b, this.d, (InterfaceC6621cYR.XOs) obj);
}
{
this.b = rvv;
this.d = sp;
}
};
if (c2050aVt.f != 0) {
ieS.e(c2050aVt.f);
}
xOs.c(gjJ.b(c0592Ke.d));
xOs.b(gjJ.b(c0592Ke.a));
xOs.d(c0592Ke.g, c0278DGx.f.d);
String str2 = c0592Ke.g;
String str3 = c0278DGx.f.a;
if (num == null) {
str = "Y";
} else {
str = ((C0610Kp) rvv.b.g.get(num.intValue())).a;
}
xOs.a(str2, str3, str);
xOs.d(c0592Ke.c, num);
xOs.b(c0592Ke.b, num2);
xOs.c(rvv.b.i());
C0933RvJ c0933RvJ = c0278DGx.l;
C2050aVt.k(rvv.b);
rvv.b.B.c();
DCC dcc = rvv.b.B;
dcc.d(dcc.i, new IeS(rvv.b, c0933RvJ));
}
/* synthetic */ RVV(C2050aVt c2050aVt, byte b) {
this(c2050aVt);
}
}
/* renamed from: o.aVt$IeS */
/* loaded from: classes4.dex */
public class IeS extends wRi.LWm<zwR> {
private C0933RvJ a;
private C2050aVt e;
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
String str;
zwR zwr = (zwR) obj;
C2050aVt.q(this.e);
C0933RvJ c0933RvJ = this.a;
if (c0933RvJ == null || gjJ.b((CharSequence) c0933RvJ.c)) {
str = "TH";
} else {
str = this.a.c;
}
C2050aVt.b(this.e, str);
C2050aVt c2050aVt = this.e;
c2050aVt.y = c2050aVt.w.d(zwr);
C2050aVt c2050aVt2 = this.e;
ZI.IeS ieS = new ZI.IeS(this, str) { // from class: o.aVx
private C2050aVt.IeS c;
private String e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C2050aVt.IeS.a(this.c, this.e, (InterfaceC6621cYR.XOs) obj2);
}
{
this.c = this;
this.e = str;
}
};
if (c2050aVt2.f != 0) {
ieS.e(c2050aVt2.f);
}
}
public IeS(C2050aVt c2050aVt, C0933RvJ c0933RvJ) {
this.e = c2050aVt;
this.a = c0933RvJ;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C2050aVt.a(this.e, th);
}
public static /* synthetic */ void a(IeS ieS, String str, InterfaceC6621cYR.XOs xOs) {
for (int i = 0; i < ieS.e.y.size(); i++) {
if (str.equalsIgnoreCase(((C0405Fw) ieS.e.y.get(i)).b)) {
xOs.b(ieS.e.y, i);
return;
}
}
}
}
/* renamed from: o.aVt$HBt */
/* loaded from: classes4.dex */
public class HBt extends wRi.LWm<C16479ohe> {
private boolean c;
private C2050aVt d;
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
C16479ohe c16479ohe = (C16479ohe) obj;
C2050aVt.p(this.d);
if (this.c) {
this.d.j();
return;
}
C2050aVt c2050aVt = this.d;
ZI.IeS ieS = new ZI.IeS(this, c16479ohe) { // from class: o.aVC
private C16479ohe c;
private C2050aVt.HBt d;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C2050aVt.HBt.c(this.d, this.c, (InterfaceC6621cYR.XOs) obj2);
}
{
this.d = this;
this.c = c16479ohe;
}
};
if (c2050aVt.f != 0) {
ieS.e(c2050aVt.f);
}
}
public HBt(C2050aVt c2050aVt, boolean z) {
this.d = c2050aVt;
this.c = z;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C2050aVt.b(this.d, th);
}
public static /* synthetic */ void c(HBt hBt, C16479ohe c16479ohe, InterfaceC6621cYR.XOs xOs) {
boolean a = xOs.a();
if (a && c16479ohe.b) {
xOs.d(c16479ohe.a, c16479ohe.e);
return;
}
if (!a || !c16479ohe.a) {
if (a && c16479ohe.e) {
xOs.e();
return;
} else {
xOs.c();
return;
}
}
if (hBt.d.i) {
xOs.a(c16479ohe.e);
} else {
xOs.d(c16479ohe.e);
}
}
}
public static /* synthetic */ void e(C2050aVt c2050aVt, Integer num, InterfaceC6621cYR.XOs xOs) {
String str;
String str2 = c2050aVt.k.d;
String str3 = c2050aVt.k.a;
if (num == null) {
str = "Y";
} else {
str = c2050aVt.g.get(num.intValue()).a;
}
xOs.a(str2, str3, str);
}
static /* synthetic */ void b(C2050aVt c2050aVt, String str) {
C0933RvJ c0933RvJ = new C0933RvJ();
c0933RvJ.c = str;
c2050aVt.d = c0933RvJ;
}
static /* synthetic */ void n(C2050aVt c2050aVt) {
if (c2050aVt.f != 0) {
c2050aVt.f.ar_();
}
}
static /* synthetic */ void l(C2050aVt c2050aVt) {
if (c2050aVt.f != 0) {
c2050aVt.f.ar_();
}
}
static /* synthetic */ void k(C2050aVt c2050aVt) {
if (c2050aVt.f != 0) {
c2050aVt.f.y();
}
}
static /* synthetic */ void q(C2050aVt c2050aVt) {
if (c2050aVt.f != 0) {
c2050aVt.f.ar_();
}
}
static /* synthetic */ void a(C2050aVt c2050aVt, Throwable th) {
if (c2050aVt.b(th)) {
c2050aVt.d(c2050aVt.j.e(th));
}
}
static /* synthetic */ void p(C2050aVt c2050aVt) {
if (c2050aVt.f != 0) {
c2050aVt.f.ar_();
}
}
static /* synthetic */ void b(C2050aVt c2050aVt, Throwable th) {
if (c2050aVt.b(th)) {
c2050aVt.d(c2050aVt.j.e(th));
}
}
public final JZY d() {
if ("N".equals(this.a.g) || "N".equals(this.k.a)) {
return null;
}
if (a() == null || !"N".equals(this.g.get(a().intValue()).a)) {
return this.q;
}
return null;
}
public final JZY b() {
if ("N".equals(this.a.g)) {
return null;
}
return "N".equals(this.k.d) ? new JZY(this.k.c.b, this.k.c.d) : this.u;
}
private boolean e(JZY jzy) {
if ("N".equals(this.a.g) || "N".equals(this.a.f.a)) {
return true;
}
String str = jzy.b;
return !(str == null || str.equals(""));
}
private boolean b(JZY jzy) {
if ("N".equals(this.a.g) || "N".equals(this.a.f.d)) {
return true;
}
String str = jzy.b;
return !(str == null || str.equals(""));
}
public static boolean b(SP sp) {
String str;
String str2;
String str3;
String str4;
String str5;
String str6;
return (sp == null || (str = sp.h) == null || str.equals("") || (str2 = sp.a) == null || str2.equals("") || (str3 = sp.c) == null || str3.equals("") || (str4 = sp.g) == null || str4.equals("") || (str5 = sp.l) == null || str5.equals("") || (str6 = sp.j) == null || str6.equals("")) ? false : true;
}
public final void j() {
if (this.f != 0) {
this.f.y();
}
this.C.d(this.b, this.t);
IPc iPc = this.C;
iPc.d(iPc.i, new RVV(this, (byte) 0));
}
public final boolean i() {
String str;
C0933RvJ c0933RvJ;
C0278DGx c0278DGx = this.a;
return (c0278DGx == null || c0278DGx.f == null || (str = this.a.f.b) == null || str.equals("") || !b(this.u) || !e(this.q) || (c0933RvJ = this.d) == null || gjJ.b((CharSequence) c0933RvJ.c) || !b(this.c) || !this.D || !this.l || this.x == null || this.m == null) ? false : true;
}
public final void a(C17503xMd c17503xMd, boolean z) {
if (this.f != 0) {
this.f.y();
}
this.C.d(c17503xMd);
IPc iPc = this.C;
iPc.d(iPc.i, new HBt(this, z));
}
}