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

226 lines
6.2 KiB
Java

package o;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.util.List;
import o.ZI;
/* loaded from: classes4.dex */
public final class cBH extends ZI<InterfaceC9612dmy> {
public String a;
public String b;
public C1108Vu c;
public double d;
public String e;
public VC g;
private final InterfaceC13393fZL h;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public cBH(C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(c16903sI, "");
Sts sts = Sts.e;
C14957gcv.e(sts, "");
this.h = new fZZ(sts);
this.b = "";
this.a = "";
this.e = "";
}
/* loaded from: classes4.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
public final void e(int i) {
if (i < 0) {
this.b = "";
return;
}
C1108Vu c1108Vu = this.c;
if (c1108Vu == null) {
C14957gcv.a("");
c1108Vu = null;
}
List<String> list = c1108Vu.d;
if (list != null) {
this.b = list.get(i);
}
}
/* loaded from: classes4.dex */
static final class Sts extends AbstractC14961gcz implements InterfaceC14890gbN<DecimalFormat> {
public static final Sts e = new Sts();
@Override // o.InterfaceC14890gbN
public final /* synthetic */ DecimalFormat invoke() {
DecimalFormat decimalFormat = new DecimalFormat("#0.00");
decimalFormat.setRoundingMode(RoundingMode.HALF_EVEN);
return decimalFormat;
}
Sts() {
super(0);
}
}
public static /* synthetic */ void b(cBH cbh, double d, double d2, InterfaceC9612dmy interfaceC9612dmy) {
C14957gcv.e(cbh, "");
VC vc = cbh.g;
if (vc == null) {
C14957gcv.a("");
vc = null;
}
if (vc.m) {
interfaceC9612dmy.d(new C13396fZU<>(Double.valueOf(d), Double.valueOf(d2)), cbh.a, cbh.b, cbh.e);
} else {
interfaceC9612dmy.b(new C13396fZU<>(Double.valueOf(d), Double.valueOf(d2)));
}
}
public static /* synthetic */ void b(cBH cbh, double d, InterfaceC9612dmy interfaceC9612dmy) {
C14957gcv.e(cbh, "");
String format = ((DecimalFormat) cbh.h.e()).format(d);
C14957gcv.c((Object) format, "");
interfaceC9612dmy.c(format);
VC vc = cbh.g;
VC vc2 = null;
if (vc == null) {
C14957gcv.a("");
vc = null;
}
if (vc.m) {
VC vc3 = cbh.g;
if (vc3 != null) {
vc2 = vc3;
} else {
C14957gcv.a("");
}
if (d > vc2.r) {
interfaceC9612dmy.a();
} else {
interfaceC9612dmy.b();
}
}
}
public static /* synthetic */ void b(cBH cbh, VC vc, boolean z, InterfaceC9612dmy interfaceC9612dmy) {
C14957gcv.e(cbh, "");
C14957gcv.e(vc, "");
VC vc2 = cbh.g;
C1108Vu c1108Vu = null;
if (vc2 == null) {
C14957gcv.a("");
vc2 = null;
}
if (vc2.m) {
VC vc3 = cbh.g;
if (vc3 == null) {
C14957gcv.a("");
vc3 = null;
}
C1108Vu c1108Vu2 = vc3.f8404o;
if (c1108Vu2 != null) {
C14957gcv.e(c1108Vu2, "");
cbh.c = c1108Vu2;
interfaceC9612dmy.e();
C1108Vu c1108Vu3 = cbh.c;
if (c1108Vu3 != null) {
c1108Vu = c1108Vu3;
} else {
C14957gcv.a("");
}
interfaceC9612dmy.b(c1108Vu, vc);
interfaceC9612dmy.c();
if (z) {
interfaceC9612dmy.h();
}
}
} else {
interfaceC9612dmy.a(vc);
}
if (vc.h) {
return;
}
interfaceC9612dmy.d();
interfaceC9612dmy.b(vc.a);
}
public static /* synthetic */ void e(cBH cbh, double d, double d2, InterfaceC9612dmy interfaceC9612dmy) {
C14957gcv.e(cbh, "");
VC vc = cbh.g;
if (vc == null) {
C14957gcv.a("");
vc = null;
}
if (vc.m) {
interfaceC9612dmy.e(new C13396fZU<>(Double.valueOf(d), Double.valueOf(d2)), cbh.a, cbh.b);
} else {
interfaceC9612dmy.c(new C13396fZU<>(Double.valueOf(d), Double.valueOf(d2)));
}
}
public static /* synthetic */ void d(cBH cbh, double d, double d2, InterfaceC9612dmy interfaceC9612dmy) {
C14957gcv.e(cbh, "");
String format = ((DecimalFormat) cbh.h.e()).format(d);
C14957gcv.c((Object) format, "");
interfaceC9612dmy.d(format);
VC vc = cbh.g;
VC vc2 = null;
if (vc == null) {
C14957gcv.a("");
vc = null;
}
if (vc.m) {
VC vc3 = cbh.g;
if (vc3 != null) {
vc2 = vc3;
} else {
C14957gcv.a("");
}
if (d2 > vc2.r) {
interfaceC9612dmy.a();
} else {
interfaceC9612dmy.b();
}
}
}
public final void e(double d, boolean z) {
final double d2 = d / this.d;
if (!z) {
if (Double.isNaN(d2)) {
throw new IllegalArgumentException("Cannot round NaN value.");
}
d2 = Math.round(d2);
}
ZI.IeS ieS = new ZI.IeS(this, d2) { // from class: o.cBM
private double c;
private cBH e;
@Override // o.ZI.IeS
public final void e(Object obj) {
cBH.b(this.e, this.c, (InterfaceC9612dmy) obj);
}
{
this.e = this;
this.c = d2;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
static {
new IeS((byte) 0);
}
}