package com.scb.phone.view.fragment.juristic; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.TextView; import androidx.fragment.app.FragmentActivity; import butterknife.BindView; import butterknife.ButterKnife; import com.scb.phone.R; import com.scb.phone.view.activity.BaseActivity; import com.scb.phone.view.activity.juristic.JuristicRequestFormSuccessfulActivity; import com.scb.phone.view.fragment.BaseFragment; import com.scb.phone.view.fragment.juristic.JuristicRequestFormSuccessfulFragment; import o.AbstractC14961gcz; import o.C14957gcv; import o.C3935bLS; import o.EnumC8951daY; import o.InterfaceC13391fZD; import o.InterfaceC13393fZL; import o.InterfaceC14890gbN; import o.InterfaceC9435djg; import o.QW; import o.ZI; import o.fZZ; import o.syn; /* loaded from: classes5.dex */ public final class JuristicRequestFormSuccessfulFragment extends Hilt_JuristicRequestFormSuccessfulFragment implements InterfaceC9435djg { public static final IeS d = new IeS(0); @BindView public Button btBackToHome; private final View.OnClickListener c; private final InterfaceC13393fZL h; private QW i; @InterfaceC13391fZD public C3935bLS presenter; @BindView public TextView tvSentEmail; @BindView public TextView tvSentTime; public JuristicRequestFormSuccessfulFragment() { Sts sts = Sts.a; C14957gcv.e(sts, ""); this.h = new fZZ(sts); this.c = new View.OnClickListener(this) { // from class: o.flg private JuristicRequestFormSuccessfulFragment d; @Override // android.view.View.OnClickListener public final void onClick(View view) { JuristicRequestFormSuccessfulFragment.d(this.d); } { this.d = this; } }; } /* loaded from: classes5.dex */ public static final class IeS { private IeS() { } public /* synthetic */ IeS(byte b) { this(); } } @Override // androidx.fragment.app.Fragment public final void onCreate(Bundle bundle) { super.onCreate(bundle); Bundle arguments = getArguments(); if (arguments != null) { this.i = (QW) arguments.getParcelable("DISPLAY"); } } @Override // androidx.fragment.app.Fragment public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { C14957gcv.e(layoutInflater, ""); View inflate = layoutInflater.inflate(R.layout.2131559739, viewGroup, false); ((BaseFragment) this).a = ButterKnife.c(this, inflate); return inflate; } @Override // androidx.fragment.app.Fragment public final void onViewCreated(View view, Bundle bundle) { C14957gcv.e(view, ""); super.onViewCreated(view, bundle); C3935bLS c3935bLS = this.presenter; C3935bLS c3935bLS2 = null; if (c3935bLS == null) { C14957gcv.a(""); c3935bLS = null; } c3935bLS.e((C3935bLS) this); Button button = this.btBackToHome; if (button == null) { C14957gcv.a(""); button = null; } button.setOnClickListener(this.c); final QW qw = this.i; if (qw != null) { C3935bLS c3935bLS3 = this.presenter; if (c3935bLS3 != null) { c3935bLS2 = c3935bLS3; } else { C14957gcv.a(""); } C14957gcv.e(qw, ""); ZI.IeS ieS = new ZI.IeS(qw) { // from class: o.bLR private QW c; @Override // o.ZI.IeS public final void e(Object obj) { C3935bLS.c(this.c, (InterfaceC9435djg) obj); } { this.c = qw; } }; if (c3935bLS2.f != 0) { ieS.e(c3935bLS2.f); } } syn synVar = (syn) this.h.e(); if (getActivity() != null) { synVar.c(((BaseActivity) getActivity()).scbAnalytics, "juristic_successfully_sent"); } } @Override // o.InterfaceC9435djg public final void c() { FragmentActivity activity = getActivity(); if (activity != null) { FragmentActivity fragmentActivity = activity; String string = activity.getString(R.string.juristic_request_form_successful_plain_jane); EnumC8951daY enumC8951daY = EnumC8951daY.SUCCESS; if (getActivity() != null) { BaseActivity.a(new Object[]{(BaseActivity) getActivity(), fragmentActivity, Integer.valueOf(R.id.cl_juristic_request_form_successful_container), string, enumC8951daY}, 855668825, -855668822, R.id.cl_juristic_request_form_successful_container); } } } @Override // o.InterfaceC9435djg public final void c(String str) { C14957gcv.e(str, ""); TextView textView = this.tvSentEmail; if (textView == null) { C14957gcv.a(""); textView = null; } textView.setText(str); } @Override // o.InterfaceC9435djg public final void a(String str) { C14957gcv.e(str, ""); TextView textView = this.tvSentTime; if (textView == null) { C14957gcv.a(""); textView = null; } textView.setText(str); } @Override // o.InterfaceC9435djg public final void d() { FragmentActivity activity = getActivity(); if (activity != null) { JuristicRequestFormSuccessfulActivity juristicRequestFormSuccessfulActivity = activity instanceof JuristicRequestFormSuccessfulActivity ? (JuristicRequestFormSuccessfulActivity) activity : null; if (juristicRequestFormSuccessfulActivity != null) { juristicRequestFormSuccessfulActivity.j(false); } } } @Override // o.InterfaceC9435djg public final void b() { FragmentActivity activity = getActivity(); if (activity != null) { JuristicRequestFormSuccessfulActivity juristicRequestFormSuccessfulActivity = activity instanceof JuristicRequestFormSuccessfulActivity ? (JuristicRequestFormSuccessfulActivity) activity : null; if (juristicRequestFormSuccessfulActivity != null) { juristicRequestFormSuccessfulActivity.j(false); } } } /* loaded from: classes5.dex */ static final class Sts extends AbstractC14961gcz implements InterfaceC14890gbN { public static final Sts a = new Sts(); @Override // o.InterfaceC14890gbN public final /* synthetic */ syn invoke() { return new syn(); } Sts() { super(0); } } public static /* synthetic */ void d(JuristicRequestFormSuccessfulFragment juristicRequestFormSuccessfulFragment) { C14957gcv.e(juristicRequestFormSuccessfulFragment, ""); C3935bLS c3935bLS = juristicRequestFormSuccessfulFragment.presenter; if (c3935bLS == null) { C14957gcv.a(""); c3935bLS = null; } int i = C3935bLS.HBt.e[c3935bLS.a.d().ordinal()]; if (i == 1) { ZI.IeS ieS = new ZI.IeS() { // from class: o.bLV @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9435djg) obj).d(); } }; if (c3935bLS.f != 0) { ieS.e(c3935bLS.f); return; } return; } if (i == 2) { ZI.IeS ieS2 = new ZI.IeS() { // from class: o.bLT @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9435djg) obj).b(); } }; if (c3935bLS.f != 0) { ieS2.e(c3935bLS.f); } } } }