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

711 lines
24 KiB
Java

package o;
import com.scb.phone.data.entity.transfer.SingleDataEntity;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import o.C16698qSw;
import o.C17163uSH;
import o.LBA;
import o.LYg;
import o.nno;
/* renamed from: o.nnH, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C16372nnH implements ZKS {
final hNL a;
final FcY b;
final yBX c;
final C13716ffa d;
final DCG e;
final C17516xRu f;
final C15732iCN g;
final OTe h;
final kBE i;
final WDG j;
private final C11389eeS k;
private final Sqz l;
private final String n;
/* renamed from: o, reason: collision with root package name */
private final xWX f9226o;
@InterfaceC13391fZD
public C16372nnH(xWX xwx, OTe oTe, WDG wdg, FcY fcY, yBX ybx, C15732iCN c15732iCN, kBE kbe, C17516xRu c17516xRu, hNL hnl, C13716ffa c13716ffa, DCG dcg, Sqz sqz, C11389eeS c11389eeS, String str) {
this.f9226o = xwx;
this.h = oTe;
this.j = wdg;
this.b = fcY;
this.c = ybx;
this.g = c15732iCN;
this.i = kbe;
this.f = c17516xRu;
this.e = dcg;
this.a = hnl;
this.d = c13716ffa;
this.l = sqz;
this.k = c11389eeS;
this.n = str;
}
@Override // o.ZKS
public final AbstractC13163fSk<aKU> o() {
xWX xwx = this.f9226o;
return xwx.d.getSummary(this.n).flatMap(new fSS(this) { // from class: o.dKi
private C16372nnH a;
@Override // o.fSS
public final Object a(Object obj) {
String str;
String str2;
String str3;
String str4;
String str5;
ArrayList arrayList;
ArrayList arrayList2;
WDG wdg = this.a.j;
C17497xKC c17497xKC = (C17497xKC) ((SingleDataEntity) obj).getData();
String str6 = "";
C14957gcv.e(c17497xKC, "");
String str7 = c17497xKC.j;
String str8 = c17497xKC.f;
String str9 = c17497xKC.b;
String str10 = c17497xKC.d;
List<nEM> list = c17497xKC.a;
if (list != null) {
List<nEM> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList3 = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
Iterator it = list2.iterator();
while (it.hasNext()) {
nEM nem = (nEM) it.next();
arrayList3.add(new C14842gXD(EnumC3141ars.e(nem.a), nem.d, nem.e, nem.k, nem.f9220o, nem.f, nem.j, nem.c, nem.g, nem.n, nem.i, nem.h, nem.b));
it = it;
str10 = str10;
str9 = str9;
str8 = str8;
str7 = str7;
str6 = str6;
}
str = str6;
str2 = str7;
str3 = str8;
str4 = str9;
str5 = str10;
arrayList = arrayList3;
} else {
str = "";
str2 = str7;
str3 = str8;
str4 = str9;
str5 = str10;
arrayList = null;
}
List<xuN> list3 = c17497xKC.e;
if (list3 != null) {
List<xuN> list4 = list3;
C14957gcv.e(list4, str);
ArrayList arrayList4 = new ArrayList(list4 instanceof Collection ? list4.size() : 10);
for (xuN xun : list4) {
arrayList4.add(new C16141lbl(xun.a, xun.b, xun.d, xun.e, xun.c));
}
arrayList2 = arrayList4;
} else {
arrayList2 = null;
}
IcE icE = c17497xKC.h;
return AbstractC13163fSk.just(new aKU(str2, str3, str4, str5, arrayList, arrayList2, new shl(icE != null ? icE.e : null), C14957gcv.b((Object) "Y", (Object) c17497xKC.c)));
}
{
this.a = this;
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<WnJ> c(C2727ak c2727ak) {
return this.f9226o.d.getPortfolioDetails(c2727ak).flatMap(new fSS(this) { // from class: o.dnV
private C16372nnH a;
@Override // o.fSS
public final Object a(Object obj) {
return AbstractC13163fSk.just(this.a.b.c((IwZ) ((SingleDataEntity) obj).getData()));
}
{
this.a = this;
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<C15907jXj> m() {
return this.f9226o.d.getScbsOnboardingProductCatalog().flatMap(new fSS(this) { // from class: o.IXI
private C16372nnH b;
@Override // o.fSS
public final Object a(Object obj) {
C15732iCN c15732iCN = this.b.g;
C1035Udl c1035Udl = (C1035Udl) ((SingleDataEntity) obj).getData();
C14957gcv.e(c1035Udl, "");
return AbstractC13163fSk.just(new C15907jXj(c1035Udl.e));
}
{
this.b = this;
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<Boolean> d(C7583cr c7583cr) {
return this.f9226o.d.submitFATCA(c7583cr).flatMap(new fSS() { // from class: o.jfe
@Override // o.fSS
public final Object a(Object obj) {
return AbstractC13163fSk.just(Boolean.TRUE);
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<C11448efY> d(O o2) {
return this.f9226o.d.getIdentityValidation(o2).flatMap(new fSS(this) { // from class: o.Axr
private C16372nnH b;
@Override // o.fSS
public final Object a(Object obj) {
yBX ybx = this.b.c;
return AbstractC13163fSk.just(yBX.e((IQa) ((SingleDataEntity) obj).getData()));
}
{
this.b = this;
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<Mty> l() {
return this.f9226o.d.getSCBSRegistrationStage().map(new fSS() { // from class: o.kuV
@Override // o.fSS
public final Object a(Object obj) {
return Mty.valueOf(((PqB) ((SingleDataEntity) obj).getData()).c);
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<Boolean> d(C3096ar c3096ar) {
return this.f9226o.d.getSCBSEligibilities(c3096ar).map(new fSS() { // from class: o.dsd
@Override // o.fSS
public final Object a(Object obj) {
return Boolean.TRUE;
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<OIP> c(String str, String str2) {
return this.f9226o.d.registerSecurities(str, str2).map(new fSS() { // from class: o.yRo
@Override // o.fSS
public final Object a(Object obj) {
C16530pAc c16530pAc = (C16530pAc) ((SingleDataEntity) obj).getData();
return new OIP(c16530pAc.e, c16530pAc.d, c16530pAc.a, c16530pAc.c, c16530pAc.b);
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<Vtg> g() {
return this.f9226o.d.getRegistrationsStatus().doOnNext(new fSQ(this) { // from class: o.KHp
private C16372nnH c;
@Override // o.fSQ
public final void c(Object obj) {
this.c.h.d(((Gtc) ((SingleDataEntity) obj).getData()).c);
}
{
this.c = this;
}
}).flatMap(new fSS(this) { // from class: o.JWn
private C16372nnH c;
@Override // o.fSS
public final Object a(Object obj) {
kBE kbe = this.c.i;
return AbstractC13163fSk.just(kBE.e((Gtc) ((SingleDataEntity) obj).getData()));
}
{
this.c = this;
}
});
}
@Override // o.ZKS
public final String b() {
return this.h.d();
}
@Override // o.ZKS
public final AbstractC13163fSk<IwU> d() {
return this.f9226o.d.getAddresses().flatMap(new fSS(this) { // from class: o.ARr
private C16372nnH e;
@Override // o.fSS
public final Object a(Object obj) {
return AbstractC13163fSk.just(this.e.a.e((FSo) ((SingleDataEntity) obj).getData()));
}
{
this.e = this;
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<Boolean> e(C2833am c2833am) {
return this.f9226o.d.submitAddress(c2833am).flatMap(new fSS() { // from class: o.aCL
@Override // o.fSS
public final Object a(Object obj) {
return AbstractC13163fSk.just(Boolean.TRUE);
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<Boolean> c(C3149as c3149as) {
return this.f9226o.d.setMaritalStatus(c3149as).map(new fSS() { // from class: o.EYQ
@Override // o.fSS
public final Object a(Object obj) {
return Boolean.TRUE;
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<Boolean> e(C2886an c2886an) {
return this.f9226o.d.setCreditLimit(c2886an).map(new fSS() { // from class: o.ddZ
@Override // o.fSS
public final Object a(Object obj) {
return Boolean.TRUE;
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<C8712dTi> c() {
return this.f9226o.d.getCreditLimit().map(new fSS() { // from class: o.ifT
@Override // o.fSS
public final Object a(Object obj) {
return ((C17159uQZ) ((SingleDataEntity) obj).getData()).c();
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<NHA> k() {
return this.f9226o.d.getSCBSRiskLevel().map(new fSS() { // from class: o.LMd
@Override // o.fSS
public final Object a(Object obj) {
List<C2423aeN> list = ((lPQ) ((SingleDataEntity) obj).getData()).d;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
for (C2423aeN c2423aeN : list) {
arrayList.add(new MEd(Integer.parseInt(c2423aeN.a), c2423aeN.d, c2423aeN.e));
}
return new NHA(arrayList);
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<xOM> a(String str) {
xWX xwx = this.f9226o;
return xwx.d.getSuitabilities(str, this.n).map(new fSS(this) { // from class: o.uep
private C16372nnH a;
@Override // o.fSS
public final Object a(Object obj) {
OUO ouo;
Object obj2;
C16372nnH c16372nnH = this.a;
C17516xRu c17516xRu = c16372nnH.f;
OUO ouo2 = (OUO) ((SingleDataEntity) obj).getData();
C14957gcv.e(ouo2, "");
List<FPG> list = ouo2.e;
LinkedHashMap linkedHashMap = new LinkedHashMap();
for (Object obj3 : list) {
Integer valueOf = Integer.valueOf(Integer.parseInt(((FPG) obj3).d));
Object obj4 = linkedHashMap.get(valueOf);
if (obj4 == null) {
obj4 = (List) new ArrayList();
linkedHashMap.put(valueOf, obj4);
}
((List) obj4).add(obj3);
}
ArrayList arrayList = new ArrayList(linkedHashMap.size());
for (Map.Entry entry : linkedHashMap.entrySet()) {
int intValue = ((Number) entry.getKey()).intValue();
Iterable<FPG> iterable = (Iterable) entry.getValue();
C14957gcv.e(iterable, "");
ArrayList arrayList2 = new ArrayList(iterable instanceof Collection ? ((Collection) iterable).size() : 10);
for (FPG fpg : iterable) {
C16979sqQ c16979sqQ = c17516xRu.b;
List<VoY> list2 = ouo2.c;
C14957gcv.e(fpg, "");
C14957gcv.e(list2, "");
int parseInt = Integer.parseInt(fpg.c);
String str2 = fpg.a;
Iterator<T> it = list2.iterator();
while (true) {
if (!it.hasNext()) {
ouo = ouo2;
obj2 = null;
break;
}
obj2 = it.next();
VoY voY = (VoY) obj2;
ouo = ouo2;
if (C14957gcv.b((Object) voY.c, (Object) fpg.d) && C14957gcv.b((Object) voY.b, (Object) fpg.c)) {
break;
}
ouo2 = ouo;
}
VoY voY2 = (VoY) obj2;
String str3 = voY2 != null ? voY2.d : null;
String str4 = str3 == null ? "" : str3;
List<C17238vAt> list3 = fpg.e;
SJn sJn = c16979sqQ.d;
C14957gcv.e(list3, "");
ArrayList arrayList3 = new ArrayList(list3 instanceof Collection ? list3.size() : 10);
Iterator<T> it2 = list3.iterator();
while (it2.hasNext()) {
arrayList3.add(SJn.c((C17238vAt) it2.next()));
}
arrayList2.add(new WLx(parseInt, str2, str4, arrayList3));
ouo2 = ouo;
}
arrayList.add(new C14569fvg(intValue, arrayList2));
}
xOM xom = new xOM(arrayList);
c16372nnH.h.b(xom);
return xom;
}
{
this.a = this;
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<LBA> i() {
return this.f9226o.d.getInvestmentObjectives().map(new fSS() { // from class: o.ECS
@Override // o.fSS
public final Object a(Object obj) {
List<C17163uSH.IeS> list = ((C17163uSH) ((SingleDataEntity) obj).getData()).e;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
for (C17163uSH.IeS ieS : list) {
arrayList.add(new LBA.HBt(ieS.a, ieS.b));
}
return new LBA(arrayList);
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<C16698qSw> r() {
return this.f9226o.d.getSourceOfFunds().map(new fSS() { // from class: o.FEr
@Override // o.fSS
public final Object a(Object obj) {
List<LYg.LWm> list = ((LYg) ((SingleDataEntity) obj).getData()).a;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
for (LYg.LWm lWm : list) {
arrayList.add(new C16698qSw.HBt(lWm.a, lWm.d));
}
return new C16698qSw(arrayList);
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<Boolean> d(C2939ao c2939ao) {
return this.f9226o.d.registerInvestmentInfo(c2939ao).map(new fSS() { // from class: o.PCj
@Override // o.fSS
public final Object a(Object obj) {
return Boolean.TRUE;
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<lkU> n() {
return this.f9226o.d.getReviewInfo().map(new fSS(this) { // from class: o.zrj
private C16372nnH e;
@Override // o.fSS
public final Object a(Object obj) {
DCG dcg = this.e.e;
return DCG.d((C16609pgo) ((SingleDataEntity) obj).getData());
}
{
this.e = this;
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<Pag> d(R r) {
AbstractC13163fSk<SingleDataEntity<C16562pOe>> registerMobileNumber = this.f9226o.d.registerMobileNumber(r);
final kBE kbe = this.i;
Objects.requireNonNull(kbe);
return registerMobileNumber.map(new fSS(kbe) { // from class: o.mFQ
private kBE c;
@Override // o.fSS
public final Object a(Object obj) {
return this.c.d((SingleDataEntity) obj);
}
{
this.c = kbe;
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<YIs> f() {
return this.f9226o.d.getPersonalInfo().map(new fSS(this) { // from class: o.hFb
private C16372nnH a;
@Override // o.fSS
public final Object a(Object obj) {
C13716ffa c13716ffa = this.a.d;
return C13716ffa.e((C16367nkI) ((SingleDataEntity) obj).getData());
}
{
this.a = this;
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<OCc> h() {
return this.f9226o.d.getRegistrationAccounts().map(new fSS() { // from class: o.Ede
@Override // o.fSS
public final Object a(Object obj) {
List<Hou> list = ((nno) ((SingleDataEntity) obj).getData()).b;
C14957gcv.e(list, "");
ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10);
for (Hou hou : list) {
int parseInt = Integer.parseInt(hou.f);
String str = hou.c;
arrayList.add(new siJ(parseInt, str == null ? "" : str, hou.e, hou.d, hou.b, hou.a));
}
return new OCc(C14881gav.a((Iterable) arrayList, (Comparator) new nno.HBt()));
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<Boolean> e(C2780al c2780al) {
return this.f9226o.d.registerAccount(c2780al).map(new fSS() { // from class: o.BxN
@Override // o.fSS
public final Object a(Object obj) {
return Boolean.TRUE;
}
});
}
@Override // o.ZKS
public final C14569fvg p() {
xOM b = this.h.b();
if (b == null || b.a.isEmpty()) {
return null;
}
return this.h.b().a.get(0);
}
@Override // o.ZKS
public final List<C14569fvg> q() {
xOM b = this.h.b();
ArrayList arrayList = new ArrayList();
if (b != null) {
for (C14569fvg c14569fvg : b.a) {
if (2 == c14569fvg.a || 3 == c14569fvg.a) {
arrayList.add(c14569fvg);
}
}
}
return arrayList;
}
@Override // o.ZKS
public final void d(List<C14569fvg> list) {
OTe oTe = this.h;
OTe.b(new Object[]{oTe, list}, 210356998, -210356997, System.identityHashCode(oTe));
}
@Override // o.ZKS
public final AbstractC13163fSk<UuT> c(C3306av c3306av) {
return this.f9226o.d.confirmSuitabilityAssessment(c3306av).map(new fSS() { // from class: o.GKk
@Override // o.fSS
public final Object a(Object obj) {
C9475dkT c9475dkT = (C9475dkT) ((SingleDataEntity) obj).getData();
return new UuT(c9475dkT.a, c9475dkT.d, c9475dkT.b);
}
});
}
@Override // o.ZKS
public final AbstractC13163fSk<Boolean> c(C3202at c3202at) {
return this.f9226o.d.validateSuitabilityAssessment(c3202at).map(new fSS() { // from class: o.aZs
@Override // o.fSS
public final Object a(Object obj) {
return Boolean.TRUE;
}
}).map(new fSS() { // from class: o.BaZ
@Override // o.fSS
public final Object a(Object obj) {
return Boolean.TRUE;
}
});
}
@Override // o.ZKS
public final List<C3359aw> s() {
OTe oTe = this.h;
return (List) OTe.b(new Object[]{oTe}, 1008009129, -1008009129, System.identityHashCode(oTe));
}
@Override // o.ZKS
public final List<C14569fvg> t() {
return this.h.a();
}
@Override // o.ZKS
public final C14603fwN y() {
return this.h.h();
}
@Override // o.ZKS
public final void b(C14603fwN c14603fwN) {
this.h.c(c14603fwN);
}
@Override // o.ZKS
public final AbstractC13163fSk<List<YFD>> j() {
AbstractC13163fSk<R> map = this.f9226o.d.getOnboardingOccupationList().map(new fSS() { // from class: o.hgt
@Override // o.fSS
public final Object a(Object obj) {
SingleDataEntity singleDataEntity = (SingleDataEntity) obj;
if (singleDataEntity != null) {
return (FyU) singleDataEntity.getData();
}
return null;
}
});
final Sqz sqz = this.l;
Objects.requireNonNull(sqz);
return map.map(new fSS(sqz) { // from class: o.wdn
private Sqz e;
@Override // o.fSS
public final Object a(Object obj) {
List<lFZ> list = ((FyU) obj).e;
ArrayList arrayList = new ArrayList();
Iterator<lFZ> it = list.iterator();
while (it.hasNext()) {
arrayList.add(it.next().a());
}
return arrayList;
}
{
this.e = sqz;
}
});
}
@Override // o.ZKS
public final List<YFD> e() {
return this.h.c();
}
@Override // o.ZKS
public final AbstractC13163fSk<List<YFD>> c(String str) {
AbstractC13163fSk<R> map = this.f9226o.d.getBusinessList(str).map(new fSS() { // from class: o.cHm
@Override // o.fSS
public final Object a(Object obj) {
SingleDataEntity singleDataEntity = (SingleDataEntity) obj;
if (singleDataEntity != null) {
return (CcA) singleDataEntity.getData();
}
return null;
}
});
final C11389eeS c11389eeS = this.k;
Objects.requireNonNull(c11389eeS);
AbstractC13163fSk map2 = map.map(new fSS(c11389eeS) { // from class: o.Fun
private C11389eeS a;
@Override // o.fSS
public final Object a(Object obj) {
return C11389eeS.b((CcA) obj);
}
{
this.a = c11389eeS;
}
});
final OTe oTe = this.h;
Objects.requireNonNull(oTe);
return map2.doOnNext(new fSQ(oTe) { // from class: o.WHf
private OTe c;
@Override // o.fSQ
public final void c(Object obj) {
this.c.d((List<YFD>) obj);
}
{
this.c = oTe;
}
});
}
@Override // o.ZKS
public final AbstractC13175fSw<Boolean> a() {
DiG.e("3023");
return new C13325fXX(new C13372fYk(this.f9226o.d.getCustomerDataSharing(), new fSS() { // from class: o.hHc
@Override // o.fSS
public final Object a(Object obj) {
C16562pOe c16562pOe = (C16562pOe) obj;
return Boolean.valueOf((c16562pOe == null || c16562pOe.getStatus() == null || !"3023".equals(c16562pOe.getStatus().e)) ? false : true);
}
}), new Cbf());
}
@Override // o.ZKS
public final AbstractC13175fSw<Boolean> b(M m) {
return new C13372fYk(this.f9226o.d.submitDataSharing(m), new fSS() { // from class: o.Lhb
@Override // o.fSS
public final Object a(Object obj) {
return Boolean.TRUE;
}
});
}
}