package o; import com.scb.phone.data.entity.transfer.SingleDataEntity; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Locale; /* loaded from: classes3.dex */ public final class gdY extends ZTC { /* loaded from: classes3.dex */ public static final class LWm { private LWm() { } public /* synthetic */ LWm(byte b) { this(); } } @InterfaceC13391fZD public gdY() { } public static gkG a(SingleDataEntity singleDataEntity) { ArrayList arrayList; ArrayList arrayList2; String str; C14851gaI c14851gaI; C17766zbW c17766zbW; C14957gcv.e(singleDataEntity, ""); NZw data = singleDataEntity.getData(); String str2 = null; IQv iQv = (data == null || (c17766zbW = data.g) == null) ? null : new IQv(c17766zbW.d, c17766zbW.a, c17766zbW.b); iJI e = e(singleDataEntity); C14957gcv.c(e, ""); String str3 = data != null ? data.a : null; String str4 = str3 == null ? "" : str3; wVN wvn = data != null ? data.e : null; String str5 = wvn != null ? wvn.a : null; String str6 = str5 == null ? "" : str5; String str7 = wvn != null ? wvn.b : null; String str8 = str7 == null ? "" : str7; String str9 = wvn != null ? wvn.d : null; String str10 = str9 == null ? "" : str9; String str11 = wvn != null ? wvn.c : null; String str12 = str11 == null ? "" : str11; String str13 = wvn != null ? wvn.e : null; luP lup = new luP(str6, str8, str10, str12, str13 == null ? "" : str13); List list = data != null ? data.b : null; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList3 = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (KDt kDt : list2) { boolean z = false; boolean z2 = kDt != null ? kDt.d : false; String str14 = kDt != null ? kDt.f : null; String str15 = str14 == null ? "" : str14; String str16 = kDt != null ? kDt.h : null; String str17 = str16 == null ? "" : str16; String str18 = kDt != null ? kDt.i : null; String str19 = str18 == null ? "" : str18; String str20 = kDt != null ? kDt.a : null; String str21 = str20 == null ? "" : str20; String str22 = kDt != null ? kDt.g : null; String str23 = str22 == null ? "" : str22; if (kDt == null || (c14851gaI = kDt.c) == null) { c14851gaI = C14851gaI.c; } List list3 = c14851gaI; String str24 = kDt != null ? kDt.b : null; String str25 = str24 == null ? "" : str24; String str26 = kDt != null ? kDt.j : null; String str27 = str26 == null ? "" : str26; if (kDt != null) { z = kDt.e; } arrayList3.add(new lWG(z2, str15, str17, str19, str21, str23, list3, str25, str27, z)); } arrayList = arrayList3; } else { arrayList = null; } List list4 = data != null ? data.c : null; if (list4 != null) { List list5 = list4; C14957gcv.e(list5, ""); ArrayList arrayList4 = new ArrayList(list5 instanceof Collection ? list5.size() : 10); for (spQ spq : list5) { String str28 = spq != null ? spq.a : null; if (str28 == null) { str28 = ""; } String str29 = spq != null ? spq.d : null; if (str29 == null) { str29 = ""; } String str30 = spq != null ? spq.b : null; if (str30 == null) { str30 = ""; } arrayList4.add(new zQA(str28, str29, str30)); } arrayList2 = arrayList4; } else { arrayList2 = null; } if (data != null && (str = data.d) != null) { str2 = str.toLowerCase(Locale.ROOT); C14957gcv.c((Object) str2, ""); } return new gkG(e, str4, lup, arrayList, arrayList2, iQv, C14957gcv.b((Object) str2, (Object) "true")); } static { new LWm((byte) 0); } }