package com.scb.phone.view.fragment.insurance; 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 android.widget.ImageView; import android.widget.TextView; import androidx.fragment.app.FragmentActivity; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; import com.scb.phone.R; import com.scb.phone.view.activity.insurance.RequestEPolicySuccessActivity; import com.scb.phone.view.custom.common.CustomDialog; import com.scb.phone.view.fragment.BaseFragment; import com.scb.phone.view.fragment.insurance.RequestEPolicyReviewFragment; import o.C0690Mh; import o.C0804Oy; import o.C10456eEq; import o.C13396fZU; import o.C14957gcv; import o.C15916ja; import o.C16903sI; import o.C5713byJ; import o.CDU; import o.G; import o.InterfaceC13391fZD; import o.InterfaceC9376dia; import o.PNS; import o.QYj; import o.RBw; import o.SYy; import o.ZI; /* loaded from: classes5.dex */ public final class RequestEPolicyReviewFragment extends Hilt_RequestEPolicyReviewFragment implements InterfaceC9376dia.HBt { public static final RVV c = new RVV(0); @BindView public ImageView ivPartnerIcon; @BindView public ImageView ivProductTypeIcon; @InterfaceC13391fZD public C5713byJ reviewPresenter; @BindView public TextView tvEffectiveDate; @BindView public TextView tvInsuranceRequestEmail; @BindView public TextView tvPolicyNo; @BindView public TextView tvProductName; @BindView public TextView tvProductTypeName; @Override // androidx.fragment.app.Fragment public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { C14957gcv.e(layoutInflater, ""); return layoutInflater.inflate(R.layout.2131559731, 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); final C5713byJ c5713byJ = this.reviewPresenter; if (c5713byJ == null) { C14957gcv.a(""); c5713byJ = null; } c5713byJ.e((C5713byJ) this); Bundle arguments = getArguments(); if (arguments != null) { final C0804Oy c0804Oy = (C0804Oy) arguments.getParcelable("EXTRA_POLICY_INFO_DISPLAY"); final String string = arguments.getString("EXTRA_EMAIL"); final Boolean valueOf = Boolean.valueOf(arguments.getBoolean("EXTRA_HAS_EMAIL_VERIFIED")); ZI.IeS ieS = new ZI.IeS(c0804Oy, c5713byJ, string, valueOf) { // from class: o.byR private Boolean a; private C0804Oy b; private C5713byJ c; private String d; @Override // o.ZI.IeS public final void e(Object obj) { C5713byJ.a(this.b, this.c, this.d, this.a, (InterfaceC9376dia.HBt) obj); } { this.b = c0804Oy; this.c = c5713byJ; this.d = string; this.a = valueOf; } }; if (c5713byJ.f != 0) { ieS.e(c5713byJ.f); } } } @Override // o.InterfaceC9376dia.HBt public final void c(C0804Oy c0804Oy) { C14957gcv.e(c0804Oy, ""); ImageView imageView = this.ivProductTypeIcon; TextView textView = null; if (imageView == null) { C14957gcv.a(""); imageView = null; } C10456eEq.aqe_(imageView, c0804Oy.k, new PNS().c(R.drawable.biller_place_holder).a(R.drawable.biller_place_holder).c(RBw.d, new CDU())); ImageView imageView2 = this.ivPartnerIcon; if (imageView2 == null) { C14957gcv.a(""); imageView2 = null; } C10456eEq.aqe_(imageView2, c0804Oy.f, new PNS().c(R.drawable.biller_place_holder).a(R.drawable.biller_place_holder).c(RBw.d, new CDU())); TextView textView2 = this.tvProductTypeName; if (textView2 == null) { C14957gcv.a(""); textView2 = null; } textView2.setText(c0804Oy.l); TextView textView3 = this.tvProductName; if (textView3 == null) { C14957gcv.a(""); textView3 = null; } textView3.setText(c0804Oy.j); TextView textView4 = this.tvPolicyNo; if (textView4 == null) { C14957gcv.a(""); textView4 = null; } textView4.setText(c0804Oy.g); TextView textView5 = this.tvEffectiveDate; if (textView5 != null) { textView = textView5; } else { C14957gcv.a(""); } textView.setText(c0804Oy.e); } @Override // o.InterfaceC9376dia.HBt public final void d(String str) { C14957gcv.e(str, ""); TextView textView = this.tvInsuranceRequestEmail; if (textView == null) { C14957gcv.a(""); textView = null; } textView.setText(str); } @Override // o.InterfaceC9376dia.HBt public final void c() { final FragmentActivity activity = getActivity(); if (activity != null) { CustomDialog.b(activity).c(R.string.auto_insurance_verify_email_pop_up_title).d(R.string.auto_insurance_verify_email_pop_up_description).aoT_(R.string.ok, new DialogInterface.OnClickListener(activity) { // from class: o.ffu private FragmentActivity d; @Override // android.content.DialogInterface.OnClickListener public final void onClick(DialogInterface dialogInterface, int i) { RequestEPolicyReviewFragment.aun_(this.d, dialogInterface); } { this.d = activity; } }).show(); } } @Override // o.InterfaceC9376dia.HBt public final void a() { C5713byJ c5713byJ = this.reviewPresenter; if (c5713byJ == null) { C14957gcv.a(""); c5713byJ = null; } C0690Mh.IeS ieS = C0690Mh.IeS.NAVIGATE_BACK; C16903sI c16903sI = c5713byJ.j; c5713byJ.d(c16903sI.c((String) null, c16903sI.e(R.string.error_generic_resource), ieS)); } @Override // o.InterfaceC9376dia.HBt public final void c(C0804Oy c0804Oy, String str) { C14957gcv.e(c0804Oy, ""); C14957gcv.e(str, ""); FragmentActivity activity = getActivity(); if (activity != null) { RequestEPolicySuccessActivity.RVV rvv = RequestEPolicySuccessActivity.m; FragmentActivity fragmentActivity = activity; C14957gcv.e(fragmentActivity, ""); C14957gcv.e(c0804Oy, ""); C14957gcv.e(str, ""); Intent intent = new Intent(fragmentActivity, (Class) RequestEPolicySuccessActivity.class); intent.putExtra("EXTRA_POLICY_INFO_DISPLAY", c0804Oy); intent.putExtra("EXTRA_EMAIL", str); startActivity(intent); activity.finish(); } } @Override // o.InterfaceC9376dia.HBt public final void b(C13396fZU c13396fZU) { C14957gcv.e(c13396fZU, ""); g(c13396fZU); } @Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment public final void onDestroy() { super.onDestroy(); C5713byJ c5713byJ = this.reviewPresenter; if (c5713byJ == null) { C14957gcv.a(""); c5713byJ = null; } c5713byJ.w_(); } @OnClick public final void onClickPay() { final C5713byJ c5713byJ = this.reviewPresenter; C0804Oy c0804Oy = null; if (c5713byJ == null) { C14957gcv.a(""); c5713byJ = null; } if (c5713byJ.f != 0) { c5713byJ.f.y(); } ZI.IeS ieS = new ZI.IeS(c5713byJ) { // from class: o.byL private C5713byJ d; @Override // o.ZI.IeS public final void e(Object obj) { C5713byJ.e(this.d, (InterfaceC9376dia.HBt) obj); } { this.d = c5713byJ; } }; if (c5713byJ.f != 0) { ieS.e(c5713byJ.f); } C0804Oy c0804Oy2 = c5713byJ.d; if (c0804Oy2 == null) { C14957gcv.a(""); } else { c0804Oy = c0804Oy2; } G g = new G("POLICY_DOCUMENT_COPY", c0804Oy.c, "DEVES"); C15916ja c15916ja = c5713byJ.a; C5713byJ.Sts sts = new C5713byJ.Sts(c5713byJ); C5713byJ.HBt hBt = new C5713byJ.HBt(c5713byJ); C14957gcv.e(sts, ""); C14957gcv.e(hBt, ""); C14957gcv.e(g, ""); c15916ja.b(c15916ja.c, sts, hBt, new QYj.HBt(g)); } /* loaded from: classes5.dex */ public static final class RVV { private RVV() { } public /* synthetic */ RVV(byte b) { this(); } } public static /* synthetic */ void aun_(FragmentActivity fragmentActivity, DialogInterface dialogInterface) { C14957gcv.e(fragmentActivity, ""); dialogInterface.dismiss(); fragmentActivity.finish(); } }