what-the-bank/sources/com/scb/phone/view/activity/NhoxActivity.java

2315 lines
99 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.activity;
import android.R;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.Point;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.location.LocationManager;
import android.media.AudioTrack;
import android.os.Process;
import android.os.SystemClock;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.OnFailureListener;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.crashlytics.FirebaseCrashlytics;
import com.google.firebase.firestore.DocumentChange;
import com.google.firebase.firestore.DocumentReference;
import com.google.firebase.firestore.EventListener;
import com.google.firebase.firestore.FieldValue;
import com.google.firebase.firestore.FirebaseFirestore;
import com.google.firebase.firestore.FirebaseFirestoreException;
import com.google.firebase.firestore.ListenerRegistration;
import com.google.firebase.firestore.Query;
import com.google.firebase.firestore.QuerySnapshot;
import com.google.firebase.firestore.ktx.FirestoreKt;
import com.google.firebase.ktx.Firebase;
import com.google.gson.Gson;
import com.huawei.hms.support.feature.result.CommonConstant;
import com.scb.phone.data.entity.nhox.NhoxLiveChatFirestoreAddMessageQueryParam;
import com.scb.phone.data.entity.nhox.NhoxLiveChatFirestoreAddRequestQueryParam;
import com.scb.phone.data.entity.nhox.NhoxLiveChatFirestoreGetHistoryQueryParam;
import com.scb.phone.data.entity.nhox.NhoxLiveChatFirestoreListenMessageQueryParam;
import com.scb.phone.data.entity.nhox.NhoxLiveChatFirestoreUpdateEndProcessFlagQueryParam;
import com.scb.phone.data.entity.nhox.NhoxLiveChatFirestoreUpdateReadDateTimeQueryParam;
import com.scb.phone.data.entity.nhox.RequestEntity;
import com.scb.phone.data.entity.nhox.RequestMessageEntity;
import com.scb.phone.view.activity.NhoxActivity;
import com.scb.phone.view.activity.prelogin.PinLoginActivity;
import io.flutter.embedding.engine.FlutterEngine;
import io.flutter.embedding.engine.FlutterEngineCache;
import io.flutter.embedding.engine.dart.DartExecutor;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.AbstractC14961gcz;
import o.C13396fZU;
import o.C14856gaP;
import o.C14866gag;
import o.C14881gav;
import o.C14930gcM;
import o.C14957gcv;
import o.C15697ho;
import o.C15698hp;
import o.C5954cES;
import o.C9845dra;
import o.InterfaceC13391fZD;
import o.InterfaceC14894gbR;
import o.InterfaceC15577gud;
import o.InterfaceC15704hr;
import o.KTN;
import o.dQY;
import o.jTb;
import o.jXq;
import o.pug;
import o.xzZ;
import org.bouncycastle.crypto.tls.CipherSuite;
import org.simpleframework.xml.strategy.Name;
/* loaded from: classes4.dex */
public final class NhoxActivity extends Hilt_NhoxActivity implements InterfaceC15704hr {
private static char a;
private static char b;
public static final IeS d;
private static long f;
private static char[] g;
private static int h;
private static char i;
private static char j;
private ListenerRegistration c;
FirebaseFirestore e = FirestoreKt.getFirestore(Firebase.INSTANCE);
@InterfaceC13391fZD
public C5954cES nhoxDeeplinkCache;
@InterfaceC13391fZD
public KTN sessionCache;
private static final byte[] $$j = {40, 9, -20, ISOFileInfo.AB};
private static final int $$k = CipherSuite.TLS_RSA_WITH_AES_256_GCM_SHA384;
private static int $10 = 0;
private static int $11 = 1;
private static int n = 1;
public static /* synthetic */ Object c(Object[] objArr, int i2, int i3, int i4) {
int i5 = ~i2;
int i6 = ~i3;
int i7 = i5 | i6;
int i8 = ~(i7 | i4);
int i9 = ~i4;
switch ((i2 * (-919)) + (i3 * (-919)) + ((i8 | (~(i6 | i9 | i2))) * 920) + (((~i7) | (~(i5 | i9))) * 920) + (((~(i2 | i6 | i4)) | (~(i3 | i5 | i4)) | (~(i7 | i9))) * 920)) {
case 1:
return b(objArr);
case 2:
return d(objArr);
case 3:
return c(objArr);
case 4:
return e(objArr);
case 5:
return h(objArr);
case 6:
return g(objArr);
case 7:
return j(objArr);
case 8:
return i(objArr);
default:
return a(objArr);
}
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0025 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001d */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> B:4:0x0027). 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 w(int r6, int r7, short r8, java.lang.Object[] r9) {
/*
int r6 = r6 * 3
int r6 = 1 - r6
int r7 = 106 - r7
int r8 = r8 + 4
byte[] r0 = com.scb.phone.view.activity.NhoxActivity.$$j
byte[] r1 = new byte[r6]
r2 = 0
if (r0 != 0) goto L13
r3 = r7
r4 = r2
r7 = r6
goto L27
L13:
r3 = r2
L14:
int r4 = r3 + 1
int r8 = r8 + 1
byte r5 = (byte) r7
r1[r3] = r5
if (r4 != r6) goto L25
java.lang.String r6 = new java.lang.String
r6.<init>(r1, r2)
r9[r2] = r6
return
L25:
r3 = r0[r8]
L27:
int r7 = r7 + r3
r3 = r4
goto L14
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.NhoxActivity.w(int, int, short, java.lang.Object[]):void");
}
private static void v(int i2, int i3, char c, Object[] objArr) {
int i4 = 2 % 2;
dQY dqy = new dQY();
long[] jArr = new long[i3];
dqy.a = 0;
int i5 = $10 + 41;
$11 = i5 % 128;
int i6 = i5 % 2;
while (dqy.a < i3) {
int i7 = dqy.a;
try {
Object[] objArr2 = {Integer.valueOf(g[i2 + dqy.a])};
Object obj = xzZ.y.get(1095064095);
if (obj == null) {
Class cls = (Class) xzZ.c(TextUtils.getTrimmedLength("") + 308, 5 - ExpandableListView.getPackedPositionGroup(0L), (char) (32797 - Color.argb(0, 0, 0, 0)));
byte b2 = (byte) 0;
Object[] objArr3 = new Object[1];
w(b2, (byte) (b2 | 8), (byte) (-1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1095064095, obj);
}
Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(f), Integer.valueOf(c)};
Object obj2 = xzZ.y.get(-548438098);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(412 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), ((byte) KeyEvent.getModifierMetaStateMask()) + 6, (char) ((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) - 1));
byte b3 = (byte) 0;
Object[] objArr5 = new Object[1];
w(b3, (byte) (b3 | 7), (byte) (-1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
xzZ.y.put(-548438098, obj2);
}
jArr[i7] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue();
Object[] objArr6 = {dqy, dqy};
Object obj3 = xzZ.y.get(1071125919);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(AndroidCharacter.getMirror('0') + 359, 5 - ExpandableListView.getPackedPositionGroup(0L), (char) ((Process.myPid() >> 22) + 29234));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr7 = new Object[1];
w(b4, b5, (byte) (b5 - 1), objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj3);
}
((Method) obj3).invoke(null, objArr6);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr = new char[i3];
dqy.a = 0;
while (dqy.a < i3) {
int i8 = $11 + 109;
$10 = i8 % 128;
if (i8 % 2 != 0) {
cArr[dqy.a] = (char) jArr[dqy.a];
try {
Object[] objArr8 = {dqy, dqy};
Object obj4 = xzZ.y.get(1071125919);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c((ViewConfiguration.getFadingEdgeLength() >> 16) + 407, (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 5, (char) (29235 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr9 = new Object[1];
w(b6, b7, (byte) (b7 - 1), objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj4);
}
((Method) obj4).invoke(null, objArr8);
int i9 = 37 / 0;
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
} else {
cArr[dqy.a] = (char) jArr[dqy.a];
Object[] objArr10 = {dqy, dqy};
Object obj5 = xzZ.y.get(1071125919);
if (obj5 == null) {
Class cls5 = (Class) xzZ.c(TextUtils.getOffsetAfter("", 0) + 407, 5 - (Process.myTid() >> 22), (char) ((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 29233));
byte b8 = (byte) 0;
byte b9 = b8;
Object[] objArr11 = new Object[1];
w(b8, b9, (byte) (b9 - 1), objArr11);
obj5 = cls5.getMethod((String) objArr11[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj5);
}
((Method) obj5).invoke(null, objArr10);
}
}
objArr[0] = new String(cArr);
}
public static final /* synthetic */ void a(HashMap hashMap) {
int i2 = 2 % 2;
int i3 = n + 11;
h = i3 % 128;
int i4 = i3 % 2;
c((HashMap<String, Object>) hashMap);
if (i4 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
public static final /* synthetic */ void d(String str, HashMap hashMap) {
int i2 = 2 % 2;
int i3 = n + 61;
h = i3 % 128;
int i4 = i3 % 2;
e(str, (HashMap<String, Object>) hashMap);
int i5 = h + 123;
n = i5 % 128;
if (i5 % 2 == 0) {
int i6 = 23 / 0;
}
}
private static void u(char[] cArr, int i2, Object[] objArr) {
int i3;
int i4 = 2;
int i5 = 2 % 2;
jTb jtb = new jTb();
char[] cArr2 = new char[cArr.length];
int i6 = 0;
jtb.b = 0;
char[] cArr3 = new char[2];
while (jtb.b < cArr.length) {
cArr3[i6] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
int i7 = $11 + 71;
$10 = i7 % 128;
int i8 = i7 % i4;
int i9 = 58224;
int i10 = i6;
while (i10 < 16) {
int i11 = $10 + 101;
$11 = i11 % 128;
int i12 = i11 % i4;
char c = cArr3[1];
char c2 = cArr3[i6];
int i13 = (c2 + i9) ^ ((c2 << 4) + ((char) (i ^ 41718355337583039L)));
int i14 = c2 >>> 5;
try {
Object[] objArr2 = new Object[4];
objArr2[3] = Integer.valueOf(j);
objArr2[i4] = Integer.valueOf(i14);
objArr2[1] = Integer.valueOf(i13);
objArr2[i6] = Integer.valueOf(c);
Object obj = xzZ.y.get(597144044);
if (obj == null) {
Class cls = (Class) xzZ.c(412 - View.combineMeasuredStates(i6, i6), 4 - TextUtils.indexOf((CharSequence) "", '0', i6), (char) View.MeasureSpec.makeMeasureSpec(i6, i6));
Object[] objArr3 = new Object[1];
w((byte) i6, $$j[i6], (byte) (-1), objArr3);
String str = (String) objArr3[i6];
Class<?>[] clsArr = new Class[4];
clsArr[i6] = Integer.TYPE;
clsArr[1] = Integer.TYPE;
clsArr[2] = Integer.TYPE;
clsArr[3] = Integer.TYPE;
obj = cls.getMethod(str, clsArr);
xzZ.y.put(597144044, obj);
}
char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
cArr3[1] = charValue;
char[] cArr4 = cArr3;
Object[] objArr4 = {Integer.valueOf(cArr3[i6]), Integer.valueOf((charValue + i9) ^ ((charValue << 4) + ((char) (b ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(a)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((KeyEvent.getMaxKeyCode() >> 16) + 412, 6 - (AudioTrack.getMaxVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMaxVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) (TextUtils.lastIndexOf("", '0', 0) + 1));
Object[] objArr5 = new Object[1];
w((byte) 0, $$j[0], (byte) (-1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj2);
}
cArr4[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i9 -= 40503;
i10++;
int i15 = $10 + 77;
$11 = i15 % 128;
int i16 = i15 % 2;
cArr3 = cArr4;
i4 = 2;
i6 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr5 = cArr3;
cArr2[jtb.b] = cArr5[0];
cArr2[jtb.b + 1] = cArr5[1];
Object[] objArr6 = {jtb, jtb};
Object obj3 = xzZ.y.get(943004485);
if (obj3 != null) {
i3 = 2;
} else {
Class cls3 = (Class) xzZ.c((ViewConfiguration.getMaximumFlingVelocity() >> 16) + 98, 5 - (ViewConfiguration.getKeyRepeatDelay() >> 16), (char) (Process.myTid() >> 22));
byte b2 = (byte) 0;
Object[] objArr7 = new Object[1];
w(b2, (byte) (b2 | 39), (byte) (-1), objArr7);
i3 = 2;
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(943004485, obj3);
}
((Method) obj3).invoke(null, objArr6);
i4 = i3;
cArr3 = cArr5;
i6 = 0;
}
objArr[0] = new String(cArr2, 0, i2);
}
/* loaded from: classes4.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
@Override // o.InterfaceC15704hr
public final void f(MethodCall methodCall) {
Object obj;
String str;
Map map;
int i2 = 2 % 2;
C14957gcv.e(methodCall, "");
Map map2 = (Map) methodCall.arguments();
jXq jxq = null;
if (map2 != null) {
int i3 = h + 93;
n = i3 % 128;
int i4 = i3 % 2;
obj = map2.get("eventName");
} else {
obj = null;
}
if (obj instanceof String) {
Object obj2 = map2.get("eventName");
C14957gcv.d(obj2, "");
str = (String) obj2;
} else {
str = null;
}
if ((map2 != null ? map2.get("params") : null) instanceof Map) {
int i5 = n + 57;
h = i5 % 128;
if (i5 % 2 != 0) {
Object obj3 = map2.get("params");
C14957gcv.d(obj3, "");
jxq.hashCode();
throw null;
}
Object obj4 = map2.get("params");
C14957gcv.d(obj4, "");
map = (Map) obj4;
} else {
map = null;
}
if (str != null) {
int i6 = h;
int i7 = i6 + 35;
n = i7 % 128;
int i8 = i7 % 2;
if (map != null) {
int i9 = i6 + 117;
n = i9 % 128;
int i10 = i9 % 2;
if (!map.isEmpty()) {
ArrayList arrayList = new ArrayList();
int i11 = h + 77;
n = i11 % 128;
int i12 = i11 % 2;
for (Map.Entry entry : map.entrySet()) {
arrayList.add(new pug((String) entry.getKey(), String.valueOf(entry.getValue())));
}
jXq jxq2 = this.scbAnalytics;
if (jxq2 != null) {
jxq = jxq2;
} else {
C14957gcv.a("");
}
jxq.c(str, arrayList);
return;
}
}
jXq jxq3 = this.scbAnalytics;
if (jxq3 != null) {
jxq = jxq3;
} else {
C14957gcv.a("");
}
jxq.c(str);
}
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x00aa, code lost:
if (r3 > 99999) goto L11;
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x00a4, code lost:
if (r3 > 99999) goto L11;
*/
@Override // com.scb.phone.view.activity.Hilt_NhoxActivity, com.scb.phone.view.activity.BaseFlutterActivity, com.scb.phone.view.activity.Hilt_BaseFlutterActivity, io.flutter.embedding.android.FlutterFragmentActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void onCreate(android.os.Bundle r21) {
/*
Method dump skipped, instructions count: 1176
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.NhoxActivity.onCreate(android.os.Bundle):void");
}
@Override // com.scb.phone.view.activity.BaseFlutterActivity, androidx.fragment.app.FragmentActivity, android.app.Activity
public final void onDestroy() {
int i2 = 2 % 2;
int i3 = n + 27;
h = i3 % 128;
int i4 = i3 % 2;
super.onDestroy();
if (i4 != 0) {
throw null;
}
}
@Override // io.flutter.embedding.android.FlutterFragmentActivity, io.flutter.embedding.android.FlutterEngineConfigurator
public final void configureFlutterEngine(FlutterEngine flutterEngine) {
int i2 = 2 % 2;
C14957gcv.e(flutterEngine, "");
super.configureFlutterEngine(flutterEngine);
final C15698hp c15698hp = new C15698hp();
NhoxActivity nhoxActivity = this;
C14957gcv.e(nhoxActivity, "");
C14957gcv.e(nhoxActivity, "");
c15698hp.a = nhoxActivity;
C15697ho c15697ho = (C15697ho) getIntent().getParcelableExtra("nhoxDisplay");
if (c15697ho == null) {
c15697ho = new C15697ho(new HashMap(), false);
}
Map<String, Object> map = c15697ho.a;
FlutterEngine flutterEngine2 = FlutterEngineCache.getInstance().get("engine_nhox");
if (flutterEngine2 != null) {
new MethodChannel(flutterEngine2.getDartExecutor().getBinaryMessenger(), "scbEasy.flutter.dev/nhox").invokeMethod("passData", map);
new MethodChannel(flutterEngine2.getDartExecutor().getBinaryMessenger(), "scbEasy.flutter.dev/nhox").setMethodCallHandler(new MethodChannel.MethodCallHandler(c15698hp) { // from class: o.hw
private C15698hp e;
/* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
/* JADX WARN: Code restructure failed: missing block: B:54:0x0098, code lost:
if (r2.equals("finish_activity") == false) goto L77;
*/
/* JADX WARN: Code restructure failed: missing block: B:56:0x00be, code lost:
if (r6.hasArgument("crash_message") == false) goto L65;
*/
/* JADX WARN: Code restructure failed: missing block: B:57:0x00c0, code lost:
r7 = r6.argument("crash_message");
*/
/* JADX WARN: Code restructure failed: missing block: B:59:0x00cc, code lost:
if (r6.hasArgument("crash_detail") == false) goto L69;
*/
/* JADX WARN: Code restructure failed: missing block: B:60:0x00ce, code lost:
r6 = (java.lang.String) r6.argument("crash_detail");
*/
/* JADX WARN: Code restructure failed: missing block: B:61:0x00d6, code lost:
if (r6 == null) goto L84;
*/
/* JADX WARN: Code restructure failed: missing block: B:62:0x00d8, code lost:
r2 = o.C14833gU.e;
r6 = o.C14833gU.c(r6, (java.lang.String) r7);
r7 = r0.a;
*/
/* JADX WARN: Code restructure failed: missing block: B:63:0x00e2, code lost:
if (r7 == null) goto L74;
*/
/* JADX WARN: Code restructure failed: missing block: B:64:0x00e4, code lost:
r4 = r7;
*/
/* JADX WARN: Code restructure failed: missing block: B:65:0x00e9, code lost:
r4.c(r6);
*/
/* JADX WARN: Code restructure failed: missing block: B:66:0x00ec, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:67:0x00e6, code lost:
o.C14957gcv.a("");
*/
/* JADX WARN: Code restructure failed: missing block: B:68:?, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:69:0x00d5, code lost:
r6 = null;
*/
/* JADX WARN: Code restructure failed: missing block: B:70:0x00c5, code lost:
r7 = "";
*/
/* JADX WARN: Code restructure failed: missing block: B:80:0x00b6, code lost:
if (r2.equals("reportException") != false) goto L62;
*/
/* JADX WARN: Failed to find 'out' block for switch in B:4:0x0016. Please report as an issue. */
@Override // io.flutter.plugin.common.MethodChannel.MethodCallHandler
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void onMethodCall(io.flutter.plugin.common.MethodCall r6, io.flutter.plugin.common.MethodChannel.Result r7) {
/*
Method dump skipped, instructions count: 264
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.C15717hw.onMethodCall(io.flutter.plugin.common.MethodCall, io.flutter.plugin.common.MethodChannel$Result):void");
}
{
this.e = c15698hp;
}
});
new MethodChannel(flutterEngine2.getDartExecutor().getBinaryMessenger(), "channel.analytics/firebase/nhox").setMethodCallHandler(new MethodChannel.MethodCallHandler(c15698hp) { // from class: o.hx
private C15698hp c;
@Override // io.flutter.plugin.common.MethodChannel.MethodCallHandler
public final void onMethodCall(MethodCall methodCall, MethodChannel.Result result) {
C15698hp c15698hp2 = this.c;
C14957gcv.e(c15698hp2, "");
C14957gcv.e(methodCall, "");
C14957gcv.e(result, "");
if (C14957gcv.b((Object) methodCall.method, (Object) "firebaseEvent")) {
InterfaceC15704hr interfaceC15704hr = c15698hp2.a;
if (interfaceC15704hr == null) {
C14957gcv.a("");
interfaceC15704hr = null;
}
interfaceC15704hr.f(methodCall);
return;
}
result.notImplemented();
}
{
this.c = c15698hp;
}
});
new MethodChannel(flutterEngine2.getDartExecutor().getBinaryMessenger(), "channel.nhox.livechat.integration").setMethodCallHandler(new MethodChannel.MethodCallHandler(c15698hp) { // from class: o.hu
private C15698hp a;
@Override // io.flutter.plugin.common.MethodChannel.MethodCallHandler
public final void onMethodCall(MethodCall methodCall, MethodChannel.Result result) {
C15698hp c15698hp2 = this.a;
C14957gcv.e(c15698hp2, "");
C14957gcv.e(methodCall, "");
C14957gcv.e(result, "");
String str = methodCall.method;
if (str != null) {
InterfaceC15704hr interfaceC15704hr = null;
switch (str.hashCode()) {
case -1275123927:
if (str.equals("firestoreGetHistory")) {
InterfaceC15704hr interfaceC15704hr2 = c15698hp2.a;
if (interfaceC15704hr2 != null) {
interfaceC15704hr = interfaceC15704hr2;
} else {
C14957gcv.a("");
}
interfaceC15704hr.d(methodCall);
return;
}
break;
case -831581996:
if (str.equals("firestoreUpdateEndProcessFlag")) {
InterfaceC15704hr interfaceC15704hr3 = c15698hp2.a;
if (interfaceC15704hr3 != null) {
interfaceC15704hr = interfaceC15704hr3;
} else {
C14957gcv.a("");
}
interfaceC15704hr.h(methodCall);
return;
}
break;
case -375759119:
if (str.equals("firestoreAddMessage")) {
InterfaceC15704hr interfaceC15704hr4 = c15698hp2.a;
if (interfaceC15704hr4 != null) {
interfaceC15704hr = interfaceC15704hr4;
} else {
C14957gcv.a("");
}
interfaceC15704hr.e(methodCall);
return;
}
break;
case -234991239:
if (str.equals("firestoreAddRequest")) {
InterfaceC15704hr interfaceC15704hr5 = c15698hp2.a;
if (interfaceC15704hr5 != null) {
interfaceC15704hr = interfaceC15704hr5;
} else {
C14957gcv.a("");
}
interfaceC15704hr.a(methodCall);
return;
}
break;
case 535842197:
if (str.equals("firestoreListenMessage")) {
InterfaceC15704hr interfaceC15704hr6 = c15698hp2.a;
if (interfaceC15704hr6 != null) {
interfaceC15704hr = interfaceC15704hr6;
} else {
C14957gcv.a("");
}
interfaceC15704hr.b(methodCall);
return;
}
break;
case 1157466353:
if (str.equals("firebaseAuthSignIn")) {
InterfaceC15704hr interfaceC15704hr7 = c15698hp2.a;
if (interfaceC15704hr7 != null) {
interfaceC15704hr = interfaceC15704hr7;
} else {
C14957gcv.a("");
}
interfaceC15704hr.i(methodCall);
return;
}
break;
}
}
result.notImplemented();
}
{
this.a = c15698hp;
}
});
new MethodChannel(flutterEngine2.getDartExecutor().getBinaryMessenger(), "channel.nhox.livechat.integration.updateReadMessageDateTime").setMethodCallHandler(new MethodChannel.MethodCallHandler(c15698hp) { // from class: o.ht
private C15698hp c;
@Override // io.flutter.plugin.common.MethodChannel.MethodCallHandler
public final void onMethodCall(MethodCall methodCall, MethodChannel.Result result) {
C15698hp c15698hp2 = this.c;
C14957gcv.e(c15698hp2, "");
C14957gcv.e(methodCall, "");
C14957gcv.e(result, "");
if (C14957gcv.b((Object) methodCall.method, (Object) "firestoreUpdateReadMessageDateTime")) {
InterfaceC15704hr interfaceC15704hr = c15698hp2.a;
if (interfaceC15704hr == null) {
C14957gcv.a("");
interfaceC15704hr = null;
}
interfaceC15704hr.g(methodCall);
return;
}
result.notImplemented();
}
{
this.c = c15698hp;
}
});
int i3 = h + 71;
n = i3 % 128;
int i4 = i3 % 2;
}
}
@Override // io.flutter.embedding.android.FlutterFragmentActivity, io.flutter.embedding.android.FlutterEngineProvider
public final FlutterEngine provideFlutterEngine(Context context) {
int i2 = 2 % 2;
int i3 = h + 13;
n = i3 % 128;
Object obj = null;
if (i3 % 2 != 0) {
C14957gcv.e(context, "");
FlutterEngine flutterEngine = FlutterEngineCache.getInstance().get("engine_nhox");
C15697ho c15697ho = (C15697ho) getIntent().getParcelableExtra("nhoxDisplay");
if (c15697ho != null && !c15697ho.b) {
FlutterEngineCache.getInstance().remove("engine_nhox");
FlutterEngine flutterEngine2 = new FlutterEngine(this);
flutterEngine2.getNavigationChannel().setInitialRoute("scbEasy.flutter.dev/nhox");
flutterEngine2.getDartExecutor().executeDartEntrypoint(DartExecutor.DartEntrypoint.createDefault());
FlutterEngineCache.getInstance().put("engine_nhox", flutterEngine2);
flutterEngine = FlutterEngineCache.getInstance().get("engine_nhox");
}
FlutterEngineCache.getInstance().put("NhoxEngine", flutterEngine);
if (flutterEngine != null) {
int i4 = h + 3;
n = i4 % 128;
if (i4 % 2 != 0) {
DartExecutor dartExecutor = flutterEngine.getDartExecutor();
if (dartExecutor != null) {
dartExecutor.executeDartEntrypoint(DartExecutor.DartEntrypoint.createDefault());
}
} else {
flutterEngine.getDartExecutor();
throw null;
}
}
return flutterEngine;
}
C14957gcv.e(context, "");
FlutterEngineCache.getInstance().get("engine_nhox");
obj.hashCode();
throw null;
}
/* loaded from: classes4.dex */
static final class Sts extends AbstractC14961gcz implements InterfaceC14894gbR<QuerySnapshot, C14866gag> {
private NhoxActivity b;
private C14930gcM.RVV<HashMap<String, Object>> e;
/* JADX WARN: Type inference failed for: r0v1, types: [T, java.util.HashMap] */
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(QuerySnapshot querySnapshot) {
QuerySnapshot querySnapshot2 = querySnapshot;
C14957gcv.c(querySnapshot2, "");
List objects = querySnapshot2.toObjects(RequestEntity.class);
C14957gcv.c(objects, "");
String json = new Gson().toJson(objects);
C14930gcM.RVV<HashMap<String, Object>> rvv = this.e;
C13396fZU[] c13396fZUArr = {new C13396fZU(CommonConstant.KEY_STATUS, "success"), new C13396fZU("data", json)};
C14957gcv.e(c13396fZUArr, "");
?? hashMap = new HashMap(C14856gaP.a(2));
C14856gaP.e((Map) hashMap, c13396fZUArr);
rvv.d = hashMap;
NhoxActivity.d("firestoreGetHistoryCallback", this.e.d);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
Sts(C14930gcM.RVV<HashMap<String, Object>> rvv, NhoxActivity nhoxActivity) {
super(1);
this.e = rvv;
this.b = nhoxActivity;
}
}
@Override // o.InterfaceC15704hr
public final void c(Throwable th) {
int i2 = 2 % 2;
int i3 = h + 99;
n = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(th, "");
FirebaseCrashlytics.getInstance().recordException(th);
int i5 = n + 39;
h = i5 % 128;
if (i5 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
private static /* synthetic */ Object d(Object[] objArr) {
NhoxActivity nhoxActivity = (NhoxActivity) objArr[0];
MethodCall methodCall = (MethodCall) objArr[1];
int i2 = 2 % 2;
int i3 = n + 87;
h = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(methodCall, "");
nhoxActivity.startActivityForResult((Intent) PinLoginActivity.c(new Object[]{nhoxActivity}, -1331046698, 1331046709, (int) System.currentTimeMillis()), 7134);
int i5 = n + 61;
h = i5 % 128;
int i6 = i5 % 2;
return null;
}
@Override // o.InterfaceC15704hr
public final void i(MethodCall methodCall) {
Object obj;
int i2 = 2 % 2;
int i3 = n + 49;
h = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(methodCall, "");
Map map = (Map) methodCall.arguments();
if (map != null) {
int i5 = n + 33;
h = i5 % 128;
int i6 = i5 % 2;
obj = map.get(CommonConstant.KEY_ACCESS_TOKEN);
int i7 = h + 33;
n = i7 % 128;
if (i7 % 2 == 0) {
int i8 = 4 % 5;
}
} else {
obj = null;
}
if (obj instanceof String) {
Object obj2 = map.get(CommonConstant.KEY_ACCESS_TOKEN);
C14957gcv.d(obj2, "");
FirebaseAuth.getInstance().signInWithCustomToken((String) obj2).addOnCompleteListener(this, new OnCompleteListener(this) { // from class: o.dqH
private NhoxActivity d;
@Override // com.google.android.gms.tasks.OnCompleteListener
public final void onComplete(Task task) {
NhoxActivity.d(this.d, task);
}
{
this.d = this;
}
}).addOnFailureListener(new OnFailureListener(this) { // from class: o.dqJ
private NhoxActivity c;
@Override // com.google.android.gms.tasks.OnFailureListener
public final void onFailure(Exception exc) {
NhoxActivity.a(this.c, exc);
}
{
this.c = this;
}
});
}
}
@Override // o.InterfaceC15704hr
public final void d(MethodCall methodCall) {
Map<String, ? extends Object> map;
int i2 = 2 % 2;
int i3 = h + 21;
n = i3 % 128;
if (i3 % 2 == 0) {
C14957gcv.e(methodCall, "");
map = (Map) methodCall.arguments();
int i4 = 71 / 0;
if (map == null) {
return;
}
} else {
C14957gcv.e(methodCall, "");
map = (Map) methodCall.arguments();
if (map == null) {
return;
}
}
NhoxLiveChatFirestoreGetHistoryQueryParam from = NhoxLiveChatFirestoreGetHistoryQueryParam.Companion.from(map);
if (from == null) {
int i5 = h + 7;
n = i5 % 128;
int i6 = i5 % 2;
} else {
final C14930gcM.RVV rvv = new C14930gcM.RVV();
Task<QuerySnapshot> task = this.e.collection(from.getCollectionPath()).whereGreaterThanOrEqualTo("createDate", from.getToDate()).whereLessThan("createDate", from.getFromDate()).orderBy("createDate", Query.Direction.DESCENDING).get();
final Sts sts = new Sts(rvv, this);
task.addOnSuccessListener(new OnSuccessListener(sts) { // from class: o.dqL
private InterfaceC14894gbR a;
@Override // com.google.android.gms.tasks.OnSuccessListener
public final void onSuccess(Object obj) {
NhoxActivity.c(new Object[]{this.a, obj}, -652366954, 652366957, (int) System.currentTimeMillis());
}
{
this.a = sts;
}
}).addOnFailureListener(new OnFailureListener(this, rvv) { // from class: o.dqS
private NhoxActivity a;
private C14930gcM.RVV d;
@Override // com.google.android.gms.tasks.OnFailureListener
public final void onFailure(Exception exc) {
NhoxActivity.b(this.a, this.d, exc);
}
{
this.a = this;
this.d = rvv;
}
});
}
}
/* loaded from: classes4.dex */
static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<Void, C14866gag> {
private NhoxActivity c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Void r4) {
C13396fZU[] c13396fZUArr = {new C13396fZU(CommonConstant.KEY_STATUS, "success")};
C14957gcv.e(c13396fZUArr, "");
HashMap hashMap = new HashMap(C14856gaP.a(1));
C14856gaP.e(hashMap, c13396fZUArr);
NhoxActivity.d("firestoreAddMessageCallback", hashMap);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
LWm(NhoxActivity nhoxActivity) {
super(1);
this.c = nhoxActivity;
}
}
@Override // o.InterfaceC15704hr
public final void b(MethodCall methodCall) {
int i2 = 2 % 2;
C14957gcv.e(methodCall, "");
Map<String, ? extends Object> map = (Map) methodCall.arguments();
if (map != null) {
int i3 = n + 109;
h = i3 % 128;
int i4 = i3 % 2;
NhoxLiveChatFirestoreListenMessageQueryParam from = NhoxLiveChatFirestoreListenMessageQueryParam.Companion.from(map);
if (from != null) {
this.e.collection(from.getCollectionPath()).orderBy("createDate").limitToLast(1L).addSnapshotListener(new EventListener(this) { // from class: o.dqO
private NhoxActivity a;
@Override // com.google.firebase.firestore.EventListener
public final void onEvent(Object obj, FirebaseFirestoreException firebaseFirestoreException) {
NhoxActivity.d(this.a, (QuerySnapshot) obj, firebaseFirestoreException);
}
{
this.a = this;
}
});
return;
}
int i5 = h + 95;
n = i5 % 128;
int i6 = i5 % 2;
}
}
/* loaded from: classes4.dex */
public static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<DocumentReference, C14866gag> {
private NhoxLiveChatFirestoreAddRequestQueryParam a;
private NhoxActivity e;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(DocumentReference documentReference) {
DocumentReference documentReference2 = documentReference;
Task<Void> update = this.e.e.collection(this.a.getCollectionPath()).document(documentReference2.getId()).update(Name.MARK, documentReference2.getId(), new Object[0]);
final AnonymousClass3 anonymousClass3 = new AnonymousClass3(this.e);
Task<Void> addOnSuccessListener = update.addOnSuccessListener(new OnSuccessListener(anonymousClass3) { // from class: o.dqT
private InterfaceC14894gbR c;
@Override // com.google.android.gms.tasks.OnSuccessListener
public final void onSuccess(Object obj) {
NhoxActivity.RVV.d(this.c, obj);
}
{
this.c = anonymousClass3;
}
});
final NhoxActivity nhoxActivity = this.e;
addOnSuccessListener.addOnFailureListener(new OnFailureListener(nhoxActivity) { // from class: o.dqU
private NhoxActivity c;
@Override // com.google.android.gms.tasks.OnFailureListener
public final void onFailure(Exception exc) {
NhoxActivity.RVV.b(this.c, exc);
}
{
this.c = nhoxActivity;
}
});
return C14866gag.c;
}
/* renamed from: com.scb.phone.view.activity.NhoxActivity$RVV$3, reason: invalid class name */
/* loaded from: classes4.dex */
static final class AnonymousClass3 extends AbstractC14961gcz implements InterfaceC14894gbR<Void, C14866gag> {
private NhoxActivity d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Void r4) {
C13396fZU[] c13396fZUArr = {new C13396fZU(CommonConstant.KEY_STATUS, "success")};
C14957gcv.e(c13396fZUArr, "");
HashMap hashMap = new HashMap(C14856gaP.a(1));
C14856gaP.e(hashMap, c13396fZUArr);
NhoxActivity.d("firestoreAddRequestCallback", hashMap);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
AnonymousClass3(NhoxActivity nhoxActivity) {
super(1);
this.d = nhoxActivity;
}
}
public static /* synthetic */ void b(NhoxActivity nhoxActivity, Exception exc) {
C14957gcv.e(nhoxActivity, "");
C14957gcv.e(exc, "");
C13396fZU[] c13396fZUArr = {new C13396fZU(CommonConstant.KEY_STATUS, "error")};
C14957gcv.e(c13396fZUArr, "");
HashMap hashMap = new HashMap(C14856gaP.a(1));
C14856gaP.e(hashMap, c13396fZUArr);
NhoxActivity.d("firestoreAddRequestCallback", hashMap);
}
public static /* synthetic */ void d(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
C14957gcv.e(interfaceC14894gbR, "");
interfaceC14894gbR.invoke(obj);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
RVV(NhoxActivity nhoxActivity, NhoxLiveChatFirestoreAddRequestQueryParam nhoxLiveChatFirestoreAddRequestQueryParam) {
super(1);
this.e = nhoxActivity;
this.a = nhoxLiveChatFirestoreAddRequestQueryParam;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes4.dex */
public static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<Void, C14866gag> {
private NhoxActivity a;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Void r4) {
C13396fZU[] c13396fZUArr = {new C13396fZU(CommonConstant.KEY_STATUS, "success")};
C14957gcv.e(c13396fZUArr, "");
HashMap hashMap = new HashMap(C14856gaP.a(1));
C14856gaP.e(hashMap, c13396fZUArr);
NhoxActivity.d("firestoreUpdateEndProcessFlagCallback", hashMap);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
HBt(NhoxActivity nhoxActivity) {
super(1);
this.a = nhoxActivity;
}
}
@Override // o.InterfaceC15704hr
public final void e(MethodCall methodCall) {
NhoxLiveChatFirestoreAddMessageQueryParam from;
int i2 = 2 % 2;
int i3 = h + 65;
n = i3 % 128;
Object obj = null;
if (i3 % 2 == 0) {
C14957gcv.e(methodCall, "");
obj.hashCode();
throw null;
}
C14957gcv.e(methodCall, "");
Map<String, ? extends Object> map = (Map) methodCall.arguments();
if (map == null || (from = NhoxLiveChatFirestoreAddMessageQueryParam.Companion.from(map)) == null) {
return;
}
C13396fZU[] c13396fZUArr = {new C13396fZU("messages", FieldValue.arrayUnion(from.createMessages()))};
C14957gcv.e(c13396fZUArr, "");
HashMap hashMap = new HashMap(C14856gaP.a(1));
C14856gaP.e(hashMap, c13396fZUArr);
if (C14957gcv.b((Object) from.getTemplateId(), (Object) "item-selection-vertical")) {
int i4 = h + 65;
n = i4 % 128;
if (i4 % 2 == 0) {
from.getText().length();
obj.hashCode();
throw null;
}
if (from.getText().length() > 0) {
HashMap<String, String> splitText = from.getSplitText();
C13396fZU[] c13396fZUArr2 = {new C13396fZU("productSelected", splitText.get("productSelected")), new C13396fZU("issueSelected", splitText.get("issueSelected")), new C13396fZU("messages", FieldValue.arrayUnion(from.createMessages()))};
C14957gcv.e(c13396fZUArr2, "");
hashMap = new HashMap(C14856gaP.a(3));
C14856gaP.e(hashMap, c13396fZUArr2);
int i5 = n + 29;
h = i5 % 128;
int i6 = i5 % 2;
}
}
Task<Void> update = this.e.collection(from.getCollectionPath()).document(from.getDocumentId()).update(hashMap);
final LWm lWm = new LWm(this);
update.addOnSuccessListener(new OnSuccessListener(lWm) { // from class: o.dqQ
private InterfaceC14894gbR e;
@Override // com.google.android.gms.tasks.OnSuccessListener
public final void onSuccess(Object obj2) {
NhoxActivity.c(new Object[]{this.e, obj2}, -878581147, 878581153, (int) System.currentTimeMillis());
}
{
this.e = lWm;
}
}).addOnFailureListener(new OnFailureListener(this) { // from class: o.dqM
private NhoxActivity c;
@Override // com.google.android.gms.tasks.OnFailureListener
public final void onFailure(Exception exc) {
NhoxActivity.e(this.c, exc);
}
{
this.c = this;
}
});
}
/* loaded from: classes4.dex */
static final class jbe extends AbstractC14961gcz implements InterfaceC14894gbR<Void, C14866gag> {
private NhoxActivity c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(Void r4) {
C13396fZU[] c13396fZUArr = {new C13396fZU(CommonConstant.KEY_STATUS, "success")};
C14957gcv.e(c13396fZUArr, "");
HashMap hashMap = new HashMap(C14856gaP.a(1));
C14856gaP.e(hashMap, c13396fZUArr);
NhoxActivity.a(hashMap);
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
jbe(NhoxActivity nhoxActivity) {
super(1);
this.c = nhoxActivity;
}
}
/* JADX WARN: Code restructure failed: missing block: B:10:0x003c, code lost:
return;
*/
/* JADX WARN: Code restructure failed: missing block: B:11:0x003d, code lost:
r1 = r4.e.collection(r5.getCollectionPath()).add(r5.createStartConversation());
r3 = new com.scb.phone.view.activity.NhoxActivity.RVV(r4, r5);
r1.addOnSuccessListener(new o.C9769dqD(r3)).addOnFailureListener(new o.C9772dqG(r4));
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x0029, code lost:
if (r5 != null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x001d, code lost:
if (r5 != null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x002b, code lost:
r1 = com.scb.phone.view.activity.NhoxActivity.n + 123;
com.scb.phone.view.activity.NhoxActivity.h = r1 % 128;
r1 = r1 % 2;
r5 = com.scb.phone.data.entity.nhox.NhoxLiveChatFirestoreAddRequestQueryParam.Companion.from(r5);
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x003a, code lost:
if (r5 != null) goto L12;
*/
@Override // o.InterfaceC15704hr
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void a(io.flutter.plugin.common.MethodCall r5) {
/*
r4 = this;
r0 = 2
int r1 = r0 % r0
int r1 = com.scb.phone.view.activity.NhoxActivity.h
int r1 = r1 + 63
int r2 = r1 % 128
com.scb.phone.view.activity.NhoxActivity.n = r2
int r1 = r1 % r0
java.lang.String r2 = ""
if (r1 != 0) goto L20
o.C14957gcv.e(r5, r2)
java.lang.Object r5 = r5.arguments()
java.util.Map r5 = (java.util.Map) r5
r1 = 18
int r1 = r1 / 0
if (r5 == 0) goto L67
goto L2b
L20:
o.C14957gcv.e(r5, r2)
java.lang.Object r5 = r5.arguments()
java.util.Map r5 = (java.util.Map) r5
if (r5 == 0) goto L67
L2b:
int r1 = com.scb.phone.view.activity.NhoxActivity.n
int r1 = r1 + 123
int r2 = r1 % 128
com.scb.phone.view.activity.NhoxActivity.h = r2
int r1 = r1 % r0
com.scb.phone.data.entity.nhox.NhoxLiveChatFirestoreAddRequestQueryParam$Companion r1 = com.scb.phone.data.entity.nhox.NhoxLiveChatFirestoreAddRequestQueryParam.Companion
com.scb.phone.data.entity.nhox.NhoxLiveChatFirestoreAddRequestQueryParam r5 = r1.from(r5)
if (r5 != 0) goto L3d
return
L3d:
com.google.firebase.firestore.FirebaseFirestore r1 = r4.e
java.lang.String r2 = r5.getCollectionPath()
com.google.firebase.firestore.CollectionReference r1 = r1.collection(r2)
java.util.HashMap r2 = r5.createStartConversation()
com.google.android.gms.tasks.Task r1 = r1.add(r2)
o.dqD r2 = new o.dqD
com.scb.phone.view.activity.NhoxActivity$RVV r3 = new com.scb.phone.view.activity.NhoxActivity$RVV
r3.<init>(r4, r5)
o.gbR r3 = (o.InterfaceC14894gbR) r3
r2.<init>(r3)
com.google.android.gms.tasks.Task r5 = r1.addOnSuccessListener(r2)
o.dqG r1 = new o.dqG
r1.<init>(r4)
r5.addOnFailureListener(r1)
L67:
int r5 = com.scb.phone.view.activity.NhoxActivity.h
int r5 = r5 + 117
int r1 = r5 % 128
com.scb.phone.view.activity.NhoxActivity.n = r1
int r5 = r5 % r0
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.NhoxActivity.a(io.flutter.plugin.common.MethodCall):void");
}
private static /* synthetic */ Object i(Object[] objArr) {
final NhoxActivity nhoxActivity = (NhoxActivity) objArr[0];
MethodCall methodCall = (MethodCall) objArr[1];
int i2 = 2 % 2;
int i3 = n + 79;
h = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(methodCall, "");
Map<String, ? extends Object> map = (Map) methodCall.arguments();
if (map != null) {
int i5 = n + 121;
h = i5 % 128;
if (i5 % 2 == 0) {
NhoxLiveChatFirestoreUpdateEndProcessFlagQueryParam from = NhoxLiveChatFirestoreUpdateEndProcessFlagQueryParam.Companion.from(map);
if (from == null) {
return null;
}
Task<Void> update = nhoxActivity.e.collection(from.getCollectionPath()).document(from.getDocumentId()).update("endProcessFlag", "Y", new Object[0]);
final HBt hBt = new HBt(nhoxActivity);
update.addOnSuccessListener(new OnSuccessListener(hBt) { // from class: o.dqK
private InterfaceC14894gbR b;
@Override // com.google.android.gms.tasks.OnSuccessListener
public final void onSuccess(Object obj) {
NhoxActivity.c(new Object[]{this.b, obj}, -811702448, 811702448, (int) System.currentTimeMillis());
}
{
this.b = hBt;
}
}).addOnFailureListener(new OnFailureListener(nhoxActivity) { // from class: o.dqF
private NhoxActivity e;
@Override // com.google.android.gms.tasks.OnFailureListener
public final void onFailure(Exception exc) {
NhoxActivity.d(this.e, exc);
}
{
this.e = nhoxActivity;
}
});
} else {
NhoxLiveChatFirestoreUpdateEndProcessFlagQueryParam.Companion.from(map);
throw null;
}
}
return null;
}
@Override // o.InterfaceC15704hr
public final void g(MethodCall methodCall) {
int i2 = 2 % 2;
int i3 = h + 67;
n = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(methodCall, "");
Map<String, ? extends Object> map = (Map) methodCall.arguments();
if (map != null) {
NhoxLiveChatFirestoreUpdateReadDateTimeQueryParam from = NhoxLiveChatFirestoreUpdateReadDateTimeQueryParam.Companion.from(map);
if (from == null) {
return;
}
Task<Void> update = this.e.collection(from.getCollectionPath()).document(from.getDocumentId()).update("readDateTime", from.getReadDateTime(), new Object[0]);
final jbe jbeVar = new jbe(this);
update.addOnSuccessListener(new OnSuccessListener(jbeVar) { // from class: o.dqR
private InterfaceC14894gbR a;
@Override // com.google.android.gms.tasks.OnSuccessListener
public final void onSuccess(Object obj) {
NhoxActivity.i(this.a, obj);
}
{
this.a = jbeVar;
}
}).addOnFailureListener(new OnFailureListener(this) { // from class: o.dqA
private NhoxActivity c;
@Override // com.google.android.gms.tasks.OnFailureListener
public final void onFailure(Exception exc) {
NhoxActivity.c(this.c, exc);
}
{
this.c = this;
}
});
}
int i5 = h + 5;
n = i5 % 128;
int i6 = i5 % 2;
}
@Override // o.InterfaceC15704hr
public final void b() {
int i2 = 2 % 2;
int i3 = n + 21;
h = i3 % 128;
int i4 = i3 % 2;
Object systemService = getSystemService("location");
C14957gcv.d(systemService, "");
c(new Object[]{"checkLocationServiceEnabledStatus", a(Boolean.TRUE, null, null, Boolean.valueOf(((LocationManager) systemService).isProviderEnabled("gps")), null, null, 54)}, 843040277, -843040276, (int) System.currentTimeMillis());
int i5 = h + 77;
n = i5 % 128;
if (i5 % 2 == 0) {
throw null;
}
}
@Override // o.InterfaceC15704hr
public final void c() {
int i2 = 2 % 2;
int i3 = h + 79;
n = i3 % 128;
int i4 = i3 % 2;
Object systemService = getSystemService("location");
C14957gcv.d(systemService, "");
if (((LocationManager) systemService).isProviderEnabled("gps")) {
C9845dra.c(this, false);
int i5 = h + 49;
n = i5 % 128;
int i6 = i5 % 2;
return;
}
c(new Object[]{"requestPermissionStatus", a(Boolean.TRUE, null, Boolean.TRUE, Boolean.FALSE, null, null, 50)}, 843040277, -843040276, (int) System.currentTimeMillis());
}
@Override // o.InterfaceC15704hr
public final void e() {
int i2 = 2 % 2;
int i3 = n + 1;
h = i3 % 128;
if (i3 % 2 != 0) {
C9845dra.c(this, false);
} else {
C9845dra.c(this, true);
}
int i4 = h + 123;
n = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.InterfaceC15704hr
public final void d() {
int i2 = 2 % 2;
c(new Object[]{"navigateToAppSettingStatus", a(Boolean.TRUE, null, null, null, null, null, 62)}, 843040277, -843040276, (int) System.currentTimeMillis());
startActivity(new Intent("android.settings.SETTINGS"));
int i3 = h + 123;
n = i3 % 128;
int i4 = i3 % 2;
}
@Override // io.flutter.embedding.android.FlutterFragmentActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, android.app.Activity
public final void onActivityResult(int i2, int i3, Intent intent) {
boolean z;
int i4 = 2 % 2;
if (i2 != 7134) {
super.onActivityResult(i2, i3, intent);
return;
}
HashMap hashMap = new HashMap();
HashMap hashMap2 = hashMap;
if (i3 == -1) {
int i5 = h + 125;
n = i5 % 128;
int i6 = i5 % 2;
z = true;
} else {
z = false;
}
hashMap2.put("loginStatus", Boolean.valueOf(z));
KTN ktn = this.sessionCache;
if (ktn == null) {
C14957gcv.a("");
int i7 = h + 13;
n = i7 % 128;
int i8 = i7 % 2;
ktn = null;
}
hashMap2.put("apiAuth", ktn.c);
c(new Object[]{"loginStatusEvent", hashMap}, 843040277, -843040276, (int) System.currentTimeMillis());
}
@Override // io.flutter.embedding.android.FlutterFragmentActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, android.app.Activity
public final void onRequestPermissionsResult(int i2, String[] strArr, int[] iArr) {
int i3 = 2 % 2;
int i4 = n + 125;
h = i4 % 128;
if (i4 % 2 == 0) {
C14957gcv.e(strArr, "");
C14957gcv.e(iArr, "");
super.onRequestPermissionsResult(i2, strArr, iArr);
C9845dra.e(this, i2, iArr);
int i5 = n + 55;
h = i5 % 128;
int i6 = i5 % 2;
return;
}
C14957gcv.e(strArr, "");
C14957gcv.e(iArr, "");
super.onRequestPermissionsResult(i2, strArr, iArr);
C9845dra.e(this, i2, iArr);
Object obj = null;
obj.hashCode();
throw null;
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x003c, code lost:
if (androidx.core.app.ActivityCompat.checkSelfPermission(r15, "android.permission.ACCESS_COARSE_LOCATION") != 0) goto L35;
*/
/* JADX WARN: Code restructure failed: missing block: B:12:0x003e, code lost:
r15 = com.scb.phone.view.activity.NhoxActivity.h + 85;
com.scb.phone.view.activity.NhoxActivity.n = r15 % 128;
r15 = r15 % 2;
r4 = r1.getSystemService("location");
o.C14957gcv.d(r4, "");
*/
/* JADX WARN: Code restructure failed: missing block: B:13:0x005a, code lost:
if (((android.location.LocationManager) r4).isProviderEnabled("gps") == false) goto L35;
*/
/* JADX WARN: Code restructure failed: missing block: B:14:0x005c, code lost:
r4 = com.scb.phone.view.activity.NhoxActivity.h + 89;
com.scb.phone.view.activity.NhoxActivity.n = r4 % 128;
*/
/* JADX WARN: Code restructure failed: missing block: B:15:0x0065, code lost:
if ((r4 % 2) != 0) goto L17;
*/
/* JADX WARN: Code restructure failed: missing block: B:16:0x0067, code lost:
r15 = r1.getSystemService("location");
o.C14957gcv.d(r15, "");
r15 = (android.location.LocationManager) r15;
r0 = r15.getProviders(false);
*/
/* JADX WARN: Code restructure failed: missing block: B:17:0x0082, code lost:
o.C14957gcv.c(r0, "");
r0 = r0.iterator();
r1 = null;
*/
/* JADX WARN: Code restructure failed: missing block: B:19:0x008e, code lost:
if (r0.hasNext() == false) goto L39;
*/
/* JADX WARN: Code restructure failed: missing block: B:20:0x0090, code lost:
r2 = r15.getLastKnownLocation(r0.next());
*/
/* JADX WARN: Code restructure failed: missing block: B:21:0x009a, code lost:
if (r2 == null) goto L43;
*/
/* JADX WARN: Code restructure failed: missing block: B:23:0x009c, code lost:
if (r1 == null) goto L41;
*/
/* JADX WARN: Code restructure failed: missing block: B:25:0x00a8, code lost:
if (r2.getAccuracy() >= r1.getAccuracy()) goto L44;
*/
/* JADX WARN: Code restructure failed: missing block: B:27:0x00aa, code lost:
r1 = r2;
*/
/* JADX WARN: Code restructure failed: missing block: B:34:0x00ac, code lost:
if (r1 == null) goto L29;
*/
/* JADX WARN: Code restructure failed: missing block: B:35:0x00ae, code lost:
r15 = java.lang.Double.valueOf(r1.getLongitude());
r0 = com.scb.phone.view.activity.NhoxActivity.n + 7;
com.scb.phone.view.activity.NhoxActivity.h = r0 % 128;
r0 = r0 % 2;
*/
/* JADX WARN: Code restructure failed: missing block: B:36:0x00c1, code lost:
r13 = java.lang.String.valueOf(r15);
*/
/* JADX WARN: Code restructure failed: missing block: B:37:0x00c5, code lost:
if (r1 == null) goto L33;
*/
/* JADX WARN: Code restructure failed: missing block: B:38:0x00c7, code lost:
r15 = com.scb.phone.view.activity.NhoxActivity.h + 57;
com.scb.phone.view.activity.NhoxActivity.n = r15 % 128;
r15 = r15 % 2;
r15 = java.lang.Double.valueOf(r1.getLatitude());
*/
/* JADX WARN: Code restructure failed: missing block: B:39:0x00da, code lost:
r12 = java.lang.String.valueOf(r15);
r9 = java.lang.Boolean.TRUE;
c(new java.lang.Object[]{"getLocationStatus", a(r9, r9, java.lang.Boolean.FALSE, null, r12, r13, 8)}, 843040277, -843040276, (int) java.lang.System.currentTimeMillis());
*/
/* JADX WARN: Code restructure failed: missing block: B:40:0x00d9, code lost:
r15 = null;
*/
/* JADX WARN: Code restructure failed: missing block: B:41:0x00c0, code lost:
r15 = null;
*/
/* JADX WARN: Code restructure failed: missing block: B:42:0x0075, code lost:
r15 = r1.getSystemService("location");
o.C14957gcv.d(r15, "");
r15 = (android.location.LocationManager) r15;
r0 = r15.getProviders(true);
*/
/* JADX WARN: Code restructure failed: missing block: B:43:0x00f8, code lost:
return null;
*/
/* JADX WARN: Code restructure failed: missing block: B:44:0x0029, code lost:
if (r15 != false) goto L8;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0026, code lost:
if (r15 != false) goto L8;
*/
/* JADX WARN: Code restructure failed: missing block: B:5:0x00f9, code lost:
r9 = java.lang.Boolean.TRUE;
c(new java.lang.Object[]{"requestPermissionStatus", a(r9, r9, java.lang.Boolean.FALSE, null, null, null, 56)}, 843040277, -843040276, (int) java.lang.System.currentTimeMillis());
*/
/* JADX WARN: Code restructure failed: missing block: B:6:0x0115, code lost:
return null;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x002b, code lost:
r15 = r1;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x0034, code lost:
if (androidx.core.app.ActivityCompat.checkSelfPermission(r15, "android.permission.ACCESS_FINE_LOCATION") != 0) goto L35;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static /* synthetic */ java.lang.Object e(java.lang.Object[] r15) {
/*
Method dump skipped, instructions count: 278
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.NhoxActivity.e(java.lang.Object[]):java.lang.Object");
}
public static /* synthetic */ HashMap a(Boolean bool, Boolean bool2, Boolean bool3, Boolean bool4, String str, String str2, int i2) {
int i3 = 2 % 2;
if ((i2 & 1) != 0) {
bool = null;
}
if ((i2 & 2) != 0) {
bool2 = null;
}
if ((i2 & 4) != 0) {
bool3 = null;
}
if ((i2 & 8) != 0) {
int i4 = h + 25;
n = i4 % 128;
int i5 = i4 % 2;
bool4 = null;
}
if ((i2 & 16) != 0) {
int i6 = h + 81;
n = i6 % 128;
if (i6 % 2 == 0) {
throw null;
}
str = null;
}
if ((i2 & 32) != 0) {
str2 = null;
}
C13396fZU[] c13396fZUArr = {new C13396fZU("isSuccess", bool), new C13396fZU("isAccepted", bool2), new C13396fZU("shouldGoToSetting", bool3), new C13396fZU("locationServicesEnabled", bool4), new C13396fZU("latitude", str), new C13396fZU("longitude", str2)};
C14957gcv.e(c13396fZUArr, "");
HashMap hashMap = new HashMap(C14856gaP.a(6));
C14856gaP.e(hashMap, c13396fZUArr);
return hashMap;
}
private static /* synthetic */ Object b(Object[] objArr) {
String str = (String) objArr[0];
HashMap hashMap = (HashMap) objArr[1];
int i2 = 2 % 2;
int i3 = h + 19;
n = i3 % 128;
int i4 = i3 % 2;
FlutterEngine flutterEngine = FlutterEngineCache.getInstance().get("engine_nhox");
if (flutterEngine == null) {
return null;
}
new MethodChannel(flutterEngine.getDartExecutor().getBinaryMessenger(), "scbEasy.flutter.dev/nhox").invokeMethod(str, hashMap);
int i5 = n + 77;
h = i5 % 128;
int i6 = i5 % 2;
return null;
}
private static void e(String str, HashMap<String, Object> hashMap) {
int i2 = 2 % 2;
int i3 = n + 105;
h = i3 % 128;
Object obj = null;
if (i3 % 2 == 0) {
FlutterEngine flutterEngine = FlutterEngineCache.getInstance().get("engine_nhox");
if (flutterEngine != null) {
new MethodChannel(flutterEngine.getDartExecutor().getBinaryMessenger(), "channel.nhox.livechat.integration").invokeMethod(str, hashMap);
}
int i4 = h + 103;
n = i4 % 128;
if (i4 % 2 != 0) {
return;
}
obj.hashCode();
throw null;
}
FlutterEngineCache.getInstance().get("engine_nhox");
throw null;
}
private static void c(HashMap<String, Object> hashMap) {
int i2 = 2 % 2;
int i3 = h + 5;
n = i3 % 128;
if (i3 % 2 == 0) {
FlutterEngineCache.getInstance().get("engine_nhox");
Object obj = null;
obj.hashCode();
throw null;
}
FlutterEngine flutterEngine = FlutterEngineCache.getInstance().get("engine_nhox");
if (flutterEngine != null) {
new MethodChannel(flutterEngine.getDartExecutor().getBinaryMessenger(), "channel.nhox.livechat.integration.updateReadMessageDateTime").invokeMethod("firestoreUpdateReadMessageDateTimeCallback", hashMap);
int i4 = n + 47;
h = i4 % 128;
int i5 = i4 % 2;
}
}
/* JADX WARN: Code restructure failed: missing block: B:28:0x0021, code lost:
r6 = new java.lang.Object[1];
u(new char[]{46440, 4735, 27421, 7434, 38200, 11504, 27693, 53311, 16924, 19989, 58369, 22502, 37667, 49519, 8229, 18531, 6826, 14950, 54143, 37379, 21137, 28525, 21890, 8342, 44087, 58997}, 27 - (android.view.ViewConfiguration.getScrollFriction() > com.google.android.gms.maps.model.BitmapDescriptorFactory.HUE_RED ? 1 : (android.view.ViewConfiguration.getScrollFriction() == com.google.android.gms.maps.model.BitmapDescriptorFactory.HUE_RED ? 0 : -1)), r6);
r1 = java.lang.Class.forName((java.lang.String) r6[0]);
r7 = (java.lang.Object[]) null;
r7 = new java.lang.Object[1];
u(new char[]{51707, 7202, 24039, 56811, 25767, 51415, 42396, 48932, 51236, 11796, 26618, 43317, 176, 55018, 8229, 18531, 805, 52954}, ((android.content.Context) java.lang.Class.forName("android.app.ActivityThread").getMethod("currentApplication", new java.lang.Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion - 16, r7);
r1 = (android.content.Context) r1.getMethod((java.lang.String) r7[0], new java.lang.Class[0]).invoke(null, null);
*/
/* JADX WARN: Code restructure failed: missing block: B:30:0x001f, code lost:
if (r1 == null) goto L9;
*/
/* JADX WARN: Code restructure failed: missing block: B:4:0x0018, code lost:
if (r1 == null) goto L9;
*/
@Override // com.scb.phone.view.activity.Hilt_NhoxActivity, com.scb.phone.view.activity.BaseFlutterActivity, com.scb.phone.view.activity.Hilt_BaseFlutterActivity, io.flutter.embedding.android.FlutterFragmentActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void onResume() {
/*
Method dump skipped, instructions count: 370
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.activity.NhoxActivity.onResume():void");
}
@Override // com.scb.phone.view.activity.Hilt_NhoxActivity, com.scb.phone.view.activity.BaseFlutterActivity, com.scb.phone.view.activity.Hilt_BaseFlutterActivity, io.flutter.embedding.android.FlutterFragmentActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public final void onPause() {
int i2 = 2 % 2;
int i3 = n + 49;
h = i3 % 128;
Object obj = null;
if (i3 % 2 == 0) {
Context baseContext = getBaseContext();
if (baseContext == null) {
Object[] objArr = new Object[1];
u(new char[]{46440, 4735, 27421, 7434, 38200, 11504, 27693, 53311, 16924, 19989, 58369, 22502, 37667, 49519, 8229, 18531, 6826, 14950, 54143, 37379, 21137, 28525, 21890, 8342, 44087, 58997}, 27 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
u(new char[]{51707, 7202, 24039, 56811, 25767, 51415, 42396, 48932, 51236, 11796, 26618, 43317, 176, 55018, 8229, 18531, 805, 52954}, (-16777198) - Color.rgb(0, 0, 0), objArr2);
baseContext = (Context) cls.getMethod((String) objArr2[0], new Class[0]).invoke(null, null);
}
if (baseContext != null) {
baseContext = baseContext.getApplicationContext();
}
if (baseContext != null) {
try {
Object obj2 = xzZ.y.get(125943855);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(492 - TextUtils.indexOf("", ""), (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 5, (char) (ViewConfiguration.getMinimumFlingVelocity() >> 16))).getMethod("a", null);
xzZ.y.put(125943855, obj2);
}
Object invoke = ((Method) obj2).invoke(null, null);
Object[] objArr3 = {baseContext};
Object obj3 = xzZ.y.get(1633456013);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(487 - View.resolveSizeAndState(0, 0, 0), (-16777211) - Color.rgb(0, 0, 0), (char) ((Process.getThreadPriority(0) + 20) >> 6))).getMethod("c", Context.class);
xzZ.y.put(1633456013, obj3);
}
((Method) obj3).invoke(invoke, objArr3);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
super.onPause();
int i4 = n + 97;
h = i4 % 128;
if (i4 % 2 != 0) {
throw null;
}
return;
}
getBaseContext();
obj.hashCode();
throw null;
}
@Override // com.scb.phone.view.activity.Hilt_NhoxActivity, com.scb.phone.view.activity.BaseFlutterActivity, com.scb.phone.view.activity.Hilt_BaseFlutterActivity, io.flutter.embedding.android.FlutterFragmentActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity, android.view.ContextThemeWrapper, android.content.ContextWrapper
public final void attachBaseContext(Context context) {
int i2 = 2 % 2;
int i3 = n + 39;
h = i3 % 128;
int i4 = i3 % 2;
super.attachBaseContext(context);
Object[] objArr = new Object[1];
u(new char[]{46440, 4735, 27421, 7434, 38200, 11504, 27693, 53311, 30330, 32164, 18106, 7419, 16610, 41205, 17180, 7304, 36562, 12168}, (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 18, objArr);
Class<?> cls = Class.forName((String) objArr[0]);
Object[] objArr2 = new Object[1];
v(ViewConfiguration.getJumpTapTimeout() >> 16, 5 - View.MeasureSpec.makeMeasureSpec(0, 0), (char) (6924 - (Process.myTid() >> 22)), objArr2);
int intValue = ((Integer) cls.getDeclaredMethod((String) objArr2[0], new Class[0]).invoke(null, new Object[0])).intValue() % 100000;
if (intValue >= 99000) {
int i5 = h + 87;
n = i5 % 128;
int i6 = i5 % 2;
if (intValue <= 99999) {
return;
}
}
Context applicationContext = context != null ? context.getApplicationContext() : context;
if (applicationContext != null) {
try {
Object obj = xzZ.y.get(125943855);
if (obj == null) {
obj = ((Class) xzZ.c(492 - (KeyEvent.getMaxKeyCode() >> 16), ExpandableListView.getPackedPositionGroup(0L) + 5, (char) ((-1) - TextUtils.indexOf((CharSequence) "", '0', 0, 0)))).getMethod("a", null);
xzZ.y.put(125943855, obj);
}
Object invoke = ((Method) obj).invoke(null, null);
Object[] objArr3 = new Object[1];
v((ViewConfiguration.getKeyRepeatTimeout() >> 16) + 5, Drawable.resolveOpacity(0, 0) + 48, (char) (ViewConfiguration.getScrollBarSize() >> 8), objArr3);
String str = (String) objArr3[0];
Object[] objArr4 = new Object[1];
u(new char[]{16591, 10797, 64757, 23399, 14463, 35495, 47303, 26529, 31627, 19449, 41584, 46034, 41584, 46034, 18443, 40516, 36787, 64423, 38155, 5133, 32468, 46474, 20973, 30408, 54272, 51738, 29134, 20655, 8963, 16810, 36304, 40713, 38370, 45912, 51610, 58874, 39104, 41033, 32573, 44777, 14463, 35495, 60955, 20332, 33942, 347, 14463, 35495, 13975, 24168, 31298, 54763, 21238, 27467, 55788, 63858, 65294, 48664, 64369, 37918, 14463, 35495, 54494, 11010}, 64 - TextUtils.getCapsMode("", 0, 0), objArr4);
String str2 = (String) objArr4[0];
Object[] objArr5 = new Object[1];
u(new char[]{55819, 30110, 52000, 4392, 55692, 20341, 23517, 58708, 8963, 16810, 44082, 50980, 49162, 18115, 36304, 40713, 27190, 46544, 8359, 2739, 34690, 54684, 15154, 29760, 21238, 27467, 40269, 3743, 25109, 47575, 32287, 45757, 7144, 2065, 4091, 16296, 44312, 27677, 53494, 11927, 18313, 27566, 24413, 40825, 32847, 49235, 64757, 23399, 36643, 56197, 51195, 16783, 37444, 7737, 42397, 2001, 183, 45441, 179, 2465, 39104, 41033, 10724, 53278}, Process.getGidForName("") + 65, objArr5);
String str3 = (String) objArr5[0];
Object[] objArr6 = new Object[1];
u(new char[]{48025, 27275, 34094, 50482, 3594, 3989, 39483, 22006, 40152, 40738, 37345, 47804, 31571, 318, 5725, 32026, 23340, 8777, 65480, 53541, 13353, 1740, 31944, 38996, 55999, 2083, 1799, 39512, 58542, 52745, 61880, 48928, 36459, 32819, 18648, 33320, 11798, 43471, 24787, 10843, 1260, 61112, 13660, 25054, 44519, 9908, 1260, 61112, 53090, 4487, 31571, 318, 51530, 55221, 16924, 19989, 9622, 42474, 44877, 51152, 59655, 51014, 2912, 30105, 13136, 14720, 38344, 55993, 28481, 25410, 25767, 51415, 13847, 3740}, 74 - (ViewConfiguration.getScrollDefaultDelay() >> 16), objArr6);
String str4 = (String) objArr6[0];
Object[] objArr7 = new Object[1];
v(View.combineMeasuredStates(0, 0) + 53, 5 - (ViewConfiguration.getTapTimeout() >> 16), (char) (53922 - Color.blue(0)), objArr7);
String str5 = (String) objArr7[0];
Object[] objArr8 = new Object[1];
u(new char[]{61880, 48928, 4142, 3876, 37063, 36990, 32000, 30549, 14427, 59995, 3613, 45894, 32722, 42180, 31211, 35736, 53494, 11927, 42159, 7536, 36643, 56197, 7917, 28037, 13738, 62774, 45105, 5500, 56030, 62133, 22035, 2807, 30133, 16406, 10994, 47816}, ExpandableListView.getPackedPositionGroup(0L) + 36, objArr8);
Object[] objArr9 = {applicationContext, str, str2, str3, str4, true, str5, (String) objArr8[0]};
Object obj2 = xzZ.y.get(1656189573);
if (obj2 == null) {
obj2 = ((Class) xzZ.c(ExpandableListView.getPackedPositionGroup(0L) + 487, 5 - (ViewConfiguration.getJumpTapTimeout() >> 16), (char) ((Process.getThreadPriority(0) + 20) >> 6))).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);
int i7 = n + 25;
h = i7 % 128;
int i8 = i7 % 2;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
}
private static /* synthetic */ Object h(Object[] objArr) {
InterfaceC15577gud interfaceC15577gud = (InterfaceC15577gud) objArr[0];
int i2 = 2 % 2;
int i3 = n + 119;
h = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(interfaceC15577gud, "");
interfaceC15577gud.c();
int i5 = h + 17;
n = i5 % 128;
int i6 = i5 % 2;
return null;
}
private static /* synthetic */ Object c(Object[] objArr) {
InterfaceC14894gbR interfaceC14894gbR = (InterfaceC14894gbR) objArr[0];
Object obj = objArr[1];
int i2 = 2 % 2;
int i3 = n + 19;
h = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(interfaceC14894gbR, "");
interfaceC14894gbR.invoke(obj);
int i5 = n + 49;
h = i5 % 128;
if (i5 % 2 != 0) {
int i6 = 14 / 0;
}
return null;
}
public static /* synthetic */ void c(NhoxActivity nhoxActivity) {
int i2 = 2 % 2;
C14957gcv.e(nhoxActivity, "");
View findViewById = nhoxActivity.findViewById(R.id.content);
C14957gcv.c(findViewById, "");
findViewById.getWindowVisibleDisplayFrame(new Rect());
Point point = new Point();
Display.class.getMethod("getRealSize", Point.class).invoke(nhoxActivity.getWindowManager().getDefaultDisplay(), point);
int i3 = point.y;
DisplayMetrics displayMetrics = new DisplayMetrics();
nhoxActivity.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);
int i4 = displayMetrics.heightPixels;
nhoxActivity.getWindowManager().getDefaultDisplay().getRealMetrics(displayMetrics);
C13396fZU[] c13396fZUArr = {new C13396fZU(CommonConstant.KEY_STATUS, "success"), new C13396fZU("data", Integer.valueOf((int) (((i3 - r3.bottom) - (displayMetrics.heightPixels - i4)) / nhoxActivity.getResources().getDisplayMetrics().density)))};
C14957gcv.e(c13396fZUArr, "");
HashMap hashMap = new HashMap(C14856gaP.a(2));
C14856gaP.e(hashMap, c13396fZUArr);
FlutterEngine flutterEngine = FlutterEngineCache.getInstance().get("engine_nhox");
if (flutterEngine != null) {
new MethodChannel(flutterEngine.getDartExecutor().getBinaryMessenger(), "channel.nhox.livechat.integration.getKeyboardHeight").invokeMethod("firestoreGeyKeyboardHeightCallback", hashMap);
}
int i5 = h + 111;
n = i5 % 128;
int i6 = i5 % 2;
}
public static /* synthetic */ void c(NhoxActivity nhoxActivity, Exception exc) {
int i2 = 2 % 2;
C14957gcv.e(nhoxActivity, "");
C14957gcv.e(exc, "");
C13396fZU[] c13396fZUArr = {new C13396fZU(CommonConstant.KEY_STATUS, "error")};
C14957gcv.e(c13396fZUArr, "");
HashMap hashMap = new HashMap(C14856gaP.a(1));
C14856gaP.e(hashMap, c13396fZUArr);
c((HashMap<String, Object>) hashMap);
int i3 = n + 115;
h = i3 % 128;
int i4 = i3 % 2;
}
public static /* synthetic */ void a(InterfaceC15577gud interfaceC15577gud) {
int i2 = 2 % 2;
int i3 = n + 87;
h = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(interfaceC15577gud, "");
if (i4 != 0) {
interfaceC15577gud.e();
int i5 = 97 / 0;
} else {
interfaceC15577gud.e();
}
}
public static /* synthetic */ void b(NhoxActivity nhoxActivity, Exception exc) {
int i2 = 2 % 2;
C14957gcv.e(nhoxActivity, "");
C14957gcv.e(exc, "");
C13396fZU[] c13396fZUArr = {new C13396fZU(CommonConstant.KEY_STATUS, "error")};
C14957gcv.e(c13396fZUArr, "");
HashMap hashMap = new HashMap(C14856gaP.a(1));
C14856gaP.e(hashMap, c13396fZUArr);
e("firestoreAddRequestCallback", (HashMap<String, Object>) hashMap);
int i3 = h + 27;
n = i3 % 128;
if (i3 % 2 == 0) {
int i4 = 37 / 0;
}
}
private static /* synthetic */ Object a(Object[] objArr) {
InterfaceC14894gbR interfaceC14894gbR = (InterfaceC14894gbR) objArr[0];
Object obj = objArr[1];
int i2 = 2 % 2;
int i3 = h + 9;
n = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(interfaceC14894gbR, "");
if (i4 != 0) {
interfaceC14894gbR.invoke(obj);
return null;
}
interfaceC14894gbR.invoke(obj);
throw null;
}
private static /* synthetic */ Object j(Object[] objArr) {
InterfaceC14894gbR interfaceC14894gbR = (InterfaceC14894gbR) objArr[0];
Object obj = objArr[1];
int i2 = 2 % 2;
int i3 = h + 125;
n = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(interfaceC14894gbR, "");
if (i4 != 0) {
interfaceC14894gbR.invoke(obj);
int i5 = h + 117;
n = i5 % 128;
int i6 = i5 % 2;
return null;
}
interfaceC14894gbR.invoke(obj);
throw null;
}
public static /* synthetic */ void d(NhoxActivity nhoxActivity, QuerySnapshot querySnapshot, FirebaseFirestoreException firebaseFirestoreException) {
int i2 = 2 % 2;
C14957gcv.e(nhoxActivity, "");
HashMap hashMap = new HashMap();
if (firebaseFirestoreException != null) {
C13396fZU[] c13396fZUArr = {new C13396fZU(CommonConstant.KEY_STATUS, firebaseFirestoreException.getCode().name()), new C13396fZU("data", firebaseFirestoreException.getMessage())};
C14957gcv.e(c13396fZUArr, "");
HashMap hashMap2 = new HashMap(C14856gaP.a(2));
C14856gaP.e(hashMap2, c13396fZUArr);
e("firestoreListenMessageCallback", (HashMap<String, Object>) hashMap2);
return;
}
if (querySnapshot != null) {
List objects = querySnapshot.toObjects(RequestEntity.class);
C14957gcv.c(objects, "");
for (DocumentChange documentChange : querySnapshot.getDocumentChanges()) {
RequestMessageEntity requestMessageEntity = null;
if (querySnapshot.getMetadata().isFromCache()) {
int i3 = h + 115;
n = i3 % 128;
int i4 = i3 % 2;
List<RequestMessageEntity> messages = ((RequestEntity) C14881gav.d(objects)).getMessages();
if (messages != null) {
int i5 = n + 31;
h = i5 % 128;
if (i5 % 2 != 0) {
throw null;
}
requestMessageEntity = (RequestMessageEntity) C14881gav.d((List) messages);
}
if (requestMessageEntity != null) {
requestMessageEntity.setComplete("N");
}
} else {
List<RequestMessageEntity> messages2 = ((RequestEntity) C14881gav.d(objects)).getMessages();
if (messages2 != null) {
int i6 = h + 45;
n = i6 % 128;
int i7 = i6 % 2;
requestMessageEntity = (RequestMessageEntity) C14881gav.d((List) messages2);
}
if (requestMessageEntity != null) {
int i8 = n + 91;
h = i8 % 128;
int i9 = i8 % 2;
requestMessageEntity.setComplete("Y");
}
}
}
C13396fZU[] c13396fZUArr2 = {new C13396fZU(CommonConstant.KEY_STATUS, "success"), new C13396fZU("data", new Gson().toJson(objects))};
C14957gcv.e(c13396fZUArr2, "");
HashMap hashMap3 = new HashMap(C14856gaP.a(2));
C14856gaP.e(hashMap3, c13396fZUArr2);
hashMap = hashMap3;
}
e("firestoreListenMessageCallback", (HashMap<String, Object>) hashMap);
}
public static /* synthetic */ void a(NhoxActivity nhoxActivity, Exception exc) {
int i2 = 2 % 2;
C14957gcv.e(nhoxActivity, "");
C14957gcv.e(exc, "");
C13396fZU[] c13396fZUArr = {new C13396fZU("isSuccess", Boolean.FALSE)};
C14957gcv.e(c13396fZUArr, "");
HashMap hashMap = new HashMap(C14856gaP.a(1));
C14856gaP.e(hashMap, c13396fZUArr);
e("firebaseAuthSignInCallback", (HashMap<String, Object>) hashMap);
int i3 = h + 91;
n = i3 % 128;
if (i3 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
private static /* synthetic */ Object g(Object[] objArr) {
InterfaceC14894gbR interfaceC14894gbR = (InterfaceC14894gbR) objArr[0];
Object obj = objArr[1];
int i2 = 2 % 2;
int i3 = n + 45;
h = i3 % 128;
int i4 = i3 % 2;
Object obj2 = null;
C14957gcv.e(interfaceC14894gbR, "");
if (i4 == 0) {
interfaceC14894gbR.invoke(obj);
int i5 = n + 121;
h = i5 % 128;
int i6 = i5 % 2;
return null;
}
interfaceC14894gbR.invoke(obj);
obj2.hashCode();
throw null;
}
public static /* synthetic */ void d(NhoxActivity nhoxActivity, Task task) {
int i2 = 2 % 2;
C14957gcv.e(nhoxActivity, "");
C14957gcv.e(task, "");
C13396fZU[] c13396fZUArr = {new C13396fZU("isSuccess", Boolean.valueOf(task.isSuccessful()))};
C14957gcv.e(c13396fZUArr, "");
HashMap hashMap = new HashMap(C14856gaP.a(1));
C14856gaP.e(hashMap, c13396fZUArr);
e("firebaseAuthSignInCallback", (HashMap<String, Object>) hashMap);
int i3 = h + 71;
n = i3 % 128;
int i4 = i3 % 2;
}
public static /* synthetic */ void d(NhoxActivity nhoxActivity, Exception exc) {
int i2 = 2 % 2;
C14957gcv.e(nhoxActivity, "");
C14957gcv.e(exc, "");
C13396fZU[] c13396fZUArr = {new C13396fZU(CommonConstant.KEY_STATUS, "error")};
C14957gcv.e(c13396fZUArr, "");
HashMap hashMap = new HashMap(C14856gaP.a(1));
C14856gaP.e(hashMap, c13396fZUArr);
e("firestoreUpdateEndProcessFlagCallback", (HashMap<String, Object>) hashMap);
int i3 = n + 71;
h = i3 % 128;
if (i3 % 2 != 0) {
throw null;
}
}
public static /* synthetic */ void i(InterfaceC14894gbR interfaceC14894gbR, Object obj) {
int i2 = 2 % 2;
int i3 = h + 5;
n = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(interfaceC14894gbR, "");
interfaceC14894gbR.invoke(obj);
int i5 = h + 97;
n = i5 % 128;
int i6 = i5 % 2;
}
public static /* synthetic */ void e(NhoxActivity nhoxActivity, Exception exc) {
int i2 = 2 % 2;
C14957gcv.e(nhoxActivity, "");
C14957gcv.e(exc, "");
C13396fZU[] c13396fZUArr = {new C13396fZU(CommonConstant.KEY_STATUS, "error")};
C14957gcv.e(c13396fZUArr, "");
HashMap hashMap = new HashMap(C14856gaP.a(1));
C14856gaP.e(hashMap, c13396fZUArr);
e("firestoreAddMessageCallback", (HashMap<String, Object>) hashMap);
int i3 = n + 33;
h = i3 % 128;
int i4 = i3 % 2;
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r12v2, types: [T, java.util.HashMap] */
/* JADX WARN: Type inference failed for: r12v4, types: [T, java.util.HashMap] */
public static /* synthetic */ void b(NhoxActivity nhoxActivity, C14930gcM.RVV rvv, Exception exc) {
int i2 = 2 % 2;
int i3 = n + 55;
h = i3 % 128;
int i4 = i3 % 2;
C14957gcv.e(nhoxActivity, "");
C14957gcv.e(rvv, "");
C14957gcv.e(exc, "");
if (exc instanceof FirebaseFirestoreException) {
FirebaseFirestoreException firebaseFirestoreException = (FirebaseFirestoreException) exc;
if (firebaseFirestoreException.getCode() == FirebaseFirestoreException.Code.PERMISSION_DENIED) {
ListenerRegistration listenerRegistration = nhoxActivity.c;
C13396fZU[] c13396fZUArr = {new C13396fZU(CommonConstant.KEY_STATUS, firebaseFirestoreException.getCode().name()), new C13396fZU("data", exc.getMessage())};
C14957gcv.e(c13396fZUArr, "");
?? hashMap = new HashMap(C14856gaP.a(2));
C14856gaP.e((Map) hashMap, c13396fZUArr);
rvv.d = hashMap;
e("firestoreGetHistoryCallback", (HashMap<String, Object>) rvv.d);
return;
}
C13396fZU[] c13396fZUArr2 = {new C13396fZU(CommonConstant.KEY_STATUS, "error"), new C13396fZU("data", exc.getMessage())};
C14957gcv.e(c13396fZUArr2, "");
?? hashMap2 = new HashMap(C14856gaP.a(2));
C14856gaP.e((Map) hashMap2, c13396fZUArr2);
rvv.d = hashMap2;
e("firestoreGetHistoryCallback", (HashMap<String, Object>) rvv.d);
int i5 = n + 121;
h = i5 % 128;
int i6 = i5 % 2;
}
}
static void a() {
b = (char) 14170;
a = (char) 55201;
i = (char) 50338;
j = (char) 17452;
g = new char[]{38067, 19219, 11235, 2987, 60010, 36835, 20561, 12430, 4268, 61745, 53557, 45452, 37471, 29200, 21183, 13032, 4879, 62353, 54164, 46137, 37990, 29936, 21781, 13640, 5558, 62961, 54818, 46795, 38599, 30548, 22384, 14329, 6171, 63489, 55439, 47278, 39215, 31075, 22995, 14850, 6783, 64228, 55987, 47880, 39900, 31680, 23602, 15459, 7387, 64833, 56654, 48623, 40426, 23881, 33514, 57888, 49730, 9104};
f = -6175737089282912154L;
}
@Override // com.scb.phone.view.activity.Hilt_NhoxActivity, com.scb.phone.view.activity.BaseFlutterActivity, com.scb.phone.view.activity.Hilt_BaseFlutterActivity, io.flutter.embedding.android.FlutterFragmentActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, androidx.core.app.ComponentActivity, android.app.Activity
public final void onStart() {
int i2 = 2 % 2;
int i3 = n + 123;
h = i3 % 128;
int i4 = i3 % 2;
super.onStart();
if (i4 != 0) {
int i5 = 21 / 0;
}
int i6 = h + 61;
n = i6 % 128;
int i7 = i6 % 2;
}
@Override // o.InterfaceC15704hr
public final void h(MethodCall methodCall) {
c(new Object[]{this, methodCall}, -1575468934, 1575468942, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getApplicationInfo().targetSdkVersion + 975617702);
}
public final void a(boolean z) {
c(new Object[]{this, Boolean.valueOf(z)}, 315286432, -315286428, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(com.scb.phone.R.string.e_document_description_mcmc).substring(49, 50).length() - 1621309538);
}
@Override // o.InterfaceC15704hr
public final void c(MethodCall methodCall) {
c(new Object[]{this, methodCall}, -1330979819, 1330979821, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getPackageName().codePointAt(10) + 165524890);
}
static void c(String str, HashMap<String, Object> hashMap) {
c(new Object[]{str, hashMap}, 843040277, -843040276, (int) System.currentTimeMillis());
}
static {
h = 0;
a();
d = new IeS((byte) 0);
int i2 = n + 63;
h = i2 % 128;
if (i2 % 2 != 0) {
int i3 = 11 / 0;
}
}
}