package o; import com.scb.phone.data.entity.transfer.SingleDataEntity; import com.scb.phone.data.network.service.BillPaymentService; 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 java.util.Objects; import o.Eoa; import org.threeten.bp.OffsetDateTime; /* loaded from: classes3.dex */ public final class One implements Cto { private final C0368FbW A; private final nCK B; private final String C; private final xVo D; final Tyf a; final C1213Yci b; final BsH c; final C0462Hbw d; final vLe e; final C16254mil f; private final YJj g; final C0384Fia h; final JwP i; private final gCU j; private final Eoa k; private final joS l; private final C0238CXz m; private final Tbg n; /* renamed from: o, reason: collision with root package name */ private final C0315Dzp f8310o; private final BillPaymentService p; private final C7592crI q; private final OHE r; private final Luu s; private final meX t; private final C0669LuX u; private final AGb v; private final zJP w; private final C17734zMz x; private final iAS y; private final C15938jkp z; @InterfaceC13391fZD public One(String str, gCU gcu, BillPaymentService billPaymentService, Tbg tbg, C0368FbW c0368FbW, xVo xvo, joS jos, Tyf tyf, C1213Yci c1213Yci, BsH bsH, C0462Hbw c0462Hbw, JwP jwP, C16254mil c16254mil, C0384Fia c0384Fia, iAS ias, vLe vle, Eoa eoa, meX mex, C0669LuX c0669LuX, zJP zjp, C15938jkp c15938jkp, nCK nck, C17734zMz c17734zMz, Luu luu, C7592crI c7592crI, YJj yJj, C0238CXz c0238CXz, AGb aGb, C0315Dzp c0315Dzp, OHE ohe) { this.j = gcu; this.p = billPaymentService; this.n = tbg; this.A = c0368FbW; this.D = xvo; this.l = jos; this.a = tyf; this.b = c1213Yci; this.c = bsH; this.d = c0462Hbw; this.i = jwP; this.f = c16254mil; this.h = c0384Fia; this.y = ias; this.e = vle; this.C = str; this.k = eoa; this.t = mex; this.u = c0669LuX; this.w = zjp; this.z = c15938jkp; this.B = nck; this.x = c17734zMz; this.s = luu; this.q = c7592crI; this.g = yJj; this.m = c0238CXz; this.v = aGb; this.f8310o = c0315Dzp; this.r = ohe; } @Override // o.Cto public final AbstractC13163fSk h() { if (this.l.d == null) { gCU gcu = this.j; AbstractC13163fSk map = gcu.b.getRecommandedBiller(this.C).map(new fSS(this) { // from class: o.Ehh private One d; @Override // o.fSS public final Object a(Object obj) { return this.d.a.c((YTw) ((SingleDataEntity) obj).getData()); } { this.d = this; } }); joS jos = this.l; Objects.requireNonNull(jos); return map.doOnNext(new C14830gRz(jos)); } return AbstractC13163fSk.just(this.l.d); } @Override // o.Cto public final AbstractC13163fSk d(String str, String str2) { return this.j.b.getBillerByAccountNumber(str, str2).map(new fSS(this) { // from class: o.BHF private One c; @Override // o.fSS public final Object a(Object obj) { return this.c.a.a((BUi) ((SingleDataEntity) obj).getData()); } { this.c = this; } }); } @Override // o.Cto public final AbstractC13163fSk b(String str) { return this.j.b.getBillerByCompCode(str).map(new fSS(this) { // from class: o.Gxd private One a; @Override // o.fSS public final Object a(Object obj) { return this.a.a.a((BUi) ((SingleDataEntity) obj).getData()); } { this.a = this; } }); } @Override // o.Cto public final AbstractC13163fSk a(String str) { AbstractC13163fSk map = this.j.b.getBillerByAccountNumber(str, null).map(new fSS(this) { // from class: o.GsA private One e; @Override // o.fSS public final Object a(Object obj) { return this.e.a.a((BUi) ((SingleDataEntity) obj).getData()); } { this.e = this; } }); joS jos = this.l; Objects.requireNonNull(jos); return map.doOnNext(new C14830gRz(jos)); } @Override // o.Cto public final AbstractC13163fSk d(String str) { return this.j.b.getBillerByAccountNumber(str, null).map(new fSS(this) { // from class: o.Ukz private One c; @Override // o.fSS public final Object a(Object obj) { return this.c.a.a((BUi) ((SingleDataEntity) obj).getData()); } { this.c = this; } }); } @Override // o.Cto public final AbstractC13163fSk b(String str, String str2) { gCU gcu = this.j; return gcu.b.getSearchBillerList(new C15601gyZ(str, str2, this.C)).map(new fSS(this) { // from class: o.ybU private One a; @Override // o.fSS public final Object a(Object obj) { return this.a.a.e((HXl) ((SingleDataEntity) obj).getData()); } { this.a = this; } }); } @Override // o.Cto public final AbstractC13175fSw a(C15601gyZ c15601gyZ) { return new C13372fYk(this.p.getSearchBillPaymentList(c15601gyZ), new fSS(this) { // from class: o.sYe private One c; @Override // o.fSS public final Object a(Object obj) { return this.c.a.e((HXl) ((SingleDataEntity) obj).getData()); } { this.c = this; } }); } @Override // o.Cto public final AbstractC13163fSk e(String str, String str2) { gCU gcu = this.j; return gcu.b.getRtpSubscriptionSearchBillerList(new C15601gyZ(str, str2, this.C)).map(new fSS(this) { // from class: o.rwa private One c; @Override // o.fSS public final Object a(Object obj) { return this.c.a.e((HXl) ((SingleDataEntity) obj).getData()); } { this.c = this; } }); } @Override // o.Cto public final AbstractC13163fSk e(SBO sbo) { AbstractC13163fSk flatMap = this.j.b.getBillPaymentReview(sbo).flatMap(new fSS(this) { // from class: o.JyL private One c; @Override // o.fSS public final Object a(Object obj) { C1213Yci c1213Yci = this.c.b; return AbstractC13163fSk.just((eWY) C1213Yci.a(new Object[]{(C0733Ngv) ((SingleDataEntity) obj).getData()}, 248356973, -248356973, (int) System.currentTimeMillis())); } { this.c = this; } }); Tbg tbg = this.n; Objects.requireNonNull(tbg); return flatMap.doOnNext(new C16535pBV(tbg)).doOnComplete(new C9283dgn(this)); } @Override // o.Cto public final AbstractC13163fSk a(C14748fz c14748fz) { DiG.e("3053"); AbstractC13163fSk> billPaymentEDonationConfirmation = this.j.b.getBillPaymentEDonationConfirmation(c14748fz); JwP jwP = this.i; Objects.requireNonNull(jwP); return billPaymentEDonationConfirmation.map(new wwT(jwP)).doFinally(new Cbf()); } @Override // o.Cto public final AbstractC13163fSk a(Uhp uhp) { return this.j.b.getAutoInquiryAmount(uhp).flatMap(new fSS(this) { // from class: o.Uqq private One a; @Override // o.fSS public final Object a(Object obj) { final BsH bsH = this.a.c; C7698ctI c7698ctI = (C7698ctI) ((SingleDataEntity) obj).getData(); kwz a = kwz.a(); a.c = c7698ctI.b; a.a = c7698ctI.e == null ? null : BsH.b(c7698ctI.e, new InterfaceC1244Ytw(bsH) { // from class: o.Xoh private BsH c; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return BsH.d((lsm) obj2); } { this.c = bsH; } }); return AbstractC13163fSk.just(a); } { this.a = this; } }); } @Override // o.Cto public final AbstractC13163fSk e(C12744fG c12744fG) { return this.j.b.getPerformCinemaPayment(c12744fG).flatMap(new fSS(this) { // from class: o.qtZ private One d; @Override // o.fSS public final Object a(Object obj) { return AbstractC13163fSk.just(this.d.i.c((SingleDataEntity) obj)); } { this.d = this; } }); } @Override // o.Cto public final AbstractC13163fSk a(int i, String str) { return this.j.b.getEBills(i, str).flatMap(new fSS(this) { // from class: o.XND private One e; @Override // o.fSS public final Object a(Object obj) { C14851gaI c14851gaI; boolean booleanValue; C14851gaI c14851gaI2; List list; C0462Hbw c0462Hbw = this.e.d; iZc izc = (iZc) ((SingleDataEntity) obj).getData(); C14957gcv.e(izc, ""); TOS b = TOS.b(); EuD euD = c0462Hbw.c; List list2 = izc.a; if (list2 != null) { List list3 = list2; C14957gcv.e(list3, ""); ArrayList arrayList = new ArrayList(list3 instanceof Collection ? list3.size() : 10); for (lOK lok : list3) { C14957gcv.e(lok, ""); C17165uSq c17165uSq = new C17165uSq(); c17165uSq.d = lok.d; c17165uSq.c = lok.c; c17165uSq.a = lok.b; c17165uSq.j = (OffsetDateTime) ZTC.e(new Object[]{lok.g, null}, 267499366, -267499366, (int) System.currentTimeMillis()); c17165uSq.g = lok.j; c17165uSq.i = lok.h; c17165uSq.h = lok.f; c17165uSq.f9286o = lok.i; c17165uSq.p = lok.s; c17165uSq.l = lok.m; c17165uSq.s = lok.t; c17165uSq.r = lok.r; c17165uSq.y = lok.p; c17165uSq.v = lok.x; c17165uSq.D = lok.C; c17165uSq.b = lok.e; c17165uSq.k = lok.l; c17165uSq.t = lok.n; c17165uSq.q = lok.q; c17165uSq.x = lok.y; c17165uSq.A = lok.w; c17165uSq.f = lok.a; Boolean bool = lok.f9200o; if (bool == null) { booleanValue = false; } else { C14957gcv.c(bool, ""); booleanValue = bool.booleanValue(); } c17165uSq.m = Boolean.valueOf(booleanValue); List list4 = lok.k; if (list4 != null) { List list5 = list4; C14957gcv.e(list5, ""); ArrayList arrayList2 = new ArrayList(list5 instanceof Collection ? list5.size() : 10); for (Fyi fyi : list5) { arrayList2.add(new Zqy(fyi != null ? fyi.c : null, fyi != null ? fyi.a : null)); } c14851gaI2 = arrayList2; } else { c14851gaI2 = C14851gaI.c; } c17165uSq.n = c14851gaI2; String str2 = lok.u; if (str2 == null) { str2 = ""; } else { C14957gcv.c((Object) str2, ""); } c17165uSq.u = str2; String str3 = lok.z; if (str3 == null) { str3 = ""; } else { C14957gcv.c((Object) str3, ""); } c17165uSq.B = str3; String str4 = lok.v; if (str4 == null) { str4 = ""; } else { C14957gcv.c((Object) str4, ""); } c17165uSq.w = str4; String str5 = c17165uSq.u; if (str5 == null || gdZ.d((CharSequence) str5) || (list = c17165uSq.n) == null || list.isEmpty()) { c17165uSq.m = Boolean.FALSE; } C14957gcv.c(c17165uSq, ""); arrayList.add(c17165uSq); } c14851gaI = arrayList; } else { c14851gaI = C14851gaI.c; } b.c = c14851gaI; b.b = izc.d; b.a = izc.b; C14957gcv.c(b, ""); return AbstractC13163fSk.just(b); } { this.e = this; } }); } @Override // o.Cto public final AbstractC13163fSk e(Integer num) { AbstractC13163fSk> billPaymentHistory = this.j.b.getBillPaymentHistory(num); final Eoa eoa = this.k; Objects.requireNonNull(eoa); return billPaymentHistory.map(new fSS(eoa) { // from class: o.eAX private Eoa c; @Override // o.fSS public final Object a(Object obj) { Eoa eoa2 = this.c; SingleDataEntity singleDataEntity = (SingleDataEntity) obj; C14957gcv.e(singleDataEntity, ""); Integer num2 = ((fQD) singleDataEntity.getData()).d; if (num2 != null) { int intValue = num2.intValue(); String str = ((fQD) singleDataEntity.getData()).b; if (str == null) { throw new EntityMappingException("remark must not be null or empty"); } Integer num3 = ((fQD) singleDataEntity.getData()).a; boolean b = C14957gcv.b((Object) ((fQD) singleDataEntity.getData()).e, (Object) "Y"); List list = ((fQD) singleDataEntity.getData()).c; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (C15950jrf c15950jrf : list2) { String str2 = c15950jrf.a; Integer num4 = c15950jrf.i; String str3 = c15950jrf.c; String str4 = c15950jrf.b; String str5 = c15950jrf.e; boolean b2 = C14957gcv.b((Object) c15950jrf.g, (Object) "Y"); boolean b3 = C14957gcv.b((Object) c15950jrf.f, (Object) "Y"); C16096lEv c16096lEv = c15950jrf.d; arrayList.add(new Csf(num4, str2, str3, null, str4, null, null, null, str5, b3, b2, c16096lEv != null ? new Eiv(c16096lEv.d, c16096lEv.b) : null, null, null, null, 28904)); } List a = C14881gav.a((Iterable) arrayList, (Comparator) new Eoa.HBt()); if (a != null) { return new C17434wjF(intValue, b, str, num3, a); } } throw new EntityMappingException("transactions must not be null or empty"); } throw new EntityMappingException("totalCount must not be null or empty"); } { this.c = eoa; } }); } @Override // o.Cto public final AbstractC13163fSk b(C12949fM c12949fM) { AbstractC13163fSk map = this.j.b.getRepeat(c12949fM).map(new fSS() { // from class: o.KxG @Override // o.fSS public final Object a(Object obj) { return (C8305dHQ) ((SingleDataEntity) obj).getData(); } }); final meX mex = this.t; Objects.requireNonNull(mex); return map.map(new fSS(mex) { // from class: o.igd private meX c; @Override // o.fSS public final Object a(Object obj) { return meX.b((C8305dHQ) obj); } { this.c = mex; } }); } @Override // o.Heh public final C1019Twi n() { xVo xvo = this.D; C1019Twi c1019Twi = xvo.e; if (c1019Twi != null && "BILLPAYMENT".equals(c1019Twi.t)) { return xvo.e; } return null; } @Override // o.Cto public final AbstractC13163fSk c(C12642fD c12642fD) { AbstractC13163fSk flatMap = this.j.b.getDealReview(c12642fD).flatMap(new fSS(this) { // from class: o.BuB private One d; @Override // o.fSS public final Object a(Object obj) { C1213Yci c1213Yci = this.d.b; return AbstractC13163fSk.just((eWY) C1213Yci.a(new Object[]{(C0733Ngv) ((SingleDataEntity) obj).getData()}, 248356973, -248356973, (int) System.currentTimeMillis())); } { this.d = this; } }); Tbg tbg = this.n; Objects.requireNonNull(tbg); return flatMap.doOnNext(new C16535pBV(tbg)); } @Override // o.Cto public final AbstractC13163fSk c(C12708fF c12708fF) { return this.j.b.getRtpEBillPaymentReview(c12708fF).flatMap(new fSS(this) { // from class: o.CXa private One d; @Override // o.fSS public final Object a(Object obj) { String str; String str2; C16254mil c16254mil = this.d.f; DhH dhH = (DhH) ((SingleDataEntity) obj).getData(); xkv b = xkv.b(); b.t = dhH.t; b.l = dhH.m; b.n = dhH.f8131o; b.m = dhH.l; b.i = dhH.b; b.h = dhH.j; b.f = dhH.i; b.f9314o = dhH.n; String str3 = ""; if (dhH.k == null) { str = ""; } else { str = dhH.k; } b.p = str; if (dhH.p == null) { str2 = ""; } else { str2 = dhH.p; } b.s = str2; b.d = Double.valueOf(dhH.c); b.c = dhH.a; b.g = (OffsetDateTime) ZTC.e(new Object[]{dhH.g, null}, 267499366, -267499366, (int) System.currentTimeMillis()); b.j = Double.valueOf(dhH.h); b.k = dhH.f; b.b = Double.valueOf(dhH.d != null ? Double.valueOf(dhH.d).doubleValue() : 0.0d); if (dhH.e != null) { str3 = dhH.e; } b.a = str3; return AbstractC13163fSk.just(b); } { this.d = this; } }); } @Override // o.Cto public final AbstractC13163fSk c(C12744fG c12744fG) { return this.j.b.getRtpEBillPaymentConfirm(c12744fG).flatMap(new fSS(this) { // from class: o.zDX private One d; @Override // o.fSS public final Object a(Object obj) { C0384Fia c0384Fia = this.d.h; C0891Qvi c0891Qvi = (C0891Qvi) ((SingleDataEntity) obj).getData(); C15972jzc b = C15972jzc.b(); b.y = c0891Qvi.l; b.v = (OffsetDateTime) ZTC.e(new Object[]{c0891Qvi.m, null}, 267499366, -267499366, (int) System.currentTimeMillis()); b.p = c0891Qvi.n; b.w = c0891Qvi.f8334o; b.t = c0891Qvi.g; b.r = c0891Qvi.i; b.q = c0891Qvi.k; b.s = c0891Qvi.h; b.i = Double.parseDouble(c0891Qvi.c); b.h = c0891Qvi.a; b.k = Double.valueOf(c0891Qvi.d).doubleValue(); b.f9188o = c0891Qvi.j; b.n = c0891Qvi.f; b.l = Double.valueOf(c0891Qvi.b).doubleValue(); b.m = c0891Qvi.e; return AbstractC13163fSk.just(b); } { this.d = this; } }); } @Override // o.Cto public final AbstractC13163fSk i() { AbstractC13163fSk map = this.j.b.getBNPLPreValidation().map(new fSS() { // from class: o.Ulm @Override // o.fSS public final Object a(Object obj) { return (sPZ) ((SingleDataEntity) obj).getData(); } }); final C0669LuX c0669LuX = this.u; Objects.requireNonNull(c0669LuX); AbstractC13163fSk map2 = map.map(new fSS(c0669LuX) { // from class: o.aeZ private C0669LuX e; @Override // o.fSS public final Object a(Object obj) { sPZ spz = (sPZ) obj; C14957gcv.e(spz, ""); List list = spz.d; C14957gcv.e(list, ""); ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10); for (C16015kVo c16015kVo : list) { arrayList.add(new IDx(c16015kVo.f, c16015kVo.b, c16015kVo.e, c16015kVo.j, c16015kVo.h, c16015kVo.g, c16015kVo.c, c16015kVo.d, c16015kVo.a)); } ORl oRl = spz.c; return new jJR(arrayList, new C0396FpD(oRl.c, oRl.a, oRl.d)); } { this.e = c0669LuX; } }); final Tbg tbg = this.n; Objects.requireNonNull(tbg); return map2.doOnNext(new fSQ(tbg) { // from class: o.wJe private Tbg e; @Override // o.fSQ public final void c(Object obj) { this.e.e = (jJR) obj; } { this.e = tbg; } }); } @Override // o.Cto public final AbstractC13163fSk c(C14642fx c14642fx) { AbstractC13163fSk map = this.j.b.getBillersMerchantValidation(c14642fx).map(new fSS() { // from class: o.uYu @Override // o.fSS public final Object a(Object obj) { return (LzC) ((SingleDataEntity) obj).getData(); } }); final zJP zjp = this.w; Objects.requireNonNull(zjp); return map.map(new fSS(zjp) { // from class: o.HOF private zJP b; @Override // o.fSS public final Object a(Object obj) { return zJP.b((LzC) obj); } { this.b = zjp; } }); } @Override // o.Cto public final AbstractC13163fSk> k() { AbstractC13163fSk map = this.j.b.getLoanAccountInfo().map(new LmM()); final C15938jkp c15938jkp = this.z; Objects.requireNonNull(c15938jkp); return map.map(new fSS(c15938jkp) { // from class: o.WvS private C15938jkp c; @Override // o.fSS public final Object a(Object obj) { return C15938jkp.a((List) obj); } { this.c = c15938jkp; } }); } @Override // o.Cto public final AbstractC13163fSk a(C14271fq c14271fq) { AbstractC13163fSk bNPLTermAndConAccept = this.j.b.getBNPLTermAndConAccept(c14271fq); final C0669LuX c0669LuX = this.u; Objects.requireNonNull(c0669LuX); return bNPLTermAndConAccept.map(new fSS(c0669LuX) { // from class: o.PIB private C0669LuX e; @Override // o.fSS public final Object a(Object obj) { return this.e.d((C16562pOe) obj); } { this.e = c0669LuX; } }); } @Override // o.Cto public final AbstractC13163fSk> l() { AbstractC13163fSk map = this.j.b.getLoanAccountVerification().map(new LmM()); final nCK nck = this.B; Objects.requireNonNull(nck); return map.map(new fSS(nck) { // from class: o.FVE private nCK c; @Override // o.fSS public final Object a(Object obj) { return nCK.b((List) obj); } { this.c = nck; } }); } @Override // o.Cto public final void b(oyu oyuVar) { C17734zMz c17734zMz = this.x; C14957gcv.e(oyuVar, ""); String json = c17734zMz.a.toJson(oyuVar); C14957gcv.c((Object) json, ""); c17734zMz.b.edit().putString("com.scb.phone.PREK_KEY_BNPL_ACCOUNT", json).commit(); } @Override // o.Cto public final oyu o() { C17734zMz c17734zMz = this.x; String string = c17734zMz.b.getString("com.scb.phone.PREK_KEY_BNPL_ACCOUNT", null); if (string != null) { return (oyu) c17734zMz.a.fromJson(string, oyu.class); } return null; } @Override // o.Cto public final AbstractC13163fSk a(C14430ft c14430ft) { AbstractC13163fSk map = this.j.b.getBillersLoanSchemaData(c14430ft).map(new fSS() { // from class: o.THk @Override // o.fSS public final Object a(Object obj) { return (rvk) ((SingleDataEntity) obj).getData(); } }); final Luu luu = this.s; Objects.requireNonNull(luu); return map.map(new fSS(luu) { // from class: o.QzX private Luu b; @Override // o.fSS public final Object a(Object obj) { ArrayList arrayList; rvk rvkVar = (rvk) obj; C14957gcv.e(rvkVar, ""); double d = rvkVar.e; double d2 = rvkVar.c; String str = rvkVar.a; List list = rvkVar.b; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList2 = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (SBn sBn : list2) { arrayList2.add(new SDV(sBn.a, sBn.b, sBn.e)); } arrayList = arrayList2; } else { arrayList = null; } HcP hcP = rvkVar.d; return new FFN(d, d2, str, arrayList, hcP != null ? new UOa(hcP.a, hcP.e) : null); } { this.b = luu; } }); } @Override // o.Cto public final AbstractC13163fSk d(C14483fu c14483fu) { AbstractC13163fSk map = this.j.b.getBillersPaymentLoanInstallmentReview(c14483fu).map(new fSS() { // from class: o.jEQ @Override // o.fSS public final Object a(Object obj) { return (C8444dLc) ((SingleDataEntity) obj).getData(); } }); final C7592crI c7592crI = this.q; Objects.requireNonNull(c7592crI); return map.map(new fSS(c7592crI) { // from class: o.Nhe private C7592crI b; @Override // o.fSS public final Object a(Object obj) { Double d; Integer num; ArrayList arrayList; ArrayList arrayList2; C8444dLc c8444dLc = (C8444dLc) obj; C14957gcv.e(c8444dLc, ""); double d2 = c8444dLc.d; Double d3 = c8444dLc.m; Double d4 = c8444dLc.n; Double d5 = c8444dLc.g; Double d6 = c8444dLc.f; Double d7 = c8444dLc.i; Double d8 = c8444dLc.a; Double d9 = c8444dLc.c; Integer num2 = c8444dLc.l; List list = c8444dLc.j; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList3 = new ArrayList(list2 instanceof Collection ? list2.size() : 10); Iterator it = list2.iterator(); while (it.hasNext()) { C17255vKL c17255vKL = (C17255vKL) it.next(); arrayList3.add(new WbY(c17255vKL.b, c17255vKL.c, c17255vKL.e, c17255vKL.d)); it = it; num2 = num2; d9 = d9; } d = d9; num = num2; arrayList = arrayList3; } else { d = d9; num = num2; arrayList = null; } List list3 = c8444dLc.b; if (list3 != null) { List list4 = list3; C14957gcv.e(list4, ""); ArrayList arrayList4 = new ArrayList(list4 instanceof Collection ? list4.size() : 10); for (sfG sfg : list4) { arrayList4.add(new vKo(sfg.b, sfg.c)); } arrayList2 = arrayList4; } else { arrayList2 = null; } return new jTH(d2, d3, d4, d5, d6, d7, d8, d, num, arrayList, arrayList2, c8444dLc.h, c8444dLc.e); } { this.b = c7592crI; } }); } @Override // o.Cto public final AbstractC13163fSk d() { AbstractC13163fSk map = this.j.b.getAccountsCoinsSummary().map(new fSS() { // from class: o.MbV @Override // o.fSS public final Object a(Object obj) { return (qlN) ((SingleDataEntity) obj).getData(); } }); final YJj yJj = this.g; Objects.requireNonNull(yJj); return map.map(new fSS(yJj) { // from class: o.RYi private YJj b; @Override // o.fSS public final Object a(Object obj) { String str; MNB mnb; qlN qln = (qlN) obj; C14957gcv.e(qln, ""); String str2 = qln.c; String str3 = qln.a; kqr kqrVar = qln.e; if (kqrVar != null) { str = str2; mnb = new MNB(kqrVar.f, kqrVar.l, kqrVar.b, kqrVar.f9194o, kqrVar.k, kqrVar.m, kqrVar.n, kqrVar.e, kqrVar.h, kqrVar.i, kqrVar.j, kqrVar.c, kqrVar.a, kqrVar.g, kqrVar.d); } else { str = str2; mnb = null; } return new C15052gfl(str, str3, mnb); } { this.b = yJj; } }); } @Override // o.Cto public final AbstractC13163fSk d(C14695fy c14695fy) { AbstractC13163fSk map = this.j.b.getBillersConfig(c14695fy).map(new fSS() { // from class: o.XDn @Override // o.fSS public final Object a(Object obj) { return (C7057chB) ((SingleDataEntity) obj).getData(); } }); final C0238CXz c0238CXz = this.m; Objects.requireNonNull(c0238CXz); return map.map(new fSS(c0238CXz) { // from class: o.wzv private C0238CXz b; @Override // o.fSS public final Object a(Object obj) { ArrayList arrayList; C7057chB c7057chB = (C7057chB) obj; C14957gcv.e(c7057chB, ""); NJw nJw = c7057chB.e; ArrayList arrayList2 = null; VnM vnM = nJw != null ? new VnM(nJw.b) : null; List list = c7057chB.d; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList3 = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (C16731qmB c16731qmB : list2) { String str = c16731qmB.e; List list3 = c16731qmB.c; if (list3 != null) { List list4 = list3; C14957gcv.e(list4, ""); ArrayList arrayList4 = new ArrayList(list4 instanceof Collection ? list4.size() : 10); for (C4149bRj c4149bRj : list4) { arrayList4.add(new C2214aaQ(c4149bRj.c, c4149bRj.e)); } arrayList = arrayList4; } else { arrayList = null; } arrayList3.add(new Hct(str, arrayList)); } arrayList2 = arrayList3; } return new sLv(vnM, arrayList2); } { this.b = c0238CXz; } }); } @Override // o.Cto public final void e(Hfu hfu) { AGb aGb = this.v; C14957gcv.e(hfu, ""); String json = aGb.e.toJson(hfu); C14957gcv.c((Object) json, ""); aGb.c.edit().putString("com.scb.phone.PREK_KEY_BILLERS_CONFIG", json).commit(); } @Override // o.Cto public final Hfu j() { AGb aGb = this.v; String string = aGb.c.getString("com.scb.phone.PREK_KEY_BILLERS_CONFIG", null); if (string != null) { return (Hfu) aGb.e.fromJson(string, Hfu.class); } return null; } @Override // o.Cto public final AbstractC13163fSk e(C12674fE c12674fE) { AbstractC13163fSk map = this.j.b.getBillersQrGenerate(c12674fE).map(new fSS() { // from class: o.XQX @Override // o.fSS public final Object a(Object obj) { return (Ape) ((SingleDataEntity) obj).getData(); } }); final C0315Dzp c0315Dzp = this.f8310o; Objects.requireNonNull(c0315Dzp); return map.map(new fSS(c0315Dzp) { // from class: o.opk private C0315Dzp c; @Override // o.fSS public final Object a(Object obj) { return C0315Dzp.c((Ape) obj); } { this.c = c0315Dzp; } }); } @Override // o.Cto public final AbstractC13175fSw e(String str, boolean z) { if (!z) { DiG.e("3053"); } gCU gcu = this.j; AbstractC13175fSw> billerPaymentIso = gcu.b.getBillerPaymentIso(str, this.C, Boolean.valueOf(z)); final OHE ohe = this.r; Objects.requireNonNull(ohe); return new C13325fXX(new C13372fYk(billerPaymentIso, new fSS(ohe) { // from class: o.jsG private OHE b; @Override // o.fSS public final Object a(Object obj) { return this.b.a((SingleDataEntity) obj); } { this.b = ohe; } }), new Cbf()); } @Override // o.Cto public final jJR b() { return this.n.e; } @Override // o.Cto public final eWY c() { return this.n.b; } @Override // o.Cto public final SBO a() { return this.n.a; } @Override // o.Cto public final void e() { this.l.d = null; } @Override // o.Cto public final C17671ymh g() { return this.l.d; } @Override // o.Cto public final AbstractC13163fSk d(C12572fB c12572fB) { c12572fB.n = this.C; AbstractC13163fSk flatMap = this.j.b.getBillPaymentEDonationReview(c12572fB).flatMap(new fSS(this) { // from class: o.Nyy private One d; @Override // o.fSS public final Object a(Object obj) { C1213Yci c1213Yci = this.d.b; return AbstractC13163fSk.just((eWY) C1213Yci.a(new Object[]{(C0733Ngv) ((SingleDataEntity) obj).getData()}, 248356973, -248356973, (int) System.currentTimeMillis())); } { this.d = this; } }); Tbg tbg = this.n; Objects.requireNonNull(tbg); return flatMap.doOnNext(new C16535pBV(tbg)); } @Override // o.Cto public final AbstractC13163fSk d(SBO sbo) { sbo.D = this.C; this.n.a = sbo; if (sbo.m == null) { sbo.m = this.e.d; } if (sbo.k == null) { sbo.k = this.e.a; } if (sbo.q == null) { sbo.q = this.e.b; } AbstractC13163fSk flatMap = this.j.b.getBillPaymentReview(sbo).flatMap(new fSS(this) { // from class: o.eWk private One b; @Override // o.fSS public final Object a(Object obj) { C1213Yci c1213Yci = this.b.b; return AbstractC13163fSk.just((eWY) C1213Yci.a(new Object[]{(C0733Ngv) ((SingleDataEntity) obj).getData()}, 248356973, -248356973, (int) System.currentTimeMillis())); } { this.b = this; } }); Tbg tbg = this.n; Objects.requireNonNull(tbg); return flatMap.doOnNext(new C16535pBV(tbg)).doOnComplete(new C9283dgn(this)); } @Override // o.Cto public final AbstractC13163fSk c(C12607fC c12607fC) { c12607fC.e = this.C; AbstractC13163fSk map = this.j.b.getBillScan(c12607fC).map(new fSS() { // from class: o.fmy @Override // o.fSS public final Object a(Object obj) { return (C0628LBa) ((SingleDataEntity) obj).getData(); } }); final iAS ias = this.y; Objects.requireNonNull(ias); return map.map(new fSS(ias) { // from class: o.Eup private iAS a; @Override // o.fSS public final Object a(Object obj) { return this.a.a((C0628LBa) obj); } { this.a = ias; } }); } @Override // o.Cto public final AbstractC13163fSk> f() { C7968cyO c7968cyO = this.A.b; if (c7968cyO != null && c7968cyO.e != null) { return AbstractC13163fSk.just(c7968cyO.e); } return AbstractC13163fSk.just(new ArrayList()); } @Override // o.Cto public final String m() { return this.D.d; } @Override // o.Cto public final AbstractC13163fSk t() { if (this.l.d == null) { AbstractC13163fSk map = this.j.b.getRtpSubscriptionRecommandedBiller().map(new fSS(this) { // from class: o.Iza private One e; @Override // o.fSS public final Object a(Object obj) { return this.e.a.c((YTw) ((SingleDataEntity) obj).getData()); } { this.e = this; } }); joS jos = this.l; Objects.requireNonNull(jos); return map.doOnNext(new C14830gRz(jos)); } return AbstractC13163fSk.just(this.l.d); } @Override // o.Cto public final AbstractC13163fSk d(C12744fG c12744fG) { gCU gcu = this.j; DiG.e("3053"); AbstractC13163fSk> performPayment = gcu.b.getPerformPayment(c12744fG); JwP jwP = this.i; Objects.requireNonNull(jwP); return performPayment.map(new wwT(jwP)).doFinally(new Cbf()); } @Override // o.Cto public final AbstractC13163fSk a(C12744fG c12744fG) { gCU gcu = this.j; DiG.e("3053"); AbstractC13163fSk> performPaymentWithReferer = gcu.b.getPerformPaymentWithReferer(c12744fG); JwP jwP = this.i; Objects.requireNonNull(jwP); return performPaymentWithReferer.map(new wwT(jwP)).doFinally(new Cbf()); } }