package com.scb.phone.view.adapter.loan; import android.content.Context; import android.graphics.Color; import android.graphics.PointF; import android.text.TextUtils; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewConfiguration; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.LinearLayout; 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.google.common.base.Ascii; import com.scb.phone.R; import com.scb.phone.view.adapter.loan.SmeLoanDetailLgItemAdapter; import java.lang.reflect.Method; import java.util.List; import o.AbstractC12339ewO; import o.AbstractC5347brN; import o.C0388Fl; import o.C0395Fp; import o.C16148leh; import o.jTb; import o.pyT; import o.xzZ; /* loaded from: classes5.dex */ public final class SmeLoanDetailLgItemAdapter extends AbstractC12339ewO { private List c; private View.OnClickListener e; /* loaded from: classes5.dex */ public class ChildViewHolder_ViewBinding implements Unbinder { private ChildViewHolder b; public ChildViewHolder_ViewBinding(ChildViewHolder childViewHolder, View view) { this.b = childViewHolder; childViewHolder.textIssuedTypeValue = (TextView) pyT.e(view, R.id.text_issued_type_value, "field 'textIssuedTypeValue'", TextView.class); childViewHolder.textIssuedDebitAccountValue = (TextView) pyT.e(view, R.id.text_issued_debit_account_value, "field 'textIssuedDebitAccountValue'", TextView.class); childViewHolder.textIssuedDocumentNoValue = (TextView) pyT.e(view, R.id.text_issued_document_no_value, "field 'textIssuedDocumentNoValue'", TextView.class); childViewHolder.textIssuedStartDateValue = (TextView) pyT.e(view, R.id.text_issued_start_date_value, "field 'textIssuedStartDateValue'", TextView.class); childViewHolder.textIssuedNextFeeAmountValue = (TextView) pyT.e(view, R.id.text_issued_next_fee_amount_value, "field 'textIssuedNextFeeAmountValue'", TextView.class); childViewHolder.textIssuedFeeRateValue = (TextView) pyT.e(view, R.id.text_issued_fee_rate_value, "field 'textIssuedFeeRateValue'", TextView.class); childViewHolder.layoutClaimed = (LinearLayout) pyT.e(view, R.id.layout_claimed, "field 'layoutClaimed'", LinearLayout.class); childViewHolder.layoutClaimedList = (LinearLayout) pyT.e(view, R.id.layout_claimed_list, "field 'layoutClaimedList'", LinearLayout.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.textIssuedTypeValue = null; childViewHolder.textIssuedDebitAccountValue = null; childViewHolder.textIssuedDocumentNoValue = null; childViewHolder.textIssuedStartDateValue = null; childViewHolder.textIssuedNextFeeAmountValue = null; childViewHolder.textIssuedFeeRateValue = null; childViewHolder.layoutClaimed = null; childViewHolder.layoutClaimedList = null; } } /* loaded from: classes5.dex */ public class GroupItemViewHolder_ViewBinding implements Unbinder { private GroupItemViewHolder d; public GroupItemViewHolder_ViewBinding(GroupItemViewHolder groupItemViewHolder, View view) { this.d = groupItemViewHolder; groupItemViewHolder.container = pyT.a(view, R.id.container, "field 'container'"); groupItemViewHolder.textTitle = (TextView) pyT.e(view, R.id.text_title, "field 'textTitle'", TextView.class); groupItemViewHolder.textAmount = (TextView) pyT.e(view, R.id.text_amount, "field 'textAmount'", TextView.class); groupItemViewHolder.textClaimedStatus = (TextView) pyT.e(view, R.id.text_claimed_status, "field 'textClaimedStatus'", TextView.class); groupItemViewHolder.textTimestamp = (TextView) pyT.e(view, R.id.text_timestamp, "field 'textTimestamp'", TextView.class); groupItemViewHolder.expandIcon = (ImageView) pyT.e(view, R.id.expand_icon_image_view, "field 'expandIcon'", ImageView.class); } @Override // butterknife.Unbinder public final void a() { GroupItemViewHolder groupItemViewHolder = this.d; if (groupItemViewHolder == null) { throw new IllegalStateException("Bindings already cleared."); } this.d = null; groupItemViewHolder.container = null; groupItemViewHolder.textTitle = null; groupItemViewHolder.textAmount = null; groupItemViewHolder.textClaimedStatus = null; groupItemViewHolder.textTimestamp = null; groupItemViewHolder.expandIcon = null; } } /* loaded from: classes5.dex */ public class ClaimedItemViewHolder_ViewBinding implements Unbinder { private ClaimedItemViewHolder e; public ClaimedItemViewHolder_ViewBinding(ClaimedItemViewHolder claimedItemViewHolder, View view) { this.e = claimedItemViewHolder; claimedItemViewHolder.viewSeparator = pyT.a(view, R.id.view_separator, "field 'viewSeparator'"); claimedItemViewHolder.textClaimedAmountValue = (TextView) pyT.e(view, R.id.text_claimed_amount_value, "field 'textClaimedAmountValue'", TextView.class); claimedItemViewHolder.textClaimedDateValue = (TextView) pyT.e(view, R.id.text_claimed_date_value, "field 'textClaimedDateValue'", TextView.class); claimedItemViewHolder.textClaimedInterestAmountValue = (TextView) pyT.e(view, R.id.text_claimed_interest_amount_value, "field 'textClaimedInterestAmountValue'", TextView.class); claimedItemViewHolder.textClaimedInterestRateValue = (TextView) pyT.e(view, R.id.text_claimed_interest_rate_value, "field 'textClaimedInterestRateValue'", TextView.class); } @Override // butterknife.Unbinder public final void a() { ClaimedItemViewHolder claimedItemViewHolder = this.e; if (claimedItemViewHolder == null) { throw new IllegalStateException("Bindings already cleared."); } this.e = null; claimedItemViewHolder.viewSeparator = null; claimedItemViewHolder.textClaimedAmountValue = null; claimedItemViewHolder.textClaimedDateValue = null; claimedItemViewHolder.textClaimedInterestAmountValue = null; claimedItemViewHolder.textClaimedInterestRateValue = null; } } public SmeLoanDetailLgItemAdapter(Context context, C16148leh c16148leh, List list) { super(context, c16148leh); this.c = list; this.e = new View.OnClickListener(this) { // from class: o.ewM private SmeLoanDetailLgItemAdapter c; @Override // android.view.View.OnClickListener public final void onClick(View view) { this.c.d(view); } { this.c = this; } }; } @Override // o.Qpt public final int d() { return this.c.size(); } @Override // o.Qpt public final RecyclerView.zJl anX_(ViewGroup viewGroup, int i) { return new GroupItemViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559236, viewGroup, false), this.e); } @Override // o.Qpt public final RecyclerView.zJl anW_(ViewGroup viewGroup, int i) { return new ChildViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559237, viewGroup, false)); } @Override // o.Qpt public final void d(RecyclerView.zJl zjl, int i) { if (zjl instanceof GroupItemViewHolder) { ((GroupItemViewHolder) zjl).b(i); } } @Override // o.Qpt public final void c(RecyclerView.zJl zjl, int i, int i2) { if (zjl instanceof ChildViewHolder) { ChildViewHolder childViewHolder = (ChildViewHolder) zjl; C0395Fp c0395Fp = childViewHolder.b.c.get(i); childViewHolder.textIssuedTypeValue.setText(c0395Fp.i); childViewHolder.textIssuedDebitAccountValue.setText(c0395Fp.c); childViewHolder.textIssuedDocumentNoValue.setText(c0395Fp.a); childViewHolder.textIssuedStartDateValue.setText(c0395Fp.m); childViewHolder.textIssuedNextFeeAmountValue.setText(c0395Fp.j); childViewHolder.textIssuedFeeRateValue.setText(c0395Fp.g); List list = c0395Fp.b; childViewHolder.layoutClaimedList.removeAllViews(); if (list != null && !list.isEmpty()) { childViewHolder.layoutClaimed.setVisibility(0); Context context = childViewHolder.a.getContext(); int size = list.size(); for (int i3 = 0; i3 < size; i3++) { C0388Fl c0388Fl = list.get(i3); if (i3 == 0) { LinearLayout linearLayout = childViewHolder.layoutClaimedList; ClaimedItemViewHolder b = new ClaimedItemViewHolder(childViewHolder.b, context).b(c0388Fl); b.viewSeparator.setVisibility(8); linearLayout.addView(b); } else { childViewHolder.layoutClaimedList.addView(new ClaimedItemViewHolder(childViewHolder.b, context).b(c0388Fl)); } } return; } childViewHolder.layoutClaimed.setVisibility(8); } } /* loaded from: classes5.dex */ class GroupItemViewHolder extends AbstractC5347brN { private SmeLoanDetailLgItemAdapter b; @BindView View container; @BindView ImageView expandIcon; @BindView TextView textAmount; @BindView TextView textClaimedStatus; @BindView TextView textTimestamp; @BindView TextView textTitle; private static final byte[] $$a = {Ascii.ETB, -9, -41, -17}; private static final int $$b = 37; private static int $10 = 0; private static int $11 = 1; private static int g = 0; private static int i = 1; private static char d = 7173; private static char e = 44147; private static char a = 62831; private static char h = 63091; /* JADX WARN: Removed duplicated region for block: B:10:0x002a */ /* JADX WARN: Removed duplicated region for block: B:7:0x0022 */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x002a -> 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 j(short r6, byte r7, byte r8, java.lang.Object[] r9) { /* int r7 = r7 + 4 byte[] r0 = com.scb.phone.view.adapter.loan.SmeLoanDetailLgItemAdapter.GroupItemViewHolder.$$a int r6 = r6 * 2 int r1 = 1 - r6 int r8 = r8 + 66 byte[] r1 = new byte[r1] r2 = 0 int r6 = 0 - r6 if (r0 != 0) goto L15 r3 = r6 r8 = r7 r4 = r2 goto L2c L15: r3 = r2 r5 = r8 r8 = r7 r7 = r5 L19: byte r4 = (byte) r7 r1[r3] = r4 int r8 = r8 + 1 int r4 = r3 + 1 if (r3 != r6) goto L2a java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L2a: r3 = r0[r8] L2c: int r7 = r7 + r3 r3 = r4 goto L19 */ throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.adapter.loan.SmeLoanDetailLgItemAdapter.GroupItemViewHolder.j(short, byte, byte, java.lang.Object[]):void"); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ GroupItemViewHolder(SmeLoanDetailLgItemAdapter smeLoanDetailLgItemAdapter, View view, View.OnClickListener onClickListener) { super(view); this.b = smeLoanDetailLgItemAdapter; ButterKnife.c(this, view); this.container.setOnClickListener(onClickListener); } private static void f(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) { int i7 = $10 + 67; $11 = i7 % 128; int i8 = 58224; if (i7 % i4 == 0) { cArr3[i6] = cArr[jtb.b]; cArr3[1] = cArr[jtb.b]; } else { cArr3[i6] = cArr[jtb.b]; cArr3[1] = cArr[jtb.b + 1]; } int i9 = i6; while (i9 < 16) { int i10 = $11 + 105; $10 = i10 % 128; int i11 = i10 % i4; char c = cArr3[1]; char c2 = cArr3[i6]; int i12 = (c2 + i8) ^ ((c2 << 4) + ((char) (a ^ 41718355337583039L))); int i13 = c2 >>> 5; try { Object[] objArr2 = new Object[4]; objArr2[3] = Integer.valueOf(h); objArr2[i4] = Integer.valueOf(i13); objArr2[1] = Integer.valueOf(i12); objArr2[i6] = Integer.valueOf(c); Object obj = xzZ.y.get(597144044); if (obj == null) { Class cls = (Class) xzZ.c((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)) + 412, TextUtils.indexOf((CharSequence) "", '0') + 6, (char) ((-1) - TextUtils.indexOf((CharSequence) "", '0', i6))); byte b = (byte) i6; byte b2 = (byte) (b - 1); Object[] objArr3 = new Object[1]; j(b, b2, (byte) (b2 + 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 + i8) ^ ((charValue << 4) + ((char) (d ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(e)}; Object obj2 = xzZ.y.get(597144044); if (obj2 == null) { Class cls2 = (Class) xzZ.c(KeyEvent.keyCodeFromString("") + 412, 5 - (KeyEvent.getMaxKeyCode() >> 16), (char) View.MeasureSpec.getSize(0)); byte b3 = (byte) 0; byte b4 = (byte) (b3 - 1); Object[] objArr5 = new Object[1]; j(b3, b4, (byte) (b4 + 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(); i8 -= 40503; i9++; 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(TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 99, TextUtils.lastIndexOf("", '0') + 6, (char) Color.blue(0)); byte b5 = (byte) 0; byte b6 = (byte) (b5 - 1); Object[] objArr7 = new Object[1]; j(b5, b6, (byte) (-b6), 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); } final void b(int i2) { int i3 = 2 % 2; int i4 = g + 53; i = i4 % 128; int i5 = i4 % 2; C0395Fp c0395Fp = (C0395Fp) this.b.c.get(i2); this.textTitle.setText(c0395Fp.e); this.textTimestamp.setText(c0395Fp.h); Object[] objArr = new Object[1]; f(new char[]{62195, 17733}, (ViewConfiguration.getEdgeSlop() >> 16) + 1, objArr); if (((String) objArr[0]).intern().equals(c0395Fp.d)) { this.textClaimedStatus.setVisibility(0); } else { this.textClaimedStatus.setVisibility(8); int i6 = g + 89; i = i6 % 128; int i7 = i6 % 2; } this.itemView.setClickable(true); this.expandIcon.setVisibility(0); this.textAmount.setText(c0395Fp.f); d(); } private void d() { int i2; int i3 = 2 % 2; int i4 = i + 39; g = i4 % 128; if (i4 % 2 != 0) { int i5 = this.c.b; throw null; } int i6 = this.c.b; if ((Integer.MIN_VALUE & i6) != 0) { int i7 = i + 103; int i8 = i7 % 128; g = i8; if (i7 % 2 == 0 ? (i6 & 4) == 0 : (i6 & 3) == 0) { i2 = R.drawable.ic_expand_more_black_24dp; } else { int i9 = i8 + 51; i = i9 % 128; int i10 = i9 % 2; i2 = R.drawable.ic_expand_less_black_24dp; } this.expandIcon.setImageResource(i2); } } } /* loaded from: classes5.dex */ class ChildViewHolder extends AbstractC5347brN { View a; final SmeLoanDetailLgItemAdapter b; @BindView LinearLayout layoutClaimed; @BindView LinearLayout layoutClaimedList; @BindView TextView textIssuedDebitAccountValue; @BindView TextView textIssuedDocumentNoValue; @BindView TextView textIssuedFeeRateValue; @BindView TextView textIssuedNextFeeAmountValue; @BindView TextView textIssuedStartDateValue; @BindView TextView textIssuedTypeValue; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ ChildViewHolder(SmeLoanDetailLgItemAdapter smeLoanDetailLgItemAdapter, View view) { super(view); this.b = smeLoanDetailLgItemAdapter; ButterKnife.c(this, view); this.a = view; } } /* loaded from: classes5.dex */ class ClaimedItemViewHolder extends LinearLayout { private SmeLoanDetailLgItemAdapter a; @BindView TextView textClaimedAmountValue; @BindView TextView textClaimedDateValue; @BindView TextView textClaimedInterestAmountValue; @BindView TextView textClaimedInterestRateValue; @BindView View viewSeparator; /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public ClaimedItemViewHolder(SmeLoanDetailLgItemAdapter smeLoanDetailLgItemAdapter, Context context) { super(context); this.a = smeLoanDetailLgItemAdapter; setOrientation(1); LayoutInflater.from(context).inflate(R.layout.2131559235, (ViewGroup) this, true); ButterKnife.c(this); } public final ClaimedItemViewHolder b(C0388Fl c0388Fl) { this.textClaimedAmountValue.setText(c0388Fl.d); this.textClaimedDateValue.setText(c0388Fl.c); this.textClaimedInterestAmountValue.setText(c0388Fl.e); this.textClaimedInterestRateValue.setText(c0388Fl.b); return this; } } }