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

199 lines
6.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.scb.phone.domain.errors.RetrofitException;
import kotlin.NoWhenBranchMatchedException;
import o.C0690Mh;
import o.C15715hv;
import o.C17179uc;
import o.C5696bxt;
import o.ZI;
import o.wRi;
/* renamed from: o.bxt, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C5696bxt extends ZI<InterfaceC9317dhU> {
public final eAJ a;
private final C17179uc c;
public Ziy d;
public final C15480grh e;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C5696bxt(C16903sI c16903sI, eAJ eaj, C15480grh c15480grh, C17179uc c17179uc) {
super(c16903sI);
C14957gcv.e(c16903sI, "");
C14957gcv.e(eaj, "");
C14957gcv.e(c15480grh, "");
C14957gcv.e(c17179uc, "");
this.a = eaj;
this.e = c15480grh;
this.c = c17179uc;
}
/* renamed from: o.bxt$IeS */
/* loaded from: classes4.dex */
public static final class IeS extends wRi.LWm<aCF> {
private C5696bxt e;
public IeS(C5696bxt c5696bxt) {
this.e = c5696bxt;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
final aCF acf = (aCF) obj;
C14957gcv.e(acf, "");
super.onNext(acf);
this.e.d = acf.a;
final C5696bxt c5696bxt = this.e;
ZI.IeS ieS = new ZI.IeS(c5696bxt, acf) { // from class: o.bxy
private aCF b;
private C5696bxt e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C5696bxt.IeS.b(this.e, this.b, (InterfaceC9317dhU) obj2);
}
{
this.e = c5696bxt;
this.b = acf;
}
};
if (c5696bxt.f != 0) {
ieS.e(c5696bxt.f);
}
C5696bxt.e(this.e);
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C14957gcv.e(th, "");
super.onError(th);
C5696bxt.e(this.e, th, C0690Mh.IeS.NAVIGATE_BACK);
}
public static /* synthetic */ void b(C5696bxt c5696bxt, aCF acf, InterfaceC9317dhU interfaceC9317dhU) {
C0774Oh c0774Oh;
C0774Oh c0774Oh2;
C14957gcv.e(c5696bxt, "");
C14957gcv.e(acf, "");
C17179uc unused = c5696bxt.c;
Ziy ziy = acf.a;
C14957gcv.e(ziy, "");
int i = C17179uc.IeS.a[ziy.ordinal()];
if (i == 1) {
int i2 = C15715hv.tOB.hml_promptpay_verification_get_code_main_text;
int i3 = C15715hv.tOB.hml_promptpay_verification_get_code_secondary_text;
c0774Oh = new C0774Oh(i2, Integer.valueOf(i3), C15715hv.tOB.hml_promptpay_verification_get_code_button);
} else {
if (i != 2) {
if (i != 3) {
throw new NoWhenBranchMatchedException();
}
c0774Oh2 = new C0774Oh(C15715hv.tOB.hml_promptpay_verification_verified_main_text, null, C15715hv.tOB.hml_promptpay_verification_verified_button);
interfaceC9317dhU.a(c0774Oh2);
}
int i4 = C15715hv.tOB.hml_promptpay_verification_enter_code_main_text;
int i5 = C15715hv.tOB.hml_promptpay_verification_enter_code_secondary_text;
c0774Oh = new C0774Oh(i4, Integer.valueOf(i5), C15715hv.tOB.hml_promptpay_verification_enter_code_button);
}
c0774Oh2 = c0774Oh;
interfaceC9317dhU.a(c0774Oh2);
}
}
/* renamed from: o.bxt$LWm */
/* loaded from: classes4.dex */
public static final class LWm extends wRi.LWm<C14866gag> {
private C5696bxt a;
public LWm(C5696bxt c5696bxt) {
this.a = c5696bxt;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
VCl vCl;
ggV ggv;
C14957gcv.e(th, "");
super.onError(th);
String str = null;
RetrofitException retrofitException = th instanceof RetrofitException ? (RetrofitException) th : null;
if (retrofitException != null && (vCl = retrofitException.e) != null && (ggv = vCl.c) != null) {
str = ggv.e;
}
if (!C14957gcv.b((Object) str, (Object) "9100")) {
C5696bxt.e(this.a, th, C0690Mh.IeS.JUST_DISMISS);
return;
}
C5696bxt c5696bxt = this.a;
ZI.IeS ieS = new ZI.IeS() { // from class: o.bxB
@Override // o.ZI.IeS
public final void e(Object obj) {
C5696bxt.LWm.e((InterfaceC9317dhU) obj);
}
};
if (c5696bxt.f != 0) {
ieS.e(c5696bxt.f);
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onComplete() {
super.onComplete();
C5696bxt c5696bxt = this.a;
ZI.IeS ieS = new ZI.IeS() { // from class: o.bxz
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9317dhU) obj).a();
}
};
if (c5696bxt.f != 0) {
ieS.e(c5696bxt.f);
}
C5696bxt.e(this.a);
}
public static /* synthetic */ void e(InterfaceC9317dhU interfaceC9317dhU) {
interfaceC9317dhU.ar_();
interfaceC9317dhU.c();
}
}
public static final /* synthetic */ void e(C5696bxt c5696bxt) {
if (c5696bxt.f != 0) {
c5696bxt.f.ar_();
}
}
public static final /* synthetic */ void e(C5696bxt c5696bxt, Throwable th, C0690Mh.IeS ieS) {
if (c5696bxt.b(th)) {
c5696bxt.d(c5696bxt.j.d(th, ieS));
}
}
/* renamed from: o.bxt$Sts */
/* loaded from: classes4.dex */
public final /* synthetic */ class Sts {
public static final int[] c;
static {
int[] iArr = new int[Ziy.values().length];
try {
iArr[Ziy.GET_CODE.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[Ziy.ENTER_CODE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[Ziy.VERIFIED.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
c = iArr;
}
}
}