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

465 lines
15 KiB
Java

package o;
import android.content.res.Resources;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import o.C0690Mh;
import o.C15715hv;
import o.C4287bVn;
import o.C7789cuu;
import o.InterfaceC9525dlQ;
import o.Tnv;
import o.ZI;
import o.wRi;
/* renamed from: o.cuu, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C7789cuu extends ZI<InterfaceC9525dlQ.LWm> {
public List<UM> a;
public final FHl b;
private final AY c;
public final mSw d;
private final String e;
private final Resources h;
private final C16054kl i;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C7789cuu(FHl fHl, mSw msw, Resources resources, C16054kl c16054kl, AY ay, C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(fHl, "");
C14957gcv.e(msw, "");
C14957gcv.e(resources, "");
C14957gcv.e(c16054kl, "");
C14957gcv.e(ay, "");
C14957gcv.e(c16903sI, "");
this.b = fHl;
this.d = msw;
this.h = resources;
this.i = c16054kl;
this.c = ay;
this.e = "REMITTANCE_SOURCE";
}
/* renamed from: o.cuu$HBt */
/* loaded from: classes4.dex */
static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<Pag, C14866gag> {
private UM c;
private C7789cuu e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Pag pag) {
C14957gcv.e(pag, "");
C7789cuu.b(this.e);
final C7789cuu c7789cuu = this.e;
final UM um = this.c;
ZI.IeS ieS = new ZI.IeS(um, c7789cuu) { // from class: o.cuw
private C7789cuu a;
private UM e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7789cuu.HBt.b(this.e, this.a, (InterfaceC9525dlQ.LWm) obj);
}
{
this.e = um;
this.a = c7789cuu;
}
};
if (c7789cuu.f != 0) {
ieS.e(c7789cuu.f);
}
this.e.d(this.c);
return C14866gag.c;
}
public static /* synthetic */ void b(UM um, C7789cuu c7789cuu, InterfaceC9525dlQ.LWm lWm) {
C14957gcv.e(um, "");
C14957gcv.e(c7789cuu, "");
if (um.b) {
lWm.j(c7789cuu.h.getString(C15715hv.tOB.manage_account_inbound_enabled_success));
} else {
lWm.j(c7789cuu.h.getString(C15715hv.tOB.manage_account_inbound_disable_success));
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
HBt(C7789cuu c7789cuu, UM um) {
super(1);
this.e = c7789cuu;
this.c = um;
}
}
/* renamed from: o.cuu$Sts */
/* loaded from: classes4.dex */
static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C7789cuu b;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
final Throwable th2 = th;
C14957gcv.e(th2, "");
C7789cuu.b(this.b);
final C7789cuu c7789cuu = this.b;
ZI.IeS ieS = new ZI.IeS(c7789cuu, th2) { // from class: o.cuD
private C7789cuu b;
private Throwable e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7789cuu.Sts.d(this.b, this.e, (InterfaceC9525dlQ.LWm) obj);
}
{
this.b = c7789cuu;
this.e = th2;
}
};
if (c7789cuu.f != 0) {
ieS.e(c7789cuu.f);
}
return C14866gag.c;
}
public static /* synthetic */ void d(C7789cuu c7789cuu, Throwable th, InterfaceC9525dlQ.LWm lWm) {
C14957gcv.e(c7789cuu, "");
C14957gcv.e(th, "");
lWm.e(c7789cuu.j.d(th, C0690Mh.IeS.NAVIGATE_BACK));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
Sts(C7789cuu c7789cuu) {
super(1);
this.b = c7789cuu;
}
}
public final void d(UM um) {
C14957gcv.e(um, "");
List<UM> list = this.a;
Object obj = null;
if (list == null) {
C14957gcv.a("");
list = null;
}
Iterator<T> it = list.iterator();
while (true) {
if (!it.hasNext()) {
break;
}
Object next = it.next();
if (C14957gcv.b((Object) ((UM) next).e, (Object) um.e)) {
obj = next;
break;
}
}
UM um2 = (UM) obj;
if (um2 != null) {
um2.b = um.b;
}
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.cuy
private C7789cuu a;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C7789cuu.d(this.a, (InterfaceC9525dlQ.LWm) obj2);
}
{
this.a = this;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
/* renamed from: o.cuu$LWm */
/* loaded from: classes4.dex */
public final class LWm extends wRi.LWm<nOO> {
private C7789cuu d;
public LWm(C7789cuu c7789cuu) {
this.d = c7789cuu;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
nOO noo = (nOO) obj;
C14957gcv.e(noo, "");
List<? extends C5762bzF> list = noo.d;
C7789cuu c7789cuu = this.d;
ArrayList arrayList = new ArrayList();
for (Object obj2 : list) {
if (((C5762bzF) obj2).i.contains(c7789cuu.e)) {
arrayList.add(obj2);
}
}
ArrayList arrayList2 = arrayList;
if (arrayList2.isEmpty()) {
C7789cuu.b(this.d);
C7789cuu c7789cuu2 = this.d;
ZI.IeS ieS = new ZI.IeS() { // from class: o.cuA
@Override // o.ZI.IeS
public final void e(Object obj3) {
((InterfaceC9525dlQ.LWm) obj3).e();
}
};
if (c7789cuu2.f != 0) {
ieS.e(c7789cuu2.f);
return;
}
return;
}
C7789cuu.b(this.d, arrayList2);
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(final Throwable th) {
C14957gcv.e(th, "");
C7789cuu.b(this.d);
final C7789cuu c7789cuu = this.d;
ZI.IeS ieS = new ZI.IeS(c7789cuu, th) { // from class: o.cux
private C7789cuu b;
private Throwable d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7789cuu.LWm.b(this.b, this.d, (InterfaceC9525dlQ.LWm) obj);
}
{
this.b = c7789cuu;
this.d = th;
}
};
if (c7789cuu.f != 0) {
ieS.e(c7789cuu.f);
}
}
public static /* synthetic */ void b(C7789cuu c7789cuu, Throwable th, InterfaceC9525dlQ.LWm lWm) {
C14957gcv.e(c7789cuu, "");
C14957gcv.e(th, "");
lWm.e(c7789cuu.j.d(th, C0690Mh.IeS.NAVIGATE_BACK));
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.cuu$IeS */
/* loaded from: classes4.dex */
public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C7789cuu c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
final Throwable th2 = th;
C14957gcv.e(th2, "");
C7789cuu.b(this.c);
final C7789cuu c7789cuu = this.c;
ZI.IeS ieS = new ZI.IeS(c7789cuu, th2) { // from class: o.cuF
private Throwable b;
private C7789cuu e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7789cuu.IeS.d(this.e, this.b, (InterfaceC9525dlQ.LWm) obj);
}
{
this.e = c7789cuu;
this.b = th2;
}
};
if (c7789cuu.f != 0) {
ieS.e(c7789cuu.f);
}
return C14866gag.c;
}
public static /* synthetic */ void d(C7789cuu c7789cuu, Throwable th, InterfaceC9525dlQ.LWm lWm) {
C14957gcv.e(c7789cuu, "");
C14957gcv.e(th, "");
lWm.e(c7789cuu.j.d(th, C0690Mh.IeS.NAVIGATE_BACK));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
IeS(C7789cuu c7789cuu) {
super(1);
this.c = c7789cuu;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.cuu$RVV */
/* loaded from: classes4.dex */
public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<C4354bXm, C14866gag> {
private C7789cuu a;
private List<JNE> b;
private List<C5762bzF> c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(C4354bXm c4354bXm) {
String str;
Object obj;
Object obj2;
C4354bXm c4354bXm2 = c4354bXm;
C14957gcv.e(c4354bXm2, "");
C7789cuu.b(this.a);
C7789cuu c7789cuu = this.a;
AY unused = c7789cuu.c;
List<C5762bzF> list = this.c;
List<QIZ> list2 = c4354bXm2.b;
List<JNE> list3 = this.b;
C14957gcv.c(list3, "");
C14957gcv.e(list, "");
C14957gcv.e(list2, "");
C14957gcv.e(list3, "");
List<C5762bzF> list4 = list;
C14957gcv.e(list4, "");
ArrayList arrayList = new ArrayList(list4 instanceof Collection ? list4.size() : 10);
for (C5762bzF c5762bzF : list4) {
Iterator<T> it = list2.iterator();
while (true) {
str = null;
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (C14957gcv.b((Object) ((QIZ) obj).a, (Object) c5762bzF.d)) {
break;
}
}
QIZ qiz = (QIZ) obj;
Iterator<T> it2 = list3.iterator();
while (true) {
if (!it2.hasNext()) {
obj2 = null;
break;
}
obj2 = it2.next();
if (C14957gcv.b((Object) ((JNE) obj2).a, (Object) c5762bzF.d)) {
break;
}
}
JNE jne = (JNE) obj2;
String str2 = jne != null ? jne.e : null;
C14957gcv.e(c5762bzF, "");
String str3 = c5762bzF.d;
C14957gcv.c((Object) str3, "");
String d = c5762bzF.p.d();
C14957gcv.c((Object) d, "");
String str4 = c5762bzF.t;
C14957gcv.c((Object) str4, "");
int i = c5762bzF.q;
if (qiz != null) {
str = qiz.c;
}
arrayList.add(new UM(str3, d, str4, i, C14957gcv.b((Object) str, (Object) "Y"), str2));
}
ArrayList arrayList2 = arrayList;
C14957gcv.e(arrayList2, "");
ArrayList arrayList3 = new ArrayList(arrayList2);
C14957gcv.e(arrayList3, "");
c7789cuu.a = arrayList3;
final C7789cuu c7789cuu2 = this.a;
ZI.IeS ieS = new ZI.IeS(c7789cuu2) { // from class: o.cuC
private C7789cuu d;
@Override // o.ZI.IeS
public final void e(Object obj3) {
C7789cuu.RVV.e(this.d, (InterfaceC9525dlQ.LWm) obj3);
}
{
this.d = c7789cuu2;
}
};
if (c7789cuu2.f != 0) {
ieS.e(c7789cuu2.f);
}
return C14866gag.c;
}
public static /* synthetic */ void e(C7789cuu c7789cuu, InterfaceC9525dlQ.LWm lWm) {
C14957gcv.e(c7789cuu, "");
List<UM> list = c7789cuu.a;
if (list == null) {
C14957gcv.a("");
list = null;
}
lWm.b(list);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
RVV(C7789cuu c7789cuu, List<? extends C5762bzF> list, List<JNE> list2) {
super(1);
this.a = c7789cuu;
this.c = list;
this.b = list2;
}
}
public static /* synthetic */ void b(UM um, InterfaceC9525dlQ.LWm lWm) {
C14957gcv.e(um, "");
lWm.c(um);
}
public static /* synthetic */ void d(C7789cuu c7789cuu, InterfaceC9525dlQ.LWm lWm) {
C14957gcv.e(c7789cuu, "");
List<UM> list = c7789cuu.a;
if (list == null) {
C14957gcv.a("");
list = null;
}
lWm.b(list);
}
public static final /* synthetic */ void b(C7789cuu c7789cuu, List list) {
ArrayList arrayList = new ArrayList();
List<JNE> list2 = c7789cuu.d.b.p().a;
Iterator it = list.iterator();
while (it.hasNext()) {
arrayList.add(new C10295eA(((C5762bzF) it.next()).d));
}
C16054kl c16054kl = c7789cuu.i;
RVV rvv = new RVV(c7789cuu, list, list2);
IeS ieS = new IeS(c7789cuu);
C10365eC c10365eC = new C10365eC(arrayList);
C14957gcv.e(rvv, "");
C14957gcv.e(ieS, "");
C14957gcv.e(c10365eC, "");
c16054kl.b(c16054kl.e, rvv, ieS, new C4287bVn.LWm(c10365eC));
}
public static final /* synthetic */ void b(C7789cuu c7789cuu) {
if (c7789cuu.f != 0) {
c7789cuu.f.ar_();
}
}
public final void a(UM um) {
C14957gcv.e(um, "");
if (this.f != 0) {
this.f.y();
}
C16054kl c16054kl = this.i;
HBt hBt = new HBt(this, um);
Sts sts = new Sts(this);
List singletonList = Collections.singletonList(new C12324ew(um.e, new C10331eB(um.c), um.b ? "Y" : "N"));
C14957gcv.c(singletonList, "");
C10568eI c10568eI = new C10568eI(singletonList);
C14957gcv.e(hBt, "");
C14957gcv.e(sts, "");
C14957gcv.e(c10568eI, "");
c16054kl.b(c16054kl.b, hBt, sts, new Tnv.HBt(c10568eI));
}
}