package o; import java.util.List; import java.util.NoSuchElementException; import o.C0690Mh; import o.C0907Rf; import o.ZI; import o.aLP; import o.wRi; /* loaded from: classes4.dex */ public class aLP extends C3967bMF { public final C0258Clp a; public List b; public final zMZ c; public final C17114tyS d; public C0907Rf.Sts e; public final C16121lS g; public final C16252mhi h; public final THK i; private final C17744zRP l; private final C17439wm m; private final C16648px n; private final C17473wz r; private final C15623hFu s; private Xky t; @InterfaceC13391fZD public aLP(C16903sI c16903sI, C17439wm c17439wm, C16121lS c16121lS, C15623hFu c15623hFu, C12374ewx c12374ewx, THK thk, C16648px c16648px, C17473wz c17473wz, C16252mhi c16252mhi, C17744zRP c17744zRP, Xky xky, InterfaceC15762iQt interfaceC15762iQt, C0258Clp c0258Clp, C17114tyS c17114tyS, zMZ zmz) { super(c16903sI, c12374ewx); this.m = c17439wm; this.g = c16121lS; this.s = c15623hFu; this.i = thk; this.n = c16648px; this.r = c17473wz; this.h = c16252mhi; this.l = c17744zRP; this.t = xky; interfaceC15762iQt.b(); this.a = c0258Clp; this.d = c17114tyS; this.c = zmz; } public static boolean b(String str) { return str.startsWith("scbeasy://external") || str.startsWith("scbeasy://webview") || str.startsWith("scbeasy://loanorigination/calculator"); } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes4.dex */ public class IeS extends wRi.LWm { private aLP b; IeS(aLP alp) { this.b = alp; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final C13245fUx c13245fUx = (C13245fUx) obj; aLP alp = this.b; ZI.IeS ieS = new ZI.IeS(this, c13245fUx) { // from class: o.aMl private C13245fUx a; private aLP.IeS c; @Override // o.ZI.IeS public final void e(Object obj2) { aLP.IeS.a(this.c, this.a, (InterfaceC9221dfd) obj2); } { this.c = this; this.a = c13245fUx; } }; if (alp.f != 0) { ieS.e(alp.f); } } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ boolean e(C0907Rf.Sts sts) { return sts != null && EnumC15824isw.OPENACCOUNT_NTB.equals(sts.M); } /* JADX WARN: Multi-variable type inference failed */ public static /* synthetic */ void a(IeS ieS, C13245fUx c13245fUx, InterfaceC9221dfd interfaceC9221dfd) { zEQ d; EQY eqy = c13245fUx.b; aLP alp = ieS.b; alp.k = alp.m.d(eqy.i, eqy.c, ieS.b.t.M()); if (c13245fUx.e != null) { aLP alp2 = ieS.b; alp2.b = alp2.m.a(c13245fUx.e, ieS.b.t.M()); } interfaceC9221dfd.b(ieS.b.k.c); if (eqy.d == EnumC17751zVK.SUCCESS) { interfaceC9221dfd.s(); interfaceC9221dfd.l(); interfaceC9221dfd.a(true); List list = ieS.b.k.c; if (list != null) { YKU yku = new YKU(list); YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel() { // from class: o.aMu @Override // o.Jel public final boolean e(Object obj) { return aLP.IeS.e((C0907Rf.Sts) obj); } })); if (yku2.b.hasNext()) { d = zEQ.a(yku2.b.next()); } else { d = zEQ.d(); } if (d.d != 0) { aLP alp3 = ieS.b; T t = d.d; if (t == 0) { throw new NoSuchElementException("No value present"); } alp3.e = (C0907Rf.Sts) t; } } interfaceC9221dfd.r(); return; } if (eqy.d == EnumC17751zVK.LOADING) { interfaceC9221dfd.F(); interfaceC9221dfd.l(); interfaceC9221dfd.a(false); } else { interfaceC9221dfd.s(); interfaceC9221dfd.H(); interfaceC9221dfd.a(false); } } } /* loaded from: classes4.dex */ public final class HBt extends wRi.LWm { private aLP e; private HBt(aLP alp) { this.e = alp; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { this.e.f8546o.a((ZBS) obj); C12374ewx c12374ewx = this.e.f8546o; c12374ewx.d(c12374ewx.i, new RVV(this.e, (byte) 0)); } public /* synthetic */ HBt(aLP alp, byte b) { this(alp); } } /* loaded from: classes4.dex */ final class RVV extends wRi.LWm { private aLP a; private RVV(aLP alp) { this.a = alp; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final C14553fvQ c14553fvQ = (C14553fvQ) obj; aLP alp = this.a; ZI.IeS ieS = new ZI.IeS(c14553fvQ) { // from class: o.aMr private C14553fvQ e; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9221dfd) obj2).d(this.e.b); } { this.e = c14553fvQ; } }; if (alp.f != 0) { ieS.e(alp.f); } } /* synthetic */ RVV(aLP alp, byte b) { this(alp); } } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes4.dex */ public class LWm extends wRi.LWm> { private aLP a; private LWm(aLP alp) { this.a = alp; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final List list = (List) obj; aLP alp = this.a; ZI.IeS ieS = new ZI.IeS(this, list) { // from class: o.aMk private List b; private aLP.LWm e; @Override // o.ZI.IeS public final void e(Object obj2) { aLP.LWm.b(this.e, this.b, (InterfaceC9221dfd) obj2); } { this.e = this; this.b = list; } }; if (alp.f != 0) { ieS.e(alp.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { aLP alp = this.a; ZI.IeS ieS = new ZI.IeS() { // from class: o.aMg @Override // o.ZI.IeS public final void e(Object obj) { aLP.LWm.d((InterfaceC9221dfd) obj); } }; if (alp.f != 0) { ieS.e(alp.f); } } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void d(InterfaceC9221dfd interfaceC9221dfd) { interfaceC9221dfd.ar_(); interfaceC9221dfd.B(); } public static /* synthetic */ void b(LWm lWm, List list, InterfaceC9221dfd interfaceC9221dfd) { interfaceC9221dfd.ar_(); interfaceC9221dfd.c(list != null ? lWm.a.m.a((List) list, lWm.a.t.M()) : null); } /* synthetic */ LWm(aLP alp, byte b) { this(alp); } } @Override // o.ZI public final void w_() { C12374ewx c12374ewx = this.f8546o; if (!c12374ewx.h.isDisposed()) { c12374ewx.h.dispose(); } C15623hFu c15623hFu = this.s; if (!c15623hFu.h.isDisposed()) { c15623hFu.h.dispose(); } THK thk = this.i; if (!thk.h.isDisposed()) { thk.h.dispose(); } C16252mhi c16252mhi = this.h; if (!c16252mhi.h.isDisposed()) { c16252mhi.h.dispose(); } super.w_(); } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes4.dex */ public final class Sts extends wRi.LWm> { private aLP a; private Sts(aLP alp) { this.a = alp; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final List list = (List) obj; aLP alp = this.a; ZI.IeS ieS = new ZI.IeS(this, list) { // from class: o.aMm private List b; private aLP.Sts d; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9221dfd) obj2).d(r0.a.n.c((List) this.b, this.d.a.t.M())); } { this.d = this; this.b = list; } }; if (alp.f != 0) { ieS.e(alp.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(final Throwable th) { super.onError(th); aLP alp = this.a; ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.aMo private aLP.Sts a; private Throwable c; @Override // o.ZI.IeS public final void e(Object obj) { aLP.Sts.b(this.a, this.c, (InterfaceC9221dfd) obj); } { this.a = this; this.c = th; } }; if (alp.f != 0) { ieS.e(alp.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { super.onComplete(); aLP alp = this.a; ZI.IeS ieS = new ZI.IeS() { // from class: o.aMn @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9221dfd) obj).ar_(); } }; if (alp.f != 0) { ieS.e(alp.f); } } public static /* synthetic */ void b(Sts sts, Throwable th, InterfaceC9221dfd interfaceC9221dfd) { interfaceC9221dfd.ar_(); interfaceC9221dfd.e(sts.a.j.d(th, C0690Mh.IeS.JUST_DISMISS)); } /* synthetic */ Sts(aLP alp, byte b) { this(alp); } } public static /* synthetic */ void a(aLP alp) { C15623hFu c15623hFu = alp.s; c15623hFu.d(c15623hFu.a.c(c15623hFu.b.M()), new IeS(alp)); } public static /* synthetic */ void c(aLP alp, EnumC15824isw enumC15824isw, InterfaceC9221dfd interfaceC9221dfd) { if (enumC15824isw == EnumC15824isw.NTB_MUTUAL_FUND) { interfaceC9221dfd.j(); return; } if (enumC15824isw == EnumC15824isw.NTB_SCB_ONE) { interfaceC9221dfd.w(); return; } if (enumC15824isw != EnumC15824isw.NTB_INTRODUCTION) { if (enumC15824isw == EnumC15824isw.OPEN_SCB_ACCOUNT) { interfaceC9221dfd.C(); return; } if (enumC15824isw == EnumC15824isw.HML_LANDING) { interfaceC9221dfd.A(); return; } if (enumC15824isw == EnumC15824isw.ON_BOARD_ACTIVATE) { interfaceC9221dfd.z(); aLZ alz = new aLZ(); if (alp.f != 0) { alz.e(alp.f); return; } return; } return; } ZI.IeS ieS = new ZI.IeS() { // from class: o.aMe @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9221dfd) obj).y(); } }; if (alp.f != 0) { ieS.e(alp.f); } alp.l.a(); C17744zRP c17744zRP = alp.l; c17744zRP.d(c17744zRP.i, new Sts(alp, (byte) 0)); } public static /* synthetic */ void b(aLP alp) { C15623hFu c15623hFu = alp.s; c15623hFu.d(c15623hFu.a(), new IeS(alp)); } public static /* synthetic */ void d(aLP alp) { C15623hFu c15623hFu = alp.s; c15623hFu.d(c15623hFu.a.d(c15623hFu.b.M()), new IeS(alp)); } public static /* synthetic */ void e(aLP alp, InterfaceC9221dfd interfaceC9221dfd) { interfaceC9221dfd.y(); alp.s.c(); C15623hFu c15623hFu = alp.s; c15623hFu.d(c15623hFu.i, new LWm(alp, (byte) 0)); } }