what-the-bank/sources/com/scb/phone/view/activity/ndid/NdidNationalIdInputActivity...

2058 lines
92 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity.ndid;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.Color;
import android.graphics.PointF;
import android.media.AudioTrack;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.os.Process;
import android.os.SystemClock;
import android.text.AndroidCharacter;
import android.text.Editable;
import android.text.InputFilter;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.text.method.DigitsKeyListener;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ExpandableListView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.common.base.Ascii;
import com.kofax.mobile.sdk._internal.impl.extraction.kta.KtaJsonExactionHelper;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity;
import com.scb.phone.view.activity.ntb.ReviewInfoResultActivity;
import com.scb.phone.view.activity.ntb.ekyc.NationalIdHelpActivity;
import com.scb.phone.view.custom.common.CommonInputViewGroup;
import com.scb.phone.view.custom.common.CustomEditText;
import com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Method;
import java.text.SimpleDateFormat;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.AbstractActivityC11252ebo;
import o.AbstractC13175fSw;
import o.C0405Fw;
import o.C0690Mh;
import o.C0977Su;
import o.C0985Ta;
import o.C0997Th;
import o.C11267ecC;
import o.C12891fKc;
import o.C12919fLP;
import o.C14957gcv;
import o.C15602gz;
import o.C17513xR;
import o.C17800zpz;
import o.C3614bBe;
import o.C4135bR;
import o.C4401bZA;
import o.C4432bZz;
import o.C9257dgM;
import o.IFW;
import o.IRS;
import o.InterfaceC13391fZD;
import o.InterfaceC9492dkk;
import o.MYp;
import o.Obj;
import o.ZI;
import o.bZB;
import o.bZG;
import o.cXH;
import o.fJC;
import o.fJJ;
import o.fLJ;
import o.fSJ;
import o.fSQ;
import o.gjJ;
import o.guQ;
import o.nMh;
import o.pwE;
import o.qBc;
import o.xzZ;
import org.jmrtd.cbeff.ISO781611;
import org.jnbis.internal.NistHelper;
/* loaded from: classes5.dex */
public class NdidNationalIdInputActivity extends AbstractActivityC11252ebo implements InterfaceC9492dkk {
@BindView
public CommonInputViewGroup dateOfBirthViewGroup;
@BindView
public CommonInputViewGroup dateOfIssuedViewGroup;
@BindView
protected View fieldsContainer;
@BindView
protected ImageView helpButton;
@BindView
public CommonInputViewGroup ivpFirstNameEnglish;
@BindView
public CommonInputViewGroup ivpFirstNameThai;
@BindView
public CommonInputViewGroup ivpLastNameEnglish;
@BindView
public CommonInputViewGroup ivpLastNameThai;
@BindView
public CommonInputViewGroup ivpNationalIdNumber;
private fSJ k;
private String l;
@BindView
public EditText laserIdFirst;
@BindView
public EditText laserIdSecond;
@BindView
public EditText laserIdThird;
private boolean m;
@BindView
protected Button nextButton;
@InterfaceC13391fZD
public C4401bZA presenter;
@BindView
RelativeLayout rootView;
@BindView
protected ImageView scanIdIcon;
@BindView
public CustomSpinnerWithTitle spinnerCountry;
@BindView
public CustomSpinnerWithTitle spinnerTitle;
@BindView
protected TextView textViewTakingPhotoEditLabel;
private static final byte[] $$E = {69, ISO7816.INS_CHANGE_CHV, 67, Ascii.CAN};
private static final int $$F = ISO781611.BIOMETRIC_SUBTYPE_TAG;
private static int $10 = 0;
private static int $11 = 1;
private static int y = 0;
private static int w = 1;
private static char[] s = {49034, 49095, 49035, 49036, 49026, 49090, 49051, 49029, 49127, 49040, 49114, 49027, 49055, 49049, 49091, 49138, 49119, 49033, 49117, 49037, 49038, 49093, 49030, 49031, 49115, 49110, 49052, 49050, 49054, 49104, 49123, 49118, 49094, 49116, 49108, 49028, 49048, 49105, 49112, 49024, 49053, 49111, 49039, 49025, 49089, 49106, 49088, 49098, 49041};
private static char p = 35374;
private static char[] r = {16138, 16134, 16354, 16150, 16145, 16334, 16324, 16321, 16159, 16320, 16144, 16147, 16158, 16326, 16335, 16325, 16323, 16322, 16146, 16333};
private static int t = 1934311357;
private static boolean x = true;
private static boolean v = true;
private View.OnClickListener b = new View.OnClickListener(this) { // from class: o.ecx
private NdidNationalIdInputActivity b;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
NdidNationalIdInputActivity.b(this.b, view);
}
{
this.b = this;
}
};
private IFW q = new IFW();
/* renamed from: o, reason: collision with root package name */
private boolean f7625o = false;
/* JADX WARN: Removed duplicated region for block: B:10:0x0024 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001c */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x0026). 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 aJ(short r5, byte r6, short r7, java.lang.Object[] r8) {
/*
int r5 = r5 * 3
int r0 = r5 + 1
byte[] r1 = com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.$$E
int r6 = r6 + 65
int r7 = r7 + 4
byte[] r0 = new byte[r0]
r2 = 0
if (r1 != 0) goto L12
r3 = r5
r4 = r2
goto L26
L12:
r3 = r2
L13:
byte r4 = (byte) r6
r0[r3] = r4
int r4 = r3 + 1
int r7 = r7 + 1
if (r3 != r5) goto L24
java.lang.String r5 = new java.lang.String
r5.<init>(r0, r2)
r8[r2] = r5
return
L24:
r3 = r1[r7]
L26:
int r3 = -r3
int r6 = r6 + r3
r3 = r4
goto L13
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.aJ(short, byte, short, java.lang.Object[]):void");
}
public static /* synthetic */ Object c(Object[] objArr, int i, int i2, int i3) {
pwE pwe;
int c;
int i4 = (i * 866) + (i2 * (-864));
int i5 = ~i2;
int i6 = ~i;
int i7 = ~i3;
int i8 = i4 + (((~(i6 | i7)) | i5) * (-865)) + ((~(i3 | i)) * 865) + (((~(i | i7)) | (~(i5 | i7))) * 865);
if (i8 == 1) {
return b(objArr);
}
if (i8 == 2) {
return d(objArr);
}
if (i8 == 3) {
return c(objArr);
}
if (i8 == 4) {
NdidNationalIdInputActivity ndidNationalIdInputActivity = (NdidNationalIdInputActivity) objArr[0];
boolean booleanValue = ((Boolean) objArr[1]).booleanValue();
int i9 = 2 % 2;
int i10 = w + 23;
y = i10 % 128;
int i11 = i10 % 2;
ndidNationalIdInputActivity.nextButton.setEnabled(booleanValue);
int i12 = w + 31;
y = i12 % 128;
int i13 = i12 % 2;
return null;
}
NdidNationalIdInputActivity ndidNationalIdInputActivity2 = (NdidNationalIdInputActivity) objArr[0];
int i14 = 2 % 2;
int i15 = w + 97;
y = i15 % 128;
if (i15 % 2 != 0) {
super.Z();
ndidNationalIdInputActivity2.ac();
ndidNationalIdInputActivity2.p(ndidNationalIdInputActivity2.getString(R.string.ntb_ekyc_title));
pwe = ndidNationalIdInputActivity2.i;
c = ndidNationalIdInputActivity2.i.c() | 83;
} else {
super.Z();
ndidNationalIdInputActivity2.ac();
ndidNationalIdInputActivity2.p(ndidNationalIdInputActivity2.getString(R.string.ntb_ekyc_title));
pwe = ndidNationalIdInputActivity2.i;
c = ndidNationalIdInputActivity2.i.c() | 16;
}
pwe.d(c);
ndidNationalIdInputActivity2.i.f();
int i16 = y + 115;
w = i16 % 128;
int i17 = i16 % 2;
return null;
}
private static void aI(int[] iArr, char[] cArr, int i, byte[] bArr, Object[] objArr) {
int i2;
char[] cArr2;
int i3 = 2 % 2;
C3614bBe c3614bBe = new C3614bBe();
char[] cArr3 = r;
long j = 0;
int i4 = 1;
int i5 = 0;
if (cArr3 != null) {
int length = cArr3.length;
char[] cArr4 = new char[length];
int i6 = 0;
while (i6 < length) {
try {
Object[] objArr2 = new Object[i4];
objArr2[i5] = Integer.valueOf(cArr3[i6]);
Object obj = xzZ.y.get(-950481649);
if (obj == null) {
Class cls = (Class) xzZ.c(337 - Color.argb(i5, i5, i5, i5), TextUtils.lastIndexOf("", '0', i5) + 6, (char) ExpandableListView.getPackedPositionType(j));
byte b = (byte) i5;
byte b2 = b;
Object[] objArr3 = new Object[1];
aJ(b, b2, (byte) (b2 - 1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-950481649, obj);
}
cArr4[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i6++;
j = 0;
i4 = 1;
i5 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
int i7 = $11 + 19;
$10 = i7 % 128;
if (i7 % 2 != 0) {
int i8 = 5 / 4;
}
cArr3 = cArr4;
}
Object[] objArr4 = {Integer.valueOf(t)};
Object obj2 = xzZ.y.get(-1521625011);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(View.MeasureSpec.getMode(0) + 283, 5 - View.MeasureSpec.makeMeasureSpec(0, 0), (char) ((TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 39813));
byte b3 = (byte) 0;
Object[] objArr5 = new Object[1];
aJ(b3, (byte) (b3 | 57), (byte) (-1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1521625011, obj2);
}
int intValue = ((Integer) ((Method) obj2).invoke(null, objArr4)).intValue();
if (!(!v)) {
c3614bBe.c = bArr.length;
char[] cArr5 = new char[c3614bBe.c];
c3614bBe.a = 0;
while (c3614bBe.a < c3614bBe.c) {
int i9 = $11 + 35;
$10 = i9 % 128;
int i10 = i9 % 2;
cArr5[c3614bBe.a] = (char) (cArr3[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i] - intValue);
Object[] objArr6 = {c3614bBe, c3614bBe};
Object obj3 = xzZ.y.get(1779759091);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(40 - View.MeasureSpec.makeMeasureSpec(0, 0), View.MeasureSpec.makeMeasureSpec(0, 0) + 5, (char) (1 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1))))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
objArr[0] = new String(cArr5);
return;
}
if (x) {
int i11 = $10 + 125;
$11 = i11 % 128;
if (i11 % 2 == 0) {
c3614bBe.c = cArr.length;
cArr2 = new char[c3614bBe.c];
i2 = 0;
} else {
i2 = 0;
c3614bBe.c = cArr.length;
cArr2 = new char[c3614bBe.c];
}
c3614bBe.a = i2;
while (c3614bBe.a < c3614bBe.c) {
cArr2[c3614bBe.a] = (char) (cArr3[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
Object[] objArr7 = {c3614bBe, c3614bBe};
Object obj4 = xzZ.y.get(1779759091);
if (obj4 == null) {
obj4 = ((Class) xzZ.c(40 - (ViewConfiguration.getScrollBarSize() >> 8), 5 - View.MeasureSpec.makeMeasureSpec(0, 0), (char) TextUtils.indexOf("", ""))).getMethod("D", Object.class, Object.class);
xzZ.y.put(1779759091, obj4);
}
((Method) obj4).invoke(null, objArr7);
}
objArr[0] = new String(cArr2);
return;
}
int i12 = 0;
c3614bBe.c = iArr.length;
char[] cArr6 = new char[c3614bBe.c];
while (true) {
c3614bBe.a = i12;
if (c3614bBe.a >= c3614bBe.c) {
objArr[0] = new String(cArr6);
return;
} else {
cArr6[c3614bBe.a] = (char) (cArr3[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue);
i12 = c3614bBe.a + 1;
}
}
}
private static void aG(char[] cArr, byte b, int i, Object[] objArr) {
int i2;
int i3;
int i4 = 2 % 2;
IRS irs = new IRS();
char[] cArr2 = s;
long j = 0;
int i5 = -1;
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i6 = 0;
while (i6 < length) {
try {
Object[] objArr2 = {Integer.valueOf(cArr2[i6])};
Object obj = xzZ.y.get(-1987398494);
if (obj == null) {
Class cls = (Class) xzZ.c(298 - (ExpandableListView.getPackedPositionForGroup(0) > j ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == j ? 0 : -1)), 5 - View.getDefaultSize(0, 0), (char) KeyEvent.normalizeMetaState(0));
byte b2 = (byte) 0;
Object[] objArr3 = new Object[1];
aJ(b2, (byte) (b2 | ISO7816.INS_DECREASE_STAMPED), (byte) (-1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj);
}
cArr3[i6] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i6++;
j = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
Object[] objArr4 = {Integer.valueOf(p)};
Object obj2 = xzZ.y.get(-1987398494);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 297, ExpandableListView.getPackedPositionGroup(0L) + 5, (char) (ViewConfiguration.getMaximumDrawingCacheSize() >> 24));
byte b3 = (byte) 0;
Object[] objArr5 = new Object[1];
aJ(b3, (byte) (b3 | ISO7816.INS_DECREASE_STAMPED), (byte) (-1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE);
xzZ.y.put(-1987398494, obj2);
}
char charValue = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
char[] cArr4 = new char[i];
if (i % 2 != 0) {
int i7 = $11 + 79;
$10 = i7 % 128;
if (i7 % 2 != 0) {
i2 = i + 6;
cArr4[i2] = (char) (cArr[i2] % b);
} else {
i2 = i - 1;
cArr4[i2] = (char) (cArr[i2] - b);
}
} else {
i2 = i;
}
if (i2 > 1) {
int i8 = $11 + 119;
$10 = i8 % 128;
int i9 = i8 % 2;
irs.e = 0;
while (irs.e < i2) {
irs.b = cArr[irs.e];
irs.c = cArr[irs.e + 1];
if (irs.b == irs.c) {
cArr4[irs.e] = (char) (irs.b - b);
cArr4[irs.e + 1] = (char) (irs.c - b);
i3 = i5;
} else {
Object[] objArr6 = {irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), irs};
Object obj3 = xzZ.y.get(822107368);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(233 - TextUtils.getOffsetAfter("", 0), 5 - (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)), (char) (22072 - AndroidCharacter.getMirror('0')));
byte b4 = (byte) 0;
byte b5 = (byte) i5;
Object[] objArr7 = new Object[1];
aJ(b4, (byte) (b4 | 55), b5, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(822107368, obj3);
}
if (((Integer) ((Method) obj3).invoke(null, objArr6)).intValue() == irs.j) {
int i10 = $11 + 19;
$10 = i10 % 128;
int i11 = i10 % 2;
try {
Object[] objArr8 = {irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, irs, Integer.valueOf(charValue), Integer.valueOf(charValue), irs, Integer.valueOf(charValue), irs};
Object obj4 = xzZ.y.get(-1152873385);
if (obj4 != null) {
i3 = -1;
} else {
Class cls4 = (Class) xzZ.c(KeyEvent.normalizeMetaState(0) + 327, 5 - ((Process.getThreadPriority(0) + 20) >> 6), (char) (ViewConfiguration.getMaximumFlingVelocity() >> 16));
byte b6 = (byte) 0;
i3 = -1;
Object[] objArr9 = new Object[1];
aJ(b6, (byte) (b6 | 53), (byte) (-1), objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Object.class, Integer.TYPE, Integer.TYPE, Object.class, Integer.TYPE, Object.class);
xzZ.y.put(-1152873385, obj4);
}
int intValue = ((Integer) ((Method) obj4).invoke(null, objArr8)).intValue();
int i12 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[intValue];
cArr4[irs.e + 1] = cArr2[i12];
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
} else {
i3 = -1;
if (irs.a == irs.d) {
int i13 = $10 + 105;
$11 = i13 % 128;
int i14 = i13 % 2;
irs.f = ((irs.f + charValue) - 1) % charValue;
irs.j = ((irs.j + charValue) - 1) % charValue;
int i15 = (irs.a * charValue) + irs.f;
int i16 = (irs.d * charValue) + irs.j;
cArr4[irs.e] = cArr2[i15];
cArr4[irs.e + 1] = cArr2[i16];
} else {
int i17 = (irs.a * charValue) + irs.j;
int i18 = (irs.d * charValue) + irs.f;
cArr4[irs.e] = cArr2[i17];
cArr4[irs.e + 1] = cArr2[i18];
}
}
}
irs.e += 2;
i5 = i3;
}
}
for (int i19 = 0; i19 < i; i19++) {
cArr4[i19] = (char) (cArr4[i19] ^ 13722);
}
objArr[0] = new String(cArr4);
}
@Override // o.AbstractActivityC11252ebo, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onCreate(Bundle bundle) {
int i;
int i2 = 2 % 2;
Object[] objArr = new Object[1];
aG(new char[]{'.', 17, '%', '0', 31, '\f', '#', ')', ' ', '/', '%', '!', '/', 30, ' ', 22, 13808, 13808}, (byte) ((ViewConfiguration.getJumpTapTimeout() >> 16) + 7), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.root_checker_title).substring(17, 27).length() + 8, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aI(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 93, new byte[]{ISOFileInfo.PROP_INFO, -124, ISOFileInfo.FILE_IDENTIFIER, -126, ISOFileInfo.DATA_BYTES2}, objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr3 = new Object[1];
aG(new char[]{'.', 17, '%', '0', 31, '\f', '#', ')', '*', 17, 19, '#', 22, '$', 3, '\b', 24, 7, 5, '+', '\n', 22, '.', 23, '0', '&'}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.qr_payment_show_this_qr).substring(4, 5).length() + 87), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().length() + 13, objArr3);
Class<?> cls2 = Class.forName((String) objArr3[0]);
Object[] objArr4 = new Object[1];
aG(new char[]{30, '!', 13815, 13815, ' ', 25, '\b', 22, 13817, 13817, 17, '\t', 31, '+', 3, '\b', ' ', 19}, (byte) ((ViewConfiguration.getWindowTouchSlop() >> 8) + 15), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(0) - 81, objArr4);
baseContext = (Context) cls2.getMethod((String) objArr4[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
int i3 = w + 101;
y = i3 % 128;
int i4 = i3 % 2;
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 491, (ViewConfiguration.getKeyRepeatDelay() >> 16) + 5, (char) ((-1) - TextUtils.indexOf((CharSequence) "", '0')))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr5 = new Object[1];
aI(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 93, new byte[]{-120, -109, -112, ISOFileInfo.SECURITY_ATTR_EXP, -110, ISOFileInfo.CHANNEL_SECURITY, -120, -113, -119, -119, -109, ISOFileInfo.SECURITY_ATTR_COMPACT, -122, -112, -110, -122, -122, ISOFileInfo.PROP_INFO, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.SECURITY_ATTR_EXP, -110, ISOFileInfo.SECURITY_ATTR_EXP, -111, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.ENV_TEMP_EF, -120, ISOFileInfo.LCS_BYTE, -112, -113, ISOFileInfo.LCS_BYTE, -119, -112, ISOFileInfo.LCS_BYTE, -119, ISOFileInfo.LCS_BYTE, ISOFileInfo.ENV_TEMP_EF, -113, ISOFileInfo.CHANNEL_SECURITY, -119, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.LCS_BYTE, -119, -120, ISOFileInfo.FCI_EXT, -122}, objArr5);
String str = (String) objArr5[0];
Object[] objArr6 = new Object[1];
aI(null, null, Color.red(0) + 127, new byte[]{-109, ISOFileInfo.ENV_TEMP_EF, -119, -111, -112, -122, ISOFileInfo.SECURITY_ATTR_EXP, -112, -119, -110, -112, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.FCI_EXT, ISOFileInfo.SECURITY_ATTR_COMPACT, -112, ISOFileInfo.PROP_INFO, -119, -111, -122, -110, -111, ISOFileInfo.ENV_TEMP_EF, -119, -111, -119, -119, -112, -110, ISOFileInfo.ENV_TEMP_EF, -110, ISOFileInfo.FCI_EXT, ISOFileInfo.FCI_EXT, -112, -108, ISOFileInfo.CHANNEL_SECURITY, -113, ISOFileInfo.SECURITY_ATTR_EXP, -108, -111, ISOFileInfo.LCS_BYTE, -120, ISOFileInfo.ENV_TEMP_EF, -111, ISOFileInfo.SECURITY_ATTR_EXP, -113, -122, -120, -111, -122, ISOFileInfo.FCI_EXT, -111, -113, -111, -113, -110, -109, ISOFileInfo.CHANNEL_SECURITY, -120, -119, -111, -109, -111, -119, -109}, objArr6);
String str2 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
aI(null, null, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(2) + 18, new byte[]{ISOFileInfo.FCI_EXT, ISOFileInfo.SECURITY_ATTR_EXP, -112, -110, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.ENV_TEMP_EF, -108, ISOFileInfo.SECURITY_ATTR_COMPACT, -108, ISOFileInfo.CHANNEL_SECURITY, -111, -112, -113, -109, -119, -109, -111, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.LCS_BYTE, -110, -108, -110, -122, -122, -113, -110, -110, ISOFileInfo.ENV_TEMP_EF, -119, -120, ISOFileInfo.PROP_INFO, ISOFileInfo.CHANNEL_SECURITY, -111, -112, -109, ISOFileInfo.SECURITY_ATTR_COMPACT, -112, ISOFileInfo.SECURITY_ATTR_EXP, -113, ISOFileInfo.FCI_EXT, -108, -122, -108, ISOFileInfo.SECURITY_ATTR_COMPACT, -119, ISOFileInfo.ENV_TEMP_EF, -112, -108, -120, -119, -109, ISOFileInfo.LCS_BYTE, ISOFileInfo.CHANNEL_SECURITY, -113, -109, -109, ISOFileInfo.LCS_BYTE, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.LCS_BYTE, -108, -112, ISOFileInfo.ENV_TEMP_EF}, objArr7);
String str3 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
aG(new char[]{22, 3, 0, 15, '-', 18, 13849, 13849, '-', 11, 3, '&', 30, '\"', 13915, 13915, 23, '.', 31, '\b', ',', 17, '&', ',', 17, '\'', '$', 5, 23, '-', 24, '.', '\b', '$', '.', '/', 5, '$', NistHelper.SEP_FS, '!', '.', '-', '\'', '0', 4, '!', '.', '-', 26, '\'', 30, '\"', '!', 24, '*', 17, '\f', 24, 11, 17, ' ', 27, '+', 4, 27, 22, '/', 22, 26, 22, ' ', 25, 4, '+'}, (byte) (99 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1))), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.preregistration_mobile).substring(75, 76).codePointAt(0) + 42, objArr8);
String str4 = (String) objArr8[0];
Object[] objArr9 = new Object[1];
aG(new char[]{5, '#', 5, '%', 13757}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(11) - 91), Color.alpha(0) + 5, objArr9);
String str5 = (String) objArr9[0];
Object[] objArr10 = new Object[1];
aG(new char[]{24, '.', ',', 22, '#', 6, 25, '\t', '#', 14, 18, ' ', '#', 30, 22, ',', 13856, 13856, 31, '*', '\'', 23, 30, 29, 1, '$', ',', '.', '\'', 21, '$', 29, 24, 23, 11, ' '}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 83), View.MeasureSpec.getMode(0) + 36, objArr10);
Object[] objArr11 = {baseContext, str, str2, str3, str4, true, str5, (String) objArr10[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((ViewConfiguration.getJumpTapTimeout() >> 16) + 487, 5 - (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)), (char) (ViewConfiguration.getPressedStateDuration() >> 16))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr11);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
super.onCreate(bundle);
setContentView(R.layout.2131558696);
ButterKnife.Dg_(this);
Z();
this.scanIdIcon.setOnClickListener(this.b);
this.nextButton.setOnClickListener(this.b);
this.helpButton.setOnClickListener(this.b);
this.ivpFirstNameThai.mEditText.setFilters(new InputFilter[]{new C12919fLP("^[\\u0E01-\\u0E39\\u0E40-\\u0E4C ]+$"), new InputFilter.LengthFilter(50)});
this.ivpFirstNameThai.mEditText.setInputType(524432);
this.ivpLastNameThai.mEditText.setFilters(new InputFilter[]{new C12919fLP("^[\\u0E01-\\u0E39\\u0E40-\\u0E4C ]+$"), new InputFilter.LengthFilter(50)});
this.ivpLastNameThai.mEditText.setInputType(524432);
this.ivpFirstNameEnglish.mEditText.setFilters(new InputFilter[]{new C12919fLP("^[a-zA-Z .'-]+$"), new InputFilter.LengthFilter(50)});
this.ivpFirstNameEnglish.mEditText.setInputType(524432);
this.ivpLastNameEnglish.mEditText.setFilters(new InputFilter[]{new C12919fLP("^[a-zA-Z .'-]+$"), new InputFilter.LengthFilter(50)});
this.ivpLastNameEnglish.mEditText.setInputType(524432);
this.ivpNationalIdNumber.mEditText.setInputType(2);
this.ivpNationalIdNumber.mEditText.setKeyListener(DigitsKeyListener.getInstance("0123456789-"));
CommonInputViewGroup commonInputViewGroup = this.ivpNationalIdNumber;
fLJ flj = new fLJ(commonInputViewGroup.mEditText, "X-XXXX-XXXXX-XX-X", new fLJ.Sts(this) { // from class: o.ect
private NdidNationalIdInputActivity c;
@Override // o.fLJ.Sts
public final String c(String str6) {
return NdidNationalIdInputActivity.d(this.c, str6);
}
{
this.c = this;
}
});
flj.b = new fLJ.IeS(this) { // from class: com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.3
private NdidNationalIdInputActivity c;
{
this.c = this;
}
@Override // o.fLJ.IeS
public final void b(String str6) {
this.c.presenter.d(str6, false);
}
@Override // o.fLJ.IeS
public final void e(String str6) {
if (gjJ.a(str6)) {
CommonInputViewGroup commonInputViewGroup2 = this.c.ivpNationalIdNumber;
commonInputViewGroup2.e = true;
commonInputViewGroup2.mEditClearImageButton.setVisibility(0);
} else {
CommonInputViewGroup commonInputViewGroup3 = this.c.ivpNationalIdNumber;
commonInputViewGroup3.e = false;
commonInputViewGroup3.mEditClearImageButton.setVisibility(8);
}
this.c.presenter.d(str6, true);
}
};
flj.e = true;
commonInputViewGroup.mEditText.addTextChangedListener(flj);
commonInputViewGroup.d.add(flj);
this.laserIdFirst.setFilters(new InputFilter[]{new InputFilter.AllCaps(), new InputFilter.LengthFilter(3)});
this.laserIdSecond.setFilters(new InputFilter[]{new InputFilter.AllCaps(), new InputFilter.LengthFilter(7)});
this.laserIdThird.setFilters(new InputFilter[]{new InputFilter.AllCaps(), new InputFilter.LengthFilter(2)});
EditText editText = this.laserIdFirst;
editText.addTextChangedListener(new RVV(this, editText, 3, this.laserIdSecond));
EditText editText2 = this.laserIdSecond;
editText2.addTextChangedListener(new RVV(this, editText2, 7, this.laserIdThird));
EditText editText3 = this.laserIdThird;
editText3.addTextChangedListener(new RVV(this, editText3, 2, this.dateOfIssuedViewGroup.mEditText));
this.dateOfBirthViewGroup.mEditText.setInputType(2);
this.dateOfBirthViewGroup.mEditText.setKeyListener(DigitsKeyListener.getInstance("0123456789/"));
CommonInputViewGroup commonInputViewGroup2 = this.dateOfBirthViewGroup;
fLJ flj2 = new fLJ(commonInputViewGroup2.mEditText, "XX/XX/XXXX", new fLJ.Sts(this) { // from class: o.ecu
private NdidNationalIdInputActivity b;
@Override // o.fLJ.Sts
public final String c(String str6) {
return NdidNationalIdInputActivity.a(this.b, str6);
}
{
this.b = this;
}
});
flj2.b = new fLJ.IeS(this) { // from class: com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.2
private NdidNationalIdInputActivity c;
{
this.c = this;
}
@Override // o.fLJ.IeS
public final void b(String str6) {
this.c.presenter.e(str6, false);
}
@Override // o.fLJ.IeS
public final void e(String str6) {
this.c.presenter.e(str6, true);
}
};
flj2.e = true;
commonInputViewGroup2.mEditText.addTextChangedListener(flj2);
commonInputViewGroup2.d.add(flj2);
CustomEditText customEditText = this.dateOfBirthViewGroup.mEditText;
if (customEditText != null) {
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) customEditText.getLayoutParams();
((ViewGroup.LayoutParams) layoutParams).width = -2;
customEditText.setLayoutParams(layoutParams);
int i5 = y + 21;
w = i5 % 128;
i = 2;
int i6 = i5 % 2;
} else {
i = 2;
}
this.dateOfIssuedViewGroup.mEditText.setInputType(i);
this.dateOfIssuedViewGroup.mEditText.setKeyListener(DigitsKeyListener.getInstance("0123456789/"));
CommonInputViewGroup commonInputViewGroup3 = this.dateOfIssuedViewGroup;
fLJ flj3 = new fLJ(commonInputViewGroup3.mEditText, "XX/XX/XXXX", new fLJ.Sts(this) { // from class: o.ecw
private NdidNationalIdInputActivity b;
@Override // o.fLJ.Sts
public final String c(String str6) {
return NdidNationalIdInputActivity.c(this.b, str6);
}
{
this.b = this;
}
});
flj3.b = new fLJ.IeS(this) { // from class: com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.4
private NdidNationalIdInputActivity e;
{
this.e = this;
}
@Override // o.fLJ.IeS
public final void b(String str6) {
this.e.presenter.a(str6, false);
}
@Override // o.fLJ.IeS
public final void e(String str6) {
this.e.presenter.a(str6, true);
}
};
flj3.e = true;
commonInputViewGroup3.mEditText.addTextChangedListener(flj3);
commonInputViewGroup3.d.add(flj3);
CustomEditText customEditText2 = this.dateOfIssuedViewGroup.mEditText;
if (customEditText2 != null) {
RelativeLayout.LayoutParams layoutParams2 = (RelativeLayout.LayoutParams) customEditText2.getLayoutParams();
((ViewGroup.LayoutParams) layoutParams2).width = -2;
customEditText2.setLayoutParams(layoutParams2);
}
CommonInputViewGroup commonInputViewGroup4 = this.ivpFirstNameThai;
LWm lWm = new LWm(this) { // from class: com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.1
private NdidNationalIdInputActivity a;
{
this.a = this;
}
@Override // android.text.TextWatcher
public final void onTextChanged(CharSequence charSequence, int i7, int i8, int i9) {
C4401bZA c4401bZA = this.a.presenter;
c4401bZA.g.c = charSequence.toString();
C4432bZz c4432bZz = new C4432bZz(c4401bZA);
if (c4401bZA.f != 0) {
c4432bZz.e(c4401bZA.f);
}
}
};
commonInputViewGroup4.mEditText.addTextChangedListener(lWm);
commonInputViewGroup4.d.add(lWm);
CommonInputViewGroup commonInputViewGroup5 = this.ivpLastNameThai;
LWm lWm2 = new LWm(this) { // from class: com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.5
private NdidNationalIdInputActivity d;
{
this.d = this;
}
@Override // android.text.TextWatcher
public final void onTextChanged(CharSequence charSequence, int i7, int i8, int i9) {
C4401bZA c4401bZA = this.d.presenter;
c4401bZA.g.j = charSequence.toString();
C4432bZz c4432bZz = new C4432bZz(c4401bZA);
if (c4401bZA.f != 0) {
c4432bZz.e(c4401bZA.f);
}
}
};
commonInputViewGroup5.mEditText.addTextChangedListener(lWm2);
commonInputViewGroup5.d.add(lWm2);
CommonInputViewGroup commonInputViewGroup6 = this.ivpFirstNameEnglish;
LWm lWm3 = new LWm(this) { // from class: com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.7
private NdidNationalIdInputActivity a;
{
this.a = this;
}
@Override // android.text.TextWatcher
public final void onTextChanged(CharSequence charSequence, int i7, int i8, int i9) {
C4401bZA c4401bZA = this.a.presenter;
c4401bZA.g.a = charSequence.toString();
C4432bZz c4432bZz = new C4432bZz(c4401bZA);
if (c4401bZA.f != 0) {
c4432bZz.e(c4401bZA.f);
}
}
};
commonInputViewGroup6.mEditText.addTextChangedListener(lWm3);
commonInputViewGroup6.d.add(lWm3);
CommonInputViewGroup commonInputViewGroup7 = this.ivpLastNameEnglish;
LWm lWm4 = new LWm(this) { // from class: com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.6
private NdidNationalIdInputActivity d;
{
this.d = this;
}
@Override // android.text.TextWatcher
public final void onTextChanged(CharSequence charSequence, int i7, int i8, int i9) {
C4401bZA c4401bZA = this.d.presenter;
c4401bZA.g.g = charSequence.toString();
C4432bZz c4432bZz = new C4432bZz(c4401bZA);
if (c4401bZA.f != 0) {
c4432bZz.e(c4401bZA.f);
}
}
};
commonInputViewGroup7.mEditText.addTextChangedListener(lWm4);
commonInputViewGroup7.d.add(lWm4);
this.spinnerTitle.setOnCustomSpinnerWithTitleCompletion(new CustomSpinnerWithTitle.LWm(this) { // from class: com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.9
private NdidNationalIdInputActivity a;
@Override // com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle.LWm
public final void bn_() {
}
{
this.a = this;
}
@Override // com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle.LWm
public final void bo_() {
C4401bZA c4401bZA = this.a.presenter;
int selectedItemPosition = ((MYp) this.a.spinnerTitle.c.e()).c.getSelectedItemPosition();
List<C0985Ta> list = c4401bZA.b;
if (list != null && selectedItemPosition > 0) {
int i7 = selectedItemPosition - 1;
if (list.get(i7) != null) {
c4401bZA.g.h = c4401bZA.b.get(i7).j;
}
}
C4432bZz c4432bZz = new C4432bZz(c4401bZA);
if (c4401bZA.f != 0) {
c4432bZz.e(c4401bZA.f);
}
}
});
this.spinnerTitle.d.setOnTouchListener(new View.OnTouchListener(this) { // from class: o.ecv
private NdidNationalIdInputActivity d;
@Override // android.view.View.OnTouchListener
public final boolean onTouch(View view, MotionEvent motionEvent) {
return NdidNationalIdInputActivity.a(this.d);
}
{
this.d = this;
}
});
this.spinnerTitle.setItems(Collections.singletonList(getString(R.string.ndid_national_id_input_title_name_placeholder)), false, false);
this.spinnerCountry.setOnCustomSpinnerWithTitleCompletion(new CustomSpinnerWithTitle.LWm(this) { // from class: com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.10
private NdidNationalIdInputActivity e;
@Override // com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle.LWm
public final void bn_() {
}
{
this.e = this;
}
@Override // com.scb.phone.view.custom.investment.onboarding.CustomSpinnerWithTitle.LWm
public final void bo_() {
C4401bZA c4401bZA = this.e.presenter;
int selectedItemPosition = ((MYp) this.e.spinnerCountry.c.e()).c.getSelectedItemPosition();
List<C0405Fw> list = c4401bZA.c;
c4401bZA.g.f = (list == null || list.size() <= selectedItemPosition) ? null : c4401bZA.c.get(selectedItemPosition).b;
C4432bZz c4432bZz = new C4432bZz(c4401bZA);
if (c4401bZA.f != 0) {
c4432bZz.e(c4401bZA.f);
}
}
});
c(new Object[]{this.spinnerTitle, this.ivpFirstNameThai.mEditText.getLayoutParams()}, 1562848741, -1562848738, (int) System.currentTimeMillis());
c(new Object[]{this.spinnerCountry, this.ivpFirstNameThai.mEditText.getLayoutParams()}, 1562848741, -1562848738, (int) System.currentTimeMillis());
this.spinnerTitle.setHintTextColor(R.color.f3412131099849);
this.spinnerCountry.setHintTextColor(R.color.f3412131099849);
this.laserIdFirst.setTextColor(nMh.getColor(this, R.color.f3412131099849));
this.laserIdSecond.setTextColor(nMh.getColor(this, R.color.f3412131099849));
this.laserIdThird.setTextColor(nMh.getColor(this, R.color.f3412131099849));
this.presenter.e((C4401bZA) this);
this.presenter.d(B_());
this.q.d("feature", f());
this.q.c(((BaseActivity) this).scbAnalytics, "ndid_rp_fill_info");
}
@Override // androidx.appcompat.app.AppCompatActivity, androidx.activity.ComponentActivity, android.app.Activity, android.content.ComponentCallbacks
public void onConfigurationChanged(Configuration configuration) {
int i = 2 % 2;
int i2 = y + 101;
w = i2 % 128;
int i3 = i2 % 2;
super.onConfigurationChanged(configuration);
if (i3 == 0) {
int i4 = 66 / 0;
}
}
@Override // com.scb.phone.view.activity.BaseActivity, android.app.Activity
public boolean onOptionsItemSelected(MenuItem menuItem) {
int i = 2 % 2;
int i2 = y + 59;
w = i2 % 128;
int i3 = i2 % 2;
if (menuItem.getItemId() != 16908332) {
boolean onOptionsItemSelected = super.onOptionsItemSelected(menuItem);
int i4 = w + 37;
y = i4 % 128;
int i5 = i4 % 2;
return onOptionsItemSelected;
}
super.onBackPressed();
int i6 = y + 69;
w = i6 % 128;
if (i6 % 2 != 0) {
return true;
}
throw null;
}
private static /* synthetic */ Object d(Object[] objArr) {
NdidNationalIdInputActivity ndidNationalIdInputActivity = (NdidNationalIdInputActivity) objArr[0];
int i = 2 % 2;
if (Build.VERSION.SDK_INT >= 33) {
int i2 = y + 115;
int i3 = i2 % 128;
w = i3;
if (i2 % 2 != 0) {
int i4 = i3 + 29;
y = i4 % 128;
int i5 = i4 % 2;
C11267ecC.c(ndidNationalIdInputActivity);
return null;
}
}
C11267ecC.e(ndidNationalIdInputActivity);
int i6 = w + 63;
y = i6 % 128;
int i7 = i6 % 2;
return null;
}
public final void k() {
boolean z;
Uri uriForFile;
int i = 2 % 2;
int i2 = w + 71;
y = i2 % 128;
try {
if (i2 % 2 == 0) {
if ("mounted".equals(Environment.getExternalStorageState()) || "mounted_ro".equals(Environment.getExternalStorageState())) {
int i3 = y + 27;
w = i3 % 128;
int i4 = i3 % 2;
z = true;
} else {
z = false;
}
String format = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date());
StringBuilder sb = new StringBuilder("JPEG_");
sb.append(format);
sb.append("_");
File createTempFile = File.createTempFile(sb.toString(), ".jpg", getExternalFilesDir(Environment.DIRECTORY_PICTURES));
if (z) {
uriForFile = C9257dgM.getUriForFile(this, cXH.RVV.e, createTempFile);
} else {
uriForFile = C9257dgM.getUriForFile(this, cXH.RVV.b, createTempFile);
}
Intent intent = new Intent(this, (Class<?>) NationalIdCameraActivity.class);
intent.putExtra("output", uriForFile);
intent.putExtra("EXTRA_CROP_RATIO", 1.0f);
startActivityForResult(intent, 123);
this.f7625o = false;
this.l = createTempFile.getAbsolutePath();
return;
}
"mounted".equals(Environment.getExternalStorageState());
throw null;
} catch (IOException e) {
guQ.e(e);
}
}
@Override // o.InterfaceC9492dkk
public final void b() {
TextView textView;
int i;
int i2 = 2 % 2;
int i3 = y + 69;
w = i3 % 128;
if (i3 % 2 == 0) {
this.scanIdIcon.setImageResource(R.drawable.icon_green_tick);
textView = this.textViewTakingPhotoEditLabel;
i = 1;
} else {
this.scanIdIcon.setImageResource(R.drawable.icon_green_tick);
textView = this.textViewTakingPhotoEditLabel;
i = 0;
}
textView.setVisibility(i);
}
public void h() {
int i = 2 % 2;
int i2 = y + 95;
w = i2 % 128;
int i3 = i2 % 2;
NationalIdHelpActivity.b(this, getString(R.string.laser_id_help_title));
int i4 = w + 85;
y = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 31 / 0;
}
}
@Override // o.InterfaceC9492dkk
public final void b(C0977Su c0977Su) {
int i = 2 % 2;
Intent intent = new Intent();
intent.putExtra("com.scb.phone.presentation.views.ndid.NdidNationalIdInputView.idDisplay", c0977Su);
setResult(-1, intent);
finish();
int i2 = w + 69;
y = i2 % 128;
int i3 = i2 % 2;
}
@Override // o.InterfaceC9492dkk
public final void e(List<String> list) {
CustomSpinnerWithTitle customSpinnerWithTitle;
int i = 2 % 2;
if (list != null) {
int i2 = y + 71;
w = i2 % 128;
if (i2 % 2 == 0) {
this.m = false;
customSpinnerWithTitle = this.spinnerTitle;
} else {
this.m = true;
customSpinnerWithTitle = this.spinnerTitle;
}
customSpinnerWithTitle.setItemsWithPlaceholder(list, true, true);
int i3 = w + 23;
y = i3 % 128;
int i4 = i3 % 2;
}
}
@Override // o.InterfaceC9492dkk
public final void d(C0405Fw c0405Fw, int i) {
int i2 = 2 % 2;
int i3 = y + 49;
w = i3 % 128;
int i4 = i3 % 2;
this.spinnerCountry.setItemsWithPlaceholder(c0405Fw.c, false, false);
if (c0405Fw.c.size() >= i) {
int i5 = w + 71;
y = i5 % 128;
int i6 = i5 % 2;
this.spinnerCountry.setSelectionIndex(i);
}
int i7 = w + 33;
y = i7 % 128;
int i8 = i7 % 2;
}
@Override // o.InterfaceC9492dkk
public final void c(boolean z) {
int i = 2 % 2;
int i2 = w + 1;
y = i2 % 128;
int i3 = i2 % 2;
if (z) {
this.ivpNationalIdNumber.c();
int i4 = y + 9;
w = i4 % 128;
if (i4 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
this.ivpNationalIdNumber.e();
int i5 = y + 85;
w = i5 % 128;
if (i5 % 2 == 0) {
int i6 = 25 / 0;
}
}
@Override // o.InterfaceC9492dkk
public final void e() {
int i = 2 % 2;
int i2 = y + 85;
w = i2 % 128;
int i3 = i2 % 2;
d(getString(R.string.ndid_under_age_error_message));
if (i3 == 0) {
throw null;
}
}
@Override // o.InterfaceC9492dkk
public final void c() {
int i = 2 % 2;
int i2 = y + 57;
w = i2 % 128;
int i3 = i2 % 2;
d(getString(R.string.error_ekyc_passport_1004_text));
int i4 = w + 43;
y = i4 % 128;
if (i4 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // o.InterfaceC9492dkk
public final void d() {
int i = 2 % 2;
C0997Th c0997Th = new C0997Th();
c0997Th.h = R.drawable.ic_notice;
c0997Th.g = getString(R.string.ntb_ekyc_title);
c0997Th.f = getString(R.string.error_default_title);
c0997Th.c = getString(R.string.ekyc_user_exists_description);
c0997Th.d = getString(R.string.ekyc_register_scb_easy_app);
c0997Th.b = new fJC();
c0997Th.a = false;
startActivity(ReviewInfoResultActivity.ajz_(this, c0997Th));
finish();
int i2 = y + 27;
w = i2 % 128;
int i3 = i2 % 2;
}
@Override // o.InterfaceC9492dkk
public final void a(String str) {
int i = 2 % 2;
File file = new File(str);
if (file.exists()) {
int i2 = y + 39;
w = i2 % 128;
int i3 = i2 % 2;
if (file.delete()) {
guQ.c("deleteOldImage was deleted", new Object[0]);
int i4 = w + 1;
y = i4 % 128;
int i5 = i4 % 2;
}
}
}
@Override // o.InterfaceC9492dkk
public final void a(boolean z) {
int i = 2 % 2;
int i2 = w + 43;
y = i2 % 128;
int i3 = i2 % 2;
if (z) {
this.dateOfBirthViewGroup.c();
return;
}
this.dateOfBirthViewGroup.e();
int i4 = y + 13;
w = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.InterfaceC9492dkk
public final void b(boolean z) {
int i = 2 % 2;
int i2 = w;
int i3 = i2 + 111;
y = i3 % 128;
if (i3 % 2 != 0) {
throw null;
}
if (z) {
int i4 = i2 + 35;
y = i4 % 128;
int i5 = i4 % 2;
this.dateOfIssuedViewGroup.c();
return;
}
this.dateOfIssuedViewGroup.e();
int i6 = w + 75;
y = i6 % 128;
if (i6 % 2 != 0) {
int i7 = 78 / 0;
}
}
@Override // o.InterfaceC9492dkk
public final void a(String str, int i) {
int i2 = 2 % 2;
AbstractC13175fSw<File> d = C12891fKc.d(str, i);
final C4401bZA c4401bZA = this.presenter;
Objects.requireNonNull(c4401bZA);
fSQ<? super File> fsq = new fSQ(c4401bZA) { // from class: o.ecB
private C4401bZA e;
@Override // o.fSQ
public final void c(Object obj) {
NdidNationalIdInputActivity.e(this.e, (File) obj);
}
{
this.e = c4401bZA;
}
};
final C4401bZA c4401bZA2 = this.presenter;
Objects.requireNonNull(c4401bZA2);
this.k = d.b(fsq, new fSQ(c4401bZA2) { // from class: o.ecz
private C4401bZA b;
@Override // o.fSQ
public final void c(Object obj) {
NdidNationalIdInputActivity.c(this.b, (Throwable) obj);
}
{
this.b = c4401bZA2;
}
});
int i3 = y + 49;
w = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 81 / 0;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes5.dex */
public class RVV extends fJJ {
private EditText b;
private View c;
private NdidNationalIdInputActivity d;
private int e;
public RVV(NdidNationalIdInputActivity ndidNationalIdInputActivity, EditText editText, int i, View view) {
this.d = ndidNationalIdInputActivity;
this.e = i;
this.b = editText;
this.c = view;
}
@Override // o.fJJ, android.text.TextWatcher
public final void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
C4401bZA c4401bZA = this.d.presenter;
StringBuilder sb = new StringBuilder();
sb.append(this.d.laserIdFirst.getText().toString());
sb.append(this.d.laserIdSecond.getText().toString());
sb.append(this.d.laserIdThird.getText().toString());
c4401bZA.g.k = sb.toString();
C4432bZz c4432bZz = new C4432bZz(c4401bZA);
if (c4401bZA.f != 0) {
c4432bZz.e(c4401bZA.f);
}
if (charSequence.length() == this.e) {
if (this.c == this.d.laserIdSecond || this.c == this.d.laserIdThird) {
((EditText) this.c).setText("");
}
this.c.requestFocus();
}
if (charSequence.length() != 0) {
this.b.setTextColor(nMh.getColor(this.d, R.color.f2982131099805));
} else {
this.b.setTextColor(nMh.getColor(this.d, R.color.f3412131099849));
}
}
}
private void d(String str) {
int i = 2 % 2;
Intent intent = new Intent(this, (Class<?>) ReviewInfoResultActivity.class);
intent.putExtra("EXTRA_IMAGE_ID", R.drawable.ic_notice);
intent.putExtra("EXTRA_PAGE_TITLE", getString(R.string.ntb_ekyc_title));
intent.putExtra("EXTRA_TITLE", getString(R.string.error_default_title));
intent.putExtra("EXTRA_DESCRIPTION", str);
startActivity(intent);
finish();
int i2 = w + 25;
y = i2 % 128;
int i3 = i2 % 2;
}
private static /* synthetic */ Object c(Object[] objArr) {
CustomSpinnerWithTitle customSpinnerWithTitle = (CustomSpinnerWithTitle) objArr[0];
ViewGroup.LayoutParams layoutParams = (ViewGroup.LayoutParams) objArr[1];
int i = 2 % 2;
ViewGroup.LayoutParams layoutParams2 = customSpinnerWithTitle.f.getLayoutParams();
if ((!(layoutParams2 instanceof LinearLayout.LayoutParams)) || !(layoutParams instanceof RelativeLayout.LayoutParams)) {
return null;
}
int i2 = y + 31;
w = i2 % 128;
int i3 = i2 % 2;
LinearLayout.LayoutParams layoutParams3 = (LinearLayout.LayoutParams) layoutParams2;
RelativeLayout.LayoutParams layoutParams4 = (RelativeLayout.LayoutParams) layoutParams;
((ViewGroup.LayoutParams) layoutParams3).height = ((ViewGroup.LayoutParams) layoutParams4).height;
((ViewGroup.MarginLayoutParams) layoutParams3).topMargin = ((ViewGroup.MarginLayoutParams) layoutParams4).topMargin;
customSpinnerWithTitle.f.setLayoutParams(layoutParams3);
int i4 = y + 13;
w = i4 % 128;
int i5 = i4 % 2;
return null;
}
/* loaded from: classes5.dex */
abstract class LWm implements TextWatcher {
private NdidNationalIdInputActivity d;
@Override // android.text.TextWatcher
public void afterTextChanged(Editable editable) {
}
@Override // android.text.TextWatcher
public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
}
private LWm(NdidNationalIdInputActivity ndidNationalIdInputActivity) {
this.d = ndidNationalIdInputActivity;
}
/* synthetic */ LWm(NdidNationalIdInputActivity ndidNationalIdInputActivity, byte b) {
this(ndidNationalIdInputActivity);
}
}
@Override // androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, android.app.Activity
public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
int i2 = 2 % 2;
int i3 = w + 55;
y = i3 % 128;
int i4 = 0;
if (i3 % 2 != 0) {
super.onRequestPermissionsResult(i, strArr, iArr);
} else {
super.onRequestPermissionsResult(i, strArr, iArr);
}
C11267ecC.b(this, i, iArr);
int length = iArr.length;
while (i4 < length) {
if (iArr[i4] != 0) {
int i5 = y + 11;
w = i5 % 128;
if (i5 % 2 == 0) {
finish();
Object obj = null;
obj.hashCode();
throw null;
}
finish();
}
i4++;
int i6 = y + 99;
w = i6 % 128;
int i7 = i6 % 2;
}
}
@Override // o.AbstractActivityC11252ebo, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onResume() {
int i = 2 % 2;
int i2 = w + 113;
y = i2 % 128;
int i3 = i2 % 2;
Context baseContext = getBaseContext();
Object obj = null;
if (baseContext == null) {
Object[] objArr = new Object[1];
aG(new char[]{'.', 17, '%', '0', 31, '\f', '#', ')', '*', 17, 19, '#', 22, '$', 3, '\b', 24, 7, 5, '+', '\n', 22, '.', 23, '0', '&'}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.ccr_email_verification_body_statement_channel).substring(58, 59).length() + 87), (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 26, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aG(new char[]{30, '!', 13815, 13815, ' ', 25, '\b', 22, 13817, 13817, 17, '\t', 31, '+', 3, '\b', ' ', 19}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.cardless_invalid_divisible).substring(33, 34).length() + 14), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.auto_p2p_tap_menu).substring(0, 9).length() + 9, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i4 = w + 3;
y = i4 % 128;
if (i4 % 2 != 0) {
baseContext.getApplicationContext();
obj.hashCode();
throw null;
}
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
int i5 = y + 45;
w = i5 % 128;
int i6 = i5 % 2;
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(Color.blue(0) + 492, 5 - (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)), (char) (ViewConfiguration.getKeyRepeatTimeout() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj2);
}
Object invoke = ((Method) obj2).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj3 = xzZ.y.get(1378719468);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(Color.rgb(0, 0, 0) + 16777703, View.MeasureSpec.getMode(0) + 5, (char) (ViewConfiguration.getWindowTouchSlop() >> 8))).getMethod(KtaJsonExactionHelper.OBJECT, Context.class);
xzZ.y.put(1378719468, obj3);
}
((Method) obj3).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onResume();
this.presenter.e = true;
if (this.f7625o) {
int i7 = w + 23;
y = i7 % 128;
int i8 = i7 % 2;
DisplayMetrics displayMetrics = getResources().getDisplayMetrics();
this.f7625o = false;
this.presenter.a(this.l, Math.max(displayMetrics.widthPixels, displayMetrics.heightPixels));
}
}
@Override // com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, android.app.Activity
public void onActivityResult(int i, int i2, Intent intent) {
int i3 = 2 % 2;
int i4 = y + 69;
int i5 = i4 % 128;
w = i5;
int i6 = i4 % 2;
if (i2 == -1 && i == 123) {
int i7 = i5 + 113;
y = i7 % 128;
if (i7 % 2 != 0) {
this.f7625o = true;
} else {
this.f7625o = true;
}
this.rootView.requestFocus();
} else if (i2 == 0 && i == 123) {
C0977Su c0977Su = this.presenter.g;
if (c0977Su != null) {
int i8 = y + 93;
w = i8 % 128;
int i9 = i8 % 2;
if (c0977Su.l != null) {
int i10 = y + 105;
w = i10 % 128;
int i11 = i10 % 2;
}
}
finish();
int i12 = y + 119;
w = i12 % 128;
if (i12 % 2 == 0) {
int i13 = 2 / 4;
}
}
super.onActivityResult(i, i2, intent);
}
@OnClick
public void onEditTextClicked() {
int i = 2 % 2;
int i2 = w + 95;
y = i2 % 128;
if (i2 % 2 != 0) {
boolean z = this.presenter.e;
throw null;
}
C4401bZA c4401bZA = this.presenter;
if (c4401bZA.e) {
c4401bZA.e = false;
bZG bzg = new bZG();
if (c4401bZA.f == 0) {
int i3 = w + 95;
y = i3 % 128;
int i4 = i3 % 2;
return;
}
bzg.e(c4401bZA.f);
}
}
@Override // com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, android.app.Activity
public void onDestroy() {
int i = 2 % 2;
int i2 = y + 125;
w = i2 % 128;
int i3 = i2 % 2;
C4401bZA c4401bZA = this.presenter;
C0977Su c0977Su = c4401bZA.g;
if (c0977Su != null && c0977Su.l != null) {
bZB bzb = new bZB(c4401bZA);
if (c4401bZA.f != 0) {
int i4 = w + 79;
y = i4 % 128;
int i5 = i4 % 2;
bzb.e(c4401bZA.f);
int i6 = w + 39;
y = i6 % 128;
int i7 = i6 % 2;
}
}
this.presenter.w_();
fSJ fsj = this.k;
if (fsj != null) {
int i8 = w + 117;
y = i8 % 128;
if (i8 % 2 != 0) {
fsj.dispose();
throw null;
}
fsj.dispose();
}
super.onDestroy();
}
@Override // o.AbstractActivityC11252ebo, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onPause() {
int i = 2 % 2;
Context baseContext = getBaseContext();
if (baseContext == null) {
int i2 = w + 17;
y = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = new Object[1];
aG(new char[]{'.', 17, '%', '0', 31, '\f', '#', ')', '*', 17, 19, '#', 22, '$', 3, '\b', 24, 7, 5, '+', '\n', 22, '.', 23, '0', '&'}, (byte) (ExpandableListView.getPackedPositionGroup(0L) + 88), 26 - TextUtils.indexOf("", ""), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aG(new char[]{30, '!', 13815, 13815, ' ', 25, '\b', 22, 13817, 13817, 17, '\t', 31, '+', 3, '\b', ' ', 19}, (byte) (((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(8) - 97), ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.image_tag).substring(0, 13).codePointAt(2) - 91, objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
int i4 = w + 43;
y = i4 % 128;
int i5 = i4 % 2;
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - Gravity.getAbsoluteGravity(0, 0), 5 - TextUtils.getOffsetBefore("", 0), (char) (ViewConfiguration.getWindowTouchSlop() >> 8))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj2 = xzZ.y.get(1633456013);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(487 - KeyEvent.keyCodeFromString(""), 5 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), (char) (ViewConfiguration.getKeyRepeatDelay() >> 16))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj2);
}
((Method) obj2).invoke(invoke, objArr3);
int i6 = y + 93;
w = i6 % 128;
int i7 = i6 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
int i8 = y + 13;
w = i8 % 128;
int i9 = i8 % 2;
}
@Override // o.AbstractActivityC11252ebo, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper
public void attachBaseContext(Context context) {
Context context2;
int i = 2 % 2;
int i2 = w + 3;
y = i2 % 128;
int i3 = i2 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
aG(new char[]{'.', 17, '%', '0', 31, '\f', '#', ')', ' ', '/', '%', '!', '/', 30, ' ', 22, 13808, 13808}, (byte) (((byte) KeyEvent.getModifierMetaStateMask()) + 8), (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 18, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
aI(null, null, 127 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), new byte[]{ISOFileInfo.PROP_INFO, -124, ISOFileInfo.FILE_IDENTIFIER, -126, ISOFileInfo.DATA_BYTES2}, objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue < 99000 || intValue > 99999) {
if (context != null) {
int i4 = w + 21;
y = i4 % 128;
if (i4 % 2 != 0) {
context.getApplicationContext();
throw null;
}
context2 = context.getApplicationContext();
} else {
context2 = context;
}
if (context2 != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0', 0) + 493, 6 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), (char) ((ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
aI(null, null, (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 126, new byte[]{-120, -109, -112, ISOFileInfo.SECURITY_ATTR_EXP, -110, ISOFileInfo.CHANNEL_SECURITY, -120, -113, -119, -119, -109, ISOFileInfo.SECURITY_ATTR_COMPACT, -122, -112, -110, -122, -122, ISOFileInfo.PROP_INFO, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.SECURITY_ATTR_EXP, -110, ISOFileInfo.SECURITY_ATTR_EXP, -111, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.CHANNEL_SECURITY, ISOFileInfo.ENV_TEMP_EF, -120, ISOFileInfo.LCS_BYTE, -112, -113, ISOFileInfo.LCS_BYTE, -119, -112, ISOFileInfo.LCS_BYTE, -119, ISOFileInfo.LCS_BYTE, ISOFileInfo.ENV_TEMP_EF, -113, ISOFileInfo.CHANNEL_SECURITY, -119, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.LCS_BYTE, -119, -120, ISOFileInfo.FCI_EXT, -122}, objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
aI(null, null, 127 - View.MeasureSpec.makeMeasureSpec(0, 0), new byte[]{-109, ISOFileInfo.ENV_TEMP_EF, -119, -111, -112, -122, ISOFileInfo.SECURITY_ATTR_EXP, -112, -119, -110, -112, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.FCI_EXT, ISOFileInfo.SECURITY_ATTR_COMPACT, -112, ISOFileInfo.PROP_INFO, -119, -111, -122, -110, -111, ISOFileInfo.ENV_TEMP_EF, -119, -111, -119, -119, -112, -110, ISOFileInfo.ENV_TEMP_EF, -110, ISOFileInfo.FCI_EXT, ISOFileInfo.FCI_EXT, -112, -108, ISOFileInfo.CHANNEL_SECURITY, -113, ISOFileInfo.SECURITY_ATTR_EXP, -108, -111, ISOFileInfo.LCS_BYTE, -120, ISOFileInfo.ENV_TEMP_EF, -111, ISOFileInfo.SECURITY_ATTR_EXP, -113, -122, -120, -111, -122, ISOFileInfo.FCI_EXT, -111, -113, -111, -113, -110, -109, ISOFileInfo.CHANNEL_SECURITY, -120, -119, -111, -109, -111, -119, -109}, objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
aI(null, null, (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 127, new byte[]{ISOFileInfo.FCI_EXT, ISOFileInfo.SECURITY_ATTR_EXP, -112, -110, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.ENV_TEMP_EF, -108, ISOFileInfo.SECURITY_ATTR_COMPACT, -108, ISOFileInfo.CHANNEL_SECURITY, -111, -112, -113, -109, -119, -109, -111, ISOFileInfo.SECURITY_ATTR_EXP, ISOFileInfo.SECURITY_ATTR_COMPACT, ISOFileInfo.LCS_BYTE, -110, -108, -110, -122, -122, -113, -110, -110, ISOFileInfo.ENV_TEMP_EF, -119, -120, ISOFileInfo.PROP_INFO, ISOFileInfo.CHANNEL_SECURITY, -111, -112, -109, ISOFileInfo.SECURITY_ATTR_COMPACT, -112, ISOFileInfo.SECURITY_ATTR_EXP, -113, ISOFileInfo.FCI_EXT, -108, -122, -108, ISOFileInfo.SECURITY_ATTR_COMPACT, -119, ISOFileInfo.ENV_TEMP_EF, -112, -108, -120, -119, -109, ISOFileInfo.LCS_BYTE, ISOFileInfo.CHANNEL_SECURITY, -113, -109, -109, ISOFileInfo.LCS_BYTE, ISOFileInfo.ENV_TEMP_EF, ISOFileInfo.LCS_BYTE, -108, -112, ISOFileInfo.ENV_TEMP_EF}, objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
aG(new char[]{22, 3, 0, 15, '-', 18, 13849, 13849, '-', 11, 3, '&', 30, '\"', 13915, 13915, 23, '.', 31, '\b', ',', 17, '&', ',', 17, '\'', '$', 5, 23, '-', 24, '.', '\b', '$', '.', '/', 5, '$', NistHelper.SEP_FS, '!', '.', '-', '\'', '0', 4, '!', '.', '-', 26, '\'', 30, '\"', '!', 24, '*', 17, '\f', 24, 11, 17, ' ', 27, '+', 4, 27, 22, '/', 22, 26, 22, ' ', 25, 4, '+'}, (byte) ((ViewConfiguration.getLongPressTimeout() >> 16) + 100), TextUtils.getOffsetAfter("", 0) + 74, objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
aG(new char[]{5, '#', 5, '%', 13757}, (byte) (20 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))), 5 - (ViewConfiguration.getFadingEdgeLength() >> 16), objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
aG(new char[]{24, '.', ',', 22, '#', 6, 25, '\t', '#', 14, 18, ' ', '#', 30, 22, ',', 13856, 13856, 31, '*', '\'', 23, 30, 29, 1, '$', ',', '.', '\'', 21, '$', 29, 24, 23, 11, ' '}, (byte) (ExpandableListView.getPackedPositionGroup(0L) + 117), 36 - (ViewConfiguration.getScrollBarSize() >> 8), objArr8);
Object[] objArr9 = {context2, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((ViewConfiguration.getWindowTouchSlop() >> 8) + 487, KeyEvent.normalizeMetaState(0) + 5, (char) (((byte) KeyEvent.getModifierMetaStateMask()) + 1))).getMethod("e", Context.class, String.class, String.class, String.class, String.class, Boolean.TYPE, String.class, String.class);
xzZ.y.put(1656189573, obj2);
}
((Method) obj2).invoke(invoke, objArr9);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
int i5 = y + 113;
w = i5 % 128;
if (i5 % 2 != 0) {
return;
}
Object obj3 = null;
obj3.hashCode();
throw null;
}
public static /* synthetic */ void b(NdidNationalIdInputActivity ndidNationalIdInputActivity, View view) {
String str;
String str2;
String str3;
String str4;
int i = 2 % 2;
int id = view.getId();
if (id != R.id.button_next) {
if (id != R.id.help_button) {
if (id == R.id.icon_scan_id) {
C4401bZA c4401bZA = ndidNationalIdInputActivity.presenter;
if (c4401bZA.e) {
c4401bZA.e = false;
bZG bzg = new bZG();
if (c4401bZA.f != 0) {
bzg.e(c4401bZA.f);
return;
}
return;
}
return;
}
return;
}
C4401bZA c4401bZA2 = ndidNationalIdInputActivity.presenter;
if (c4401bZA2.e) {
c4401bZA2.e = false;
ZI.IeS ieS = new ZI.IeS() { // from class: o.bZH
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9492dkk) obj).h();
}
};
if (c4401bZA2.f != 0) {
ieS.e(c4401bZA2.f);
return;
}
int i2 = y + 69;
w = i2 % 128;
int i3 = i2 % 2;
return;
}
return;
}
C4401bZA c4401bZA3 = ndidNationalIdInputActivity.presenter;
if (c4401bZA3.e) {
int i4 = w + 59;
y = i4 % 128;
int i5 = i4 % 2;
if (c4401bZA3.a()) {
c4401bZA3.e = false;
if (c4401bZA3.f != 0) {
c4401bZA3.f.y();
}
c4401bZA3.k.e.e(c4401bZA3.g.b);
c4401bZA3.k.e.d(c4401bZA3.g.d);
Obj obj = c4401bZA3.i;
C17513xR c17513xR = c4401bZA3.l;
C0977Su c0977Su = c4401bZA3.g;
C14957gcv.e(c0977Su, "");
String str5 = c0977Su.h;
String str6 = str5 == null ? "" : str5;
String str7 = c0977Su.c;
if (str7 == null) {
int i6 = y + 33;
w = i6 % 128;
if (i6 % 2 == 0) {
int i7 = 41 / 0;
}
str = "";
} else {
str = str7;
}
String str8 = c0977Su.j;
String str9 = str8 == null ? "" : str8;
String str10 = c0977Su.a;
String str11 = str10 == null ? "" : str10;
String str12 = c0977Su.g;
if (str12 == null) {
int i8 = w + 61;
y = i8 % 128;
if (i8 % 2 != 0) {
int i9 = 16 / 0;
}
str2 = "";
} else {
str2 = str12;
}
String str13 = c0977Su.b;
if (str13 == null) {
int i10 = y + 75;
w = i10 % 128;
if (i10 % 2 == 0) {
throw null;
}
str3 = "";
} else {
str3 = str13;
}
String str14 = c0977Su.f;
String str15 = str14 == null ? "" : str14;
String str16 = c0977Su.d;
if (str16 == null) {
int i11 = w + 99;
y = i11 % 128;
int i12 = i11 % 2;
str4 = "";
} else {
str4 = str16;
}
String str17 = c0977Su.k;
String str18 = str17 == null ? "" : str17;
String str19 = c0977Su.m;
String str20 = str19 == null ? "" : str19;
String str21 = c0977Su.f8365o;
obj.d(new C4135bR(str6, str, str9, str11, str2, str3, str15, str4, str18, str20, str21 == null ? "" : str21));
Obj obj2 = c4401bZA3.i;
obj2.d(obj2.i, new C4401bZA.LWm(c4401bZA3));
}
}
ndidNationalIdInputActivity.fieldsContainer.requestFocus();
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x0030, code lost:
r4.m.e("ndid");
r0 = r4.m;
r0.d(r0.i, new o.C4401bZA.HBt(r4));
*/
/* JADX WARN: Code restructure failed: missing block: B:11:0x0027, code lost:
r1 = com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.w + 51;
com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.y = r1 % 128;
r1 = r1 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x0019, code lost:
if (r4.m == false) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0014, code lost:
if (r4.m == false) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:7:0x001b, code lost:
r4 = r4.presenter;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x001f, code lost:
if (r4.f == 0) goto L12;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x0021, code lost:
r4.f.y();
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static /* synthetic */ boolean a(com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity r4) {
/*
r0 = 2
int r1 = r0 % r0
int r1 = com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.y
int r1 = r1 + 81
int r2 = r1 % 128
com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.w = r2
int r1 = r1 % r0
r2 = 0
if (r1 != 0) goto L17
boolean r1 = r4.m
r3 = 54
int r3 = r3 / r2
if (r1 != 0) goto L43
goto L1b
L17:
boolean r1 = r4.m
if (r1 != 0) goto L43
L1b:
o.bZA r4 = r4.presenter
T extends o.cYp r1 = r4.f
if (r1 == 0) goto L27
T extends o.cYp r0 = r4.f
r0.y()
goto L30
L27:
int r1 = com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.w
int r1 = r1 + 51
int r3 = r1 % 128
com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.y = r3
int r1 = r1 % r0
L30:
o.fAZ r0 = r4.m
java.lang.String r1 = "ndid"
r0.e(r1)
o.fAZ r0 = r4.m
o.bZA$HBt r1 = new o.bZA$HBt
r1.<init>(r4)
o.fSk r4 = r0.i
r0.d(r4, r1)
L43:
return r2
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity.a(com.scb.phone.view.activity.ndid.NdidNationalIdInputActivity):boolean");
}
public static /* synthetic */ String a(NdidNationalIdInputActivity ndidNationalIdInputActivity, String str) {
int i = 2 % 2;
int i2 = y + 111;
w = i2 % 128;
int i3 = i2 % 2;
qBc qbc = ndidNationalIdInputActivity.presenter.h;
String b = C15602gz.b(str, "[^0-9]", "XX/XX/XXXX");
int i4 = y + 109;
w = i4 % 128;
if (i4 % 2 != 0) {
return b;
}
throw null;
}
public static /* synthetic */ String d(NdidNationalIdInputActivity ndidNationalIdInputActivity, String str) {
String b;
int i = 2 % 2;
int i2 = y + 91;
w = i2 % 128;
int i3 = i2 % 2;
C4401bZA c4401bZA = ndidNationalIdInputActivity.presenter;
if (i3 == 0) {
C17800zpz c17800zpz = c4401bZA.d;
b = C15602gz.b(str, "[^0-9]", "X-XXXX-XXXXX-XX-X");
int i4 = 7 / 0;
} else {
C17800zpz c17800zpz2 = c4401bZA.d;
b = C15602gz.b(str, "[^0-9]", "X-XXXX-XXXXX-XX-X");
}
int i5 = y + 87;
w = i5 % 128;
int i6 = i5 % 2;
return b;
}
public static /* synthetic */ void c(C4401bZA c4401bZA, Throwable th) {
int i = 2 % 2;
int i2 = w + 67;
y = i2 % 128;
int i3 = i2 % 2;
if (c4401bZA.f != 0) {
int i4 = w + 119;
y = i4 % 128;
if (i4 % 2 == 0) {
c4401bZA.f.ar_();
}
}
C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK;
if (c4401bZA.b(th)) {
c4401bZA.d(c4401bZA.j.d(th, ieS));
int i5 = y + 25;
w = i5 % 128;
int i6 = i5 % 2;
}
c4401bZA.e = true;
}
private static /* synthetic */ Object b(Object[] objArr) {
NdidNationalIdInputActivity ndidNationalIdInputActivity = (NdidNationalIdInputActivity) objArr[0];
String str = (String) objArr[1];
int i = 2 % 2;
int i2 = w + 37;
y = i2 % 128;
int i3 = i2 % 2;
C4401bZA c4401bZA = ndidNationalIdInputActivity.presenter;
if (i3 == 0) {
qBc qbc = c4401bZA.h;
return C15602gz.b(str, "[^0-9]", "XX/XX/XXXX");
}
qBc qbc2 = c4401bZA.h;
C15602gz.b(str, "[^0-9]", "XX/XX/XXXX");
throw null;
}
@Override // o.AbstractActivityC11252ebo, com.scb.phone.view.activity.BaseActivity, com.scb.phone.view.activity.PreLoadCheckActivity, com.akexorcist.localizationactivity.LocalizationActivity, androidx.appcompat.app.AppCompatActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public void onStart() {
int i = 2 % 2;
int i2 = w + 87;
y = i2 % 128;
int i3 = i2 % 2;
Object obj = null;
super.onStart();
if (i3 != 0) {
throw null;
}
int i4 = w + 65;
y = i4 % 128;
if (i4 % 2 == 0) {
return;
}
obj.hashCode();
throw null;
}
@Override // o.InterfaceC9492dkk
public final void g() {
c(new Object[]{this}, 1517999583, -1517999581, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(6) + 588188658);
}
@Override // com.scb.phone.view.activity.BaseActivity
public final void Z() {
c(new Object[]{this}, -674584941, 674584941, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 913013628);
}
@Override // o.InterfaceC9492dkk
public final void e(boolean z) {
c(new Object[]{this, Boolean.valueOf(z)}, -333595838, 333595842, System.identityHashCode(this));
}
protected String f() {
int i = 2 % 2;
int i2 = w;
int i3 = i2 + 89;
y = i3 % 128;
int i4 = i3 % 2;
int i5 = i2 + 23;
y = i5 % 128;
if (i5 % 2 == 0) {
return "open_account";
}
throw null;
}
private static void ajj_(CustomSpinnerWithTitle customSpinnerWithTitle, ViewGroup.LayoutParams layoutParams) {
c(new Object[]{customSpinnerWithTitle, layoutParams}, 1562848741, -1562848738, (int) System.currentTimeMillis());
}
public static /* synthetic */ String c(NdidNationalIdInputActivity ndidNationalIdInputActivity, String str) {
return (String) c(new Object[]{ndidNationalIdInputActivity, str}, -553757781, 553757782, (int) System.currentTimeMillis());
}
public static /* synthetic */ void e(C4401bZA c4401bZA, File file) {
int i = 2 % 2;
int i2 = w + 65;
y = i2 % 128;
int i3 = i2 % 2;
c4401bZA.d(file);
if (i3 != 0) {
Object obj = null;
obj.hashCode();
throw null;
}
int i4 = w + 31;
y = i4 % 128;
int i5 = i4 % 2;
}
}