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

546 lines
19 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import o.C0690Mh;
import o.C5167bnt;
import o.PRA;
import o.ZI;
import o.wRi;
/* renamed from: o.bnt, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C5167bnt extends ZI<InterfaceC9255dgK> {
public boolean a;
public final C15750iL b;
public int c;
public String d;
public List<? extends C0405Fw> e;
public int g;
int h;
int i;
public Set<Sts> k;
private final Fdp l;
private final C17101tt m;
/* renamed from: o, reason: collision with root package name */
private final C16127lV f8579o;
/* renamed from: o.bnt$Sts */
/* loaded from: classes4.dex */
public enum Sts {
BUSINESS_INDUSTRY,
BUSINESS_TYPE,
STORE_TYPE,
LOAN_PURPOSE,
NET_INCOME,
SOURCE_OF_INCOME,
BANK_ACCOUNT
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C5167bnt(C15750iL c15750iL, Fdp fdp, C17101tt c17101tt, C16127lV c16127lV, C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(c15750iL, "");
C14957gcv.e(fdp, "");
C14957gcv.e(c17101tt, "");
C14957gcv.e(c16127lV, "");
C14957gcv.e(c16903sI, "");
this.b = c15750iL;
this.l = fdp;
this.m = c17101tt;
this.f8579o = c16127lV;
this.e = C14851gaI.c;
this.k = new LinkedHashSet();
this.a = true;
}
/* renamed from: o.bnt$HBt */
/* loaded from: classes4.dex */
public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C5167bnt d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C5167bnt.e(this.d, th2, C0690Mh.IeS.JUST_DISMISS);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public HBt(C5167bnt c5167bnt) {
super(1);
this.d = c5167bnt;
}
}
/* renamed from: o.bnt$LWm */
/* loaded from: classes4.dex */
public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<MW, C14866gag> {
private C5167bnt d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(MW mw) {
int i;
String str;
final MW mw2 = mw;
C14957gcv.e(mw2, "");
C5167bnt c5167bnt = this.d;
ZI.IeS ieS = new ZI.IeS(mw2) { // from class: o.bnL
private MW b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5167bnt.LWm.d(this.b, (InterfaceC9255dgK) obj);
}
{
this.b = mw2;
}
};
if (c5167bnt.f != 0) {
ieS.e(c5167bnt.f);
}
this.d.h = mw2.e;
this.d.g = mw2.i.a.c;
this.d.i = mw2.i.a.e;
MY my = mw2.b;
if (my != null && (str = my.b) != null) {
C5167bnt c5167bnt2 = this.d;
c5167bnt2.d = str;
c5167bnt2.k.add(Sts.BUSINESS_INDUSTRY);
}
String str2 = mw2.a;
if (str2 != null && str2.length() != 0 && (C14957gcv.b((Object) mw2.a, (Object) "JURISTIC") || C14957gcv.b((Object) mw2.a, (Object) "NON_JURISTIC"))) {
this.d.k.add(Sts.BUSINESS_TYPE);
}
NN nn = mw2.g;
if (nn != null) {
C5167bnt c5167bnt3 = this.d;
if (nn.c || nn.b || nn.a) {
c5167bnt3.k.add(Sts.STORE_TYPE);
}
}
C0750Ns c0750Ns = mw2.d;
if (c0750Ns != null) {
C5167bnt c5167bnt4 = this.d;
if (c0750Ns.d || c0750Ns.e) {
c5167bnt4.k.add(Sts.LOAN_PURPOSE);
}
}
if (mw2.c != null) {
this.d.k.add(Sts.NET_INCOME);
}
final C5167bnt c5167bnt5 = this.d;
ZI.IeS ieS2 = new ZI.IeS(c5167bnt5, mw2) { // from class: o.bnH
private C5167bnt a;
private MW b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5167bnt.LWm.d(this.a, this.b, (InterfaceC9255dgK) obj);
}
{
this.a = c5167bnt5;
this.b = mw2;
}
};
if (c5167bnt5.f != 0) {
ieS2.e(c5167bnt5.f);
}
C5167bnt c5167bnt6 = this.d;
List<MX> list = mw2.h;
if (list != null) {
ArrayList arrayList = new ArrayList();
for (Object obj : list) {
if (((MX) obj).j == MT.ACCOUNT) {
arrayList.add(obj);
}
}
i = arrayList.size();
} else {
i = 0;
}
c5167bnt6.c = i;
if (this.d.c >= this.d.g) {
this.d.k.add(Sts.BANK_ACCOUNT);
}
this.d.l.d();
Fdp fdp = this.d.l;
fdp.d(fdp.i, new wRi.LWm<List<? extends C1259ZbO>>(this.d, mw2) { // from class: o.bnt.LWm.5
private MW c;
private C5167bnt d;
{
this.d = r1;
this.c = mw2;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj2) {
List list2 = (List) obj2;
C14957gcv.e(list2, "");
C5167bnt c5167bnt7 = this.d;
final C16127lV c16127lV = c5167bnt7.f8579o;
final String M = this.d.b.e.c.M();
C14957gcv.c((Object) M, "");
YKU yku = new YKU(list2);
YKU yku2 = new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(c16127lV, M) { // from class: o.lW
private String a;
private C16127lV b;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj3) {
return C16127lV.d(this.a, (C1259ZbO) obj3);
}
{
this.b = c16127lV;
this.a = M;
}
}));
List<? extends C0405Fw> list3 = (List) new YKU(yku2.a, new C17745zRk(yku2.b, xNZ.a(new InterfaceC1244Ytw() { // from class: o.lX
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj3) {
return ((C0405Fw) obj3).d;
}
}))).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
C14957gcv.c(list3, "");
C14957gcv.e(list3, "");
c5167bnt7.e = list3;
C5167bnt c5167bnt8 = this.d;
List<? extends C0405Fw> list4 = c5167bnt8.e;
Qve qve = this.c.j;
C5167bnt.c(c5167bnt8, list4, qve != null ? qve.d : null);
if (this.c.j != null) {
this.d.k.add(Sts.SOURCE_OF_INCOME);
}
C5167bnt.c(this.d);
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C14957gcv.e(th, "");
C5167bnt.e(this.d, th, C0690Mh.IeS.NAVIGATE_BACK);
}
});
return C14866gag.c;
}
public static /* synthetic */ void d(C5167bnt c5167bnt, MW mw, InterfaceC9255dgK interfaceC9255dgK) {
C14957gcv.e(c5167bnt, "");
C14957gcv.e(mw, "");
interfaceC9255dgK.e(c5167bnt.g);
ArrayList arrayList = mw.h;
if (arrayList == null) {
arrayList = new ArrayList();
}
int i = c5167bnt.i;
int i2 = c5167bnt.g;
interfaceC9255dgK.d(arrayList, i);
}
public static /* synthetic */ void d(MW mw, InterfaceC9255dgK interfaceC9255dgK) {
C14957gcv.e(mw, "");
interfaceC9255dgK.c(mw);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public LWm(C5167bnt c5167bnt) {
super(1);
this.d = c5167bnt;
}
}
/* renamed from: o.bnt$saX */
/* loaded from: classes4.dex */
public static final class saX extends AbstractC14961gcz implements InterfaceC14894gbR<msZ, MW> {
private C5167bnt c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ MW invoke(msZ msz) {
String str;
Boolean bool;
Boolean bool2;
Boolean bool3;
Boolean bool4;
Boolean bool5;
msZ msz2 = msz;
C14957gcv.e(msz2, "");
C17101tt c17101tt = this.c.m;
C14957gcv.e(msz2, "");
xEz xez = msz2.g;
C14957gcv.e(xez, "");
NQ nq = new NQ(new C0752Nu(xez.c.a, xez.c.d));
fEQ feq = msz2.a;
MY my = new MY(feq != null ? feq.b : null, feq != null ? feq.d : null);
String str2 = msz2.e;
C13529fbz c13529fbz = msz2.j;
NN nn = new NN((c13529fbz == null || (bool5 = c13529fbz.a) == null) ? false : bool5.booleanValue(), (c13529fbz == null || (bool4 = c13529fbz.b) == null) ? false : bool4.booleanValue(), (c13529fbz == null || (bool3 = c13529fbz.c) == null) ? false : bool3.booleanValue());
C3785bGn c3785bGn = msz2.c;
C0750Ns c0750Ns = new C0750Ns((c3785bGn == null || (bool2 = c3785bGn.b) == null) ? false : bool2.booleanValue(), (c3785bGn == null || (bool = c3785bGn.a) == null) ? false : bool.booleanValue());
Integer num = msz2.d;
Qve qve = msz2.i;
ArrayList arrayList = msz2.h;
if (arrayList == null) {
arrayList = new ArrayList();
}
int i = msz2.g.c.a;
C14957gcv.e(arrayList, "");
MX mx = new MX(0, "", "", "", "", "", MT.PLACE_HOLDER);
ArrayList arrayList2 = new ArrayList();
Iterator<PbV> it = arrayList.iterator();
while (it.hasNext()) {
PbV next = it.next();
C14957gcv.e(next, "");
int i2 = next.a;
String str3 = next.d;
Iterator<PbV> it2 = it;
String b_ = c17101tt.b_(next.e);
C14957gcv.c((Object) b_, "");
C17101tt c17101tt2 = c17101tt;
String str4 = next.b;
Qve qve2 = qve;
String str5 = next.c;
Integer num2 = num;
C0750Ns c0750Ns2 = c0750Ns;
if (C14957gcv.b((Object) "014", (Object) next.d)) {
str = C6583cXR.b(next.c, false);
} else {
str = next.c;
}
C14957gcv.c((Object) str, "");
arrayList2.add(new MX(i2, str3, b_, str4, str5, str, MT.ACCOUNT));
it = it2;
c17101tt = c17101tt2;
qve = qve2;
num = num2;
c0750Ns = c0750Ns2;
}
Integer num3 = num;
C0750Ns c0750Ns3 = c0750Ns;
Qve qve3 = qve;
while (arrayList2.size() < i) {
arrayList2.add(mx);
}
return new MW(nq, my, str2, nn, c0750Ns3, num3, qve3, arrayList2, msz2.b);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public saX(C5167bnt c5167bnt) {
super(1);
this.c = c5167bnt;
}
}
public final void a(final Sts sts, boolean z) {
C14957gcv.e(sts, "");
if (z) {
this.k.add(sts);
ZI.IeS ieS = new ZI.IeS(sts) { // from class: o.bnr
private C5167bnt.Sts a;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5167bnt.b(this.a, (InterfaceC9255dgK) obj);
}
{
this.a = sts;
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
}
this.k.remove(sts);
ZI.IeS ieS2 = new ZI.IeS(sts) { // from class: o.bnF
private C5167bnt.Sts b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5167bnt.e(this.b, (InterfaceC9255dgK) obj);
}
{
this.b = sts;
}
};
if (this.f != 0) {
ieS2.e(this.f);
}
}
public final boolean e(String str) {
if (str.length() == 0) {
return false;
}
Double c = C6583cXR.c(str);
C14957gcv.c(c, "");
return c.doubleValue() > ((double) this.h);
}
/* renamed from: o.bnt$IeS */
/* loaded from: classes4.dex */
public static final class IeS extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private C5167bnt d;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
C5167bnt.c(this.d);
C5167bnt c5167bnt = this.d;
ZI.IeS ieS = new ZI.IeS() { // from class: o.bnJ
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9255dgK) obj).d();
}
};
if (c5167bnt.f != 0) {
ieS.e(c5167bnt.f);
}
this.d.a = true;
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public IeS(C5167bnt c5167bnt) {
super(0);
this.d = c5167bnt;
}
}
/* renamed from: o.bnt$RVV */
/* loaded from: classes4.dex */
public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C5167bnt e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C5167bnt.e(this.e, th2, C0690Mh.IeS.JUST_DISMISS);
this.e.a = true;
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public RVV(C5167bnt c5167bnt) {
super(1);
this.e = c5167bnt;
}
}
public static /* synthetic */ void e(Sts sts, InterfaceC9255dgK interfaceC9255dgK) {
C14957gcv.e(sts, "");
C14957gcv.c(interfaceC9255dgK, "");
interfaceC9255dgK.e(sts, false);
}
public static /* synthetic */ void d(Sts sts, String str, InterfaceC9255dgK interfaceC9255dgK) {
C14957gcv.e(sts, "");
C14957gcv.e(str, "");
interfaceC9255dgK.e(sts, sts == Sts.NET_INCOME && str.length() == 0);
}
public static /* synthetic */ void c(C5167bnt c5167bnt, C5045bld c5045bld, InterfaceC9255dgK interfaceC9255dgK) {
C14957gcv.e(c5167bnt, "");
C14957gcv.e(c5045bld, "");
interfaceC9255dgK.e(c5167bnt.m.c(c5045bld));
interfaceC9255dgK.c(c5167bnt.i);
}
public static /* synthetic */ void d(MX mx, InterfaceC9255dgK interfaceC9255dgK) {
C14957gcv.e(mx, "");
int i = mx.g;
interfaceC9255dgK.c(new C5045bld(String.valueOf(i), mx.e, mx.d, mx.c, mx.b));
}
public static /* synthetic */ void d(C5167bnt c5167bnt, C5045bld c5045bld, InterfaceC9255dgK interfaceC9255dgK) {
C14957gcv.e(c5167bnt, "");
C14957gcv.e(c5045bld, "");
interfaceC9255dgK.c(c5167bnt.m.c(c5045bld));
interfaceC9255dgK.c(c5167bnt.i);
}
public static /* synthetic */ void e(C5167bnt c5167bnt, C5045bld c5045bld, InterfaceC9255dgK interfaceC9255dgK) {
C14957gcv.e(c5167bnt, "");
C14957gcv.e(c5045bld, "");
interfaceC9255dgK.a(c5167bnt.m.c(c5045bld));
interfaceC9255dgK.c(c5167bnt.i);
}
public static /* synthetic */ void b(Sts sts, InterfaceC9255dgK interfaceC9255dgK) {
C14957gcv.e(sts, "");
interfaceC9255dgK.c(sts);
}
public static /* synthetic */ void d(List list, String str, InterfaceC9255dgK interfaceC9255dgK) {
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(((C0405Fw) it.next()).d);
}
ArrayList arrayList2 = arrayList;
int i = 0;
if (str != null) {
Iterator it2 = list.iterator();
while (true) {
if (!it2.hasNext()) {
i = -1;
break;
} else if (C14957gcv.b((Object) ((C0405Fw) it2.next()).b, (Object) str)) {
break;
} else {
i++;
}
}
i++;
}
interfaceC9255dgK.a(arrayList2, i);
}
public static final /* synthetic */ void c(C5167bnt c5167bnt, final List list, final String str) {
ZI.IeS ieS = new ZI.IeS(list, str) { // from class: o.bnC
private List a;
private String b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5167bnt.d(this.a, this.b, (InterfaceC9255dgK) obj);
}
{
this.a = list;
this.b = str;
}
};
if (c5167bnt.f != 0) {
ieS.e(c5167bnt.f);
}
}
public static final /* synthetic */ void c(C5167bnt c5167bnt) {
if (c5167bnt.f != 0) {
c5167bnt.f.ar_();
}
}
public static final /* synthetic */ void e(C5167bnt c5167bnt, Throwable th, C0690Mh.IeS ieS) {
if (c5167bnt.b(th)) {
c5167bnt.d(c5167bnt.j.d(th, ieS));
}
}
}