package o; import java.util.EnumMap; import java.util.Iterator; import java.util.List; import o.AbstractC5094bmZ; import o.C0690Mh; import o.ZI; import o.wRi; /* renamed from: o.bmZ, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public abstract class AbstractC5094bmZ extends ZI { EnumMap a; public final QhN b; public final Fdp c; public final Qfw d; public final CaX e; String g; String h; private final InterfaceC13393fZL i; private final nEP k; private final FHl l; private final zWC m; private List n; /* renamed from: o, reason: collision with root package name */ private final ZUb f8578o; private final CQ q; private final C17021tM t; public abstract void b(); /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public AbstractC5094bmZ(C16903sI c16903sI, CQ cq, Qfw qfw, Fdp fdp, ZUb zUb, C17021tM c17021tM, CaX caX, FHl fHl, zWC zwc, QhN qhN, nEP nep) { super(c16903sI); C14957gcv.e(c16903sI, ""); C14957gcv.e(cq, ""); C14957gcv.e(qfw, ""); C14957gcv.e(fdp, ""); C14957gcv.e(zUb, ""); C14957gcv.e(c17021tM, ""); C14957gcv.e(caX, ""); C14957gcv.e(fHl, ""); C14957gcv.e(zwc, ""); C14957gcv.e(qhN, ""); C14957gcv.e(nep, ""); this.q = cq; this.d = qfw; this.c = fdp; this.f8578o = zUb; this.t = c17021tM; this.e = caX; this.l = fHl; this.m = zwc; this.b = qhN; this.k = nep; this.a = new EnumMap<>(OVB.class); this.n = C14851gaI.c; HBt hBt = HBt.c; C14957gcv.e(hBt, ""); this.i = new fZZ(hBt); } /* renamed from: o.bmZ$LWm */ /* loaded from: classes4.dex */ public static final class LWm implements InterfaceC14939gcd, String, NL> { private AbstractC5094bmZ a; private boolean c; public LWm(AbstractC5094bmZ abstractC5094bmZ, boolean z) { this.a = abstractC5094bmZ; this.c = z; } /* JADX WARN: Multi-variable type inference failed */ @Override // o.InterfaceC14939gcd public final /* synthetic */ NL invoke(Unc unc, List list, String str) { Unc unc2 = unc; List list2 = list; String str2 = str; C14957gcv.e(unc2, ""); C14957gcv.e(list2, ""); C14957gcv.e(str2, ""); C17021tM c17021tM = this.a.t; boolean z = this.c; iKd K = this.a.l.a.K(); return c17021tM.a(unc2, list2, z, str2, K != null && K.m > 0); } } /* renamed from: o.bmZ$IeS */ /* loaded from: classes4.dex */ public static final class IeS extends AbstractC14961gcz implements InterfaceC14937gcb, NL> { private AbstractC5094bmZ b; private boolean e; @Override // o.InterfaceC14937gcb public final /* synthetic */ NL invoke(Unc unc, List list) { Unc unc2 = unc; List list2 = list; C17021tM c17021tM = this.b.t; C14957gcv.c(unc2, ""); C14957gcv.c(list2, ""); boolean z = this.e; String str = unc2.h.h; iKd K = this.b.l.a.K(); return c17021tM.a(unc2, list2, z, str, K != null && K.m > 0); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public IeS(AbstractC5094bmZ abstractC5094bmZ, boolean z) { super(2); this.b = abstractC5094bmZ; this.e = z; } } /* renamed from: o.bmZ$RVV */ /* loaded from: classes4.dex */ public static final class RVV extends wRi.LWm { private AbstractC5094bmZ a; public RVV(AbstractC5094bmZ abstractC5094bmZ) { this.a = abstractC5094bmZ; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final NL nl = (NL) obj; C14957gcv.e(nl, ""); super.onNext(nl); AbstractC5094bmZ abstractC5094bmZ = this.a; String str = nl.j; C14957gcv.e(str, ""); abstractC5094bmZ.h = str; AbstractC5094bmZ abstractC5094bmZ2 = this.a; String str2 = nl.e.d; C14957gcv.e(str2, ""); abstractC5094bmZ2.g = str2; this.a.n = nl.b; AbstractC5094bmZ abstractC5094bmZ3 = this.a; ZI.IeS ieS = new ZI.IeS(nl) { // from class: o.bni private NL e; @Override // o.ZI.IeS public final void e(Object obj2) { AbstractC5094bmZ.RVV.e(this.e, (InterfaceC9342dht) obj2); } { this.e = nl; } }; if (abstractC5094bmZ3.f != 0) { ieS.e(abstractC5094bmZ3.f); } AbstractC5094bmZ abstractC5094bmZ4 = this.a; C14957gcv.e(nl, ""); List list = nl.b; if (list != null) { for (final LT lt : list) { String str3 = lt.e; if (C14957gcv.b((Object) str3, (Object) OVB.TERMS_N_CONDITIONS.name())) { ZI.IeS ieS2 = new ZI.IeS(lt) { // from class: o.bnd private LT c; @Override // o.ZI.IeS public final void e(Object obj2) { AbstractC5094bmZ.a(this.c, (InterfaceC9342dht) obj2); } { this.c = lt; } }; if (abstractC5094bmZ4.f != 0) { ieS2.e(abstractC5094bmZ4.f); } } else if (C14957gcv.b((Object) str3, (Object) OVB.MODEL_CONSENT.name())) { ZI.IeS ieS3 = new ZI.IeS(lt) { // from class: o.bnf private LT d; @Override // o.ZI.IeS public final void e(Object obj2) { AbstractC5094bmZ.e(this.d, (InterfaceC9342dht) obj2); } { this.d = lt; } }; if (abstractC5094bmZ4.f != 0) { ieS3.e(abstractC5094bmZ4.f); } } else if (C14957gcv.b((Object) str3, (Object) OVB.CROSS_SELL_CONSENT.name())) { ZI.IeS ieS4 = new ZI.IeS(lt) { // from class: o.bnb private LT d; @Override // o.ZI.IeS public final void e(Object obj2) { AbstractC5094bmZ.b(this.d, (InterfaceC9342dht) obj2); } { this.d = lt; } }; if (abstractC5094bmZ4.f != 0) { ieS4.e(abstractC5094bmZ4.f); } } } } AbstractC5094bmZ.b(this.a); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C14957gcv.e(th, ""); super.onError(th); AbstractC5094bmZ.b(this.a, th, C0690Mh.IeS.NAVIGATE_BACK); } public static /* synthetic */ void e(NL nl, InterfaceC9342dht interfaceC9342dht) { C14957gcv.e(nl, ""); interfaceC9342dht.c(nl); } } /* renamed from: o.bmZ$Sts */ /* loaded from: classes4.dex */ public static final class Sts extends wRi.LWm { private AbstractC5094bmZ e; public Sts(AbstractC5094bmZ abstractC5094bmZ) { this.e = abstractC5094bmZ; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final String str = (String) obj; C14957gcv.e(str, ""); AbstractC5094bmZ abstractC5094bmZ = this.e; ZI.IeS ieS = new ZI.IeS(str) { // from class: o.bnh private String a; @Override // o.ZI.IeS public final void e(Object obj2) { AbstractC5094bmZ.Sts.e(this.a, (InterfaceC9342dht) obj2); } { this.a = str; } }; if (abstractC5094bmZ.f != 0) { ieS.e(abstractC5094bmZ.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C14957gcv.e(th, ""); AbstractC5094bmZ abstractC5094bmZ = this.e; ZI.IeS ieS = new ZI.IeS() { // from class: o.bnk @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9342dht) obj).a(""); } }; if (abstractC5094bmZ.f != 0) { ieS.e(abstractC5094bmZ.f); } } public static /* synthetic */ void e(String str, InterfaceC9342dht interfaceC9342dht) { C14957gcv.e(str, ""); interfaceC9342dht.a(str); } } public final void a(final OVB ovb, LT lt) { C14957gcv.e(ovb, ""); C14957gcv.e(lt, ""); final C0371Fd e = CQ.e(this.q, lt, ovb != OVB.SALE_SHEET); ZI.IeS ieS = new ZI.IeS(ovb, e) { // from class: o.bnc private OVB a; private C0371Fd c; @Override // o.ZI.IeS public final void e(Object obj) { AbstractC5094bmZ.a(this.a, this.c, (InterfaceC9342dht) obj); } { this.a = ovb; this.c = e; } }; if (this.f != 0) { ieS.e(this.f); } } public final void a(OVB ovb, boolean z) { C14957gcv.e(ovb, ""); this.a.put((EnumMap) ovb, (OVB) Boolean.valueOf(z)); ZI.IeS ieS = new ZI.IeS(this) { // from class: o.bne private AbstractC5094bmZ b; @Override // o.ZI.IeS public final void e(Object obj) { AbstractC5094bmZ.d(this.b, (InterfaceC9342dht) obj); } { this.b = this; } }; if (this.f != 0) { ieS.e(this.f); } } private final boolean b(OVB ovb) { boolean z; List list = this.n; if (list != null) { Iterator it = list.iterator(); z = false; while (it.hasNext()) { if (gdZ.a(((LT) it.next()).e, ovb.toString(), false)) { z = true; } } } else { z = false; } boolean containsKey = this.a.containsKey(ovb); if (z) { return z && containsKey; } return true; } /* renamed from: o.bmZ$HBt */ /* loaded from: classes4.dex */ static final class HBt extends AbstractC14961gcz implements InterfaceC14890gbN { public static final HBt c = new HBt(); @Override // o.InterfaceC14890gbN public final /* synthetic */ fSC invoke() { return new fSC(); } HBt() { super(0); } } public static /* synthetic */ void e(OVB ovb, boolean z, InterfaceC9342dht interfaceC9342dht) { C14957gcv.e(ovb, ""); interfaceC9342dht.c(ovb, z); } public static /* synthetic */ void a(OVB ovb, C0371Fd c0371Fd, InterfaceC9342dht interfaceC9342dht) { C14957gcv.e(ovb, ""); C14957gcv.e(c0371Fd, ""); interfaceC9342dht.e(ovb, c0371Fd); } public static /* synthetic */ void d(AbstractC5094bmZ abstractC5094bmZ, InterfaceC9342dht interfaceC9342dht) { C14957gcv.e(abstractC5094bmZ, ""); interfaceC9342dht.c(C14957gcv.b(abstractC5094bmZ.a.get(OVB.TERMS_N_CONDITIONS), Boolean.TRUE) && abstractC5094bmZ.b(OVB.MODEL_CONSENT) && abstractC5094bmZ.b(OVB.CROSS_SELL_CONSENT)); } public static /* synthetic */ void b(LT lt, InterfaceC9342dht interfaceC9342dht) { C14957gcv.e(lt, ""); interfaceC9342dht.e(lt); } public static /* synthetic */ NL a(InterfaceC14939gcd interfaceC14939gcd, Object obj, Object obj2, Object obj3) { C14957gcv.e(interfaceC14939gcd, ""); return (NL) interfaceC14939gcd.invoke(obj, obj2, obj3); } public static /* synthetic */ void e(LT lt, InterfaceC9342dht interfaceC9342dht) { C14957gcv.e(lt, ""); interfaceC9342dht.b(lt); } public static /* synthetic */ NL a(InterfaceC14937gcb interfaceC14937gcb, Object obj, Object obj2) { C14957gcv.e(interfaceC14937gcb, ""); return (NL) interfaceC14937gcb.invoke(obj, obj2); } public static /* synthetic */ void a(LT lt, InterfaceC9342dht interfaceC9342dht) { C14957gcv.e(lt, ""); interfaceC9342dht.d(lt); } public static final /* synthetic */ void b(AbstractC5094bmZ abstractC5094bmZ) { if (abstractC5094bmZ.f != 0) { abstractC5094bmZ.f.ar_(); } } public static final /* synthetic */ void b(AbstractC5094bmZ abstractC5094bmZ, Throwable th, C0690Mh.IeS ieS) { if (abstractC5094bmZ.b(th)) { abstractC5094bmZ.d(abstractC5094bmZ.j.d(th, ieS)); } } @Override // o.ZI public final void w_() { Qfw qfw = this.d; if (!qfw.h.isDisposed()) { qfw.h.dispose(); } ZUb zUb = this.f8578o; if (!zUb.h.isDisposed()) { zUb.h.dispose(); } super.w_(); } /* JADX INFO: Access modifiers changed from: protected */ public final zWC a() { return this.m; } /* JADX INFO: Access modifiers changed from: protected */ public final ZUb c() { return this.f8578o; } }