package o; import com.scb.phone.data.entity.transfer.SingleDataEntity; import com.scb.phone.data.network.service.DebitCardATMService; import com.scb.phone.domain.entity.mwpartner.EntityMappingException; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; /* loaded from: classes3.dex */ public final class LjD implements InterfaceC1280ZnQ { final SIz a; final Mdv b; final WWV c; final xJa d; final xYl e; private final C16832rfE f; private final DebitCardATMService h; private final String i; private final TDT j; @InterfaceC13391fZD public LjD(DebitCardATMService debitCardATMService, xYl xyl, WWV wwv, SIz sIz, xJa xja, Mdv mdv, String str, TDT tdt, C16832rfE c16832rfE) { this.h = debitCardATMService; this.e = xyl; this.c = wwv; this.a = sIz; this.d = xja; this.b = mdv; this.i = str; this.j = tdt; this.f = c16832rfE; } @Override // o.InterfaceC1280ZnQ public final AbstractC13163fSk a(String str, String str2, String str3, ZUN zun) { return this.h.putDebitCardLimit(str, str2, str3, zun).map(new fSS(this) { // from class: o.kbP private LjD c; @Override // o.fSS public final Object a(Object obj) { return this.c.e.d((C16562pOe) obj); } { this.c = this; } }); } @Override // o.InterfaceC1280ZnQ public final AbstractC13163fSk a(XdA xdA) { return this.h.debitCardTransaction(xdA).map(new fSS() { // from class: o.XeL @Override // o.fSS public final Object a(Object obj) { return (NFW) ((SingleDataEntity) obj).getData(); } }).map(new fSS(this) { // from class: o.FjS private LjD e; @Override // o.fSS public final Object a(Object obj) { SIz sIz = this.e.a; return SIz.a((NFW) obj); } { this.e = this; } }); } @Override // o.InterfaceC1280ZnQ public final AbstractC13163fSk e(JOM jom) { return this.h.debitCardReward(jom).map(new fSS() { // from class: o.dvr @Override // o.fSS public final Object a(Object obj) { return (wqm) ((SingleDataEntity) obj).getData(); } }).map(new fSS(this) { // from class: o.pot private LjD c; @Override // o.fSS public final Object a(Object obj) { WWV wwv = this.c.c; return WWV.a((wqm) obj); } { this.c = this; } }); } @Override // o.InterfaceC1280ZnQ public final AbstractC13163fSk e(Lhh lhh) { return this.h.debitCardBlockStatus(lhh).map(new fSS() { // from class: o.YWd @Override // o.fSS public final Object a(Object obj) { return (nHj) ((SingleDataEntity) obj).getData(); } }).map(new fSS(this) { // from class: o.QjK private LjD d; @Override // o.fSS public final Object a(Object obj) { xYl xyl = this.d.e; return xYl.a((nHj) obj); } { this.d = this; } }); } @Override // o.InterfaceC1280ZnQ public final AbstractC13163fSk> c(String str) { return this.h.debitCardLimit(str, this.i).map(new fSS() { // from class: o.xUZ @Override // o.fSS public final Object a(Object obj) { return (C17019tKj) ((SingleDataEntity) obj).getData(); } }).map(new fSS(this) { // from class: o.owH private LjD d; @Override // o.fSS public final Object a(Object obj) { return this.d.d.b((C17019tKj) obj); } { this.d = this; } }); } @Override // o.InterfaceC1280ZnQ public final AbstractC13163fSk e(String str) { return this.h.debitCardResetPin(str, this.i).map(new fSS() { // from class: o.Lim @Override // o.fSS public final Object a(Object obj) { return (VxF) ((SingleDataEntity) obj).getData(); } }).map(new fSS(this) { // from class: o.Ips private LjD a; @Override // o.fSS public final Object a(Object obj) { Mdv mdv = this.a.b; return Mdv.c((VxF) obj); } { this.a = this; } }); } @Override // o.InterfaceC1280ZnQ public final ZUN e() { return this.f.c; } @Override // o.InterfaceC1280ZnQ public final AbstractC13163fSk d(C16833rfK c16833rfK) { if (c16833rfK.d.isEmpty()) { return AbstractC13163fSk.just(new FIi("", "", new ArrayList(), new C13670feh(null, null, null, null), "", "", "", new Pgp("", ""), new Pgp("", ""), new Pgp("", ""), new Pgp("", ""), new Pgp("", ""), new Pgp("", ""))); } return this.h.debitCardsSummary(c16833rfK).map(new fSS() { // from class: o.gUa @Override // o.fSS public final Object a(Object obj) { return (lhJ) ((SingleDataEntity) obj).getData(); } }).map(new fSS(this) { // from class: o.hND private LjD e; @Override // o.fSS public final Object a(Object obj) { lhJ lhj; String str; String str2; C14851gaI c14851gaI; String str3; String str4; String str5; String str6; C0696Mln c0696Mln; String str7; String str8; int i; String str9; lhJ lhj2 = (lhJ) obj; xYl xyl = this.e.e; String str10 = ""; C14957gcv.e(lhj2, ""); String str11 = lhj2.h; String str12 = lhj2.f; List list = lhj2.d; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); Iterator it = list2.iterator(); while (it.hasNext()) { C16571pRl c16571pRl = (C16571pRl) it.next(); C14957gcv.e(c16571pRl, str10); int i2 = c16571pRl.t; String str13 = c16571pRl.b; String str14 = c16571pRl.e; String str15 = str14 == null ? str10 : str14; String str16 = c16571pRl.l; String str17 = str16 == null ? str10 : str16; String str18 = c16571pRl.h; String str19 = c16571pRl.g; String str20 = c16571pRl.i; String str21 = c16571pRl.u; String str22 = c16571pRl.w; String str23 = str10; C2003aUj c2003aUj = c16571pRl.j; Iterator it2 = it; String str24 = c2003aUj != null ? c2003aUj.d : null; if (c2003aUj != null) { str4 = c2003aUj.a; str3 = str12; } else { str3 = str12; str4 = null; } zSr zsr = new zSr(str24, str4); String[] strArr = c16571pRl.c; int i3 = c16571pRl.x; String str25 = str11; String str26 = c16571pRl.a; lhJ lhj3 = lhj2; String str27 = c16571pRl.v; ArrayList arrayList2 = arrayList; String str28 = c16571pRl.k; String str29 = c16571pRl.d; String str30 = c16571pRl.y; String str31 = c16571pRl.f9239o; String str32 = c16571pRl.s; String str33 = c16571pRl.l; String str34 = str33 == null ? str23 : str33; String str35 = c16571pRl.z; mSE mse = c16571pRl.r; if (mse != null) { str6 = str32; str5 = str27; c0696Mln = new C0696Mln(mse.e, mse.c); } else { str5 = str27; str6 = str32; c0696Mln = null; } TDV tdv = c16571pRl.q; String[] strArr2 = tdv != null ? tdv.b : null; String[] strArr3 = tdv != null ? tdv.d : null; if (tdv != null) { str7 = str26; str8 = tdv.c; } else { str7 = str26; str8 = null; } if (tdv != null) { str9 = tdv.e; i = i3; } else { i = i3; str9 = null; } C17458wtK c17458wtK = new C17458wtK(strArr2, strArr3, str8, str9); String str36 = c16571pRl.B; C0227BuO c0227BuO = new C0227BuO(i2, str13, str15, str17, str18, str19, str20, str21, str22, zsr, strArr, i, str7, str5, str28, str29, str30, str31, str6, str34, str35, c0696Mln, c17458wtK, str36 == null ? str23 : str36, c16571pRl.m, c16571pRl.n, c16571pRl.p, c16571pRl.f); arrayList = arrayList2; arrayList.add(c0227BuO); str10 = str23; it = it2; str12 = str3; str11 = str25; lhj2 = lhj3; } lhj = lhj2; str = str11; str2 = str12; ArrayList arrayList3 = new ArrayList(); for (Object obj2 : arrayList) { if (((C0227BuO) obj2).e.length() > 0) { arrayList3.add(obj2); } } c14851gaI = arrayList3; } else { lhj = lhj2; str = str11; str2 = str12; c14851gaI = C14851gaI.c; } List list3 = c14851gaI; lhJ lhj4 = lhj; rMe rme = lhj4.c; if (rme != null) { return new FIi(str, str2, list3, new C13670feh(xYl.b(rme.c), xYl.b(rme.b), xYl.b(rme.e), xYl.b(rme.d)), xYl.i(lhj4.g), xYl.i(lhj4.j), xYl.i(lhj4.i), xYl.e(lhj4.b), xYl.e(lhj4.m), xYl.e(lhj4.e), xYl.e(lhj4.f9206o), xYl.e(lhj4.a), xYl.e(lhj4.k)); } throw new EntityMappingException("data must not be null or empty"); } { this.e = this; } }); } @Override // o.InterfaceC1280ZnQ public final Boolean c() { return Boolean.valueOf(this.j.f8370o); } @Override // o.InterfaceC1280ZnQ public final Boolean a() { return Boolean.valueOf(this.j.p); } @Override // o.InterfaceC1280ZnQ public final void d(ZUN zun) { this.f.c = zun; } @Override // o.InterfaceC1280ZnQ public final String b() { return this.i; } }