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

468 lines
13 KiB
Java

package o;
import java.util.List;
import o.C0690Mh;
import o.ZI;
import o.bKN;
import o.cXH;
import o.cZG;
import o.wRi;
/* loaded from: classes4.dex */
public class bKN extends ZI<cZG.ZqN> {
public final wBU a;
public final C16031kc b;
public HBt c;
private final C16263mm d;
private final HWA e;
private final oAN g;
private final C15920jd h;
private final C16075kv i;
private final C15930ji k;
private final C15851jD m;
private final C15942jn n;
/* renamed from: o, reason: collision with root package name */
private final sfP f8545o;
/* loaded from: classes4.dex */
public enum HBt {
MUTUAL_FUND,
SCBS_INVESTMENT,
PURCHASE_BOND,
DEBENTURE,
ROBO_ADVISOR
}
@InterfaceC13391fZD
public bKN(C16903sI c16903sI, oAN oan, sfP sfp, wBU wbu, HWA hwa, C16263mm c16263mm, C16031kc c16031kc, C15942jn c15942jn, C15920jd c15920jd, C16075kv c16075kv, C15930ji c15930ji, C15851jD c15851jD) {
super(c16903sI);
this.g = oan;
this.f8545o = sfp;
this.a = wbu;
this.e = hwa;
this.d = c16263mm;
this.b = c16031kc;
this.n = c15942jn;
this.h = c15920jd;
this.i = c16075kv;
this.k = c15930ji;
this.m = c15851jD;
}
public final void d(cXH.IeS.EnumC0105IeS enumC0105IeS) {
this.c = HBt.PURCHASE_BOND;
if (this.f != 0) {
this.f.y();
}
this.e.e(new C1000TiG(this.e.e.a()));
HWA hwa = this.e;
hwa.d(hwa.i, new AnonymousClass1(this, enumC0105IeS));
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.bKN$1, reason: invalid class name */
/* loaded from: classes4.dex */
public final class AnonymousClass1 extends wRi.LWm<QVs> {
private bKN b;
private cXH.IeS.EnumC0105IeS c;
AnonymousClass1(bKN bkn, cXH.IeS.EnumC0105IeS enumC0105IeS) {
this.b = bkn;
this.c = enumC0105IeS;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
final QVs qVs = (QVs) obj;
bKN.b(this.b);
bKN bkn = this.b;
final cXH.IeS.EnumC0105IeS enumC0105IeS = this.c;
ZI.IeS ieS = new ZI.IeS(this, qVs, enumC0105IeS) { // from class: o.bLl
private bKN.AnonymousClass1 a;
private cXH.IeS.EnumC0105IeS d;
private QVs e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
bKN.AnonymousClass1 anonymousClass1 = this.a;
cZG.ZqN zqN = (cZG.ZqN) obj2;
zqN.d(!r2.e.isEmpty() ? anonymousClass1.b.d.d(this.e) : null, this.d);
}
{
this.a = this;
this.e = qVs;
this.d = enumC0105IeS;
}
};
if (bkn.f != 0) {
ieS.e(bkn.f);
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
bKN.d(this.b, th);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.bKN$2, reason: invalid class name */
/* loaded from: classes4.dex */
public static /* synthetic */ class AnonymousClass2 {
static final int[] a;
static {
int[] iArr = new int[HBt.values().length];
a = iArr;
try {
iArr[HBt.MUTUAL_FUND.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
a[HBt.SCBS_INVESTMENT.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
a[HBt.DEBENTURE.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
a[HBt.ROBO_ADVISOR.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
}
}
public final void a() {
C7968cyO p = this.g.b.p();
int i = AnonymousClass2.a[this.c.ordinal()];
if (i == 1) {
List<AeX> list = p.c;
if (list == null || list.isEmpty()) {
C16075kv c16075kv = this.i;
String str = EnumC1274Zk.MF_BANKING_SERVICE.entryPoint;
C14957gcv.e(str, "");
Klc klc = c16075kv.d;
C14957gcv.e(str, "");
klc.e.d(str);
ZI.IeS ieS = new ZI.IeS() { // from class: o.bLf
@Override // o.ZI.IeS
public final void e(Object obj) {
((cZG.ZqN) obj).c();
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
}
if (!this.k.c()) {
if (this.f != 0) {
this.f.y();
}
this.h.d(new InterfaceC14894gbR(this) { // from class: o.bKU
private bKN d;
@Override // o.InterfaceC14894gbR
public final Object invoke(Object obj) {
return bKN.b(this.d, (Boolean) obj);
}
{
this.d = this;
}
}, new InterfaceC14894gbR(this) { // from class: o.bKV
private bKN a;
@Override // o.InterfaceC14894gbR
public final Object invoke(Object obj) {
return bKN.b(this.a, (Throwable) obj);
}
{
this.a = this;
}
});
return;
}
d();
return;
}
if (i == 2) {
if (p.h == null) {
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.bLg
@Override // o.ZI.IeS
public final void e(Object obj) {
((cZG.ZqN) obj).k();
}
};
if (this.f != 0) {
ieS2.e(this.f);
return;
}
return;
}
if (!p.h.b) {
C16075kv c16075kv2 = this.i;
String str2 = EnumC1274Zk.SCBS_BANKING_SERVICE.entryPoint;
C14957gcv.e(str2, "");
Klc klc2 = c16075kv2.d;
C14957gcv.e(str2, "");
klc2.e.d(str2);
ZI.IeS ieS3 = new ZI.IeS() { // from class: o.bLe
@Override // o.ZI.IeS
public final void e(Object obj) {
((cZG.ZqN) obj).g();
}
};
if (this.f != 0) {
ieS3.e(this.f);
return;
}
return;
}
if (this.f != 0) {
this.f.y();
}
this.n.b(new InterfaceC14894gbR(this) { // from class: o.bKT
private bKN d;
@Override // o.InterfaceC14894gbR
public final Object invoke(Object obj) {
return bKN.a(this.d, (Boolean) obj);
}
{
this.d = this;
}
}, new InterfaceC14894gbR(this) { // from class: o.bKS
private bKN c;
@Override // o.InterfaceC14894gbR
public final Object invoke(Object obj) {
return bKN.e(this.c, (Throwable) obj);
}
{
this.c = this;
}
});
return;
}
if (i == 3) {
C15851jD c15851jD = this.m;
String str3 = YT.BANKING_SERVICE.entryPoint;
C14957gcv.e(str3, "");
KdF kdF = c15851jD.e;
C14957gcv.e(str3, "");
kdF.d.a(str3);
ZI.IeS ieS4 = new ZI.IeS(this) { // from class: o.bLd
private bKN c;
@Override // o.ZI.IeS
public final void e(Object obj) {
bKN.b(this.c, (cZG.ZqN) obj);
}
{
this.c = this;
}
};
if (this.f != 0) {
ieS4.e(this.f);
return;
}
return;
}
if (i == 4) {
C16075kv c16075kv3 = this.i;
String str4 = EnumC1274Zk.ROBO_BANKING_SERVICE.entryPoint;
C14957gcv.e(str4, "");
Klc klc3 = c16075kv3.d;
C14957gcv.e(str4, "");
klc3.e.d(str4);
ZI.IeS ieS5 = new ZI.IeS() { // from class: o.bLk
@Override // o.ZI.IeS
public final void e(Object obj) {
((cZG.ZqN) obj).f();
}
};
if (this.f != 0) {
ieS5.e(this.f);
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ void a(Boolean bool, cZG.ZqN zqN) {
if (Boolean.TRUE.equals(bool)) {
zqN.d();
} else {
zqN.e();
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ void e(boolean z, cZG.ZqN zqN) {
if (z) {
zqN.h();
} else {
zqN.j();
}
}
public static /* synthetic */ void e(bKN bkn) {
if (bkn.f != 0) {
bkn.f.ar_();
}
ZI.IeS ieS = new ZI.IeS() { // from class: o.bKW
@Override // o.ZI.IeS
public final void e(Object obj) {
((cZG.ZqN) obj).e();
}
};
if (bkn.f != 0) {
ieS.e(bkn.f);
}
}
public static /* synthetic */ C14866gag a(bKN bkn, Boolean bool) {
final boolean booleanValue = bool.booleanValue();
if (bkn.f != 0) {
bkn.f.ar_();
}
ZI.IeS ieS = new ZI.IeS(booleanValue) { // from class: o.bLi
private boolean c;
@Override // o.ZI.IeS
public final void e(Object obj) {
bKN.e(this.c, (cZG.ZqN) obj);
}
{
this.c = booleanValue;
}
};
if (bkn.f != 0) {
ieS.e(bkn.f);
}
return C14866gag.c;
}
public static /* synthetic */ void b(bKN bkn, cZG.ZqN zqN) {
C8064dAG a = bkn.a.b.a();
zqN.c(a != null ? a.p : null);
}
public static /* synthetic */ C14866gag b(bKN bkn, Throwable th) {
C0690Mh.IeS ieS = C0690Mh.IeS.JUST_DISMISS;
if (bkn.b(th)) {
bkn.d(bkn.j.d(th, ieS));
}
return C14866gag.c;
}
public static /* synthetic */ void e(bKN bkn, final Boolean bool) {
if (bkn.f != 0) {
bkn.f.ar_();
}
ZI.IeS ieS = new ZI.IeS(bool) { // from class: o.bKX
private Boolean c;
@Override // o.ZI.IeS
public final void e(Object obj) {
bKN.a(this.c, (cZG.ZqN) obj);
}
{
this.c = bool;
}
};
if (bkn.f != 0) {
ieS.e(bkn.f);
}
}
public static /* synthetic */ C14866gag b(bKN bkn, Boolean bool) {
if (bkn.f != 0) {
bkn.f.ar_();
}
if (bool.booleanValue()) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.bKO
@Override // o.ZI.IeS
public final void e(Object obj) {
((cZG.ZqN) obj).b();
}
};
if (bkn.f != 0) {
ieS.e(bkn.f);
}
} else {
bkn.d();
}
return C14866gag.c;
}
public static /* synthetic */ C14866gag e(bKN bkn, Throwable th) {
C0690Mh.IeS ieS = C0690Mh.IeS.JUST_DISMISS;
if (bkn.b(th)) {
bkn.d(bkn.j.d(th, ieS));
}
return C14866gag.c;
}
static /* synthetic */ void b(bKN bkn) {
if (bkn.f != 0) {
bkn.f.ar_();
}
}
static /* synthetic */ void d(bKN bkn, Throwable th) {
if (bkn.b(th)) {
bkn.d(bkn.j.e(th));
}
}
private void d() {
if (this.f != 0) {
this.f.y();
}
sfP sfp = this.f8545o;
sfp.d(sfp.e(), new fSQ(this) { // from class: o.bKZ
private bKN b;
@Override // o.fSQ
public final void c(Object obj) {
bKN.e(this.b, (Boolean) obj);
}
{
this.b = this;
}
}, new fSQ(this) { // from class: o.bLa
private bKN a;
@Override // o.fSQ
public final void c(Object obj) {
bKN.e(this.a);
}
{
this.a = this;
}
});
}
@Override // o.ZI
public final void w_() {
oAN oan = this.g;
if (!oan.h.isDisposed()) {
oan.h.dispose();
}
super.w_();
}
}