what-the-bank/sources/o/C7525cpv.java

999 lines
33 KiB
Java

package o;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import o.InterfaceC9554dlt;
import o.Jdn;
import o.PRA;
import o.ZI;
/* renamed from: o.cpv, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C7525cpv extends ZI<InterfaceC9554dlt.HBt> implements InterfaceC9554dlt.RVV {
final C17741zQ a;
C1049Un b;
final C17747zT c;
C1046Ul d;
C1054Up e;
Map<String, Jdn.LWm> g;
Map<String, List<C1062Uu>> h;
private final C16441oQ i;
private final aAL k;
private final Jdn m;
private int n;
@Override // o.InterfaceC9554dlt.RVV
public final /* synthetic */ void d(InterfaceC9554dlt.HBt hBt) {
super.e((C7525cpv) hBt);
}
@InterfaceC13391fZD
public C7525cpv(C16903sI c16903sI, Jdn jdn, C16441oQ c16441oQ, C17747zT c17747zT, C17741zQ c17741zQ, aAL aal) {
super(c16903sI);
this.m = jdn;
this.i = c16441oQ;
this.c = c17747zT;
this.a = c17741zQ;
this.k = aal;
this.g = new HashMap();
this.h = new HashMap();
}
@Override // o.ZI
public final void w_() {
super.w_();
Jdn jdn = this.m;
if (jdn.h.isDisposed()) {
return;
}
jdn.h.dispose();
}
@Override // o.InterfaceC9554dlt.RVV
public final void a(String str) {
d(str, new C9244dg(str, null, 20, "0"));
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void b(final List<C1049Un> list) {
final C9191df c9191df = new C9191df(this.b.i, this.b.k);
Jdn jdn = this.m;
jdn.d(jdn.b.d(c9191df).map(new fSS(c9191df) { // from class: o.qiZ
private C9191df c;
@Override // o.fSS
public final Object a(Object obj) {
String str = this.c.e;
Jdn.LWm lWm = new Jdn.LWm();
lWm.e = str;
lWm.d = (C16765qzi) obj;
return lWm;
}
{
this.c = c9191df;
}
}).subscribeOn(jdn.f.d).onErrorReturn(new fSS(c9191df) { // from class: o.GAN
private C9191df d;
@Override // o.fSS
public final Object a(Object obj) {
String str = this.d.e;
Jdn.LWm lWm = new Jdn.LWm();
lWm.e = str;
lWm.a = (Throwable) obj;
return lWm;
}
{
this.d = c9191df;
}
}), new fSQ(this, list) { // from class: o.cqd
private List b;
private C7525cpv d;
@Override // o.fSQ
public final void c(Object obj) {
zEQ d;
final C7525cpv c7525cpv = this.d;
List list2 = this.b;
Jdn.LWm lWm = (Jdn.LWm) obj;
c7525cpv.g = (Map) YKU.c(lWm).a(PRA.d(new InterfaceC1244Ytw() { // from class: o.cpY
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
return ((Jdn.LWm) obj2).e;
}
}));
Map map = (Map) new YKU(list2).a(PRA.d(new InterfaceC1244Ytw() { // from class: o.cpW
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
return ((C1049Un) obj2).i;
}
}));
YKU yku = new YKU(list2);
YKU yku2 = new YKU(yku.a, new C17745zRk(yku.b, xNZ.a(new InterfaceC1244Ytw(list2, lWm) { // from class: o.cqa
private Jdn.LWm b;
private List c;
/* JADX WARN: Multi-variable type inference failed */
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
List list3 = this.c;
Jdn.LWm lWm2 = this.b;
YKU d2 = new YKU(list3).d();
YKU yku3 = new YKU(d2.a, new GEP(d2.b, new Jel(lWm2) { // from class: o.cpz
private Jdn.LWm a;
/* JADX WARN: Multi-variable type inference failed */
@Override // o.Jel
public final boolean e(Object obj3) {
return ((C1049Un) ((HzO) obj3).c).i.equalsIgnoreCase(this.a.e);
}
{
this.a = lWm2;
}
}));
YKU yku4 = new YKU(yku3.a, new wxK(yku3.b, new InterfaceC1244Ytw() { // from class: o.cpP
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj3) {
return Integer.valueOf(((HzO) obj3).b);
}
}));
T t = (yku4.b.hasNext() ? zEQ.a(yku4.b.next()) : zEQ.d()).d;
if (t != 0) {
return (Integer) t;
}
throw new NoSuchElementException("No value present");
}
{
this.c = list2;
this.b = lWm;
}
})));
final List list3 = (List) new YKU(yku2.a, new wxK(yku2.b, new InterfaceC1244Ytw(c7525cpv, map, lWm) { // from class: o.cpZ
private Map a;
private C7525cpv b;
private Jdn.LWm c;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
C7525cpv c7525cpv2 = this.b;
Map map2 = this.a;
return c7525cpv2.b((C1049Un) map2.get(((C1049Un) obj2).i), this.c);
}
{
this.b = c7525cpv;
this.a = map;
this.c = lWm;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
YKU c = YKU.c(lWm);
YKU yku3 = new YKU(c.a, new GEP(c.b, new Jel(c7525cpv) { // from class: o.cqc
private C7525cpv a;
@Override // o.Jel
public final boolean e(Object obj2) {
return ((Jdn.LWm) obj2).e.equalsIgnoreCase(this.a.b.i);
}
{
this.a = c7525cpv;
}
}));
if (yku3.b.hasNext()) {
d = zEQ.a(yku3.b.next());
} else {
d = zEQ.d();
}
Object obj2 = d.d;
if (obj2 == null) {
obj2 = null;
}
final Jdn.LWm lWm2 = (Jdn.LWm) obj2;
ZI.IeS ieS = new ZI.IeS(c7525cpv, list3, lWm2) { // from class: o.cqe
private C7525cpv b;
private List c;
private Jdn.LWm d;
@Override // o.ZI.IeS
public final void e(Object obj3) {
C7525cpv c7525cpv2 = this.b;
List<InterfaceC9554dlt.IeS> list4 = this.c;
Jdn.LWm lWm3 = this.d;
InterfaceC9554dlt.HBt hBt = (InterfaceC9554dlt.HBt) obj3;
hBt.c(list4);
hBt.a(c7525cpv2.b, lWm3);
}
{
this.b = c7525cpv;
this.c = list3;
this.d = lWm2;
}
};
if (c7525cpv.f != 0) {
ieS.e(c7525cpv.f);
}
}
{
this.d = this;
this.b = list;
}
}, new fSQ(this, list) { // from class: o.cpA
private C7525cpv c;
private List d;
@Override // o.fSQ
public final void c(Object obj) {
final C7525cpv c7525cpv = this.c;
List list2 = this.d;
final Throwable th = (Throwable) obj;
guQ.e(th);
YKU yku = new YKU(list2);
final List list3 = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(c7525cpv, th) { // from class: o.cqb
private Throwable b;
private C7525cpv d;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
C7525cpv c7525cpv2 = this.d;
Throwable th2 = this.b;
C1049Un c1049Un = (C1049Un) obj2;
String str = c1049Un.i;
Jdn.LWm lWm = new Jdn.LWm();
lWm.e = str;
lWm.a = th2;
return c7525cpv2.b(c1049Un, lWm);
}
{
this.d = c7525cpv;
this.b = th;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
ZI.IeS ieS = new ZI.IeS(c7525cpv, list3, th) { // from class: o.cqg
private C7525cpv c;
private Throwable d;
private List e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C7525cpv c7525cpv2 = this.c;
List<InterfaceC9554dlt.IeS> list4 = this.e;
Throwable th2 = this.d;
InterfaceC9554dlt.HBt hBt = (InterfaceC9554dlt.HBt) obj2;
hBt.c(list4);
C1049Un c1049Un = c7525cpv2.b;
String str = c1049Un.i;
Jdn.LWm lWm = new Jdn.LWm();
lWm.e = str;
lWm.a = th2;
hBt.a(c1049Un, lWm);
}
{
this.c = c7525cpv;
this.e = list3;
this.d = th;
}
};
if (c7525cpv.f != 0) {
ieS.e(c7525cpv.f);
}
}
{
this.c = this;
this.d = list;
}
});
}
@Override // o.InterfaceC9554dlt.RVV
public final void d(final C1049Un c1049Un, final int i) {
this.b = c1049Un;
ZI.IeS ieS = new ZI.IeS(this, c1049Un, i) { // from class: o.cpK
private int a;
private C7525cpv d;
private C1049Un e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7525cpv c7525cpv = this.d;
C1049Un c1049Un2 = this.e;
int i2 = this.a;
InterfaceC9554dlt.HBt hBt = (InterfaceC9554dlt.HBt) obj;
if (c1049Un2.d.contains("SHOW_TRAVEL_DETAILS")) {
hBt.f();
if (i2 == 0) {
hBt.b(c7525cpv.b);
return;
} else if (i2 == 1) {
hBt.c(c7525cpv.b);
return;
} else {
if (i2 == 2) {
hBt.a(c7525cpv.b);
return;
}
return;
}
}
String str = c1049Un2.i;
if (c7525cpv.h.get(str) != null) {
c7525cpv.h.get(str).clear();
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.cpG
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9554dlt.HBt) obj2).a();
}
};
if (c7525cpv.f != 0) {
ieS2.e(c7525cpv.f);
}
}
hBt.d(c7525cpv.c.c(c7525cpv.e.c, c7525cpv.b.h));
Jdn.LWm lWm = c7525cpv.g.get(c1049Un2.i);
if (lWm != null) {
hBt.a(c1049Un2, lWm);
}
}
{
this.d = this;
this.e = c1049Un;
this.a = i;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
@Override // o.InterfaceC9554dlt.RVV
public final boolean a(List<String> list) {
return list.contains("SHOW_TRAVEL_DETAILS");
}
@Override // o.InterfaceC9554dlt.RVV
public final void c() {
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.cpu
private C7525cpv c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7525cpv c7525cpv = this.c;
InterfaceC9554dlt.HBt hBt = (InterfaceC9554dlt.HBt) obj;
hBt.d(c7525cpv.c.c(c7525cpv.e.c, c7525cpv.b.h));
hBt.a(c7525cpv.b.f8398o);
}
{
this.c = this;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
b(this.b);
if (this.n == 0) {
String str = this.b.i;
d(str, new C9244dg(str, null, 20, "0"));
}
}
@Override // o.InterfaceC9554dlt.RVV
public final void e(final UE ue) {
ZI.IeS ieS = new ZI.IeS(this, ue) { // from class: o.cpH
private C7525cpv b;
private UE c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7525cpv c7525cpv = this.b;
((InterfaceC9554dlt.HBt) obj).b(c7525cpv.b, this.c);
}
{
this.b = this;
this.c = ue;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
private void d(final String str, C9244dg c9244dg) {
Jdn jdn = this.m;
jdn.d(jdn.b.c(c9244dg), new fSQ(this, str) { // from class: o.cqk
private C7525cpv a;
private String c;
@Override // o.fSQ
public final void c(Object obj) {
C7525cpv c7525cpv = this.a;
String str2 = this.c;
c7525cpv.d = c7525cpv.c.e((C15816ioh) obj);
List<C1062Uu> list = c7525cpv.h.get(str2);
List<C1062Uu> list2 = c7525cpv.d.a;
if (list2 != null && !list2.isEmpty()) {
list.addAll(list2);
c7525cpv.h.put(str2, list);
}
c7525cpv.d.a = list;
if (str2.equals(c7525cpv.b.i)) {
ZI.IeS ieS = new ZI.IeS(c7525cpv) { // from class: o.cpE
private C7525cpv c;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C7525cpv c7525cpv2 = this.c;
InterfaceC9554dlt.HBt hBt = (InterfaceC9554dlt.HBt) obj2;
hBt.c(c7525cpv2.d);
if (c7525cpv2.d.a == null || !c7525cpv2.d.a.isEmpty()) {
return;
}
hBt.d();
}
{
this.c = c7525cpv;
}
};
if (c7525cpv.f != 0) {
ieS.e(c7525cpv.f);
}
}
}
{
this.a = this;
this.c = str;
}
}, new fSQ(this) { // from class: o.cqi
private C7525cpv a;
@Override // o.fSQ
public final void c(Object obj) {
C7525cpv c7525cpv = this.a;
ZI.IeS ieS = new ZI.IeS() { // from class: o.cpO
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9554dlt.HBt) obj2).i();
}
};
if (c7525cpv.f != 0) {
ieS.e(c7525cpv.f);
}
}
{
this.a = this;
}
});
}
@Override // o.InterfaceC9554dlt.RVV
public final void b(C1049Un c1049Un) {
final boolean z;
final boolean equalsIgnoreCase = "ACTIVE".equalsIgnoreCase(c1049Un.f);
Iterator<String> it = c1049Un.d.iterator();
while (true) {
if (!it.hasNext()) {
z = false;
break;
} else if ("TOP_UP_TARGET".equalsIgnoreCase(it.next())) {
z = true;
break;
}
}
final boolean z2 = C6583cXR.c(c1049Un.f8398o).doubleValue() >= 100000.0d;
ZI.IeS ieS = new ZI.IeS(equalsIgnoreCase, z2, z) { // from class: o.cpM
private boolean c;
private boolean d;
private boolean e;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9554dlt.HBt) obj).c(this.d && !this.c && this.e);
}
{
this.d = equalsIgnoreCase;
this.c = z2;
this.e = z;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
private List<idH> d() {
C7968cyO p = this.m.a.p();
if (p == null || p.g == null) {
return new ArrayList();
}
return p.g;
}
@Override // o.InterfaceC9554dlt.RVV
public final void d(List<C1049Un> list) {
if ("MCARD".equalsIgnoreCase(this.b.k)) {
b(list);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Multi-variable type inference failed */
public final InterfaceC9554dlt.IeS b(C1049Un c1049Un, Jdn.LWm lWm) {
C0537Iz c0537Iz = null;
Object[] objArr = 0;
Object[] objArr2 = 0;
Object[] objArr3 = 0;
if (lWm == null) {
return new InterfaceC9554dlt.IeS(this, c1049Un, c0537Iz, objArr3 == true ? 1 : 0) { // from class: o.cpv.1
private Throwable a;
private C7525cpv b;
private C0537Iz d;
private C1049Un e;
{
this.b = this;
this.e = c1049Un;
this.d = c0537Iz;
this.a = r4;
}
@Override // o.InterfaceC9554dlt.IeS
public final boolean j() {
return "EXPIRED".equals(this.e.f);
}
@Override // o.InterfaceC9554dlt.IeS
public final String c() {
return this.e.g.length() >= 4 ? this.e.g.substring(0, 4) : "";
}
@Override // o.InterfaceC9554dlt.IeS
public final String e() {
return this.e.j;
}
@Override // o.InterfaceC9554dlt.IeS
public final String a() {
return this.e.g.length() >= 4 ? this.e.g.substring(this.e.g.length() - 4) : "";
}
@Override // o.InterfaceC9554dlt.IeS
public final String b() {
C0537Iz c0537Iz2 = this.d;
return c0537Iz2 == null ? "" : String.format("%s %s", c0537Iz2.h, this.e.n);
}
@Override // o.InterfaceC9554dlt.IeS
public final String f() {
return this.e.g.length() >= 6 ? this.e.g.substring(4, 6) : "";
}
@Override // o.InterfaceC9554dlt.IeS
public final boolean h() {
return this.a != null;
}
@Override // o.InterfaceC9554dlt.IeS
public final C0537Iz g() {
return this.d;
}
@Override // o.InterfaceC9554dlt.IeS
public final C1049Un d() {
return this.e;
}
};
}
if (lWm.d != null || lWm.a == null) {
return new InterfaceC9554dlt.IeS(this, c1049Un, C16441oQ.a(lWm.d), objArr == true ? 1 : 0) { // from class: o.cpv.1
private Throwable a;
private C7525cpv b;
private C0537Iz d;
private C1049Un e;
{
this.b = this;
this.e = c1049Un;
this.d = c0537Iz;
this.a = r4;
}
@Override // o.InterfaceC9554dlt.IeS
public final boolean j() {
return "EXPIRED".equals(this.e.f);
}
@Override // o.InterfaceC9554dlt.IeS
public final String c() {
return this.e.g.length() >= 4 ? this.e.g.substring(0, 4) : "";
}
@Override // o.InterfaceC9554dlt.IeS
public final String e() {
return this.e.j;
}
@Override // o.InterfaceC9554dlt.IeS
public final String a() {
return this.e.g.length() >= 4 ? this.e.g.substring(this.e.g.length() - 4) : "";
}
@Override // o.InterfaceC9554dlt.IeS
public final String b() {
C0537Iz c0537Iz2 = this.d;
return c0537Iz2 == null ? "" : String.format("%s %s", c0537Iz2.h, this.e.n);
}
@Override // o.InterfaceC9554dlt.IeS
public final String f() {
return this.e.g.length() >= 6 ? this.e.g.substring(4, 6) : "";
}
@Override // o.InterfaceC9554dlt.IeS
public final boolean h() {
return this.a != null;
}
@Override // o.InterfaceC9554dlt.IeS
public final C0537Iz g() {
return this.d;
}
@Override // o.InterfaceC9554dlt.IeS
public final C1049Un d() {
return this.e;
}
};
}
return new InterfaceC9554dlt.IeS(this, c1049Un, objArr2 == true ? 1 : 0, lWm.a) { // from class: o.cpv.1
private Throwable a;
private C7525cpv b;
private C0537Iz d;
private C1049Un e;
{
this.b = this;
this.e = c1049Un;
this.d = c0537Iz;
this.a = r4;
}
@Override // o.InterfaceC9554dlt.IeS
public final boolean j() {
return "EXPIRED".equals(this.e.f);
}
@Override // o.InterfaceC9554dlt.IeS
public final String c() {
return this.e.g.length() >= 4 ? this.e.g.substring(0, 4) : "";
}
@Override // o.InterfaceC9554dlt.IeS
public final String e() {
return this.e.j;
}
@Override // o.InterfaceC9554dlt.IeS
public final String a() {
return this.e.g.length() >= 4 ? this.e.g.substring(this.e.g.length() - 4) : "";
}
@Override // o.InterfaceC9554dlt.IeS
public final String b() {
C0537Iz c0537Iz2 = this.d;
return c0537Iz2 == null ? "" : String.format("%s %s", c0537Iz2.h, this.e.n);
}
@Override // o.InterfaceC9554dlt.IeS
public final String f() {
return this.e.g.length() >= 6 ? this.e.g.substring(4, 6) : "";
}
@Override // o.InterfaceC9554dlt.IeS
public final boolean h() {
return this.a != null;
}
@Override // o.InterfaceC9554dlt.IeS
public final C0537Iz g() {
return this.d;
}
@Override // o.InterfaceC9554dlt.IeS
public final C1049Un d() {
return this.e;
}
};
}
@Override // o.InterfaceC9554dlt.RVV
public final void a(boolean z, final boolean z2) {
if (this.f != 0) {
this.f.ar_();
}
if (z2) {
final boolean z3 = this.b.d.contains("CASH_OUT") && z;
ZI.IeS ieS = new ZI.IeS(z3) { // from class: o.cpI
private boolean a;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9554dlt.HBt) obj).b(this.a);
}
{
this.a = z3;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
ZI.IeS ieS2 = new ZI.IeS(z2) { // from class: o.cpJ
private boolean b;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9554dlt.HBt) obj).c(this.b);
}
{
this.b = z2;
}
};
if (this.f != 0) {
ieS2.e(this.f);
}
}
}
@Override // o.InterfaceC9554dlt.RVV
public final void c(C1042Ui c1042Ui) {
String str = this.b.i;
C9244dg c9244dg = new C9244dg(str, null, 20, String.valueOf(c1042Ui.e));
this.h.get(str).clear();
d(str, c9244dg);
}
@Override // o.InterfaceC9554dlt.RVV
public final void d(C1042Ui c1042Ui) {
if (c1042Ui == null) {
String str = this.b.i;
d(str, new C9244dg(str, this.d.c, 20, "0"));
} else {
String str2 = this.b.i;
d(str2, new C9244dg(str2, this.d.c, 20, String.valueOf(c1042Ui.e)));
}
}
@Override // o.InterfaceC9554dlt.RVV
public final void a(C1054Up c1054Up, C1049Un c1049Un, int i) {
this.e = c1054Up;
this.b = c1049Un;
this.n = i;
List<C1049Un> list = c1054Up.a;
YKU yku = new YKU(list);
final List list2 = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this) { // from class: o.cql
private C7525cpv c;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
return this.c.b((C1049Un) obj, (Jdn.LWm) null);
}
{
this.c = this;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
Iterator<C1049Un> it = list.iterator();
while (it.hasNext()) {
this.h.put(it.next().i, new ArrayList());
}
ZI.IeS ieS = new ZI.IeS(list2) { // from class: o.cpB
private List a;
@Override // o.ZI.IeS
public final void e(Object obj) {
List<InterfaceC9554dlt.IeS> list3 = this.a;
InterfaceC9554dlt.HBt hBt = (InterfaceC9554dlt.HBt) obj;
hBt.e();
hBt.c();
hBt.c(list3);
}
{
this.a = list2;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
if (c1049Un.d.contains("SHOW_TRAVEL_DETAILS")) {
if (!this.k.d().isEmpty()) {
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.cpC
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9554dlt.HBt) obj).b();
}
};
if (this.f != 0) {
ieS2.e(this.f);
}
}
ZI.IeS ieS3 = new ZI.IeS() { // from class: o.cpD
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9554dlt.HBt) obj).f();
}
};
if (this.f != 0) {
ieS3.e(this.f);
}
}
if ("MCARD".equalsIgnoreCase(this.b.k)) {
b(list);
}
}
@Override // o.InterfaceC9554dlt.RVV
public final void b() {
if (gjJ.b((CharSequence) this.b.c) || gjJ.b((CharSequence) this.b.i) || gjJ.b((CharSequence) this.b.g)) {
return;
}
if (this.b.d.contains("SHOW_TRAVEL_DETAILS")) {
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.cpL
private C7525cpv b;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9554dlt.HBt) obj).d(this.b.b);
}
{
this.b = this;
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
}
ZI.IeS ieS2 = new ZI.IeS(this) { // from class: o.cpX
private C7525cpv e;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9554dlt.HBt) obj).e(this.e.b);
}
{
this.e = this;
}
};
if (this.f != 0) {
ieS2.e(this.f);
}
}
@Override // o.InterfaceC9554dlt.RVV
public final void b(final int i) {
List list;
if (this.f != 0) {
this.f.y();
}
ZI.IeS ieS = new ZI.IeS() { // from class: o.cqf
@Override // o.ZI.IeS
public final void e(Object obj) {
InterfaceC9554dlt.HBt hBt = (InterfaceC9554dlt.HBt) obj;
hBt.c(false);
hBt.b(false);
}
};
if (this.f != 0) {
ieS.e(this.f);
}
String a = this.m.b.a();
List<idH> d = d();
if (d != null) {
YKU yku = new YKU(d);
list = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw() { // from class: o.cpU
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
return new C8979db(((idH) obj).a);
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
} else {
list = Collections.emptyList();
}
C6615cY c6615cY = new C6615cY(list, a);
Jdn jdn = this.m;
jdn.d(jdn.a(c6615cY, d()), new fSQ(this, i) { // from class: o.cpR
private C7525cpv a;
private int d;
@Override // o.fSQ
public final void c(Object obj) {
final C7525cpv c7525cpv = this.a;
int i2 = this.d;
List<C1049Un> list2 = c7525cpv.a.e((isg) obj).a;
YKU yku2 = new YKU(list2);
List list3 = (List) new YKU(yku2.a, new wxK(yku2.b, new InterfaceC1244Ytw(c7525cpv) { // from class: o.cpS
private C7525cpv d;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
return this.d.b((C1049Un) obj2, (Jdn.LWm) null);
}
{
this.d = c7525cpv;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8()));
c7525cpv.b = list2.get(i2);
ZI.IeS ieS2 = new ZI.IeS(c7525cpv, list3) { // from class: o.cpQ
private List d;
private C7525cpv e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C7525cpv c7525cpv2 = this.e;
List<InterfaceC9554dlt.IeS> list4 = this.d;
InterfaceC9554dlt.HBt hBt = (InterfaceC9554dlt.HBt) obj2;
hBt.g(c7525cpv2.b);
hBt.c(list4);
}
{
this.e = c7525cpv;
this.d = list3;
}
};
if (c7525cpv.f != 0) {
ieS2.e(c7525cpv.f);
}
if ("MCARD".equalsIgnoreCase(c7525cpv.b.k)) {
c7525cpv.b(list2);
}
}
{
this.a = this;
this.d = i;
}
}, new fSQ(this) { // from class: o.cpV
private C7525cpv b;
@Override // o.fSQ
public final void c(Object obj) {
C7525cpv c7525cpv = this.b;
Throwable th = (Throwable) obj;
if (c7525cpv.b(th)) {
c7525cpv.d(c7525cpv.j.e(th));
}
}
{
this.b = this;
}
});
}
}