package com.scb.phone.view.fragment.transferandpay; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import butterknife.BindView; import butterknife.ButterKnife; import com.scb.phone.R; import com.scb.phone.view.fragment.BaseFragment; import com.scb.phone.view.fragment.transferandpay.BNPLErrorPageFragment; import o.C14957gcv; import o.InterfaceC13391fZD; import o.InterfaceC16541pFg; import o.InterfaceC9656dns; import o.InterfaceC9660dnw; import o.ZI; import o.cNX; /* loaded from: classes5.dex */ public final class BNPLErrorPageFragment extends Hilt_BNPLErrorPageFragment implements InterfaceC9660dnw { public static final Sts c = new Sts(0); private boolean d; @InterfaceC13391fZD public cNX presenter; @BindView public TextView tvApplyLoan; @BindView public TextView tvDescription; /* loaded from: classes5.dex */ public static final class Sts { private Sts() { } public /* synthetic */ Sts(byte b) { this(); } } @Override // androidx.fragment.app.Fragment public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { C14957gcv.e(layoutInflater, ""); Bundle arguments = getArguments(); if (arguments != null) { this.d = arguments.getBoolean("ERROR_RELOAD", false); } return layoutInflater.inflate(R.layout.2131559637, viewGroup, false); } @Override // androidx.fragment.app.Fragment public final void onViewCreated(View view, Bundle bundle) { C14957gcv.e(view, ""); super.onViewCreated(view, bundle); ((BaseFragment) this).a = ButterKnife.c(this, view); cNX cnx = this.presenter; if (cnx == null) { C14957gcv.a(""); cnx = null; } cnx.e((cNX) this); final boolean z = this.d; ZI.IeS ieS = new ZI.IeS(z) { // from class: o.cNY private boolean c; @Override // o.ZI.IeS public final void e(Object obj) { cNX.d(this.c, (InterfaceC9660dnw) obj); } { this.c = z; } }; if (cnx.f != 0) { ieS.e(cnx.f); } } @Override // o.InterfaceC9660dnw public final void d() { TextView textView = this.tvDescription; TextView textView2 = null; if (textView == null) { C14957gcv.a(""); textView = null; } textView.setText(R.string.billpayment_bnpl_error_reload); TextView textView3 = this.tvApplyLoan; if (textView3 != null) { textView2 = textView3; } else { C14957gcv.a(""); } TextView textView4 = textView2; C14957gcv.e(textView4, ""); textView4.setVisibility(0); textView2.setText(R.string.billpayment_bnpl_error_reload_btn); textView2.setOnClickListener(new View.OnClickListener(this) { // from class: o.fCp private BNPLErrorPageFragment e; @Override // android.view.View.OnClickListener public final void onClick(View view) { BNPLErrorPageFragment.d(this.e); } { this.e = this; } }); } @Override // o.InterfaceC9660dnw public final void e() { TextView textView = this.tvApplyLoan; TextView textView2 = null; if (textView == null) { C14957gcv.a(""); textView = null; } TextView textView3 = textView; C14957gcv.e(textView3, ""); textView3.setVisibility(8); TextView textView4 = this.tvDescription; if (textView4 != null) { textView2 = textView4; } else { C14957gcv.a(""); } textView2.setText(R.string.billpayment_bnpl_error_merchant); } public static /* synthetic */ void d(BNPLErrorPageFragment bNPLErrorPageFragment) { C14957gcv.e(bNPLErrorPageFragment, ""); InterfaceC16541pFg parentFragment = bNPLErrorPageFragment.getParentFragment(); if (parentFragment == null || !(parentFragment instanceof InterfaceC9656dns)) { return; } ((InterfaceC9656dns) parentFragment).e(); } }