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

460 lines
17 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.PointF;
import android.text.TextUtils;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.scb.phone.domain.errors.RetrofitException;
import o.C15715hv;
import o.C6956cfG;
import o.InterfaceC9460dkE;
import o.ZI;
import okhttp3.internal.http2.Http2Connection;
import org.bouncycastle.crypto.tls.CipherSuite;
/* renamed from: o.cfG, reason: case insensitive filesystem */
/* loaded from: classes4.dex */
public final class C6956cfG extends ZI<InterfaceC9460dkE.RVV> {
public final C16014kV a;
public final Ezz b;
final Resources c;
public String d;
public String e;
private boolean g;
private final InterfaceC9505dkx h;
private final C17604yG i;
public static final /* synthetic */ void c(C6956cfG c6956cfG, String str, yjW yjw) {
String str2;
C17604yG c17604yG = c6956cfG.i;
String str3 = c6956cfG.d;
final C0996Tg c0996Tg = null;
if (str3 == null) {
C14957gcv.a("");
str2 = null;
} else {
str2 = str3;
}
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(yjw, "");
C11859enL c11859enL = yjw.d;
String str4 = c11859enL != null ? c11859enL.d : null;
C11859enL c11859enL2 = yjw.d;
String str5 = c11859enL2 != null ? c11859enL2.b : null;
String str6 = yjw.c;
if (str4 != null && str5 != null && str6 != null && str6.length() > 0) {
String b_ = c17604yG.b_(str5);
C14957gcv.c((Object) b_, "");
c0996Tg = new C0996Tg(str, str2, str4, b_, str6);
}
if (c0996Tg != null) {
ZI.IeS ieS = new ZI.IeS(c0996Tg) { // from class: o.cfF
private C0996Tg e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6956cfG.d(this.e, (InterfaceC9460dkE.RVV) obj);
}
{
this.e = c0996Tg;
}
};
if (c6956cfG.f != 0) {
ieS.e(c6956cfG.f);
}
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
@InterfaceC13391fZD
public C6956cfG(C16014kV c16014kV, Ezz ezz, InterfaceC9505dkx interfaceC9505dkx, C17604yG c17604yG, Resources resources, C16903sI c16903sI) {
super(c16903sI);
C14957gcv.e(c16014kV, "");
C14957gcv.e(ezz, "");
C14957gcv.e(interfaceC9505dkx, "");
C14957gcv.e(c17604yG, "");
C14957gcv.e(resources, "");
C14957gcv.e(c16903sI, "");
this.a = c16014kV;
this.b = ezz;
this.h = interfaceC9505dkx;
this.i = c17604yG;
this.c = resources;
}
public final void d(String str, final boolean z) {
C14957gcv.e(str, "");
this.e = null;
String str2 = str;
boolean z2 = str2.length() > 0 && str.length() == 17;
this.g = z2;
if (!z && z2) {
this.e = str != null ? new gdW("\\s+").a(str2, "") : null;
}
ZI.IeS ieS = new ZI.IeS(z, this) { // from class: o.cfC
private boolean a;
private C6956cfG e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6956cfG.a(this.a, this.e, (InterfaceC9460dkE.RVV) obj);
}
{
this.a = z;
this.e = this;
}
};
if (this.f != 0) {
ieS.e(this.f);
}
}
/* renamed from: o.cfG$HBt */
/* loaded from: classes4.dex */
public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<Throwable, C14866gag> {
private C6956cfG b;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Throwable th) {
VCl vCl;
ggV ggv;
Throwable th2 = th;
C14957gcv.e(th2, "");
String str = null;
RetrofitException retrofitException = th2 instanceof RetrofitException ? (RetrofitException) th2 : null;
if (retrofitException != null && (vCl = retrofitException.e) != null && (ggv = vCl.c) != null) {
str = ggv.e;
}
if (C14957gcv.b((Object) str, (Object) "3032")) {
final String string = this.b.c.getString(C15715hv.tOB.auto_touchpoints_national_id_not_found_title);
C14957gcv.c((Object) string, "");
final String string2 = this.b.c.getString(C15715hv.tOB.auto_touchpoints_national_id_not_found_description);
C14957gcv.c((Object) string2, "");
final C6956cfG c6956cfG = this.b;
ZI.IeS ieS = new ZI.IeS(c6956cfG, string, string2) { // from class: o.cfI
private String a;
private C6956cfG b;
private String d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6956cfG.HBt.c(this.b, this.a, this.d, (InterfaceC9460dkE.RVV) obj);
}
{
this.b = c6956cfG;
this.a = string;
this.d = string2;
}
};
if (c6956cfG.f != 0) {
ieS.e(c6956cfG.f);
}
} else if (C14957gcv.b((Object) str, (Object) "3045")) {
final String string3 = this.b.c.getString(C15715hv.tOB.fatca_error_label_title);
C14957gcv.c((Object) string3, "");
final String string4 = this.b.c.getString(C15715hv.tOB.auto_touchpoints_user_is_not_eligible_to_open_account);
C14957gcv.c((Object) string4, "");
final C6956cfG c6956cfG2 = this.b;
ZI.IeS ieS2 = new ZI.IeS(c6956cfG2, string3, string4) { // from class: o.cfL
private String a;
private C6956cfG c;
private String d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6956cfG.HBt.e(this.c, this.d, this.a, (InterfaceC9460dkE.RVV) obj);
}
{
this.c = c6956cfG2;
this.d = string3;
this.a = string4;
}
};
if (c6956cfG2.f != 0) {
ieS2.e(c6956cfG2.f);
}
} else {
final C6956cfG c6956cfG3 = this.b;
C6956cfG.d(c6956cfG3, th2, new Runnable(c6956cfG3) { // from class: o.cfH
private C6956cfG b;
@Override // java.lang.Runnable
public final void run() {
C6956cfG.HBt.b(this.b);
}
{
this.b = c6956cfG3;
}
});
}
return C14866gag.c;
}
public static /* synthetic */ void e(C6956cfG c6956cfG, String str, String str2, InterfaceC9460dkE.RVV rvv) {
C14957gcv.e(c6956cfG, "");
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
rvv.ar_();
rvv.a(C6956cfG.b(c6956cfG, str, str2, null, null, false), false);
}
public static /* synthetic */ void c(C6956cfG c6956cfG, String str, String str2, InterfaceC9460dkE.RVV rvv) {
C14957gcv.e(c6956cfG, "");
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
rvv.ar_();
rvv.a(C6956cfG.b(c6956cfG, str, str2, Integer.valueOf(C15715hv.IeS.ic_nid_not_found), 120, true), true);
}
public static /* synthetic */ void b(C6956cfG c6956cfG) {
C14957gcv.e(c6956cfG, "");
ZI.IeS ieS = new ZI.IeS() { // from class: o.cfK
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9460dkE.RVV) obj).c();
}
};
if (c6956cfG.f != 0) {
ieS.e(c6956cfG.f);
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public HBt(C6956cfG c6956cfG) {
super(1);
this.b = c6956cfG;
}
}
/* renamed from: o.cfG$IeS */
/* loaded from: classes4.dex */
public static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<yjW, C14866gag> {
private String b;
private C6956cfG e;
private static final byte[] $$a = {41, -51, 119, -103};
private static final int $$b = CipherSuite.TLS_RSA_WITH_AES_256_GCM_SHA384;
private static int $10 = 0;
private static int $11 = 1;
private static int a = 0;
private static int h = 1;
private static char[] c = {61059};
private static long d = -6806436791369205445L;
/* JADX WARN: Removed duplicated region for block: B:10:0x0027 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001f */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> B:4:0x002d). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void g(int r6, int r7, int r8, java.lang.Object[] r9) {
/*
byte[] r0 = o.C6956cfG.IeS.$$a
int r6 = r6 * 2
int r6 = 3 - r6
int r7 = r7 * 2
int r1 = r7 + 1
int r8 = 106 - r8
byte[] r1 = new byte[r1]
r2 = 0
if (r0 != 0) goto L15
r3 = r8
r4 = r2
r8 = r6
goto L2d
L15:
r3 = r2
L16:
int r6 = r6 + 1
byte r4 = (byte) r8
r1[r3] = r4
int r4 = r3 + 1
if (r3 != r7) goto L27
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L27:
r3 = r0[r6]
r5 = r8
r8 = r6
r6 = r3
r3 = r5
L2d:
int r6 = r6 + r3
r3 = r4
r5 = r8
r8 = r6
r6 = r5
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: o.C6956cfG.IeS.g(int, int, int, java.lang.Object[]):void");
}
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(yjW yjw) {
int i = 2 % 2;
int i2 = a + 3;
h = i2 % 128;
int i3 = i2 % 2;
e(yjw);
if (i3 != 0) {
return C14866gag.c;
}
C14866gag c14866gag = C14866gag.c;
Object obj = null;
obj.hashCode();
throw null;
}
private void e(yjW yjw) {
int i = 2 % 2;
int i2 = a + 123;
h = i2 % 128;
int i3 = i2 % 2;
C14957gcv.e(yjw, "");
C6956cfG.e(this.e);
Object[] objArr = new Object[1];
f((char) ((PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (PointF.length(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 24929), Color.rgb(0, 0, 0) + Http2Connection.OKHTTP_CLIENT_WINDOW_SIZE, TextUtils.indexOf("", "", 0) + 1, objArr);
if (C14957gcv.b((Object) ((String) objArr[0]).intern(), (Object) yjw.c) || this.e.h.d()) {
C6956cfG.c(this.e, this.b, yjw);
return;
}
final String string = this.e.c.getString(C15715hv.tOB.auto_touchpoints_liveness_check_title);
C14957gcv.c((Object) string, "");
final String string2 = this.e.c.getString(C15715hv.tOB.auto_touchpoints_liveness_check_description);
C14957gcv.c((Object) string2, "");
final C6956cfG c6956cfG = this.e;
ZI.IeS ieS = new ZI.IeS(c6956cfG, string, string2) { // from class: o.cfE
private String a;
private C6956cfG c;
private String e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C6956cfG.IeS.a(this.c, this.e, this.a, (InterfaceC9460dkE.RVV) obj);
}
{
this.c = c6956cfG;
this.e = string;
this.a = string2;
}
};
if (c6956cfG.f != 0) {
int i4 = h + 5;
a = i4 % 128;
int i5 = i4 % 2;
ieS.e(c6956cfG.f);
}
}
private static final void d(C6956cfG c6956cfG, String str, String str2, InterfaceC9460dkE.RVV rvv) {
Integer valueOf;
int i;
boolean z;
int i2 = 2 % 2;
int i3 = h + 75;
a = i3 % 128;
if (i3 % 2 != 0) {
C14957gcv.e(c6956cfG, "");
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
valueOf = Integer.valueOf(C15715hv.IeS.ic_device_not_support);
i = 9;
z = true;
} else {
C14957gcv.e(c6956cfG, "");
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
valueOf = Integer.valueOf(C15715hv.IeS.ic_device_not_support);
i = 120;
z = false;
}
rvv.a(C6956cfG.b(c6956cfG, str, str2, valueOf, i, z), false);
int i4 = a + 41;
h = i4 % 128;
int i5 = i4 % 2;
}
/* JADX WARN: Removed duplicated region for block: B:63:0x0288 */
/* JADX WARN: Removed duplicated region for block: B:64:0x0289 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void f(char r20, int r21, int r22, java.lang.Object[] r23) {
/*
Method dump skipped, instructions count: 658
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.C6956cfG.IeS.f(char, int, int, java.lang.Object[]):void");
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public IeS(C6956cfG c6956cfG, String str) {
super(1);
this.e = c6956cfG;
this.b = str;
}
public static /* synthetic */ void a(C6956cfG c6956cfG, String str, String str2, InterfaceC9460dkE.RVV rvv) {
int i = 2 % 2;
int i2 = a + 7;
h = i2 % 128;
int i3 = i2 % 2;
d(c6956cfG, str, str2, rvv);
if (i3 == 0) {
int i4 = 50 / 0;
}
}
}
public static /* synthetic */ void d(C0996Tg c0996Tg, InterfaceC9460dkE.RVV rvv) {
C14957gcv.e(c0996Tg, "");
rvv.b(c0996Tg);
}
public static /* synthetic */ void a(boolean z, C6956cfG c6956cfG, InterfaceC9460dkE.RVV rvv) {
C14957gcv.e(c6956cfG, "");
rvv.b((z || c6956cfG.g) ? false : true);
rvv.e(c6956cfG.e != null);
}
public static final /* synthetic */ C0997Th b(C6956cfG c6956cfG, String str, String str2, Integer num, Integer num2, boolean z) {
C0997Th c0997Th = new C0997Th();
c0997Th.g = c6956cfG.c.getString(C15715hv.tOB.ntb_ekyc_title);
c0997Th.f = str;
c0997Th.c = str2;
c0997Th.d = c6956cfG.c.getString(C15715hv.tOB.auto_touchpoints_find_scb_button);
c0997Th.e = z;
c0997Th.a = false;
if (num != null) {
c0997Th.h = num.intValue();
}
if (num2 != null) {
c0997Th.i = num2.intValue();
}
return c0997Th;
}
public static final /* synthetic */ void e(C6956cfG c6956cfG) {
if (c6956cfG.f != 0) {
c6956cfG.f.ar_();
}
}
public static final /* synthetic */ void d(C6956cfG c6956cfG, Throwable th, Runnable runnable) {
if (c6956cfG.b(th)) {
c6956cfG.d(c6956cfG.j.c(th, runnable));
}
}
}