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.Collection; import java.util.Comparator; import java.util.Iterator; import java.util.List; import o.RQz; /* loaded from: classes3.dex */ public final class JBS implements InterfaceC2873amn { private final hYp a; private final String b; final Mph d; final RQz e; @InterfaceC13391fZD public JBS(String str, hYp hyp, Mph mph, RQz rQz) { C14957gcv.e(str, ""); C14957gcv.e(hyp, ""); C14957gcv.e(mph, ""); C14957gcv.e(rQz, ""); this.b = str; this.a = hyp; this.d = mph; this.e = rQz; } /* loaded from: classes3.dex */ static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR, HjC> { private JBS a; @Override // o.InterfaceC14894gbR public final /* synthetic */ HjC invoke(SingleDataEntity singleDataEntity) { C14851gaI c14851gaI; List a; RQz rQz = this.a.e; wcb data = singleDataEntity.getData(); C14957gcv.c(data, ""); wcb wcbVar = data; C14957gcv.e(wcbVar, ""); String str = wcbVar.a; List list = wcbVar.d; if (list != null && (a = C14881gav.a((Iterable) list, (Comparator) new RQz.Sts())) != null) { List list2 = a; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (yFN yfn : list2) { C14957gcv.e(yfn, ""); Integer num = yfn.i; if (num != null) { int intValue = num.intValue(); String str2 = yfn.d; if (str2 == null) { throw new EntityMappingException("carBrand can not be null"); } String str3 = yfn.c; if (str3 == null) { throw new EntityMappingException("carModel can not be null"); } String str4 = yfn.h; if (str4 == null) { throw new EntityMappingException("yearOfCarManufacture can not be null"); } String str5 = yfn.a; if (str5 == null) { throw new EntityMappingException("carRegistrationPlate can not be null"); } String str6 = yfn.b; if (str6 == null) { throw new EntityMappingException("accountNo can not be null"); } String str7 = yfn.e; if (str7 != null) { arrayList.add(new C16183lxO(intValue, str2, str3, str4, str5, str6, str7)); } else { throw new EntityMappingException("isSelected can not be null"); } } else { throw new EntityMappingException("sortSequence can not be null"); } } c14851gaI = arrayList; } else { c14851gaI = C14851gaI.c; } return new HjC(str, c14851gaI); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ RVV(JBS jbs) { super(1); this.a = jbs; } } /* loaded from: classes3.dex */ static final class ojQ extends AbstractC14961gcz implements InterfaceC14894gbR, eEM> { private JBS a; @Override // o.InterfaceC14894gbR public final /* synthetic */ eEM invoke(SingleDataEntity singleDataEntity) { RQz rQz = this.a.e; WoV data = singleDataEntity.getData(); C14957gcv.c(data, ""); return RQz.e(data); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ ojQ(JBS jbs) { super(1); this.a = jbs; } } /* loaded from: classes3.dex */ static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR, Ufn> { private JBS e; @Override // o.InterfaceC14894gbR public final /* synthetic */ Ufn invoke(SingleDataEntity singleDataEntity) { uIe uie; List list; Mph mph = this.e.d; AbZ data = singleDataEntity.getData(); C14957gcv.c(data, ""); AbZ abZ = data; C14957gcv.e(abZ, ""); if (abZ.c == null) { throw new EntityMappingException("AUTO TOP UP: ApplicationId is null"); } List list2 = abZ.a; if (list2 != null && (uie = (uIe) C14881gav.e((List) list2)) != null) { if (uie.b == null) { throw new EntityMappingException("AUTO TOP UP: offer.defaultCreditLimit is null"); } if (uie.c == null) { throw new EntityMappingException("AUTO TOP UP: offer.defaultDuration is null"); } if (uie.d == null) { throw new EntityMappingException("AUTO TOP UP: offer.durationOptions is null"); } if (uie.a == null) { throw new EntityMappingException("AUTO TOP UP: offer.maximumCreditLimit is null"); } if (uie.e == null) { throw new EntityMappingException("AUTO TOP UP: offer.minimumCreditLimit is null"); } if (uie.h == null) { throw new EntityMappingException("AUTO TOP UP: offer.sliderInterval is null"); } if (uie != null) { List list3 = abZ.a; ArrayList arrayList = null; uIe uie2 = list3 != null ? (uIe) C14881gav.e((List) list3) : null; String str = uie2 != null ? uie2.e : null; String str2 = str == null ? "" : str; String str3 = uie2 != null ? uie2.a : null; String str4 = str3 == null ? "" : str3; String str5 = uie2 != null ? uie2.b : null; String str6 = str5 == null ? "" : str5; String str7 = uie2 != null ? uie2.c : null; String str8 = str7 == null ? "" : str7; String str9 = uie2 != null ? uie2.h : null; String str10 = str9 == null ? "" : str9; C14851gaI c14851gaI = C14851gaI.c; String str11 = abZ.c; String str12 = str11 == null ? "" : str11; List d = Mph.d(abZ.b); if (uie2 != null && (list = uie2.d) != null) { List list4 = list; C14957gcv.e(list4, ""); ArrayList arrayList2 = new ArrayList(list4 instanceof Collection ? list4.size() : 10); for (C7374cnA c7374cnA : list4) { String str13 = c7374cnA.b; if (str13 == null) { str13 = ""; } String str14 = c7374cnA.d; if (str14 == null) { str14 = ""; } arrayList2.add(new RCl(str13, str14)); } arrayList = arrayList2; } return new Ufn(str2, str4, str6, str10, str12, c14851gaI, d, null, str8, arrayList, 128); } } throw new EntityMappingException("AUTO TOP UP: offer data is null"); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ HBt(JBS jbs) { super(1); this.e = jbs; } } /* loaded from: classes3.dex */ static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR, UHf> { private JBS e; @Override // o.InterfaceC14894gbR public final /* synthetic */ UHf invoke(SingleDataEntity singleDataEntity) { Mph mph = this.e.d; C14278fqG data = singleDataEntity.getData(); C14957gcv.c(data, ""); return mph.b(data); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ IeS(JBS jbs) { super(1); this.e = jbs; } } /* loaded from: classes3.dex */ static final class tOB extends AbstractC14961gcz implements InterfaceC14894gbR, Lul> { private JBS d; @Override // o.InterfaceC14894gbR public final /* synthetic */ Lul invoke(SingleDataEntity singleDataEntity) { C14851gaI c14851gaI; List a; RQz rQz = this.d.e; vOf data = singleDataEntity.getData(); C14957gcv.c(data, ""); vOf vof = data; C14957gcv.e(vof, ""); List list = vof.c; if (list != null && (a = C14881gav.a((Iterable) list, (Comparator) new RQz.RVV())) != null) { List list2 = a; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); Iterator it = list2.iterator(); while (it.hasNext()) { arrayList.add(RQz.a((C9394dis) it.next())); } c14851gaI = arrayList; } else { c14851gaI = C14851gaI.c; } return new Lul(c14851gaI); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ tOB(JBS jbs) { super(1); this.d = jbs; } } /* loaded from: classes3.dex */ static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR, bVN> { private JBS d; @Override // o.InterfaceC14894gbR public final /* synthetic */ bVN invoke(SingleDataEntity singleDataEntity) { ArrayList arrayList; ArrayList arrayList2; ArrayList arrayList3; Iterator it; ArrayList arrayList4; List a; RQz rQz = this.d.e; C16808rRW data = singleDataEntity.getData(); C14957gcv.c(data, ""); C16808rRW c16808rRW = data; C14957gcv.e(c16808rRW, ""); List list = c16808rRW.e; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList5 = new ArrayList(list2 instanceof Collection ? list2.size() : 10); Iterator it2 = list2.iterator(); while (it2.hasNext()) { JIg jIg = (JIg) it2.next(); List list3 = jIg.g; if (list3 != null) { List list4 = list3; C14957gcv.e(list4, ""); ArrayList arrayList6 = new ArrayList(list4 instanceof Collection ? list4.size() : 10); for (Tsh tsh : list4) { String str = tsh.c; if (str == null) { throw new EntityMappingException("EasycashInsuranceOptionEntity missing insuranceOptionCode field"); } String str2 = tsh.d; if (str2 != null) { arrayList6.add(new zKl(str, str2)); } else { throw new EntityMappingException("EasycashInsuranceOptionEntity missing insuranceOptionName field"); } } arrayList = arrayList6; } else { arrayList = null; } List list5 = jIg.j; if (list5 != null) { List list6 = list5; C14957gcv.e(list6, ""); ArrayList arrayList7 = new ArrayList(list6 instanceof Collection ? list6.size() : 10); for (XVP xvp : list6) { String str3 = xvp.c; if (str3 == null) { throw new EntityMappingException("EasycashInsuranceTypeEntity missing insuranceTypeCode field"); } String str4 = xvp.d; if (str4 != null) { arrayList7.add(new C17260vLw(str3, str4)); } else { throw new EntityMappingException("EasycashInsuranceTypeEntity missing insuranceTypeName field"); } } arrayList2 = arrayList7; } else { arrayList2 = null; } List list7 = jIg.e; if (list7 == null || (a = C14881gav.a((Iterable) list7, (Comparator) new RQz.LWm())) == null) { arrayList3 = null; } else { List list8 = a; C14957gcv.e(list8, ""); ArrayList arrayList8 = new ArrayList(list8 instanceof Collection ? list8.size() : 10); for (C16506osw c16506osw : list8) { String str5 = c16506osw.c; if (str5 == null) { throw new EntityMappingException("EasycashInsuranceCompanyEntity missing insuranceCompanyCode field"); } String str6 = c16506osw.b; if (str6 != null) { arrayList8.add(new Fsx(str5, str6)); } else { throw new EntityMappingException("EasycashInsuranceCompanyEntity missing insuranceCompanyName field"); } } arrayList3 = arrayList8; } C17207unR c17207unR = jIg.i; Rjl e = c17207unR != null ? RQz.e(c17207unR) : null; C17207unR c17207unR2 = jIg.f8219o; Rjl e2 = c17207unR2 != null ? RQz.e(c17207unR2) : null; C17207unR c17207unR3 = jIg.h; Rjl e3 = c17207unR3 != null ? RQz.e(c17207unR3) : null; C17207unR c17207unR4 = jIg.c; Rjl e4 = c17207unR4 != null ? RQz.e(c17207unR4) : null; C17207unR c17207unR5 = jIg.f; Rjl e5 = c17207unR5 != null ? RQz.e(c17207unR5) : null; List list9 = jIg.b; if (list9 != null) { List list10 = list9; C14957gcv.e(list10, ""); ArrayList arrayList9 = new ArrayList(list10 instanceof Collection ? list10.size() : 10); for (hwt hwtVar : list10) { arrayList9.add(new C15878jOO(hwtVar.a, hwtVar.b, hwtVar.e, hwtVar.d)); it2 = it2; } it = it2; arrayList4 = arrayList9; } else { it = it2; arrayList4 = null; } C16704qVa c16704qVa = jIg.d; C17142uJM d = c16704qVa != null ? RQz.d(c16704qVa) : null; C16704qVa c16704qVa2 = jIg.a; arrayList5.add(new DuE(arrayList, arrayList2, arrayList3, e, e2, e3, e4, e5, arrayList4, d, c16704qVa2 != null ? RQz.d(c16704qVa2) : null)); it2 = it; } return new bVN(arrayList5); } throw new EntityMappingException("EasycashAutoMasterDataInquiryEntity mandatory field masterData is missing"); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ Sts(JBS jbs) { super(1); this.d = jbs; } } /* loaded from: classes3.dex */ static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR, C8472dMU> { private JBS d; @Override // o.InterfaceC14894gbR public final /* synthetic */ C8472dMU invoke(SingleDataEntity singleDataEntity) { List list; RQz rQz = this.d.e; C17614yLe data = singleDataEntity.getData(); C14957gcv.c(data, ""); C17614yLe c17614yLe = data; C14957gcv.e(c17614yLe, ""); uOy uoy = c17614yLe.j; if (uoy == null) { throw new EntityMappingException("EasycashAutoMasterDataInquiryEntity mandatory field masterData is missing"); } String str = uoy.b; if (str == null) { throw new EntityMappingException("EasyCashMasterDataEntity mandatory field principalAmount is missing"); } String str2 = uoy.e; if (str2 == null) { throw new EntityMappingException("EasyCashMasterDataEntity mandatory field sumInsureCovered is missing"); } String str3 = uoy.d; String str4 = uoy.a; if (str4 == null) { throw new EntityMappingException("EasyCashMasterDataEntity mandatory field sumInsureCoveredAmount is missing"); } String str5 = uoy.c; if (str5 == null) { throw new EntityMappingException("EasyCashMasterDataEntity mandatory field insuranceCoveredMinimum is missing"); } String str6 = uoy.i; if (str6 != null) { zLE zle = new zLE(str, str2, str3, str4, str5, str6); List list2 = c17614yLe.b; if (list2 != null) { List list3 = list2; C14957gcv.e(list3, ""); List arrayList = new ArrayList(list3 instanceof Collection ? list3.size() : 10); Iterator it = list3.iterator(); while (it.hasNext()) { arrayList.add(RQz.c((C0415GbQ) it.next())); } list = arrayList; } else { list = C14851gaI.c; } return new C8472dMU(zle, list, c17614yLe.i, c17614yLe.h, c17614yLe.d, c17614yLe.e, c17614yLe.c, c17614yLe.a); } throw new EntityMappingException("EasyCashMasterDataEntity mandatory field unIdentifiedInsureCompanyCode is missing"); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ LWm(JBS jbs) { super(1); this.d = jbs; } } /* loaded from: classes3.dex */ static final class jbe extends AbstractC14961gcz implements InterfaceC14894gbR, C5007bks> { private JBS c; @Override // o.InterfaceC14894gbR public final /* synthetic */ C5007bks invoke(SingleDataEntity singleDataEntity) { ArrayList arrayList; RQz rQz = this.c.e; dMD data = singleDataEntity.getData(); C14957gcv.c(data, ""); dMD dmd = data; C14957gcv.e(dmd, ""); List list = dmd.e; GFn gFn = null; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList2 = new ArrayList(list2 instanceof Collection ? list2.size() : 10); Iterator it = list2.iterator(); while (it.hasNext()) { arrayList2.add(RQz.c((C0415GbQ) it.next())); } arrayList = arrayList2; } else { arrayList = null; } String str = dmd.c; C17639yZi c17639yZi = dmd.a; if (c17639yZi != null) { String str2 = c17639yZi.a; String str3 = c17639yZi.d; C2890anD c2890anD = c17639yZi.b; ZTl a = c2890anD != null ? RQz.a(c2890anD) : null; C2890anD c2890anD2 = c17639yZi.f; gFn = new GFn(str2, str3, a, c2890anD2 != null ? RQz.a(c2890anD2) : null, c17639yZi.c, c17639yZi.e); } return new C5007bks(arrayList, str, gFn); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ jbe(JBS jbs) { super(1); this.c = jbs; } } @Override // o.InterfaceC2873amn public final AbstractC13175fSw b(C15787ibw c15787ibw) { C14957gcv.e(c15787ibw, ""); String str = this.b; C14957gcv.e(str, ""); c15787ibw.d = str; hYp hyp = this.a; C14957gcv.e(c15787ibw, ""); AbstractC13175fSw> autoDetailInquiry = hyp.a.getAutoDetailInquiry(c15787ibw); final HBt hBt = new HBt(this); C13372fYk c13372fYk = new C13372fYk(autoDetailInquiry, new fSS(hBt) { // from class: o.tJU private InterfaceC14894gbR c; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.c; C14957gcv.e(interfaceC14894gbR, ""); return (Ufn) interfaceC14894gbR.invoke(obj); } { this.c = hBt; } }); C14957gcv.c(c13372fYk, ""); return c13372fYk; } @Override // o.InterfaceC2873amn public final AbstractC13175fSw e(C17772zdU c17772zdU) { C14957gcv.e(c17772zdU, ""); String str = this.b; C14957gcv.e(str, ""); c17772zdU.c = str; hYp hyp = this.a; C14957gcv.e(c17772zdU, ""); AbstractC13175fSw> autoInsuranceInfoInquiry = hyp.a.getAutoInsuranceInfoInquiry(c17772zdU); final LWm lWm = new LWm(this); C13372fYk c13372fYk = new C13372fYk(autoInsuranceInfoInquiry, new fSS(lWm) { // from class: o.COs private InterfaceC14894gbR b; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.b; C14957gcv.e(interfaceC14894gbR, ""); return (C8472dMU) interfaceC14894gbR.invoke(obj); } { this.b = lWm; } }); C14957gcv.c(c13372fYk, ""); return c13372fYk; } @Override // o.InterfaceC2873amn public final fRY b(Flh flh) { C14957gcv.e(flh, ""); String str = this.b; C14957gcv.e(str, ""); flh.j = str; hYp hyp = this.a; C14957gcv.e(flh, ""); fRY e = fRY.e(hyp.a.getAutoInsuranceInfoUpdate(flh)); C14957gcv.c(e, ""); return e; } @Override // o.InterfaceC2873amn public final AbstractC13175fSw d(OBh oBh) { C14957gcv.e(oBh, ""); String str = this.b; C14957gcv.e(str, ""); oBh.d = str; hYp hyp = this.a; C14957gcv.e(oBh, ""); AbstractC13175fSw> postAutoDetailCalculation = hyp.a.postAutoDetailCalculation(oBh); final IeS ieS = new IeS(this); C13372fYk c13372fYk = new C13372fYk(postAutoDetailCalculation, new fSS(ieS) { // from class: o.Ymb private InterfaceC14894gbR b; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.b; C14957gcv.e(interfaceC14894gbR, ""); return (UHf) interfaceC14894gbR.invoke(obj); } { this.b = ieS; } }); C14957gcv.c(c13372fYk, ""); return c13372fYk; } @Override // o.InterfaceC2873amn public final fRY b(MqT mqT) { C14957gcv.e(mqT, ""); String str = this.b; C14957gcv.e(str, ""); mqT.d = str; hYp hyp = this.a; C14957gcv.e(mqT, ""); fRY e = fRY.e(hyp.a.postAutoDetailUpdate(mqT)); C14957gcv.c(e, ""); return e; } @Override // o.InterfaceC2873amn public final AbstractC13175fSw d(wJz wjz) { C14957gcv.e(wjz, ""); String str = this.b; C14957gcv.e(str, ""); wjz.a = str; hYp hyp = this.a; C14957gcv.e(wjz, ""); AbstractC13175fSw> postAutoMasterDataInsurer = hyp.a.postAutoMasterDataInsurer(wjz); final Sts sts = new Sts(this); C13372fYk c13372fYk = new C13372fYk(postAutoMasterDataInsurer, new fSS(sts) { // from class: o.dNn private InterfaceC14894gbR d; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.d; C14957gcv.e(interfaceC14894gbR, ""); return (bVN) interfaceC14894gbR.invoke(obj); } { this.d = sts; } }); C14957gcv.c(c13372fYk, ""); return c13372fYk; } @Override // o.InterfaceC2873amn public final AbstractC13175fSw e(C15872jLi c15872jLi) { C14957gcv.e(c15872jLi, ""); String str = this.b; C14957gcv.e(str, ""); c15872jLi.d = str; hYp hyp = this.a; C14957gcv.e(c15872jLi, ""); AbstractC13175fSw> postCollateralDetailInquiry = hyp.a.postCollateralDetailInquiry(c15872jLi); final RVV rvv = new RVV(this); C13372fYk c13372fYk = new C13372fYk(postCollateralDetailInquiry, new fSS(rvv) { // from class: o.Too private InterfaceC14894gbR c; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.c; C14957gcv.e(interfaceC14894gbR, ""); return (HjC) interfaceC14894gbR.invoke(obj); } { this.c = rvv; } }); C14957gcv.c(c13372fYk, ""); return c13372fYk; } @Override // o.InterfaceC2873amn public final AbstractC13175fSw d(MLJ mlj) { C14957gcv.e(mlj, ""); String str = this.b; C14957gcv.e(str, ""); mlj.c = str; hYp hyp = this.a; C14957gcv.e(mlj, ""); AbstractC13175fSw> postCollateralDetailUpdate = hyp.a.postCollateralDetailUpdate(mlj); final ojQ ojq = new ojQ(this); C13372fYk c13372fYk = new C13372fYk(postCollateralDetailUpdate, new fSS(ojq) { // from class: o.rjg private InterfaceC14894gbR a; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.a; C14957gcv.e(interfaceC14894gbR, ""); return (eEM) interfaceC14894gbR.invoke(obj); } { this.a = ojq; } }); C14957gcv.c(c13372fYk, ""); return c13372fYk; } @Override // o.InterfaceC2873amn public final AbstractC13175fSw d(OJo oJo) { C14957gcv.e(oJo, ""); String str = this.b; C14957gcv.e(str, ""); oJo.e = str; hYp hyp = this.a; C14957gcv.e(oJo, ""); AbstractC13175fSw> postCommonListTypeInquiry = hyp.a.postCommonListTypeInquiry(oJo); final tOB tob = new tOB(this); C13372fYk c13372fYk = new C13372fYk(postCommonListTypeInquiry, new fSS(tob) { // from class: o.GhU private InterfaceC14894gbR b; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.b; C14957gcv.e(interfaceC14894gbR, ""); return (Lul) interfaceC14894gbR.invoke(obj); } { this.b = tob; } }); C14957gcv.c(c13372fYk, ""); return c13372fYk; } @Override // o.InterfaceC2873amn public final AbstractC13175fSw a(JXS jxs) { C14957gcv.e(jxs, ""); String str = this.b; C14957gcv.e(str, ""); jxs.a = str; hYp hyp = this.a; C14957gcv.e(jxs, ""); AbstractC13175fSw> postPackageInsuranceInquiry = hyp.a.postPackageInsuranceInquiry(jxs); final jbe jbeVar = new jbe(this); C13372fYk c13372fYk = new C13372fYk(postPackageInsuranceInquiry, new fSS(jbeVar) { // from class: o.AjU private InterfaceC14894gbR b; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.b; C14957gcv.e(interfaceC14894gbR, ""); return (C5007bks) interfaceC14894gbR.invoke(obj); } { this.b = jbeVar; } }); C14957gcv.c(c13372fYk, ""); return c13372fYk; } }