package com.scb.phone.view.custom.common; import android.content.Context; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.text.AndroidCharacter; import android.text.TextUtils; import android.util.AttributeSet; import android.view.Gravity; import android.view.LayoutInflater; import android.view.MotionEvent; 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 butterknife.BindView; import butterknife.ButterKnife; import com.google.common.base.Ascii; import com.scb.phone.R; import com.scb.phone.view.custom.common.CustomScheduleView; import java.lang.reflect.Method; import java.util.Locale; import o.C15715hv; import o.InterfaceC12851fIz; import o.VN; import o.cXG; import o.jTb; import o.xUo; import o.xzZ; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes5.dex */ public class CustomScheduleView extends LinearLayout { private InterfaceC12851fIz b; @BindView protected ImageView calendarIcon; private boolean e; @BindView protected ImageView editButton; @BindView protected TextView effectiveTitle; @BindView protected ImageView nextArrow; @BindView protected TextView schedueleTypeLine1; @BindView protected TextView schedueleTypeLine2; @BindView protected TextView scheduleTypeTextView; @BindView protected TextView title; private static final byte[] $$a = {4, 8, Ascii.DC4, -35}; private static final int $$b = CipherSuite.TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256; private static int $10 = 0; private static int $11 = 1; private static int g = 0; private static int j = 1; private static char c = 46811; private static char a = 18167; private static char d = 45041; private static char f = 206; /* JADX WARN: Removed duplicated region for block: B:10:0x0024 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001c */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x0026). Please report as a decompilation issue!!! */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static void i(int r5, int r6, byte r7, java.lang.Object[] r8) { /* int r7 = r7 * 4 int r7 = r7 + 4 int r5 = 67 - r5 int r6 = r6 * 4 int r6 = 1 - r6 byte[] r0 = com.scb.phone.view.custom.common.CustomScheduleView.$$a byte[] r1 = new byte[r6] r2 = 0 if (r0 != 0) goto L14 r4 = r6 r3 = r2 goto L26 L14: r3 = r2 L15: byte r4 = (byte) r5 r1[r3] = r4 int r3 = r3 + 1 if (r3 != r6) goto L24 java.lang.String r5 = new java.lang.String r5.(r1, r2) r8[r2] = r5 return L24: r4 = r0[r7] L26: int r5 = r5 + r4 int r7 = r7 + 1 goto L15 */ throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.custom.common.CustomScheduleView.i(int, int, byte, java.lang.Object[]):void"); } public CustomScheduleView(Context context) { this(context, null); } public CustomScheduleView(Context context, AttributeSet attributeSet) { this(context, attributeSet, 0); } public CustomScheduleView(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); setOrientation(1); LayoutInflater.from(getContext()).inflate(R.layout.2131559328, (ViewGroup) this, true); ButterKnife.c(this); if (attributeSet != null) { TypedArray obtainStyledAttributes = context.getTheme().obtainStyledAttributes(attributeSet, C15715hv.jbe.CustomScheduleView, 0, 0); try { this.e = obtainStyledAttributes.getBoolean(0, false); obtainStyledAttributes.recycle(); int i2 = g + 95; j = i2 % 128; int i3 = i2 % 2; int i4 = 2 % 2; } catch (Throwable th) { obtainStyledAttributes.recycle(); throw th; } } c(); int i5 = j + 23; g = i5 % 128; int i6 = i5 % 2; } private void c() { int i = 2 % 2; if (this.e) { this.calendarIcon.getLayoutParams().width = getResources().getDimensionPixelSize(R.dimen.f27842131166550); this.calendarIcon.getLayoutParams().height = getResources().getDimensionPixelSize(R.dimen.f27842131166550); d(); int i2 = j + 67; g = i2 % 128; int i3 = i2 % 2; } setOnClickListener(new View.OnClickListener(this) { // from class: o.eCf private CustomScheduleView c; @Override // android.view.View.OnClickListener public final void onClick(View view) { CustomScheduleView.b(this.c); } { this.c = this; } }); int i4 = j + 81; g = i4 % 128; int i5 = i4 % 2; } /* JADX INFO: Access modifiers changed from: private */ public static /* synthetic */ Object e(Object[] objArr) { CustomScheduleView customScheduleView = (CustomScheduleView) objArr[0]; int i = 2 % 2; int i2 = g; int i3 = i2 + 81; j = i3 % 128; Object obj = null; if (i3 % 2 == 0) { InterfaceC12851fIz interfaceC12851fIz = customScheduleView.b; obj.hashCode(); throw null; } InterfaceC12851fIz interfaceC12851fIz2 = customScheduleView.b; if (interfaceC12851fIz2 != null) { int i4 = i2 + 37; j = i4 % 128; int i5 = i4 % 2; interfaceC12851fIz2.r(); } return null; } public final void d() { int i = 2 % 2; int i2 = g + 5; j = i2 % 128; int i3 = i2 % 2; this.title.setVisibility(8); this.effectiveTitle.setVisibility(8); this.scheduleTypeTextView.setText(R.string.schedule_setup_001); this.schedueleTypeLine1.setVisibility(8); this.schedueleTypeLine2.setVisibility(8); this.nextArrow.setVisibility(0); this.editButton.setVisibility(8); int i4 = g + 111; j = i4 % 128; int i5 = i4 % 2; } private static void h(char[] cArr, int i, Object[] objArr) { int i2 = 2 % 2; jTb jtb = new jTb(); char[] cArr2 = new char[cArr.length]; jtb.b = 0; char[] cArr3 = new char[2]; int i3 = $11 + 45; $10 = i3 % 128; int i4 = i3 % 2; while (jtb.b < cArr.length) { int i5 = $11 + 7; $10 = i5 % 128; int i6 = i5 % 2; cArr3[0] = cArr[jtb.b]; cArr3[1] = cArr[jtb.b + 1]; int i7 = 58224; int i8 = 0; while (i8 < 16) { char c2 = cArr3[1]; char c3 = cArr3[0]; try { Object[] objArr2 = {Integer.valueOf(c2), Integer.valueOf((c3 + i7) ^ ((c3 << 4) + ((char) (d ^ 41718355337583039L)))), Integer.valueOf(c3 >>> 5), Integer.valueOf(f)}; Object obj = xzZ.y.get(597144044); if (obj == null) { Class cls = (Class) xzZ.c(411 - MotionEvent.axisFromString(""), 5 - Gravity.getAbsoluteGravity(0, 0), (char) (AndroidCharacter.getMirror('0') - '0')); byte b = (byte) 1; byte b2 = (byte) (b - 1); Object[] objArr3 = new Object[1]; i(b, b2, b2, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); xzZ.y.put(597144044, obj); } char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); cArr3[1] = charValue; Object[] objArr4 = {Integer.valueOf(cArr3[0]), Integer.valueOf((charValue + i7) ^ ((charValue << 4) + ((char) (c ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(a)}; Object obj2 = xzZ.y.get(597144044); if (obj2 == null) { Class cls2 = (Class) xzZ.c(412 - Drawable.resolveOpacity(0, 0), View.MeasureSpec.makeMeasureSpec(0, 0) + 5, (char) Color.argb(0, 0, 0, 0)); byte b3 = (byte) 1; byte b4 = (byte) (b3 - 1); Object[] objArr5 = new Object[1]; i(b3, b4, b4, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); xzZ.y.put(597144044, obj2); } cArr3[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue(); i7 -= 40503; i8++; int i9 = $11 + 59; $10 = i9 % 128; int i10 = i9 % 2; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } cArr2[jtb.b] = cArr3[0]; cArr2[jtb.b + 1] = cArr3[1]; Object[] objArr6 = {jtb, jtb}; Object obj3 = xzZ.y.get(943004485); if (obj3 == null) { Class cls3 = (Class) xzZ.c(TextUtils.lastIndexOf("", '0', 0) + 99, (ViewConfiguration.getJumpTapTimeout() >> 16) + 5, (char) (ViewConfiguration.getMaximumFlingVelocity() >> 16)); byte b5 = (byte) 0; byte b6 = b5; Object[] objArr7 = new Object[1]; i(b5, b6, b6, objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(943004485, obj3); } ((Method) obj3).invoke(null, objArr6); } objArr[0] = new String(cArr2, 0, i); } public void setOnceDateForTransactions(String str, boolean z) { int i = 2 % 2; int i2 = g + 43; j = i2 % 128; int i3 = 0; if (i2 % 2 != 0 ? z : z) { this.title.setVisibility(0); this.effectiveTitle.setVisibility(8); } else { this.title.setVisibility(8); this.effectiveTitle.setVisibility(0); } this.scheduleTypeTextView.setText(R.string.topup_input_005); this.schedueleTypeLine1.setVisibility(0); this.schedueleTypeLine1.setText(str); this.schedueleTypeLine2.setVisibility(8); ImageView imageView = this.editButton; if (!z) { int i4 = g + 33; j = i4 % 128; int i5 = i4 % 2; i3 = 8; } imageView.setVisibility(i3); this.nextArrow.setVisibility(8); int i6 = j + 123; g = i6 % 128; if (i6 % 2 == 0) { return; } Object obj = null; obj.hashCode(); throw null; } public void setMonthlyDate(String str, String str2, boolean z) { int i = 2 % 2; int i2 = g + 93; j = i2 % 128; int i3 = i2 % 2; if (z) { this.title.setVisibility(0); this.effectiveTitle.setVisibility(8); int i4 = g + 3; j = i4 % 128; int i5 = i4 % 2; } else { this.title.setVisibility(8); this.effectiveTitle.setVisibility(0); } this.scheduleTypeTextView.setText(R.string.topup_input_006); this.schedueleTypeLine1.setText(str); this.schedueleTypeLine2.setText(str2); this.schedueleTypeLine1.setVisibility(0); this.schedueleTypeLine2.setVisibility(0); this.editButton.setVisibility(!z ? 8 : 0); this.nextArrow.setVisibility(8); } private String c(int i) { int i2 = 2 % 2; StringBuilder sb = new StringBuilder(String.valueOf(i)); if (xUo.c().equals(new Locale("th"))) { int i3 = g + 7; j = i3 % 128; if (i3 % 2 != 0) { return getResources().getString(R.string.topup_input_007, sb); } Resources resources = getResources(); Object[] objArr = new Object[0]; objArr[1] = sb; return resources.getString(R.string.topup_input_007, objArr); } if (i >= 11 && i <= 13) { sb.append("th"); } else { int i4 = i % 10; if (i4 == 1) { sb.append("st"); int i5 = j + 113; g = i5 % 128; if (i5 % 2 != 0) { int i6 = 4 / 5; } } else if (i4 != 2) { int i7 = g; int i8 = i7 + 39; j = i8 % 128; if (i8 % 2 != 0 ? i4 == 3 : i4 == 3) { sb.append("rd"); } else { int i9 = i7 + 21; j = i9 % 128; if (i9 % 2 == 0) { sb.append("th"); Object obj = null; obj.hashCode(); throw null; } sb.append("th"); } } else { sb.append("nd"); } } return getResources().getString(R.string.topup_input_007, sb); } private String e(String str, String str2) { int i = 2 % 2; int i2 = g + 17; j = i2 % 128; int i3 = i2 % 2; String string = getResources().getString(R.string.topup_input_008, str, str2); int i4 = j + 73; g = i4 % 128; if (i4 % 2 == 0) { return string; } throw null; } public void setScheduleView(VN vn, boolean z) { String intern; int i = 2 % 2; Resources resources = getContext().getResources(); String str = vn.c; str.hashCode(); Object obj = null; if (!str.equals("M")) { if (!str.equals("O")) { return; } int i2 = j + 67; g = i2 % 128; if (i2 % 2 == 0) { setOnceDateForTransactions(cXG.VK_(resources, vn.b), z); return; } else { setOnceDateForTransactions(cXG.VK_(resources, vn.b), z); obj.hashCode(); throw null; } } if (vn.e != null) { int i3 = g + 39; j = i3 % 128; if (i3 % 2 == 0) { String str2 = vn.e; throw null; } intern = vn.e; } else { Object[] objArr = new Object[1]; h(new char[]{14401, 32380}, (ViewConfiguration.getPressedStateDuration() >> 16) + 1, objArr); intern = ((String) objArr[0]).intern(); } setMonthlyDate(c(Integer.parseInt(intern)), e(cXG.VK_(resources, vn.b), cXG.VK_(resources, vn.d)), z); } public void setScheduleView(String str, String str2) { int i = 2 % 2; int i2 = g + 29; j = i2 % 128; int i3 = i2 % 2; this.title.setVisibility(0); this.title.setText(R.string.topup_input_003); this.effectiveTitle.setVisibility(8); this.scheduleTypeTextView.setText(str); this.schedueleTypeLine1.setVisibility(0); this.schedueleTypeLine1.setText(str2); this.schedueleTypeLine2.setVisibility(8); this.editButton.setVisibility(8); this.nextArrow.setVisibility(0); int i4 = j + 113; g = i4 % 128; if (i4 % 2 != 0) { throw null; } } public void setOnEditClickListener(InterfaceC12851fIz interfaceC12851fIz) { int i = 2 % 2; int i2 = j; int i3 = i2 + 19; g = i3 % 128; int i4 = i3 % 2; this.b = interfaceC12851fIz; if (i4 != 0) { throw null; } int i5 = i2 + 85; g = i5 % 128; if (i5 % 2 != 0) { int i6 = 12 / 0; } } private /* synthetic */ void a() { System.identityHashCode(this); e(new Object[]{this}); } public static /* synthetic */ void b(CustomScheduleView customScheduleView) { int i = 2 % 2; int i2 = j + 47; g = i2 % 128; int i3 = i2 % 2; Object[] objArr = {customScheduleView}; System.identityHashCode(customScheduleView); e(objArr); int i4 = g + 39; j = i4 % 128; int i5 = i4 % 2; } }