package com.scb.phone.view.fragment.ntb; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.scb.phone.R; import com.scb.phone.view.activity.HomeActivity; import com.scb.phone.view.activity.demo.ntb.NTBLandingActivity; import com.scb.phone.view.activity.etb.ETBWelcomeAboardActivity; import com.scb.phone.view.activity.ndid.NdidLandingActivity; import com.scb.phone.view.activity.ndidcommon.NdidCommonLandingActivity; import com.scb.phone.view.activity.ntb.NTBActivity; import com.scb.phone.view.activity.ntb.NtbOpenAccountLandingActivity; import com.scb.phone.view.activity.ntb.ReviewInfoResultActivity; import com.scb.phone.view.activity.ntb.touchpoint.DisclaimerActivity; import com.scb.phone.view.custom.common.CustomDialog; import com.scb.phone.view.fragment.ntb.EkycRouterDialogFragment; import java.util.List; import o.C0566Jp; import o.C0693Mj; import o.C0907Rf; import o.C6873cdd; import o.InterfaceC13391fZD; import o.InterfaceC8954dab; import o.InterfaceC9505dkx; import o.cXH; import o.gjJ; /* loaded from: classes5.dex */ public class EkycRouterDialogFragment extends Hilt_EkycRouterDialogFragment implements InterfaceC8954dab.ojQ { @InterfaceC13391fZD public C6873cdd ekycRouterPresenter; @InterfaceC13391fZD public InterfaceC9505dkx iDeviceCompatibilityHelper; @Override // androidx.fragment.app.Fragment public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { getDialog().hide(); this.ekycRouterPresenter.e((C6873cdd) this); Bundle arguments = getArguments(); if (arguments != null && arguments.containsKey("INTRODUCTION_LIST")) { this.ekycRouterPresenter.d(arguments.getParcelableArrayList("INTRODUCTION_LIST")); } else if (arguments != null && arguments.containsKey("TOUCHPOINT_SHOULD_NAVIGATE_TO_REGISTRATION_METHOD")) { this.ekycRouterPresenter.b(arguments.getBoolean("TOUCHPOINT_SHOULD_NAVIGATE_TO_REGISTRATION_METHOD")); } else if (arguments != null && arguments.containsKey("NAVIGATE_BACK")) { this.ekycRouterPresenter.c(); } else { this.ekycRouterPresenter.j(); } return super.onCreateView(layoutInflater, viewGroup, bundle); } @Override // o.InterfaceC8954dab.ojQ public final void m() { Bundle arguments = getArguments(); C0907Rf.Sts sts = (arguments == null || !arguments.containsKey("com.scb.phone.EXTRA_REGISTRATION_TILE_DATA")) ? null : (C0907Rf.Sts) arguments.getParcelable("com.scb.phone.EXTRA_REGISTRATION_TILE_DATA"); if (sts != null) { if (arguments.containsKey("INTRODUCTION_LIST") && arguments.containsKey("com.scb.phone.EXTRA_REGISTRATION_FROM_NTB_USER_INFO")) { NtbOpenAccountLandingActivity.a(getActivity(), sts, arguments.getParcelableArrayList("INTRODUCTION_LIST"), arguments.getBoolean("com.scb.phone.EXTRA_REGISTRATION_FROM_NTB_USER_INFO")); } else { NtbOpenAccountLandingActivity.c(getActivity(), sts); } dismiss(); return; } g(); } @Override // o.InterfaceC8954dab.ojQ public final void i() { if (this.iDeviceCompatibilityHelper.d() && getContext() != null) { Intent ajh_ = NdidLandingActivity.ajh_(getContext(), ""); ajh_.addFlags(268435456); startActivity(ajh_); } else { f(); } dismiss(); } @Override // o.InterfaceC8954dab.ojQ public final void j() { if (this.iDeviceCompatibilityHelper.d() && getContext() != null) { Object[] objArr = {getContext(), this.ekycRouterPresenter.b()}; Intent intent = (Intent) NdidCommonLandingActivity.d(objArr); intent.addFlags(268435456); startActivity(intent); } else { f(); } dismiss(); } @Override // o.InterfaceC8954dab.ojQ public final void g() { if (!this.iDeviceCompatibilityHelper.a()) { f(); } else { Intent intent = new Intent(getContext(), (Class) NTBActivity.class); intent.addFlags(268435456); startActivity(intent); } dismiss(); } @Override // o.InterfaceC8954dab.ojQ public final void f() { Intent intent = new Intent(getContext(), (Class) ReviewInfoResultActivity.class); intent.addFlags(268435456); intent.putExtra("EXTRA_IMAGE_ID", R.drawable.ic_notice); intent.putExtra("EXTRA_PAGE_TITLE", getString(R.string.ntb_fillinformation_review_info_result_title_page)); intent.putExtra("EXTRA_TITLE", getString(R.string.ntb_phone_not_supported_title)); intent.putExtra("EXTRA_DESCRIPTION", getString(R.string.ntb_phone_not_supported_description)); startActivity(intent); dismiss(); } @Override // o.InterfaceC8954dab.ojQ public final void b(final boolean z) { ((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(getContext()).c(R.string.ntb_resume_popup_title).d(R.string.ntb_resume_popup_description), Integer.valueOf(R.string.ntb_resume_popup_start_over), new DialogInterface.OnClickListener(this) { // from class: o.fpI private EkycRouterDialogFragment c; @Override // android.content.DialogInterface.OnClickListener public final void onClick(DialogInterface dialogInterface, int i) { this.c.ekycRouterPresenter.g(); } { this.c = this; } }})).aoT_(R.string.ntb_resume_popup_resume, new DialogInterface.OnClickListener(this, z) { // from class: o.fpK private boolean b; private EkycRouterDialogFragment d; @Override // android.content.DialogInterface.OnClickListener public final void onClick(DialogInterface dialogInterface, int i) { EkycRouterDialogFragment.a(this.d, this.b); } { this.d = this; this.b = z; } }).show(); } @Override // o.InterfaceC8954dab.ojQ public final void c() { C6873cdd c6873cdd = this.ekycRouterPresenter; C6873cdd.c(new Object[]{c6873cdd}, 1838473625, -1838473625, System.identityHashCode(c6873cdd)); } @Override // o.InterfaceC8954dab.ojQ public final void a(C0693Mj c0693Mj) { CustomDialog b = CustomDialog.b(getContext()); String str = c0693Mj.d; if (gjJ.a(str)) { b.mTitleTextView.setVisibility(0); b.mTitleTextView.setText(str); } String str2 = c0693Mj.c; if (gjJ.a(str2)) { b.mTextTextView.setVisibility(0); b.mTextTextView.setText(str2); } b.aoU_(getString(R.string.ok), new DialogInterface.OnClickListener(this) { // from class: o.fpL private EkycRouterDialogFragment b; @Override // android.content.DialogInterface.OnClickListener public final void onClick(DialogInterface dialogInterface, int i) { this.b.ekycRouterPresenter.d(); } { this.b = this; } }).show(); } @Override // o.InterfaceC8954dab.ojQ public final void e(List list) { if (getContext() != null) { getContext().startActivity((Intent) NTBLandingActivity.d(new Object[]{getContext(), list}, -1239175422, 1239175424, (int) System.currentTimeMillis())); } } @Override // o.InterfaceC8954dab.ojQ public final void d() { dismiss(); } @Override // o.InterfaceC8954dab.ojQ public final void b() { Bundle arguments = getArguments(); if (arguments == null || !arguments.containsKey("com.scb.phone.EXTRA_REGISTRATION_TILE_DATA")) { return; } startActivity(DisclaimerActivity.ajC_(requireContext(), cXH.HBt.IeS.RESUME_FLOW.name(), arguments)); } @Override // o.InterfaceC8954dab.ojQ public final void h() { startActivity(NTBLandingActivity.adR_(getContext(), false)); } @Override // o.InterfaceC8954dab.ojQ public final void e() { startActivity((Intent) HomeActivity.e(new Object[]{getContext()}, -1290522472, 1290522474, (int) System.currentTimeMillis())); } @Override // o.InterfaceC8954dab.ojQ public final void a() { ETBWelcomeAboardActivity.b(getContext(), null, null); } @Override // com.scb.phone.view.fragment.BaseDialogFragment, androidx.fragment.app.Fragment public void onDestroy() { this.ekycRouterPresenter.w_(); super.onDestroy(); } public static /* synthetic */ void a(EkycRouterDialogFragment ekycRouterDialogFragment, boolean z) { if (z) { C6873cdd c6873cdd = ekycRouterDialogFragment.ekycRouterPresenter; C6873cdd.c(new Object[]{c6873cdd}, 1838473625, -1838473625, System.identityHashCode(c6873cdd)); return; } if (!ekycRouterDialogFragment.iDeviceCompatibilityHelper.a()) { ekycRouterDialogFragment.f(); } else { Intent intent = new Intent(ekycRouterDialogFragment.getContext(), (Class) NTBActivity.class); intent.addFlags(268435456); ekycRouterDialogFragment.startActivity(intent); } ekycRouterDialogFragment.dismiss(); } @Override // o.InterfaceC8954dab.ojQ public final void l() { Intent intent = new Intent(getContext(), (Class) NTBActivity.class); intent.addFlags(268435456); startActivity(intent); dismiss(); } }