what-the-bank/sources/com/scb/phone/view/fragment/mailingaddress/MailingAddressLandingFragme...

1156 lines
38 KiB
Java

package com.scb.phone.view.fragment.mailingaddress;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.activity.cardx.CardXGetStartWebViewActivity;
import com.scb.phone.view.activity.mailingaddress.MailingAddressDetailsActivity;
import com.scb.phone.view.fragment.BaseFragment;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import net.sf.scuba.smartcards.ISO7816;
import o.AbstractC14961gcz;
import o.C0927Rs;
import o.C12344ewT;
import o.C14866gag;
import o.C14957gcv;
import o.C15715hv;
import o.C15962jw;
import o.C17539xd;
import o.C4162bRw;
import o.C4164bRy;
import o.C4664beT;
import o.C4750bg;
import o.C5015bl;
import o.InterfaceC13391fZD;
import o.InterfaceC13393fZL;
import o.InterfaceC14890gbN;
import o.InterfaceC9446djr;
import o.Kmx;
import o.QGX;
import o.RB;
import o.RF;
import o.UV;
import o.ZI;
import o.fZZ;
import o.gdZ;
import o.xzZ;
import o.zUI;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes5.dex */
public final class MailingAddressLandingFragment extends Hilt_MailingAddressLandingFragment implements InterfaceC9446djr {
public static final LWm c;
private static int g;
private static int h;
@BindView
public LinearLayout cardXSection;
@BindView
public Button changeAddressButton;
private final InterfaceC13393fZL d;
@BindView
public LinearLayout goToCardXButton;
private C12344ewT i;
private final IeS j;
@BindView
public LinearLayout layoutAccountList;
@BindView
public LinearLayout layoutEmptyAccount;
@BindView
public LinearLayout llLayoutCardXHeader;
@BindView
public LinearLayout mailingAddressFooter;
@InterfaceC13391fZD
public C4162bRw presenter;
@BindView
public RecyclerView recyclerView;
@BindView
public TextView tvCardXDescription;
@BindView
public TextView tvCardXHeader;
private static final byte[] $$a = {104, ISO7816.INS_READ_BINARY2, -113, -112};
private static final int $$b = 22;
private static int $10 = 0;
private static int $11 = 1;
private static int f = 1;
public static /* synthetic */ Object a(Object[] objArr, int i, int i2, int i3) {
int i4 = ~i2;
int i5 = ~i;
int i6 = ~i3;
int i7 = (i * 495) + (i2 * (-493)) + ((i | i4) * (-988)) + ((i2 | i5 | i6) * 494) + (((~(i | i2)) | (~(i6 | i2)) | (~(i4 | i5))) * 494);
if (i7 == 1) {
return c(objArr);
}
if (i7 != 2) {
return i7 != 3 ? i7 != 4 ? d(objArr) : b(objArr) : e(objArr);
}
MailingAddressLandingFragment mailingAddressLandingFragment = (MailingAddressLandingFragment) objArr[0];
int i8 = 2 % 2;
int i9 = f + 25;
h = i9 % 128;
mailingAddressLandingFragment.avD_().setVisibility(i9 % 2 != 0 ? 54 : 8);
return null;
}
/* 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:0x0029). 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 n(int r5, int r6, short r7, java.lang.Object[] r8) {
/*
int r5 = r5 * 7
int r5 = 76 - r5
int r7 = r7 * 2
int r0 = r7 + 1
int r6 = r6 * 2
int r6 = 4 - r6
byte[] r1 = com.scb.phone.view.fragment.mailingaddress.MailingAddressLandingFragment.$$a
byte[] r0 = new byte[r0]
r2 = 0
if (r1 != 0) goto L17
r4 = r5
r5 = r7
r3 = r2
goto L29
L17:
r3 = r2
L18:
byte r4 = (byte) r5
r0[r3] = r4
if (r3 != r7) goto L25
java.lang.String r5 = new java.lang.String
r5.<init>(r0, r2)
r8[r2] = r5
return
L25:
r4 = r1[r6]
int r3 = r3 + 1
L29:
int r5 = r5 + r4
int r6 = r6 + 1
goto L18
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.mailingaddress.MailingAddressLandingFragment.n(int, int, short, java.lang.Object[]):void");
}
public MailingAddressLandingFragment() {
HBt hBt = HBt.d;
C14957gcv.e(hBt, "");
this.d = new fZZ(hBt);
this.j = new IeS(this);
}
/* loaded from: classes5.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
private static /* synthetic */ Object e(Object[] objArr) {
int i = 2 % 2;
C4162bRw c4162bRw = ((MailingAddressLandingFragment) objArr[0]).presenter;
if (c4162bRw == null) {
C14957gcv.a("");
return null;
}
int i2 = h + 23;
int i3 = i2 % 128;
f = i3;
if (i2 % 2 == 0) {
int i4 = 23 / 0;
}
int i5 = i3 + 61;
h = i5 % 128;
int i6 = i5 % 2;
return c4162bRw;
}
private RecyclerView r() {
int i = 2 % 2;
int i2 = h + 13;
int i3 = i2 % 128;
f = i3;
int i4 = i2 % 2;
RecyclerView recyclerView = this.recyclerView;
if (recyclerView == null) {
C14957gcv.a("");
return null;
}
int i5 = i3 + 45;
int i6 = i5 % 128;
h = i6;
int i7 = i5 % 2;
int i8 = i6 + 93;
f = i8 % 128;
int i9 = i8 % 2;
return recyclerView;
}
private static /* synthetic */ Object d(Object[] objArr) {
MailingAddressLandingFragment mailingAddressLandingFragment = (MailingAddressLandingFragment) objArr[0];
int i = 2 % 2;
int i2 = f;
int i3 = i2 + 1;
h = i3 % 128;
Object obj = null;
if (i3 % 2 != 0) {
LinearLayout linearLayout = mailingAddressLandingFragment.layoutEmptyAccount;
obj.hashCode();
throw null;
}
LinearLayout linearLayout2 = mailingAddressLandingFragment.layoutEmptyAccount;
if (linearLayout2 == null) {
C14957gcv.a("");
return null;
}
int i4 = i2 + 45;
h = i4 % 128;
int i5 = i4 % 2;
return linearLayout2;
}
private Button avA_() {
int i = 2 % 2;
int i2 = h + 111;
int i3 = i2 % 128;
f = i3;
int i4 = i2 % 2;
Button button = this.changeAddressButton;
if (button == null) {
C14957gcv.a("");
return null;
}
int i5 = i3 + 107;
h = i5 % 128;
int i6 = i5 % 2;
return button;
}
private LinearLayout avB_() {
int i = 2 % 2;
LinearLayout linearLayout = this.layoutAccountList;
if (linearLayout != null) {
int i2 = h + 55;
f = i2 % 128;
if (i2 % 2 == 0) {
int i3 = 51 / 0;
}
return linearLayout;
}
C14957gcv.a("");
int i4 = f + 7;
h = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 76 / 0;
}
return null;
}
private LinearLayout avD_() {
int i = 2 % 2;
int i2 = f + 5;
int i3 = i2 % 128;
h = i3;
int i4 = i2 % 2;
LinearLayout linearLayout = this.llLayoutCardXHeader;
if (linearLayout != null) {
int i5 = i3 + 59;
f = i5 % 128;
if (i5 % 2 != 0) {
return linearLayout;
}
throw null;
}
C14957gcv.a("");
int i6 = f + 69;
h = i6 % 128;
if (i6 % 2 != 0) {
int i7 = 45 / 0;
}
return null;
}
private static /* synthetic */ Object c(Object[] objArr) {
MailingAddressLandingFragment mailingAddressLandingFragment = (MailingAddressLandingFragment) objArr[0];
int i = 2 % 2;
int i2 = f + 113;
int i3 = i2 % 128;
h = i3;
int i4 = i2 % 2;
TextView textView = mailingAddressLandingFragment.tvCardXDescription;
if (textView == null) {
C14957gcv.a("");
return null;
}
int i5 = i3 + 109;
f = i5 % 128;
if (i5 % 2 != 0) {
return textView;
}
throw null;
}
private TextView avG_() {
int i = 2 % 2;
int i2 = f + 15;
h = i2 % 128;
int i3 = i2 % 2;
TextView textView = this.tvCardXHeader;
if (textView != null) {
return textView;
}
C14957gcv.a("");
int i4 = f + 9;
h = i4 % 128;
int i5 = i4 % 2;
return null;
}
private LinearLayout avz_() {
int i = 2 % 2;
LinearLayout linearLayout = this.cardXSection;
if (linearLayout != null) {
int i2 = f + 101;
h = i2 % 128;
int i3 = i2 % 2;
return linearLayout;
}
C14957gcv.a("");
int i4 = f + 1;
h = i4 % 128;
int i5 = i4 % 2;
return null;
}
private LinearLayout avE_() {
int i = 2 % 2;
int i2 = h + 19;
f = i2 % 128;
int i3 = i2 % 2;
LinearLayout linearLayout = this.mailingAddressFooter;
if (linearLayout != null) {
return linearLayout;
}
C14957gcv.a("");
int i4 = f + 101;
h = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 37 / 0;
}
return null;
}
private final Kmx h() {
int i = 2 % 2;
int i2 = h + 27;
f = i2 % 128;
int i3 = i2 % 2;
Kmx kmx = (Kmx) this.d.e();
int i4 = f + 99;
h = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 86 / 0;
}
return kmx;
}
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
int i = 2 % 2;
int i2 = f + 19;
h = i2 % 128;
int i3 = i2 % 2;
C14957gcv.e(layoutInflater, "");
View inflate = layoutInflater.inflate(R.layout.2131559748, viewGroup, false);
((BaseFragment) this).a = ButterKnife.c(this, inflate);
int i4 = h + 19;
f = i4 % 128;
int i5 = i4 % 2;
return inflate;
}
@Override // androidx.fragment.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
int i = 2 % 2;
int i2 = h + 107;
f = i2 % 128;
if (i2 % 2 != 0) {
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
((C4162bRw) a(new Object[]{this}, 184470108, -184470105, System.identityHashCode(this))).e((C4162bRw) this);
j();
((C4162bRw) a(new Object[]{this}, 184470108, -184470105, System.identityHashCode(this))).d();
return;
}
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
((C4162bRw) a(new Object[]{this}, 184470108, -184470105, System.identityHashCode(this))).e((C4162bRw) this);
j();
((C4162bRw) a(new Object[]{this}, 184470108, -184470105, System.identityHashCode(this))).d();
throw null;
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onDestroy() {
int i = 2 % 2;
int i2 = h + 63;
f = i2 % 128;
if (i2 % 2 != 0) {
super.onDestroy();
((C4162bRw) a(new Object[]{this}, 184470108, -184470105, System.identityHashCode(this))).w_();
} else {
super.onDestroy();
((C4162bRw) a(new Object[]{this}, 184470108, -184470105, System.identityHashCode(this))).w_();
throw null;
}
}
@Override // o.InterfaceC9446djr
public final void b(RB rb) {
int i = 2 % 2;
int i2 = h + 19;
f = i2 % 128;
int i3 = i2 % 2;
C14957gcv.e(rb, "");
h().e("change_mailing_address");
h().d("number_of_creditcard_speedycash_shown", String.valueOf(rb.d.size()));
h().d("number_of_debit_card_shown", String.valueOf(rb.b.size()));
h().d("number_of_prepaid_card_shown", String.valueOf(rb.i.size()));
h().d("number_of_deposit_shown", String.valueOf(rb.a.size()));
h().d("number_of_loan_shown", String.valueOf(rb.e.size()));
Kmx h2 = h();
if (getActivity() != null) {
int i4 = h + 41;
f = i4 % 128;
if (i4 % 2 != 0) {
h2.c(((BaseActivity) getActivity()).scbAnalytics, "change_mailing_address_landing");
} else {
h2.c(((BaseActivity) getActivity()).scbAnalytics, "change_mailing_address_landing");
int i5 = 50 / 0;
}
}
}
/* JADX WARN: Code restructure failed: missing block: B:8:0x0087, code lost:
if (r3 == null) goto L11;
*/
@Override // o.InterfaceC9446djr
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void c(o.C5015bl r10) {
/*
Method dump skipped, instructions count: 291
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.mailingaddress.MailingAddressLandingFragment.c(o.bl):void");
}
private static void m(int i, int i2, int i3, char[] cArr, boolean z, Object[] objArr) {
char[] cArr2;
int i4 = 2 % 2;
zUI zui = new zUI();
char[] cArr3 = new char[i];
zui.d = 0;
while (zui.d < i) {
zui.c = cArr[zui.d];
cArr3[zui.d] = (char) (i3 + zui.c);
int i5 = zui.d;
try {
Object[] objArr2 = {Integer.valueOf(cArr3[i5]), Integer.valueOf(g)};
Object obj = xzZ.y.get(880493502);
if (obj == null) {
Class cls = (Class) xzZ.c(View.resolveSize(0, 0) + CipherSuite.TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA, (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 6, (char) Color.red(0));
byte b = (byte) 1;
byte b2 = (byte) (b - 1);
Object[] objArr3 = new Object[1];
n(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE);
xzZ.y.put(880493502, obj);
}
cArr3[i5] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
Object[] objArr4 = {zui, zui};
Object obj2 = xzZ.y.get(1294990079);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 342, TextUtils.lastIndexOf("", '0', 0, 0) + 6, (char) (1 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1))));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
n(b3, b4, b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(1294990079, obj2);
}
((Method) obj2).invoke(null, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
if (i2 > 0) {
int i6 = $11 + 69;
$10 = i6 % 128;
int i7 = i6 % 2;
zui.a = i2;
char[] cArr4 = new char[i];
System.arraycopy(cArr3, 0, cArr4, 0, i);
System.arraycopy(cArr4, 0, cArr3, i - zui.a, zui.a);
System.arraycopy(cArr4, zui.a, cArr3, 0, i - zui.a);
}
if (z) {
int i8 = $10 + 7;
$11 = i8 % 128;
if (i8 % 2 == 0) {
cArr2 = new char[i];
zui.d = 1;
} else {
cArr2 = new char[i];
zui.d = 0;
}
while (zui.d < i) {
int i9 = $11 + 23;
$10 = i9 % 128;
int i10 = i9 % 2;
cArr2[zui.d] = cArr3[(i - zui.d) - 1];
Object[] objArr6 = {zui, zui};
Object obj3 = xzZ.y.get(1294990079);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(343 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), View.MeasureSpec.makeMeasureSpec(0, 0) + 5, (char) Drawable.resolveOpacity(0, 0));
byte b5 = (byte) 0;
byte b6 = b5;
Object[] objArr7 = new Object[1];
n(b5, b6, b6, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1294990079, obj3);
}
((Method) obj3).invoke(null, objArr6);
}
cArr3 = cArr2;
}
objArr[0] = new String(cArr3);
}
private final void j() {
int i = 2 % 2;
C12344ewT c12344ewT = new C12344ewT((byte) 0);
this.i = c12344ewT;
c12344ewT.a = this.j;
RecyclerView r = r();
getContext();
r.setLayoutManager(new LinearLayoutManager());
r().setAdapter(this.i);
r().setNestedScrollingEnabled(false);
r().setHasFixedSize(false);
int i2 = h + 23;
f = i2 % 128;
int i3 = i2 % 2;
}
@Override // o.InterfaceC9446djr
public final void c(List<? extends UV> list) {
int i = 2 % 2;
int i2 = f + 53;
h = i2 % 128;
int i3 = i2 % 2;
C14957gcv.e(list, "");
((LinearLayout) a(new Object[]{this}, -325426343, 325426343, System.identityHashCode(this))).setVisibility(8);
avB_().setVisibility(0);
C12344ewT c12344ewT = this.i;
if (c12344ewT != null) {
c12344ewT.e(list);
int i4 = h + 97;
f = i4 % 128;
int i5 = i4 % 2;
}
}
/* JADX WARN: Code restructure failed: missing block: B:11:0x003e, code lost:
if (r1 < r2.d.size()) goto L13;
*/
/* JADX WARN: Code restructure failed: missing block: B:8:0x0035, code lost:
if (r1 < r2.d.size()) goto L13;
*/
/* JADX WARN: Code restructure failed: missing block: B:9:0x0040, code lost:
r2.d.set(r1, r6);
*/
@Override // o.InterfaceC9446djr
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void d(o.UV r6) {
/*
r5 = this;
r0 = 2
int r1 = r0 % r0
java.lang.String r1 = ""
o.C14957gcv.e(r6, r1)
o.ewT r2 = r5.i
if (r2 == 0) goto L48
int r3 = com.scb.phone.view.fragment.mailingaddress.MailingAddressLandingFragment.f
int r3 = r3 + 9
int r4 = r3 % 128
com.scb.phone.view.fragment.mailingaddress.MailingAddressLandingFragment.h = r4
int r3 = r3 % r0
o.C14957gcv.e(r6, r1)
java.util.List<o.UV> r1 = r2.d
int r1 = r1.indexOf(r6)
if (r1 < 0) goto L45
int r3 = com.scb.phone.view.fragment.mailingaddress.MailingAddressLandingFragment.f
int r3 = r3 + 5
int r4 = r3 % 128
com.scb.phone.view.fragment.mailingaddress.MailingAddressLandingFragment.h = r4
int r3 = r3 % r0
if (r3 == 0) goto L38
java.util.List<o.UV> r3 = r2.d
int r3 = r3.size()
r4 = 91
int r4 = r4 / 0
if (r1 >= r3) goto L45
goto L40
L38:
java.util.List<o.UV> r3 = r2.d
int r3 = r3.size()
if (r1 >= r3) goto L45
L40:
java.util.List<o.UV> r3 = r2.d
r3.set(r1, r6)
L45:
r2.notifyItemChanged(r1)
L48:
int r6 = com.scb.phone.view.fragment.mailingaddress.MailingAddressLandingFragment.f
int r6 = r6 + 61
int r1 = r6 % 128
com.scb.phone.view.fragment.mailingaddress.MailingAddressLandingFragment.h = r1
int r6 = r6 % r0
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.mailingaddress.MailingAddressLandingFragment.d(o.UV):void");
}
@Override // o.InterfaceC9446djr
public final void c() {
int i = 2 % 2;
int i2 = h + 11;
f = i2 % 128;
int i3 = i2 % 2;
((LinearLayout) a(new Object[]{this}, -325426343, 325426343, System.identityHashCode(this))).setVisibility(0);
avB_().setVisibility(8);
int i4 = f + 99;
h = i4 % 128;
int i5 = i4 % 2;
}
private static /* synthetic */ Object b(Object[] objArr) {
MailingAddressLandingFragment mailingAddressLandingFragment = (MailingAddressLandingFragment) objArr[0];
boolean booleanValue = ((Boolean) objArr[1]).booleanValue();
int i = 2 % 2;
int i2 = f + 5;
h = i2 % 128;
int i3 = i2 % 2;
Object obj = null;
mailingAddressLandingFragment.avA_().setEnabled(booleanValue);
if (i3 != 0) {
obj.hashCode();
throw null;
}
int i4 = h + 69;
f = i4 % 128;
int i5 = i4 % 2;
return null;
}
@Override // o.InterfaceC9446djr
public final void e(String str, String str2) {
int i = 2 % 2;
int i2 = f + 13;
h = i2 % 128;
int i3 = i2 % 2;
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
avG_().setText(str);
((TextView) a(new Object[]{this}, -1389124290, 1389124291, System.identityHashCode(this))).setText(str2);
avz_().setVisibility(0);
avB_().setVisibility(0);
int i4 = h + 23;
f = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.InterfaceC9446djr
public final void b() {
int i = 2 % 2;
int i2 = h + 93;
f = i2 % 128;
int i3 = i2 % 2;
avz_().setVisibility(8);
int i4 = f + 87;
h = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.InterfaceC9446djr
public final void a() {
int i = 2 % 2;
int i2 = f + 99;
h = i2 % 128;
avE_().setVisibility(i2 % 2 != 0 ? 1 : 0);
}
@Override // o.InterfaceC9446djr
public final void d() {
LinearLayout avE_;
int i;
int i2 = 2 % 2;
int i3 = f + 35;
h = i3 % 128;
if (i3 % 2 != 0) {
avE_ = avE_();
i = 20;
} else {
avE_ = avE_();
i = 8;
}
avE_.setVisibility(i);
int i4 = f + 87;
h = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.InterfaceC9446djr
public final void i() {
int i = 2 % 2;
int i2 = f + 43;
h = i2 % 128;
int i3 = i2 % 2;
avD_().setVisibility(0);
int i4 = f + 101;
h = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.InterfaceC9446djr
public final void b(String str, String str2) {
int i = 2 % 2;
int i2 = f + 91;
h = i2 % 128;
if (i2 % 2 != 0) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
getContext();
throw null;
}
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
Context context = getContext();
if (context != null) {
int i3 = h + 93;
f = i3 % 128;
int i4 = i3 % 2;
CardXGetStartWebViewActivity.LWm lWm = CardXGetStartWebViewActivity.b;
startActivity(CardXGetStartWebViewActivity.LWm.ZG_(context, str, str2));
int i5 = h + 115;
f = i5 % 128;
int i6 = i5 % 2;
}
}
@OnClick
public final void goToCardXAppClick() {
C14866gag c14866gag;
int i = 2 % 2;
v("change_mailing_address_cardxdeeplink");
final C4162bRw c4162bRw = (C4162bRw) a(new Object[]{this}, 184470108, -184470105, System.identityHashCode(this));
String str = c4162bRw.b.a().a.b;
if (str != null) {
if (!gdZ.d((CharSequence) str)) {
final String k = c4162bRw.e.k(str);
ZI.IeS ieS = new ZI.IeS(k, c4162bRw) { // from class: o.bRB
private String d;
private C4162bRw e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C4162bRw.b(this.d, this.e, (InterfaceC9446djr) obj);
}
{
this.d = k;
this.e = c4162bRw;
}
};
boolean z = false;
if (c4162bRw.f != 0) {
int i2 = f + 101;
h = i2 % 128;
z = i2 % 2 == 0;
}
if (z) {
ieS.e(c4162bRw.f);
}
} else {
c4162bRw.c(C15715hv.tOB.error_generic_resource);
}
c14866gag = C14866gag.c;
} else {
int i3 = f + 21;
h = i3 % 128;
int i4 = i3 % 2;
c14866gag = null;
}
if (c14866gag == null) {
c4162bRw.c(C15715hv.tOB.error_generic_resource);
}
}
@OnClick
public final void changeMailingAddress() {
int i = 2 % 2;
C4162bRw c4162bRw = (C4162bRw) a(new Object[]{this}, 184470108, -184470105, System.identityHashCode(this));
if (c4162bRw.f != 0) {
int i2 = h;
int i3 = i2 + 105;
f = i3 % 128;
if (i3 % 2 != 0) {
int i4 = i2 + 81;
f = i4 % 128;
if (i4 % 2 == 0) {
c4162bRw.f.y();
int i5 = 67 / 0;
} else {
c4162bRw.f.y();
}
}
}
C17539xd c17539xd = c4162bRw.d;
List<C4750bg> b = C17539xd.b(c4162bRw.c, 3);
C17539xd c17539xd2 = c4162bRw.d;
List<C4750bg> b2 = C17539xd.b(c4162bRw.c, 5);
C17539xd c17539xd3 = c4162bRw.d;
List<C4750bg> b3 = C17539xd.b(c4162bRw.c, 14);
C17539xd c17539xd4 = c4162bRw.d;
List<C4750bg> b4 = C17539xd.b(c4162bRw.c, 15);
C17539xd c17539xd5 = c4162bRw.d;
final C5015bl c5015bl = new C5015bl(b, b2, b3, b4, C17539xd.b(c4162bRw.c, 2));
ZI.IeS ieS = new ZI.IeS(c5015bl) { // from class: o.bRz
private C5015bl d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C4162bRw.c(this.d, (InterfaceC9446djr) obj);
}
{
this.d = c5015bl;
}
};
if (c4162bRw.f != 0) {
ieS.e(c4162bRw.f);
int i6 = f + 13;
h = i6 % 128;
int i7 = i6 % 2;
}
C15962jw c15962jw = c4162bRw.a;
C4162bRw.HBt hBt = new C4162bRw.HBt(c4162bRw);
C4162bRw.Sts sts = new C4162bRw.Sts(c4162bRw);
C14957gcv.e(c5015bl, "");
C14957gcv.e(hBt, "");
C14957gcv.e(sts, "");
c15962jw.b(c15962jw.h, hBt, sts, new C4664beT.LWm(c5015bl));
}
/* loaded from: classes5.dex */
public static final class IeS implements C12344ewT.LWm {
private MailingAddressLandingFragment e;
IeS(MailingAddressLandingFragment mailingAddressLandingFragment) {
this.e = mailingAddressLandingFragment;
}
@Override // o.C12344ewT.LWm
public final void c(RF rf, boolean z) {
C14957gcv.e(rf, "");
MailingAddressLandingFragment mailingAddressLandingFragment = this.e;
C4162bRw c4162bRw = (C4162bRw) MailingAddressLandingFragment.a(new Object[]{mailingAddressLandingFragment}, 184470108, -184470105, System.identityHashCode(mailingAddressLandingFragment));
C14957gcv.e(rf, "");
rf.d = z;
final List<? extends UV> list = c4162bRw.c;
if (list != null) {
for (UV uv : list) {
C0927Rs c0927Rs = uv instanceof C0927Rs ? (C0927Rs) uv : null;
if (c0927Rs != null) {
c0927Rs.m = z;
}
}
C4164bRy c4164bRy = new C4164bRy(z);
if (c4162bRw.f != 0) {
c4164bRy.e(c4162bRw.f);
}
ZI.IeS ieS = new ZI.IeS(list) { // from class: o.bRG
private List d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C4162bRw.a(this.d, (InterfaceC9446djr) obj);
}
{
this.d = list;
}
};
if (c4162bRw.f != 0) {
ieS.e(c4162bRw.f);
}
}
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r5v5 */
/* JADX WARN: Type inference failed for: r5v6 */
/* JADX WARN: Type inference failed for: r5v7, types: [java.lang.Object] */
@Override // o.C12344ewT.LWm
public final void b(C0927Rs c0927Rs, boolean z) {
Object obj;
RF rf;
C14957gcv.e(c0927Rs, "");
MailingAddressLandingFragment mailingAddressLandingFragment = this.e;
C4162bRw c4162bRw = (C4162bRw) MailingAddressLandingFragment.a(new Object[]{mailingAddressLandingFragment}, 184470108, -184470105, System.identityHashCode(mailingAddressLandingFragment));
C14957gcv.e(c0927Rs, "");
List<? extends UV> list = c4162bRw.c;
if (list != null) {
List<? extends UV> list2 = list;
Iterator it = list2.iterator();
while (true) {
if (it.hasNext()) {
obj = it.next();
if (C14957gcv.b((UV) obj, c0927Rs)) {
break;
}
} else {
obj = null;
break;
}
}
final C0927Rs c0927Rs2 = obj instanceof C0927Rs ? (C0927Rs) obj : null;
if (c0927Rs2 != null) {
c0927Rs2.m = z;
ZI.IeS ieS = new ZI.IeS(c0927Rs2) { // from class: o.bRC
private C0927Rs c;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C4162bRw.d(this.c, (InterfaceC9446djr) obj2);
}
{
this.c = c0927Rs2;
}
};
if (c4162bRw.f != null) {
ieS.e(c4162bRw.f);
}
}
ArrayList arrayList = new ArrayList();
for (Object obj2 : list2) {
if (obj2 instanceof C0927Rs) {
arrayList.add(obj2);
}
}
Iterator it2 = arrayList.iterator();
int i = 0;
int i2 = 0;
while (it2.hasNext()) {
i2++;
if (((C0927Rs) it2.next()).m) {
i++;
}
}
C4164bRy c4164bRy = new C4164bRy(i > 0);
if (c4162bRw.f != null) {
c4164bRy.e(c4162bRw.f);
}
Iterator it3 = list2.iterator();
while (true) {
if (it3.hasNext()) {
rf = it3.next();
if (((UV) rf) instanceof RF) {
break;
}
} else {
rf = 0;
break;
}
}
final RF rf2 = rf instanceof RF ? rf : null;
if (rf2 != null) {
rf2.d = i >= i2;
ZI.IeS ieS2 = new ZI.IeS(rf2) { // from class: o.bRA
private RF e;
@Override // o.ZI.IeS
public final void e(Object obj3) {
C4162bRw.b(this.e, (InterfaceC9446djr) obj3);
}
{
this.e = rf2;
}
};
if (c4162bRw.f != null) {
ieS2.e(c4162bRw.f);
}
}
}
}
@Override // o.C12344ewT.LWm
public final void d() {
MailingAddressLandingFragment mailingAddressLandingFragment = this.e;
((C4162bRw) MailingAddressLandingFragment.a(new Object[]{mailingAddressLandingFragment}, 184470108, -184470105, System.identityHashCode(mailingAddressLandingFragment))).d();
}
@Override // o.C12344ewT.LWm
public final void e(C0927Rs c0927Rs) {
C14957gcv.e(c0927Rs, "");
MailingAddressLandingFragment mailingAddressLandingFragment = this.e;
C4162bRw c4162bRw = (C4162bRw) MailingAddressLandingFragment.a(new Object[]{mailingAddressLandingFragment}, 184470108, -184470105, System.identityHashCode(mailingAddressLandingFragment));
C14957gcv.e(c0927Rs, "");
C15962jw c15962jw = c4162bRw.a;
String str = c0927Rs.a;
if (str == null) {
str = "";
}
String str2 = c0927Rs.e;
String str3 = c0927Rs.h;
C4162bRw.IeS ieS = new C4162bRw.IeS(c4162bRw, c0927Rs);
C4162bRw.RVV rvv = new C4162bRw.RVV(c4162bRw, c0927Rs);
C14957gcv.e(str, "");
C14957gcv.e(ieS, "");
C14957gcv.e(rvv, "");
c15962jw.f.e(ieS, rvv, new QGX.LWm(str, str2, str3), c15962jw.a);
}
}
@Override // o.InterfaceC9446djr
public final void c(String str) {
int i = 2 % 2;
int i2 = f + 45;
h = i2 % 128;
int i3 = i2 % 2;
C14957gcv.e(str, "");
Context context = getContext();
if (context != null) {
MailingAddressDetailsActivity.RVV rvv = MailingAddressDetailsActivity.k;
C14957gcv.e(context, "");
C14957gcv.e(str, "");
Intent intent = new Intent(context, (Class<?>) MailingAddressDetailsActivity.class);
intent.putExtra("PARCELABLE_TOKEN_ID", str);
context.startActivity(intent);
int i4 = h + 25;
f = i4 % 128;
int i5 = i4 % 2;
}
}
/* loaded from: classes5.dex */
static final class HBt extends AbstractC14961gcz implements InterfaceC14890gbN<Kmx> {
public static final HBt d = new HBt();
@Override // o.InterfaceC14890gbN
public final /* synthetic */ Kmx invoke() {
return new Kmx();
}
HBt() {
super(0);
}
}
static void g() {
g = 2015661661;
}
@Override // o.InterfaceC9446djr
public final void d(boolean z) {
a(new Object[]{this, Boolean.valueOf(z)}, -688130061, 688130065, System.identityHashCode(this));
}
@Override // o.InterfaceC9446djr
public final void e() {
a(new Object[]{this}, 2110696172, -2110696170, System.identityHashCode(this));
}
private TextView avF_() {
return (TextView) a(new Object[]{this}, -1389124290, 1389124291, System.identityHashCode(this));
}
public final C4162bRw f() {
return (C4162bRw) a(new Object[]{this}, 184470108, -184470105, System.identityHashCode(this));
}
private LinearLayout avC_() {
return (LinearLayout) a(new Object[]{this}, -325426343, 325426343, System.identityHashCode(this));
}
static {
h = 0;
g();
c = new LWm((byte) 0);
int i = f + 101;
h = i % 128;
if (i % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
}