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

125 lines
3.8 KiB
Java

package o;
import com.scb.phone.domain.errors.RetrofitException;
import o.C0690Mh;
import o.C15715hv;
import o.ZI;
import o.bFZ;
import o.wRi;
/* loaded from: classes4.dex */
public class bFZ extends ZI<InterfaceC9382dig> {
private final C17239vB a;
public String b;
public final C17809ztu d;
public C0865Qg e;
@InterfaceC13391fZD
public bFZ(C17809ztu c17809ztu, C17239vB c17239vB, C16903sI c16903sI) {
super(c16903sI);
this.d = c17809ztu;
this.a = c17239vB;
}
/* loaded from: classes4.dex */
public final class Sts extends wRi.LWm<C17770zcx> {
private bFZ d;
private Sts(bFZ bfz) {
this.d = bfz;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
final C17770zcx c17770zcx = (C17770zcx) obj;
bFZ.b(this.d);
bFZ bfz = this.d;
ZI.IeS ieS = new ZI.IeS(this, c17770zcx) { // from class: o.bGb
private bFZ.Sts b;
private C17770zcx c;
@Override // o.ZI.IeS
public final void e(Object obj2) {
bFZ.Sts.d(this.b, this.c, (InterfaceC9382dig) obj2);
}
{
this.b = this;
this.c = c17770zcx;
}
};
if (bfz.f != 0) {
ieS.e(bfz.f);
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(final Throwable th) {
bFZ.a(this.d);
if (C15602gz.e(th, RetrofitException.RVV.OTP_FAILED, RetrofitException.RVV.OTP_REACH_MAX_LIMIT, RetrofitException.RVV.OTP_EXPIRED)) {
bFZ bfz = this.d;
ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.bFY
private Throwable b;
private bFZ.Sts d;
@Override // o.ZI.IeS
public final void e(Object obj) {
InterfaceC9382dig interfaceC9382dig = (InterfaceC9382dig) obj;
interfaceC9382dig.k_(this.d.d.j.e(this.b).c);
}
{
this.d = this;
this.b = th;
}
};
if (bfz.f != 0) {
ieS.e(bfz.f);
return;
}
return;
}
bFZ bfz2 = this.d;
C0690Mh.IeS ieS2 = C0690Mh.IeS.NAVIGATE_BACK;
if (bfz2.b(th)) {
bfz2.d(bfz2.j.b(th, ieS2));
}
}
public static /* synthetic */ void d(Sts sts, C17770zcx c17770zcx, InterfaceC9382dig interfaceC9382dig) {
int i;
C17239vB c17239vB = sts.d.a;
OL ol = sts.d.e.b;
String str = sts.d.b;
OI c = OI.c();
c.b = ol;
c.a = (String) C16157lj.c(new Object[]{c17239vB, c17770zcx.b}, 838289628, -838289623, System.identityHashCode(c17239vB));
c.d = c17239vB.e("Y".equals(str) ? C15715hv.tOB.purchase_remark_post : C15715hv.tOB.purchase_remark_no_post);
c.f = c17239vB.e(ol.p == null ? C15715hv.tOB.redeem_success : C15715hv.tOB.redeem_success_scheduled);
if (ol.p == null) {
i = C15715hv.tOB.success_sub_title;
} else {
i = C15715hv.tOB.success_schedule_sub_title;
}
c.e = c17239vB.e(i);
interfaceC9382dig.c(c);
}
public /* synthetic */ Sts(bFZ bfz, byte b) {
this(bfz);
}
}
static /* synthetic */ void a(bFZ bfz) {
if (bfz.f != 0) {
bfz.f.ar_();
}
}
static /* synthetic */ void b(bFZ bfz) {
if (bfz.f != 0) {
bfz.f.ar_();
}
}
}