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

525 lines
25 KiB
Java

package o;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import kotlin.NoWhenBranchMatchedException;
import o.C15715hv;
import o.C17215ur;
import org.threeten.bp.OffsetDateTime;
/* renamed from: o.iW, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C15771iW extends C15620hF {
public final YCA b;
final C17218us c;
public final yRJ d;
final C17197uj e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C15771iW(yRJ yrj, YCA yca, C17218us c17218us, C17197uj c17197uj) {
super((byte) 0);
C14957gcv.e(yrj, "");
C14957gcv.e(yca, "");
C14957gcv.e(c17218us, "");
C14957gcv.e(c17197uj, "");
this.d = yrj;
this.b = yca;
this.c = c17218us;
this.e = c17197uj;
}
/* renamed from: o.iW$IeS */
/* loaded from: classes3.dex */
public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<oEg, C0803Ox> {
private C15771iW e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C0803Ox invoke(oEg oeg) {
C14851gaI c14851gaI;
boolean z;
boolean z2;
Iterator it;
C17218us c17218us;
ArrayList arrayList;
boolean z3;
String str;
String str2;
C14851gaI c14851gaI2;
Iterator it2;
AbstractC0805Oz abstractC0805Oz;
ArrayList arrayList2;
ZzO zzO;
C17205um c17205um;
OB ob;
C0787Op c0787Op;
C0798Ot c0798Ot;
oEg oeg2 = oeg;
C14957gcv.e(oeg2, "");
C17218us c17218us2 = this.e.c;
C14957gcv.e(oeg2, "");
List<ZzO> list = oeg2.b;
if (list != null) {
List<ZzO> list2 = list;
C14957gcv.e(list2, "");
ArrayList arrayList3 = new ArrayList(list2 instanceof Collection ? list2.size() : 10);
Iterator it3 = list2.iterator();
int i = 0;
while (it3.hasNext()) {
Object next = it3.next();
if (i >= 0) {
ZzO zzO2 = (ZzO) next;
C17205um c17205um2 = c17218us2.b;
C14957gcv.e(zzO2, "");
boolean z4 = i == 0;
String str3 = zzO2.e;
String str4 = "-";
C14957gcv.e("-", "");
String str5 = str3;
if (str5 == null || gdZ.d((CharSequence) str5)) {
str3 = "-";
}
String b_ = c17205um2.b_(zzO2.b);
C14957gcv.c((Object) b_, "");
List<C14155fnp> list3 = zzO2.c;
if (list3 != null) {
List<C14155fnp> list4 = list3;
C14957gcv.e(list4, "");
ArrayList arrayList4 = new ArrayList(list4 instanceof Collection ? list4.size() : 10);
Iterator it4 = list4.iterator();
while (it4.hasNext()) {
C14155fnp c14155fnp = (C14155fnp) it4.next();
C17215ur c17215ur = c17205um2.b;
Iterator it5 = it3;
String str6 = zzO2.b;
if (str6 == null) {
str6 = "";
}
String str7 = zzO2.d;
C14957gcv.e(c14155fnp, "");
C14957gcv.e(str6, "");
C14957gcv.e(str7, "");
C17218us c17218us3 = c17218us2;
if (C17215ur.c(c14155fnp)) {
Double d = c14155fnp.w;
String c = d != null ? C17215ur.c(Double.valueOf(d.doubleValue())) : null;
C14957gcv.e(str4, "");
String str8 = c;
String str9 = (str8 == null || gdZ.d((CharSequence) str8)) ? str4 : c;
String str10 = c14155fnp.n;
C14957gcv.e(str4, "");
String str11 = str10;
String str12 = (str11 == null || gdZ.d((CharSequence) str11)) ? str4 : str10;
Double d2 = c14155fnp.l;
String c2 = d2 != null ? C17215ur.c(Double.valueOf(d2.doubleValue())) : null;
C14957gcv.e(str4, "");
String str13 = c2;
String str14 = (str13 == null || gdZ.d((CharSequence) str13)) ? str4 : c2;
OffsetDateTime offsetDateTime = c14155fnp.g;
String a = offsetDateTime != null ? c17215ur.a(offsetDateTime) : null;
C14957gcv.e(str4, "");
String str15 = a;
String str16 = (str15 == null || gdZ.d((CharSequence) str15)) ? str4 : a;
OffsetDateTime offsetDateTime2 = c14155fnp.f;
String a2 = offsetDateTime2 != null ? c17215ur.a(offsetDateTime2) : null;
C14957gcv.e(str4, "");
String str17 = a2;
String str18 = (str17 == null || gdZ.d((CharSequence) str17)) ? str4 : a2;
int i2 = C17215ur.IeS.c[c14155fnp.s.ordinal()];
it2 = it4;
if (i2 == 1) {
String e = c17215ur.e(C15715hv.tOB.auto_my_insurance_car_license_no);
C14957gcv.c((Object) e, "");
String str19 = c14155fnp.b;
C14957gcv.e(str4, "");
String str20 = str19;
c0798Ot = new C0798Ot(e, (str20 == null || gdZ.d((CharSequence) str20)) ? str4 : str19, str9, str12, str14, str16, str18);
} else if (i2 == 2) {
String e2 = c17215ur.e(C15715hv.tOB.auto_my_insurance_insured_location);
C14957gcv.c((Object) e2, "");
String str21 = c14155fnp.c;
C14957gcv.e(str4, "");
String str22 = str21;
c0798Ot = new C0798Ot(e2, (str22 == null || gdZ.d((CharSequence) str22)) ? str4 : str21, str9, str12, str14, str16, str18);
} else {
if (i2 != 3 && i2 != 4) {
throw new NoWhenBranchMatchedException();
}
c0798Ot = new C0802Ow(str9, str12, str14, str16, str18);
}
abstractC0805Oz = c0798Ot;
} else {
it2 = it4;
abstractC0805Oz = null;
}
if (c14155fnp.i) {
OffsetDateTime offsetDateTime3 = c14155fnp.a;
String c3 = offsetDateTime3 != null ? c17215ur.c(C15715hv.tOB.auto_my_insurance_due_date, c17215ur.e(offsetDateTime3)) : null;
C14957gcv.e(str4, "");
String str23 = c3;
if (str23 == null || gdZ.d((CharSequence) str23)) {
c3 = str4;
}
Double d3 = c14155fnp.e;
String c4 = d3 != null ? C17215ur.c(Double.valueOf(d3.doubleValue())) : null;
C14957gcv.e(str4, "");
String str24 = c4;
if (str24 == null || gdZ.d((CharSequence) str24)) {
zzO = zzO2;
c4 = str4;
} else {
zzO = zzO2;
}
String str25 = c14155fnp.k;
C14957gcv.e(str4, "");
String str26 = str25;
if (str26 == null || gdZ.d((CharSequence) str26)) {
c17205um = c17205um2;
str25 = str4;
} else {
c17205um = c17205um2;
}
int i3 = C17215ur.IeS.c[c14155fnp.s.ordinal()];
arrayList2 = arrayList3;
if (i3 == 1) {
String str27 = c14155fnp.t;
C14957gcv.e(str4, "");
String str28 = str27;
String str29 = (str28 == null || gdZ.d((CharSequence) str28)) ? str4 : str27;
String str30 = c14155fnp.r;
C14957gcv.e(str4, "");
String str31 = str30;
String str32 = (str31 == null || gdZ.d((CharSequence) str31)) ? str4 : str30;
String str33 = c14155fnp.d;
C14957gcv.e(str4, "");
String str34 = str33;
String str35 = (str34 == null || gdZ.d((CharSequence) str34)) ? str4 : str33;
Double d4 = c14155fnp.y;
String c5 = d4 != null ? C17215ur.c(Double.valueOf(d4.doubleValue())) : null;
C14957gcv.e(str4, "");
String str36 = c5;
c0787Op = new C0787Op(str29, str32, str35, (str36 == null || gdZ.d((CharSequence) str36)) ? str4 : c5, c4, c3, c4, str25);
} else {
if (i3 != 2 && i3 != 3 && i3 != 4) {
throw new NoWhenBranchMatchedException();
}
c0787Op = new C0799Ou(c3, c4, str25);
}
ob = c0787Op;
} else {
arrayList2 = arrayList3;
zzO = zzO2;
c17205um = c17205um2;
ob = null;
}
String b_2 = c17215ur.b_(c14155fnp.p);
C14957gcv.c((Object) b_2, "");
String b_3 = c17215ur.b_(str6);
C14957gcv.c((Object) b_3, "");
MZT mzt = c14155fnp.s;
String str37 = c14155fnp.q;
C14957gcv.e(str4, "");
String str38 = str37;
String str39 = (str38 == null || gdZ.d((CharSequence) str38)) ? str4 : str37;
String str40 = c14155fnp.m;
String str41 = c14155fnp.f9131o;
OffsetDateTime offsetDateTime4 = c14155fnp.g;
String a3 = offsetDateTime4 != null ? c17215ur.a(offsetDateTime4) : null;
C14957gcv.e(str4, "");
String str42 = a3;
String str43 = (str42 == null || gdZ.d((CharSequence) str42)) ? str4 : a3;
String str44 = c14155fnp.j;
String str45 = str4;
boolean z5 = c14155fnp.h;
C17209uo c17209uo = c17215ur.a;
C14957gcv.e(c14155fnp, "");
String str46 = b_;
EnumC16785rHo enumC16785rHo = EnumC16785rHo.REQUEST_E_POLICY;
String str47 = str3;
int i4 = C15715hv.IeS.ic_insurance_request_e_policy;
String e3 = c17209uo.e(C15715hv.tOB.auto_insurance_request_e_policy_review_title);
C14957gcv.c((Object) e3, "");
List singletonList = Collections.singletonList(new OA(enumC16785rHo, i4, e3, c14155fnp.h));
C14957gcv.c(singletonList, "");
arrayList4.add(new C0804Oy(b_2, b_3, mzt, str39, str40, str41, str43, abstractC0805Oz, ob, str7, str44, z5, singletonList));
it3 = it5;
c17218us2 = c17218us3;
it4 = it2;
str4 = str45;
b_ = str46;
str3 = str47;
z4 = z4;
zzO2 = zzO;
c17205um2 = c17205um;
arrayList3 = arrayList2;
}
it = it3;
c17218us = c17218us2;
arrayList = arrayList3;
z3 = z4;
str = str3;
str2 = b_;
ArrayList arrayList5 = new ArrayList();
for (Object obj : arrayList4) {
if (((C0804Oy) obj).a != null) {
arrayList5.add(obj);
}
}
c14851gaI2 = arrayList5;
} else {
it = it3;
c17218us = c17218us2;
arrayList = arrayList3;
z3 = z4;
str = str3;
str2 = b_;
c14851gaI2 = null;
}
if (c14851gaI2 == null) {
c14851gaI2 = C14851gaI.c;
}
arrayList3 = arrayList;
arrayList3.add(new C0800Ov(i, z3, str, str2, c14851gaI2));
i++;
it3 = it;
c17218us2 = c17218us;
} else {
throw new ArithmeticException("Index overflow has happened.");
}
}
ArrayList arrayList6 = new ArrayList();
for (Object obj2 : arrayList3) {
List<C0804Oy> list5 = ((C0800Ov) obj2).a;
if (list5 == null || list5.isEmpty()) {
z = true;
z2 = true;
} else {
z = true;
z2 = false;
}
if (z2 ^ z) {
arrayList6.add(obj2);
}
}
c14851gaI = arrayList6;
} else {
c14851gaI = null;
}
if (c14851gaI == null) {
c14851gaI = C14851gaI.c;
}
return new C0803Ox(c14851gaI);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public IeS(C15771iW c15771iW) {
super(1);
this.e = c15771iW;
}
}
/* renamed from: o.iW$RVV */
/* loaded from: classes3.dex */
public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<C17422wet, C0797Os> {
private C15771iW d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C0797Os invoke(C17422wet c17422wet) {
C14851gaI c14851gaI;
HP hp;
HM hm;
List<String> list;
HE he;
HJ hj;
List list2;
C1194Xs c1194Xs;
String str;
String str2;
HN hn;
HP hp2;
ArrayList arrayList;
HM hm2;
C8111dBf c8111dBf;
Double d;
FCD fcd;
C8111dBf c8111dBf2;
List<TyG> list3;
C17422wet c17422wet2 = c17422wet;
C14957gcv.e(c17422wet2, "");
C17197uj c17197uj = this.d.e;
C14957gcv.e(c17422wet2, "");
List<String> list4 = c17422wet2.h;
C17185uf c17185uf = c17197uj.c;
C14957gcv.e(c17422wet2, "");
C1194Xs c1194Xs2 = new C1194Xs();
c1194Xs2.X = c17422wet2.c;
c1194Xs2.T = c17422wet2.e;
String str3 = c17422wet2.i;
C14957gcv.e(str3, "");
c1194Xs2.ac = str3;
String str4 = c17422wet2.g;
C14957gcv.e(str4, "");
c1194Xs2.ab = str4;
String str5 = c17422wet2.j;
C14957gcv.e(str5, "");
c1194Xs2.aa = str5;
String str6 = c17422wet2.k;
C14957gcv.e(str6, "");
c1194Xs2.af = str6;
String str7 = YL.BILL_PAYMENT.code;
C14957gcv.e(str7, "");
c1194Xs2.Z = str7;
jFB jfb = c17422wet2.f;
if (jfb != null && (list3 = jfb.b) != null) {
C17192uh c17192uh = c17185uf.a;
C14957gcv.e(list3, "");
List<TyG> list5 = list3;
C14957gcv.e(list5, "");
ArrayList arrayList2 = new ArrayList(list5 instanceof Collection ? list5.size() : 10);
for (TyG tyG : list5) {
arrayList2.add(new XL(tyG.g, tyG.a, tyG.d, tyG.e, tyG.c, tyG.b));
}
c14851gaI = arrayList2;
} else {
c14851gaI = C14851gaI.c;
}
C14957gcv.e(c14851gaI, "");
c1194Xs2.ag = c14851gaI;
jFB jfb2 = c17422wet2.f;
if (jfb2 == null || (c8111dBf2 = jfb2.a) == null) {
hp = null;
} else {
C17194ui c17194ui = c17185uf.b;
hp = C17194ui.a(c8111dBf2);
}
c1194Xs2.Y = hp;
jFB jfb3 = c17422wet2.f;
if (jfb3 == null || (fcd = jfb3.d) == null) {
hm = null;
} else {
C17206un c17206un = c17185uf.d;
C14957gcv.e(fcd, "");
hm = new HM(C17206un.e(fcd.a));
}
c1194Xs2.ad = hm;
c1194Xs2.V = c17422wet2.d;
c1194Xs2.c = c17422wet2.g;
c1194Xs2.F = c17185uf.e(C15715hv.tOB.reference_1);
c1194Xs2.M = c17185uf.e(C15715hv.tOB.reference_2);
c1194Xs2.L = c17185uf.e(C15715hv.tOB.reference_3);
C0427GiR c0427GiR = c17422wet2.a;
c1194Xs2.K = c0427GiR != null ? c0427GiR.b : null;
C0427GiR c0427GiR2 = c17422wet2.a;
c1194Xs2.J = c0427GiR2 != null ? c0427GiR2.c : null;
C0427GiR c0427GiR3 = c17422wet2.a;
c1194Xs2.N = c0427GiR3 != null ? c0427GiR3.a : null;
c1194Xs2.f8453o = c17422wet2.i;
C0427GiR c0427GiR4 = c17422wet2.a;
c1194Xs2.g = c0427GiR4 != null ? c0427GiR4.e : null;
c1194Xs2.f8453o = c17422wet2.i;
C0427GiR c0427GiR5 = c17422wet2.a;
c1194Xs2.h = c0427GiR5 != null ? c0427GiR5.e : null;
C0427GiR c0427GiR6 = c17422wet2.a;
c1194Xs2.j = (String) C6583cXR.c(new Object[]{Double.valueOf((c0427GiR6 == null || (d = c0427GiR6.d) == null) ? 0.0d : d.doubleValue())}, -150997759, 150997764, (int) System.currentTimeMillis());
jFB jfb4 = c17422wet2.f;
c1194Xs2.d = c17185uf.b_((jfb4 == null || (c8111dBf = jfb4.a) == null) ? null : c8111dBf.j);
c1194Xs2.b = true;
C14957gcv.d(c1194Xs2, "");
C17223uv c17223uv = c17197uj.e;
C14957gcv.e(c17422wet2, "");
String str8 = c17422wet2.c;
String str9 = c17422wet2.e;
String str10 = c17422wet2.i;
String str11 = c17422wet2.g;
String str12 = c17422wet2.j;
String str13 = c17422wet2.k;
List singletonList = Collections.singletonList(YL.CREDIT_CARD_FULL_AMOUNT.code);
C14957gcv.c(singletonList, "");
C0427GiR c0427GiR7 = c17422wet2.a;
if (c0427GiR7 != null) {
C17182ue c17182ue = c17223uv.b;
C14957gcv.e(c0427GiR7, "");
list = list4;
he = new HE(c0427GiR7.d, c0427GiR7.e, null, c0427GiR7.b, c0427GiR7.c, c0427GiR7.a);
} else {
list = list4;
he = null;
}
C0895Qxv c0895Qxv = c17422wet2.b;
if (c0895Qxv != null) {
C17200uk c17200uk = c17223uv.d;
C14957gcv.e(c0895Qxv, "");
hj = new HJ(c0895Qxv.b, c0895Qxv.c, c0895Qxv.e, c0895Qxv.a);
} else {
hj = null;
}
jFB jfb5 = c17422wet2.f;
if (jfb5 != null) {
C17214uq c17214uq = c17223uv.a;
C14957gcv.e(jfb5, "");
C8111dBf c8111dBf3 = jfb5.a;
if (c8111dBf3 != null) {
C17194ui c17194ui2 = c17214uq.c;
hp2 = C17194ui.a(c8111dBf3);
} else {
hp2 = null;
}
List<TyG> list6 = jfb5.b;
if (list6 != null) {
C17225uw c17225uw = c17214uq.a;
C14957gcv.e(list6, "");
List<TyG> list7 = list6;
C14957gcv.e(list7, "");
ArrayList arrayList3 = new ArrayList(list7 instanceof Collection ? list7.size() : 10);
Iterator it = list7.iterator();
while (it.hasNext()) {
TyG tyG2 = (TyG) it.next();
arrayList3.add(new HU(tyG2.g, tyG2.a, tyG2.d, tyG2.e, tyG2.c));
it = it;
singletonList = singletonList;
str13 = str13;
str12 = str12;
c1194Xs2 = c1194Xs2;
}
list2 = singletonList;
c1194Xs = c1194Xs2;
str = str12;
str2 = str13;
arrayList = arrayList3;
} else {
list2 = singletonList;
c1194Xs = c1194Xs2;
str = str12;
str2 = str13;
arrayList = null;
}
FCD fcd2 = jfb5.d;
if (fcd2 != null) {
C17206un c17206un2 = c17214uq.d;
C14957gcv.e(fcd2, "");
hm2 = new HM(C17206un.e(fcd2.a));
} else {
hm2 = null;
}
hn = new HN(null, hp2, arrayList, hm2);
} else {
list2 = singletonList;
c1194Xs = c1194Xs2;
str = str12;
str2 = str13;
hn = null;
}
return new C0797Os(list, c1194Xs, new HR(str8, str9, str10, str11, str, str2, list2, he, hj, hn, c17422wet2.d));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public RVV(C15771iW c15771iW) {
super(1);
this.d = c15771iW;
}
}
}