what-the-bank/sources/com/scb/phone/view/adapter/merchant/MerchantWalletIncomingTrans...

483 lines
20 KiB
Java

package com.scb.phone.view.adapter.merchant;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.media.AudioTrack;
import android.os.Process;
import android.telephony.cdma.CdmaCellLocation;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.util.Base64;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.scb.phone.R;
import com.scb.phone.view.adapter.BaseExpandableRecycleViewAdapter;
import java.lang.reflect.Method;
import java.nio.charset.StandardCharsets;
import o.AbstractC12404exa;
import o.AbstractC5347brN;
import o.C16148leh;
import o.RU;
import o.TVH;
import o.pyT;
import o.xzZ;
/* loaded from: classes5.dex */
public final class MerchantWalletIncomingTransactionAdapter extends AbstractC12404exa<RU> {
@Override // com.scb.phone.view.adapter.BaseExpandableRecycleViewAdapter, o.Qpt
public final boolean b(RecyclerView.zJl zjl) {
return false;
}
/* loaded from: classes5.dex */
public class ChildViewHolder_ViewBinding implements Unbinder {
private ChildViewHolder b;
public ChildViewHolder_ViewBinding(ChildViewHolder childViewHolder, View view) {
this.b = childViewHolder;
childViewHolder.textTransferFrom = (TextView) pyT.e(view, R.id.text_transfer_from_value, "field 'textTransferFrom'", TextView.class);
childViewHolder.textBuyerName = (TextView) pyT.e(view, R.id.text_buyer_name_value, "field 'textBuyerName'", TextView.class);
childViewHolder.textPaymentChannel = (TextView) pyT.e(view, R.id.text_payment_channel_value, "field 'textPaymentChannel'", TextView.class);
childViewHolder.textShopReference = (TextView) pyT.e(view, R.id.text_shop_reference_value, "field 'textShopReference'", TextView.class);
}
@Override // butterknife.Unbinder
public final void a() {
ChildViewHolder childViewHolder = this.b;
if (childViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.b = null;
childViewHolder.textTransferFrom = null;
childViewHolder.textBuyerName = null;
childViewHolder.textPaymentChannel = null;
childViewHolder.textShopReference = null;
}
}
/* loaded from: classes5.dex */
public class IncomingGroupItemViewHolder_ViewBinding extends BaseExpandableRecycleViewAdapter.BaseParentViewHolder_ViewBinding {
private IncomingGroupItemViewHolder e;
public IncomingGroupItemViewHolder_ViewBinding(IncomingGroupItemViewHolder incomingGroupItemViewHolder, View view) {
super(incomingGroupItemViewHolder, view);
this.e = incomingGroupItemViewHolder;
incomingGroupItemViewHolder.container = pyT.a(view, R.id.container, "field 'container'");
incomingGroupItemViewHolder.viewVerticalLine = pyT.a(view, R.id.view_vertical_line, "field 'viewVerticalLine'");
incomingGroupItemViewHolder.textTitle = (TextView) pyT.e(view, R.id.text_title, "field 'textTitle'", TextView.class);
incomingGroupItemViewHolder.textAmount = (TextView) pyT.e(view, R.id.text_amount, "field 'textAmount'", TextView.class);
incomingGroupItemViewHolder.textTimestamp = (TextView) pyT.e(view, R.id.text_timestamp, "field 'textTimestamp'", TextView.class);
incomingGroupItemViewHolder.viewVerticalLineBelowDot = pyT.a(view, R.id.view_vertical_line_below_dot, "field 'viewVerticalLineBelowDot'");
}
@Override // com.scb.phone.view.adapter.BaseExpandableRecycleViewAdapter.BaseParentViewHolder_ViewBinding, butterknife.Unbinder
public final void a() {
IncomingGroupItemViewHolder incomingGroupItemViewHolder = this.e;
if (incomingGroupItemViewHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.e = null;
incomingGroupItemViewHolder.container = null;
incomingGroupItemViewHolder.viewVerticalLine = null;
incomingGroupItemViewHolder.textTitle = null;
incomingGroupItemViewHolder.textAmount = null;
incomingGroupItemViewHolder.textTimestamp = null;
incomingGroupItemViewHolder.viewVerticalLineBelowDot = null;
super.a();
}
}
public MerchantWalletIncomingTransactionAdapter(C16148leh c16148leh) {
super(c16148leh);
}
@Override // o.pvT, o.Qpt
public final int c(int i) {
return this.a.get(i) == null ? 0 : 1;
}
/* loaded from: classes5.dex */
class IncomingGroupItemViewHolder extends BaseExpandableRecycleViewAdapter.BaseParentViewHolder {
private static final byte[] $$a = {29, 33, 79, 109};
private static final int $$b = 239;
private static int $10 = 0;
private static int $11 = 1;
private static int b = 0;
private static char[] d;
private static byte e;
private static int h;
private MerchantWalletIncomingTransactionAdapter a;
@BindView
View container;
@BindView
TextView textAmount;
@BindView
TextView textTimestamp;
@BindView
TextView textTitle;
@BindView
View viewVerticalLine;
@BindView
View viewVerticalLineBelowDot;
/* 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:0x002c). 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 i(short r6, int r7, int r8, java.lang.Object[] r9) {
/*
int r8 = r8 * 2
int r8 = r8 + 71
int r7 = r7 * 3
int r0 = r7 + 1
byte[] r1 = com.scb.phone.view.adapter.merchant.MerchantWalletIncomingTransactionAdapter.IncomingGroupItemViewHolder.$$a
int r6 = r6 + 4
byte[] r0 = new byte[r0]
r2 = 0
if (r1 != 0) goto L14
r3 = r7
r4 = r2
goto L2c
L14:
r3 = r2
L15:
int r6 = r6 + 1
byte r4 = (byte) r8
r0[r3] = r4
if (r3 != r7) goto L24
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L24:
int r3 = r3 + 1
r4 = r1[r6]
r5 = r3
r3 = r8
r8 = r4
r4 = r5
L2c:
int r8 = -r8
int r8 = r8 + r3
r3 = r4
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.adapter.merchant.MerchantWalletIncomingTransactionAdapter.IncomingGroupItemViewHolder.i(short, int, int, java.lang.Object[]):void");
}
private void f(String str, Object[] objArr) {
byte[] decode;
byte[] bArr;
int i;
int i2 = 2 % 2;
int i3 = b + 69;
h = i3 % 128;
if (i3 % 2 == 0) {
decode = Base64.decode(str, 1);
bArr = new byte[decode.length];
i = 1;
} else {
decode = Base64.decode(str, 0);
bArr = new byte[decode.length];
i = 0;
}
int i4 = b + 83;
h = i4 % 128;
int i5 = i4 % 2;
while (i < decode.length) {
int i6 = b + 23;
h = i6 % 128;
int i7 = i6 % 2;
bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ e);
i++;
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
IncomingGroupItemViewHolder(MerchantWalletIncomingTransactionAdapter merchantWalletIncomingTransactionAdapter, View view, View.OnClickListener onClickListener) {
super(view);
this.a = merchantWalletIncomingTransactionAdapter;
ButterKnife.c(this, view);
this.container.setOnClickListener(onClickListener);
}
/* JADX WARN: Removed duplicated region for block: B:14:0x0063 */
/* JADX WARN: Removed duplicated region for block: B:19:0x008c */
/* JADX WARN: Removed duplicated region for block: B:22:0x009f */
/* JADX WARN: Removed duplicated region for block: B:25:0x00c4 */
/* JADX WARN: Removed duplicated region for block: B:28:0x00fc */
/* JADX WARN: Removed duplicated region for block: B:31:0x010c */
/* JADX WARN: Removed duplicated region for block: B:37:0x011d A[ORIG_RETURN, RETURN] */
/* JADX WARN: Removed duplicated region for block: B:38:0x0106 */
/* JADX WARN: Removed duplicated region for block: B:39:0x00c8 */
/* JADX WARN: Removed duplicated region for block: B:40:0x0090 */
/* JADX WARN: Removed duplicated region for block: B:42:0x0074 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
final void a(int r9) {
/*
Method dump skipped, instructions count: 286
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.adapter.merchant.MerchantWalletIncomingTransactionAdapter.IncomingGroupItemViewHolder.a(int):void");
}
private static void g(byte[] bArr, int[] iArr, boolean z, Object[] objArr) {
char[] cArr;
int i = 2 % 2;
TVH tvh = new TVH();
int i2 = 0;
int i3 = iArr[0];
int i4 = 1;
int i5 = iArr[1];
int i6 = iArr[2];
int i7 = iArr[3];
char[] cArr2 = d;
int i8 = -1;
char c = '0';
if (cArr2 != null) {
int length = cArr2.length;
char[] cArr3 = new char[length];
int i9 = 0;
while (i9 < length) {
try {
Object[] objArr2 = new Object[i4];
objArr2[i2] = Integer.valueOf(cArr2[i9]);
Object obj = xzZ.y.get(1645349359);
if (obj != null) {
cArr = cArr2;
} else {
Class cls = (Class) xzZ.c(Color.rgb(i2, i2, i2) + 16777439, 5 - ((Process.getThreadPriority(i2) + 20) >> 6), (char) (41976 - TextUtils.lastIndexOf("", c)));
byte b2 = (byte) i8;
byte b3 = (byte) (b2 + 1);
cArr = cArr2;
Object[] objArr3 = new Object[1];
i(b2, b3, b3, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1645349359, obj);
}
cArr3[i9] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
i9++;
cArr2 = cArr;
i2 = 0;
i4 = 1;
i8 = -1;
c = '0';
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
cArr2 = cArr3;
}
char[] cArr4 = new char[i5];
System.arraycopy(cArr2, i3, cArr4, 0, i5);
if (bArr != null) {
char[] cArr5 = new char[i5];
tvh.c = 0;
int i10 = $11 + 77;
$10 = i10 % 128;
int i11 = i10 % 2;
char c2 = 0;
while (tvh.c < i5) {
if (bArr[tvh.c] == 1) {
int i12 = tvh.c;
try {
Object[] objArr4 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)};
Object obj2 = xzZ.y.get(850398076);
if (obj2 == null) {
obj2 = ((Class) xzZ.c((CdmaCellLocation.convertQuartSecToDecDegrees(0) > 0.0d ? 1 : (CdmaCellLocation.convertQuartSecToDecDegrees(0) == 0.0d ? 0 : -1)) + 502, '5' - AndroidCharacter.getMirror('0'), (char) (54 - (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))))).getMethod("F", Integer.TYPE, Integer.TYPE);
xzZ.y.put(850398076, obj2);
}
cArr5[i12] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
} else {
int i13 = tvh.c;
Object[] objArr5 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)};
Object obj3 = xzZ.y.get(1084521042);
if (obj3 == null) {
obj3 = ((Class) xzZ.c(15 - TextUtils.indexOf("", ""), 4 - ImageFormat.getBitsPerPixel(0), (char) (58134 - KeyEvent.normalizeMetaState(0)))).getMethod("H", Integer.TYPE, Integer.TYPE);
xzZ.y.put(1084521042, obj3);
}
cArr5[i13] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue();
}
c2 = cArr5[tvh.c];
Object[] objArr6 = {tvh, tvh};
Object obj4 = xzZ.y.get(1698744941);
if (obj4 == null) {
Class cls2 = (Class) xzZ.c(KeyEvent.normalizeMetaState(0) + 402, TextUtils.indexOf("", "") + 5, (char) (21608 - (ViewConfiguration.getMinimumFlingVelocity() >> 16)));
byte b4 = (byte) (-1);
byte b5 = (byte) (b4 + 1);
Object[] objArr7 = new Object[1];
i(b4, b5, (byte) (b5 + 1), objArr7);
obj4 = cls2.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1698744941, obj4);
}
((Method) obj4).invoke(null, objArr6);
}
cArr4 = cArr5;
}
if (i7 > 0) {
int i14 = $11 + 95;
$10 = i14 % 128;
int i15 = i14 % 2;
char[] cArr6 = new char[i5];
System.arraycopy(cArr4, 0, cArr6, 0, i5);
int i16 = i5 - i7;
System.arraycopy(cArr6, 0, cArr4, i16, i7);
System.arraycopy(cArr6, i7, cArr4, 0, i16);
}
if (z) {
int i17 = $10 + 47;
$11 = i17 % 128;
int i18 = i17 % 2;
char[] cArr7 = new char[i5];
int i19 = 0;
while (true) {
tvh.c = i19;
if (tvh.c >= i5) {
break;
}
cArr7[tvh.c] = cArr4[(i5 - tvh.c) - 1];
i19 = tvh.c + 1;
}
int i20 = $11 + 115;
$10 = i20 % 128;
int i21 = i20 % 2;
cArr4 = cArr7;
}
if (i6 > 0) {
int i22 = $11 + 95;
$10 = i22 % 128;
int i23 = i22 % 2;
int i24 = 0;
while (true) {
tvh.c = i24;
if (tvh.c >= i5) {
break;
}
cArr4[tvh.c] = (char) (cArr4[tvh.c] - iArr[2]);
i24 = tvh.c + 1;
}
}
objArr[0] = new String(cArr4);
}
static void a() {
d = new char[]{39981};
}
static {
h = 1;
a();
e = (byte) 6;
int i = b + 71;
h = i % 128;
int i2 = i % 2;
}
}
@Override // o.Qpt
public final RecyclerView.zJl anX_(ViewGroup viewGroup, int i) {
if (i == 1) {
return new IncomingGroupItemViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559181, viewGroup, false), this.e);
}
if (i == 0) {
return new HBt(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559248, viewGroup, false));
}
return null;
}
@Override // o.Qpt
public final RecyclerView.zJl anW_(ViewGroup viewGroup, int i) {
return new ChildViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559178, viewGroup, false));
}
@Override // o.Qpt
public final void d(RecyclerView.zJl zjl, int i) {
if (zjl instanceof IncomingGroupItemViewHolder) {
((IncomingGroupItemViewHolder) zjl).a(i);
}
}
@Override // o.Qpt
public final void c(RecyclerView.zJl zjl, int i, int i2) {
if (zjl instanceof ChildViewHolder) {
((ChildViewHolder) zjl).a(i);
}
}
/* loaded from: classes5.dex */
class HBt extends AbstractC5347brN {
private MerchantWalletIncomingTransactionAdapter a;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
HBt(MerchantWalletIncomingTransactionAdapter merchantWalletIncomingTransactionAdapter, View view) {
super(view);
this.a = merchantWalletIncomingTransactionAdapter;
}
}
/* loaded from: classes5.dex */
class ChildViewHolder extends AbstractC5347brN {
private MerchantWalletIncomingTransactionAdapter e;
@BindView
TextView textBuyerName;
@BindView
TextView textPaymentChannel;
@BindView
TextView textShopReference;
@BindView
TextView textTransferFrom;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
ChildViewHolder(MerchantWalletIncomingTransactionAdapter merchantWalletIncomingTransactionAdapter, View view) {
super(view);
this.e = merchantWalletIncomingTransactionAdapter;
ButterKnife.c(this, view);
}
final void a(int i) {
RU ru = (RU) this.e.a.get(i);
this.textTransferFrom.setText(ru.a);
this.textBuyerName.setText(ru.c);
this.textPaymentChannel.setText(ru.b);
this.textShopReference.setText(ru.f);
}
}
}