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

439 lines
14 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.ArrayList;
import java.util.List;
import o.C0690Mh;
import o.C15715hv;
import o.C4682bel;
import o.InterfaceC9010dbe;
import o.ZI;
import o.wRi;
/* renamed from: o.bel, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C4682bel extends ZI<InterfaceC9010dbe.NHB> {
public final REU a;
public boolean b;
public final C0297Dm c;
public C17671ymh d;
public yPn e;
private final InterfaceC13393fZL g;
private IeS h;
private RVV i;
private List<? extends C1193Xr> k;
private List<? extends C1193Xr> l;
private List<? extends C1193Xr> m;
public static final /* synthetic */ C1019Twi b(C4682bel c4682bel) {
return (C1019Twi) c4682bel.g.e();
}
public static final /* synthetic */ List f(C4682bel c4682bel) {
List<? extends C1193Xr> list = c4682bel.m;
return list == null ? C14851gaI.c : list;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C4682bel(C0297Dm c0297Dm, REU reu, C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(c0297Dm, "");
C14957gcv.e(reu, "");
C14957gcv.e(c16903sI, "");
this.c = c0297Dm;
this.a = reu;
HBt hBt = new HBt(this);
C14957gcv.e(hBt, "");
this.g = new fZZ(hBt);
}
/* renamed from: o.bel$LWm */
/* loaded from: classes4.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
/* renamed from: o.bel$HBt */
/* loaded from: classes4.dex */
static final class HBt extends AbstractC14961gcz implements InterfaceC14890gbN<C1019Twi> {
private C4682bel a;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C1019Twi invoke() {
return this.a.a.c.n();
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
HBt(C4682bel c4682bel) {
super(0);
this.a = c4682bel;
}
}
public final void a(String str, String str2, boolean z) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
if (this.l == null) {
this.l = new ArrayList();
}
if (this.f != 0) {
this.f.v();
}
if (!this.b || z) {
IeS ieS = this.h;
if (ieS != null) {
ieS.dispose();
}
RVV rvv = this.i;
if (rvv != null) {
rvv.dispose();
}
this.b = true;
this.a.d(str, str2, false);
IeS ieS2 = new IeS(this, z);
this.h = ieS2;
REU reu = this.a;
reu.d(reu.i, ieS2);
}
}
@Override // o.ZI
public final void w_() {
super.w_();
this.a.c.e();
}
/* renamed from: o.bel$IeS */
/* loaded from: classes4.dex */
final class IeS extends wRi.LWm<pmX> {
private final boolean b;
private C4682bel d;
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
pmX pmx = (pmX) obj;
C14957gcv.e(pmx, "");
C4682bel.h(this.d);
C4682bel c4682bel = this.d;
c4682bel.d = c4682bel.d;
if (this.d.f != 0) {
if (C4682bel.b(this.d) != null) {
final C1193Xr b = this.d.c.b(pmx.a, C4682bel.b(this.d), this.d.a.d.M());
if (b != null) {
C4682bel c4682bel2 = this.d;
ZI.IeS ieS = new ZI.IeS(b) { // from class: o.beo
private C1193Xr c;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9010dbe.NHB) obj2).c(this.c);
}
{
this.c = b;
}
};
if (c4682bel2.f != 0) {
ieS.e(c4682bel2.f);
}
} else {
C4682bel c4682bel3 = this.d;
int i = C15715hv.tOB.biller_not_found;
C0690Mh.IeS ieS2 = C0690Mh.IeS.NAVIGATE_BACK;
C16903sI c16903sI = c4682bel3.j;
c4682bel3.d(c16903sI.c((String) null, c16903sI.e(i), ieS2));
}
} else {
this.d.e = pmx.b;
if (pmx.a.isEmpty() && this.b) {
C4682bel c4682bel4 = this.d;
ZI.IeS ieS3 = new ZI.IeS() { // from class: o.ber
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9010dbe.NHB) obj2).c();
}
};
if (c4682bel4.f != 0) {
ieS3.e(c4682bel4.f);
}
} else if (!pmx.a.isEmpty() && this.b) {
C4682bel c4682bel5 = this.d;
c4682bel5.m = c4682bel5.c.c(pmx.a, this.d.a.d.M());
final C4682bel c4682bel6 = this.d;
ZI.IeS ieS4 = new ZI.IeS(c4682bel6) { // from class: o.bew
private C4682bel c;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C4682bel.IeS.a(this.c, (InterfaceC9010dbe.NHB) obj2);
}
{
this.c = c4682bel6;
}
};
if (c4682bel6.f != 0) {
ieS4.e(c4682bel6.f);
}
} else if (!pmx.a.isEmpty() && !this.b) {
C4682bel c4682bel7 = this.d;
c4682bel7.m = c4682bel7.c.c(pmx.a, this.d.a.d.M());
final C4682bel c4682bel8 = this.d;
ZI.IeS ieS5 = new ZI.IeS(c4682bel8) { // from class: o.bev
private C4682bel b;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C4682bel.IeS.e(this.b, (InterfaceC9010dbe.NHB) obj2);
}
{
this.b = c4682bel8;
}
};
if (c4682bel8.f != 0) {
ieS5.e(c4682bel8.f);
}
}
}
this.d.b = false;
C4682bel.h(this.d);
}
}
public IeS(C4682bel c4682bel, boolean z) {
this.d = c4682bel;
this.b = z;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onComplete() {
C4682bel.h(this.d);
}
public static /* synthetic */ void a(C4682bel c4682bel, InterfaceC9010dbe.NHB nhb) {
C14957gcv.e(c4682bel, "");
nhb.c(C4682bel.a(c4682bel.m));
nhb.d();
nhb.b();
}
public static /* synthetic */ void e(C4682bel c4682bel, InterfaceC9010dbe.NHB nhb) {
C14957gcv.e(c4682bel, "");
nhb.d(C4682bel.a(c4682bel.m));
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C14957gcv.e(th, "");
this.d.b = false;
if (this.d.f == 0 || this.d.i(th)) {
return;
}
C4682bel.h(this.d);
C4682bel c4682bel = this.d;
ZI.IeS ieS = new ZI.IeS() { // from class: o.beq
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9010dbe.NHB) obj).e();
}
};
if (c4682bel.f != 0) {
ieS.e(c4682bel.f);
}
}
}
/* renamed from: o.bel$RVV */
/* loaded from: classes4.dex */
final class RVV extends wRi.LWm<C17671ymh> {
private C4682bel d;
public RVV(C4682bel c4682bel) {
this.d = c4682bel;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
C17671ymh c17671ymh = (C17671ymh) obj;
C14957gcv.e(c17671ymh, "");
this.d.d = c17671ymh;
if (this.d.f != 0) {
if (C4682bel.b(this.d) != null) {
final C1193Xr b = this.d.c.b(c17671ymh.c, C4682bel.b(this.d), this.d.a.d.M());
if (b != null) {
C4682bel c4682bel = this.d;
ZI.IeS ieS = new ZI.IeS(b) { // from class: o.bem
private C1193Xr a;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9010dbe.NHB) obj2).c(this.a);
}
{
this.a = b;
}
};
if (c4682bel.f != 0) {
ieS.e(c4682bel.f);
return;
}
return;
}
C4682bel c4682bel2 = this.d;
int i = C15715hv.tOB.biller_not_found;
C0690Mh.IeS ieS2 = C0690Mh.IeS.NAVIGATE_BACK;
C16903sI c16903sI = c4682bel2.j;
c4682bel2.d(c16903sI.c((String) null, c16903sI.e(i), ieS2));
return;
}
C4682bel c4682bel3 = this.d;
c4682bel3.m = c4682bel3.c.c(c17671ymh.c, this.d.a.d.M());
C4682bel c4682bel4 = this.d;
c4682bel4.k = C4682bel.f(c4682bel4);
final C4682bel c4682bel5 = this.d;
ZI.IeS ieS3 = new ZI.IeS(c4682bel5) { // from class: o.bep
private C4682bel a;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C4682bel.RVV.a(this.a, (InterfaceC9010dbe.NHB) obj2);
}
{
this.a = c4682bel5;
}
};
if (c4682bel5.f != 0) {
ieS3.e(c4682bel5.f);
}
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onComplete() {
C4682bel.h(this.d);
}
public static /* synthetic */ void a(C4682bel c4682bel, InterfaceC9010dbe.NHB nhb) {
C14957gcv.e(c4682bel, "");
nhb.c(C4682bel.a(c4682bel));
nhb.b();
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C14957gcv.e(th, "");
if (this.d.f == 0 || this.d.i(th)) {
return;
}
C4682bel.h(this.d);
C4682bel c4682bel = this.d;
ZI.IeS ieS = new ZI.IeS() { // from class: o.bet
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9010dbe.NHB) obj).e();
}
};
if (c4682bel.f != 0) {
ieS.e(c4682bel.f);
}
}
}
public static final /* synthetic */ List a(List list) {
List d = list != null ? C14881gav.d((Iterable) list) : null;
return d == null ? C14851gaI.c : d;
}
public static final /* synthetic */ List a(C4682bel c4682bel) {
List<? extends C1193Xr> list = c4682bel.k;
return list == null ? C14851gaI.c : list;
}
public static final /* synthetic */ void h(C4682bel c4682bel) {
if (c4682bel.f != 0) {
c4682bel.f.aq_();
}
}
/* JADX WARN: Code restructure failed: missing block: B:19:0x0044, code lost:
if (r0.c(r2, r3 != null ? r3.A : null) == null) goto L23;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void c() {
/*
r4 = this;
T extends o.cYp r0 = r4.f
if (r0 == 0) goto L9
T extends o.cYp r0 = r4.f
r0.v()
L9:
o.bel$IeS r0 = r4.h
if (r0 == 0) goto L10
r0.dispose()
L10:
o.bel$RVV r0 = r4.i
if (r0 == 0) goto L17
r0.dispose()
L17:
o.fZL r0 = r4.g
java.lang.Object r0 = r0.e()
o.Twi r0 = (o.C1019Twi) r0
r1 = 0
if (r0 == 0) goto L46
o.REU r0 = r4.a
o.fZL r2 = r4.g
java.lang.Object r2 = r2.e()
o.Twi r2 = (o.C1019Twi) r2
if (r2 == 0) goto L31
java.lang.String r2 = r2.x
goto L32
L31:
r2 = r1
L32:
o.fZL r3 = r4.g
java.lang.Object r3 = r3.e()
o.Twi r3 = (o.C1019Twi) r3
if (r3 == 0) goto L3f
java.lang.String r3 = r3.A
goto L40
L3f:
r3 = r1
L40:
o.fSk r0 = r0.c(r2, r3)
if (r0 != 0) goto L50
L46:
r0 = r4
o.bel r0 = (o.C4682bel) r0
r4.e = r1
o.REU r0 = r4.a
r0.f()
L50:
o.bel$RVV r0 = new o.bel$RVV
r0.<init>(r4)
r4.i = r0
o.REU r1 = r4.a
o.wRi$LWm r0 = (o.wRi.LWm) r0
o.fSk r2 = r1.i
r1.d(r2, r0)
return
*/
throw new UnsupportedOperationException("Method not decompiled: o.C4682bel.c():void");
}
static {
new LWm((byte) 0);
}
}