package com.scb.phone.view.fragment.hml.submission; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import butterknife.BindView; import com.scb.phone.R; import com.scb.phone.view.activity.hml.HmlNTBApplicationOutcomeActivity; import com.scb.phone.view.activity.hml.HmlNTBConsentActivity; import com.scb.phone.view.activity.hml.HmlNTBDocumentListActivity; import com.scb.phone.view.custom.common.ProgressStateBar; import o.C0791Oq; import o.C14875gap; import o.C14957gcv; import o.C5668bxR; import o.EnumC5550bvF; import o.OVB; import o.YNc; import o.pug; /* loaded from: classes5.dex */ public final class HmlNTBDocumentSubmissionFragment extends Hilt_HmlNTBDocumentSubmissionFragment { public static final HBt c = new HBt(0); @BindView public ProgressStateBar breadcrumbsNtb; /* loaded from: classes5.dex */ public static final class HBt { private HBt() { } public static HmlNTBDocumentSubmissionFragment d(EnumC5550bvF enumC5550bvF) { C14957gcv.e(enumC5550bvF, ""); HmlNTBDocumentSubmissionFragment hmlNTBDocumentSubmissionFragment = new HmlNTBDocumentSubmissionFragment(); Bundle bundle = new Bundle(); bundle.putParcelable("HML_SUBMISSTION_TYPE", enumC5550bvF); hmlNTBDocumentSubmissionFragment.setArguments(bundle); return hmlNTBDocumentSubmissionFragment; } public /* synthetic */ HBt(byte b) { this(); } } @Override // com.scb.phone.view.fragment.hml.submission.HmlDocumentSubmissionFragment, androidx.fragment.app.Fragment public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { C14957gcv.e(layoutInflater, ""); View onCreateView = super.onCreateView(layoutInflater, viewGroup, bundle); C5668bxR c5668bxR = this.presenter; if (c5668bxR == null) { C14957gcv.a(""); c5668bxR = null; } EnumC5550bvF enumC5550bvF = c5668bxR.a; if (enumC5550bvF == null) { C14957gcv.a(""); enumC5550bvF = null; } if (enumC5550bvF == EnumC5550bvF.SUBMISSION) { ProgressStateBar progressStateBar = this.breadcrumbsNtb; if (progressStateBar == null) { C14957gcv.a(""); progressStateBar = null; } String[] stringArray = progressStateBar.getResources().getStringArray(R.array.2130903050); C14957gcv.c(stringArray, ""); progressStateBar.setStates(C14875gap.d(stringArray)); progressStateBar.setVisibility(0); progressStateBar.setCurrentState(2); } Bundle arguments = getArguments(); EnumC5550bvF enumC5550bvF2 = arguments != null ? (EnumC5550bvF) arguments.getParcelable("HML_SUBMISSTION_TYPE") : null; if (enumC5550bvF2 == null) { enumC5550bvF2 = EnumC5550bvF.SUBMISSION; } d(enumC5550bvF2); return onCreateView; } @Override // com.scb.phone.view.fragment.hml.submission.HmlDocumentSubmissionFragment protected final void d(EnumC5550bvF enumC5550bvF) { C14957gcv.e(enumC5550bvF, ""); pug[] pugVarArr = new pug[3]; pugVarArr[0] = new pug("user_type", "ntb"); pugVarArr[1] = new pug("feature", "your_loan"); pugVarArr[2] = new pug("document_status", enumC5550bvF == EnumC5550bvF.SUBMISSION ? "INITIAL" : "RESUBMIT"); c("document_submission", pugVarArr); } @Override // com.scb.phone.view.fragment.hml.submission.HmlDocumentSubmissionFragment, o.InterfaceC9314dhR public final void b(C0791Oq c0791Oq, YNc.HBt hBt) { C14957gcv.e(c0791Oq, ""); C14957gcv.e(hBt, ""); HmlNTBDocumentListActivity.LWm lWm = HmlNTBDocumentListActivity.f7297o; Context requireContext = requireContext(); C14957gcv.c(requireContext, ""); C14957gcv.e(requireContext, ""); C14957gcv.e(c0791Oq, ""); C14957gcv.e(hBt, ""); Intent putExtra = new Intent(requireContext, (Class) HmlNTBDocumentListActivity.class).putExtra("HML_DOC_INFO", c0791Oq).putExtra("HML_DOC_FILE_VALIDATION_LIMIT", hBt); C14957gcv.c(putExtra, ""); startActivity(putExtra); } @Override // com.scb.phone.view.fragment.hml.submission.HmlDocumentSubmissionFragment, o.InterfaceC9314dhR public final void a() { HmlNTBConsentActivity.LWm lWm = HmlNTBConsentActivity.k; Context requireContext = requireContext(); C14957gcv.c(requireContext, ""); startActivity(HmlNTBConsentActivity.LWm.afY_(requireContext, OVB.NCB_CONSENT, null)); } @Override // com.scb.phone.view.fragment.hml.submission.HmlDocumentSubmissionFragment, o.InterfaceC9314dhR public final void d() { Context context = getContext(); if (context != null) { HmlNTBApplicationOutcomeActivity.LWm lWm = HmlNTBApplicationOutcomeActivity.b; C14957gcv.e(context, ""); Intent putExtra = new Intent(context, (Class) HmlNTBApplicationOutcomeActivity.class).putExtra("SHOW_PENDING_STATE", false); C14957gcv.c(putExtra, ""); startActivity(putExtra); } } @Override // com.scb.phone.view.fragment.hml.submission.HmlDocumentSubmissionFragment public final String g() { return "ntb"; } }