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

702 lines
23 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.res.Resources;
import com.facetec.sdk.FaceTecSessionResult;
import com.scb.phone.domain.errors.RetrofitException;
import java.io.File;
import o.Atw;
import o.C0690Mh;
import o.C15715hv;
import o.C16048kj;
import o.C7975cyV;
import o.MYh;
import o.ZI;
import o.juX;
import o.rRh;
/* renamed from: o.cyV, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C7975cyV extends AbstractC4304bWR<InterfaceC9592dme> {
private EnumC1262Zd b;
private final Resources d;
private final C16048kj e;
/* renamed from: o, reason: collision with root package name */
private kdN f8673o;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C7975cyV(C16903sI c16903sI, C16048kj c16048kj, Resources resources, mvt mvtVar, C15740iG c15740iG, Resources resources2) {
super(c16903sI, mvtVar, c15740iG, resources2);
C14957gcv.e(c16903sI, "");
C14957gcv.e(c16048kj, "");
C14957gcv.e(resources, "");
C14957gcv.e(mvtVar, "");
C14957gcv.e(c15740iG, "");
C14957gcv.e(resources2, "");
this.e = c16048kj;
this.d = resources;
}
/* renamed from: o.cyV$LWm */
/* loaded from: classes4.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
public final void c(EnumC1262Zd enumC1262Zd, kdN kdn) {
C14957gcv.e(enumC1262Zd, "");
C14957gcv.e(kdn, "");
super.c();
this.b = enumC1262Zd;
this.f8673o = kdn;
}
@Override // o.AbstractC4304bWR
public final void b(File file) {
C14957gcv.e(file, "");
EnumC1262Zd enumC1262Zd = this.b;
if (enumC1262Zd == null) {
C14957gcv.a("");
enumC1262Zd = null;
}
if (enumC1262Zd == EnumC1262Zd.FAST_EASY) {
String valueOf = String.valueOf(System.currentTimeMillis());
String e = e(file, valueOf);
C16048kj c16048kj = this.e;
saX sax = new saX(this);
tOB tob = new tOB(this);
String absolutePath = file.getAbsolutePath();
C14957gcv.c((Object) absolutePath, "");
int i = this.a.a;
int i2 = this.a.b;
C14957gcv.c((Object) e, "");
C14957gcv.e(sax, "");
C14957gcv.e(tob, "");
C14957gcv.e(absolutePath, "");
C14957gcv.e(e, "");
C14957gcv.e(valueOf, "");
c16048kj.d(c16048kj.c, new C16048kj.RVV(sax), tob, new Atw.LWm(absolutePath, i, i2, e, valueOf));
return;
}
String valueOf2 = String.valueOf(System.currentTimeMillis());
String e2 = e(file, valueOf2);
C16048kj c16048kj2 = this.e;
ojQ ojq = new ojQ(this);
jbe jbeVar = new jbe(this);
String absolutePath2 = file.getAbsolutePath();
C14957gcv.c((Object) absolutePath2, "");
int i3 = this.a.a;
int i4 = this.a.b;
C14957gcv.c((Object) e2, "");
C14957gcv.e(ojq, "");
C14957gcv.e(jbeVar, "");
C14957gcv.e(absolutePath2, "");
C14957gcv.e(e2, "");
C14957gcv.e(valueOf2, "");
c16048kj2.b(c16048kj2.b, ojq, jbeVar, new rRh.Sts(absolutePath2, i3, i4, e2, valueOf2));
}
/* renamed from: o.cyV$saX */
/* loaded from: classes4.dex */
static final class saX extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private C7975cyV e;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
C7975cyV.d(this.e);
final C7975cyV c7975cyV = this.e;
ZI.IeS ieS = new ZI.IeS(c7975cyV) { // from class: o.czc
private C7975cyV e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7975cyV.saX.d(this.e, (InterfaceC9592dme) obj);
}
{
this.e = c7975cyV;
}
};
if (c7975cyV.f != 0) {
ieS.e(c7975cyV.f);
}
return C14866gag.c;
}
public static /* synthetic */ void d(C7975cyV c7975cyV, InterfaceC9592dme interfaceC9592dme) {
C14957gcv.e(c7975cyV, "");
EnumC1262Zd enumC1262Zd = c7975cyV.b;
if (enumC1262Zd == null) {
C14957gcv.a("");
enumC1262Zd = null;
}
interfaceC9592dme.e(enumC1262Zd);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
saX(C7975cyV c7975cyV) {
super(0);
this.e = c7975cyV;
}
}
/* renamed from: o.cyV$tOB */
/* loaded from: classes4.dex */
static final class tOB extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C7975cyV e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C7975cyV.a(this.e, th2);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
tOB(C7975cyV c7975cyV) {
super(1);
this.e = c7975cyV;
}
}
/* renamed from: o.cyV$HBt */
/* loaded from: classes4.dex */
static final class HBt extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
private C7975cyV a;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ C14866gag invoke() {
final C7975cyV c7975cyV = this.a;
ZI.IeS ieS = new ZI.IeS(c7975cyV) { // from class: o.czd
private C7975cyV d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7975cyV.HBt.a(this.d, (InterfaceC9592dme) obj);
}
{
this.d = c7975cyV;
}
};
if (c7975cyV.f != 0) {
ieS.e(c7975cyV.f);
}
return C14866gag.c;
}
public static /* synthetic */ void a(C7975cyV c7975cyV, InterfaceC9592dme interfaceC9592dme) {
C14957gcv.e(c7975cyV, "");
interfaceC9592dme.d();
C7975cyV.d(c7975cyV);
c7975cyV.i = false;
EnumC1262Zd enumC1262Zd = c7975cyV.b;
if (enumC1262Zd == null) {
C14957gcv.a("");
enumC1262Zd = null;
}
interfaceC9592dme.e(enumC1262Zd);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
HBt(C7975cyV c7975cyV) {
super(0);
this.a = c7975cyV;
}
}
/* renamed from: o.cyV$Sts */
/* loaded from: classes4.dex */
static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C7975cyV b;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C7975cyV c7975cyV = this.b;
ZI.IeS ieS = new ZI.IeS() { // from class: o.cze
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9592dme) obj).d();
}
};
if (c7975cyV.f != 0) {
ieS.e(c7975cyV.f);
}
C7975cyV.a(this.b, th2);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
Sts(C7975cyV c7975cyV) {
super(1);
this.b = c7975cyV;
}
}
/* renamed from: o.cyV$jbe */
/* loaded from: classes4.dex */
static final class jbe extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C7975cyV a;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C7975cyV.a(this.a, th2);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
jbe(C7975cyV c7975cyV) {
super(1);
this.a = c7975cyV;
}
}
/* renamed from: o.cyV$ojQ */
/* loaded from: classes4.dex */
static final class ojQ extends AbstractC14961gcz implements InterfaceC14894gbR<CtB, C14866gag> {
private C7975cyV e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(CtB ctB) {
CtB ctB2 = ctB;
C14957gcv.e(ctB2, "");
C7975cyV.d(this.e);
if (ctB2.e) {
final C7975cyV c7975cyV = this.e;
ZI.IeS ieS = new ZI.IeS(c7975cyV) { // from class: o.czk
private C7975cyV c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7975cyV.ojQ.a(this.c, (InterfaceC9592dme) obj);
}
{
this.c = c7975cyV;
}
};
if (c7975cyV.f != 0) {
ieS.e(c7975cyV.f);
}
} else {
final C7975cyV c7975cyV2 = this.e;
ZI.IeS ieS2 = new ZI.IeS(c7975cyV2) { // from class: o.czh
private C7975cyV a;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7975cyV.ojQ.b(this.a, (InterfaceC9592dme) obj);
}
{
this.a = c7975cyV2;
}
};
if (c7975cyV2.f != 0) {
ieS2.e(c7975cyV2.f);
}
}
return C14866gag.c;
}
public static /* synthetic */ void a(C7975cyV c7975cyV, InterfaceC9592dme interfaceC9592dme) {
C14957gcv.e(c7975cyV, "");
EnumC1262Zd enumC1262Zd = c7975cyV.b;
if (enumC1262Zd == null) {
C14957gcv.a("");
enumC1262Zd = null;
}
interfaceC9592dme.e(enumC1262Zd);
}
public static /* synthetic */ void b(C7975cyV c7975cyV, InterfaceC9592dme interfaceC9592dme) {
C14957gcv.e(c7975cyV, "");
EnumC1262Zd enumC1262Zd = c7975cyV.b;
if (enumC1262Zd == null) {
C14957gcv.a("");
enumC1262Zd = null;
}
interfaceC9592dme.c(enumC1262Zd);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
ojQ(C7975cyV c7975cyV) {
super(1);
this.e = c7975cyV;
}
}
/* renamed from: o.cyV$IeS */
/* loaded from: classes4.dex */
static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<CtB, C14866gag> {
private C7975cyV d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(CtB ctB) {
final CtB ctB2 = ctB;
C14957gcv.e(ctB2, "");
final C7975cyV c7975cyV = this.d;
ZI.IeS ieS = new ZI.IeS(c7975cyV, ctB2) { // from class: o.czf
private C7975cyV b;
private CtB c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7975cyV.IeS.d(this.b, this.c, (InterfaceC9592dme) obj);
}
{
this.b = c7975cyV;
this.c = ctB2;
}
};
if (c7975cyV.f != 0) {
ieS.e(c7975cyV.f);
}
return C14866gag.c;
}
public static /* synthetic */ void d(C7975cyV c7975cyV, CtB ctB, InterfaceC9592dme interfaceC9592dme) {
C14957gcv.e(c7975cyV, "");
C14957gcv.e(ctB, "");
interfaceC9592dme.d();
C7975cyV.d(c7975cyV);
c7975cyV.i = false;
EnumC1262Zd enumC1262Zd = null;
if (ctB.e) {
EnumC1262Zd enumC1262Zd2 = c7975cyV.b;
if (enumC1262Zd2 == null) {
C14957gcv.a("");
} else {
enumC1262Zd = enumC1262Zd2;
}
interfaceC9592dme.e(enumC1262Zd);
return;
}
EnumC1262Zd enumC1262Zd3 = c7975cyV.b;
if (enumC1262Zd3 == null) {
C14957gcv.a("");
} else {
enumC1262Zd = enumC1262Zd3;
}
interfaceC9592dme.c(enumC1262Zd);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
IeS(C7975cyV c7975cyV) {
super(1);
this.d = c7975cyV;
}
}
/* renamed from: o.cyV$RVV */
/* loaded from: classes4.dex */
static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C7975cyV a;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
Throwable th2 = th;
C14957gcv.e(th2, "");
C7975cyV c7975cyV = this.a;
ZI.IeS ieS = new ZI.IeS() { // from class: o.czb
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9592dme) obj).d();
}
};
if (c7975cyV.f != 0) {
ieS.e(c7975cyV.f);
}
C7975cyV.a(this.a, th2);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
RVV(C7975cyV c7975cyV) {
super(1);
this.a = c7975cyV;
}
}
@Override // o.AbstractC4304bWR
public final void a(FaceTecSessionResult faceTecSessionResult, String str, String str2) {
C14957gcv.e(faceTecSessionResult, "");
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
long currentTimeMillis = System.currentTimeMillis();
String e = e(faceTecSessionResult.getAuditTrailCompressedBase64()[0], faceTecSessionResult.getLowQualityAuditTrailCompressedBase64()[0], String.valueOf(currentTimeMillis));
EnumC1262Zd enumC1262Zd = this.b;
if (enumC1262Zd == null) {
C14957gcv.a("");
enumC1262Zd = null;
}
if (enumC1262Zd == EnumC1262Zd.FAST_EASY) {
C14957gcv.c((Object) e, "");
C16048kj c16048kj = this.e;
HBt hBt = new HBt(this);
Sts sts = new Sts(this);
String faceScanBase64 = faceTecSessionResult.getFaceScanBase64();
C14957gcv.c((Object) faceScanBase64, "");
String[] auditTrailCompressedBase64 = faceTecSessionResult.getAuditTrailCompressedBase64();
C14957gcv.c(auditTrailCompressedBase64, "");
String[] strArr = auditTrailCompressedBase64;
C14957gcv.e(strArr, "");
C14957gcv.e(strArr, "");
String str3 = strArr.length + (-1) >= 0 ? strArr[0] : null;
if (str3 == null) {
str3 = "";
}
String[] lowQualityAuditTrailCompressedBase64 = faceTecSessionResult.getLowQualityAuditTrailCompressedBase64();
C14957gcv.c(lowQualityAuditTrailCompressedBase64, "");
String[] strArr2 = lowQualityAuditTrailCompressedBase64;
C14957gcv.e(strArr2, "");
C14957gcv.e(strArr2, "");
String str4 = strArr2.length + (-1) >= 0 ? strArr2[0] : null;
if (str4 == null) {
str4 = "";
}
C11688ek c11688ek = new C11688ek(str, str2, faceScanBase64, str3, str4);
C14957gcv.e(hBt, "");
C14957gcv.e(sts, "");
C14957gcv.e(c11688ek, "");
C14957gcv.e(e, "");
c16048kj.d(c16048kj.e, new C16048kj.HBt(hBt), sts, new juX.RVV(c11688ek, e, currentTimeMillis));
return;
}
C14957gcv.c((Object) e, "");
C16048kj c16048kj2 = this.e;
IeS ieS = new IeS(this);
RVV rvv = new RVV(this);
String faceScanBase642 = faceTecSessionResult.getFaceScanBase64();
C14957gcv.c((Object) faceScanBase642, "");
String[] auditTrailCompressedBase642 = faceTecSessionResult.getAuditTrailCompressedBase64();
C14957gcv.c(auditTrailCompressedBase642, "");
String[] strArr3 = auditTrailCompressedBase642;
C14957gcv.e(strArr3, "");
C14957gcv.e(strArr3, "");
String str5 = strArr3.length + (-1) >= 0 ? strArr3[0] : null;
if (str5 == null) {
str5 = "";
}
String[] lowQualityAuditTrailCompressedBase642 = faceTecSessionResult.getLowQualityAuditTrailCompressedBase64();
C14957gcv.c(lowQualityAuditTrailCompressedBase642, "");
String[] strArr4 = lowQualityAuditTrailCompressedBase642;
C14957gcv.e(strArr4, "");
C14957gcv.e(strArr4, "");
String str6 = strArr4.length + (-1) >= 0 ? strArr4[0] : null;
if (str6 == null) {
str6 = "";
}
C11953ep c11953ep = new C11953ep(str, str2, faceScanBase642, str5, str6);
C14957gcv.e(ieS, "");
C14957gcv.e(rvv, "");
C14957gcv.e(c11953ep, "");
C14957gcv.e(e, "");
c16048kj2.b(c16048kj2.d, ieS, rvv, new MYh.IeS(c11953ep, e, currentTimeMillis));
}
@Override // o.AbstractC4304bWR
public final void a() {
ZI.IeS ieS = new ZI.IeS() { // from class: o.cyT
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9592dme) obj).c();
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
public static /* synthetic */ void d(String str, final C7975cyV c7975cyV, final Throwable th, final InterfaceC9592dme interfaceC9592dme) {
C14957gcv.e(c7975cyV, "");
C14957gcv.e(th, "");
if (C14957gcv.b((Object) str, (Object) "3015")) {
kdN kdn = c7975cyV.f8673o;
if (kdn == null) {
C14957gcv.a("");
kdn = null;
}
interfaceC9592dme.e(kdn);
return;
}
if (C14957gcv.b((Object) str, (Object) "3017")) {
C0690Mh c0690Mh = new C0690Mh();
c0690Mh.b = c7975cyV.d.getString(C15715hv.tOB.cancel);
Runnable runnable = new Runnable(interfaceC9592dme) { // from class: o.cyS
private InterfaceC9592dme e;
@Override // java.lang.Runnable
public final void run() {
this.e.k();
}
{
this.e = interfaceC9592dme;
}
};
c0690Mh.e = C0690Mh.IeS.CUSTOM;
c0690Mh.d = runnable;
final C0690Mh c0690Mh2 = new C0690Mh();
c0690Mh2.b = c7975cyV.d.getString(C15715hv.tOB.ok);
C14957gcv.c(c0690Mh2, "");
ZI.IeS ieS = new ZI.IeS(c7975cyV, c0690Mh2) { // from class: o.cyX
private C0690Mh a;
private C7975cyV e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7975cyV.b(this.e, this.a, (InterfaceC9592dme) obj);
}
{
this.e = c7975cyV;
this.a = c0690Mh2;
}
};
if (c7975cyV.f != 0) {
ieS.e(c7975cyV.f);
}
C0693Mj e = c7975cyV.j.e(th);
e.b = c0690Mh;
e.e = c0690Mh2;
interfaceC9592dme.e(e);
return;
}
ZI.IeS ieS2 = new ZI.IeS(c7975cyV, th) { // from class: o.cyY
private Throwable a;
private C7975cyV b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7975cyV.b(this.b, this.a, (InterfaceC9592dme) obj);
}
{
this.b = c7975cyV;
this.a = th;
}
};
if (c7975cyV.f != 0) {
ieS2.e(c7975cyV.f);
}
}
public static /* synthetic */ void b(C7975cyV c7975cyV, Throwable th, final InterfaceC9592dme interfaceC9592dme) {
C14957gcv.e(c7975cyV, "");
C14957gcv.e(th, "");
if (c7975cyV.g) {
C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK;
if (c7975cyV.b(th)) {
c7975cyV.d(c7975cyV.j.d(th, ieS));
return;
}
return;
}
Runnable runnable = new Runnable(interfaceC9592dme) { // from class: o.cyZ
private InterfaceC9592dme b;
@Override // java.lang.Runnable
public final void run() {
this.b.b();
}
{
this.b = interfaceC9592dme;
}
};
if (c7975cyV.b(th)) {
c7975cyV.d(c7975cyV.j.c(th, runnable));
}
}
public static /* synthetic */ void b(C7975cyV c7975cyV, C0690Mh c0690Mh, final InterfaceC9592dme interfaceC9592dme) {
C14957gcv.e(c7975cyV, "");
C14957gcv.e(c0690Mh, "");
if (!c7975cyV.g) {
Runnable runnable = new Runnable(interfaceC9592dme) { // from class: o.cza
private InterfaceC9592dme d;
@Override // java.lang.Runnable
public final void run() {
this.d.b();
}
{
this.d = interfaceC9592dme;
}
};
c0690Mh.e = C0690Mh.IeS.CUSTOM;
c0690Mh.d = runnable;
return;
}
c0690Mh.e = C0690Mh.IeS.NAVIGATE_BACK;
}
public static final /* synthetic */ void a(final C7975cyV c7975cyV, final Throwable th) {
VCl vCl;
ggV ggv;
if (c7975cyV.f != 0) {
c7975cyV.f.ar_();
}
c7975cyV.i = false;
final 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;
}
ZI.IeS ieS = new ZI.IeS(str, c7975cyV, th) { // from class: o.cyW
private C7975cyV b;
private String c;
private Throwable e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C7975cyV.d(this.c, this.b, this.e, (InterfaceC9592dme) obj);
}
{
this.c = str;
this.b = c7975cyV;
this.e = th;
}
};
if (c7975cyV.f != 0) {
ieS.e(c7975cyV.f);
}
}
public static final /* synthetic */ void d(C7975cyV c7975cyV) {
if (c7975cyV.f != 0) {
c7975cyV.f.ar_();
}
}
@Override // o.AbstractC4304bWR
public final void g(Throwable th) {
C14957gcv.e(th, "");
if (this.f != 0) {
this.f.ar_();
}
if (b(th)) {
d(this.j.e(th));
}
}
static {
new LWm((byte) 0);
}
}