287 lines
9.4 KiB
Java
287 lines
9.4 KiB
Java
package o;
|
|
|
|
import android.text.TextUtils;
|
|
import com.scb.phone.domain.errors.RetrofitException;
|
|
import o.C0690Mh;
|
|
import o.DeI;
|
|
import o.InterfaceC6621cYR;
|
|
import o.LHd;
|
|
import o.ZI;
|
|
import o.aRB;
|
|
import o.wRi;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class aRB extends aPY<InterfaceC6621cYR.vUG> {
|
|
private C16949se g;
|
|
public String i;
|
|
|
|
@InterfaceC13391fZD
|
|
public aRB(C16903sI c16903sI, YHs yHs, hKK hkk, lUI lui, C16949se c16949se) {
|
|
super(c16903sI, yHs, hkk, lui);
|
|
this.g = c16949se;
|
|
}
|
|
|
|
public final void e(String str, String str2, String str3, String str4, String str5) {
|
|
LHd lHd;
|
|
LHd lHd2;
|
|
byte b = 0;
|
|
if (this.d.b.b() == null) {
|
|
if ("COMMERCIAL_LOAN".equals(this.e.h)) {
|
|
String e = C15602gz.e(C6583cXR.c(str).doubleValue());
|
|
String str6 = this.b;
|
|
String e2 = C15602gz.e(C6583cXR.c(str5).doubleValue());
|
|
String str7 = this.i;
|
|
LHd.IeS ieS = new LHd.IeS();
|
|
ieS.f8249o = "COMMERCIAL_LOAN";
|
|
ieS.b = e;
|
|
ieS.c = str2;
|
|
ieS.g = str4;
|
|
ieS.j = str3;
|
|
ieS.i = str6;
|
|
ieS.h = e2;
|
|
ieS.a = TextUtils.isEmpty(str7) ^ true ? str7 : null;
|
|
ieS.d = TextUtils.isEmpty(str7) ^ true ? "image/jpg" : null;
|
|
ieS.e = new DeI(new DeI.HBt(), (byte) 0);
|
|
ieS.l = this.e.g;
|
|
LHd lHd3 = new LHd(ieS, (byte) 0);
|
|
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.aRH
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
aRB.c((InterfaceC6621cYR.vUG) obj);
|
|
}
|
|
};
|
|
if (this.f != 0) {
|
|
ieS2.e(this.f);
|
|
}
|
|
this.a.e(lHd3);
|
|
YHs yHs = this.a;
|
|
yHs.d(yHs.i, new HBt(this, b));
|
|
return;
|
|
}
|
|
if (!TextUtils.isEmpty(this.i)) {
|
|
String e3 = C15602gz.e(C6583cXR.c(str).doubleValue());
|
|
String str8 = this.b;
|
|
String e4 = C15602gz.e(C6583cXR.c(str5).doubleValue());
|
|
String str9 = this.i;
|
|
LHd.IeS ieS3 = new LHd.IeS();
|
|
ieS3.b = e3;
|
|
ieS3.c = str2;
|
|
ieS3.i = str8;
|
|
ieS3.j = str3;
|
|
ieS3.g = str4;
|
|
ieS3.f8249o = this.e.h;
|
|
ieS3.h = e4;
|
|
ieS3.a = str9;
|
|
ieS3.d = "image/jpg";
|
|
ieS3.l = this.e.g;
|
|
ieS3.e = new DeI(new DeI.HBt(), (byte) 0);
|
|
lHd = new LHd(ieS3, (byte) 0);
|
|
} else {
|
|
String e5 = C15602gz.e(C6583cXR.c(str).doubleValue());
|
|
String str10 = this.b;
|
|
String e6 = C15602gz.e(C6583cXR.c(str5).doubleValue());
|
|
LHd.IeS ieS4 = new LHd.IeS();
|
|
ieS4.b = e5;
|
|
ieS4.c = str2;
|
|
ieS4.i = str10;
|
|
ieS4.j = str3;
|
|
ieS4.g = str4;
|
|
ieS4.f8249o = this.e.h;
|
|
ieS4.h = e6;
|
|
ieS4.l = this.e.g;
|
|
ieS4.e = new DeI(new DeI.HBt(), (byte) 0);
|
|
lHd = new LHd(ieS4, (byte) 0);
|
|
}
|
|
b(lHd, false);
|
|
return;
|
|
}
|
|
if (!TextUtils.isEmpty(this.i)) {
|
|
String e7 = C15602gz.e(C6583cXR.c(str).doubleValue());
|
|
String str11 = this.b;
|
|
String e8 = C15602gz.e(C6583cXR.c(str5).doubleValue());
|
|
String str12 = this.i;
|
|
LHd.IeS ieS5 = new LHd.IeS();
|
|
ieS5.b = e7;
|
|
ieS5.c = str2;
|
|
ieS5.i = str11;
|
|
ieS5.j = str3;
|
|
ieS5.g = str4;
|
|
ieS5.f8249o = this.e.h;
|
|
ieS5.h = e8;
|
|
ieS5.a = str12;
|
|
ieS5.d = "image/jpg";
|
|
lHd2 = new LHd(ieS5, (byte) 0);
|
|
} else {
|
|
String e9 = C15602gz.e(C6583cXR.c(str).doubleValue());
|
|
String str13 = this.b;
|
|
String e10 = C15602gz.e(C6583cXR.c(str5).doubleValue());
|
|
LHd.IeS ieS6 = new LHd.IeS();
|
|
ieS6.b = e9;
|
|
ieS6.c = str2;
|
|
ieS6.i = str13;
|
|
ieS6.j = str3;
|
|
ieS6.g = str4;
|
|
ieS6.f8249o = this.e.h;
|
|
ieS6.h = e10;
|
|
lHd2 = new LHd(ieS6, (byte) 0);
|
|
}
|
|
b(lHd2, true);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static /* synthetic */ void c(InterfaceC6621cYR.vUG vug) {
|
|
vug.aN_();
|
|
vug.y();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes4.dex */
|
|
public class HBt extends wRi.LWm<xtZ> {
|
|
private aRB d;
|
|
|
|
private HBt(aRB arb) {
|
|
this.d = arb;
|
|
}
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final /* synthetic */ void onNext(Object obj) {
|
|
if (((xtZ) obj).d) {
|
|
aRB arb = this.d;
|
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.aRK
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj2) {
|
|
((InterfaceC6621cYR.vUG) obj2).f();
|
|
}
|
|
};
|
|
if (arb.f != 0) {
|
|
ieS.e(arb.f);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final void onError(Throwable th) {
|
|
if (th instanceof RetrofitException) {
|
|
RetrofitException retrofitException = (RetrofitException) th;
|
|
if (retrofitException.e != null && retrofitException.e.c != null && retrofitException.e.c.e != null) {
|
|
String str = retrofitException.e.c.e;
|
|
str.hashCode();
|
|
if (str.equals("3013")) {
|
|
aRB.e(this.d, th, C0690Mh.IeS.NAVIGATE_BACK);
|
|
return;
|
|
}
|
|
if (str.equals("9200")) {
|
|
aRB arb = this.d;
|
|
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.aRT
|
|
private aRB.HBt b;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((InterfaceC6621cYR.vUG) obj).e(this.b.d.g.f());
|
|
}
|
|
|
|
{
|
|
this.b = this;
|
|
}
|
|
};
|
|
if (arb.f != 0) {
|
|
ieS.e(arb.f);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
aRB.e(this.d, th, new Runnable(this) { // from class: o.aRP
|
|
private aRB.HBt a;
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
aRB.HBt.c(this.a);
|
|
}
|
|
|
|
{
|
|
this.a = this;
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
}
|
|
aRB.d(this.d, th, new Runnable(this) { // from class: o.aRR
|
|
private aRB.HBt d;
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
aRB.HBt.d(this.d);
|
|
}
|
|
|
|
{
|
|
this.d = this;
|
|
}
|
|
});
|
|
}
|
|
|
|
public static /* synthetic */ void d(HBt hBt) {
|
|
aRB arb = hBt.d;
|
|
C1890aRQ c1890aRQ = new C1890aRQ();
|
|
if (arb.f != 0) {
|
|
c1890aRQ.e(arb.f);
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void c(HBt hBt) {
|
|
aRB arb = hBt.d;
|
|
C1890aRQ c1890aRQ = new C1890aRQ();
|
|
if (arb.f != 0) {
|
|
c1890aRQ.e(arb.f);
|
|
}
|
|
}
|
|
|
|
/* synthetic */ HBt(aRB arb, byte b) {
|
|
this(arb);
|
|
}
|
|
}
|
|
|
|
static /* synthetic */ void e(aRB arb, Throwable th, C0690Mh.IeS ieS) {
|
|
if (arb.b(th)) {
|
|
arb.d(arb.j.d(th, ieS));
|
|
}
|
|
}
|
|
|
|
static /* synthetic */ void e(aRB arb, Throwable th, Runnable runnable) {
|
|
if (arb.b(th)) {
|
|
arb.d(arb.j.c(th, runnable));
|
|
}
|
|
}
|
|
|
|
static /* synthetic */ void d(aRB arb, Throwable th, Runnable runnable) {
|
|
if (arb.b(th)) {
|
|
arb.d(arb.j.c(th, runnable));
|
|
}
|
|
}
|
|
|
|
@Override // o.aPY
|
|
public final void d(String str) {
|
|
if (TextUtils.isEmpty(str) || ((Boolean) C6583cXR.c(new Object[]{str}, -1032102340, 1032102340, (int) System.currentTimeMillis())).booleanValue()) {
|
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.aRI
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((InterfaceC6621cYR.vUG) obj).h();
|
|
}
|
|
};
|
|
if (this.f != 0) {
|
|
ieS.e(this.f);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.aRN
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((InterfaceC6621cYR.vUG) obj).g();
|
|
}
|
|
};
|
|
if (this.f != 0) {
|
|
ieS2.e(this.f);
|
|
}
|
|
}
|
|
}
|