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; /* renamed from: o.esY, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C12137esY extends ZTC { /* renamed from: o.esY$IeS */ /* loaded from: classes3.dex */ public static final class IeS { private IeS() { } public /* synthetic */ IeS(byte b) { this(); } } @InterfaceC13391fZD public C12137esY() { } public final List b(List list) { 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()) { C16866rui c16866rui = (C16866rui) it.next(); String str = c16866rui.a; if (str == null) { throw new EntityMappingException("component.key can't be null"); } String str2 = c16866rui.d; if (str2 == null) { throw new EntityMappingException("component.label can't be null"); } Integer num = c16866rui.e; if (num != null) { int intValue = num.intValue(); List list3 = c16866rui.b; List list4 = list3; if (list4 == null || list4.isEmpty()) { throw new EntityMappingException("component.sectionInfo can't be null"); } List list5 = list3; C14957gcv.e(list5, ""); ArrayList arrayList2 = new ArrayList(list5 instanceof Collection ? list5.size() : 10); Iterator it2 = list5.iterator(); while (it2.hasNext()) { C17235uzx c17235uzx = (C17235uzx) it2.next(); String str3 = c17235uzx.d; if (str3 == null) { throw new EntityMappingException("sectionInfo.key can't be null"); } String str4 = c17235uzx.e; if (str4 == null) { throw new EntityMappingException("sectionInfo.label can't be null"); } Integer num2 = c17235uzx.c; if (num2 != null) { int intValue2 = num2.intValue(); List list6 = c17235uzx.j; if (list6 != null) { List list7 = list6; C14957gcv.e(list7, ""); ArrayList arrayList3 = new ArrayList(list7 instanceof Collection ? list7.size() : 10); Iterator it3 = list7.iterator(); while (it3.hasNext()) { YEq yEq = (YEq) it3.next(); Iterator it4 = it; List list8 = yEq.e; if (list8 != null) { List list9 = list8; Iterator it5 = it3; C14957gcv.e(list9, ""); Iterator it6 = it2; ArrayList arrayList4 = new ArrayList(list9 instanceof Collection ? list9.size() : 10); Iterator it7 = list9.iterator(); while (it7.hasNext()) { arrayList4.add((String) it7.next()); } ArrayList arrayList5 = arrayList4; List list10 = yEq.b; if (list10 != null) { List list11 = list10; C14957gcv.e(list11, ""); ArrayList arrayList6 = new ArrayList(list11 instanceof Collection ? list11.size() : 10); Iterator it8 = list11.iterator(); while (it8.hasNext()) { arrayList6.add((String) it8.next()); } ArrayList arrayList7 = arrayList6; Integer num3 = yEq.a; if (num3 != null) { int intValue3 = num3.intValue(); Boolean bool = yEq.d; if (bool != null) { arrayList3.add(new C16342nct(arrayList7, arrayList5, bool.booleanValue(), intValue3, yEq.c)); it3 = it5; it = it4; it2 = it6; } else { throw new EntityMappingException("value.selectedOption can't be null"); } } else { throw new EntityMappingException("value.sequence can't be null"); } } else { throw new EntityMappingException("value.rawValue can't be null"); } } else { throw new EntityMappingException("value.displayValue can't be null"); } } arrayList2.add(new C9429dja(str3, str4, intValue2, arrayList3, c17235uzx.b, c17235uzx.a)); it = it; it2 = it2; } else { throw new EntityMappingException("sectionInfo.value can't be null"); } } else { throw new EntityMappingException("sectionInfo.sequence can't be null"); } } arrayList.add(new DNj(str, str2, c16866rui.c, arrayList2, intValue)); it = it; } else { throw new EntityMappingException("component.sequence can't be null"); } } return arrayList; } throw new EntityMappingException("component can't be null"); } static { new IeS((byte) 0); } }