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

403 lines
13 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import com.scb.phone.domain.interactor.PinCase;
import java.util.concurrent.TimeUnit;
import o.C7229ckO;
import o.ZI;
import o.wRi;
/* renamed from: o.ckO */
/* loaded from: classes4.dex */
public class C7229ckO extends ZI<InterfaceC8960dah> {
public String a;
public AbstractC13163fSk<xWw> b;
public final C17767zc c;
public final PinCase d;
public String e;
public HBt g;
private AbstractC13163fSk<Long> h;
public final olI i;
/* renamed from: o.ckO$HBt */
/* loaded from: classes4.dex */
public enum HBt {
CURRENT,
NEW,
CONFIRM
}
@InterfaceC13391fZD
public C7229ckO(C16903sI c16903sI, PinCase pinCase, olI oli, C17767zc c17767zc) {
super(c16903sI);
this.d = pinCase;
this.i = oli;
this.c = c17767zc;
}
@Override // o.ZI
public final void w_() {
super.w_();
PinCase pinCase = this.d;
if (pinCase.h.isDisposed()) {
return;
}
pinCase.h.dispose();
}
/* renamed from: o.ckO$3 */
/* loaded from: classes4.dex */
public static /* synthetic */ class AnonymousClass3 {
public static final int[] c;
static {
int[] iArr = new int[HBt.values().length];
c = iArr;
try {
iArr[HBt.CURRENT.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
c[HBt.NEW.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
c[HBt.CONFIRM.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
}
}
public static /* synthetic */ void e(InterfaceC8960dah interfaceC8960dah) {
interfaceC8960dah.e();
interfaceC8960dah.g();
}
public static /* synthetic */ void b(InterfaceC8960dah interfaceC8960dah) {
interfaceC8960dah.g();
interfaceC8960dah.n();
}
public static /* synthetic */ void a(InterfaceC8960dah interfaceC8960dah) {
interfaceC8960dah.a();
interfaceC8960dah.g();
interfaceC8960dah.i();
interfaceC8960dah.d();
}
public static /* synthetic */ void c(InterfaceC8960dah interfaceC8960dah) {
interfaceC8960dah.g();
interfaceC8960dah.h();
interfaceC8960dah.d();
}
public static /* synthetic */ void i(InterfaceC8960dah interfaceC8960dah) {
interfaceC8960dah.ar_();
interfaceC8960dah.g();
interfaceC8960dah.k();
interfaceC8960dah.o();
interfaceC8960dah.e();
interfaceC8960dah.a();
}
public final void c(HBt hBt) {
C3412ax c3412ax;
if (hBt == HBt.CURRENT) {
PinCase pinCase = this.d;
c3412ax = new C3412ax((String) PinCase.e(new Object[]{pinCase}, 1368940871, -1368940839, System.identityHashCode(pinCase)));
} else {
PinCase pinCase2 = this.d;
c3412ax = new C3412ax((String) PinCase.e(new Object[]{pinCase2}, -2000385774, 2000385782, System.identityHashCode(pinCase2)));
}
this.h = AbstractC13163fSk.timer(1L, TimeUnit.SECONDS).cache();
PinCase pinCase3 = this.d;
AbstractC13163fSk<xWw> doOnComplete = ((AbstractC13163fSk) PinCase.e(new Object[]{pinCase3, c3412ax}, -302951404, 302951418, System.identityHashCode(pinCase3))).cache().doOnComplete(new fSP(this) { // from class: o.ckN
private C7229ckO e;
@Override // o.fSP
public final void c() {
this.e.h.subscribe();
}
{
this.e = this;
}
});
this.b = doOnComplete;
this.d.d(doOnComplete, new wRi.LWm());
}
/* renamed from: o.ckO$1 */
/* loaded from: classes4.dex */
public class AnonymousClass1 extends wRi.LWm<Boolean> {
private C7229ckO c;
public AnonymousClass1(C7229ckO c7229ckO) {
this.c = c7229ckO;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
C7229ckO.j(this.c);
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C7229ckO c7229ckO = this.c;
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.clg
private C7229ckO.AnonymousClass1 d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7229ckO.g(this.d.c);
}
{
this.d = this;
}
};
if (c7229ckO.f != 0) {
ieS.e(c7229ckO.f);
}
if (th instanceof PinCase.PinIncorrectLimitReachedException) {
C7229ckO c7229ckO2 = this.c;
C7304clk c7304clk = new C7304clk();
if (c7229ckO2.f != 0) {
c7304clk.e(c7229ckO2.f);
return;
}
return;
}
if (!(th instanceof PinCase.PinIncorrectException)) {
C0693Mj e = this.c.j.e(th);
C7229ckO c7229ckO3 = this.c;
ZI.IeS ieS2 = new ZI.IeS(this, e) { // from class: o.clm
private C7229ckO.AnonymousClass1 a;
private C0693Mj c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7229ckO.AnonymousClass1.a(this.a, this.c, (InterfaceC8960dah) obj);
}
{
this.a = this;
this.c = e;
}
};
if (c7229ckO3.f != 0) {
ieS2.e(c7229ckO3.f);
return;
}
return;
}
C7229ckO c7229ckO4 = this.c;
ZI.IeS ieS3 = new ZI.IeS(this, th) { // from class: o.clj
private C7229ckO.AnonymousClass1 c;
private Throwable d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7229ckO.AnonymousClass1.c(this.c, this.d, (InterfaceC8960dah) obj);
}
{
this.c = this;
this.d = th;
}
};
if (c7229ckO4.f != 0) {
ieS3.e(c7229ckO4.f);
}
}
public static /* synthetic */ void a(AnonymousClass1 anonymousClass1, C0693Mj c0693Mj, InterfaceC8960dah interfaceC8960dah) {
C7229ckO.f(anonymousClass1.c);
interfaceC8960dah.e(c0693Mj);
}
public static /* synthetic */ void c(AnonymousClass1 anonymousClass1, Throwable th, InterfaceC8960dah interfaceC8960dah) {
C7229ckO.f(anonymousClass1.c);
interfaceC8960dah.a(((PinCase.PinIncorrectException) th).e);
}
}
/* renamed from: o.ckO$5 */
/* loaded from: classes4.dex */
public class AnonymousClass5 extends wRi.LWm<srd> {
private C7229ckO a;
public AnonymousClass5(C7229ckO c7229ckO) {
this.a = c7229ckO;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
C7229ckO c7229ckO = this.a;
ZI.IeS ieS = new ZI.IeS() { // from class: o.cln
@Override // o.ZI.IeS
public final void e(Object obj2) {
C7229ckO.AnonymousClass5.c((InterfaceC8960dah) obj2);
}
};
if (c7229ckO.f != 0) {
ieS.e(c7229ckO.f);
}
}
public static /* synthetic */ void c(InterfaceC8960dah interfaceC8960dah) {
interfaceC8960dah.ar_();
interfaceC8960dah.f();
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C7229ckO c7229ckO = this.a;
ZI.IeS ieS = new ZI.IeS(this) { // from class: o.cll
private C7229ckO.AnonymousClass5 b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7229ckO.k(this.b.a);
}
{
this.b = this;
}
};
if (c7229ckO.f != 0) {
ieS.e(c7229ckO.f);
}
if (!(th instanceof PinCase.PinIncorrectLimitReachedException)) {
C0693Mj e = this.a.j.e(th);
C7229ckO c7229ckO2 = this.a;
ZI.IeS ieS2 = new ZI.IeS(this, e) { // from class: o.clq
private C7229ckO.AnonymousClass5 a;
private C0693Mj d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7229ckO.AnonymousClass5.b(this.a, this.d, (InterfaceC8960dah) obj);
}
{
this.a = this;
this.d = e;
}
};
if (c7229ckO2.f != 0) {
ieS2.e(c7229ckO2.f);
return;
}
return;
}
C7229ckO c7229ckO3 = this.a;
C7304clk c7304clk = new C7304clk();
if (c7229ckO3.f != 0) {
c7304clk.e(c7229ckO3.f);
}
}
public static /* synthetic */ void b(AnonymousClass5 anonymousClass5, C0693Mj c0693Mj, InterfaceC8960dah interfaceC8960dah) {
C7229ckO.f(anonymousClass5.a);
interfaceC8960dah.e(c0693Mj);
}
}
public static /* synthetic */ void d(InterfaceC8960dah interfaceC8960dah) {
interfaceC8960dah.a();
interfaceC8960dah.e();
}
public final void a() {
if (this.g != HBt.CONFIRM) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.clh
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC8960dah) obj).c();
}
};
if (this.f != 0) {
ieS.e(this.f);
return;
}
return;
}
this.g = HBt.NEW;
C7236ckV c7236ckV = new C7236ckV();
if (this.f != 0) {
c7236ckV.e(this.f);
}
}
public static /* synthetic */ InterfaceC13169fSq b(C7229ckO c7229ckO, String str, String str2) {
PinCase pinCase = c7229ckO.d;
return (AbstractC13163fSk) PinCase.e(new Object[]{pinCase, str, str2}, 514235689, -514235672, System.identityHashCode(pinCase));
}
public static /* synthetic */ InterfaceC13169fSq e(C7229ckO c7229ckO, C3412ax c3412ax) {
PinCase pinCase = c7229ckO.d;
return ((AbstractC13163fSk) PinCase.e(new Object[]{pinCase, c3412ax}, -302951404, 302951418, System.identityHashCode(pinCase))).doOnComplete(new fSP(c7229ckO) { // from class: o.ckX
private C7229ckO c;
@Override // o.fSP
public final void c() {
this.c.h.subscribe();
}
{
this.c = c7229ckO;
}
});
}
public static /* synthetic */ InterfaceC13169fSq d(C7229ckO c7229ckO, String str) {
PinCase pinCase = c7229ckO.d;
return (AbstractC13163fSk) PinCase.e(new Object[]{pinCase, str}, 551601489, -551601470, System.identityHashCode(pinCase));
}
public static /* synthetic */ InterfaceC13169fSq d(C7229ckO c7229ckO, C3412ax c3412ax) {
PinCase pinCase = c7229ckO.d;
return ((AbstractC13163fSk) PinCase.e(new Object[]{pinCase, c3412ax}, -302951404, 302951418, System.identityHashCode(pinCase))).doOnComplete(new fSP(c7229ckO) { // from class: o.clc
private C7229ckO e;
@Override // o.fSP
public final void c() {
this.e.h.subscribe();
}
{
this.e = c7229ckO;
}
});
}
static /* synthetic */ void f(C7229ckO c7229ckO) {
c7229ckO.g = HBt.CURRENT;
C7299clf c7299clf = new C7299clf();
if (c7229ckO.f != 0) {
c7299clf.e(c7229ckO.f);
}
c7229ckO.c(c7229ckO.g);
}
static /* synthetic */ void j(C7229ckO c7229ckO) {
c7229ckO.g = HBt.NEW;
C7236ckV c7236ckV = new C7236ckV();
if (c7229ckO.f != 0) {
c7236ckV.e(c7229ckO.f);
}
}
public static /* synthetic */ void g(C7229ckO c7229ckO) {
if (c7229ckO.f != 0) {
c7229ckO.f.ar_();
}
}
public static /* synthetic */ void k(C7229ckO c7229ckO) {
if (c7229ckO.f != 0) {
c7229ckO.f.ar_();
}
}
}