package com.scb.phone.view.fragment.demo.ntb; import android.content.Context; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.recyclerview.widget.RecyclerView; import butterknife.BindView; import butterknife.ButterKnife; import com.scb.phone.R; import com.scb.phone.view.adapter.demontb.BankingServiceAdapter; import com.scb.phone.view.custom.CustomProfileImageView; import com.scb.phone.view.fragment.demo.ntb.NTBBankingServiceFragment; import com.scb.phone.view.fragment.ntb.NtbUserInfoFragment; import java.util.ArrayList; import o.AyW; import o.C0391Fn; import o.C0907Rf; import o.C14866gag; import o.C14957gcv; import o.EnumC15824isw; import o.InterfaceC12835fIj; import o.InterfaceC13391fZD; import o.InterfaceC9223dff; import o.ZI; import o.aLI; import o.pug; import org.simpleframework.xml.strategy.Name; /* loaded from: classes5.dex */ public class NTBBankingServiceFragment extends Hilt_NTBBankingServiceFragment implements InterfaceC9223dff.LWm, InterfaceC12835fIj { @InterfaceC13391fZD public aLI bankingServicePresenter; private InterfaceC9223dff.IeS c; @BindView CustomProfileImageView cusIvProfile; @BindView RecyclerView rvBankingActions; @BindView TextView tvHomeWelcomeHeadline; @BindView TextView tvHomeWelcomeUserName; @Override // androidx.fragment.app.Fragment public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { View inflate = layoutInflater.inflate(R.layout.2131559456, viewGroup, false); ButterKnife.c(this, inflate); this.bankingServicePresenter.e((aLI) this); ArrayList parcelableArrayListExtra = getActivity().getIntent().getParcelableArrayListExtra("BANKING_SERVICE_TILE"); if (parcelableArrayListExtra != null) { this.rvBankingActions.setAdapter(new BankingServiceAdapter(getContext(), this, parcelableArrayListExtra)); this.rvBankingActions.setNestedScrollingEnabled(true); } super.aa(); Y(); Z(); aLI ali = this.bankingServicePresenter; final C0391Fn a = ali.c.a(ali.e.c.b()); ZI.IeS ieS = new ZI.IeS(a) { // from class: o.aLJ private C0391Fn b; @Override // o.ZI.IeS public final void e(Object obj) { ((InterfaceC9223dff.LWm) obj).c(this.b); } { this.b = a; } }; if (ali.f != 0) { ieS.e(ali.f); } C14866gag c14866gag = C14866gag.c; inflate.post(new Runnable(this) { // from class: o.eRb private NTBBankingServiceFragment d; @Override // java.lang.Runnable public final void run() { NTBBankingServiceFragment.a(this.d); } { this.d = this; } }); return inflate; } /* JADX WARN: Multi-variable type inference failed */ @Override // com.scb.phone.view.fragment.demo.ntb.Hilt_NTBBankingServiceFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment public void onAttach(Context context) { super.onAttach(context); if (context instanceof InterfaceC9223dff.IeS) { this.c = (InterfaceC9223dff.IeS) context; } } @Override // com.scb.phone.view.fragment.BaseFragment public final void aa() { super.aa(); Y(); Z(); } @Override // o.InterfaceC12835fIj public final void e(int i) { ArrayList parcelableArrayListExtra = getActivity().getIntent().getParcelableArrayListExtra("BANKING_SERVICE_TILE"); if (parcelableArrayListExtra.get(i) != null) { aLI ali = this.bankingServicePresenter; final C0907Rf.Sts sts = (C0907Rf.Sts) parcelableArrayListExtra.get(i); C14957gcv.e(sts, ""); if (sts.L == AyW.SPLASH && sts.M == EnumC15824isw.IMAGE) { ZI.IeS ieS = new ZI.IeS(sts) { // from class: o.aLK private C0907Rf.Sts e; @Override // o.ZI.IeS public final void e(Object obj) { aLI.b(this.e, (InterfaceC9223dff.LWm) obj); } { this.e = sts; } }; if (ali.f != 0) { ieS.e(ali.f); } } pug[] pugVarArr = new pug[4]; pugVarArr[0] = new pug("type", ((C0907Rf.Sts) parcelableArrayListExtra.get(i)).L != null ? ((C0907Rf.Sts) parcelableArrayListExtra.get(i)).L.toString().toLowerCase() : ""); pugVarArr[1] = new pug("sub_type", ((C0907Rf.Sts) parcelableArrayListExtra.get(i)).M != null ? ((C0907Rf.Sts) parcelableArrayListExtra.get(i)).M.toString().toLowerCase() : ""); pugVarArr[2] = new pug(Name.MARK, String.valueOf(((C0907Rf.Sts) parcelableArrayListExtra.get(i)).x)); pugVarArr[3] = new pug("sort_sequence", String.valueOf(((C0907Rf.Sts) parcelableArrayListExtra.get(i)).F)); c("ntb_banking_tile", pugVarArr); } } @Override // o.InterfaceC9223dff.LWm public final void e(String str) { this.c.c(str); } @Override // o.InterfaceC9223dff.LWm public final void d(String str) { InterfaceC9223dff.IeS ieS = this.c; if (ieS != null) { ieS.d(str); } } @Override // o.InterfaceC9223dff.LWm public final void c() { InterfaceC9223dff.IeS ieS = this.c; if (ieS != null) { ieS.a(); } } public static /* synthetic */ void a(NTBBankingServiceFragment nTBBankingServiceFragment) { final aLI ali = nTBBankingServiceFragment.bankingServicePresenter; ZI.IeS ieS = new ZI.IeS(ali) { // from class: o.aLF private aLI c; @Override // o.ZI.IeS public final void e(Object obj) { aLI.e(this.c, (InterfaceC9223dff.LWm) obj); } { this.c = ali; } }; if (ali.f != 0) { ieS.e(ali.f); } } @Override // o.InterfaceC9223dff.LWm public final void c(C0391Fn c0391Fn) { this.tvHomeWelcomeUserName.setVisibility(c0391Fn.h.isEmpty() ? 8 : 0); this.tvHomeWelcomeUserName.setText(c0391Fn.h); this.tvHomeWelcomeHeadline.setText(c0391Fn.c); this.cusIvProfile.setImageResource(NtbUserInfoFragment.l().get(c0391Fn.d)); } }