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

222 lines
6.3 KiB
Java

package o;
import com.scb.phone.domain.errors.RetrofitException;
import java.math.BigDecimal;
import o.C0690Mh;
import o.InterfaceC8992dbM;
import o.ZI;
/* renamed from: o.aiR, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C2639aiR extends ZI<InterfaceC8992dbM.RVV> {
public double a;
public final C14217foz b;
public WW c;
public WW d;
public double e;
private FM g;
private final C16277mu h;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C2639aiR(C16903sI c16903sI, C14217foz c14217foz, C16277mu c16277mu) {
super(c16903sI);
C14957gcv.e(c16903sI, "");
C14957gcv.e(c14217foz, "");
C14957gcv.e(c16277mu, "");
this.b = c14217foz;
this.h = c16277mu;
}
public final boolean c() {
if (this.c != null) {
FM fm = this.g;
if (fm == null) {
C14957gcv.a("");
fm = null;
}
if (d(fm, this.a)) {
return true;
}
}
return false;
}
private static boolean d(FM fm, double d) {
if (BigDecimal.valueOf(d).compareTo(BigDecimal.valueOf(fm != null ? fm.c : 100.0d)) >= 0) {
if (BigDecimal.valueOf(d).compareTo(BigDecimal.valueOf(fm != null ? fm.e : 5000.0d)) <= 0) {
return true;
}
}
return false;
}
/* renamed from: o.aiR$LWm */
/* loaded from: classes3.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
public static /* synthetic */ void a(C2639aiR c2639aiR, Throwable th) {
C14957gcv.e(c2639aiR, "");
if (c2639aiR.f != 0) {
c2639aiR.f.ar_();
}
if (th instanceof RetrofitException) {
RetrofitException retrofitException = (RetrofitException) th;
if (retrofitException.e != null && retrofitException.e.c != null) {
if (C14957gcv.b((Object) retrofitException.e.c.e, (Object) "3006")) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.aiU
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC8992dbM.RVV) obj).c();
}
};
if (c2639aiR.f != 0) {
ieS.e(c2639aiR.f);
return;
}
return;
}
if (c2639aiR.b(th)) {
c2639aiR.d(c2639aiR.j.e(th));
return;
}
return;
}
if (c2639aiR.b(th)) {
c2639aiR.d(c2639aiR.j.e(th));
return;
}
return;
}
if (c2639aiR.b(th)) {
c2639aiR.d(c2639aiR.j.e(th));
}
}
public static /* synthetic */ void e(C2639aiR c2639aiR, InterfaceC8992dbM.RVV rvv) {
C14957gcv.e(c2639aiR, "");
rvv.a(c2639aiR.c());
}
public static /* synthetic */ void c(FM fm, C2639aiR c2639aiR, InterfaceC8992dbM.RVV rvv) {
C14957gcv.e(c2639aiR, "");
rvv.e(fm.c, fm.e);
rvv.a(c2639aiR.c());
}
public static /* synthetic */ void a(C2639aiR c2639aiR, InterfaceC8992dbM.RVV rvv) {
C14957gcv.e(c2639aiR, "");
FM fm = c2639aiR.g;
FM fm2 = null;
if (fm == null) {
C14957gcv.a("");
fm = null;
}
rvv.b(fm);
FM fm3 = c2639aiR.g;
if (fm3 == null) {
C14957gcv.a("");
} else {
fm2 = fm3;
}
rvv.d(fm2);
}
public static /* synthetic */ void d(C2639aiR c2639aiR, InterfaceC8992dbM.RVV rvv) {
C14957gcv.e(c2639aiR, "");
double d = c2639aiR.a;
WW ww = c2639aiR.c;
rvv.b(String.valueOf(d), ww != null ? ww.t : null);
}
public static /* synthetic */ void c(final C2639aiR c2639aiR) {
C14957gcv.e(c2639aiR, "");
if (c2639aiR.f != 0) {
c2639aiR.f.ar_();
}
ZI.IeS ieS = new ZI.IeS(c2639aiR) { // from class: o.ajc
private C2639aiR e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2639aiR.d(this.e, (InterfaceC8992dbM.RVV) obj);
}
{
this.e = c2639aiR;
}
};
if (c2639aiR.f != 0) {
ieS.e(c2639aiR.f);
}
}
public static /* synthetic */ void e(C2639aiR c2639aiR, Throwable th) {
C14957gcv.e(c2639aiR, "");
C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK;
if (c2639aiR.b(th)) {
c2639aiR.d(c2639aiR.j.d(th, ieS));
}
}
public static /* synthetic */ void b(C2639aiR c2639aiR, InterfaceC8992dbM.RVV rvv) {
C14957gcv.e(c2639aiR, "");
rvv.a(c2639aiR.c());
}
public static /* synthetic */ void c(C2639aiR c2639aiR, InterfaceC8992dbM.RVV rvv) {
C14957gcv.e(c2639aiR, "");
double d = c2639aiR.a;
WW ww = c2639aiR.c;
rvv.b(String.valueOf(d), ww != null ? ww.t : null);
}
public static /* synthetic */ void e(C2639aiR c2639aiR, double d, InterfaceC8992dbM.RVV rvv) {
C14957gcv.e(c2639aiR, "");
FM fm = c2639aiR.g;
if (fm == null) {
C14957gcv.a("");
fm = null;
}
rvv.b(!d(fm, d));
}
public static /* synthetic */ void a(final C2639aiR c2639aiR, C17760zYk c17760zYk) {
C14957gcv.e(c2639aiR, "");
if (c2639aiR.f != 0) {
c2639aiR.f.ar_();
}
C16277mu c16277mu = c2639aiR.h;
C14957gcv.c(c17760zYk, "");
FM b = C16277mu.b(c17760zYk);
c2639aiR.g = b;
c2639aiR.e = b.d;
ZI.IeS ieS = new ZI.IeS(c2639aiR) { // from class: o.aiX
private C2639aiR b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2639aiR.a(this.b, (InterfaceC8992dbM.RVV) obj);
}
{
this.b = c2639aiR;
}
};
if (c2639aiR.f != 0) {
ieS.e(c2639aiR.f);
}
}
static {
new LWm((byte) 0);
}
}