package o; import java.util.List; import java.util.regex.Pattern; import o.C0907Rf; import o.InterfaceC6656cZW; import o.ZI; import o.cXH; import o.wRi; /* renamed from: o.aMq, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C1731aMq extends ZI { public boolean a; public boolean b; public boolean c; public String d; public boolean e; public String g; public String h; public final FsF i; public C7689ct k; public final C15882jPm l; private List m; public cXH.HBt.RVV n; /* renamed from: o, reason: collision with root package name */ public final lUI f8497o; private final C16648px p; private final Xky q; private final THK r; private final C15623hFu s; private final C17439wm t; private final C1429aDv u; private final JaU w; private final C16540pF y; @InterfaceC13391fZD public C1731aMq(C16903sI c16903sI, C1429aDv c1429aDv, lUI lui, JaU jaU, FsF fsF, THK thk, C15623hFu c15623hFu, C15882jPm c15882jPm, C16540pF c16540pF, C16648px c16648px, Xky xky, C17439wm c17439wm) { super(c16903sI); this.u = c1429aDv; this.f8497o = lui; this.w = jaU; this.i = fsF; this.r = thk; this.s = c15623hFu; this.l = c15882jPm; this.q = xky; this.t = c17439wm; this.y = c16540pF; this.p = c16648px; } public final void b(String str) { this.g = str != null ? str.trim() : null; boolean z = (str == null || !this.u.b.matcher(str.trim()).matches() || gjJ.b((CharSequence) str)) ? false : true; this.b = z; if (z) { ZI.IeS ieS = new ZI.IeS() { // from class: o.aMF @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6656cZW.LWm) obj).n(); } }; if (this.f != 0) { ieS.e(this.f); } b(); return; } if (gjJ.b((CharSequence) str)) { ZI.IeS ieS2 = new ZI.IeS() { // from class: o.aMG @Override // o.ZI.IeS public final void e(Object obj) { C1731aMq.e((InterfaceC6656cZW.LWm) obj); } }; if (this.f != 0) { ieS2.e(this.f); return; } return; } ZI.IeS ieS3 = new ZI.IeS() { // from class: o.aMI @Override // o.ZI.IeS public final void e(Object obj) { C1731aMq.f((InterfaceC6656cZW.LWm) obj); } }; if (this.f != 0) { ieS3.e(this.f); } } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void e(InterfaceC6656cZW.LWm lWm) { lWm.m(); lWm.a(); } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void f(InterfaceC6656cZW.LWm lWm) { lWm.o(); lWm.a(); } public final void c(String str) { if (str != null) { str = str.trim(); } this.d = str; boolean z = (str == null || !Pattern.compile("^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$").matcher(str).matches() || gjJ.b((CharSequence) this.d)) ? false : true; this.c = z; if (z) { ZI.IeS ieS = new ZI.IeS() { // from class: o.aMA @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6656cZW.LWm) obj).g(); } }; if (this.f != 0) { ieS.e(this.f); } b(); return; } if (gjJ.b((CharSequence) this.d)) { ZI.IeS ieS2 = new ZI.IeS() { // from class: o.aMH @Override // o.ZI.IeS public final void e(Object obj) { C1731aMq.c((InterfaceC6656cZW.LWm) obj); } }; if (this.f != 0) { ieS2.e(this.f); return; } return; } ZI.IeS ieS3 = new ZI.IeS() { // from class: o.aMD @Override // o.ZI.IeS public final void e(Object obj) { C1731aMq.a((InterfaceC6656cZW.LWm) obj); } }; if (this.f != 0) { ieS3.e(this.f); } } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void c(InterfaceC6656cZW.LWm lWm) { lWm.e(); lWm.a(); } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void a(InterfaceC6656cZW.LWm lWm) { lWm.c(); lWm.a(); } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void b(InterfaceC6656cZW.LWm lWm) { lWm.f(); lWm.a(); } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ void d(InterfaceC6656cZW.LWm lWm) { lWm.h(); lWm.a(); } @Override // o.ZI public final void w_() { FsF fsF = this.i; if (!fsF.h.isDisposed()) { fsF.h.dispose(); } THK thk = this.r; if (!thk.h.isDisposed()) { thk.h.dispose(); } super.w_(); } public final void a() { if (!cXH.HBt.RVV.OPEN_ACCOUNT.equals(this.n)) { if (cXH.HBt.RVV.APPLY_FOR_LOAN.equals(this.n)) { ZI.IeS ieS = new ZI.IeS() { // from class: o.aMv @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6656cZW.LWm) obj).d(); } }; if (this.f != 0) { ieS.e(this.f); return; } return; } if (cXH.HBt.RVV.DEMO.equals(this.n)) { ZI.IeS ieS2 = new ZI.IeS(this) { // from class: o.aMy private C1731aMq c; @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6656cZW.LWm) obj).e(r0.p.c(r0.m, this.c.k.b)); } { this.c = this; } }; if (this.f != 0) { ieS2.e(this.f); return; } return; } return; } if (this.f != 0) { this.f.y(); } this.s.a(); C15623hFu c15623hFu = this.s; c15623hFu.d(c15623hFu.i, new HBt(this)); } /* renamed from: o.aMq$RVV */ /* loaded from: classes4.dex */ public class RVV extends wRi.LWm> { private C1731aMq e; public RVV(C1731aMq c1731aMq) { this.e = c1731aMq; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { KEo kEo; List list = (List) obj; super.onNext(list); this.e.e = true; this.e.m = list; THK thk = this.e.r; C16540pF unused = this.e.y; C7689ct c7689ct = this.e.k; if (c7689ct == null) { kEo = null; } else { KEo kEo2 = new KEo(); kEo2.b = c7689ct.g; kEo2.d = c7689ct.h; kEo2.e = c7689ct.a; kEo2.a = c7689ct.f; kEo2.c = c7689ct.d; kEo = kEo2; } thk.c.b(kEo); C1731aMq.h(this.e); this.e.a(); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C1731aMq.a(this.e, th); } } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.aMq$HBt */ /* loaded from: classes4.dex */ public class HBt extends wRi.LWm { private C1731aMq c; HBt(C1731aMq c1731aMq) { this.c = c1731aMq; } /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Removed duplicated region for block: B:23:0x0091 */ /* JADX WARN: Removed duplicated region for block: B:28:? A[RETURN, SYNTHETIC] */ @Override // o.wRi.LWm, o.InterfaceC13174fSv /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final /* synthetic */ void onNext(java.lang.Object r6) { /* r5 = this; o.fUx r6 = (o.C13245fUx) r6 o.EQY r6 = r6.b o.aMq r0 = r5.c o.wm r0 = o.C1731aMq.b(r0) java.util.List r1 = r6.i int r2 = r6.c o.aMq r3 = r5.c o.Xky r3 = o.C1731aMq.d(r3) java.lang.String r3 = r3.M() o.Rf r0 = r0.d(r1, r2, r3) java.util.List r1 = r0.c if (r1 == 0) goto L64 java.util.List r0 = r0.c o.YKU r1 = new o.YKU r1.(r0) o.wv r0 = new o.wv r0.() o.YKU r2 = new o.YKU o.jVT r3 = r1.a o.GEP r4 = new o.GEP java.util.Iterator r1 = r1.b r4.(r1, r0) r2.(r3, r4) java.util.Iterator r0 = r2.b boolean r0 = r0.hasNext() if (r0 == 0) goto L4d java.util.Iterator r0 = r2.b java.lang.Object r0 = r0.next() o.zEQ r0 = o.zEQ.a(r0) goto L51 L4d: o.zEQ r0 = o.zEQ.d() L51: T r1 = r0.d if (r1 == 0) goto L64 T r0 = r0.d if (r0 == 0) goto L5c o.Rf$Sts r0 = (o.C0907Rf.Sts) r0 goto L65 L5c: java.util.NoSuchElementException r6 = new java.util.NoSuchElementException java.lang.String r0 = "No value present" r6.(r0) throw r6 L64: r0 = 0 L65: o.aMq r1 = r5.c o.C1731aMq.g(r1) if (r0 == 0) goto L87 o.zVK r1 = o.EnumC17751zVK.SUCCESS o.zVK r2 = r6.d boolean r1 = r1.equals(r2) if (r1 == 0) goto L87 o.aMq r6 = r5.c o.aMM r1 = new o.aMM r1.(r5, r0) T extends o.cYp r0 = r6.f if (r0 == 0) goto L86 T extends o.cYp r6 = r6.f r1.e(r6) L86: return L87: o.zVK r0 = o.EnumC17751zVK.ERROR o.zVK r6 = r6.d boolean r6 = r0.equals(r6) if (r6 == 0) goto La1 o.aMq r6 = r5.c o.aMJ r0 = new o.aMJ r0.() T extends o.cYp r1 = r6.f if (r1 == 0) goto La1 T extends o.cYp r6 = r6.f r0.e(r6) La1: return */ throw new UnsupportedOperationException("Method not decompiled: o.C1731aMq.HBt.onNext(java.lang.Object):void"); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C1731aMq.b(this.c, th); } public static /* synthetic */ void b(HBt hBt, C0907Rf.Sts sts, InterfaceC6656cZW.LWm lWm) { hBt.c.p.c(hBt.c.m, hBt.c.k.b); lWm.a(sts); } } static /* synthetic */ void h(C1731aMq c1731aMq) { if (c1731aMq.f != 0) { c1731aMq.f.ar_(); } } static /* synthetic */ void a(C1731aMq c1731aMq, Throwable th) { if (c1731aMq.b(th)) { c1731aMq.d(c1731aMq.j.e(th)); } } static /* synthetic */ void g(C1731aMq c1731aMq) { if (c1731aMq.f != 0) { c1731aMq.f.ar_(); } } static /* synthetic */ void b(C1731aMq c1731aMq, Throwable th) { if (c1731aMq.b(th)) { c1731aMq.d(c1731aMq.j.e(th)); } } private void b() { if (this.c && this.b && this.a) { ZI.IeS ieS = new ZI.IeS() { // from class: o.aMz @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6656cZW.LWm) obj).b(); } }; if (this.f != 0) { ieS.e(this.f); } } } public final void d(String str) { this.h = str; boolean z = (gjJ.b((CharSequence) str) || !this.w.c.matcher(str).matches() || gjJ.b((CharSequence) str)) ? false : true; this.a = z; if (z) { ZI.IeS ieS = new ZI.IeS() { // from class: o.aMw @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC6656cZW.LWm) obj).i(); } }; if (this.f != 0) { ieS.e(this.f); } b(); return; } if (gjJ.b((CharSequence) str)) { ZI.IeS ieS2 = new ZI.IeS() { // from class: o.aMx @Override // o.ZI.IeS public final void e(Object obj) { C1731aMq.b((InterfaceC6656cZW.LWm) obj); } }; if (this.f != 0) { ieS2.e(this.f); return; } return; } ZI.IeS ieS3 = new ZI.IeS() { // from class: o.aMs @Override // o.ZI.IeS public final void e(Object obj) { C1731aMq.d((InterfaceC6656cZW.LWm) obj); } }; if (this.f != 0) { ieS3.e(this.f); } } }