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

120 lines
4.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
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 o.C16845rlI;
import o.ToF;
import o.Unc;
import o.mUj;
import org.threeten.bp.OffsetDateTime;
/* loaded from: classes3.dex */
public final class HdN extends PDU {
private final C0247Cft a;
@InterfaceC13391fZD
public HdN(C0247Cft c0247Cft) {
C14957gcv.e(c0247Cft, "");
this.a = c0247Cft;
}
/* loaded from: classes3.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
public final Unc b(C16845rlI c16845rlI) {
C14957gcv.e(c16845rlI, "");
String str = c16845rlI.e;
String str2 = c16845rlI.g;
tHP thp = c16845rlI.d;
String str3 = thp.f9274o;
String str4 = thp.f;
String str5 = thp.k;
String str6 = thp.b;
String str7 = thp.l;
String str8 = thp.e;
List<String> list = thp.h;
List<String> list2 = thp.i;
double parseDouble = Double.parseDouble(thp.j);
String str9 = thp.g;
String str10 = thp.d;
String str11 = thp.m;
LoR a = a(thp.c);
OffsetDateTime b = ZTC.b(thp.a, (OffsetDateTime) null);
if (b != null) {
ArrayList arrayList = null;
oPA opa = new oPA(str3, str4, str5, str6, str7, b, str8, parseDouble, list, list2, str9, str10, str11, a);
EJy eJy = c16845rlI.b;
BCM bcm = new BCM(C0247Cft.c(eJy.d), eJy.b, eJy.h, eJy.e, eJy.c, eJy.a);
mUj muj = c16845rlI.f;
C14957gcv.e(muj, "");
double parseDouble2 = Double.parseDouble(muj.h);
String str12 = muj.d;
ToF.RVV rvv = new ToF.RVV(Double.valueOf(Double.parseDouble(muj.c)), null, muj.e.a, muj.e.d, 50);
double parseDouble3 = Double.parseDouble(muj.a);
int parseInt = Integer.parseInt(muj.j);
OffsetDateTime b2 = ZTC.b(muj.f, OffsetDateTime.now());
if (b2 == null) {
b2 = OffsetDateTime.now();
}
List<C17505xNA> list3 = muj.i;
C14957gcv.e(list3, "");
ArrayList arrayList2 = new ArrayList(list3 instanceof Collection ? list3.size() : 10);
Iterator<T> it = list3.iterator();
while (it.hasNext()) {
arrayList2.add(PDU.a((C17505xNA) it.next()));
}
ArrayList arrayList3 = arrayList2;
mUj.Sts sts = muj.b;
Wcm wcm = sts != null ? new Wcm(sts.c, sts.b) : null;
C14957gcv.c(b2, "");
ToF toF = new ToF(null, parseDouble2, str12, rvv, parseDouble3, b2, Integer.valueOf(parseInt), arrayList3, wcm, 129);
int parseInt2 = Integer.parseInt(c16845rlI.i);
C16845rlI.Sts sts2 = c16845rlI.a;
Unc.Sts sts3 = sts2 != null ? new Unc.Sts(sts2.e, sts2.d) : null;
List<C15866jJa> list4 = c16845rlI.c;
if (list4 != null) {
List<C15866jJa> list5 = list4;
C14957gcv.e(list5, "");
ArrayList arrayList4 = new ArrayList(list5 instanceof Collection ? list5.size() : 10);
for (C15866jJa c15866jJa : list5) {
if (C14957gcv.b((Object) c15866jJa.e, (Object) OVB.MODEL_CONSENT.name()) && c15866jJa.a == null) {
throw new EntityMappingException("consentTitle can not be null when consentType is MODEL_CONSENT");
}
arrayList4.add(new ZYw(c15866jJa.d, c15866jJa.c, c15866jJa.e, c15866jJa.b, c15866jJa.a));
}
arrayList = arrayList4;
}
return new Unc(str, str2, opa, toF, bcm, parseInt2, sts3, arrayList);
}
throw new EntityMappingException("dateOfBirth can not be null, or transformStringToDateTime error");
}
public static LoR a(lbI lbi) {
C14957gcv.e(lbi, "");
String str = lbi.c;
String str2 = lbi.b;
String str3 = lbi.d;
OffsetDateTime b = str3 != null ? ZTC.b(str3, (OffsetDateTime) null) : null;
OffsetDateTime b2 = ZTC.b(lbi.a, (OffsetDateTime) null);
if (b2 == null) {
b2 = OffsetDateTime.parse(lbi.a);
}
C14957gcv.c(b2, "");
return new LoR(str, str2, b, b2);
}
static {
new LWm((byte) 0);
}
}