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

1554 lines
52 KiB
Java

package o;
import com.scb.phone.domain.errors.RetrofitException;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import o.C0690Mh;
import o.C15715hv;
import o.C6691caG;
import o.InterfaceC9427djY;
import o.PRA;
import o.PSL;
import o.ZI;
import o.wRi;
import org.threeten.bp.OffsetDateTime;
/* renamed from: o.caG */
/* loaded from: classes4.dex */
public final class C6691caG extends ZI<InterfaceC9427djY.IeS> {
private boolean A;
private boolean B;
private boolean C;
private boolean D;
private boolean E;
private boolean F;
private boolean G;
private boolean H;
private boolean I;
private final THd K;
private final fAZ L;
private final C17529xY M;
public List<? extends C0985Ta> a;
public boolean b;
public List<? extends C0405Fw> c;
public final vij d;
public final C15970jz e;
public boolean g;
public final qBc h;
public final C17800zpz i;
public final C15882jPm k;
public SA l;
public SE m;
public final String n;
/* renamed from: o */
public final C17524xW f8631o;
private boolean p;
private final C16127lV q;
private int r;
private final C17695yw s;
private boolean t;
private boolean u;
private boolean v;
private boolean w;
private boolean x;
private boolean y;
private boolean z;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C6691caG(C15970jz c15970jz, fAZ faz, vij vijVar, C17800zpz c17800zpz, qBc qbc, THd tHd, C17695yw c17695yw, C16127lV c16127lV, C17524xW c17524xW, C17529xY c17529xY, C15882jPm c15882jPm, String str, C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(c15970jz, "");
C14957gcv.e(faz, "");
C14957gcv.e(vijVar, "");
C14957gcv.e(c17800zpz, "");
C14957gcv.e(qbc, "");
C14957gcv.e(tHd, "");
C14957gcv.e(c17695yw, "");
C14957gcv.e(c16127lV, "");
C14957gcv.e(c17524xW, "");
C14957gcv.e(c17529xY, "");
C14957gcv.e(c15882jPm, "");
C14957gcv.e(str, "");
C14957gcv.e(c16903sI, "");
this.e = c15970jz;
this.L = faz;
this.d = vijVar;
this.i = c17800zpz;
this.h = qbc;
this.K = tHd;
this.s = c17695yw;
this.q = c16127lV;
this.f8631o = c17524xW;
this.M = c17529xY;
this.k = c15882jPm;
this.n = str;
this.m = new SE((byte) 0);
this.F = true;
}
/* renamed from: o.caG$Sts */
/* loaded from: classes4.dex */
public static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<C8640dRc, C14866gag> {
private C6691caG b;
private InterfaceC9427djY.IeS e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(C8640dRc c8640dRc) {
C8640dRc c8640dRc2 = c8640dRc;
C14957gcv.e(c8640dRc2, "");
C17529xY unused = this.b.M;
SI c = C17529xY.c(c8640dRc2);
InterfaceC9427djY.IeS ieS = this.e;
C6691caG c6691caG = this.b;
ieS.c(c);
ieS.l();
c6691caG.b(c);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
Sts(C6691caG c6691caG, InterfaceC9427djY.IeS ieS) {
super(1);
this.b = c6691caG;
this.e = ieS;
}
}
/* renamed from: o.caG$saX */
/* loaded from: classes4.dex */
public static final class saX extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C6691caG c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C6691caG c6691caG = this.c;
c6691caG.d(c6691caG.j.d(th2, C0690Mh.IeS.NAVIGATE_BACK));
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
saX(C6691caG c6691caG) {
super(1);
this.c = c6691caG;
}
}
/* renamed from: o.caG$HBt */
/* loaded from: classes4.dex */
public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C6691caG e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C6691caG c6691caG = this.e;
c6691caG.d(c6691caG.j.d(th2, C0690Mh.IeS.NAVIGATE_BACK));
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public HBt(C6691caG c6691caG) {
super(1);
this.e = c6691caG;
}
}
/* renamed from: o.caG$LWm */
/* loaded from: classes4.dex */
public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<C8640dRc, C14866gag> {
private C6691caG d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(C8640dRc c8640dRc) {
C8640dRc c8640dRc2 = c8640dRc;
C14957gcv.e(c8640dRc2, "");
C6691caG.o(this.d);
C17529xY unused = this.d.M;
this.d.b(C17529xY.c(c8640dRc2));
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public LWm(C6691caG c6691caG) {
super(1);
this.d = c6691caG;
}
}
public final void e(String str, boolean z) {
C14957gcv.e(str, "");
C14957gcv.e(str, "");
this.H = !gjJ.b((CharSequence) str) && str.length() == 10 && THd.b(str);
ZI.IeS ieS = new ZI.IeS(z, str, this) { // from class: o.caL
private C6691caG a;
private String b;
private boolean d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6691caG.a(this.d, this.b, this.a, (InterfaceC9427djY.IeS) obj);
}
{
this.d = z;
this.b = str;
this.a = this;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
if (this.H) {
this.m.c = cXG.a("dd/MM/yyyy", C15240gl.b(C15240gl.e(str, "/"))).format(C15554gto.ofPattern("dd/MM/yyyy"));
} else {
this.m.c = null;
}
C6706caV c6706caV = new C6706caV(this);
if (this.f != 0) {
c6706caV.e(this.f);
}
}
public final void c(String str, boolean z) {
C14957gcv.e(str, "");
this.G = a(str, true);
ZI.IeS ieS = new ZI.IeS(z, str, this) { // from class: o.cbd
private boolean a;
private String c;
private C6691caG e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6691caG.d(this.a, this.c, this.e, (InterfaceC9427djY.IeS) obj);
}
{
this.a = z;
this.c = str;
this.e = this;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
if (this.G) {
this.m.m = e(str);
} else {
this.m.m = null;
}
C6706caV c6706caV = new C6706caV(this);
if (this.f != 0) {
c6706caV.e(this.f);
}
}
public final void b(String str, boolean z) {
C14957gcv.e(str, "");
this.E = a(str, false);
ZI.IeS ieS = new ZI.IeS(z, str, this) { // from class: o.caM
private boolean a;
private String c;
private C6691caG d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6691caG.c(this.a, this.c, this.d, (InterfaceC9427djY.IeS) obj);
}
{
this.a = z;
this.c = str;
this.d = this;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
if (this.E) {
this.m.f8365o = e(str);
} else {
this.m.f8365o = null;
}
C6706caV c6706caV = new C6706caV(this);
if (this.f != 0) {
c6706caV.e(this.f);
}
}
public final void d(String str, boolean z) {
C14957gcv.e(str, "");
boolean z2 = !gjJ.b((CharSequence) str) && str.length() == 17;
this.I = z2;
if (!z && z2) {
this.m.d = gdZ.a(str, "-", "");
}
ZI.IeS ieS = new ZI.IeS(z, str, this) { // from class: o.caX
private C6691caG a;
private boolean c;
private String d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6691caG.b(this.c, this.d, this.a, (InterfaceC9427djY.IeS) obj);
}
{
this.c = z;
this.d = str;
this.a = this;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
C6706caV c6706caV = new C6706caV(this);
if (this.f != 0) {
c6706caV.e(this.f);
}
}
/* renamed from: o.caG$ZqN */
/* loaded from: classes4.dex */
public static final class ZqN extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private C6691caG d;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
this.d.b = true;
C6691caG.o(this.d);
C6691caG c6691caG = this.d;
ZI.IeS ieS = new ZI.IeS(c6691caG) { // from class: o.cbl
private C6691caG b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6691caG.ZqN.e(this.b, (InterfaceC9427djY.IeS) obj);
}
{
this.b = c6691caG;
}
};
if (c6691caG.f != 0) {
ieS.e(c6691caG.f);
}
return C14866gag.c;
}
public static /* synthetic */ void e(C6691caG c6691caG, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c6691caG, "");
ieS.a(c6691caG.m);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public ZqN(C6691caG c6691caG) {
super(0);
this.d = c6691caG;
}
}
/* renamed from: o.caG$ojQ */
/* loaded from: classes4.dex */
public static final class ojQ extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C6691caG c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C6691caG c6691caG = this.c;
C14957gcv.e(th2, "");
ZI.IeS ieS = new ZI.IeS(c6691caG, th2) { // from class: o.caI
private Throwable b;
private C6691caG e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6691caG.a(this.e, this.b, (InterfaceC9427djY.IeS) obj);
}
{
this.e = c6691caG;
this.b = th2;
}
};
if (c6691caG.f != 0) {
ieS.e(c6691caG.f);
}
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public ojQ(C6691caG c6691caG) {
super(1);
this.c = c6691caG;
}
}
/* renamed from: o.caG$jbe */
/* loaded from: classes4.dex */
public static final class jbe extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C6691caG d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C6691caG.d(this.d, th2, C0690Mh.IeS.NAVIGATE_BACK);
this.d.b = true;
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public jbe(C6691caG c6691caG) {
super(1);
this.d = c6691caG;
}
}
/* renamed from: o.caG$tOB */
/* loaded from: classes4.dex */
public static final class tOB extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private C6691caG e;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
this.e.b = true;
C6691caG.o(this.e);
C6691caG c6691caG = this.e;
C6706caV c6706caV = new C6706caV(c6691caG);
if (c6691caG.f != 0) {
c6706caV.e(c6691caG.f);
}
C6691caG c6691caG2 = this.e;
ZI.IeS ieS = new ZI.IeS() { // from class: o.cbn
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9427djY.IeS) obj).E();
}
};
if (c6691caG2.f != 0) {
ieS.e(c6691caG2.f);
}
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public tOB(C6691caG c6691caG) {
super(0);
this.e = c6691caG;
}
}
@Override // o.ZI
public final void w_() {
this.e.a();
fAZ faz = this.L;
if (!faz.h.isDisposed()) {
faz.h.dispose();
}
super.w_();
}
/* renamed from: o.caG$RVV */
/* loaded from: classes4.dex */
public final class RVV extends wRi.LWm<List<? extends Xfo>> {
private C6691caG e;
public RVV(C6691caG c6691caG) {
this.e = c6691caG;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
List list = (List) obj;
C14957gcv.e(list, "");
C6691caG.o(this.e);
if (!list.isEmpty()) {
this.e.B = true;
C6691caG c6691caG = this.e;
C17695yw unused = c6691caG.s;
c6691caG.a = (List) C16157lj.c(new Object[]{list, new InterfaceC1244Ytw(this.e) { // from class: o.cbi
private C6691caG b;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj2) {
return C6691caG.RVV.e(this.b, (Xfo) obj2);
}
{
this.b = r1;
}
}}, -1846295624, 1846295631, (int) System.currentTimeMillis());
C6691caG c6691caG2 = this.e;
ZI.IeS ieS = new ZI.IeS(c6691caG2, this) { // from class: o.cbk
private C6691caG.RVV d;
private C6691caG e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C6691caG.RVV.c(this.e, this.d, (InterfaceC9427djY.IeS) obj2);
}
{
this.e = c6691caG2;
this.d = this;
}
};
if (c6691caG2.f != 0) {
ieS.e(c6691caG2.f);
return;
}
return;
}
C6691caG.a(this.e, new Throwable());
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C14957gcv.e(th, "");
C6691caG.a(this.e, th);
}
/* renamed from: o.caG$RVV$Sts */
/* loaded from: classes4.dex */
public static final class Sts extends AbstractC14961gcz implements InterfaceC14937gcb<C0985Ta, C0985Ta, Integer> {
private RVV e;
@Override // o.InterfaceC14937gcb
public final /* synthetic */ Integer invoke(C0985Ta c0985Ta, C0985Ta c0985Ta2) {
C0985Ta c0985Ta3 = c0985Ta;
C0985Ta c0985Ta4 = c0985Ta2;
C14957gcv.e(c0985Ta3, "");
C14957gcv.e(c0985Ta4, "");
return Integer.valueOf(RVV.d(c0985Ta3, c0985Ta4));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
Sts(RVV rvv) {
super(2);
this.e = rvv;
}
}
/* renamed from: o.caG$RVV$LWm */
/* loaded from: classes4.dex */
public static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<C0985Ta, String> {
public static final LWm d = new LWm();
@Override // o.InterfaceC14894gbR
public final /* synthetic */ String invoke(C0985Ta c0985Ta) {
C0985Ta c0985Ta2 = c0985Ta;
C14957gcv.e(c0985Ta2, "");
return c0985Ta2.f;
}
LWm() {
super(1);
}
}
public static /* synthetic */ String c(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
C14957gcv.e(interfaceC14894gbR, "");
return (String) interfaceC14894gbR.invoke(obj);
}
public static /* synthetic */ void c(C6691caG c6691caG, RVV rvv, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c6691caG, "");
C14957gcv.e(rvv, "");
YKU yku = new YKU(c6691caG.a);
YKU yku2 = new YKU(yku.a, new C17745zRk(yku.b, new Comparator(new Sts(rvv)) { // from class: o.cbg
private InterfaceC14937gcb e;
@Override // java.util.Comparator
public final int compare(Object obj, Object obj2) {
return C6691caG.RVV.d(this.e, obj, obj2);
}
{
this.e = r1;
}
}));
ieS.d((List<String>) new YKU(yku2.a, new wxK(yku2.b, new InterfaceC1244Ytw(LWm.d) { // from class: o.cbj
private InterfaceC14894gbR e;
@Override // o.InterfaceC1244Ytw
public final Object d(Object obj) {
return C6691caG.RVV.c(this.e, obj);
}
{
this.e = r1;
}
})).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())));
}
public static /* synthetic */ int d(InterfaceC14937gcb interfaceC14937gcb, Object obj, Object obj2) {
C14957gcv.e(interfaceC14937gcb, "");
return ((Number) interfaceC14937gcb.invoke(obj, obj2)).intValue();
}
public static /* synthetic */ C0985Ta e(C6691caG c6691caG, Xfo xfo) {
C14957gcv.e(c6691caG, "");
C17695yw unused = c6691caG.s;
return C17695yw.c(xfo, c6691caG.L.b.M());
}
public static final /* synthetic */ int d(C0985Ta c0985Ta, C0985Ta c0985Ta2) {
if (c0985Ta.h > c0985Ta2.h) {
return 1;
}
return c0985Ta2.h > c0985Ta.h ? -1 : 0;
}
}
private boolean a(String str, boolean z) {
int compareTo;
C14957gcv.e(str, "");
if (!gjJ.b((CharSequence) str) && str.length() == 10) {
Boolean c = cXG.c(C15240gl.b(C15240gl.e(str, "/")), "dd/MM/yyyy");
C14957gcv.c(c, "");
if (c.booleanValue()) {
OffsetDateTime d = C15602gz.d("dd/MM/yyyy", C15240gl.b(C15240gl.e(str, "/")));
if (z) {
compareTo = d.toLocalDate().compareTo((gsJ) OffsetDateTime.now().toLocalDate());
} else {
compareTo = OffsetDateTime.now().toLocalDate().compareTo((gsJ) d.toLocalDate());
}
if (compareTo <= 0) {
return true;
}
}
}
return false;
}
/* renamed from: o.caG$ZnX */
/* loaded from: classes4.dex */
public static final class ZnX extends wRi.LWm<zwR> {
private C6691caG b;
private String c;
public ZnX(C6691caG c6691caG, String str) {
this.b = c6691caG;
this.c = str;
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final /* synthetic */ void onNext(Object obj) {
zwR zwr = (zwR) obj;
C14957gcv.e(zwr, "");
C6691caG c6691caG = this.b;
c6691caG.c = c6691caG.q.a(zwr, this.c);
if (!gdZ.a("th", this.c, true)) {
Collections.sort(this.b.c, new Comparator(RVV.e) { // from class: o.cbp
private InterfaceC14937gcb e;
@Override // java.util.Comparator
public final int compare(Object obj2, Object obj3) {
return C6691caG.ZnX.e(this.e, obj2, obj3);
}
{
this.e = r1;
}
});
}
ArrayList arrayList = new ArrayList();
List list = this.b.c;
if (list != null) {
C6691caG c6691caG2 = this.b;
int size = list.size();
for (int i = 0; i < size; i++) {
if (gdZ.a("TH", ((C0405Fw) list.get(i)).b, true)) {
c6691caG2.r = i;
}
String str = ((C0405Fw) list.get(i)).d;
C14957gcv.c((Object) str, "");
arrayList.add(str);
}
}
C0405Fw c0405Fw = new C0405Fw();
c0405Fw.c = arrayList;
c0405Fw.a = zwr.a;
C6691caG c6691caG3 = this.b;
ZI.IeS ieS = new ZI.IeS(c0405Fw, c6691caG3) { // from class: o.cbo
private C0405Fw a;
private C6691caG c;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C6691caG.ZnX.e(this.a, this.c, (InterfaceC9427djY.IeS) obj2);
}
{
this.a = c0405Fw;
this.c = c6691caG3;
}
};
if (c6691caG3.f != 0) {
ieS.e(c6691caG3.f);
}
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onComplete() {
if (this.b.l != null) {
SA sa = this.b.l;
if (!C14957gcv.b((Object) (sa != null ? sa.f8354o : null), (Object) "DEFAULT")) {
return;
}
}
C6691caG.o(this.b);
}
@Override // o.wRi.LWm, o.InterfaceC13174fSv
public final void onError(Throwable th) {
C14957gcv.e(th, "");
C6691caG.a(this.b, th);
}
/* renamed from: o.caG$ZnX$RVV */
/* loaded from: classes4.dex */
static final class RVV extends AbstractC14961gcz implements InterfaceC14937gcb<C0405Fw, C0405Fw, Integer> {
public static final RVV e = new RVV();
@Override // o.InterfaceC14937gcb
public final /* synthetic */ Integer invoke(C0405Fw c0405Fw, C0405Fw c0405Fw2) {
C0405Fw c0405Fw3 = c0405Fw;
C0405Fw c0405Fw4 = c0405Fw2;
C14957gcv.e(c0405Fw3, "");
C14957gcv.e(c0405Fw4, "");
String str = c0405Fw3.d;
String str2 = c0405Fw4.d;
C14957gcv.c((Object) str2, "");
return Integer.valueOf(str.compareTo(str2));
}
RVV() {
super(2);
}
}
public static /* synthetic */ void e(C0405Fw c0405Fw, C6691caG c6691caG, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c0405Fw, "");
C14957gcv.e(c6691caG, "");
ieS.d(c0405Fw, c6691caG.r);
}
public static /* synthetic */ int e(InterfaceC14937gcb interfaceC14937gcb, Object obj, Object obj2) {
C14957gcv.e(interfaceC14937gcb, "");
return ((Number) interfaceC14937gcb.invoke(obj, obj2)).intValue();
}
}
/* renamed from: o.caG$IeS */
/* loaded from: classes4.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
public static /* synthetic */ void a(boolean z, C6691caG c6691caG, boolean z2, String str, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c6691caG, "");
C14957gcv.e(str, "");
if (z) {
ieS.g();
c6691caG.y = true;
C6706caV c6706caV = new C6706caV(c6691caG);
if (c6691caG.f != 0) {
c6706caV.e(c6691caG.f);
return;
}
return;
}
if (!z2 || str.length() <= 0) {
return;
}
ieS.m(str);
ieS.z();
}
public static /* synthetic */ void c(boolean z, String str, C6691caG c6691caG, InterfaceC9427djY.IeS ieS) {
C14866gag c14866gag;
C14957gcv.e(str, "");
C14957gcv.e(c6691caG, "");
if (z || gjJ.b((CharSequence) str) || c6691caG.E) {
c14866gag = null;
} else {
ieS.N();
c14866gag = C14866gag.c;
}
if (c14866gag == null) {
ieS.h();
}
}
public static /* synthetic */ void a(C6691caG c6691caG, Throwable th, InterfaceC9427djY.IeS ieS) {
ggV ggv;
String str;
C14957gcv.e(c6691caG, "");
C14957gcv.e(th, "");
c6691caG.b = true;
if (c6691caG.f != 0) {
c6691caG.f.ar_();
}
ieS.d("ndid_common_cust_info_check_error");
if (th instanceof RetrofitException) {
RetrofitException retrofitException = (RetrofitException) th;
if (retrofitException.d == RetrofitException.RVV.API_ERROR && retrofitException.e != null) {
VCl vCl = retrofitException.e;
if ((vCl != null ? vCl.c : null) != null) {
VCl vCl2 = retrofitException.e;
Integer valueOf = (vCl2 == null || (ggv = vCl2.c) == null || (str = ggv.e) == null) ? null : Integer.valueOf(Integer.parseInt(str));
if (valueOf != null && valueOf.intValue() == 3000) {
SA sa = c6691caG.l;
String str2 = sa != null ? sa.y : null;
SA sa2 = c6691caG.l;
ieS.a(str2, sa2 != null ? sa2.c : null);
return;
}
if (valueOf != null && valueOf.intValue() == 9100) {
SA sa3 = c6691caG.l;
if (C14957gcv.b((Object) (sa3 != null ? sa3.c : null), (Object) "FastEasy")) {
ieS.e(C15715hv.tOB.common_ndid_dopa_or_detica_return_button);
}
SA sa4 = c6691caG.l;
String str3 = sa4 != null ? sa4.y : null;
SA sa5 = c6691caG.l;
ieS.c(str3, sa5 != null ? sa5.c : null);
return;
}
if (valueOf != null && valueOf.intValue() == 9101) {
ieS.r();
return;
}
}
}
}
ieS.e(c6691caG.j.e(th));
}
public static /* synthetic */ void e(boolean z, C6691caG c6691caG, boolean z2, String str, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c6691caG, "");
C14957gcv.e(str, "");
if (z) {
ieS.b();
c6691caG.p = true;
C6706caV c6706caV = new C6706caV(c6691caG);
if (c6691caG.f != 0) {
c6706caV.e(c6691caG.f);
return;
}
return;
}
if (!z2 || str.length() <= 0) {
return;
}
ieS.b(str);
ieS.c(c6691caG.g);
}
public static /* synthetic */ void c(boolean z, C6691caG c6691caG, boolean z2, String str, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c6691caG, "");
C14957gcv.e(str, "");
if (!z) {
if (z2) {
ieS.k(str);
ieS.F();
return;
}
return;
}
ieS.o();
c6691caG.z = true;
C6706caV c6706caV = new C6706caV(c6691caG);
if (c6691caG.f != 0) {
c6706caV.e(c6691caG.f);
}
}
public static /* synthetic */ void c(C6691caG c6691caG, int i, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c6691caG, "");
ieS.a(c6691caG.m.l, i);
}
public static /* synthetic */ void d(boolean z, C6691caG c6691caG, boolean z2, String str, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c6691caG, "");
C14957gcv.e(str, "");
if (z) {
ieS.f();
c6691caG.u = true;
C6706caV c6706caV = new C6706caV(c6691caG);
if (c6691caG.f != 0) {
c6706caV.e(c6691caG.f);
return;
}
return;
}
if (!z2 || str.length() <= 0) {
return;
}
ieS.h(str);
ieS.D();
}
public static /* synthetic */ void b(C6691caG c6691caG, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c6691caG, "");
if (c6691caG.f != 0) {
c6691caG.f.y();
}
ieS.d("ndid_common_cust_info_load");
C15970jz c15970jz = c6691caG.e;
SA sa = c6691caG.l;
String str = sa != null ? sa.u : null;
if (str == null) {
str = "";
}
SA sa2 = c6691caG.l;
String str2 = sa2 != null ? sa2.f8354o : null;
if (str2 == null) {
str2 = "";
}
Sts sts = new Sts(c6691caG, ieS);
saX sax = new saX(c6691caG);
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(sts, "");
C14957gcv.e(sax, "");
c15970jz.m.e(sts, sax, new PSL.RVV(str, str2), new fSC());
}
public static /* synthetic */ void c(String str, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(str, "");
ieS.c(str);
}
public static /* synthetic */ void b(boolean z, C6691caG c6691caG, boolean z2, String str, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c6691caG, "");
C14957gcv.e(str, "");
if (z) {
ieS.d();
c6691caG.t = true;
C6706caV c6706caV = new C6706caV(c6691caG);
if (c6691caG.f != 0) {
c6706caV.e(c6691caG.f);
return;
}
return;
}
if (!z2 || str.length() <= 0) {
return;
}
ieS.a(str);
ieS.w();
}
public static /* synthetic */ void d(boolean z, C6691caG c6691caG, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c6691caG, "");
if (z) {
ieS.m();
c6691caG.D = true;
C6706caV c6706caV = new C6706caV(c6691caG);
if (c6691caG.f != 0) {
c6706caV.e(c6691caG.f);
}
}
}
public static final /* synthetic */ void o(C6691caG c6691caG) {
if (c6691caG.f != 0) {
c6691caG.f.ar_();
}
}
private boolean a() {
String str = this.m.k;
return str != null && str.length() > 0 && str.length() == 12;
}
public final void c() {
String str;
if (this.m.l == null || (str = this.m.l) == null) {
return;
}
File file = new File(str);
if (file.exists() && file.delete()) {
guQ.c("deleteOldImage was deleted", new Object[0]);
}
}
public final void b() {
if (this.B) {
return;
}
if (this.f != 0) {
this.f.y();
}
fAZ faz = this.L;
faz.e("ndid");
faz.d(faz.i, new RVV(this));
}
public final void b(SI si) {
C14957gcv.e(si, "");
for (SH sh : si.c) {
String str = sh.e;
switch (str.hashCode()) {
case -1539781981:
if (str.equals("citizenId")) {
ZI.IeS ieS = new ZI.IeS(sh.b, this, sh.d, si.b.a) { // from class: o.cbf
private boolean a;
private C6691caG b;
private String d;
private boolean e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6691caG.b(this.a, this.b, this.e, this.d, (InterfaceC9427djY.IeS) obj);
}
{
this.a = r1;
this.b = this;
this.e = r3;
this.d = r4;
}
};
if (this.f != 0) {
ieS.e(this.f);
break;
} else {
break;
}
} else {
break;
}
case -1307248948:
if (str.equals("titleTH")) {
ZI.IeS ieS2 = new ZI.IeS(sh.b, this, sh.d, si.b.j) { // from class: o.caT
private C6691caG a;
private boolean b;
private boolean d;
private String e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6691caG.j(this.b, this.a, this.d, this.e, (InterfaceC9427djY.IeS) obj);
}
{
this.b = r1;
this.a = this;
this.d = r3;
this.e = r4;
}
};
if (this.f != 0) {
ieS2.e(this.f);
break;
} else {
break;
}
} else {
break;
}
case -1210031859:
if (str.equals("birthDate")) {
ZI.IeS ieS3 = new ZI.IeS(sh.b, this, sh.d, si.b.e) { // from class: o.cbe
private boolean a;
private String c;
private boolean d;
private C6691caG e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6691caG.e(this.d, this.e, this.a, this.c, (InterfaceC9427djY.IeS) obj);
}
{
this.d = r1;
this.e = this;
this.a = r3;
this.c = r4;
}
};
if (this.f != 0) {
ieS3.e(this.f);
break;
} else {
break;
}
} else {
break;
}
case -1193932988:
if (str.equals("firstNameEN")) {
boolean z = sh.b;
boolean z2 = sh.d;
String str2 = si.b.b;
if (str2 == null) {
str2 = "";
}
ZI.IeS ieS4 = new ZI.IeS(z, this, z2, str2) { // from class: o.cbc
private boolean a;
private C6691caG b;
private String c;
private boolean d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6691caG.f(this.d, this.b, this.a, this.c, (InterfaceC9427djY.IeS) obj);
}
{
this.d = z;
this.b = this;
this.a = z2;
this.c = str2;
}
};
if (this.f != 0) {
ieS4.e(this.f);
break;
} else {
break;
}
} else {
break;
}
case -1193932529:
if (str.equals("firstNameTH")) {
ZI.IeS ieS5 = new ZI.IeS(sh.b, this, sh.d, si.b.c) { // from class: o.caS
private boolean a;
private String b;
private boolean c;
private C6691caG e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6691caG.g(this.c, this.e, this.a, this.b, (InterfaceC9427djY.IeS) obj);
}
{
this.c = r1;
this.e = this;
this.a = r3;
this.b = r4;
}
};
if (this.f != 0) {
ieS5.e(this.f);
break;
} else {
break;
}
} else {
break;
}
case -835208851:
if (str.equals("expireDate")) {
boolean z3 = sh.b;
boolean z4 = sh.d;
String str3 = si.b.d;
if (str3 == null) {
str3 = "";
}
ZI.IeS ieS6 = new ZI.IeS(z3, this, z4, str3) { // from class: o.caO
private C6691caG a;
private String b;
private boolean d;
private boolean e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6691caG.d(this.e, this.a, this.d, this.b, (InterfaceC9427djY.IeS) obj);
}
{
this.e = z3;
this.a = this;
this.d = z4;
this.b = str3;
}
};
if (this.f != 0) {
ieS6.e(this.f);
break;
} else {
break;
}
} else {
break;
}
case 92847548:
if (str.equals("nationality")) {
ZI.IeS ieS7 = new ZI.IeS(sh.b, this, sh.d, si.b.h) { // from class: o.caJ
private boolean a;
private String c;
private boolean d;
private C6691caG e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6691caG.i(this.d, this.e, this.a, this.c, (InterfaceC9427djY.IeS) obj);
}
{
this.d = r1;
this.e = this;
this.a = r3;
this.c = r4;
}
};
if (this.f != 0) {
ieS7.e(this.f);
break;
} else {
break;
}
} else {
break;
}
case 102743755:
if (str.equals("laser")) {
ZI.IeS ieS8 = new ZI.IeS(sh.b, this) { // from class: o.cbh
private boolean a;
private C6691caG d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6691caG.d(this.a, this.d, (InterfaceC9427djY.IeS) obj);
}
{
this.a = r1;
this.d = this;
}
};
if (this.f != 0) {
ieS8.e(this.f);
break;
} else {
break;
}
} else {
break;
}
case 184285223:
if (str.equals("issueDate")) {
ZI.IeS ieS9 = new ZI.IeS(sh.b, this, sh.d, si.b.g) { // from class: o.caH
private C6691caG a;
private boolean b;
private String d;
private boolean e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6691caG.a(this.e, this.a, this.b, this.d, (InterfaceC9427djY.IeS) obj);
}
{
this.e = r1;
this.a = this;
this.b = r3;
this.d = r4;
}
};
if (this.f != 0) {
ieS9.e(this.f);
break;
} else {
break;
}
} else {
break;
}
case 1778893482:
if (str.equals("lastNameEN")) {
boolean z5 = sh.b;
boolean z6 = sh.d;
String str4 = si.b.f;
if (str4 == null) {
str4 = "";
}
ZI.IeS ieS10 = new ZI.IeS(z5, this, z6, str4) { // from class: o.caZ
private boolean a;
private C6691caG b;
private boolean c;
private String d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6691caG.c(this.c, this.b, this.a, this.d, (InterfaceC9427djY.IeS) obj);
}
{
this.c = z5;
this.b = this;
this.a = z6;
this.d = str4;
}
};
if (this.f != 0) {
ieS10.e(this.f);
break;
} else {
break;
}
} else {
break;
}
case 1778893941:
if (str.equals("lastNameTH")) {
ZI.IeS ieS11 = new ZI.IeS(sh.b, this, sh.d, si.b.i) { // from class: o.caF
private String a;
private C6691caG b;
private boolean c;
private boolean e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6691caG.h(this.e, this.b, this.c, this.a, (InterfaceC9427djY.IeS) obj);
}
{
this.e = r1;
this.b = this;
this.c = r3;
this.a = r4;
}
};
if (this.f != 0) {
ieS11.e(this.f);
break;
} else {
break;
}
} else {
break;
}
}
}
if (this.f != 0) {
this.f.ar_();
}
}
public final boolean d() {
String str;
String str2;
String str3;
String str4;
String str5;
String str6;
SE se = this.m;
SA sa = this.l;
return !(C14957gcv.b((Object) (sa != null ? sa.f8354o : null), (Object) "DEFAULT") && se.l == null && this.F) && (!((str = se.h) == null || str.length() == 0) || this.A) && ((this.G || this.y) && ((this.H || this.p) && ((this.E || this.u) && ((!((str2 = se.a) == null || str2.length() == 0) || this.w) && ((!((str3 = se.j) == null || str3.length() == 0) || this.C) && ((!((str4 = se.b) == null || str4.length() == 0) || this.v) && ((!((str5 = se.i) == null || str5.length() == 0) || this.z) && ((!((str6 = se.g) == null || str6.length() == 0) || this.x) && ((a() || this.D) && (this.I || this.t))))))))));
}
public static final /* synthetic */ void a(C6691caG c6691caG, Throwable th) {
if (c6691caG.b(th)) {
c6691caG.d(c6691caG.j.e(th));
}
}
public static /* synthetic */ void a(Boolean bool, C6691caG c6691caG, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c6691caG, "");
C14866gag c14866gag = null;
if (bool != null) {
boolean booleanValue = bool.booleanValue();
c6691caG.F = booleanValue;
if (booleanValue) {
ieS.R();
c14866gag = C14866gag.c;
}
if (c14866gag == null) {
ieS.l();
}
c14866gag = C14866gag.c;
}
if (c14866gag == null) {
ieS.R();
}
}
public static final /* synthetic */ void d(C6691caG c6691caG, Throwable th, C0690Mh.IeS ieS) {
if (c6691caG.b(th)) {
c6691caG.d(c6691caG.j.d(th, ieS));
}
}
public static /* synthetic */ void j(boolean z, C6691caG c6691caG, boolean z2, String str, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c6691caG, "");
C14957gcv.e(str, "");
if (!z) {
if (z2) {
ieS.n(str);
ieS.H();
return;
}
return;
}
ieS.s();
c6691caG.A = true;
C6706caV c6706caV = new C6706caV(c6691caG);
if (c6691caG.f != 0) {
c6706caV.e(c6691caG.f);
}
}
public static /* synthetic */ void h(boolean z, C6691caG c6691caG, boolean z2, String str, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c6691caG, "");
C14957gcv.e(str, "");
if (!z) {
if (z2) {
ieS.l(str);
ieS.G();
return;
}
return;
}
ieS.k();
c6691caG.C = true;
C6706caV c6706caV = new C6706caV(c6691caG);
if (c6691caG.f != 0) {
c6706caV.e(c6691caG.f);
}
}
public static /* synthetic */ void g(boolean z, C6691caG c6691caG, boolean z2, String str, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c6691caG, "");
C14957gcv.e(str, "");
if (!z) {
if (z2) {
ieS.f(str);
ieS.C();
return;
}
return;
}
ieS.j();
c6691caG.w = true;
C6706caV c6706caV = new C6706caV(c6691caG);
if (c6691caG.f != 0) {
c6706caV.e(c6691caG.f);
}
}
public static /* synthetic */ void f(boolean z, C6691caG c6691caG, boolean z2, String str, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c6691caG, "");
C14957gcv.e(str, "");
if (!z) {
if (z2) {
ieS.g(str);
ieS.A();
return;
}
return;
}
ieS.i();
c6691caG.v = true;
C6706caV c6706caV = new C6706caV(c6691caG);
if (c6691caG.f != 0) {
c6706caV.e(c6691caG.f);
}
}
public static /* synthetic */ void i(boolean z, C6691caG c6691caG, boolean z2, String str, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c6691caG, "");
C14957gcv.e(str, "");
if (z || (c6691caG.g && z2 && str.length() == 0)) {
if (c6691caG.g) {
c6691caG.m.g = "TH";
}
ieS.e();
c6691caG.x = true;
C6706caV c6706caV = new C6706caV(c6691caG);
if (c6691caG.f != 0) {
c6706caV.e(c6691caG.f);
return;
}
return;
}
if (!z2 || str.length() <= 0) {
return;
}
ieS.e(str);
ieS.B();
}
public static /* synthetic */ void a(boolean z, String str, C6691caG c6691caG, InterfaceC9427djY.IeS ieS) {
C14866gag c14866gag;
C14957gcv.e(str, "");
C14957gcv.e(c6691caG, "");
if (z || gjJ.b((CharSequence) str) || c6691caG.H) {
c14866gag = null;
} else {
ieS.M();
c14866gag = C14866gag.c;
}
if (c14866gag == null) {
ieS.c();
}
}
public static /* synthetic */ void d(boolean z, String str, C6691caG c6691caG, InterfaceC9427djY.IeS ieS) {
C14866gag c14866gag;
C14957gcv.e(str, "");
C14957gcv.e(c6691caG, "");
if (z || gjJ.b((CharSequence) str) || c6691caG.G) {
c14866gag = null;
} else {
ieS.K();
c14866gag = C14866gag.c;
}
if (c14866gag == null) {
ieS.n();
}
}
public static /* synthetic */ void b(boolean z, String str, C6691caG c6691caG, InterfaceC9427djY.IeS ieS) {
C14866gag c14866gag;
C14957gcv.e(str, "");
C14957gcv.e(c6691caG, "");
if (z || gjJ.b((CharSequence) str) || c6691caG.I) {
c14866gag = null;
} else {
ieS.J();
c14866gag = C14866gag.c;
}
if (c14866gag == null) {
ieS.a();
}
}
private static String e(String str) {
C14957gcv.e(str, "");
String format = cXG.d(cXG.d("dd/MM/yyyy", str)).format(C15554gto.ofPattern("dd/MM/yyyy"));
C14957gcv.c((Object) format, "");
return format;
}
public static /* synthetic */ void c(C6691caG c6691caG, InterfaceC9427djY.IeS ieS) {
C14957gcv.e(c6691caG, "");
ieS.e(c6691caG.d());
}
static {
new IeS((byte) 0);
}
}