package o; import android.net.Uri; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.List; import o.BuD; import o.C0690Mh; import o.C14840gW; import o.ZI; import o.wRi; import org.simpleframework.xml.strategy.Name; /* renamed from: o.gW, reason: case insensitive filesystem */ /* loaded from: classes3.dex */ public final class C14840gW extends C14841gX { private final mSw b; public final C14832gT c; private final C14844gY d; final C15964jx e; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ @InterfaceC13391fZD public C14840gW(C16903sI c16903sI, C14832gT c14832gT, mSw msw, C14844gY c14844gY, C15964jx c15964jx) { super(c16903sI, msw); C14957gcv.e(c16903sI, ""); C14957gcv.e(c14832gT, ""); C14957gcv.e(msw, ""); C14957gcv.e(c14844gY, ""); C14957gcv.e(c15964jx, ""); this.c = c14832gT; this.b = msw; this.d = c14844gY; this.e = c15964jx; } /* renamed from: o.gW$LWm */ /* loaded from: classes3.dex */ static final class LWm extends AbstractC14961gcz implements InterfaceC14890gbN { private HashMap b; private C14840gW c; @Override // o.InterfaceC14890gbN public final /* synthetic */ C14866gag invoke() { C14840gW.c(this.c); C14840gW c14840gW = this.c; final HashMap hashMap = this.b; ZI.IeS ieS = new ZI.IeS(hashMap) { // from class: o.gZ private HashMap e; @Override // o.ZI.IeS public final void e(Object obj) { C14840gW.LWm.a(this.e, (cYJ) obj); } { this.e = hashMap; } }; if (c14840gW.f != 0) { ieS.e(c14840gW.f); } return C14866gag.c; } public static /* synthetic */ void a(HashMap hashMap, cYJ cyj) { C14957gcv.e(hashMap, ""); C14957gcv.c(cyj, ""); cyj.b(hashMap); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ LWm(C14840gW c14840gW, HashMap hashMap) { super(0); this.c = c14840gW; this.b = hashMap; } } /* renamed from: o.gW$RVV */ /* loaded from: classes3.dex */ static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR { private C14840gW b; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Throwable th) { Throwable th2 = th; C14957gcv.e(th2, ""); C14840gW.c(this.b, th2, C0690Mh.IeS.NAVIGATE_BACK); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ RVV(C14840gW c14840gW) { super(1); this.b = c14840gW; } } /* renamed from: o.gW$HBt */ /* loaded from: classes3.dex */ public final class HBt extends wRi.LWm { private C14840gW d; public HBt(C14840gW c14840gW) { this.d = c14840gW; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { Object obj2; nOO noo = (nOO) obj; C14957gcv.e(noo, ""); List list = this.d.b.b.p().a; C14844gY unused = this.d.d; List list2 = noo.d; C14957gcv.c(list, ""); C14957gcv.e(list2, ""); C14957gcv.e(list, ""); List list3 = list2; C14957gcv.e(list3, ""); ArrayList arrayList = new ArrayList(list3 instanceof Collection ? list3.size() : 10); Iterator it = list3.iterator(); while (true) { if (!it.hasNext()) { break; } C5762bzF c5762bzF = (C5762bzF) it.next(); Iterator it2 = list.iterator(); while (true) { if (!it2.hasNext()) { obj2 = null; break; } else { obj2 = it2.next(); if (C14957gcv.b((Object) ((JNE) obj2).a, (Object) c5762bzF.d)) { break; } } } JNE jne = (JNE) obj2; if (jne != null) { r4 = jne.e; } C14957gcv.e(c5762bzF, ""); HashMap hashMap = new HashMap(); HashMap hashMap2 = hashMap; hashMap2.put("accountName", c5762bzF.b); hashMap2.put("accountNo", c5762bzF.d); hashMap2.put("productType", c5762bzF.p.d()); hashMap2.put("nickName", r4); hashMap2.put("availableBalance", c5762bzF.g); hashMap2.put("accountStatus", c5762bzF.a); arrayList.add(hashMap); } ArrayList arrayList2 = arrayList; C14832gT c14832gT = this.d.c; C14957gcv.e(arrayList2, ""); c14832gT.d = arrayList2; final HashMap d = this.d.c.d(); if (gdZ.d((CharSequence) this.d.c.e, (CharSequence) "scblvl://loyalty/dstatement_privateidp_landing", false)) { Uri parse = Uri.parse(this.d.c.e); String valueOf = String.valueOf(parse != null ? parse.getQueryParameter(Name.MARK) : null); C14840gW c14840gW = this.d; C14957gcv.e(valueOf, ""); HashMap d2 = c14840gW.c.d(); C15964jx c15964jx = c14840gW.e; LWm lWm = new LWm(c14840gW, d2); RVV rvv = new RVV(c14840gW); C14957gcv.e(valueOf, ""); C14957gcv.e(lWm, ""); C14957gcv.e(rvv, ""); c15964jx.b.d(lWm, rvv, new BuD.LWm(valueOf), new fSC()); return; } C14840gW.c(this.d); C14840gW c14840gW2 = this.d; ZI.IeS ieS = new ZI.IeS(d) { // from class: o.hb private HashMap a; @Override // o.ZI.IeS public final void e(Object obj3) { C14840gW.HBt.c(this.a, (cYJ) obj3); } { this.a = d; } }; if (c14840gW2.f != 0) { ieS.e(c14840gW2.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { C14957gcv.e(th, ""); C14840gW.c(this.d, th, C0690Mh.IeS.NAVIGATE_BACK); } public static /* synthetic */ void c(HashMap hashMap, cYJ cyj) { C14957gcv.e(hashMap, ""); C14957gcv.c(cyj, ""); cyj.b(hashMap); } } public static final /* synthetic */ void c(C14840gW c14840gW) { if (c14840gW.f != 0) { c14840gW.f.ar_(); } } public static final /* synthetic */ void c(C14840gW c14840gW, Throwable th, C0690Mh.IeS ieS) { if (c14840gW.b(th)) { c14840gW.d(c14840gW.j.d(th, ieS)); } } }