what-the-bank/sources/o/C15817iol.java

645 lines
23 KiB
Java

package o;
import com.scb.phone.data.entity.transfer.SingleDataEntity;
import com.scb.phone.data.network.api.mailingaddress.MailingAddressApi;
import com.scb.phone.domain.entity.mwpartner.EntityMappingException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import org.threeten.bp.OffsetDateTime;
/* renamed from: o.iol, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C15817iol implements sJr {
private final C0368FbW a;
C14838gVH b;
private final MailingAddressApi c;
private final String d;
@InterfaceC13391fZD
public C15817iol(MailingAddressApi mailingAddressApi, C14838gVH c14838gVH, C0368FbW c0368FbW, String str) {
C14957gcv.e(mailingAddressApi, "");
C14957gcv.e(c14838gVH, "");
C14957gcv.e(c0368FbW, "");
C14957gcv.e(str, "");
this.c = mailingAddressApi;
this.b = c14838gVH;
this.a = c0368FbW;
this.d = str;
}
/* renamed from: o.iol$RVV */
/* loaded from: classes3.dex */
static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<SaX>, Asu> {
private C15817iol b;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ Asu invoke(SingleDataEntity<SaX> singleDataEntity) {
C14838gVH c14838gVH = this.b.b;
SaX data = singleDataEntity.getData();
C14957gcv.c(data, "");
SaX saX = data;
C14957gcv.e(saX, "");
List<C15569guJ> list = saX.d;
if (list == null || list.isEmpty()) {
throw C14838gVH.e();
}
List<C15569guJ> list2 = saX.d;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
for (C15569guJ c15569guJ : list2) {
String str = c15569guJ.e;
if (str == null) {
throw C14838gVH.e();
}
String str2 = c15569guJ.b;
if (str2 != null) {
arrayList.add(new ruK(str, str2));
} else {
throw C14838gVH.e();
}
}
return new Asu(arrayList);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
RVV(C15817iol c15817iol) {
super(1);
this.b = c15817iol;
}
}
@Override // o.sJr
public final AbstractC13163fSk<Asu> d() {
AbstractC13163fSk<SingleDataEntity<SaX>> postMailingAddressGoodToKnow = this.c.postMailingAddressGoodToKnow(new YnA(this.d));
final RVV rvv = new RVV(this);
AbstractC13163fSk map = postMailingAddressGoodToKnow.map(new fSS(rvv) { // from class: o.Mdu
private InterfaceC14894gbR e;
@Override // o.fSS
public final Object a(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.e;
C14957gcv.e(interfaceC14894gbR, "");
return (Asu) interfaceC14894gbR.invoke(obj);
}
{
this.e = rvv;
}
});
C14957gcv.c(map, "");
return map;
}
/* renamed from: o.iol$HBt */
/* loaded from: classes3.dex */
static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<PMI>, Mfv> {
public static final HBt e = new HBt();
@Override // o.InterfaceC14894gbR
public final /* synthetic */ Mfv invoke(SingleDataEntity<PMI> singleDataEntity) {
ArrayList arrayList;
ArrayList arrayList2;
ArrayList arrayList3;
ArrayList arrayList4;
ArrayList arrayList5;
PMI data = singleDataEntity.getData();
C14957gcv.c(data, "");
PMI pmi = data;
C14957gcv.e(pmi, "");
List<Rbd> list = pmi.e;
if (list != null) {
List<Rbd> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList6 = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
Iterator<T> it = list2.iterator();
while (it.hasNext()) {
arrayList6.add(C8558dOy.c((Rbd) it.next()));
}
arrayList = arrayList6;
} else {
arrayList = null;
}
List<C0677MCc> list3 = pmi.a;
if (list3 != null) {
List<C0677MCc> list4 = list3;
C14957gcv.e(list4, "");
ArrayList arrayList7 = new ArrayList(list4 instanceof Collection ? list4.size() : 10);
Iterator<T> it2 = list4.iterator();
while (it2.hasNext()) {
arrayList7.add(C8558dOy.b((C0677MCc) it2.next()));
}
arrayList2 = arrayList7;
} else {
arrayList2 = null;
}
List<Rbd> list5 = pmi.i;
if (list5 != null) {
List<Rbd> list6 = list5;
C14957gcv.e(list6, "");
ArrayList arrayList8 = new ArrayList(list6 instanceof Collection ? list6.size() : 10);
Iterator<T> it3 = list6.iterator();
while (it3.hasNext()) {
arrayList8.add(C8558dOy.c((Rbd) it3.next()));
}
arrayList3 = arrayList8;
} else {
arrayList3 = null;
}
List<C4491bbE> list7 = pmi.b;
if (list7 != null) {
List<C4491bbE> list8 = list7;
C14957gcv.e(list8, "");
ArrayList arrayList9 = new ArrayList(list8 instanceof Collection ? list8.size() : 10);
for (C4491bbE c4491bbE : list8) {
C14957gcv.e(c4491bbE, "");
Integer num = c4491bbE.c;
if (num == null) {
throw new EntityMappingException("Some mandatory is missing.");
}
int intValue = num.intValue();
String str = c4491bbE.b;
if (str == null) {
throw new EntityMappingException("Some mandatory is missing.");
}
String str2 = c4491bbE.e;
if (str2 == null) {
throw new EntityMappingException("Some mandatory is missing.");
}
String str3 = c4491bbE.d;
if (str3 == null) {
throw new EntityMappingException("Some mandatory is missing.");
}
String str4 = c4491bbE.a;
if (str4 == null) {
throw new EntityMappingException("Some mandatory is missing.");
}
arrayList9.add(new SOC(intValue, str, null, str2, str3, str4, null, 68));
}
arrayList4 = arrayList9;
} else {
arrayList4 = null;
}
List<C0677MCc> list9 = pmi.d;
if (list9 != null) {
List<C0677MCc> list10 = list9;
C14957gcv.e(list10, "");
ArrayList arrayList10 = new ArrayList(list10 instanceof Collection ? list10.size() : 10);
Iterator<T> it4 = list10.iterator();
while (it4.hasNext()) {
arrayList10.add(C8558dOy.b((C0677MCc) it4.next()));
}
arrayList5 = arrayList10;
} else {
arrayList5 = null;
}
LpN lpN = pmi.c;
return new Mfv(arrayList, arrayList2, arrayList3, arrayList4, arrayList5, new cHS(lpN != null ? lpN.e : null, lpN != null ? lpN.a : null, lpN != null ? lpN.d : null));
}
HBt() {
super(1);
}
}
@Override // o.sJr
public final AbstractC13175fSw<Mfv> a() {
AbstractC13175fSw<SingleDataEntity<PMI>> mailingAddressLanding = this.c.mailingAddressLanding(new C4962bk(this.d));
final HBt hBt = HBt.e;
C13372fYk c13372fYk = new C13372fYk(mailingAddressLanding, new fSS(hBt) { // from class: o.XDr
private InterfaceC14894gbR a;
@Override // o.fSS
public final Object a(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.a;
C14957gcv.e(interfaceC14894gbR, "");
return (Mfv) interfaceC14894gbR.invoke(obj);
}
{
this.a = hBt;
}
});
C14957gcv.c(c13372fYk, "");
return c13372fYk;
}
/* renamed from: o.iol$jbe */
/* loaded from: classes3.dex */
static final class jbe extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<FGL>, Hma> {
public static final jbe c = new jbe();
@Override // o.InterfaceC14894gbR
public final /* synthetic */ Hma invoke(SingleDataEntity<FGL> singleDataEntity) {
FGL data = singleDataEntity.getData();
List<String> list = data.d;
if (list != null) {
return new Hma(list);
}
throw new EntityMappingException(data.c);
}
jbe() {
super(1);
}
}
@Override // o.sJr
public final AbstractC13175fSw<Hma> a(C5121bn c5121bn) {
C14957gcv.e(c5121bn, "");
AbstractC13175fSw<SingleDataEntity<FGL>> productAddress = this.c.productAddress(c5121bn);
final jbe jbeVar = jbe.c;
C13372fYk c13372fYk = new C13372fYk(productAddress, new fSS(jbeVar) { // from class: o.nvF
private InterfaceC14894gbR e;
@Override // o.fSS
public final Object a(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.e;
C14957gcv.e(interfaceC14894gbR, "");
return (Hma) interfaceC14894gbR.invoke(obj);
}
{
this.e = jbeVar;
}
});
C14957gcv.c(c13372fYk, "");
return c13372fYk;
}
/* renamed from: o.iol$saX */
/* loaded from: classes3.dex */
static final class saX extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<ZPQ>, C16242mcE> {
public static final saX b = new saX();
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C16242mcE invoke(SingleDataEntity<ZPQ> singleDataEntity) {
ZPQ data = singleDataEntity.getData();
String str = data.c;
if (str != null) {
return new C16242mcE(str);
}
throw new EntityMappingException(data.e);
}
saX() {
super(1);
}
}
@Override // o.sJr
public final AbstractC13175fSw<C16242mcE> b(C5015bl c5015bl) {
C14957gcv.e(c5015bl, "");
AbstractC13175fSw<SingleDataEntity<ZPQ>> postProductList = this.c.postProductList(c5015bl);
final saX sax = saX.b;
C13372fYk c13372fYk = new C13372fYk(postProductList, new fSS(sax) { // from class: o.ctf
private InterfaceC14894gbR e;
@Override // o.fSS
public final Object a(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.e;
C14957gcv.e(interfaceC14894gbR, "");
return (C16242mcE) interfaceC14894gbR.invoke(obj);
}
{
this.e = sax;
}
});
C14957gcv.c(c13372fYk, "");
return c13372fYk;
}
/* renamed from: o.iol$IeS */
/* loaded from: classes3.dex */
static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<C16562pOe, Boolean> {
public static final IeS c = new IeS();
@Override // o.InterfaceC14894gbR
public final /* bridge */ /* synthetic */ Boolean invoke(C16562pOe c16562pOe) {
return Boolean.TRUE;
}
IeS() {
super(1);
}
}
@Override // o.sJr
public final AbstractC13175fSw<Boolean> d(C5227bp c5227bp) {
C14957gcv.e(c5227bp, "");
AbstractC13175fSw<C16562pOe> postMailingAddress = this.c.postMailingAddress(c5227bp);
final IeS ieS = IeS.c;
C13372fYk c13372fYk = new C13372fYk(postMailingAddress, new fSS(ieS) { // from class: o.yZf
private InterfaceC14894gbR c;
@Override // o.fSS
public final Object a(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.c;
C14957gcv.e(interfaceC14894gbR, "");
return (Boolean) interfaceC14894gbR.invoke(obj);
}
{
this.c = ieS;
}
});
C14957gcv.c(c13372fYk, "");
return c13372fYk;
}
/* renamed from: o.iol$ojQ */
/* loaded from: classes3.dex */
static final class ojQ extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<AJk>, C15668hcF> {
public static final ojQ e = new ojQ();
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C15668hcF invoke(SingleDataEntity<AJk> singleDataEntity) {
AJk data = singleDataEntity.getData();
C14957gcv.c(data, "");
AJk aJk = data;
C14957gcv.e(aJk, "");
new MGa();
C14957gcv.e(aJk, "");
OffsetDateTime offsetDateTime = (OffsetDateTime) ZTC.e(new Object[]{aJk.a, null}, 267499366, -267499366, (int) System.currentTimeMillis());
if (offsetDateTime == null) {
throw new EntityMappingException("Some mandatory is missing.");
}
String str = aJk.e;
if (str != null) {
return new C15668hcF(offsetDateTime, str);
}
throw new EntityMappingException("Some mandatory is missing.");
}
ojQ() {
super(1);
}
}
@Override // o.sJr
public final AbstractC13175fSw<C15668hcF> c(String str, String str2, C4909bj c4909bj) {
C14957gcv.e(c4909bj, "");
AbstractC13175fSw<SingleDataEntity<AJk>> postMailingAddressConfirmation = this.c.postMailingAddressConfirmation(str, str2, c4909bj);
final ojQ ojq = ojQ.e;
C13372fYk c13372fYk = new C13372fYk(postMailingAddressConfirmation, new fSS(ojq) { // from class: o.dVA
private InterfaceC14894gbR c;
@Override // o.fSS
public final Object a(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.c;
C14957gcv.e(interfaceC14894gbR, "");
return (C15668hcF) interfaceC14894gbR.invoke(obj);
}
{
this.c = ojq;
}
});
C14957gcv.c(c13372fYk, "");
return c13372fYk;
}
/* renamed from: o.iol$LWm */
/* loaded from: classes3.dex */
static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<C15700hpp>, iBk> {
public static final LWm b = new LWm();
@Override // o.InterfaceC14894gbR
public final /* synthetic */ iBk invoke(SingleDataEntity<C15700hpp> singleDataEntity) {
C15700hpp data = singleDataEntity.getData();
C14957gcv.c(data, "");
C15700hpp c15700hpp = data;
C14957gcv.e(c15700hpp, "");
new wIa();
C14957gcv.e(c15700hpp, "");
String str = c15700hpp.d;
if (str == null) {
throw wIa.d();
}
List<List<String>> list = c15700hpp.b;
if (list != null) {
List<List<String>> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
Iterator<T> it = list2.iterator();
while (it.hasNext()) {
List list3 = (List) it.next();
if (list3 != null) {
List<String> list4 = list3;
C14957gcv.e(list4, "");
ArrayList arrayList2 = new ArrayList(list4 instanceof Collection ? list4.size() : 10);
for (String str2 : list4) {
if (str2 == null) {
throw wIa.d();
}
arrayList2.add(str2);
}
arrayList.add(arrayList2);
} else {
throw wIa.d();
}
}
ArrayList arrayList3 = arrayList;
List<idg> list5 = c15700hpp.c;
if (list5 != null) {
List<idg> list6 = list5;
C14957gcv.e(list6, "");
ArrayList arrayList4 = new ArrayList(list6 instanceof Collection ? list6.size() : 10);
for (idg idgVar : list6) {
if (idgVar == null) {
throw wIa.d();
}
String str3 = idgVar.c;
if (str3 == null) {
throw wIa.d();
}
String str4 = idgVar.b;
if (str4 == null) {
throw wIa.d();
}
String str5 = idgVar.a;
if (str5 != null) {
arrayList4.add(new Owp(str3, str5, str4));
} else {
throw wIa.d();
}
}
return new iBk(str, arrayList3, arrayList4);
}
throw wIa.d();
}
throw wIa.d();
}
LWm() {
super(1);
}
}
@Override // o.sJr
public final AbstractC13175fSw<iBk> e(String str) {
C14957gcv.e(str, "");
AbstractC13175fSw<SingleDataEntity<C15700hpp>> mailingAddressConfirmation = this.c.getMailingAddressConfirmation(str);
final LWm lWm = LWm.b;
C13372fYk c13372fYk = new C13372fYk(mailingAddressConfirmation, new fSS(lWm) { // from class: o.Fpm
private InterfaceC14894gbR d;
@Override // o.fSS
public final Object a(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.d;
C14957gcv.e(interfaceC14894gbR, "");
return (iBk) interfaceC14894gbR.invoke(obj);
}
{
this.d = lWm;
}
});
C14957gcv.c(c13372fYk, "");
return c13372fYk;
}
/* renamed from: o.iol$Sts */
/* loaded from: classes3.dex */
static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<SingleDataEntity<C15198gjs>, hDB> {
public static final Sts a = new Sts();
@Override // o.InterfaceC14894gbR
public final /* synthetic */ hDB invoke(SingleDataEntity<C15198gjs> singleDataEntity) {
C15198gjs data = singleDataEntity.getData();
C14957gcv.c(data, "");
C15198gjs c15198gjs = data;
C14957gcv.e(c15198gjs, "");
new SIp();
C14957gcv.e(c15198gjs, "");
String[] strArr = c15198gjs.c;
if (strArr != null) {
ArrayList arrayList = new ArrayList(strArr.length);
for (String str : strArr) {
if (str == null) {
str = "";
}
arrayList.add(str);
}
String[] strArr2 = (String[]) arrayList.toArray(new String[0]);
if (strArr2 != null) {
return new hDB(strArr2);
}
}
throw new EntityMappingException("Some mandatory is missing.");
}
Sts() {
super(1);
}
}
@Override // o.sJr
public final AbstractC13175fSw<hDB> e() {
AbstractC13175fSw<SingleDataEntity<C15198gjs>> addressDetails = this.c.getAddressDetails();
final Sts sts = Sts.a;
C13372fYk c13372fYk = new C13372fYk(addressDetails, new fSS(sts) { // from class: o.piI
private InterfaceC14894gbR c;
@Override // o.fSS
public final Object a(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.c;
C14957gcv.e(interfaceC14894gbR, "");
return (hDB) interfaceC14894gbR.invoke(obj);
}
{
this.c = sts;
}
});
C14957gcv.c(c13372fYk, "");
return c13372fYk;
}
/* renamed from: o.iol$ZqN */
/* loaded from: classes3.dex */
static final class ZqN extends AbstractC14961gcz implements InterfaceC14894gbR<C16562pOe, Boolean> {
public static final ZqN c = new ZqN();
@Override // o.InterfaceC14894gbR
public final /* bridge */ /* synthetic */ Boolean invoke(C16562pOe c16562pOe) {
return Boolean.TRUE;
}
ZqN() {
super(1);
}
}
@Override // o.sJr
public final AbstractC13175fSw<Boolean> d(C4856bi c4856bi) {
C14957gcv.e(c4856bi, "");
AbstractC13175fSw<C16562pOe> postMailingAddressDetails = this.c.postMailingAddressDetails(c4856bi);
final ZqN zqN = ZqN.c;
C13372fYk c13372fYk = new C13372fYk(postMailingAddressDetails, new fSS(zqN) { // from class: o.AwM
private InterfaceC14894gbR a;
@Override // o.fSS
public final Object a(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.a;
C14957gcv.e(interfaceC14894gbR, "");
return (Boolean) interfaceC14894gbR.invoke(obj);
}
{
this.a = zqN;
}
});
C14957gcv.c(c13372fYk, "");
return c13372fYk;
}
/* renamed from: o.iol$tOB */
/* loaded from: classes3.dex */
static final class tOB extends AbstractC14961gcz implements InterfaceC14894gbR<C16562pOe, Boolean> {
public static final tOB d = new tOB();
@Override // o.InterfaceC14894gbR
public final /* bridge */ /* synthetic */ Boolean invoke(C16562pOe c16562pOe) {
return Boolean.TRUE;
}
tOB() {
super(1);
}
}
@Override // o.sJr
public final AbstractC13175fSw<Boolean> c(C5174bo c5174bo) {
C14957gcv.e(c5174bo, "");
AbstractC13175fSw<C16562pOe> postAddressesValidation = this.c.postAddressesValidation(c5174bo);
final tOB tob = tOB.d;
C13372fYk c13372fYk = new C13372fYk(postAddressesValidation, new fSS(tob) { // from class: o.XUs
private InterfaceC14894gbR a;
@Override // o.fSS
public final Object a(Object obj) {
InterfaceC14894gbR interfaceC14894gbR = this.a;
C14957gcv.e(interfaceC14894gbR, "");
return (Boolean) interfaceC14894gbR.invoke(obj);
}
{
this.a = tob;
}
});
C14957gcv.c(c13372fYk, "");
return c13372fYk;
}
@Override // o.sJr
public final AbstractC13175fSw<Boolean> c() {
String str = this.a.d.h;
AbstractC13175fSw<Boolean> d = AbstractC13175fSw.d(Boolean.valueOf(!(str == null || str.length() == 0)));
C14957gcv.c(d, "");
return d;
}
}