package o; import com.scb.phone.data.entity.transfer.SingleDataEntity; import java.util.ArrayList; import java.util.Collection; import java.util.Comparator; import java.util.List; import java.util.Objects; import o.C16698qSw; import o.LYg; import o.PRA; import org.jnbis.internal.NistHelper; import org.threeten.bp.OffsetDateTime; /* renamed from: o.SKt, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C0944SKt implements icp { final WUu a; final InterfaceC3521azC b; final OgT c; final DqX d; final Xvl e; private final Xky f; private final UpS g; private final sMd h; private final fWN i; private final String j; @InterfaceC13391fZD public C0944SKt(UpS upS, WUu wUu, Xky xky, DqX dqX, Xvl xvl, fWN fwn, sMd smd, InterfaceC3521azC interfaceC3521azC, OgT ogT, String str) { this.g = upS; this.a = wUu; this.f = xky; this.d = dqX; this.e = xvl; this.i = fwn; this.h = smd; this.c = ogT; this.j = str; this.b = interfaceC3521azC; } @Override // o.icp public final AbstractC13163fSk d() { return a(false); } @Override // o.icp public final AbstractC13163fSk a(boolean z) { List arrayList; if (z && this.a.b != null) { return AbstractC13163fSk.just(this.d.c(this.a.b)); } this.a.b = null; C7968cyO p = this.f.p(); if (p == null) { arrayList = new ArrayList(); } else { arrayList = p.a; } if (!arrayList.isEmpty()) { UpS upS = this.g; AbstractC13163fSk doOnError = upS.b.getSummary(h()).doOnError(new fSQ(this) { // from class: o.pAo private C0944SKt b; @Override // o.fSQ public final void c(Object obj) { this.b.a.b = null; } { this.b = this; } }); final WUu wUu = this.a; Objects.requireNonNull(wUu); return doOnError.doOnNext(new fSQ(wUu) { // from class: o.TLq private WUu c; @Override // o.fSQ public final void c(Object obj) { this.c.b = (BYd) obj; } { this.c = wUu; } }).map(new fSS(this) { // from class: o.lIe private C0944SKt b; @Override // o.fSS public final Object a(Object obj) { C0944SKt c0944SKt = this.b; nOO c = c0944SKt.d.c((BYd) obj); if (c.b != null && c0944SKt.b.d(c.b.a)) { c.b = null; } return c; } { this.b = this; } }); } nOO noo = new nOO((byte) 0); noo.c = Double.valueOf(0.0d); ArrayList arrayList2 = new ArrayList(); C14957gcv.e(arrayList2, ""); noo.d = arrayList2; return AbstractC13163fSk.just(noo); } @Override // o.icp public final AbstractC13163fSk b(LRC lrc) { final pFE pfe = new pFE(); return this.g.b.getCasaDetails(lrc).map(new fSS(pfe) { // from class: o.WBc private pFE b; @Override // o.fSS public final Object a(Object obj) { return pFE.b((FYO) obj); } { this.b = pfe; } }); } @Override // o.icp public final AbstractC13163fSk b(C10500eG c10500eG) { final kXo kxo = new kXo(); return this.g.b.getFixedDetails(c10500eG).map(new fSS(kxo) { // from class: o.JkQ private kXo d; @Override // o.fSS public final Object a(Object obj) { final kXo kxo2 = this.d; Oyf oyf = (Oyf) obj; YKU yku = new YKU(oyf.g); List list = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(kxo2) { // from class: o.MIZ private kXo e; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return kXo.d((HoT) obj2); } { this.e = kxo2; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); GJK gjk = new GJK(); gjk.b = oyf.d; gjk.d = oyf.a; gjk.a = oyf.j; gjk.h = oyf.i.c; gjk.c = list; gjk.n = oyf.b; gjk.f9173o = oyf.c; gjk.k = oyf.e; return gjk; } { this.d = kxo; } }); } @Override // o.icp public final AbstractC13163fSk c(C10500eG c10500eG) { AbstractC13163fSk fixedDetailV2 = this.g.b.getFixedDetailV2(c10500eG); final sMd smd = this.h; Objects.requireNonNull(smd); return fixedDetailV2.map(new fSS(smd) { // from class: o.lHp private sMd c; @Override // o.fSS public final Object a(Object obj) { zIf zif; List list; sMd smd2 = this.c; ptN ptn = (ptN) obj; C1299ZyL c1299ZyL = new C1299ZyL(); GtV gtV = ptn.h; if (gtV != null) { String str = gtV.e; String str2 = gtV.a; LYg.LWm lWm = gtV.b; zif = new zIf(str, str2, lWm != null ? new C16698qSw.HBt(lWm.a, lWm.d) : null, gtV.c, gtV.d); } else { zif = null; } c1299ZyL.i = zif; c1299ZyL.f = (OffsetDateTime) ZTC.e(new Object[]{ptn.f, null}, 267499366, -267499366, (int) System.currentTimeMillis()); c1299ZyL.b = ptn.d; c1299ZyL.d = ptn.a; c1299ZyL.a = ptn.j; c1299ZyL.h = ptn.i.c; List list2 = ptn.g; if (list2 == null) { list = new ArrayList<>(); } else { YKU yku = new YKU(list2); YKU yku2 = new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(smd2) { // from class: o.gIu private sMd e; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return sMd.c((HoT) obj2); } { this.e = smd2; } })); list = (List) new YKU(yku2.a, new C17745zRk(yku2.b, new Comparator() { // from class: o.PQk @Override // java.util.Comparator public final int compare(Object obj2, Object obj3) { return sMd.e((QFJ) obj2, (QFJ) obj3); } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); } c1299ZyL.c = list; c1299ZyL.n = ptn.b; c1299ZyL.f9173o = ptn.c; c1299ZyL.k = ptn.e; return c1299ZyL; } { this.c = smd; } }); } @Override // o.icp public final AbstractC13163fSk d(C10500eG c10500eG) { final C16496opi c16496opi = new C16496opi(); return this.g.b.getLongtermDetails(c10500eG).map(new fSS(c16496opi) { // from class: o.wxB private C16496opi b; @Override // o.fSS public final Object a(Object obj) { C16496opi c16496opi2 = this.b; C3087aqr c3087aqr = (C3087aqr) obj; YKU yku = new YKU(c3087aqr.h); List list = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(c16496opi2) { // from class: o.LrY private C16496opi c; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return C16496opi.b((C16193mBX) obj2); } { this.c = c16496opi2; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); C17567xqK c17567xqK = new C17567xqK(); c17567xqK.a = c3087aqr.e; c17567xqK.d = c3087aqr.c; c17567xqK.b = c3087aqr.b; c17567xqK.h = c3087aqr.g; c17567xqK.i = c3087aqr.j.c; c17567xqK.c = c3087aqr.f; c17567xqK.g = list; c17567xqK.f9173o = c3087aqr.d; c17567xqK.n = c3087aqr.a; c17567xqK.k = c3087aqr.i; return c17567xqK; } { this.b = c16496opi; } }); } @Override // o.icp public final AbstractC13163fSk c(C11731ekq c11731ekq, boolean z) { if (z) { AbstractC13163fSk map = this.g.b.getCasaTxnListV3(c11731ekq).map(new fSS() { // from class: o.Rsh @Override // o.fSS public final Object a(Object obj) { return (C17224uvf) ((SingleDataEntity) obj).getData(); } }); final fWN fwn = this.i; Objects.requireNonNull(fwn); return map.map(new fSS(fwn) { // from class: o.PeX private fWN a; @Override // o.fSS public final Object a(Object obj) { return this.a.d((C17224uvf) obj); } { this.a = fwn; } }); } AbstractC13163fSk map2 = this.g.b.getCasaTxnList(c11731ekq).map(new fSS() { // from class: o.Rsh @Override // o.fSS public final Object a(Object obj) { return (C17224uvf) ((SingleDataEntity) obj).getData(); } }); final fWN fwn2 = this.i; Objects.requireNonNull(fwn2); return map2.map(new fSS(fwn2) { // from class: o.PeX private fWN a; @Override // o.fSS public final Object a(Object obj) { return this.a.d((C17224uvf) obj); } { this.a = fwn2; } }); } @Override // o.icp public final AbstractC13163fSk b(vxH vxh) { AbstractC13163fSk annotation = this.g.b.setAnnotation(vxh); Xvl xvl = this.e; Objects.requireNonNull(xvl); return annotation.map(new wal(xvl)); } @Override // o.icp public final AbstractC13163fSk a(vxH vxh) { AbstractC13163fSk deleteAnnotation = this.g.b.deleteAnnotation(vxh); Xvl xvl = this.e; Objects.requireNonNull(xvl); return deleteAnnotation.map(new wal(xvl)); } @Override // o.icp public final AbstractC13163fSk c(vxH vxh) { AbstractC13163fSk updateAnnotation = this.g.b.updateAnnotation(vxh); Xvl xvl = this.e; Objects.requireNonNull(xvl); return updateAnnotation.map(new wal(xvl)); } @Override // o.icp public final AbstractC13163fSk> e(String str) { return b(str, false); } @Override // o.icp public final AbstractC13163fSk> c(String str) { return b(str, true); } private AbstractC13163fSk> b(final String str, boolean z) { List arrayList; final C7968cyO p = this.f.p(); if (p == null) { return AbstractC13163fSk.just(new ArrayList()); } C7968cyO p2 = this.f.p(); if (p2 == null) { arrayList = new ArrayList(); } else { arrayList = p2.a; } if (arrayList.isEmpty()) { return AbstractC13163fSk.just(new ArrayList()); } return a(!z).map(new fSS(this, str, p) { // from class: o.Cmz private C7968cyO b; private String c; private C0944SKt e; @Override // o.fSS public final Object a(Object obj) { final C0944SKt c0944SKt = this.e; final String str2 = this.c; final C7968cyO c7968cyO = this.b; YKU yku = new YKU(((nOO) obj).d); YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel(c0944SKt, str2) { // from class: o.Yes private C0944SKt a; private String d; @Override // o.Jel public final boolean e(Object obj2) { return C0944SKt.a(((C5762bzF) obj2).i, this.d); } { this.a = c0944SKt; this.d = str2; } })); return (List) new YKU(yku2.a, new wxK(yku2.b, new InterfaceC1244Ytw(c0944SKt, c7968cyO) { // from class: o.xOz private C0944SKt a; private C7968cyO b; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { C0944SKt c0944SKt2 = this.a; C7968cyO c7968cyO2 = this.b; Xvl xvl = c0944SKt2.e; return Xvl.a((C5762bzF) obj2, c7968cyO2); } { this.a = c0944SKt; this.b = c7968cyO; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); } { this.e = this; this.c = str; this.b = p; } }); } @Override // o.icp public final List a() { if (e() == null) { return new ArrayList(); } YKU yku = new YKU(e().d); return (List) new YKU(yku.a, new GEP(yku.b, new Jel(this) { // from class: o.zAN private C0944SKt c; @Override // o.Jel public final boolean e(Object obj) { return C0944SKt.a(((C5762bzF) obj).i, "PROMPTPAY_FUNCTION"); } { this.c = this; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); } @Override // o.icp public final nOO e() { if (this.a.b != null) { return this.d.c(this.a.b); } return null; } private GmJ h() { Iterable arrayList; GmJ b = GmJ.b(); C7968cyO p = this.f.p(); if (p == null) { arrayList = new ArrayList(); } else { arrayList = p.a; } YKU yku = new YKU(arrayList); b.c = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw() { // from class: o.YZI @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { C16906sKD c16906sKD = new C16906sKD(); c16906sKD.b = ((JNE) obj).a; return c16906sKD; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); b.b = 2; b.a = this.j; b.e = "false"; return b; } @Override // o.icp public final AbstractC13163fSk c() { return a(false).map(new fSS(this) { // from class: o.ZHc private C0944SKt c; @Override // o.fSS public final Object a(Object obj) { C0944SKt c0944SKt = this.c; nOO noo = (nOO) obj; YKU yku = new YKU(noo.d); List list = (List) new YKU(yku.a, new GEP(yku.b, new Jel(c0944SKt) { // from class: o.Pah private C0944SKt b; @Override // o.Jel public final boolean e(Object obj2) { return C0944SKt.a(((C5762bzF) obj2).i, "QUICK_PROMPT_PAY_FUNCTION"); } { this.b = c0944SKt; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); C14957gcv.e(list, ""); noo.d = list; return noo; } { this.c = this; } }); } @Override // o.icp public final AbstractC13163fSk b() { return a(false).map(new fSS(this) { // from class: o.pBH private C0944SKt e; @Override // o.fSS public final Object a(Object obj) { C0944SKt c0944SKt = this.e; nOO noo = (nOO) obj; YKU yku = new YKU(noo.d); List list = (List) new YKU(yku.a, new GEP(yku.b, new Jel(c0944SKt) { // from class: o.YJR private C0944SKt b; @Override // o.Jel public final boolean e(Object obj2) { return C0944SKt.a(((C5762bzF) obj2).i, "QUICK_BALANCE_FUNCTION"); } { this.b = c0944SKt; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); C14957gcv.e(list, ""); noo.d = list; return noo; } { this.e = this; } }); } @Override // o.icp public final AbstractC13163fSk a(C10500eG c10500eG) { final nry nryVar = new nry(); return this.g.b.getStatementPreRequest(c10500eG).map(new fSS() { // from class: o.Mie @Override // o.fSS public final Object a(Object obj) { return (Pyg) ((SingleDataEntity) obj).getData(); } }).map(new fSS(nryVar) { // from class: o.hma private nry a; @Override // o.fSS public final Object a(Object obj) { Pyg pyg = (Pyg) obj; return new C0961Siy(pyg.a, (OffsetDateTime) ZTC.e(new Object[]{pyg.d, null}, 267499366, -267499366, (int) System.currentTimeMillis()), ZTC.b(pyg.c, (OffsetDateTime) null)); } { this.a = nryVar; } }); } @Override // o.icp public final AbstractC13163fSk c(Oft oft) { final C16870rvE c16870rvE = new C16870rvE(); return this.g.b.exportDepositStatement(oft).map(new fSS(c16870rvE) { // from class: o.JNe private C16870rvE d; @Override // o.fSS public final Object a(Object obj) { return this.d.d((C16562pOe) obj); } { this.d = c16870rvE; } }); } @Override // o.icp public final AbstractC13175fSw c(sZJ szj) { UpS upS = this.g; return new C13372fYk(upS.b.getDepositProductInfo(szj.b, szj.e, this.j), new fSS(this) { // from class: o.nvQ private C0944SKt e; @Override // o.fSS public final Object a(Object obj) { C14851gaI c14851gaI; C14851gaI c14851gaI2; OgT ogT = this.e.c; OJB ojb = (OJB) ((SingleDataEntity) obj).getData(); C14957gcv.e(ojb, ""); List list = ojb.a; if (list != null) { List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (yej yejVar : list2) { arrayList.add(new C17602yEv(yejVar.h, yejVar.c, yejVar.a, yejVar.d, yejVar.e, yejVar.b)); } c14851gaI = arrayList; } else { c14851gaI = C14851gaI.c; } List list3 = ojb.d; if (list3 != null) { List list4 = list3; C14957gcv.e(list4, ""); ArrayList arrayList2 = new ArrayList(list4 instanceof Collection ? list4.size() : 10); for (Uzy uzy : list4) { int i = uzy.e; String str = uzy.b; int i2 = uzy.c; List list5 = uzy.d; C14957gcv.e(list5, ""); ArrayList arrayList3 = new ArrayList(list5 instanceof Collection ? list5.size() : 10); for (BMd bMd : list5) { int i3 = bMd.a; String str2 = bMd.e; String str3 = bMd.d; if (str3 == null) { str3 = ""; } arrayList3.add(new xCW(i3, str2, str3, bMd.c)); } arrayList2.add(new ioL(i, str, i2, arrayList3)); } c14851gaI2 = arrayList2; } else { c14851gaI2 = C14851gaI.c; } return new bVO(c14851gaI, c14851gaI2); } { this.e = this; } }); } /* JADX INFO: Access modifiers changed from: package-private */ /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */ public static boolean a(final List list, String str) { char c; zEQ d; ArrayList arrayList = new ArrayList(); str.hashCode(); switch (str.hashCode()) { case -2142190485: if (str.equals("E_DONATION_FUNCTION")) { c = 0; break; } c = 65535; break; case -1553529766: if (str.equals("DISPLAY_RECEIVE_CHEQUE")) { c = 1; break; } c = 65535; break; case -1372638569: if (str.equals("QRXBORDER_SOURCE")) { c = 2; break; } c = 65535; break; case -1082324814: if (str.equals("FAST_PAY_FUNCTION")) { c = 3; break; } c = 65535; break; case -645739720: if (str.equals("QUICK_PROMPT_PAY_FUNCTION")) { c = 4; break; } c = 65535; break; case -569877279: if (str.equals("DISPLAY_STOP_CHEQUE")) { c = 5; break; } c = 65535; break; case -562916618: if (str.equals("LOANPAYMENT")) { c = 6; break; } c = 65535; break; case -486974465: if (str.equals("BILLPAYMENT")) { c = 7; break; } c = 65535; break; case -389715879: if (str.equals("DEEJUNG_INSTALLMENT_DISABLED")) { c = '\b'; break; } c = 65535; break; case -342459164: if (str.equals("DISPLAY_ISSUE_CHEQUE")) { c = '\t'; break; } c = 65535; break; case -301649782: if (str.equals("PREPAID_CARD_REQUEST_SOURCE")) { c = '\n'; break; } c = 65535; break; case -249305132: if (str.equals("CLOSE_ACCOUNT_SOURCE")) { c = 11; break; } c = 65535; break; case 2044611: if (str.equals("BOND")) { c = '\f'; break; } c = 65535; break; case 41757316: if (str.equals("EXPORT_STATEMENT")) { c = '\r'; break; } c = 65535; break; case 80008848: if (str.equals("TOPUP")) { c = 14; break; } c = 65535; break; case 510594974: if (str.equals("REMITTANCE")) { c = 15; break; } c = 65535; break; case 632725409: if (str.equals("BSCANC_SOURCE_FUNCTION")) { c = 16; break; } c = 65535; break; case 739626964: if (str.equals("PREPAID_CARD_CASHOUT_TARGET")) { c = 17; break; } c = 65535; break; case 774159236: if (str.equals("DIRECT_DEBIT_SOURCE")) { c = 18; break; } c = 65535; break; case 775095465: if (str.equals("CARDLESS")) { c = 19; break; } c = 65535; break; case 787768575: if (str.equals("LEVELUP")) { c = 20; break; } c = 65535; break; case 796417234: if (str.equals("TRANSFER_AND_FIXED_TRANSFER")) { c = 21; break; } c = 65535; break; case 917921999: if (str.equals("DISPLAY_ORDER_CHEQUE")) { c = 22; break; } c = 65535; break; case 928665026: if (str.equals("DEEJUNG_INSTALLMENT")) { c = 23; break; } c = 65535; break; case 1051934572: if (str.equals("ETB_SET_ACCOUNT_DETAIL_MAIN")) { c = 24; break; } c = 65535; break; case 1251595736: if (str.equals("MERCHANT_APP_ACCOUNT")) { c = 25; break; } c = 65535; break; case 1280945827: if (str.equals("DEBIT_CARD")) { c = 26; break; } c = 65535; break; case 1528149845: if (str.equals("DEEJUNG_TRANSFER_FUNCTION")) { c = 27; break; } c = 65535; break; case 1757892883: if (str.equals("PROMPTPAY_FUNCTION")) { c = NistHelper.SEP_FS; break; } c = 65535; break; case 1764546093: if (str.equals("QUICK_BALANCE_FUNCTION")) { c = 29; break; } c = 65535; break; case 1776876814: if (str.equals("ETB_SET_ACCOUNT_DETAIL_SOURCE")) { c = 30; break; } c = 65535; break; case 2063509483: if (str.equals("TRANSFER")) { c = 31; break; } c = 65535; break; default: c = 65535; break; } switch (c) { case 0: arrayList.add("EDONATION_SOURCE"); break; case 1: arrayList.add("DISPLAY_RECEIVE_CHEQUE"); break; case 2: arrayList.add("QRXBORDER_SOURCE"); break; case 3: arrayList.add("FASTPAY_SOURCE"); break; case 4: arrayList.add("QUICK_PROMPTPAY"); break; case 5: arrayList.add("DISPLAY_STOP_CHEQUE"); break; case 6: arrayList.add("LOANPAY_SOURCE"); break; case 7: arrayList.add("BILLPAY_SOURCE"); break; case '\b': arrayList.add("DEEJUNG_INSTALLMENT_DISABLED"); break; case '\t': arrayList.add("DISPLAY_ISSUE_CHEQUE"); break; case '\n': arrayList.add("PREPAID_CARD_REQUEST_SOURCE"); break; case 11: arrayList.add("CLOSE_ACCOUNT_SOURCE"); break; case '\f': arrayList.add("BOND_SOURCE"); break; case '\r': arrayList.add("EXPORT_STATEMENT"); break; case 14: arrayList.add("TOPUP_SOURCE"); break; case 15: arrayList.add("REMITTANCE_SOURCE"); break; case 16: arrayList.add("BSCANC_SOURCE"); break; case 17: arrayList.add("PREPAID_CARD_CASHOUT_TARGET"); break; case 18: arrayList.add("DIRECT_DEBIT_SOURCE"); break; case 19: arrayList.add("CARDLESS_ATM_SOURCE"); break; case 20: arrayList.add("LEVELUP_LOAN_SOURCE"); break; case 21: arrayList.add("TRANSFER_SOURCE"); arrayList.add("FIXED_TRANSFER_SOURCE"); break; case 22: arrayList.add("DISPLAY_ORDER_CHEQUE"); break; case 23: arrayList.add("DEEJUNG_INSTALLMENT"); break; case 24: arrayList.add("ETB_OPENING_ACCOUNT_MAIN"); break; case 25: arrayList.add("MERCHANT_APP_ACCOUNT"); break; case 26: arrayList.add("DEBIT_CARD_REQUEST_SOURCE"); break; case 27: arrayList.add("DEEJUNG_TRANSFER_TARGET"); break; case 28: arrayList.add("REGISTER_PROMPTPAY"); break; case 29: arrayList.add("QUICK_BALANCE"); break; case 30: arrayList.add("ETB_OPENING_ACCOUNT_SOURCE"); break; case 31: arrayList.add("TRANSFER_SOURCE"); break; default: arrayList.add(""); break; } if (list == null) { return false; } YKU yku = new YKU(arrayList); YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel(list) { // from class: o.dWo private List b; @Override // o.Jel public final boolean e(Object obj) { return this.b.indexOf((String) obj) >= 0; } { this.b = list; } })); if (yku2.b.hasNext()) { d = zEQ.a(yku2.b.next()); } else { d = zEQ.d(); } return d.d != 0; } @Override // o.icp, o.QpH public final void f() { this.a.b = null; } }