package com.scb.phone.view.fragment.csent; import android.content.res.Resources; import android.os.Build; import android.os.Bundle; import android.os.Parcelable; import android.text.method.LinkMovementMethod; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.appcompat.widget.AppCompatButton; import androidx.appcompat.widget.AppCompatRadioButton; import androidx.constraintlayout.widget.ConstraintLayout; import androidx.core.widget.NestedScrollView; import androidx.fragment.app.FragmentActivity; import com.scb.phone.R; import com.scb.phone.view.activity.csent.PrivacyCSentWebViewActivity; import com.scb.phone.view.custom.webview.SCBWebView; import com.scb.phone.view.fragment.csent.CrossMatchConsentFragment; import o.AbstractC14961gcz; import o.C1343aBd; import o.C14866gag; import o.C14954gcs; import o.C14957gcv; import o.IF; import o.InterfaceC13391fZD; import o.InterfaceC13393fZL; import o.InterfaceC14890gbN; import o.InterfaceC9086ddA; import o.UNm; import o.ZI; import o.aAZ; import o.fKB; import o.fZZ; import o.qeC; /* loaded from: classes5.dex */ public final class CrossMatchConsentFragment extends Hilt_CrossMatchConsentFragment implements InterfaceC9086ddA { public static final Sts c = new Sts(0); private final InterfaceC13393fZL d; @InterfaceC13391fZD public aAZ presenter; public CrossMatchConsentFragment() { RVV rvv = new RVV(this); C14957gcv.e(rvv, ""); this.d = new fZZ(rvv); } /* loaded from: classes5.dex */ public static final class Sts { private Sts() { } public /* synthetic */ Sts(byte b) { this(); } } /* loaded from: classes5.dex */ static final class RVV extends AbstractC14961gcz implements InterfaceC14890gbN { private CrossMatchConsentFragment a; @Override // o.InterfaceC14890gbN public final /* synthetic */ UNm invoke() { View inflate = this.a.getLayoutInflater().inflate(R.layout.2131559530, (ViewGroup) null, false); int i = R.id.bt_next; AppCompatButton appCompatButton = (AppCompatButton) qeC.e(inflate, R.id.bt_next); if (appCompatButton != null) { i = R.id.consent_content; NestedScrollView nestedScrollView = (NestedScrollView) qeC.e(inflate, R.id.consent_content); if (nestedScrollView != null) { i = R.id.more_options_divider_bottom; View e = qeC.e(inflate, R.id.more_options_divider_bottom); if (e != null) { i = R.id.rb_accept; AppCompatRadioButton appCompatRadioButton = (AppCompatRadioButton) qeC.e(inflate, R.id.rb_accept); if (appCompatRadioButton != null) { i = R.id.rb_decline; AppCompatRadioButton appCompatRadioButton2 = (AppCompatRadioButton) qeC.e(inflate, R.id.rb_decline); if (appCompatRadioButton2 != null) { i = R.id.tv_privacy_notice; TextView textView = (TextView) qeC.e(inflate, R.id.tv_privacy_notice); if (textView != null) { i = R.id.wv_cross_match_consent; SCBWebView sCBWebView = (SCBWebView) qeC.e(inflate, R.id.wv_cross_match_consent); if (sCBWebView != null) { return new UNm((ConstraintLayout) inflate, appCompatButton, nestedScrollView, e, appCompatRadioButton, appCompatRadioButton2, textView, sCBWebView); } } } } } } } throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i))); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ RVV(CrossMatchConsentFragment crossMatchConsentFragment) { super(0); this.a = crossMatchConsentFragment; } } @Override // androidx.fragment.app.Fragment public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { C14957gcv.e(layoutInflater, ""); ConstraintLayout constraintLayout = ((UNm) this.d.e()).a; C14957gcv.c(constraintLayout, ""); return constraintLayout; } @Override // androidx.fragment.app.Fragment public final void onViewCreated(View view, Bundle bundle) { final IF r1; Parcelable parcelable; C14957gcv.e(view, ""); super.onViewCreated(view, bundle); aAZ aaz = this.presenter; aAZ aaz2 = null; if (aaz == null) { C14957gcv.a(""); aaz = null; } aaz.e((aAZ) this); aAZ aaz3 = this.presenter; if (aaz3 == null) { C14957gcv.a(""); aaz3 = null; } Bundle arguments = getArguments(); if (arguments != null) { if (Build.VERSION.SDK_INT >= 33) { parcelable = (Parcelable) arguments.getParcelable("EXTRA_CROSS_MATCH_CONSENT_DISPLAY", IF.class); } else { Parcelable parcelable2 = arguments.getParcelable("EXTRA_CROSS_MATCH_CONSENT_DISPLAY"); if (!(parcelable2 instanceof IF)) { parcelable2 = null; } parcelable = (IF) parcelable2; } r1 = (IF) parcelable; } else { r1 = null; } aaz3.d = r1; if (r1 != null) { String str = r1.d; String str2 = r1.e; String str3 = C14957gcv.b((Object) str, (Object) "EAPP") ^ true ? "SENSITIVE_COMMONNDID_DEFAULT" : null; if (str3 != null) { str2 = str3; } aaz3.e = str2; } ZI.IeS ieS = new ZI.IeS(r1) { // from class: o.aBa private IF a; @Override // o.ZI.IeS public final void e(Object obj) { aAZ.e(this.a, (InterfaceC9086ddA) obj); } { this.a = r1; } }; if (aaz3.f != 0) { ieS.e(aaz3.f); } UNm uNm = (UNm) this.d.e(); uNm.e.setOnClickListener(new View.OnClickListener(this) { // from class: o.eOS private CrossMatchConsentFragment b; @Override // android.view.View.OnClickListener public final void onClick(View view2) { CrossMatchConsentFragment.c(this.b); } { this.b = this; } }); uNm.b.setOnClickListener(new View.OnClickListener(this) { // from class: o.eOR private CrossMatchConsentFragment b; @Override // android.view.View.OnClickListener public final void onClick(View view2) { CrossMatchConsentFragment.a(this.b); } { this.b = this; } }); uNm.c.setOnClickListener(new View.OnClickListener(this) { // from class: o.eOT private CrossMatchConsentFragment a; @Override // android.view.View.OnClickListener public final void onClick(View view2) { CrossMatchConsentFragment.e(this.a); } { this.a = this; } }); TextView textView = ((UNm) this.d.e()).d; Resources resources = textView.getResources(); C14957gcv.c(resources, ""); String string = getString(R.string.auto_csent_sensitive_notice_read_more_link); C14957gcv.c((Object) string, ""); String string2 = getString(R.string.auto_csent_sensitive_notice_read_more); C14957gcv.c((Object) string2, ""); aAZ aaz4 = this.presenter; if (aaz4 == null) { C14957gcv.a(""); aaz4 = null; } String M = aaz4.c.b.c.M(); C14957gcv.c((Object) M, ""); String str4 = C14957gcv.b((Object) M, (Object) "en") ? "." : ""; aAZ aaz5 = this.presenter; if (aaz5 != null) { aaz2 = aaz5; } else { C14957gcv.a(""); } textView.setText(fKB.azW_(resources, string, string2, str4, true, R.color.f13682131100876, new LWm(aaz2), 32)); textView.setMovementMethod(LinkMovementMethod.getInstance()); } @Override // o.InterfaceC9086ddA public final void c(String str) { C14957gcv.e(str, ""); SCBWebView sCBWebView = ((UNm) this.d.e()).g; sCBWebView.setScrollContainer(false); sCBWebView.setWebViewBackgroundColor(R.color.f14012131100909); sCBWebView.b(str, "css/bot_consent_style.css"); } @Override // o.InterfaceC9086ddA public final void e() { ((UNm) this.d.e()).c.setEnabled(true); } @Override // o.InterfaceC9086ddA public final void d() { FragmentActivity requireActivity = requireActivity(); requireActivity.setResult(-1); requireActivity.finish(); } @Override // o.InterfaceC9086ddA public final void a(String str) { C14957gcv.e(str, ""); PrivacyCSentWebViewActivity.IeS ieS = PrivacyCSentWebViewActivity.b; FragmentActivity requireActivity = requireActivity(); C14957gcv.c(requireActivity, ""); startActivity(PrivacyCSentWebViewActivity.IeS.aaM_(requireActivity, str)); } /* JADX WARN: Removed duplicated region for block: B:17:0x0033 */ /* JADX WARN: Removed duplicated region for block: B:20:0x004e */ /* JADX WARN: Removed duplicated region for block: B:22:0x0054 */ /* JADX WARN: Removed duplicated region for block: B:25:0x0061 */ /* JADX WARN: Removed duplicated region for block: B:27:0x0067 */ /* JADX WARN: Removed duplicated region for block: B:30:0x006e */ /* JADX WARN: Removed duplicated region for block: B:32:0x0074 */ /* JADX WARN: Removed duplicated region for block: B:35:0x007b */ /* JADX WARN: Removed duplicated region for block: B:38:0x0084 */ /* JADX WARN: Removed duplicated region for block: B:42:0x007f */ /* JADX WARN: Removed duplicated region for block: B:43:0x0076 */ /* JADX WARN: Removed duplicated region for block: B:44:0x0071 */ /* JADX WARN: Removed duplicated region for block: B:45:0x0069 */ /* JADX WARN: Removed duplicated region for block: B:46:0x0064 */ /* JADX WARN: Removed duplicated region for block: B:47:0x0056 */ /* JADX WARN: Removed duplicated region for block: B:48:0x0051 */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static /* synthetic */ void e(com.scb.phone.view.fragment.csent.CrossMatchConsentFragment r14) { /* java.lang.String r0 = "" o.C14957gcv.e(r14, r0) o.aAZ r14 = r14.presenter r1 = 0 if (r14 == 0) goto Lb goto Lf Lb: o.C14957gcv.a(r0) r14 = r1 Lf: o.IF r2 = r14.d if (r2 == 0) goto L16 java.lang.String r2 = r2.f goto L17 L16: r2 = r1 L17: java.lang.String r3 = "NTF" boolean r2 = o.C14957gcv.b(r2, r3) if (r2 == 0) goto L22 java.lang.String r2 = "NTB" goto L23 L22: r2 = r1 L23: if (r2 != 0) goto L2e o.IF r2 = r14.d if (r2 == 0) goto L2c java.lang.String r2 = r2.f goto L2e L2c: r7 = r1 goto L2f L2e: r7 = r2 L2f: T extends o.cYp r2 = r14.f if (r2 == 0) goto L38 T extends o.cYp r2 = r14.f r2.y() L38: o.ib r2 = r14.c o.aAZ$IeS r3 = new o.aAZ$IeS r3.(r14) r11 = r3 o.gbN r11 = (o.InterfaceC14890gbN) r11 o.aAZ$LWm r3 = new o.aAZ$LWm r3.(r14) r12 = r3 o.gbR r12 = (o.InterfaceC14894gbR) r12 o.IF r3 = r14.d if (r3 == 0) goto L51 java.lang.String r3 = r3.j goto L52 L51: r3 = r1 L52: if (r3 != 0) goto L56 r13 = r0 goto L57 L56: r13 = r3 L57: o.aAZ$Sts r3 = r14.a java.lang.String r4 = r3.b() o.IF r3 = r14.d if (r3 == 0) goto L64 java.lang.String r3 = r3.b goto L65 L64: r3 = r1 L65: if (r3 != 0) goto L69 r5 = r0 goto L6a L69: r5 = r3 L6a: o.IF r3 = r14.d if (r3 == 0) goto L71 java.lang.String r3 = r3.c goto L72 L71: r3 = r1 L72: if (r3 != 0) goto L76 r6 = r0 goto L77 L76: r6 = r3 L77: o.IF r0 = r14.d if (r0 == 0) goto L7f java.lang.String r0 = r0.i r8 = r0 goto L80 L7f: r8 = r1 L80: o.IF r0 = r14.d if (r0 == 0) goto L86 java.lang.String r1 = r0.d L86: r9 = r1 java.lang.String r10 = r14.b o.clp r14 = new o.clp r3 = r14 r3.(r4, r5, r6, r7, r8, r9, r10) r2.b(r11, r12, r13, r14) return */ throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.csent.CrossMatchConsentFragment.e(com.scb.phone.view.fragment.csent.CrossMatchConsentFragment):void"); } /* loaded from: classes5.dex */ final /* synthetic */ class LWm extends C14954gcs implements InterfaceC14890gbN { @Override // o.InterfaceC14890gbN public final /* synthetic */ C14866gag invoke() { final aAZ aaz = (aAZ) this.f; ZI.IeS ieS = new ZI.IeS(aaz) { // from class: o.aBb private aAZ a; @Override // o.ZI.IeS public final void e(Object obj) { aAZ.b(this.a, (InterfaceC9086ddA) obj); } { this.a = aaz; } }; if (aaz.f != 0) { ieS.e(aaz.f); } return C14866gag.c; } LWm(Object obj) { super(0, obj, aAZ.class, "onClickPrivacyNotice", "onClickPrivacyNotice()V"); } } public static /* synthetic */ void a(CrossMatchConsentFragment crossMatchConsentFragment) { C14957gcv.e(crossMatchConsentFragment, ""); aAZ aaz = crossMatchConsentFragment.presenter; if (aaz == null) { C14957gcv.a(""); aaz = null; } aAZ.Sts sts = aAZ.Sts.DECLINED; C14957gcv.e(sts, ""); aaz.a = sts; C1343aBd c1343aBd = new C1343aBd(); if (aaz.f != 0) { c1343aBd.e(aaz.f); } } public static /* synthetic */ void c(CrossMatchConsentFragment crossMatchConsentFragment) { C14957gcv.e(crossMatchConsentFragment, ""); aAZ aaz = crossMatchConsentFragment.presenter; if (aaz == null) { C14957gcv.a(""); aaz = null; } aAZ.Sts sts = aAZ.Sts.ACCEPTED; C14957gcv.e(sts, ""); aaz.a = sts; C1343aBd c1343aBd = new C1343aBd(); if (aaz.f != 0) { c1343aBd.e(aaz.f); } } }