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

213 lines
6.9 KiB
Java

package o;
import com.scb.phone.domain.errors.RetrofitException;
import o.C2840amG;
import o.ZI;
import o.wRi;
/* renamed from: o.amG, reason: case insensitive filesystem */
/* loaded from: classes3.dex */
public final class C2840amG extends ZI<InterfaceC8999dbT> {
public String a;
public C0443Gr b;
public String c;
public String d;
public boolean e;
private final xZj g;
private final C16337nb i;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C2840amG(C16903sI c16903sI, xZj xzj, C16337nb c16337nb) {
super(c16903sI);
C14957gcv.e(xzj, "");
C14957gcv.e(c16337nb, "");
this.g = xzj;
this.i = c16337nb;
}
public final void d(String str, String str2, boolean z) {
String str3;
C0443Gr c0443Gr = this.b;
String str4 = c0443Gr != null ? c0443Gr.b : null;
C0443Gr c0443Gr2 = this.b;
String str5 = c0443Gr2 != null ? c0443Gr2.d : null;
C0443Gr c0443Gr3 = this.b;
C16498opz c16498opz = new C16498opz(str4, str5, c0443Gr3 != null ? c0443Gr3.c : null);
boolean z2 = this.e;
String str6 = "";
if (z2 || (str3 = this.a) == null) {
str3 = "";
}
if (!z2 && this.a != null) {
str6 = this.c;
}
this.g.e(str, str2, new rzR(str3, str6, c16498opz, z ? "ADDACCOUNT" : null));
xZj xzj = this.g;
xzj.d(xzj.i, new RVV(this));
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: o.amG$RVV */
/* loaded from: classes3.dex */
public final class RVV extends wRi.LWm<mKV> {
private C2840amG d;
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onComplete() {
}
public RVV(C2840amG c2840amG) {
this.d = c2840amG;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
C0417Gc c0417Gc;
mKV mkv = (mKV) obj;
C14957gcv.e(mkv, "");
C16337nb unused = this.d.i;
C0443Gr c0443Gr = this.d.b;
String str = this.d.d;
C14957gcv.e(mkv, "");
Boolean bool = mkv.c;
boolean booleanValue = bool != null ? bool.booleanValue() : false;
String str2 = mkv.a;
String str3 = str2 == null ? "" : str2;
String str4 = c0443Gr != null ? c0443Gr.d : null;
String str5 = c0443Gr != null ? c0443Gr.c : null;
String str6 = str5 == null ? "" : str5;
Double d = mkv.b;
double doubleValue = d != null ? d.doubleValue() : 0.0d;
if (booleanValue) {
c0417Gc = null;
} else {
C4009bNa c4009bNa = mkv.d;
c0417Gc = new C0417Gc(c4009bNa != null ? c4009bNa.b : null, c4009bNa != null ? c4009bNa.e : null);
}
Boolean bool2 = mkv.h;
boolean booleanValue2 = bool2 != null ? bool2.booleanValue() : true;
String str7 = mkv.f;
final C0414Gb c0414Gb = new C0414Gb(str3, str4, str6, doubleValue, str, booleanValue, c0417Gc, booleanValue2, str7 == null ? "" : str7);
C2840amG c2840amG = this.d;
ZI.IeS ieS = new ZI.IeS(c0414Gb) { // from class: o.amH
private C0414Gb c;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C2840amG.RVV.a(this.c, (InterfaceC8999dbT) obj2);
}
{
this.c = c0414Gb;
}
};
if (c2840amG.f != 0) {
ieS.e(c2840amG.f);
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(final Throwable th) {
C14957gcv.e(th, "");
if (this.d.i(th)) {
return;
}
final C2840amG c2840amG = this.d;
ZI.IeS ieS = new ZI.IeS(c2840amG, th, this) { // from class: o.amJ
private C2840amG.RVV a;
private C2840amG c;
private Throwable d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2840amG.RVV.b(this.c, this.d, this.a, (InterfaceC8999dbT) obj);
}
{
this.c = c2840amG;
this.d = th;
this.a = this;
}
};
if (c2840amG.f != 0) {
ieS.e(c2840amG.f);
}
}
public static /* synthetic */ void b(C2840amG c2840amG, Throwable th, RVV rvv, InterfaceC8999dbT interfaceC8999dbT) {
C0693Mj c;
VCl vCl;
ggV ggv;
C14957gcv.e(c2840amG, "");
C14957gcv.e(th, "");
C14957gcv.e(rvv, "");
interfaceC8999dbT.e();
String str = c2840amG.j.e(th).c;
if (ZI.c(th) && str != null) {
interfaceC8999dbT.a(str);
return;
}
final C2840amG c2840amG2 = rvv.d;
Runnable runnable = new Runnable(c2840amG2) { // from class: o.amI
private C2840amG d;
@Override // java.lang.Runnable
public final void run() {
C2840amG.RVV.a(this.d);
}
{
this.d = c2840amG2;
}
};
if ((th instanceof RetrofitException) && (vCl = ((RetrofitException) th).e) != null && (ggv = vCl.c) != null) {
C2840amG c2840amG3 = rvv.d;
if (!C2974aoj.c(ggv.d)) {
c = c2840amG3.j.c(th, runnable);
c.d = ggv.d;
C14957gcv.c(c, "");
c2840amG.d(c);
}
}
c = rvv.d.j.c(th, runnable);
C14957gcv.c(c, "");
c2840amG.d(c);
}
public static /* synthetic */ void a(C0414Gb c0414Gb, InterfaceC8999dbT interfaceC8999dbT) {
C14957gcv.e(c0414Gb, "");
interfaceC8999dbT.e();
interfaceC8999dbT.c(c0414Gb);
}
public static /* synthetic */ void a(C2840amG c2840amG) {
C14957gcv.e(c2840amG, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.amF
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC8999dbT) obj).b();
}
};
if (c2840amG.f != 0) {
ieS.e(c2840amG.f);
}
}
}
/* renamed from: o.amG$HBt */
/* loaded from: classes3.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
static {
new HBt((byte) 0);
}
}