package o; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; import o.AbstractC15351go; import o.C15715hv; import o.C15962jw; import o.C4162bRw; import o.UT; import o.ZI; /* renamed from: o.bRw, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public final class C4162bRw extends ZI { public final C15962jw a; public final InterfaceC3521azC b; public List c; public final C17539xd d; public final C16298nI e; private String h; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C4162bRw(C15962jw c15962jw, C17539xd c17539xd, C16298nI c16298nI, InterfaceC3521azC interfaceC3521azC, C16903sI c16903sI) { super(c16903sI); C14957gcv.e(c15962jw, ""); C14957gcv.e(c17539xd, ""); C14957gcv.e(c16298nI, ""); C14957gcv.e(interfaceC3521azC, ""); C14957gcv.e(c16903sI, ""); this.a = c15962jw; this.d = c17539xd; this.e = c16298nI; this.b = interfaceC3521azC; } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.bRw$LWm */ /* loaded from: classes4.dex */ public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR { private C4162bRw b; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(RB rb) { final boolean z; String str; final RB rb2 = rb; C14957gcv.e(rb2, ""); String str2 = rb2.c.b; String str3 = str2 == null ? "" : str2; String str4 = rb2.c.e; final String str5 = str4 == null ? "" : str4; C4162bRw c4162bRw = this.b; String str6 = rb2.c.a; if (str6 == null) { str6 = ""; } c4162bRw.h = str6; String str7 = str3; boolean z2 = false; if (!(str7 == null || gdZ.d((CharSequence) str7))) { String str8 = str5; if (!(str8 == null || gdZ.d((CharSequence) str8))) { String str9 = this.b.h; if (!(str9 == null || gdZ.d((CharSequence) str9))) { z2 = true; } } } C4162bRw c4162bRw2 = this.b; final C17539xd c17539xd = c4162bRw2.d; final boolean T = this.b.a.c.b.T(); C14957gcv.e(rb2, ""); ArrayList arrayList = new ArrayList(); if (rb2.d.size() + rb2.e.size() + rb2.i.size() + rb2.b.size() + rb2.a.size() > 0) { arrayList.add(c17539xd.i()); String e = c17539xd.e(C15715hv.tOB.auto_change_mailing_address_accounts_header_credit_card); C14957gcv.c((Object) e, ""); List list = rb2.d; ArrayList arrayList2 = new ArrayList(); arrayList2.addAll((List) C16157lj.c(new Object[]{list, new InterfaceC1244Ytw() { // from class: o.xc @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return C17539xd.b((C0924Rr) obj); } }}, -1846295624, 1846295631, (int) System.currentTimeMillis())); arrayList.addAll(C17539xd.a(e, arrayList2)); String e2 = c17539xd.e(C15715hv.tOB.auto_change_mailing_address_accounts_header_debit_card); C14957gcv.c((Object) e2, ""); List list2 = rb2.b; ArrayList arrayList3 = new ArrayList(); z = z2; str = str3; arrayList3.addAll((List) C16157lj.c(new Object[]{list2, new InterfaceC1244Ytw() { // from class: o.xg @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return C17539xd.e((C0924Rr) obj); } }}, -1846295624, 1846295631, (int) System.currentTimeMillis())); arrayList.addAll(C17539xd.a(e2, arrayList3)); String e3 = c17539xd.e(C15715hv.tOB.auto_change_mailing_address_accounts_header_prepaid_card); C14957gcv.c((Object) e3, ""); List list3 = rb2.i; ArrayList arrayList4 = new ArrayList(); arrayList4.addAll((List) C16157lj.c(new Object[]{list3, new InterfaceC1244Ytw() { // from class: o.xk @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return C17539xd.a((C0924Rr) obj); } }}, -1846295624, 1846295631, (int) System.currentTimeMillis())); arrayList.addAll(C17539xd.a(e3, arrayList4)); String e4 = c17539xd.e(C15715hv.tOB.auto_change_mailing_address_accounts_header_deposit); C14957gcv.c((Object) e4, ""); List list4 = rb2.a; ArrayList arrayList5 = new ArrayList(); arrayList5.addAll((List) C16157lj.c(new Object[]{list4, new InterfaceC1244Ytw(c17539xd, T) { // from class: o.xj private C17539xd b; private boolean c; @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return C17539xd.b(this.b, this.c, (C0924Rr) obj); } { this.b = c17539xd; this.c = T; } }}, -1846295624, 1846295631, (int) System.currentTimeMillis())); arrayList.addAll(C17539xd.a(e4, arrayList5)); String e5 = c17539xd.e(C15715hv.tOB.auto_change_mailing_address_accounts_header_loan); C14957gcv.c((Object) e5, ""); List list5 = rb2.e; ArrayList arrayList6 = new ArrayList(); arrayList6.addAll((List) C16157lj.c(new Object[]{list5, new InterfaceC1244Ytw(c17539xd) { // from class: o.xi private C17539xd e; @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return C17539xd.a(this.e, (C0924Rr) obj); } { this.e = c17539xd; } }}, -1846295624, 1846295631, (int) System.currentTimeMillis())); arrayList.addAll(C17539xd.a(e5, arrayList6)); } else { z = z2; str = str3; } c4162bRw2.c = arrayList; final List list6 = this.b.c; if (list6 != null) { C4162bRw c4162bRw3 = this.b; if (list6.isEmpty()) { final String str10 = str; ZI.IeS ieS = new ZI.IeS(z, str10, str5) { // from class: o.bRH private String a; private String c; private boolean e; @Override // o.ZI.IeS public final void e(Object obj) { C4162bRw.LWm.b(this.e, this.a, this.c, (InterfaceC9446djr) obj); } { this.e = z; this.a = str10; this.c = str5; } }; if (c4162bRw3.f != 0) { ieS.e(c4162bRw3.f); } } else { final String str11 = str; final boolean z3 = z; ZI.IeS ieS2 = new ZI.IeS(list6, rb2, z3, str11, str5) { // from class: o.bRM private List a; private String b; private boolean c; private RB d; private String e; @Override // o.ZI.IeS public final void e(Object obj) { C4162bRw.LWm.a(this.a, this.d, this.c, this.b, this.e, (InterfaceC9446djr) obj); } { this.a = list6; this.d = rb2; this.c = z3; this.b = str11; this.e = str5; } }; if (c4162bRw3.f != 0) { ieS2.e(c4162bRw3.f); } } } C4162bRw.b(this.b); return C14866gag.c; } public static /* synthetic */ void a(List list, RB rb, boolean z, String str, String str2, InterfaceC9446djr interfaceC9446djr) { C14957gcv.e(list, ""); C14957gcv.e(rb, ""); C14957gcv.e(str, ""); C14957gcv.e(str2, ""); interfaceC9446djr.c((List) list); interfaceC9446djr.d(false); interfaceC9446djr.a(); interfaceC9446djr.b(rb); interfaceC9446djr.e(); if (z) { interfaceC9446djr.e(str, str2); } else { interfaceC9446djr.b(); } } public static /* synthetic */ void b(boolean z, String str, String str2, InterfaceC9446djr interfaceC9446djr) { C14957gcv.e(str, ""); C14957gcv.e(str2, ""); if (z) { interfaceC9446djr.i(); interfaceC9446djr.e(str, str2); interfaceC9446djr.d(); return; } interfaceC9446djr.c(); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ LWm(C4162bRw c4162bRw) { super(1); this.b = c4162bRw; } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.bRw$ZqN */ /* loaded from: classes4.dex */ public static final class ZqN extends AbstractC14961gcz implements InterfaceC14894gbR { private C4162bRw d; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { Throwable th2 = th; C14957gcv.e(th2, ""); C4162bRw.b(this.d); if (!this.d.i(th2)) { final C4162bRw c4162bRw = this.d; ZI.IeS ieS = new ZI.IeS(c4162bRw) { // from class: o.bRK private C4162bRw a; @Override // o.ZI.IeS public final void e(Object obj) { C4162bRw.ZqN.b(this.a, (InterfaceC9446djr) obj); } { this.a = c4162bRw; } }; if (c4162bRw.f != 0) { ieS.e(c4162bRw.f); } } return C14866gag.c; } public static /* synthetic */ void b(C4162bRw c4162bRw, InterfaceC9446djr interfaceC9446djr) { C14957gcv.e(c4162bRw, ""); RF i = c4162bRw.d.i(); i.a = false; C14866gag c14866gag = C14866gag.c; UT.Sts a = UT.a(); a.b = 13; UT ut = new UT(a, (byte) 0); C14957gcv.c(ut, ""); UV[] uvArr = {i, ut}; C14957gcv.e(uvArr, ""); C14957gcv.e(uvArr, ""); List asList = Arrays.asList(uvArr); C14957gcv.c(asList, ""); interfaceC9446djr.c(asList); interfaceC9446djr.d(false); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ ZqN(C4162bRw c4162bRw) { super(1); this.d = c4162bRw; } } /* renamed from: o.bRw$IeS */ /* loaded from: classes4.dex */ public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR { private C0927Rs d; private C4162bRw e; /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Type inference failed for: r4v1 */ /* JADX WARN: Type inference failed for: r4v2 */ /* JADX WARN: Type inference failed for: r4v3, types: [java.lang.Object] */ @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Hma hma) { String obj; C0927Rs c0927Rs; Hma hma2 = hma; C14957gcv.e(hma2, ""); C17539xd c17539xd = this.e.d; List list = hma2.c; if (list == null || list.isEmpty()) { String e = c17539xd.e(C15715hv.tOB.auto_change_mailing_address_accounts_item_empty_title); String e2 = c17539xd.e(C15715hv.tOB.auto_change_mailing_address_accounts_item_empty_description); StringBuilder sb = new StringBuilder(); sb.append(e); sb.append("\n"); sb.append(e2); obj = sb.toString(); } else { ArrayList arrayList = new ArrayList(); for (Object obj2 : list) { if (((String) obj2).length() != 0) { arrayList.add(obj2); } } obj = C14881gav.b(arrayList, "\n", null, null, 0, null, null, 62); } final List list2 = this.e.c; if (list2 != null) { C4162bRw c4162bRw = this.e; C0927Rs c0927Rs2 = this.d; Iterator it = list2.iterator(); while (true) { if (!it.hasNext()) { c0927Rs = 0; break; } c0927Rs = it.next(); if (C14957gcv.b((UV) c0927Rs, c0927Rs2)) { break; } } C0927Rs c0927Rs3 = c0927Rs instanceof C0927Rs ? c0927Rs : null; if (c0927Rs3 != null) { c0927Rs3.j = obj; } if (c0927Rs3 != null) { c0927Rs3.i = false; } ZI.IeS ieS = new ZI.IeS(list2) { // from class: o.bRD private List b; @Override // o.ZI.IeS public final void e(Object obj3) { C4162bRw.IeS.b(this.b, (InterfaceC9446djr) obj3); } { this.b = list2; } }; if (c4162bRw.f != null) { ieS.e(c4162bRw.f); } } return C14866gag.c; } public static /* synthetic */ void b(List list, InterfaceC9446djr interfaceC9446djr) { C14957gcv.e(list, ""); interfaceC9446djr.c((List) list); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public IeS(C4162bRw c4162bRw, C0927Rs c0927Rs) { super(1); this.e = c4162bRw; this.d = c0927Rs; } } /* renamed from: o.bRw$RVV */ /* loaded from: classes4.dex */ public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR { private C4162bRw c; private C0927Rs e; /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Type inference failed for: r3v1 */ /* JADX WARN: Type inference failed for: r3v2 */ /* JADX WARN: Type inference failed for: r3v3, types: [java.lang.Object] */ @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { C0927Rs c0927Rs; C14957gcv.e(th, ""); final List list = this.c.c; if (list != null) { C4162bRw c4162bRw = this.c; C0927Rs c0927Rs2 = this.e; Iterator it = list.iterator(); while (true) { if (!it.hasNext()) { c0927Rs = 0; break; } c0927Rs = it.next(); if (C14957gcv.b((UV) c0927Rs, c0927Rs2)) { break; } } C0927Rs c0927Rs3 = c0927Rs instanceof C0927Rs ? c0927Rs : null; if (c0927Rs3 != null) { c0927Rs3.i = true; } ZI.IeS ieS = new ZI.IeS(list) { // from class: o.bRE private List e; @Override // o.ZI.IeS public final void e(Object obj) { C4162bRw.RVV.d(this.e, (InterfaceC9446djr) obj); } { this.e = list; } }; if (c4162bRw.f != null) { ieS.e(c4162bRw.f); } } return C14866gag.c; } public static /* synthetic */ void d(List list, InterfaceC9446djr interfaceC9446djr) { C14957gcv.e(list, ""); interfaceC9446djr.c((List) list); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public RVV(C4162bRw c4162bRw, C0927Rs c0927Rs) { super(1); this.c = c4162bRw; this.e = c0927Rs; } } /* renamed from: o.bRw$HBt */ /* loaded from: classes4.dex */ public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR { private C4162bRw b; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(C16242mcE c16242mcE) { final C16242mcE c16242mcE2 = c16242mcE; C14957gcv.e(c16242mcE2, ""); C4162bRw c4162bRw = this.b; ZI.IeS ieS = new ZI.IeS(c16242mcE2) { // from class: o.bRI private C16242mcE c; @Override // o.ZI.IeS public final void e(Object obj) { C4162bRw.HBt.d(this.c, (InterfaceC9446djr) obj); } { this.c = c16242mcE2; } }; if (c4162bRw.f != 0) { ieS.e(c4162bRw.f); } C4162bRw.b(this.b); return C14866gag.c; } public static /* synthetic */ void d(C16242mcE c16242mcE, InterfaceC9446djr interfaceC9446djr) { C14957gcv.e(c16242mcE, ""); interfaceC9446djr.c(c16242mcE.a); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public HBt(C4162bRw c4162bRw) { super(1); this.b = c4162bRw; } } /* renamed from: o.bRw$Sts */ /* loaded from: classes4.dex */ public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR { private C4162bRw c; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { Throwable th2 = th; C14957gcv.e(th2, ""); if (!this.c.i(th2)) { C4162bRw.d(this.c, th2); } return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public Sts(C4162bRw c4162bRw) { super(1); this.c = c4162bRw; } } public static /* synthetic */ void b(RF rf, InterfaceC9446djr interfaceC9446djr) { C14957gcv.e(rf, ""); interfaceC9446djr.d(rf); } public static /* synthetic */ void d(C0927Rs c0927Rs, InterfaceC9446djr interfaceC9446djr) { C14957gcv.e(c0927Rs, ""); interfaceC9446djr.d(c0927Rs); } public static /* synthetic */ void b(String str, C4162bRw c4162bRw, InterfaceC9446djr interfaceC9446djr) { C14957gcv.e(str, ""); C14957gcv.e(c4162bRw, ""); String str2 = c4162bRw.h; interfaceC9446djr.b(str, str2 != null ? str2 : ""); } public static /* synthetic */ void a(List list, InterfaceC9446djr interfaceC9446djr) { C14957gcv.e(list, ""); interfaceC9446djr.c((List) list); } public static /* synthetic */ void c(C5015bl c5015bl, InterfaceC9446djr interfaceC9446djr) { C14957gcv.e(c5015bl, ""); interfaceC9446djr.c(c5015bl); } public static final /* synthetic */ void b(C4162bRw c4162bRw) { if (c4162bRw.f != 0) { c4162bRw.f.ar_(); } } public static final /* synthetic */ void d(C4162bRw c4162bRw, Throwable th) { if (c4162bRw.b(th)) { c4162bRw.d(c4162bRw.j.e(th)); } } public final void d() { if (this.f != 0) { this.f.y(); } C15962jw c15962jw = this.a; LWm lWm = new LWm(this); ZqN zqN = new ZqN(this); C14957gcv.e(lWm, ""); C14957gcv.e(zqN, ""); c15962jw.e.e(lWm, zqN, new AbstractC15351go.LWm(), new C15962jw.LWm(c15962jw), c15962jw.a); } }