package com.scb.phone.view.fragment.hml; import android.content.Context; import android.widget.Button; import android.widget.TextView; import androidx.fragment.app.FragmentActivity; import butterknife.OnClick; import com.scb.phone.R; import com.scb.phone.view.activity.BaseActivity; import com.scb.phone.view.activity.PreLoadCheckActivity; import o.AbstractC5117bmw; import o.C14957gcv; import o.C5435bsw; import o.InterfaceC13391fZD; import o.NS; import o.ZI; /* loaded from: classes5.dex */ public final class HmlNTBOnlineSuccessFragment extends Hilt_HmlNTBOnlineSuccessFragment { public static final HBt c = new HBt(0); @InterfaceC13391fZD public C5435bsw hmlNTBOnlineSuccessPresenter; /* loaded from: classes5.dex */ public static final class HBt { private HBt() { } public /* synthetic */ HBt(byte b) { this(); } } @Override // com.scb.phone.view.fragment.hml.HmlBaseOnlineSuccessFragment, o.InterfaceC9298dhB public final void d(NS ns) { C14957gcv.e(ns, ""); super.d(ns); Button button = this.saveSlip; TextView textView = null; if (button == null) { C14957gcv.a(""); button = null; } button.setVisibility(0); Button button2 = this.returnToHome; if (button2 == null) { C14957gcv.a(""); button2 = null; } button2.setVisibility(8); Button button3 = this.registerButton; if (button3 == null) { C14957gcv.a(""); button3 = null; } button3.setVisibility(0); TextView textView2 = this.remarkTextView; if (textView2 != null) { textView = textView2; } else { C14957gcv.a(""); } textView.setText(getString(R.string.hml_success_remark_ntb)); } @OnClick public final void onRegisterClick() { final C5435bsw c5435bsw = (C5435bsw) ((AbstractC5117bmw) ((HmlBaseOnlineSuccessFragment) this).d.e()); ZI.IeS ieS = new ZI.IeS(c5435bsw) { // from class: o.bsA private C5435bsw c; @Override // o.ZI.IeS public final void e(Object obj) { C5435bsw.a(this.c, (InterfaceC9298dhB) obj); } { this.c = c5435bsw; } }; if (c5435bsw.f != 0) { ieS.e(c5435bsw.f); } } @Override // o.InterfaceC9298dhB public final void f() { if (getActivity() instanceof BaseActivity) { FragmentActivity activity = getActivity(); C14957gcv.d(activity, ""); PreLoadCheckActivity.f(new Object[]{(BaseActivity) activity}, -777832112, 777832142, ((Context) Class.forName("android.app.ActivityThread").getMethod("currentApplication", new Class[0]).invoke(null, null)).getApplicationContext().getResources().getString(R.string.mw_create_qr_shop_remark).substring(0, 41).length() - 1709575373); } } @Override // o.InterfaceC9298dhB public final void i() { aH_(); } @Override // com.scb.phone.view.fragment.hml.HmlBaseOnlineSuccessFragment public final /* synthetic */ AbstractC5117bmw g() { C5435bsw c5435bsw = this.hmlNTBOnlineSuccessPresenter; if (c5435bsw == null) { C14957gcv.a(""); c5435bsw = null; } return c5435bsw; } }