package com.scb.phone.view.adapter.deposit; import android.content.Context; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.RadioGroup; import android.widget.TextView; import androidx.recyclerview.widget.RecyclerView; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.Unbinder; import com.scb.phone.R; import com.scb.phone.view.adapter.deposit.FatcaQuestionnaireAdapter; import java.util.HashMap; import java.util.Iterator; import java.util.List; import o.C12891fKc; import o.MF; import o.nMh; import o.pyT; /* loaded from: classes5.dex */ public final class FatcaQuestionnaireAdapter extends RecyclerView.Sts { private final RVV a; private final List b; public final HashMap c = new HashMap<>(); private Context d; private final LWm e; /* loaded from: classes5.dex */ public interface LWm { void c(boolean z); } /* loaded from: classes5.dex */ public interface RVV { void d(int i, String str); } /* loaded from: classes5.dex */ public class ViewHolder_ViewBinding implements Unbinder { private ViewHolder b; public ViewHolder_ViewBinding(ViewHolder viewHolder, View view) { this.b = viewHolder; viewHolder.imageQuestion = (ImageView) pyT.e(view, R.id.image_question, "field 'imageQuestion'", ImageView.class); viewHolder.textQuestion = (TextView) pyT.e(view, R.id.text_question, "field 'textQuestion'", TextView.class); viewHolder.radioGroupYesOrNo = (RadioGroup) pyT.e(view, R.id.rdg_yes_no, "field 'radioGroupYesOrNo'", RadioGroup.class); viewHolder.textNotSure = (TextView) pyT.e(view, R.id.text_not_sure, "field 'textNotSure'", TextView.class); } @Override // butterknife.Unbinder public final void a() { ViewHolder viewHolder = this.b; if (viewHolder == null) { throw new IllegalStateException("Bindings already cleared."); } this.b = null; viewHolder.imageQuestion = null; viewHolder.textQuestion = null; viewHolder.radioGroupYesOrNo = null; viewHolder.textNotSure = null; } } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ void onBindViewHolder(ViewHolder viewHolder, int i) { ViewHolder viewHolder2 = viewHolder; final MF mf = this.b.get(i); if (!TextUtils.isEmpty(mf.d)) { viewHolder2.textNotSure.setVisibility(0); viewHolder2.textNotSure.setOnClickListener(new IeS(this, i, mf.d)); } else { viewHolder2.textNotSure.setVisibility(8); } viewHolder2.textQuestion.setText(mf.b); C12891fKc.azi_(nMh.getDrawable(this.d, R.drawable.shape_circle_fake_white), viewHolder2.imageQuestion, mf.a, (int) this.d.getResources().getDimension(R.dimen.f18872131165653)); viewHolder2.radioGroupYesOrNo.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener(this, mf) { // from class: o.esU private MF a; private FatcaQuestionnaireAdapter d; @Override // android.widget.RadioGroup.OnCheckedChangeListener public final void onCheckedChanged(RadioGroup radioGroup, int i2) { FatcaQuestionnaireAdapter.c(this.d, this.a, i2); } { this.d = this; this.a = mf; } }); } public FatcaQuestionnaireAdapter(List list, RVV rvv, LWm lWm) { this.b = list; this.a = rvv; this.e = lWm; Iterator it = list.iterator(); while (it.hasNext()) { this.c.put(it.next().e, null); } } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final int getItemCount() { return this.b.size(); } /* loaded from: classes5.dex */ static class ViewHolder extends RecyclerView.zJl { @BindView ImageView imageQuestion; @BindView RadioGroup radioGroupYesOrNo; @BindView TextView textNotSure; @BindView TextView textQuestion; public ViewHolder(View view) { super(view); ButterKnife.c(this, view); } } /* loaded from: classes5.dex */ class IeS implements View.OnClickListener { private FatcaQuestionnaireAdapter a; private final String b; private final int d; public IeS(FatcaQuestionnaireAdapter fatcaQuestionnaireAdapter, int i, String str) { this.a = fatcaQuestionnaireAdapter; this.d = i; this.b = str; } @Override // android.view.View.OnClickListener public final void onClick(View view) { this.a.a.d(this.d, this.b); } } public static /* synthetic */ void c(FatcaQuestionnaireAdapter fatcaQuestionnaireAdapter, MF mf, int i) { boolean z; if (i == R.id.rdb_no) { fatcaQuestionnaireAdapter.c.put(mf.e, "N"); } else if (i == R.id.rdb_yes) { fatcaQuestionnaireAdapter.c.put(mf.e, "Y"); } LWm lWm = fatcaQuestionnaireAdapter.e; Iterator it = fatcaQuestionnaireAdapter.b.iterator(); while (true) { if (!it.hasNext()) { z = true; break; } if (fatcaQuestionnaireAdapter.c.get(it.next().e) == null) { z = false; break; } } lWm.c(z); } @Override // androidx.recyclerview.widget.RecyclerView.Sts public final /* synthetic */ ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { Context context = viewGroup.getContext(); this.d = context; return new ViewHolder(LayoutInflater.from(context).inflate(R.layout.2131559312, (ViewGroup) null)); } }