package com.scb.phone.view.fragment.investment; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.graphics.Bitmap; import android.net.Uri; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.webkit.WebChromeClient; import android.webkit.WebResourceRequest; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.LinearLayout; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentActivity; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; import com.huawei.hms.support.api.entity.common.CommonConstant; import com.scb.phone.R; import com.scb.phone.view.activity.BaseActivity; import com.scb.phone.view.activity.HomeActivity; import com.scb.phone.view.activity.investment.assessment.AssessmentPopupActivity; import com.scb.phone.view.activity.investment.assessment.RiskLevelAssessmentActivity; import com.scb.phone.view.activity.investment.discover.DiscoverDisclaimerActivity; import com.scb.phone.view.activity.investment.discover.NtbDiscoverDisclaimerActivity; import com.scb.phone.view.activity.investment.funddetails.InvestmentFundDetailsActivity; import com.scb.phone.view.activity.investment.onboarding.FundOnboardingLandingActivity; import com.scb.phone.view.activity.investment.purchase.FundPurchaseLandingActivity; import com.scb.phone.view.activity.investment.scbs.AddAccountInfoActivity; import com.scb.phone.view.activity.partner.PartnerAuthorizationActivity; import com.scb.phone.view.activity.partner.PartnerConsentActivity; import com.scb.phone.view.activity.partner.SCBUniversalWebViewActivity; import com.scb.phone.view.custom.common.CustomDialog; import com.scb.phone.view.custom.webview.SCBWebView; import com.scb.phone.view.fragment.BaseFragment; import com.scb.phone.view.fragment.investment.InvestmentWebViewFragment; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import o.AbstractC14961gcz; import o.C11560ehe; import o.C12914fKz; import o.C12953fMa; import o.C14866gag; import o.C14957gcv; import o.C15971jzF; import o.C16174ltE; import o.C17809ztu; import o.C3579bAa; import o.C5758bzB; import o.C5779bzW; import o.C5780bzX; import o.Heg; import o.InterfaceC0834Plv; import o.InterfaceC12822fIN; import o.InterfaceC12922fLZ; import o.InterfaceC13391fZD; import o.InterfaceC13393fZL; import o.InterfaceC13774fgf; import o.InterfaceC14890gbN; import o.InterfaceC14894gbR; import o.InterfaceC17396wQp; import o.InterfaceC6627cYe; import o.InterfaceC9379did; import o.InterfaceC9386dik; import o.OK; import o.ON; import o.PY; import o.RunnableC10451eEl; import o.VDE; import o.YV; import o.ZI; import o.cXJ; import o.fLU; import o.fLW; import o.fZZ; import o.gcI; import o.gjJ; import o.huo; import o.mfY; /* loaded from: classes5.dex */ public final class InvestmentWebViewFragment extends Hilt_InvestmentWebViewFragment implements InterfaceC9386dik.Sts, InterfaceC13774fgf { public static final LWm c = new LWm(0); private huo d; private huo f; private boolean g; private InterfaceC12822fIN h; private huo i; @InterfaceC13391fZD public C5758bzB investmentWebViewPresenter; private huo j; private final InterfaceC13393fZL k; private huo l; @BindView public LinearLayout llError; private final fLW[] m; private VDE n; /* renamed from: o, reason: collision with root package name */ private huo f8045o; @BindView public SCBWebView webViewContent; public InvestmentWebViewFragment() { fLW[] flwArr = new fLW[7]; for (int i = 0; i < 7; i++) { flwArr[i] = new fLW(RVV.b); } this.m = flwArr; saX sax = new saX(this); C14957gcv.e(sax, ""); this.k = new fZZ(sax); } /* loaded from: classes5.dex */ static final class saX extends AbstractC14961gcz implements InterfaceC14890gbN { private InvestmentWebViewFragment a; /* renamed from: com.scb.phone.view.fragment.investment.InvestmentWebViewFragment$saX$4, reason: invalid class name */ /* loaded from: classes5.dex */ static final class AnonymousClass4 extends AbstractC14961gcz implements InterfaceC14894gbR { private InvestmentWebViewFragment e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Object obj) { C5758bzB c5758bzB = this.e.investmentWebViewPresenter; if (c5758bzB == null) { C14957gcv.a(""); c5758bzB = null; } c5758bzB.c(7, obj); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ AnonymousClass4(InvestmentWebViewFragment investmentWebViewFragment) { super(1); this.e = investmentWebViewFragment; } } /* renamed from: com.scb.phone.view.fragment.investment.InvestmentWebViewFragment$saX$3, reason: invalid class name */ /* loaded from: classes5.dex */ static final class AnonymousClass3 extends AbstractC14961gcz implements InterfaceC14894gbR { private InvestmentWebViewFragment c; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Object obj) { C5758bzB c5758bzB = this.c.investmentWebViewPresenter; if (c5758bzB == null) { C14957gcv.a(""); c5758bzB = null; } c5758bzB.c(8, obj); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ AnonymousClass3(InvestmentWebViewFragment investmentWebViewFragment) { super(1); this.c = investmentWebViewFragment; } } /* renamed from: com.scb.phone.view.fragment.investment.InvestmentWebViewFragment$saX$5, reason: invalid class name */ /* loaded from: classes5.dex */ static final class AnonymousClass5 extends AbstractC14961gcz implements InterfaceC14894gbR { private InvestmentWebViewFragment a; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Object obj) { C5758bzB c5758bzB = this.a.investmentWebViewPresenter; if (c5758bzB == null) { C14957gcv.a(""); c5758bzB = null; } c5758bzB.c(9, obj); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ AnonymousClass5(InvestmentWebViewFragment investmentWebViewFragment) { super(1); this.a = investmentWebViewFragment; } } /* renamed from: com.scb.phone.view.fragment.investment.InvestmentWebViewFragment$saX$2, reason: invalid class name */ /* loaded from: classes5.dex */ static final class AnonymousClass2 extends AbstractC14961gcz implements InterfaceC14894gbR { private InvestmentWebViewFragment b; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Object obj) { C5758bzB c5758bzB = this.b.investmentWebViewPresenter; if (c5758bzB == null) { C14957gcv.a(""); c5758bzB = null; } c5758bzB.c(10, obj); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ AnonymousClass2(InvestmentWebViewFragment investmentWebViewFragment) { super(1); this.b = investmentWebViewFragment; } } /* renamed from: com.scb.phone.view.fragment.investment.InvestmentWebViewFragment$saX$1, reason: invalid class name */ /* loaded from: classes5.dex */ static final class AnonymousClass1 extends AbstractC14961gcz implements InterfaceC14894gbR { private InvestmentWebViewFragment b; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Object obj) { C5758bzB c5758bzB = this.b.investmentWebViewPresenter; if (c5758bzB == null) { C14957gcv.a(""); c5758bzB = null; } c5758bzB.c(11, obj); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ AnonymousClass1(InvestmentWebViewFragment investmentWebViewFragment) { super(1); this.b = investmentWebViewFragment; } } /* renamed from: com.scb.phone.view.fragment.investment.InvestmentWebViewFragment$saX$7, reason: invalid class name */ /* loaded from: classes5.dex */ static final class AnonymousClass7 extends AbstractC14961gcz implements InterfaceC14894gbR { private InvestmentWebViewFragment a; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Object obj) { C5758bzB c5758bzB = this.a.investmentWebViewPresenter; if (c5758bzB == null) { C14957gcv.a(""); c5758bzB = null; } c5758bzB.c(12, obj); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ AnonymousClass7(InvestmentWebViewFragment investmentWebViewFragment) { super(1); this.a = investmentWebViewFragment; } } /* renamed from: com.scb.phone.view.fragment.investment.InvestmentWebViewFragment$saX$10, reason: invalid class name */ /* loaded from: classes5.dex */ static final class AnonymousClass10 extends AbstractC14961gcz implements InterfaceC14894gbR { private InvestmentWebViewFragment c; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Object obj) { C5758bzB c5758bzB = this.c.investmentWebViewPresenter; if (c5758bzB == null) { C14957gcv.a(""); c5758bzB = null; } c5758bzB.c(13, obj); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ AnonymousClass10(InvestmentWebViewFragment investmentWebViewFragment) { super(1); this.c = investmentWebViewFragment; } } /* renamed from: com.scb.phone.view.fragment.investment.InvestmentWebViewFragment$saX$6, reason: invalid class name */ /* loaded from: classes5.dex */ static final class AnonymousClass6 extends AbstractC14961gcz implements InterfaceC14894gbR { private InvestmentWebViewFragment d; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Object obj) { C5758bzB c5758bzB = this.d.investmentWebViewPresenter; if (c5758bzB == null) { C14957gcv.a(""); c5758bzB = null; } c5758bzB.c(14, obj); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ AnonymousClass6(InvestmentWebViewFragment investmentWebViewFragment) { super(1); this.d = investmentWebViewFragment; } } /* renamed from: com.scb.phone.view.fragment.investment.InvestmentWebViewFragment$saX$8, reason: invalid class name */ /* loaded from: classes5.dex */ static final class AnonymousClass8 extends AbstractC14961gcz implements InterfaceC14894gbR { private InvestmentWebViewFragment e; @Override // o.InterfaceC14894gbR public final /* synthetic */ C14866gag invoke(Object obj) { C5758bzB c5758bzB = this.e.investmentWebViewPresenter; if (c5758bzB == null) { C14957gcv.a(""); c5758bzB = null; } c5758bzB.c(15, obj); return C14866gag.c; } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ AnonymousClass8(InvestmentWebViewFragment investmentWebViewFragment) { super(1); this.e = investmentWebViewFragment; } } @Override // o.InterfaceC14890gbN public final /* synthetic */ C12953fMa invoke() { gcI gci = new gcI(); fLW[] flwArr = this.a.m; if (flwArr != null) { if (!(flwArr instanceof Object[])) { StringBuilder sb = new StringBuilder("Don't know how to spread "); sb.append(flwArr.getClass()); throw new UnsupportedOperationException(sb.toString()); } fLW[] flwArr2 = flwArr; if (flwArr2.length > 0) { ArrayList arrayList = gci.b; arrayList.ensureCapacity(arrayList.size() + flwArr2.length); Collections.addAll(gci.b, flwArr2); } } gci.b.add(new fLW(new AnonymousClass4(this.a))); gci.b.add(new fLW(new AnonymousClass3(this.a))); gci.b.add(new fLW(new AnonymousClass5(this.a))); gci.b.add(new fLW(new AnonymousClass2(this.a))); gci.b.add(new fLW(new AnonymousClass1(this.a))); gci.b.add(new fLW(new AnonymousClass7(this.a))); gci.b.add(new fLW(new AnonymousClass10(this.a))); gci.b.add(new fLW(new AnonymousClass6(this.a))); gci.b.add(new fLW(new AnonymousClass8(this.a))); return new C12953fMa((fLW[]) gci.b.toArray(new fLW[gci.b.size()])); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ saX(InvestmentWebViewFragment investmentWebViewFragment) { super(0); this.a = investmentWebViewFragment; } } /* loaded from: classes5.dex */ public static final class LWm { private LWm() { } public static Fragment b(String str, mfY mfy) { C14957gcv.e(mfy, ""); InvestmentWebViewFragment investmentWebViewFragment = new InvestmentWebViewFragment(); Bundle bundle = new Bundle(); bundle.putString("EXTRA_CALL_BACK_URL", str); bundle.putInt("EXTRA_PARTNER_FLOW_TYPE", mfy.ordinal()); investmentWebViewFragment.setArguments(bundle); return investmentWebViewFragment; } public /* synthetic */ LWm(byte b) { this(); } } @Override // androidx.fragment.app.Fragment public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { C14957gcv.e(layoutInflater, ""); View inflate = layoutInflater.inflate(R.layout.2131559736, viewGroup, false); ((BaseFragment) this).a = ButterKnife.c(this, inflate); huo registerForActivityResult = registerForActivityResult(new C11560ehe.Sts(), new InterfaceC0834Plv(this) { // from class: o.ffX private InvestmentWebViewFragment a; @Override // o.InterfaceC0834Plv public final void d(Object obj) { InvestmentWebViewFragment.d(this.a, (Heg) obj); } { this.a = this; } }); C14957gcv.c(registerForActivityResult, ""); this.d = registerForActivityResult; huo registerForActivityResult2 = registerForActivityResult(new C11560ehe.Sts(), new InterfaceC0834Plv(this) { // from class: o.ffY private InvestmentWebViewFragment a; @Override // o.InterfaceC0834Plv public final void d(Object obj) { InvestmentWebViewFragment.c(this.a, (Heg) obj); } { this.a = this; } }); C14957gcv.c(registerForActivityResult2, ""); this.i = registerForActivityResult2; huo registerForActivityResult3 = registerForActivityResult(new C11560ehe.Sts(), new InterfaceC0834Plv(this) { // from class: o.fga private InvestmentWebViewFragment d; @Override // o.InterfaceC0834Plv public final void d(Object obj) { InvestmentWebViewFragment.a(this.d, (Heg) obj); } { this.d = this; } }); C14957gcv.c(registerForActivityResult3, ""); this.j = registerForActivityResult3; huo registerForActivityResult4 = registerForActivityResult(new C11560ehe.Sts(), new InterfaceC0834Plv(this) { // from class: o.ffZ private InvestmentWebViewFragment c; @Override // o.InterfaceC0834Plv public final void d(Object obj) { InvestmentWebViewFragment.d(this.c); } { this.c = this; } }); C14957gcv.c(registerForActivityResult4, ""); this.f = registerForActivityResult4; huo registerForActivityResult5 = registerForActivityResult(new C11560ehe.Sts(), new InterfaceC0834Plv(this) { // from class: o.fge private InvestmentWebViewFragment e; @Override // o.InterfaceC0834Plv public final void d(Object obj) { InvestmentWebViewFragment.b(this.e, (Heg) obj); } { this.e = this; } }); C14957gcv.c(registerForActivityResult5, ""); this.l = registerForActivityResult5; huo registerForActivityResult6 = registerForActivityResult(new C11560ehe.Sts(), new InterfaceC0834Plv(this) { // from class: o.fgg private InvestmentWebViewFragment b; @Override // o.InterfaceC0834Plv public final void d(Object obj) { InvestmentWebViewFragment.e(this.b, (Heg) obj); } { this.b = this; } }); C14957gcv.c(registerForActivityResult6, ""); this.f8045o = registerForActivityResult6; SCBWebView sCBWebView = this.webViewContent; C5758bzB c5758bzB = null; if (sCBWebView == null) { C14957gcv.a(""); sCBWebView = null; } sCBWebView.setWebChromeClient(new WebChromeClient()); SCBWebView sCBWebView2 = this.webViewContent; if (sCBWebView2 == null) { C14957gcv.a(""); sCBWebView2 = null; } sCBWebView2.setWebViewClient(new IeS(this)); C5758bzB c5758bzB2 = this.investmentWebViewPresenter; if (c5758bzB2 != null) { c5758bzB = c5758bzB2; } else { C14957gcv.a(""); } c5758bzB.e((C5758bzB) this); this.n = new VDE(); return inflate; } /* JADX WARN: Code restructure failed: missing block: B:13:0x0039, code lost: if (r7 == null) goto L17; */ @Override // com.scb.phone.view.fragment.webview.BaseWebViewFragment, androidx.fragment.app.Fragment /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final void onViewCreated(android.view.View r6, android.os.Bundle r7) { /* r5 = this; java.lang.String r0 = "" o.C14957gcv.e(r6, r0) super.onViewCreated(r6, r7) o.bzB r6 = r5.investmentWebViewPresenter r7 = 0 if (r6 == 0) goto Le goto L12 Le: o.C14957gcv.a(r0) r6 = r7 L12: android.os.Bundle r1 = r5.getArguments() if (r1 == 0) goto L1f java.lang.String r2 = "EXTRA_CALL_BACK_URL" java.lang.String r1 = r1.getString(r2) goto L20 L1f: r1 = r7 L20: android.os.Bundle r2 = r5.getArguments() if (r2 == 0) goto L3b java.lang.String r3 = "EXTRA_PARTNER_FLOW_TYPE" r4 = -1 int r2 = r2.getInt(r3, r4) if (r2 < 0) goto L37 o.mfY[] r7 = o.mfY.values() r7 = r7[r2] java.lang.Enum r7 = (java.lang.Enum) r7 L37: o.mfY r7 = (o.mfY) r7 if (r7 != 0) goto L3d L3b: o.mfY r7 = o.mfY.NORMAL L3d: o.C14957gcv.e(r7, r0) r6.e = r7 int[] r0 = o.C5758bzB.LWm.e int r7 = r7.ordinal() r7 = r0[r7] switch(r7) { case 1: goto L6c; case 2: goto L6c; case 3: goto L6c; case 4: goto L6c; case 5: goto L5d; case 6: goto L4e; default: goto L4d; } L4d: return L4e: o.bzX r7 = new o.bzX r7.(r6, r1) T extends o.cYp r0 = r6.f if (r0 == 0) goto L5c T extends o.cYp r6 = r6.f r7.e(r6) L5c: return L5d: o.bAa r7 = new o.bAa r7.(r6) T extends o.cYp r0 = r6.f if (r0 == 0) goto L6b T extends o.cYp r6 = r6.f r7.e(r6) L6b: return L6c: o.bzW r7 = new o.bzW r7.(r6) T extends o.cYp r0 = r6.f if (r0 == 0) goto L7a T extends o.cYp r6 = r6.f r7.e(r6) L7a: return */ throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.investment.InvestmentWebViewFragment.onViewCreated(android.view.View, android.os.Bundle):void"); } /* JADX WARN: Multi-variable type inference failed */ @Override // com.scb.phone.view.fragment.investment.Hilt_InvestmentWebViewFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment public final void onAttach(Context context) { C14957gcv.e(context, ""); super.onAttach(context); if (context instanceof InterfaceC12822fIN) { this.h = (InterfaceC12822fIN) context; } } @Override // androidx.fragment.app.Fragment public final void onResume() { super.onResume(); C5758bzB c5758bzB = this.investmentWebViewPresenter; if (c5758bzB == null) { C14957gcv.a(""); c5758bzB = null; } final C17809ztu c17809ztu = c5758bzB.c; String i = c17809ztu.c.i(); if (i == null || i.equals("")) { return; } ZI.IeS ieS = new ZI.IeS(c17809ztu) { // from class: o.bzY private C17809ztu d; @Override // o.ZI.IeS public final void e(Object obj) { C5758bzB.e(this.d, (InterfaceC9386dik.Sts) obj); } { this.d = c17809ztu; } }; if (c5758bzB.f != 0) { ieS.e(c5758bzB.f); } c17809ztu.c.d(); } @OnClick public final void onErrorSectionClicked() { C5758bzB c5758bzB = this.investmentWebViewPresenter; if (c5758bzB == null) { C14957gcv.a(""); c5758bzB = null; } if (c5758bzB.e != mfY.MF_PRODUCT_RECOMMEND) { C5779bzW c5779bzW = new C5779bzW(c5758bzB); if (c5758bzB.f != 0) { c5779bzW.e(c5758bzB.f); return; } return; } C3579bAa c3579bAa = new C3579bAa(c5758bzB); if (c5758bzB.f != 0) { c3579bAa.e(c5758bzB.f); } } @Override // o.InterfaceC9386dik.Sts public final void b(String str) { C14957gcv.e(str, ""); SCBWebView sCBWebView = this.webViewContent; C5758bzB c5758bzB = null; if (sCBWebView == null) { C14957gcv.a(""); sCBWebView = null; } sCBWebView.getSettings().setJavaScriptEnabled(true); SCBWebView sCBWebView2 = this.webViewContent; if (sCBWebView2 == null) { C14957gcv.a(""); sCBWebView2 = null; } sCBWebView2.getSettings().setMixedContentMode(2); SCBWebView sCBWebView3 = this.webViewContent; if (sCBWebView3 == null) { C14957gcv.a(""); sCBWebView3 = null; } sCBWebView3.addJavascriptInterface((C12953fMa) this.k.e(), "WebviewJS"); C5758bzB c5758bzB2 = this.investmentWebViewPresenter; if (c5758bzB2 != null) { c5758bzB = c5758bzB2; } else { C14957gcv.a(""); } C14957gcv.e(str, ""); cXJ cxj = new cXJ(str); if (c5758bzB.f != 0) { cxj.e(c5758bzB.f); } } @Override // o.InterfaceC9386dik.Sts public final void a(int i, int i2) { InterfaceC12822fIN interfaceC12822fIN = this.h; if (interfaceC12822fIN != null) { interfaceC12822fIN.e(i, i2); interfaceC12822fIN.d(i); } } @Override // o.InterfaceC9386dik.Sts public final void b(int i, int i2) { InterfaceC12822fIN interfaceC12822fIN = this.h; if (interfaceC12822fIN != null) { interfaceC12822fIN.e(i, i2); } } @Override // o.InterfaceC9386dik.Sts public final void d(String str, String str2) { C14957gcv.e(str, ""); Context requireContext = requireContext(); if (str2 == null) { str2 = ""; } startActivity(SCBUniversalWebViewActivity.akh_(requireContext, str, str2)); } @Override // o.InterfaceC9386dik.Sts public final void c(String str, mfY mfy, HashMap hashMap) { C14957gcv.e(str, ""); C14957gcv.e(mfy, ""); C14957gcv.e(hashMap, ""); huo huoVar = this.d; if (huoVar == null) { C14957gcv.a(""); huoVar = null; } PartnerAuthorizationActivity.HBt hBt = PartnerAuthorizationActivity.f7686o; Context requireContext = requireContext(); C14957gcv.c(requireContext, ""); huoVar.d(PartnerAuthorizationActivity.HBt.ajO_(requireContext, str, mfy, hashMap), null); } @Override // o.InterfaceC9386dik.Sts public final void b(String str, HashMap hashMap) { C14957gcv.e(str, ""); C14957gcv.e(hashMap, ""); PartnerAuthorizationActivity.HBt hBt = PartnerAuthorizationActivity.f7686o; Context requireContext = requireContext(); C14957gcv.c(requireContext, ""); startActivity(PartnerAuthorizationActivity.HBt.ajP_(requireContext, hashMap, true, new Intent().putExtra(C15971jzF.e.e, str))); } @Override // o.InterfaceC9386dik.Sts public final void e(String str, mfY mfy) { C14957gcv.e(str, ""); C14957gcv.e(mfy, ""); huo huoVar = this.i; if (huoVar == null) { C14957gcv.a(""); huoVar = null; } huoVar.d(PartnerConsentActivity.ajS_(requireContext(), str, mfy), null); } @Override // o.InterfaceC9386dik.Sts public final void a(int i) { LinearLayout linearLayout = this.llError; if (linearLayout == null) { C14957gcv.a(""); linearLayout = null; } linearLayout.setVisibility(i); } @Override // o.InterfaceC9386dik.Sts public final void i() { huo huoVar = this.j; if (huoVar == null) { C14957gcv.a(""); huoVar = null; } DiscoverDisclaimerActivity.HBt hBt = DiscoverDisclaimerActivity.b; Context requireContext = requireContext(); C14957gcv.c(requireContext, ""); C14957gcv.e(requireContext, ""); Intent intent = new Intent(requireContext, (Class) DiscoverDisclaimerActivity.class); intent.setFlags(603979776); huoVar.d(intent, null); } @Override // o.InterfaceC9386dik.Sts public final void bc_() { huo huoVar = this.j; if (huoVar == null) { C14957gcv.a(""); huoVar = null; } NtbDiscoverDisclaimerActivity.LWm lWm = NtbDiscoverDisclaimerActivity.f7461o; Context requireContext = requireContext(); C14957gcv.c(requireContext, ""); C14957gcv.e(requireContext, ""); Intent intent = new Intent(requireContext, (Class) NtbDiscoverDisclaimerActivity.class); intent.setFlags(603979776); huoVar.d(intent, null); } @Override // o.InterfaceC13774fgf public final void h() { final C5758bzB c5758bzB = this.investmentWebViewPresenter; if (c5758bzB == null) { C14957gcv.a(""); c5758bzB = null; } if (c5758bzB.d() || c5758bzB.d.b.a.p()) { return; } ZI.IeS ieS = new ZI.IeS(c5758bzB) { // from class: o.bzU private C5758bzB e; @Override // o.ZI.IeS public final void e(Object obj) { C5758bzB.b(this.e, (InterfaceC9386dik.Sts) obj); } { this.e = c5758bzB; } }; if (c5758bzB.f != 0) { ieS.e(c5758bzB.f); } } @Override // o.InterfaceC13774fgf public final void j() { SCBWebView sCBWebView = this.webViewContent; if (sCBWebView == null) { C14957gcv.a(""); sCBWebView = null; } sCBWebView.evaluateJavascript("javascript: window.WebJS.onBackPressed();", null); } @Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment public final void onDestroy() { C5758bzB c5758bzB = this.investmentWebViewPresenter; huo huoVar = null; if (c5758bzB == null) { C14957gcv.a(""); c5758bzB = null; } c5758bzB.w_(); huo huoVar2 = this.j; if (huoVar2 == null) { C14957gcv.a(""); huoVar2 = null; } huoVar2.e(); huo huoVar3 = this.i; if (huoVar3 == null) { C14957gcv.a(""); huoVar3 = null; } huoVar3.e(); huo huoVar4 = this.d; if (huoVar4 == null) { C14957gcv.a(""); huoVar4 = null; } huoVar4.e(); huo huoVar5 = this.f; if (huoVar5 == null) { C14957gcv.a(""); huoVar5 = null; } huoVar5.e(); huo huoVar6 = this.l; if (huoVar6 == null) { C14957gcv.a(""); huoVar6 = null; } huoVar6.e(); huo huoVar7 = this.f8045o; if (huoVar7 == null) { C14957gcv.a(""); } else { huoVar = huoVar7; } huoVar.e(); super.onDestroy(); } @Override // o.InterfaceC9386dik.Sts public final void b() { FragmentActivity activity = getActivity(); if (activity != null) { activity.finish(); } } @Override // o.InterfaceC9386dik.Sts public final void e(String str, String str2) { C14957gcv.e(str, ""); C14957gcv.e(str2, ""); CustomDialog b = CustomDialog.b(getContext()); if (gjJ.a(str)) { b.mTitleTextView.setVisibility(0); b.mTitleTextView.setText(str); } if (gjJ.a(str2)) { b.mTextTextView.setVisibility(0); b.mTextTextView.setText(str2); } b.setCancelable(false); b.aoT_(R.string.ok, new DialogInterface.OnClickListener(this) { // from class: o.fgb private InvestmentWebViewFragment b; @Override // android.content.DialogInterface.OnClickListener public final void onClick(DialogInterface dialogInterface, int i) { InvestmentWebViewFragment.c(this.b); } { this.b = this; } }).show(); } @Override // o.InterfaceC9386dik.Sts public final void c(mfY mfy) { C14957gcv.e(mfy, ""); if (getActivity() instanceof InterfaceC6627cYe.jbe) { InterfaceC17396wQp activity = getActivity(); C14957gcv.d(activity, ""); ((InterfaceC6627cYe.jbe) activity).d(mfy); } if (getActivity() instanceof InterfaceC9379did.IeS) { InterfaceC17396wQp activity2 = getActivity(); C14957gcv.d(activity2, ""); ((InterfaceC9379did.IeS) activity2).a(); } } @Override // o.InterfaceC9386dik.Sts public final void c(OK ok, int i) { C14957gcv.e(ok, ""); Context context = getContext(); if (context != null) { InvestmentFundDetailsActivity.RVV rvv = InvestmentFundDetailsActivity.l; startActivity(InvestmentFundDetailsActivity.RVV.ahq_(context, ok, i)); } } @Override // o.InterfaceC9386dik.Sts public final void d(PY py, List list, ON on) { Context context = getContext(); if (context != null) { FundPurchaseLandingActivity.IeS ieS = FundPurchaseLandingActivity.b; FundPurchaseLandingActivity.IeS.c(context, py, list, on, 0); } } @Override // o.InterfaceC9386dik.Sts public final void e(HashMap hashMap) { C14957gcv.e(hashMap, ""); huo huoVar = this.f; if (huoVar == null) { C14957gcv.a(""); huoVar = null; } PartnerAuthorizationActivity.HBt hBt = PartnerAuthorizationActivity.f7686o; Context requireContext = requireContext(); C14957gcv.c(requireContext, ""); huoVar.d(PartnerAuthorizationActivity.HBt.ajP_(requireContext, hashMap, true, null), null); } @Override // o.InterfaceC9386dik.Sts public final void d(int i) { huo huoVar = this.f; if (huoVar == null) { C14957gcv.a(""); huoVar = null; } AddAccountInfoActivity.RVV rvv = AddAccountInfoActivity.b; Context requireContext = requireContext(); C14957gcv.c(requireContext, ""); C14957gcv.e(requireContext, ""); Intent intent = new Intent(requireContext, (Class) AddAccountInfoActivity.class); intent.putExtra("EXTRA_FLOW_TYPE", i); huoVar.d(intent, null); } @Override // o.InterfaceC9386dik.Sts public final void e() { huo huoVar = this.f; if (huoVar == null) { C14957gcv.a(""); huoVar = null; } huoVar.d(new Intent(requireContext(), (Class) FundOnboardingLandingActivity.class), null); } @Override // o.InterfaceC9386dik.Sts public final void c(ON on) { huo huoVar = this.l; if (huoVar == null) { C14957gcv.a(""); huoVar = null; } AssessmentPopupActivity.LWm lWm = AssessmentPopupActivity.b; Intent intent = new Intent(requireContext(), (Class) AssessmentPopupActivity.class); intent.putExtra("profileExtra", on); huoVar.d(intent, null); } @Override // o.InterfaceC9386dik.Sts public final void a(String str, YV yv) { C14957gcv.e(str, ""); C14957gcv.e(yv, ""); huo huoVar = this.f8045o; if (huoVar == null) { C14957gcv.a(""); huoVar = null; } RiskLevelAssessmentActivity.Sts sts = RiskLevelAssessmentActivity.k; Context requireContext = requireContext(); C14957gcv.c(requireContext, ""); huoVar.d(RiskLevelAssessmentActivity.Sts.ahg_(requireContext, str, yv, Boolean.FALSE), null); } @Override // o.InterfaceC9386dik.Sts public final void a() { Context context = getContext(); if (context != null) { HomeActivity.c(context, true); } } @Override // o.InterfaceC9386dik.Sts public final void e(String str) { C14957gcv.e(str, ""); startActivity(new Intent(CommonConstant.ACTION.HWID_SCHEME_URL, Uri.parse(str))); } @Override // o.InterfaceC9386dik.Sts public final void c() { FragmentActivity activity = getActivity(); if (activity != null) { this.g = true; C12914fKz.e(new Object[]{activity, Integer.valueOf(R.id.root), Integer.valueOf(R.drawable.ic_check_circle_white_24dp), getString(R.string.investment_risk_assessment_renew_success), Integer.valueOf(R.color.f13832131100891)}, 1259223802, -1259223796, R.id.root); } } /* loaded from: classes5.dex */ public static final class Sts implements InterfaceC12922fLZ { Sts() { } @Override // o.InterfaceC12922fLZ public final String e() { return "onInvestFundSucceeded"; } } @Override // o.InterfaceC9386dik.Sts public final void d() { SCBWebView sCBWebView = this.webViewContent; if (sCBWebView == null) { C14957gcv.a(""); sCBWebView = null; } SCBWebView.a(sCBWebView, new Sts()); } /* loaded from: classes5.dex */ public static final class HBt implements InterfaceC12922fLZ { HBt() { } @Override // o.InterfaceC12922fLZ public final String e() { return "onFundObjectCallBack"; } } @Override // o.InterfaceC9386dik.Sts public final void a(String str) { C14957gcv.e(str, ""); SCBWebView sCBWebView = this.webViewContent; if (sCBWebView == null) { C14957gcv.a(""); sCBWebView = null; } HBt hBt = new HBt(); C14957gcv.e(hBt, ""); C14957gcv.e(str, ""); sCBWebView.post(new RunnableC10451eEl(str, hBt, sCBWebView)); } @Override // o.InterfaceC9386dik.Sts public final void a(String str, Map map) { C14957gcv.e(str, ""); VDE vde = this.n; VDE vde2 = null; if (vde == null) { C14957gcv.a(""); vde = null; } vde.c(); if (map != null) { for (Map.Entry entry : map.entrySet()) { String key = entry.getKey(); Object value = entry.getValue(); VDE vde3 = this.n; if (vde3 == null) { C14957gcv.a(""); vde3 = null; } vde3.d(key, value.toString()); } } VDE vde4 = this.n; if (vde4 == null) { C14957gcv.a(""); } else { vde2 = vde4; } VDE vde5 = vde2; if (getActivity() != null) { vde5.c(((BaseActivity) getActivity()).scbAnalytics, str); } } /* loaded from: classes5.dex */ public static final class IeS extends WebViewClient { private InvestmentWebViewFragment c; IeS(InvestmentWebViewFragment investmentWebViewFragment) { this.c = investmentWebViewFragment; } @Override // android.webkit.WebViewClient public final void onPageStarted(WebView webView, String str, Bitmap bitmap) { if (webView != null) { webView.clearCache(true); } super.onPageStarted(webView, str, bitmap); this.c.v(); } @Override // android.webkit.WebViewClient public final void onPageFinished(WebView webView, String str) { this.c.aq_(); super.onPageFinished(webView, str); } @Override // android.webkit.WebViewClient public final boolean shouldOverrideUrlLoading(WebView webView, WebResourceRequest webResourceRequest) { C5758bzB c5758bzB = this.c.investmentWebViewPresenter; if (c5758bzB == null) { C14957gcv.a(""); c5758bzB = null; } final String valueOf = String.valueOf(webResourceRequest != null ? webResourceRequest.getUrl() : null); C14957gcv.e(valueOf, ""); ZI.IeS ieS = new ZI.IeS(valueOf) { // from class: o.bzK private String e; @Override // o.ZI.IeS public final void e(Object obj) { C5758bzB.c(this.e, (InterfaceC9386dik.Sts) obj); } { this.e = valueOf; } }; if (c5758bzB.f == 0) { return true; } ieS.e(c5758bzB.f); return true; } } public static /* synthetic */ void d(InvestmentWebViewFragment investmentWebViewFragment, Heg heg) { C14957gcv.e(investmentWebViewFragment, ""); final C5758bzB c5758bzB = investmentWebViewFragment.investmentWebViewPresenter; if (c5758bzB == null) { C14957gcv.a(""); c5758bzB = null; } Intent intent = heg.b; final String stringExtra = intent != null ? intent.getStringExtra("EXTRA_SESSION_ID") : null; ZI.IeS ieS = new ZI.IeS(stringExtra, c5758bzB) { // from class: o.bzQ private String b; private C5758bzB d; @Override // o.ZI.IeS public final void e(Object obj) { C5758bzB.e(this.b, this.d, (InterfaceC9386dik.Sts) obj); } { this.b = stringExtra; this.d = c5758bzB; } }; if (c5758bzB.f != 0) { ieS.e(c5758bzB.f); } } public static /* synthetic */ void c(InvestmentWebViewFragment investmentWebViewFragment) { C14957gcv.e(investmentWebViewFragment, ""); FragmentActivity activity = investmentWebViewFragment.getActivity(); if (activity != null) { activity.finish(); } } public static /* synthetic */ void a(InvestmentWebViewFragment investmentWebViewFragment, Heg heg) { FragmentActivity activity; C14957gcv.e(investmentWebViewFragment, ""); if (heg.e == -1 || (activity = investmentWebViewFragment.getActivity()) == null) { return; } activity.finish(); } public static /* synthetic */ void d(InvestmentWebViewFragment investmentWebViewFragment) { C14957gcv.e(investmentWebViewFragment, ""); SCBWebView sCBWebView = investmentWebViewFragment.webViewContent; if (sCBWebView == null) { C14957gcv.a(""); sCBWebView = null; } SCBWebView.a(sCBWebView, new Sts()); } public static /* synthetic */ void b(InvestmentWebViewFragment investmentWebViewFragment, Heg heg) { C14957gcv.e(investmentWebViewFragment, ""); if (heg.e == -1) { C5758bzB c5758bzB = investmentWebViewFragment.investmentWebViewPresenter; if (c5758bzB == null) { C14957gcv.a(""); c5758bzB = null; } Intent intent = heg.b; String stringExtra = intent != null ? intent.getStringExtra("riskPopupResult") : null; if (stringExtra != null) { final boolean z = false; final boolean z2 = true; switch (stringExtra.hashCode()) { case -979979291: if (stringExtra.equals("newRefreshInvestments")) { ZI.IeS ieS = new ZI.IeS(z2) { // from class: o.bzN private boolean b; @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9386dik.Sts) obj).c(); } { this.b = z2; } }; if (c5758bzB.f != 0) { ieS.e(c5758bzB.f); return; } return; } return; case -470334292: if (stringExtra.equals("oldRefreshInvestments")) { ZI.IeS ieS2 = new ZI.IeS(z) { // from class: o.bzN private boolean b; @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9386dik.Sts) obj).c(); } { this.b = z; } }; if (c5758bzB.f != 0) { ieS2.e(c5758bzB.f); return; } return; } return; case -16474303: if (stringExtra.equals("oldSelectLevel")) { c5758bzB.a(false); return; } return; case 700509736: if (stringExtra.equals("newSelectLevel")) { c5758bzB.a(true); return; } return; default: return; } } } } public static /* synthetic */ void e(InvestmentWebViewFragment investmentWebViewFragment, Heg heg) { C14957gcv.e(investmentWebViewFragment, ""); Intent intent = heg.b; boolean booleanExtra = intent != null ? intent.getBooleanExtra("showPopup", false) : false; ON on = null; C5758bzB c5758bzB = null; if (heg.e == -1) { C5758bzB c5758bzB2 = investmentWebViewFragment.investmentWebViewPresenter; if (c5758bzB2 != null) { c5758bzB = c5758bzB2; } else { C14957gcv.a(""); } ZI.IeS ieS = new ZI.IeS() { // from class: o.bAe @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9386dik.Sts) obj).a(); } }; if (c5758bzB.f != 0) { ieS.e(c5758bzB.f); return; } return; } if (heg.b == null || !booleanExtra) { return; } C5758bzB c5758bzB3 = investmentWebViewFragment.investmentWebViewPresenter; if (c5758bzB3 == null) { C14957gcv.a(""); c5758bzB3 = null; } C16174ltE c16174ltE = c5758bzB3.a; if (c16174ltE == null) { C14957gcv.a(""); c16174ltE = null; } ON on2 = c5758bzB3.b; if (on2 == null) { C14957gcv.a(""); } else { on = on2; } c5758bzB3.d(c16174ltE, on); } public static /* synthetic */ void c(InvestmentWebViewFragment investmentWebViewFragment, Heg heg) { C14957gcv.e(investmentWebViewFragment, ""); C5758bzB c5758bzB = investmentWebViewFragment.investmentWebViewPresenter; if (c5758bzB == null) { C14957gcv.a(""); c5758bzB = null; } Intent intent = heg.b; C5780bzX c5780bzX = new C5780bzX(c5758bzB, intent != null ? intent.getStringExtra("EXTRA_CALL_BACK_URL") : null); if (c5758bzB.f != 0) { c5780bzX.e(c5758bzB.f); } } @Override // com.scb.phone.view.fragment.webview.BaseWebViewFragment public final /* synthetic */ fLU bb_() { return (C12953fMa) this.k.e(); } @Override // com.scb.phone.view.fragment.webview.BaseWebViewFragment public final /* synthetic */ WebView ayA_() { SCBWebView sCBWebView = this.webViewContent; if (sCBWebView == null) { C14957gcv.a(""); sCBWebView = null; } return sCBWebView; } /* loaded from: classes5.dex */ static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR { public static final RVV b = new RVV(); @Override // o.InterfaceC14894gbR public final Object invoke(Object obj) { return null; } RVV() { super(1); } } @Override // com.scb.phone.view.fragment.webview.BaseWebViewFragment public final String g() { return "WebviewJS"; } public static final Fragment b(mfY mfy) { return LWm.b(null, mfy); } }