package o; import com.scb.phone.data.entity.transfer.SingleDataEntity; import com.scb.phone.data.network.service.NsipPartnerPaymentService; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import o.DiG; /* loaded from: classes3.dex */ public final class PCl implements qwi { final KyG a; private final NsipPartnerPaymentService b; final hcL c; final QMd d; @InterfaceC13391fZD public PCl(hcL hcl, KyG kyG, QMd qMd, NsipPartnerPaymentService nsipPartnerPaymentService) { C14957gcv.e(hcl, ""); C14957gcv.e(kyG, ""); C14957gcv.e(qMd, ""); C14957gcv.e(nsipPartnerPaymentService, ""); this.c = hcl; this.a = kyG; this.d = qMd; this.b = nsipPartnerPaymentService; } /* loaded from: classes3.dex */ static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR, DKv> { private PCl c; @Override // o.InterfaceC14894gbR public final /* synthetic */ DKv invoke(SingleDataEntity singleDataEntity) { hcL hcl = this.c.c; C1573aHz data = singleDataEntity.getData(); C14957gcv.c(data, ""); C1573aHz c1573aHz = data; C14957gcv.e(c1573aHz, ""); String str = c1573aHz.b; String str2 = c1573aHz.f; String str3 = c1573aHz.j; double d = c1573aHz.a; String str4 = c1573aHz.c; String str5 = c1573aHz.d; String str6 = c1573aHz.m; String str7 = c1573aHz.n; String str8 = c1573aHz.f8494o; String str9 = c1573aHz.h; String str10 = c1573aHz.k; String str11 = c1573aHz.l; String str12 = c1573aHz.i; String str13 = c1573aHz.g; KrN krN = c1573aHz.e; C14851gaI c14851gaI = krN != null ? krN.b : null; if (c14851gaI == null) { c14851gaI = C14851gaI.c; } List list = c14851gaI; C14957gcv.e(list, ""); ArrayList arrayList = new ArrayList(list instanceof Collection ? list.size() : 10); Iterator it = list.iterator(); while (it.hasNext()) { lsm lsmVar = (lsm) it.next(); arrayList.add(new jSX(lsmVar.a, lsmVar.d, lsmVar.e, lsmVar.g, lsmVar.c, (String) null, 96)); it = it; str10 = str10; str9 = str9; str8 = str8; str7 = str7; } String str14 = str7; String str15 = str8; String str16 = str9; String str17 = str10; List d2 = C14881gav.d((Iterable) arrayList); KrN krN2 = c1573aHz.e; VOJ voj = krN2 != null ? krN2.e : null; return new DKv(str, str2, str3, d, str4, str5, str6, str14, str15, str16, str17, str11, str12, str13, d2, voj != null ? new KsP(voj.c, voj.b, voj.a, voj.e, voj.d) : null); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ Sts(PCl pCl) { super(1); this.c = pCl; } } @Override // o.qwi public final AbstractC13175fSw b(String str) { C14957gcv.e(str, ""); AbstractC13175fSw> partnerPaymentId = this.b.getPartnerPaymentId(str); final Sts sts = new Sts(this); C13372fYk c13372fYk = new C13372fYk(partnerPaymentId, new fSS(sts) { // from class: o.Wrh private InterfaceC14894gbR c; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.c; C14957gcv.e(interfaceC14894gbR, ""); return (DKv) interfaceC14894gbR.invoke(obj); } { this.c = sts; } }); C14957gcv.c(c13372fYk, ""); return c13372fYk; } @Override // o.qwi public final AbstractC13175fSw b(C6113cJ c6113cJ) { C14957gcv.e(c6113cJ, ""); DiG.Sts sts = DiG.a; DiG.Sts.d("9003"); AbstractC13175fSw> partnerPaymentVerification = this.b.getPartnerPaymentVerification(c6113cJ); final RVV rvv = new RVV(this); C13325fXX c13325fXX = new C13325fXX(new C13372fYk(partnerPaymentVerification, new fSS(rvv) { // from class: o.ueY private InterfaceC14894gbR d; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.d; C14957gcv.e(interfaceC14894gbR, ""); return (C3178asc) interfaceC14894gbR.invoke(obj); } { this.d = rvv; } }), new IpU(DiG.a)); C14957gcv.c(c13325fXX, ""); return c13325fXX; } /* loaded from: classes3.dex */ static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR, C3178asc> { private PCl b; @Override // o.InterfaceC14894gbR public final /* synthetic */ C3178asc invoke(SingleDataEntity singleDataEntity) { SingleDataEntity singleDataEntity2 = singleDataEntity; KyG kyG = this.b.a; FAd data = singleDataEntity2.getData(); C14957gcv.c(data, ""); FAd fAd = data; yzb status = singleDataEntity2.getStatus(); C14957gcv.c(status, ""); C14957gcv.e(fAd, ""); C14957gcv.e(status, ""); iJI iji = new iJI(status.e, status.g); iji.b = status.h; iji.d = status.c; double d = fAd.f; double d2 = fAd.j; String str = fAd.b; String str2 = fAd.c; String str3 = fAd.e; String str4 = fAd.d; String str5 = fAd.g; List list = fAd.a.e; ArrayList arrayList = null; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList2 = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (jwX jwx : list2) { arrayList2.add(new jSX(jwx != null ? jwx.d : null, jwx != null ? jwx.c : null, jwx != null ? jwx.b : null, jwx != null ? jwx.g : null, jwx != null ? jwx.h : null, jwx != null ? jwx.a : null, 64)); } arrayList = arrayList2; } C3178asc c3178asc = new C3178asc(d, d2, str, str2, str3, str4, str5, new Jky(arrayList)); c3178asc.a(iji); return c3178asc; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ RVV(PCl pCl) { super(1); this.b = pCl; } } /* loaded from: classes3.dex */ static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR, kkD> { private PCl b; @Override // o.InterfaceC14894gbR public final /* synthetic */ kkD invoke(SingleDataEntity singleDataEntity) { QMd qMd = this.b.d; C16902sHd data = singleDataEntity.getData(); C14957gcv.c(data, ""); return QMd.b(data); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ HBt(PCl pCl) { super(1); this.b = pCl; } } @Override // o.qwi public final AbstractC13175fSw b(C6083cI c6083cI, String str, String str2) { C14957gcv.e(c6083cI, ""); AbstractC13175fSw> partnerPaymentConfirm = this.b.getPartnerPaymentConfirm(c6083cI, str, str2); final HBt hBt = new HBt(this); C13372fYk c13372fYk = new C13372fYk(partnerPaymentConfirm, new fSS(hBt) { // from class: o.VMx private InterfaceC14894gbR c; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.c; C14957gcv.e(interfaceC14894gbR, ""); return (kkD) interfaceC14894gbR.invoke(obj); } { this.c = hBt; } }); C14957gcv.c(c13372fYk, ""); return c13372fYk; } }