258 lines
8.5 KiB
Java
258 lines
8.5 KiB
Java
package o;
|
|
|
|
import com.scb.phone.domain.interactor.emailverification.EmailMeVerificationCodeUseCase;
|
|
import com.scb.phone.domain.interactor.emailverification.EnterVerificationCodeUseCase;
|
|
import o.C0690Mh;
|
|
import o.C5584bvn;
|
|
import o.ZI;
|
|
import o.wRi;
|
|
|
|
/* renamed from: o.bvn, reason: case insensitive filesystem */
|
|
/* loaded from: classes4.dex */
|
|
public final class C5584bvn extends ZI<InterfaceC9302dhF> {
|
|
public Sts a;
|
|
public long b;
|
|
private String c;
|
|
public final C16709qZO d;
|
|
public final C16018kXg e;
|
|
private final C16898sG g;
|
|
private String h;
|
|
private String i;
|
|
|
|
/* renamed from: o, reason: collision with root package name */
|
|
private final EnterVerificationCodeUseCase f8589o;
|
|
|
|
/* renamed from: o.bvn$Sts */
|
|
/* loaded from: classes4.dex */
|
|
public enum Sts {
|
|
NEW_VERIFICATION_CODE,
|
|
ENTER_VERIFICATION_CODE
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
@InterfaceC13391fZD
|
|
public C5584bvn(C16903sI c16903sI, C16018kXg c16018kXg, C16709qZO c16709qZO, EnterVerificationCodeUseCase enterVerificationCodeUseCase, C16898sG c16898sG) {
|
|
super(c16903sI);
|
|
C14957gcv.e(c16903sI, "");
|
|
C14957gcv.e(c16018kXg, "");
|
|
C14957gcv.e(c16709qZO, "");
|
|
C14957gcv.e(enterVerificationCodeUseCase, "");
|
|
C14957gcv.e(c16898sG, "");
|
|
this.e = c16018kXg;
|
|
this.d = c16709qZO;
|
|
this.f8589o = enterVerificationCodeUseCase;
|
|
this.g = c16898sG;
|
|
this.c = "";
|
|
this.h = "";
|
|
this.i = "";
|
|
this.a = Sts.ENTER_VERIFICATION_CODE;
|
|
}
|
|
|
|
/* renamed from: o.bvn$RVV */
|
|
/* loaded from: classes4.dex */
|
|
public static final class RVV extends wRi.LWm<C17258vKi> {
|
|
private C5584bvn c;
|
|
|
|
public RVV(C5584bvn c5584bvn) {
|
|
this.c = c5584bvn;
|
|
}
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final /* synthetic */ void onNext(Object obj) {
|
|
C17258vKi c17258vKi = (C17258vKi) obj;
|
|
C14957gcv.e(c17258vKi, "");
|
|
super.onNext(c17258vKi);
|
|
C5584bvn c5584bvn = this.c;
|
|
String str = c17258vKi.a;
|
|
if (str == null) {
|
|
str = "";
|
|
}
|
|
c5584bvn.c = str;
|
|
C5584bvn c5584bvn2 = this.c;
|
|
String str2 = c17258vKi.e;
|
|
if (str2 == null) {
|
|
str2 = "";
|
|
}
|
|
c5584bvn2.h = str2;
|
|
C5584bvn c5584bvn3 = this.c;
|
|
String str3 = c17258vKi.d;
|
|
c5584bvn3.i = str3 != null ? str3 : "";
|
|
if (this.c.h.length() != 0 || this.c.i.length() != 0) {
|
|
this.c.a = Sts.ENTER_VERIFICATION_CODE;
|
|
} else {
|
|
this.c.a = Sts.NEW_VERIFICATION_CODE;
|
|
}
|
|
C5584bvn.f(this.c);
|
|
final C5584bvn c5584bvn4 = this.c;
|
|
ZI.IeS ieS = new ZI.IeS(c5584bvn4) { // from class: o.bvo
|
|
private C5584bvn c;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj2) {
|
|
C5584bvn.RVV.b(this.c, (InterfaceC9302dhF) obj2);
|
|
}
|
|
|
|
{
|
|
this.c = c5584bvn4;
|
|
}
|
|
};
|
|
if (c5584bvn4.f != 0) {
|
|
ieS.e(c5584bvn4.f);
|
|
}
|
|
}
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final void onError(Throwable th) {
|
|
C14957gcv.e(th, "");
|
|
super.onError(th);
|
|
C5584bvn.e(this.c, th, C0690Mh.IeS.NAVIGATE_BACK);
|
|
}
|
|
|
|
public static /* synthetic */ void b(C5584bvn c5584bvn, InterfaceC9302dhF interfaceC9302dhF) {
|
|
C14957gcv.e(c5584bvn, "");
|
|
interfaceC9302dhF.e(c5584bvn.c);
|
|
if (c5584bvn.a.equals(Sts.NEW_VERIFICATION_CODE)) {
|
|
interfaceC9302dhF.a();
|
|
}
|
|
}
|
|
}
|
|
|
|
/* renamed from: o.bvn$LWm */
|
|
/* loaded from: classes4.dex */
|
|
public static final class LWm extends wRi.LWm<C17258vKi> {
|
|
private C5584bvn e;
|
|
|
|
public LWm(C5584bvn c5584bvn) {
|
|
this.e = c5584bvn;
|
|
}
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final /* synthetic */ void onNext(Object obj) {
|
|
final C17258vKi c17258vKi = (C17258vKi) obj;
|
|
C14957gcv.e(c17258vKi, "");
|
|
super.onNext(c17258vKi);
|
|
C5584bvn.f(this.e);
|
|
final C5584bvn c5584bvn = this.e;
|
|
ZI.IeS ieS = new ZI.IeS(c17258vKi, c5584bvn) { // from class: o.bvj
|
|
private C17258vKi a;
|
|
private C5584bvn d;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj2) {
|
|
C5584bvn.LWm.d(this.a, this.d, (InterfaceC9302dhF) obj2);
|
|
}
|
|
|
|
{
|
|
this.a = c17258vKi;
|
|
this.d = c5584bvn;
|
|
}
|
|
};
|
|
if (c5584bvn.f != 0) {
|
|
ieS.e(c5584bvn.f);
|
|
}
|
|
}
|
|
|
|
@Override // o.wRi.LWm, o.InterfaceC13174fSv
|
|
public final void onError(final Throwable th) {
|
|
C14957gcv.e(th, "");
|
|
super.onError(th);
|
|
if (th instanceof EmailMeVerificationCodeUseCase.EmailVerificationCodeNotSendException) {
|
|
final C5584bvn c5584bvn = this.e;
|
|
ZI.IeS ieS = new ZI.IeS(c5584bvn) { // from class: o.bvq
|
|
private C5584bvn a;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C5584bvn.LWm.d(this.a, (InterfaceC9302dhF) obj);
|
|
}
|
|
|
|
{
|
|
this.a = c5584bvn;
|
|
}
|
|
};
|
|
if (c5584bvn.f != 0) {
|
|
ieS.e(c5584bvn.f);
|
|
}
|
|
} else {
|
|
final C5584bvn c5584bvn2 = this.e;
|
|
ZI.IeS ieS2 = new ZI.IeS(c5584bvn2, th) { // from class: o.bvs
|
|
private C5584bvn a;
|
|
private Throwable d;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C5584bvn.LWm.b(this.a, this.d, (InterfaceC9302dhF) obj);
|
|
}
|
|
|
|
{
|
|
this.a = c5584bvn2;
|
|
this.d = th;
|
|
}
|
|
};
|
|
if (c5584bvn2.f != 0) {
|
|
ieS2.e(c5584bvn2.f);
|
|
}
|
|
}
|
|
C5584bvn.f(this.e);
|
|
}
|
|
|
|
public static /* synthetic */ void b(C5584bvn c5584bvn, Throwable th, InterfaceC9302dhF interfaceC9302dhF) {
|
|
C14957gcv.e(c5584bvn, "");
|
|
C14957gcv.e(th, "");
|
|
interfaceC9302dhF.e(c5584bvn.j.e(th));
|
|
}
|
|
|
|
public static /* synthetic */ void d(C5584bvn c5584bvn, InterfaceC9302dhF interfaceC9302dhF) {
|
|
C14957gcv.e(c5584bvn, "");
|
|
C0693Mj h = c5584bvn.g.h();
|
|
C14957gcv.c(h, "");
|
|
interfaceC9302dhF.b(h);
|
|
}
|
|
|
|
public static /* synthetic */ void d(C17258vKi c17258vKi, C5584bvn c5584bvn, InterfaceC9302dhF interfaceC9302dhF) {
|
|
C14957gcv.e(c17258vKi, "");
|
|
C14957gcv.e(c5584bvn, "");
|
|
String str = c17258vKi.d;
|
|
if (str == null) {
|
|
str = "";
|
|
}
|
|
String str2 = c17258vKi.e;
|
|
interfaceC9302dhF.e(str, str2 != null ? str2 : "", c5584bvn.c);
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void b(C5584bvn c5584bvn, InterfaceC9302dhF interfaceC9302dhF) {
|
|
C14957gcv.e(c5584bvn, "");
|
|
interfaceC9302dhF.e(c5584bvn.i, c5584bvn.h, c5584bvn.c);
|
|
}
|
|
|
|
public static final /* synthetic */ void f(C5584bvn c5584bvn) {
|
|
if (c5584bvn.f != 0) {
|
|
c5584bvn.f.ar_();
|
|
}
|
|
}
|
|
|
|
public static final /* synthetic */ void e(C5584bvn c5584bvn, Throwable th, C0690Mh.IeS ieS) {
|
|
if (c5584bvn.b(th)) {
|
|
c5584bvn.d(c5584bvn.j.d(th, ieS));
|
|
}
|
|
}
|
|
|
|
@Override // o.ZI
|
|
public final void w_() {
|
|
C16709qZO c16709qZO = this.d;
|
|
if (!c16709qZO.h.isDisposed()) {
|
|
c16709qZO.h.dispose();
|
|
}
|
|
EnterVerificationCodeUseCase enterVerificationCodeUseCase = this.f8589o;
|
|
if (!enterVerificationCodeUseCase.h.isDisposed()) {
|
|
enterVerificationCodeUseCase.h.dispose();
|
|
}
|
|
C16018kXg c16018kXg = this.e;
|
|
if (!c16018kXg.h.isDisposed()) {
|
|
c16018kXg.h.dispose();
|
|
}
|
|
super.w_();
|
|
}
|
|
}
|