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

222 lines
7.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.text.NumberFormat;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import o.C15715hv;
import o.C3260auE;
import o.PRA;
import o.ZI;
import o.wRi;
/* renamed from: o.auE, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public class C3260auE extends ZI<InterfaceC9048dcP> {
public Fsg b;
private final C16305nM c;
public final ZBH e;
@InterfaceC13391fZD
public C3260auE(C16903sI c16903sI, ZBH zbh, C16305nM c16305nM) {
super(c16903sI);
this.e = zbh;
this.c = c16305nM;
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ void d(InterfaceC9048dcP interfaceC9048dcP) {
interfaceC9048dcP.c();
interfaceC9048dcP.a();
}
/* renamed from: o.auE$IeS */
/* loaded from: classes4.dex */
public class IeS extends wRi.LWm<Fsg> {
private C3260auE d;
private boolean e;
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
uAa uaa;
uAa uaa2;
EnumC0496Hy enumC0496Hy;
final C0490Hu c0490Hu;
Fsg fsg = (Fsg) obj;
C3260auE c3260auE = this.d;
C3272auQ c3272auQ = new C3272auQ();
if (c3260auE.f != 0) {
c3272auQ.e(c3260auE.f);
}
this.d.b = fsg;
C16305nM c16305nM = this.d.c;
final List<uAa> list = fsg.e;
rgl a = rgl.a(list.size());
YKU yku = new YKU(a.b, a.d);
InterfaceC1244Ytw interfaceC1244Ytw = new InterfaceC1244Ytw() { // from class: o.nO
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
return C16305nM.e((Integer) obj2);
}
};
Objects.requireNonNull(list);
Map map = (Map) yku.a(new PRA.Sts(new PRA.AnonymousClass10(), new PRA.AnonymousClass3(interfaceC1244Ytw, new InterfaceC1244Ytw(list) { // from class: o.nP
private List c;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
return (uAa) this.c.get(((Integer) obj2).intValue());
}
{
this.c = list;
}
})));
uAa uaa3 = new uAa();
uaa3.b = 0;
uaa3.c = c16305nM.e(C15715hv.tOB.start);
StringBuilder sb = new StringBuilder("drawable://");
sb.append(C15715hv.IeS.placeholder_tier_grey);
uaa3.a = sb.toString();
map.put(-1, uaa3);
int i = fsg.d.e;
int i2 = fsg.d.b;
int i3 = fsg.d.c;
String c = C16305nM.c(Double.valueOf(fsg.d.a));
if (i == -1 && i2 == -1 && i3 == -1) {
c0490Hu = C0490Hu.e();
c0490Hu.d = fsg.d.d;
c0490Hu.a = true;
c0490Hu.c = c;
c0490Hu.b = (int) fsg.d.a;
} else {
if (i2 == -1) {
uaa = (uAa) map.get(Integer.valueOf(i));
uaa2 = (uAa) map.get(Integer.valueOf(i3));
enumC0496Hy = EnumC0496Hy.RIGHT;
} else {
uaa = (uAa) map.get(Integer.valueOf(i3));
uaa2 = (uAa) map.get(Integer.valueOf(i2));
enumC0496Hy = uaa.equals(uaa3) ? EnumC0496Hy.NONE : EnumC0496Hy.LEFT;
}
C0490Hu e = C0490Hu.e();
e.c = c;
e.f = uaa.c;
e.h = NumberFormat.getInstance(Locale.getDefault()).format(uaa.b);
e.e = uaa.a;
e.i = uaa2.c;
e.m = NumberFormat.getInstance(Locale.getDefault()).format(uaa2.b);
e.j = uaa2.a;
e.n = enumC0496Hy;
e.l = uaa2.b;
e.b = (int) fsg.d.a;
e.d = fsg.d.d;
e.g = uaa.b;
c0490Hu = e;
}
final boolean z = c0490Hu.d;
C3260auE c3260auE2 = this.d;
ZI.IeS ieS = new ZI.IeS(z) { // from class: o.auT
private boolean b;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C3260auE.IeS.c(this.b, (InterfaceC9048dcP) obj2);
}
{
this.b = z;
}
};
if (c3260auE2.f != 0) {
ieS.e(c3260auE2.f);
}
if (!this.e) {
C3260auE c3260auE3 = this.d;
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.auW
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9048dcP) obj2).m();
}
};
if (c3260auE3.f != 0) {
ieS2.e(c3260auE3.f);
return;
}
return;
}
if (c0490Hu.a) {
C3260auE c3260auE4 = this.d;
C3273auR c3273auR = new C3273auR();
if (c3260auE4.f != 0) {
c3273auR.e(c3260auE4.f);
return;
}
return;
}
C3260auE c3260auE5 = this.d;
ZI.IeS ieS3 = new ZI.IeS(c0490Hu) { // from class: o.auP
private C0490Hu c;
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9048dcP) obj2).e(this.c);
}
{
this.c = c0490Hu;
}
};
if (c3260auE5.f != 0) {
ieS3.e(c3260auE5.f);
}
}
public IeS(C3260auE c3260auE, boolean z) {
this.d = c3260auE;
this.e = z;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C3260auE c3260auE = this.d;
C3272auQ c3272auQ = new C3272auQ();
if (c3260auE.f != 0) {
c3272auQ.e(c3260auE.f);
}
if (this.d.i(th)) {
return;
}
C3260auE c3260auE2 = this.d;
C3273auR c3273auR = new C3273auR();
if (c3260auE2.f != 0) {
c3273auR.e(c3260auE2.f);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static /* synthetic */ void c(boolean z, InterfaceC9048dcP interfaceC9048dcP) {
if (z) {
interfaceC9048dcP.l();
} else {
interfaceC9048dcP.g();
}
}
}
@Override // o.ZI
public final void w_() {
this.e.b.a();
super.w_();
}
public static /* synthetic */ void b(C3260auE c3260auE, uAa uaa, InterfaceC9048dcP interfaceC9048dcP) {
if (uaa != null) {
interfaceC9048dcP.b(uaa.h);
} else {
interfaceC9048dcP.b(c3260auE.b.e.get(0).h);
}
}
}