package o; import java.util.ArrayList; import java.util.Collection; import java.util.List; import o.C0690Mh; import o.C15715hv; import o.C5028blM; import o.ZI; import o.wRi; import org.threeten.bp.OffsetDateTime; /* renamed from: o.blM, reason: case insensitive filesystem */ /* loaded from: classes4.dex */ public class C5028blM extends ZI { private final zWC a; public final BlU b; private final fSC c; private C17091tp d; public final C1261Zcv e; private final WYq i; @InterfaceC13391fZD public C5028blM(BlU blU, C17091tp c17091tp, C16903sI c16903sI, C1261Zcv c1261Zcv, WYq wYq, zWC zwc) { super(c16903sI); this.c = new fSC(); this.b = blU; this.d = c17091tp; this.e = c1261Zcv; this.i = wYq; this.a = zwc; } /* renamed from: o.blM$4, reason: invalid class name */ /* loaded from: classes4.dex */ public class AnonymousClass4 extends wRi.LWm { private C5028blM c; public AnonymousClass4(C5028blM c5028blM) { this.c = c5028blM; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final C8119dBn c8119dBn = (C8119dBn) obj; super.onNext(c8119dBn); C5028blM c5028blM = this.c; ZI.IeS ieS = new ZI.IeS(this, c8119dBn) { // from class: o.blO private C5028blM.AnonymousClass4 b; private C8119dBn e; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9248dgD) obj2).d(r0.c.d.c(r1.c, r1.a, this.e.d), r0.c.a.a.f(), C5028blM.a(this.b.c)); } { this.b = this; this.e = c8119dBn; } }; if (c5028blM.f != 0) { ieS.e(c5028blM.f); } C5028blM.d(this.c); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { super.onError(th); C5028blM.c(this.c, th, C0690Mh.IeS.NAVIGATE_BACK); } } /* renamed from: o.blM$3, reason: invalid class name */ /* loaded from: classes4.dex */ public class AnonymousClass3 extends wRi.LWm { private C5028blM c; public AnonymousClass3(C5028blM c5028blM) { this.c = c5028blM; } /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */ @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { char c; final muE mue = (muE) obj; C5028blM.e(this.c); String str = mue.e; str.hashCode(); switch (str.hashCode()) { case -1881380961: if (str.equals("REJECT")) { c = 0; break; } c = 65535; break; case -1785066387: if (str.equals("UPSELL")) { c = 1; break; } c = 65535; break; case -1260652556: if (str.equals("PENDING_OCR_RESUBMIT")) { c = 2; break; } c = 65535; break; case -75067603: if (str.equals("APPROVE")) { c = 3; break; } c = 65535; break; case 35394935: if (str.equals("PENDING")) { c = 4; break; } c = 65535; break; case 769348599: if (str.equals("PENDING_WITH_AIP")) { c = 5; break; } c = 65535; break; case 1487362715: if (str.equals("PENDING_LEADS_RESUBMIT")) { c = 6; break; } c = 65535; break; case 1675813340: if (str.equals("COUNTER")) { c = 7; break; } c = 65535; break; default: c = 65535; break; } switch (c) { case 0: C5028blM c5028blM = this.c; ZI.IeS ieS = new ZI.IeS(this, mue) { // from class: o.blN private muE c; private C5028blM.AnonymousClass3 e; @Override // o.ZI.IeS public final void e(Object obj2) { C5028blM.AnonymousClass3.g(this.e, this.c, (InterfaceC9248dgD) obj2); } { this.e = this; this.c = mue; } }; if (c5028blM.f != 0) { ieS.e(c5028blM.f); return; } return; case 1: C5028blM c5028blM2 = this.c; ZI.IeS ieS2 = new ZI.IeS(this, mue) { // from class: o.blS private muE a; private C5028blM.AnonymousClass3 d; @Override // o.ZI.IeS public final void e(Object obj2) { InterfaceC9248dgD interfaceC9248dgD = (InterfaceC9248dgD) obj2; interfaceC9248dgD.a(r0.c.d.b(this.a), C5028blM.a(this.d.c)); } { this.d = this; this.a = mue; } }; if (c5028blM2.f != 0) { ieS2.e(c5028blM2.f); return; } return; case 2: case 6: C5028blM c5028blM3 = this.c; ZI.IeS ieS3 = new ZI.IeS(this, mue) { // from class: o.blU private C5028blM.AnonymousClass3 c; private muE e; @Override // o.ZI.IeS public final void e(Object obj2) { C5028blM.AnonymousClass3.d(this.c, this.e, (InterfaceC9248dgD) obj2); } { this.c = this; this.e = mue; } }; if (c5028blM3.f != 0) { ieS3.e(c5028blM3.f); return; } return; case 3: C5028blM c5028blM4 = this.c; ZI.IeS ieS4 = new ZI.IeS(this, mue) { // from class: o.blL private C5028blM.AnonymousClass3 a; private muE d; @Override // o.ZI.IeS public final void e(Object obj2) { C5028blM.AnonymousClass3.e(this.a, this.d, (InterfaceC9248dgD) obj2); } { this.a = this; this.d = mue; } }; if (c5028blM4.f != 0) { ieS4.e(c5028blM4.f); return; } return; case 4: C5028blM c5028blM5 = this.c; ZI.IeS ieS5 = new ZI.IeS(this, mue) { // from class: o.blQ private C5028blM.AnonymousClass3 a; private muE c; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC9248dgD) obj2).d(r0.c.d.c(r1.d, r1.a, this.c.b), r0.c.a.a.f(), C5028blM.a(this.a.c)); } { this.a = this; this.c = mue; } }; if (c5028blM5.f != 0) { ieS5.e(c5028blM5.f); return; } return; case 5: C5028blM c5028blM6 = this.c; ZI.IeS ieS6 = new ZI.IeS(this, mue) { // from class: o.blT private muE a; private C5028blM.AnonymousClass3 c; @Override // o.ZI.IeS public final void e(Object obj2) { C5028blM.AnonymousClass3.f(this.c, this.a, (InterfaceC9248dgD) obj2); } { this.c = this; this.a = mue; } }; if (c5028blM6.f != 0) { ieS6.e(c5028blM6.f); return; } return; case 7: C5028blM c5028blM7 = this.c; ZI.IeS ieS7 = new ZI.IeS(this, mue) { // from class: o.blP private C5028blM.AnonymousClass3 b; private muE c; @Override // o.ZI.IeS public final void e(Object obj2) { InterfaceC9248dgD interfaceC9248dgD = (InterfaceC9248dgD) obj2; interfaceC9248dgD.b(r0.c.d.b(this.c), C5028blM.a(this.b.c)); } { this.b = this; this.c = mue; } }; if (c5028blM7.f != 0) { ieS7.e(c5028blM7.f); return; } return; default: return; } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C5028blM.b(this.c, th, new Runnable(this) { // from class: o.blR private C5028blM.AnonymousClass3 d; @Override // java.lang.Runnable public final void run() { C5028blM.AnonymousClass3.c(this.d); } { this.d = this; } }); } public static /* synthetic */ void e(AnonymousClass3 anonymousClass3, muE mue, InterfaceC9248dgD interfaceC9248dgD) { ENH enh; C17091tp c17091tp = anonymousClass3.c.d; C14957gcv.e(mue, ""); String str = (String) C16157lj.c(new Object[]{c17091tp, OffsetDateTime.parse(mue.b)}, 838289628, -838289623, System.identityHashCode(c17091tp)); String c = c17091tp.c(C15715hv.tOB.auto_app_outcome_counter_teaser_no_upsell_desc, mue.j); List list = mue.g; NU a = (list == null || (enh = list.get(0)) == null) ? null : c17091tp.a(enh); String str2 = mue.c; interfaceC9248dgD.b(new NC(str, c, a, str2 != null ? c17091tp.b_(str2) : null), C5028blM.a(anonymousClass3.c), anonymousClass3.c.a.a.f()); } public static /* synthetic */ void c(AnonymousClass3 anonymousClass3) { C5028blM c5028blM = anonymousClass3.c; ZI.IeS ieS = new ZI.IeS() { // from class: o.blY @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9248dgD) obj).d(); } }; if (c5028blM.f != 0) { ieS.e(c5028blM.f); } } public static /* synthetic */ void d(AnonymousClass3 anonymousClass3, muE mue, InterfaceC9248dgD interfaceC9248dgD) { C17091tp c17091tp = anonymousClass3.c.d; C14957gcv.e(mue, ""); String str = (String) C16157lj.c(new Object[]{c17091tp, OffsetDateTime.parse(mue.m)}, 838289628, -838289623, System.identityHashCode(c17091tp)); String str2 = mue.e; Boolean bool = mue.f; RLk rLk = mue.i; String str3 = rLk != null ? rLk.c : null; RLk rLk2 = mue.i; interfaceC9248dgD.d(new NH(str, str2, bool, str3, rLk2 != null ? rLk2.e : null), anonymousClass3.c.a.a.f(), C5028blM.a(anonymousClass3.c)); } public static /* synthetic */ void g(AnonymousClass3 anonymousClass3, muE mue, InterfaceC9248dgD interfaceC9248dgD) { OffsetDateTime offsetDateTime; C17091tp c17091tp = anonymousClass3.c.d; C14957gcv.e(mue, ""); String str = mue.c; String str2 = null; String b_ = str != null ? c17091tp.b_(str) : null; xzK xzk = mue.h; boolean z = xzk != null && xzk.b; xzK xzk2 = mue.h; String b_2 = xzk2 != null ? c17091tp.b_(xzk2.c) : null; xzK xzk3 = mue.h; String str3 = xzk3 != null ? xzk3.d : null; xzK xzk4 = mue.h; if (xzk4 != null && (offsetDateTime = xzk4.e) != null) { str2 = (String) C16157lj.c(new Object[]{c17091tp, offsetDateTime}, 838289628, -838289623, System.identityHashCode(c17091tp)); } interfaceC9248dgD.c(new NI(b_, z, b_2, str3, str2), anonymousClass3.c.a.a.f(), C5028blM.a(anonymousClass3.c)); } public static /* synthetic */ void f(AnonymousClass3 anonymousClass3, muE mue, InterfaceC9248dgD interfaceC9248dgD) { List list; ENH enh; BBP bbp; String str; ENH enh2; String str2; ENH enh3; List list2; ENH enh4; BBP bbp2; String str3; ENH enh5; String str4; ENH enh6; String str5; C17091tp c17091tp = anonymousClass3.c.d; C14957gcv.e(mue, ""); Double d = null; String string = mue.b != null ? c17091tp.e.getString(C15715hv.tOB.hml_outcome_pending_date, (String) C16157lj.c(new Object[]{c17091tp, OffsetDateTime.parse(mue.b)}, 838289628, -838289623, System.identityHashCode(c17091tp))) : null; List list3 = mue.g; String d2 = C16157lj.d((list3 == null || (enh6 = list3.get(0)) == null || (str5 = enh6.l) == null) ? null : Double.valueOf(Double.parseDouble(str5))); List list4 = mue.g; String str6 = (list4 == null || (enh5 = list4.get(0)) == null || (str4 = enh5.e) == null) ? "" : str4; List list5 = mue.g; String str7 = (list5 == null || (enh4 = list5.get(0)) == null || (bbp2 = enh4.h) == null || (str3 = bbp2.d) == null) ? "" : str3; List list6 = mue.g; if (list6 != null && (enh3 = list6.get(0)) != null && (list2 = enh3.f8142o) != null) { List list7 = list2; C14957gcv.e(list7, ""); List arrayList = new ArrayList(list7 instanceof Collection ? list7.size() : 10); for (C0393Fnz c0393Fnz : list7) { C14957gcv.e(c0393Fnz, ""); arrayList.add(new WY(c0393Fnz.a, c0393Fnz.d)); } list = arrayList; } else { list = C14851gaI.c; } List list8 = mue.g; if (list8 != null && (enh2 = list8.get(0)) != null && (str2 = enh2.a) != null) { d = Double.valueOf(Double.parseDouble(str2)); } String d3 = C16157lj.d(d); List list9 = mue.g; String str8 = (list9 == null || (enh = list9.get(0)) == null || (bbp = enh.h) == null || (str = bbp.a) == null) ? "" : str; C14957gcv.c((Object) d2, ""); C14957gcv.c((Object) d3, ""); interfaceC9248dgD.e(new C0760Nz(string, d2, d3, str8, list, str6, str7), C5028blM.a(anonymousClass3.c)); } } static /* synthetic */ Boolean a(C5028blM c5028blM) { return Boolean.valueOf(bTI.BUSINESS_OWNER == c5028blM.a.a.f()); } static /* synthetic */ void d(C5028blM c5028blM) { if (c5028blM.f != 0) { c5028blM.f.ar_(); } } static /* synthetic */ void c(C5028blM c5028blM, Throwable th, C0690Mh.IeS ieS) { if (c5028blM.b(th)) { c5028blM.d(c5028blM.j.d(th, ieS)); } } static /* synthetic */ void e(C5028blM c5028blM) { if (c5028blM.f != 0) { c5028blM.f.ar_(); } } static /* synthetic */ void b(C5028blM c5028blM, Throwable th, Runnable runnable) { if (c5028blM.b(th)) { c5028blM.d(c5028blM.j.c(th, runnable)); } } @Override // o.ZI public final void w_() { C1261Zcv c1261Zcv = this.e; if (!c1261Zcv.h.isDisposed()) { c1261Zcv.h.dispose(); } BlU blU = this.b; if (!blU.h.isDisposed()) { blU.h.dispose(); } WYq wYq = this.i; if (!wYq.h.isDisposed()) { wYq.h.dispose(); } this.c.dispose(); super.w_(); } }