package com.scb.phone.view.fragment.cardmanagement; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.os.Parcelable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.ScrollView; import android.widget.TextView; import androidx.constraintlayout.widget.ConstraintLayout; import androidx.fragment.app.FragmentActivity; import com.scb.phone.R; import com.scb.phone.view.fragment.cardmanagement.TempLimitConfirmationFragment; import o.AbstractC14961gcz; import o.C0455Gy; import o.C14957gcv; import o.C3034apr; import o.C7617crh; import o.GB; import o.GE; import o.InterfaceC13391fZD; import o.InterfaceC13393fZL; import o.InterfaceC14890gbN; import o.InterfaceC9069dck; import o.ZI; import o.cXG; import o.fZZ; import o.mXR; import o.qeC; /* loaded from: classes5.dex */ public final class TempLimitConfirmationFragment extends Hilt_TempLimitConfirmationFragment implements InterfaceC9069dck.RVV { private final InterfaceC13393fZL d; @InterfaceC13391fZD public C3034apr presenter; public TempLimitConfirmationFragment() { LWm lWm = new LWm(this); C14957gcv.e(lWm, ""); this.d = new fZZ(lWm); } /* loaded from: classes5.dex */ static final class LWm extends AbstractC14961gcz implements InterfaceC14890gbN { private TempLimitConfirmationFragment b; @Override // o.InterfaceC14890gbN public final /* synthetic */ C7617crh invoke() { View inflate = this.b.getLayoutInflater().inflate(R.layout.2131559949, (ViewGroup) null, false); int i = R.id.cl_layout_success_top; ConstraintLayout constraintLayout = (ConstraintLayout) qeC.e(inflate, R.id.cl_layout_success_top); if (constraintLayout != null) { i = R.id.iv_bg_black; ImageView imageView = (ImageView) qeC.e(inflate, R.id.iv_bg_black); if (imageView != null) { i = R.id.iv_bg_slip; ImageView imageView2 = (ImageView) qeC.e(inflate, R.id.iv_bg_slip); if (imageView2 != null) { i = R.id.iv_slip_curl; ImageView imageView3 = (ImageView) qeC.e(inflate, R.id.iv_slip_curl); if (imageView3 != null) { i = R.id.iv_success_icon; ImageView imageView4 = (ImageView) qeC.e(inflate, R.id.iv_success_icon); if (imageView4 != null) { i = R.id.layout_temp_limit_confirmation_info; View e = qeC.e(inflate, R.id.layout_temp_limit_confirmation_info); if (e != null) { mXR c = mXR.c(e); i = R.id.ll_layout_temp_limit_confirmation_header; LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, R.id.ll_layout_temp_limit_confirmation_header); if (linearLayout != null) { i = R.id.return_button; TextView textView = (TextView) qeC.e(inflate, R.id.return_button); if (textView != null) { i = R.id.text_date_time; TextView textView2 = (TextView) qeC.e(inflate, R.id.text_date_time); if (textView2 != null) { i = R.id.text_reference_id; TextView textView3 = (TextView) qeC.e(inflate, R.id.text_reference_id); if (textView3 != null) { i = R.id.tv_remark_success; TextView textView4 = (TextView) qeC.e(inflate, R.id.tv_remark_success); if (textView4 != null) { i = R.id.tv_text_title; TextView textView5 = (TextView) qeC.e(inflate, R.id.tv_text_title); if (textView5 != null) { return new C7617crh((ScrollView) inflate, constraintLayout, imageView, imageView2, imageView3, imageView4, c, linearLayout, textView, textView2, textView3, textView4, textView5); } } } } } } } } } } } } throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i))); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ LWm(TempLimitConfirmationFragment tempLimitConfirmationFragment) { super(0); this.b = tempLimitConfirmationFragment; } } @Override // androidx.fragment.app.Fragment public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { C14957gcv.e(layoutInflater, ""); ScrollView scrollView = ((C7617crh) this.d.e()).b; C14957gcv.c(scrollView, ""); return scrollView; } @Override // androidx.fragment.app.Fragment public final void onViewCreated(View view, Bundle bundle) { Intent intent; Parcelable parcelable; Parcelable parcelable2; C14957gcv.e(view, ""); super.onViewCreated(view, bundle); C3034apr c3034apr = this.presenter; if (c3034apr == null) { C14957gcv.a(""); c3034apr = null; } c3034apr.e((C3034apr) this); FragmentActivity activity = getActivity(); if (activity != null && (intent = activity.getIntent()) != null) { C3034apr c3034apr2 = this.presenter; if (c3034apr2 == null) { C14957gcv.a(""); c3034apr2 = null; } final boolean booleanExtra = intent.getBooleanExtra("com.scb.phone.view.activity.card_management.TempLimitConfirmationActivity.KEY_TEMP_LIMIT_IS_CDX_FLOW", false); if (Build.VERSION.SDK_INT >= 33) { Bundle extras = intent.getExtras(); parcelable = extras != null ? (Parcelable) extras.getParcelable("com.scb.phone.view.activity.card_management.TempLimitConfirmationActivity.KEY_TEMP_LIMIT_CONFIRMATION_DISPLAY_MODEL", GE.class) : null; } else { Bundle extras2 = intent.getExtras(); Parcelable parcelable3 = extras2 != null ? extras2.getParcelable("com.scb.phone.view.activity.card_management.TempLimitConfirmationActivity.KEY_TEMP_LIMIT_CONFIRMATION_DISPLAY_MODEL") : null; if (!(parcelable3 instanceof GE)) { parcelable3 = null; } parcelable = (GE) parcelable3; } final GE ge = (GE) parcelable; if (Build.VERSION.SDK_INT >= 33) { Bundle extras3 = intent.getExtras(); parcelable2 = extras3 != null ? (Parcelable) extras3.getParcelable("com.scb.phone.view.activity.card_management.TempLimitConfirmationActivity.KEY_TEMP_LIMIT_CDX_PRE_APPROVED", C0455Gy.class) : null; } else { Bundle extras4 = intent.getExtras(); Parcelable parcelable4 = extras4 != null ? extras4.getParcelable("com.scb.phone.view.activity.card_management.TempLimitConfirmationActivity.KEY_TEMP_LIMIT_CDX_PRE_APPROVED") : null; if (!(parcelable4 instanceof C0455Gy)) { parcelable4 = null; } parcelable2 = (C0455Gy) parcelable4; } final C0455Gy c0455Gy = (C0455Gy) parcelable2; if (Build.VERSION.SDK_INT >= 33) { Bundle extras5 = intent.getExtras(); if (extras5 != null) { r10 = (Parcelable) extras5.getParcelable("com.scb.phone.view.activity.card_management.TempLimitConfirmationActivity.KEY_TEMP_LIMIT_CDX_CONFIRMATION_DISPLAY_MODEL", GB.class); } } else { Bundle extras6 = intent.getExtras(); Parcelable parcelable5 = extras6 != null ? extras6.getParcelable("com.scb.phone.view.activity.card_management.TempLimitConfirmationActivity.KEY_TEMP_LIMIT_CDX_CONFIRMATION_DISPLAY_MODEL") : null; r10 = (GB) (parcelable5 instanceof GB ? parcelable5 : null); } final GB gb = (GB) r10; c3034apr2.a = booleanExtra; c3034apr2.c = ge; c3034apr2.d = c0455Gy; c3034apr2.e = gb; final C3034apr c3034apr3 = c3034apr2; ZI.IeS ieS = new ZI.IeS(booleanExtra, c0455Gy, gb, ge, c3034apr3) { // from class: o.apz private C3034apr a; private C0455Gy b; private GB c; private GE d; private boolean e; @Override // o.ZI.IeS public final void e(Object obj) { C3034apr.a(this.e, this.b, this.c, this.d, this.a, (InterfaceC9069dck.RVV) obj); } { this.e = booleanExtra; this.b = c0455Gy; this.c = gb; this.d = ge; this.a = c3034apr3; } }; if (c3034apr2.f != 0) { ieS.e(c3034apr2.f); } } ((C7617crh) this.d.e()).e.setOnClickListener(new View.OnClickListener(this) { // from class: o.eJH private TempLimitConfirmationFragment c; @Override // android.view.View.OnClickListener public final void onClick(View view2) { TempLimitConfirmationFragment.c(this.c); } { this.c = this; } }); v("templimit_successful"); } @Override // o.InterfaceC9069dck.RVV public final void a(GE ge) { C14957gcv.e(ge, ""); C7617crh c7617crh = (C7617crh) this.d.e(); c7617crh.a.setText(ge.g); c7617crh.c.setText(ge.h); mXR mxr = c7617crh.d; mxr.b.setText(ge.j); mxr.d.setText(ge.d); TextView textView = mxr.c; if (this.presenter == null) { C14957gcv.a(""); } textView.setText(C3034apr.b(ge.a)); TextView textView2 = mxr.j; if (this.presenter == null) { C14957gcv.a(""); } textView2.setText(C3034apr.b(ge.f)); TextView textView3 = mxr.a; String VL_ = cXG.VL_(getResources(), "dd MMM yyyy", cXG.d("yyyy-MM-dd", String.valueOf(ge.b))); C14957gcv.c((Object) VL_, ""); textView3.setText(VL_); TextView textView4 = mxr.e; String VL_2 = cXG.VL_(getResources(), "dd MMM yyyy", cXG.d("yyyy-MM-dd", String.valueOf(ge.c))); C14957gcv.c((Object) VL_2, ""); textView4.setText(VL_2); } @Override // o.InterfaceC9069dck.RVV public final void d(String str, String str2, C0455Gy c0455Gy) { C14957gcv.e(str, ""); C14957gcv.e(str2, ""); C14957gcv.e(c0455Gy, ""); ((C7617crh) this.d.e()).a.setText(str2); ((C7617crh) this.d.e()).c.setText(str); mXR mxr = ((C7617crh) this.d.e()).d; mxr.b.setText(c0455Gy.h); mxr.d.setText(c0455Gy.i); TextView textView = mxr.c; if (this.presenter == null) { C14957gcv.a(""); } textView.setText(C3034apr.b(c0455Gy.e)); TextView textView2 = mxr.j; if (this.presenter == null) { C14957gcv.a(""); } textView2.setText(C3034apr.b(c0455Gy.f8189o)); mxr.a.setText(c0455Gy.a); mxr.e.setText(c0455Gy.k); } @Override // o.InterfaceC9069dck.RVV public final void a(String str) { C14957gcv.e(str, ""); ((C7617crh) this.d.e()).h.setText(str); } public static /* synthetic */ void c(TempLimitConfirmationFragment tempLimitConfirmationFragment) { C14957gcv.e(tempLimitConfirmationFragment, ""); tempLimitConfirmationFragment.V(); } }