package o; import com.scb.phone.data.entity.transfer.SingleDataEntity; import java.util.ArrayList; import java.util.Collection; import java.util.List; import o.DiG; import org.threeten.bp.OffsetDateTime; /* loaded from: classes3.dex */ public final class yYy implements HlG { final Xtd a; private final C9875dsD b; final C0969Soc c; final psq d; private final String e; @InterfaceC13391fZD public yYy(String str, C9875dsD c9875dsD, C0969Soc c0969Soc, Xtd xtd, psq psqVar) { C14957gcv.e(str, ""); C14957gcv.e(c9875dsD, ""); C14957gcv.e(c0969Soc, ""); C14957gcv.e(xtd, ""); C14957gcv.e(psqVar, ""); this.e = str; this.b = c9875dsD; this.c = c0969Soc; this.a = xtd; this.d = psqVar; } /* loaded from: classes3.dex */ static final class tOB extends AbstractC14961gcz implements InterfaceC14894gbR, SVW> { private yYy b; @Override // o.InterfaceC14894gbR public final /* synthetic */ SVW invoke(SingleDataEntity singleDataEntity) { C14851gaI c14851gaI; SingleDataEntity singleDataEntity2 = singleDataEntity; C0969Soc c0969Soc = this.b.c; GZD data = singleDataEntity2.getData(); C14957gcv.c(data, ""); GZD gzd = data; yzb status = singleDataEntity2.getStatus(); C14957gcv.c(status, ""); C14957gcv.e(gzd, ""); C14957gcv.e(status, ""); String str = gzd.e; List list = gzd.c; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (C11099eYc c11099eYc : list2) { C0615KrK c0615KrK = new C0615KrK(); c0615KrK.c = c11099eYc.a; c0615KrK.e = c11099eYc.e; arrayList.add(c0615KrK); } c14851gaI = arrayList; } else { c14851gaI = null; } if (c14851gaI == null) { c14851gaI = C14851gaI.c; } return new SVW(str, gzd.g, C14881gav.d((Iterable) c14851gaI), gzd.d, status.e, status.h, status.c, C0969Soc.b(gzd.a), C0969Soc.b(gzd.f), gzd.b); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ tOB(yYy yyy) { super(1); this.b = yyy; } } /* loaded from: classes3.dex */ static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR { private yYy d; @Override // o.InterfaceC14894gbR public final /* synthetic */ xEp invoke(PxG pxG) { return this.d.a.a(pxG); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ HBt(yYy yyy) { super(1); this.d = yyy; } } /* loaded from: classes3.dex */ static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR, PxG> { public static final IeS b = new IeS(); @Override // o.InterfaceC14894gbR public final /* synthetic */ PxG invoke(SingleDataEntity singleDataEntity) { return singleDataEntity.getData(); } IeS() { super(1); } } @Override // o.HlG public final AbstractC13163fSk a() { AbstractC13163fSk> cardlessInfo = this.b.b.getCardlessInfo(); final IeS ieS = IeS.b; AbstractC13163fSk map = cardlessInfo.map(new fSS(ieS) { // from class: o.COf private InterfaceC14894gbR a; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.a; C14957gcv.e(interfaceC14894gbR, ""); return (PxG) interfaceC14894gbR.invoke(obj); } { this.a = ieS; } }); final HBt hBt = new HBt(this); AbstractC13163fSk map2 = map.map(new fSS(hBt) { // from class: o.nqB private InterfaceC14894gbR a; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.a; C14957gcv.e(interfaceC14894gbR, ""); return (xEp) interfaceC14894gbR.invoke(obj); } { this.a = hBt; } }); C14957gcv.c(map2, ""); return map2; } /* loaded from: classes3.dex */ static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR, C6250cNc> { public static final LWm b = new LWm(); @Override // o.InterfaceC14894gbR public final /* synthetic */ C6250cNc invoke(SingleDataEntity singleDataEntity) { return singleDataEntity.getData(); } LWm() { super(1); } } /* loaded from: classes3.dex */ static final class ZqN extends AbstractC14961gcz implements InterfaceC14894gbR { private yYy e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C17429whj invoke(C6250cNc c6250cNc) { C6250cNc c6250cNc2 = c6250cNc; psq psqVar = this.e.d; C17429whj c17429whj = new C17429whj(); c17429whj.c = (OffsetDateTime) ZTC.e(new Object[]{c6250cNc2.e, null}, 267499366, -267499366, (int) System.currentTimeMillis()); c17429whj.d = c6250cNc2.c; c17429whj.b = (OffsetDateTime) ZTC.e(new Object[]{c6250cNc2.a, null}, 267499366, -267499366, (int) System.currentTimeMillis()); return c17429whj; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ ZqN(yYy yyy) { super(1); this.e = yyy; } } @Override // o.HlG public final AbstractC13163fSk c(C12780fH c12780fH) { C14957gcv.e(c12780fH, ""); AbstractC13163fSk> confirmation = this.b.b.getConfirmation(c12780fH); final LWm lWm = LWm.b; AbstractC13163fSk map = confirmation.map(new fSS(lWm) { // from class: o.qeU private InterfaceC14894gbR a; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.a; C14957gcv.e(interfaceC14894gbR, ""); return (C6250cNc) interfaceC14894gbR.invoke(obj); } { this.a = lWm; } }); final ZqN zqN = new ZqN(this); AbstractC13163fSk map2 = map.map(new fSS(zqN) { // from class: o.BAH private InterfaceC14894gbR e; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.e; C14957gcv.e(interfaceC14894gbR, ""); return (C17429whj) interfaceC14894gbR.invoke(obj); } { this.e = zqN; } }); C14957gcv.c(map2, ""); return map2; } /* loaded from: classes3.dex */ static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR> { public static final RVV b = new RVV(); @Override // o.InterfaceC14894gbR public final /* synthetic */ InterfaceC13169fSq invoke(C16562pOe c16562pOe) { return AbstractC13163fSk.just(Boolean.TRUE); } RVV() { super(1); } } @Override // o.HlG public final AbstractC13163fSk c(C12883fK c12883fK) { C14957gcv.e(c12883fK, ""); AbstractC13163fSk cancelWithdraw = this.b.b.getCancelWithdraw(c12883fK); final RVV rvv = RVV.b; AbstractC13163fSk flatMap = cancelWithdraw.flatMap(new fSS(rvv) { // from class: o.cpF private InterfaceC14894gbR b; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.b; C14957gcv.e(interfaceC14894gbR, ""); return (InterfaceC13169fSq) interfaceC14894gbR.invoke(obj); } { this.b = rvv; } }); C14957gcv.c(flatMap, ""); return flatMap; } /* loaded from: classes3.dex */ static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR> { public static final Sts c = new Sts(); @Override // o.InterfaceC14894gbR public final /* synthetic */ InterfaceC13169fSq invoke(C16562pOe c16562pOe) { return AbstractC13163fSk.just(Boolean.TRUE); } Sts() { super(1); } } @Override // o.HlG public final AbstractC13163fSk d() { AbstractC13163fSk acceptCardlessTnc = this.b.b.acceptCardlessTnc(); final Sts sts = Sts.c; AbstractC13163fSk flatMap = acceptCardlessTnc.flatMap(new fSS(sts) { // from class: o.lJR private InterfaceC14894gbR e; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.e; C14957gcv.e(interfaceC14894gbR, ""); return (InterfaceC13169fSq) interfaceC14894gbR.invoke(obj); } { this.e = sts; } }); C14957gcv.c(flatMap, ""); return flatMap; } @Override // o.HlG public final AbstractC13163fSk b(C12817fI c12817fI) { C14957gcv.e(c12817fI, ""); c12817fI.f = this.e; DiG.Sts sts = DiG.a; DiG.Sts.d("3014"); DiG.Sts sts2 = DiG.a; DiG.Sts.d("3017"); AbstractC13163fSk> verification = this.b.b.getVerification(c12817fI); final tOB tob = new tOB(this); AbstractC13163fSk doFinally = verification.map(new fSS(tob) { // from class: o.rDg private InterfaceC14894gbR b; @Override // o.fSS public final Object a(Object obj) { InterfaceC14894gbR interfaceC14894gbR = this.b; C14957gcv.e(interfaceC14894gbR, ""); return (SVW) interfaceC14894gbR.invoke(obj); } { this.b = tob; } }).doFinally(new fSP() { // from class: o.yAQ @Override // o.fSP public final void c() { DiG.Sts sts3 = DiG.a; DiG.Sts.c(); } }); C14957gcv.c(doFinally, ""); return doFinally; } }