package o; import com.scb.phone.data.entity.transfer.SingleDataEntity; import com.scb.phone.domain.entity.mwpartner.EntityMappingException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; import java.util.Objects; import okhttp3.MultipartBody; import org.threeten.bp.OffsetDateTime; /* loaded from: classes3.dex */ public final class UCs implements iqp { final NuG a; final wwd b; final fPX c; final C0584KDx d; final QoT e; final THN f; final C15859jGX g; private final pdD h; final sCw i; final Mtc j; private final pdI k; private final C16617pju l; private final RzE m; private final LjL n; /* renamed from: o, reason: collision with root package name */ private final C16907sKd f8383o; private final vHi p; private final icC q; private final String t; @InterfaceC13391fZD public UCs(pdI pdi, pdD pdd, RzE rzE, C16617pju c16617pju, icC icc, vHi vhi, C16907sKd c16907sKd, LjL ljL, QoT qoT, THN thn, Mtc mtc, fPX fpx, C15859jGX c15859jGX, C0584KDx c0584KDx, wwd wwdVar, sCw scw, NuG nuG, String str) { this.k = pdi; this.h = pdd; this.m = rzE; this.l = c16617pju; this.q = icc; this.p = vhi; this.f8383o = c16907sKd; this.n = ljL; this.e = qoT; this.f = thn; this.j = mtc; this.c = fpx; this.g = c15859jGX; this.d = c0584KDx; this.b = wwdVar; this.i = scw; this.a = nuG; this.t = str; } @Override // o.iqp public final AbstractC13163fSk b(C4135bR c4135bR) { return this.k.d.verifyRequest(c4135bR).map(new fSS() { // from class: o.qfE @Override // o.fSS public final Object a(Object obj) { C16562pOe c16562pOe = (C16562pOe) obj; return Boolean.valueOf(c16562pOe.getStatus() != null && "1000".equals(c16562pOe.getStatus().e)); } }); } @Override // o.iqp public final AbstractC13163fSk> f() { AbstractC13163fSk flatMapIterable = this.k.d.getIdps().map(new fSS() { // from class: o.CeM @Override // o.fSS public final Object a(Object obj) { return (C16934sYA) ((SingleDataEntity) obj).getData(); } }).map(new fSS() { // from class: o.vBQ @Override // o.fSS public final Object a(Object obj) { return ((C16934sYA) obj).e; } }).flatMapIterable(new fSS() { // from class: o.YQX @Override // o.fSS public final Object a(Object obj) { return (List) obj; } }); final C16617pju c16617pju = this.l; Objects.requireNonNull(c16617pju); fSD list = flatMapIterable.map(new fSS(c16617pju) { // from class: o.afq private C16617pju b; @Override // o.fSS public final Object a(Object obj) { C17292vaW c17292vaW = (C17292vaW) obj; C14957gcv.e(c17292vaW, ""); return new C7938cxl(c17292vaW.j, c17292vaW.a, new Urh(c17292vaW.e, c17292vaW.c), Double.parseDouble(c17292vaW.b), Double.parseDouble(c17292vaW.d)); } { this.b = c16617pju; } }).toList(); if (list instanceof InterfaceC13204fTr) { return ((InterfaceC13204fTr) list).b(); } return new C13377fYp(list); } @Override // o.iqp public final AbstractC13163fSk> e(C4104bQ c4104bQ) { AbstractC13163fSk map = this.k.d.confirmRpRequest(c4104bQ).map(new fSS() { // from class: o.xds @Override // o.fSS public final Object a(Object obj) { return (C1908aRo) ((SingleDataEntity) obj).getData(); } }); final icC icc = this.q; Objects.requireNonNull(icc); return map.map(new fSS(icc) { // from class: o.HPr private icC a; @Override // o.fSS public final Object a(Object obj) { C1908aRo c1908aRo = (C1908aRo) obj; C14957gcv.e(c1908aRo, ""); String[] strArr = {c1908aRo.e.b, c1908aRo.e.e}; C14957gcv.e(strArr, ""); C14957gcv.e(strArr, ""); List asList = Arrays.asList(strArr); C14957gcv.c(asList, ""); return asList; } { this.a = icc; } }); } @Override // o.iqp public final AbstractC13163fSk e(C c) { if (c != C.HML) { return this.k.d.confirmRpRegistration().map(new fSS() { // from class: o.WpA @Override // o.fSS public final Object a(Object obj) { C16562pOe c16562pOe = (C16562pOe) obj; return Boolean.valueOf(c16562pOe.getStatus() != null && "1000".equals(c16562pOe.getStatus().e)); } }); } pdD pdd = this.h; return pdd.a.completeSubmission(this.m.i, new iLA(this.m.a, null)).map(new fSS() { // from class: o.tjN @Override // o.fSS public final Object a(Object obj) { C16562pOe c16562pOe = (C16562pOe) obj; return Boolean.valueOf(c16562pOe.getStatus() != null && "1000".equals(c16562pOe.getStatus().e)); } }); } @Override // o.iqp public final AbstractC13163fSk d(MultipartBody.Part part) { return this.k.d.uploadPhoto(part).map(new fSS() { // from class: o.Vlg @Override // o.fSS public final Object a(Object obj) { C16562pOe c16562pOe = (C16562pOe) obj; return Boolean.valueOf(c16562pOe.getStatus() != null && "1000".equals(c16562pOe.getStatus().e)); } }); } @Override // o.iqp public final fRY d() { return fRY.b(this.k.d.cancelRpRequest()); } @Override // o.iqp public final fRY i() { return fRY.b(this.k.d.getStatusRpRequest()); } @Override // o.iqp public final AbstractC13163fSk a(C4035bO c4035bO) { return this.k.d.livenessCheck(c4035bO.g, c4035bO.m, c4035bO.j, c4035bO.b, c4035bO.h, c4035bO.f, c4035bO.d, c4035bO.e, c4035bO.c, c4035bO.a, c4035bO.i, c4035bO.k).map(new fSS() { // from class: o.oNR @Override // o.fSS public final Object a(Object obj) { C16562pOe c16562pOe = (C16562pOe) obj; return Boolean.valueOf(c16562pOe.getStatus() != null && "1000".equals(c16562pOe.getStatus().e)); } }); } @Override // o.iqp public final fRY d(C3999bN c3999bN, String str, String str2) { return fRY.e(this.k.d.faceTecLivenessCheck(c3999bN, str, str2)); } @Override // o.iqp public final AbstractC13163fSk d(C3964bM c3964bM) { AbstractC13163fSk map = this.k.d.getCustomerData(c3964bM).map(new fSS() { // from class: o.VKD @Override // o.fSS public final Object a(Object obj) { return (C1269ZhN) ((SingleDataEntity) obj).getData(); } }); final C16907sKd c16907sKd = this.f8383o; Objects.requireNonNull(c16907sKd); return map.map(new fSS(c16907sKd) { // from class: o.spt private C16907sKd a; @Override // o.fSS public final Object a(Object obj) { HWh hWh; BUw bUw; Apa apa; C1269ZhN c1269ZhN = (C1269ZhN) obj; if (c1269ZhN == null) { return null; } GzJ gzJ = new GzJ(); YlM ylM = c1269ZhN.d; if (ylM == null) { hWh = null; } else { hWh = new HWh(); hWh.f = ylM.h; hWh.e = ylM.a; hWh.g = ylM.g; hWh.c = ylM.d; hWh.d = (OffsetDateTime) ZTC.e(new Object[]{ylM.e, null}, 267499366, -267499366, (int) System.currentTimeMillis()); hWh.h = ylM.f; hWh.a = ylM.b; hWh.b = ylM.c; } gzJ.c = hWh; C16350neq c16350neq = c1269ZhN.b; if (c16350neq == null) { bUw = null; } else { bUw = new BUw(); bUw.c = c16350neq.d; bUw.d = c16350neq.b; } gzJ.a = bUw; Kdy kdy = c1269ZhN.c; if (kdy == null) { apa = null; } else { apa = new Apa(); apa.e = kdy.a; apa.a = kdy.b; apa.d = kdy.e; apa.c = kdy.d; } gzJ.e = apa; gzJ.b = (OffsetDateTime) ZTC.e(new Object[]{c1269ZhN.e, null}, 267499366, -267499366, (int) System.currentTimeMillis()); return gzJ; } { this.a = c16907sKd; } }); } @Override // o.iqp public final AbstractC13163fSk d(C3765bG c3765bG) { AbstractC13163fSk map = this.k.d.confirmIdpResponse(c3765bG).map(new fSS() { // from class: o.ghx @Override // o.fSS public final Object a(Object obj) { return (ztt) ((SingleDataEntity) obj).getData(); } }); final LjL ljL = this.n; Objects.requireNonNull(ljL); return map.map(new fSS(ljL) { // from class: o.klR private LjL b; @Override // o.fSS public final Object a(Object obj) { String str; String str2; ArrayList arrayList; ztt zttVar = (ztt) obj; if (zttVar == null) { return null; } Dqc dqc = new Dqc(); dqc.b = (OffsetDateTime) ZTC.e(new Object[]{zttVar.d, null}, 267499366, -267499366, (int) System.currentTimeMillis()); XlB xlB = zttVar.a; if (xlB == null || (((str = xlB.b) == null || str.length() == 0) && ((str2 = xlB.e) == null || str2.length() == 0))) { arrayList = null; } else { arrayList = new ArrayList(); String str3 = xlB.b; if (str3 != null) { arrayList.add(str3); } String str4 = xlB.e; if (str4 != null) { arrayList.add(str4); } } dqc.e = arrayList; XlB xlB2 = zttVar.a; String str5 = xlB2 != null ? xlB2.a : null; String str6 = str5; if (str6 == null || str6.length() == 0) { throw new EntityMappingException("data must not be null or empty"); } dqc.d = str5; return dqc; } { this.b = ljL; } }); } @Override // o.iqp public final AbstractC13175fSw c(C4368bY c4368bY) { AbstractC13175fSw verifyFailAttempt = this.k.d.verifyFailAttempt(c4368bY); final LjL ljL = this.n; Objects.requireNonNull(ljL); return new C13372fYk(verifyFailAttempt, new fSS(ljL) { // from class: o.fjk private LjL d; @Override // o.fSS public final Object a(Object obj) { return this.d.d((C16562pOe) obj); } { this.d = ljL; } }); } @Override // o.iqp public final AbstractC13175fSw h() { return new C13372fYk(this.k.d.idpFlagStatus(), new fSS(this) { // from class: o.DlV private UCs c; @Override // o.fSS public final Object a(Object obj) { QoT qoT = this.c.e; return QoT.a((zsC) ((SingleDataEntity) obj).getData()); } { this.c = this; } }); } @Override // o.iqp public final AbstractC13175fSw c() { pdI pdi = this.k; return new C13372fYk(pdi.d.enrollmentRevoke(new C7491cpN(this.t)), new fSS(this) { // from class: o.RWJ private UCs b; @Override // o.fSS public final Object a(Object obj) { THN thn = this.b.f; return THN.e((FUn) ((SingleDataEntity) obj).getData()); } { this.b = this; } }); } @Override // o.iqp public final AbstractC13175fSw e() { pdI pdi = this.k; return new C13372fYk(pdi.d.enrollmentRegister(new C7491cpN(this.t)), new fSS(this) { // from class: o.AoO private UCs d; @Override // o.fSS public final Object a(Object obj) { THN thn = this.d.f; return THN.e((FUn) ((SingleDataEntity) obj).getData()); } { this.d = this; } }); } @Override // o.iqp public final AbstractC13175fSw b() { return new C13372fYk(this.k.d.getEnrollmentInquiry(), new fSS(this) { // from class: o.tlf private UCs d; @Override // o.fSS public final Object a(Object obj) { Mtc mtc = this.d.j; yaN yan = (yaN) ((SingleDataEntity) obj).getData(); C14957gcv.e(yan, ""); XLa xLa = yan.b; if (xLa != null) { Pbc pbc = mtc.a; C14957gcv.e(xLa, ""); String str = xLa.e; if (str == null) { throw new EntityMappingException("personalEnrollType can't be null."); } String str2 = xLa.b; if (str2 == null) { throw new EntityMappingException("description can't be null."); } String str3 = xLa.d; if (str3 != null) { jHi jhi = new jHi(str, str2, str3); MGC mgc = yan.c; if (mgc != null) { C8994dbO c8994dbO = mtc.c; C14957gcv.e(mgc, ""); String str4 = mgc.b; if (str4 == null) { throw new EntityMappingException("status can't be null."); } String str5 = mgc.e; if (str5 != null) { return new Gbd(jhi, new C0382Fhx(str4, str5)); } throw new EntityMappingException("description can't be null."); } throw new EntityMappingException("enrolledStatusEntity can't be null."); } throw new EntityMappingException("displaySectionFlag can't be null."); } throw new EntityMappingException("enrolledTypeEntity can't be null."); } { this.d = this; } }); } @Override // o.iqp public final AbstractC13175fSw a() { pdI pdi = this.k; return new C13372fYk(pdi.d.getEnrollmentRequest(new C7491cpN(this.t)), new fSS(this) { // from class: o.Doj private UCs d; @Override // o.fSS public final Object a(Object obj) { NuG nuG = this.d.a; return NuG.a((XYQ) ((SingleDataEntity) obj).getData()); } { this.d = this; } }); } @Override // o.iqp public final AbstractC13175fSw a(C3929bL c3929bL) { return new C13372fYk(this.k.d.feeVerification(c3929bL), new fSS(this) { // from class: o.Jft private UCs b; @Override // o.fSS public final Object a(Object obj) { fPX fpx = this.b.c; Wsw wsw = (Wsw) ((SingleDataEntity) obj).getData(); C14957gcv.e(wsw, ""); String str = wsw.i; if (str == null) { throw new EntityMappingException("tokenId can't be null."); } String str2 = wsw.e; if (str2 == null) { throw new EntityMappingException("accountFromNo can't be null."); } String str3 = wsw.b; if (str3 == null) { throw new EntityMappingException("accountFromName can't be null."); } Double d = wsw.c; if (d != null) { double doubleValue = d.doubleValue(); List list = wsw.d; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (Wwo wwo : list2) { C16449oUO c16449oUO = fpx.d; arrayList.add(C16449oUO.a(wwo)); } ArrayList arrayList2 = arrayList; String str4 = wsw.a; if (str4 != null) { return new C6275cOA(str, str2, str3, doubleValue, arrayList2, str4); } throw new EntityMappingException("remark can't be null."); } throw new EntityMappingException("billerNotes can't be null."); } throw new EntityMappingException("fee can't be null."); } { this.b = this; } }); } @Override // o.iqp public final AbstractC13175fSw d(C4166bS c4166bS) { return new C13372fYk(this.k.d.postNdidPayFee(c4166bS), new fSS(this) { // from class: o.zAX private UCs d; @Override // o.fSS public final Object a(Object obj) { C15859jGX c15859jGX = this.d.g; return C15859jGX.a((C5181boG) ((SingleDataEntity) obj).getData()); } { this.d = this; } }); } @Override // o.iqp public final AbstractC13175fSw b(C3892bK c3892bK) { return new C13372fYk(this.k.d.feeConfirmation(c3892bK), new fSS(this) { // from class: o.DGX private UCs b; @Override // o.fSS public final Object a(Object obj) { C0584KDx c0584KDx = this.b.d; EZm eZm = (EZm) ((SingleDataEntity) obj).getData(); C14957gcv.e(eZm, ""); String str = eZm.j; if (str == null) { throw new EntityMappingException("transactionId can't be null."); } String str2 = eZm.f; if (str2 == null) { throw new EntityMappingException("transactionDateTime can't be null."); } Double d = eZm.d; if (d != null) { double doubleValue = d.doubleValue(); String str3 = eZm.a; if (str3 == null) { throw new EntityMappingException("accountFromNo can't be null."); } String str4 = eZm.b; if (str4 == null) { throw new EntityMappingException("accountFromName can't be null."); } Double d2 = eZm.c; if (d2 != null) { double doubleValue2 = d2.doubleValue(); List list = eZm.e; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (Wwo wwo : list2) { C16449oUO c16449oUO = c0584KDx.e; arrayList.add(C16449oUO.a(wwo)); } ArrayList arrayList2 = arrayList; String str5 = eZm.i; if (str5 != null) { return new EVR(str, str2, doubleValue, str3, str4, doubleValue2, arrayList2, str5, eZm.h); } throw new EntityMappingException("remark1 can't be null."); } throw new EntityMappingException("billerNotes can't be null."); } throw new EntityMappingException("fee can't be null."); } throw new EntityMappingException("remainingBalance can't be null."); } { this.b = this; } }); } @Override // o.iqp public final AbstractC13175fSw e(C3964bM c3964bM) { return new C13372fYk(this.k.d.accountsInquiry(c3964bM), new fSS(this) { // from class: o.OCF private UCs b; @Override // o.fSS public final Object a(Object obj) { wwd wwdVar = this.b.b; RRd rRd = (RRd) ((SingleDataEntity) obj).getData(); C14957gcv.e(rRd, ""); if (!(!rRd.b.isEmpty())) { throw new EntityMappingException("statementAccountList can't be empty."); } List list = rRd.b; C14957gcv.e(list, ""); ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10); for (rUX rux : list) { C15749iKx c15749iKx = wwdVar.e; C14957gcv.e(rux, ""); String str = rux.d; if (str != null) { int parseInt = Integer.parseInt(str); String str2 = rux.a; String str3 = rux.c; if (str3 != null) { arrayList.add(new dGW(parseInt, str2, str3, rux.e)); } else { throw new EntityMappingException("accountType can't be null."); } } else { throw new EntityMappingException("sortSequence can't be null."); } } return new POg(arrayList, Integer.parseInt(rRd.c)); } { this.b = this; } }); } @Override // o.iqp public final AbstractC13175fSw c(C4202bT c4202bT) { return new C13372fYk(this.k.d.accountsVerification(c4202bT), new fSS(this) { // from class: o.TTf private UCs b; @Override // o.fSS public final Object a(Object obj) { sCw scw = this.b.i; Xqm xqm = (Xqm) ((SingleDataEntity) obj).getData(); C14957gcv.e(xqm, ""); if (!(!xqm.d.isEmpty())) { throw new EntityMappingException("statementAccountList can't be empty."); } List list = xqm.d; C14957gcv.e(list, ""); ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10); for (rUX rux : list) { C15749iKx c15749iKx = scw.b; C14957gcv.e(rux, ""); arrayList.add(new C12365ewo(rux.a, rux.e)); } return new orO(arrayList, xqm.c, xqm.b); } { this.b = this; } }); } @Override // o.iqp public final List g() { return this.p.b; } @Override // o.iqp public final void e(List list) { this.p.b = list; } @Override // o.iqp public final fRY d(C4071bP c4071bP) { c4071bP.d = this.t; return fRY.b(this.k.d.verifyIdentity(c4071bP)); } }