package o; import com.prolificinteractive.materialcalendarview.CalendarDay; import java.math.BigDecimal; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.List; import java.util.NoSuchElementException; import o.C15715hv; import o.C2799alS; import o.InterfaceC6639cYq; import o.PRA; import o.ZI; import o.wRi; import org.threeten.bp.OffsetDateTime; /* renamed from: o.alS, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public class C2799alS extends ZI { public final tLY a; public List b; private final REU c; public final yGw d; public CalendarDay e; private final BN g; private final SVc h; @InterfaceC13391fZD public C2799alS(SVc sVc, yGw ygw, tLY tly, REU reu, C16903sI c16903sI, BN bn) { super(c16903sI); this.h = sVc; this.d = ygw; this.a = tly; this.c = reu; this.g = bn; this.b = new ArrayList(); } /* JADX INFO: Access modifiers changed from: package-private */ /* renamed from: o.alS$LWm */ /* loaded from: classes3.dex */ public final class LWm extends wRi.LWm { private C2799alS c; private LWm(C2799alS c2799alS) { this.c = c2799alS; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final C0814Pak c0814Pak = (C0814Pak) obj; C2799alS.f(this.c); C2799alS c2799alS = this.c; ZI.IeS ieS = new ZI.IeS(this, c0814Pak) { // from class: o.alU private C2799alS.LWm a; private C0814Pak c; @Override // o.ZI.IeS public final void e(Object obj2) { C2799alS.LWm.e(this.a, this.c, (InterfaceC6639cYq.LWm) obj2); } { this.a = this; this.c = c0814Pak; } }; if (c2799alS.f != 0) { ieS.e(c2799alS.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C2799alS.b(this.c); if (this.c.i(th)) { return; } C2799alS c2799alS = this.c; C2802alV c2802alV = new C2802alV(); if (c2799alS.f != 0) { c2802alV.e(c2799alS.f); } } public static /* synthetic */ void e(LWm lWm, C0814Pak c0814Pak, InterfaceC6639cYq.LWm lWm2) { final BN bn = lWm.c.g; List list = c0814Pak.d; bn.j = false; bn.h = false; bn.a = false; bn.i = false; YKU yku = new YKU(list); lWm2.a((List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(bn) { // from class: o.BO private BN b; /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */ @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { EN en; String str; int i; String str2; String str3; EN en2; String str4; String str5; String str6; String str7; String str8; int i2; VU vu; VW vw; String str9; char c; boolean z; VT vt; final BN bn2 = this.b; NZv nZv = (NZv) obj; int i3 = nZv.n; String str10 = nZv.g; int i4 = nZv.h; String str11 = nZv.k; if (nZv.j != null) { JZY jzy = nZv.j; en = new EN(jzy.b, jzy.d, jzy.e); } else { en = null; } String str12 = nZv.l; String str13 = nZv.a; String valueOf = String.valueOf(nZv.c); String str14 = nZv.m; String str15 = nZv.d; String str16 = nZv.b; if (nZv.f8288o != null) { qTG qtg = nZv.f8288o; String str17 = qtg.b; String str18 = qtg.d; str8 = str16; String str19 = qtg.c; str7 = str15; String str20 = qtg.a; str6 = str14; BigDecimal bigDecimal = qtg.j; str5 = valueOf; String str21 = qtg.y; str4 = str13; if (qtg.w != null) { NHc nHc = qtg.w; str3 = str12; en2 = en; str2 = str11; i = i4; vt = new VT(nHc.d, String.valueOf(nHc.c), nHc.b, nHc.a); } else { i = i4; str2 = str11; str3 = str12; en2 = en; vt = null; } i2 = i3; str = str10; vu = new VU(str17, str18, str19, str20, bigDecimal, str21, vt, String.valueOf(qtg.h), qtg.i, qtg.k, qtg.f9247o, qtg.t, qtg.f, qtg.l, qtg.q, qtg.s, qtg.r, qtg.g, (List) C16157lj.c(new Object[]{qtg.m, new InterfaceC1244Ytw(bn2) { // from class: o.BW private BN c; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return BN.c((YYM) obj2); } { this.c = bn2; } }}, -1846295624, 1846295631, (int) System.currentTimeMillis()), (List) C16157lj.c(new Object[]{qtg.p, new InterfaceC1244Ytw(bn2) { // from class: o.BW private BN c; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return BN.c((YYM) obj2); } { this.c = bn2; } }}, -1846295624, 1846295631, (int) System.currentTimeMillis()), BN.a(qtg.n, new InterfaceC1244Ytw(bn2) { // from class: o.BW private BN c; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return BN.c((YYM) obj2); } { this.c = bn2; } })); } else { str = str10; i = i4; str2 = str11; str3 = str12; en2 = en; str4 = str13; str5 = valueOf; str6 = str14; str7 = str15; str8 = str16; i2 = i3; vu = null; } if (nZv.t != null) { Ucq ucq = nZv.t; vw = new VW(ucq.ac, ucq.T, ucq.v, ucq.y, ucq.a, ucq.c, ucq.f, ucq.i, ucq.d, ucq.b, ucq.F, ucq.af, ucq.D, ucq.aa, ucq.Y, ucq.Z, ucq.w, ucq.M, ucq.K, ucq.Q, ucq.O, ucq.P, ucq.p, ucq.W, ucq.G, ucq.E, ucq.H, ucq.I, ucq.N, ucq.j, ucq.g, ucq.h, ucq.n, ucq.f8392o, ucq.l, ucq.m, ucq.k, ucq.t, ucq.q, ucq.s, ucq.X, ucq.R, ucq.V, ucq.S, ucq.J, ucq.L, ucq.x, ucq.u, ucq.A, ucq.C, ucq.r, ucq.ab, (List) C16157lj.c(new Object[]{ucq.B, new InterfaceC1244Ytw(bn2) { // from class: o.BT private BN d; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return BN.a((C16890sBt) obj2); } { this.d = bn2; } }}, -1846295624, 1846295631, (int) System.currentTimeMillis()), (List) C16157lj.c(new Object[]{ucq.z, new InterfaceC1244Ytw(bn2) { // from class: o.BT private BN d; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return BN.a((C16890sBt) obj2); } { this.d = bn2; } }}, -1846295624, 1846295631, (int) System.currentTimeMillis()), BN.a(ucq.U, new InterfaceC1244Ytw(bn2) { // from class: o.BT private BN d; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return BN.a((C16890sBt) obj2); } { this.d = bn2; } })); } else { vw = null; } String str22 = nZv.i; String str23 = nZv.f; if (nZv.j == null) { str9 = ""; } else { str9 = nZv.j.b; } str9.hashCode(); switch (str9.hashCode()) { case -562462675: if (str9.equals("BULKXFER")) { c = 0; break; } c = 65535; break; case -68698650: if (str9.equals("PAYMENT")) { c = 1; break; } c = 65535; break; case 80008848: if (str9.equals("TOPUP")) { c = 2; break; } c = 65535; break; case 2063509483: if (str9.equals("TRANSFER")) { c = 3; break; } c = 65535; break; default: c = 65535; break; } if (c == 0) { if (!bn2.i) { bn2.i = true; z = true; } z = false; } else if (c == 1) { if (!bn2.a) { bn2.a = true; z = true; } z = false; } else if (c != 2) { if (c == 3 && !bn2.j) { bn2.j = true; z = true; } z = false; } else { if (!bn2.h) { bn2.h = true; z = true; } z = false; } return new VO(i2, str, i, str2, en2, str3, str4, str5, str6, str7, str8, vu, vw, str22, str23, z); } { this.b = bn; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()))); } /* synthetic */ LWm(C2799alS c2799alS, byte b) { this(c2799alS); } } /* renamed from: o.alS$RVV */ /* loaded from: classes3.dex */ public final class RVV extends wRi.LWm> { private C2799alS c; private RVV(C2799alS c2799alS) { this.c = c2799alS; } /* JADX INFO: Access modifiers changed from: private */ @Override // o.wRi.LWm, o.InterfaceC13174fSv /* renamed from: b, reason: merged with bridge method [inline-methods] */ public void onNext(List list) { this.c.h.a(new SimpleDateFormat("yyyy-MM-dd").format(this.c.e.getDate()), list); SVc sVc = this.c.h; sVc.d(sVc.i, new LWm(this.c, (byte) 0)); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { if (!this.c.i(th) && this.c.f != 0) { onNext(new ArrayList()); return; } C2799alS.j(this.c); C2799alS c2799alS = this.c; C2802alV c2802alV = new C2802alV(); if (c2799alS.f != 0) { c2802alV.e(c2799alS.f); } } public /* synthetic */ RVV(C2799alS c2799alS, byte b) { this(c2799alS); } } @Override // o.ZI public final void w_() { super.w_(); c(); } /* renamed from: o.alS$Sts */ /* loaded from: classes3.dex */ public final class Sts extends wRi.LWm> { private C2799alS a; private VO e; /* JADX WARN: Multi-variable type inference failed */ @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { zEQ d; final String str; YKU yku = new YKU((List) obj); YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel(this) { // from class: o.alX private C2799alS.Sts e; @Override // o.Jel public final boolean e(Object obj2) { boolean equalsIgnoreCase; equalsIgnoreCase = this.e.e.f8412o.b.equalsIgnoreCase(((LEE) obj2).c); return equalsIgnoreCase; } { this.e = this; } })); if (yku2.b.hasNext()) { d = zEQ.a(yku2.b.next()); } else { d = zEQ.d(); } if (d.d != 0) { T t = d.d; if (t != 0) { str = ((LEE) t).a; } else { throw new NoSuchElementException("No value present"); } } else { str = ""; } C2799alS c2799alS = this.a; ZI.IeS ieS = new ZI.IeS(this, str) { // from class: o.alT private String a; private C2799alS.Sts c; @Override // o.ZI.IeS public final void e(Object obj2) { C2799alS.Sts.e(this.c, this.a, (InterfaceC6639cYq.LWm) obj2); } { this.c = this; this.a = str; } }; if (c2799alS.f != 0) { ieS.e(c2799alS.f); } C2799alS.i(this.a); } public Sts(C2799alS c2799alS, VO vo) { this.a = c2799alS; this.e = vo; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C16903sI unused = this.a.j; guQ.a(C16903sI.b(th), new Object[0]); } /* JADX WARN: Removed duplicated region for block: B:21:0x0137 */ /* JADX WARN: Removed duplicated region for block: B:28:0x0147 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static /* synthetic */ void e(o.C2799alS.Sts r11, java.lang.String r12, o.InterfaceC6639cYq.LWm r13) { /* Method dump skipped, instructions count: 351 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.C2799alS.Sts.e(o.alS$Sts, java.lang.String, o.cYq$LWm):void"); } } /* renamed from: o.alS$IeS */ /* loaded from: classes3.dex */ public class IeS extends wRi.LWm> { private VO a; private C2799alS c; @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { final List list = (List) obj; C2799alS c2799alS = this.c; ZI.IeS ieS = new ZI.IeS(this, list) { // from class: o.alW private C2799alS.IeS b; private List e; @Override // o.ZI.IeS public final void e(Object obj2) { C2799alS.IeS.e(this.b, this.e, (InterfaceC6639cYq.LWm) obj2); } { this.b = this; this.e = list; } }; if (c2799alS.f != 0) { ieS.e(c2799alS.f); } C2799alS.o(this.c); } public IeS(C2799alS c2799alS, VO vo) { this.c = c2799alS; this.a = vo; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C16903sI unused = this.c.j; guQ.a(C16903sI.b(th), new Object[0]); } public static /* synthetic */ void e(IeS ieS, List list, InterfaceC6639cYq.LWm lWm) { BN bn = ieS.c.g; VO vo = ieS.a; boolean T = ieS.c.d.b.T(); FR a = FR.a(); a.g = vo.l.g; a.f = vo.f8412o.f; a.n = vo.g; a.h = bn.b.b("dd MMM yyyy", OffsetDateTime.parse(vo.n)); a.d = C6583cXR.VS_(null, C15715hv.IeS.bankicon_scb).toString(); a.b = vo.l.b; a.a = (String) C16157lj.c(new Object[]{vo.f8412o.d, Boolean.valueOf(T)}, 1230925834, -1230925834, (int) System.currentTimeMillis()); ArrayList arrayList = new ArrayList(); arrayList.addAll(bn.a(vo.f8412o.i, vo.l.l, list, T)); arrayList.addAll(bn.a(vo.f8412o.l, vo.l.v, list, T)); arrayList.addAll(bn.a(vo.f8412o.j, vo.l.h, list, T)); a.i = arrayList; a.j = (String) C6583cXR.c(new Object[]{Double.valueOf(Double.valueOf(vo.l.d).doubleValue())}, -150997759, 150997764, (int) System.currentTimeMillis()); a.l = (String) C6583cXR.c(new Object[]{Double.valueOf(vo.l.C.doubleValue())}, -150997759, 150997764, (int) System.currentTimeMillis()); a.k = (String) C6583cXR.c(new Object[]{Double.valueOf(Double.valueOf(vo.l.D).doubleValue())}, -150997759, 150997764, (int) System.currentTimeMillis()); a.f8161o = vo.l.B; a.c = vo.f8412o.d; lWm.e(a); } } /* JADX WARN: Removed duplicated region for block: B:11:0x00c2 */ /* JADX WARN: Removed duplicated region for block: B:76:0x01ec */ /* JADX WARN: Removed duplicated region for block: B:83:0x01fc */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static /* synthetic */ void d(o.C2799alS r11, o.VO r12, o.InterfaceC6639cYq.LWm r13) { /* Method dump skipped, instructions count: 529 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.C2799alS.d(o.alS, o.VO, o.cYq$LWm):void"); } static /* synthetic */ void b(C2799alS c2799alS) { if (c2799alS.f != 0) { c2799alS.f.aq_(); } } /* JADX WARN: Removed duplicated region for block: B:11:0x00c2 */ /* JADX WARN: Removed duplicated region for block: B:48:0x015a */ /* JADX WARN: Removed duplicated region for block: B:55:0x016a */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static /* synthetic */ void e(o.C2799alS r8, o.VO r9, o.InterfaceC6639cYq.LWm r10) { /* Method dump skipped, instructions count: 386 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: o.C2799alS.e(o.alS, o.VO, o.cYq$LWm):void"); } static /* synthetic */ void f(C2799alS c2799alS) { if (c2799alS.f != 0) { c2799alS.f.aq_(); } } static /* synthetic */ void j(C2799alS c2799alS) { if (c2799alS.f != 0) { c2799alS.f.aq_(); } } static /* synthetic */ void i(C2799alS c2799alS) { if (c2799alS.f != 0) { c2799alS.f.ar_(); } } static /* synthetic */ void o(C2799alS c2799alS) { if (c2799alS.f != 0) { c2799alS.f.ar_(); } } public final void c() { SVc sVc = this.h; if (!sVc.h.isDisposed()) { sVc.h.dispose(); } tLY tly = this.a; if (!tly.h.isDisposed()) { tly.h.dispose(); } REU reu = this.c; if (reu.h.isDisposed()) { return; } reu.h.dispose(); } }