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

159 lines
5.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.scb.phone.domain.errors.RetrofitException;
import java.util.Objects;
import o.C0690Mh;
import o.InterfaceC6673cZp;
import o.MC;
import o.ZI;
import o.cJI;
import o.wRi;
/* loaded from: classes4.dex */
public class cJI extends AbstractC6144cJy<InterfaceC6673cZp.NHB> {
private final C0361Ez a;
@InterfaceC13391fZD
public cJI(C16903sI c16903sI, C16124lSp c16124lSp, CH ch, C0361Ez c0361Ez) {
super(c16903sI, c16124lSp, ch);
this.a = c0361Ez;
}
public final void c(C1189Xo c1189Xo, boolean z) {
if (this.d) {
return;
}
this.d = true;
if (this.f != 0) {
this.f.y();
}
C16124lSp c16124lSp = this.c;
C1302a e = C1302a.e();
e.d = c1189Xo.a();
e.b = z;
c16124lSp.d(e);
C16124lSp c16124lSp2 = this.c;
c16124lSp2.d(c16124lSp2.i, new HBt(this, c1189Xo));
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes4.dex */
public final class HBt extends wRi.LWm<C0761OAw> {
private C1189Xo a;
private cJI e;
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onComplete() {
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
final C0761OAw c0761OAw = (C0761OAw) obj;
if (this.e.f != 0) {
this.e.d = false;
final iJI iji = c0761OAw.f;
cJI cji = this.e;
ZI.IeS ieS = new ZI.IeS(this, iji, c0761OAw) { // from class: o.cJL
private cJI.HBt a;
private iJI b;
private C0761OAw e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
cJI.HBt.c(this.a, this.b, this.e, (InterfaceC6673cZp.NHB) obj2);
}
{
this.a = this;
this.b = iji;
this.e = c0761OAw;
}
};
if (cji.f != 0) {
ieS.e(cji.f);
}
}
}
public HBt(cJI cji, C1189Xo c1189Xo) {
this.e = cji;
this.a = c1189Xo;
}
public static /* synthetic */ void c(HBt hBt, iJI iji, C0761OAw c0761OAw, InterfaceC6673cZp.NHB nhb) {
String str = ((iJI) Objects.requireNonNull(iji)).a;
str.hashCode();
if (!str.equals("8101") && !str.equals("8102")) {
nhb.e(hBt.e.b.a(c0761OAw, hBt.a));
return;
}
C0361Ez unused = hBt.e.a;
String str2 = iji.b;
String str3 = iji.d;
String j = hBt.a.j();
String a = hBt.a.a();
String str4 = hBt.a.aI;
C14957gcv.e(j, "");
C14957gcv.e(a, "");
C14957gcv.e(str4, "");
C14957gcv.e(c0761OAw, "");
String str5 = c0761OAw.d;
String str6 = str5 == null ? "" : str5;
String str7 = c0761OAw.e;
String str8 = str7 == null ? "" : str7;
String str9 = c0761OAw.b;
String str10 = str9 == null ? "" : str9;
String str11 = c0761OAw.c;
String str12 = str11 == null ? "" : str11;
String str13 = c0761OAw.a;
String str14 = str13 == null ? "" : str13;
String str15 = c0761OAw.i;
nhb.c(new MC.HBt(str6, str8, str14, str3, str10, str12, str2, a, str4, j, str15 == null ? "" : str15));
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
if (this.e.f != 0) {
this.e.d = false;
final ggV h = cJI.h(th);
if (!this.e.b(th, "8103") || h == null) {
cJI cji = this.e;
C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK;
if (cji.b(th)) {
cji.d(cji.j.b(th, ieS));
return;
}
return;
}
cJI cji2 = this.e;
ZI.IeS ieS2 = new ZI.IeS(h) { // from class: o.cJJ
private ggV b;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC6673cZp.NHB) obj).e(r0.d, this.b.c);
}
{
this.b = h;
}
};
if (cji2.f != 0) {
ieS2.e(cji2.f);
}
}
}
}
static /* synthetic */ ggV h(Throwable th) {
if (!(th instanceof RetrofitException)) {
return null;
}
RetrofitException retrofitException = (RetrofitException) th;
if (retrofitException.e != null) {
return retrofitException.e.c;
}
return null;
}
}