package com.scb.phone.view.custom.easycash; import android.content.Context; import android.text.TextUtils; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.TextView; import androidx.constraintlayout.widget.ConstraintLayout; import butterknife.BindView; import butterknife.ButterKnife; import com.scb.phone.R; import com.scb.phone.view.custom.ImageTextView; import java.util.ArrayList; import java.util.Collection; import java.util.List; import o.C12891fKc; import o.C14957gcv; import o.IV; import o.LJ; /* loaded from: classes5.dex */ public final class CustomEasyCashLoanSummaryCard extends ConstraintLayout { @BindView public Button btApplyNow; @BindView public CustomSeparatedViews csvDetails; @BindView public ImageTextView itvLoanName; @BindView public TextView tvCreditAmount; private /* synthetic */ CustomEasyCashLoanSummaryCard(Context context, AttributeSet attributeSet, int i, byte b) { this(context, (i & 2) != 0 ? null : attributeSet, 0); } /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ public CustomEasyCashLoanSummaryCard(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); C14957gcv.e(context, ""); LayoutInflater.from(context).inflate(R.layout.2131559003, (ViewGroup) this, true); ButterKnife.c(this); setBackgroundResource(R.color.f14042131100912); } public final void setLoanName(String str) { C14957gcv.e(str, ""); ImageTextView imageTextView = this.itvLoanName; if (imageTextView == null) { C14957gcv.a(""); imageTextView = null; } imageTextView.setText(str); } public final void setLoanImageFromUrl(String str) { C14957gcv.e(str, ""); if (TextUtils.isEmpty(str)) { return; } ImageTextView imageTextView = this.itvLoanName; if (imageTextView == null) { C14957gcv.a(""); imageTextView = null; } C12891fKc.a(imageTextView, str); } public final void setCreditAmount(String str) { C14957gcv.e(str, ""); TextView textView = this.tvCreditAmount; if (textView == null) { C14957gcv.a(""); textView = null; } textView.setText(str); } public final void setLoanDetails(List list) { C14957gcv.e(list, ""); List list2 = list; C14957gcv.e(list2, ""); ArrayList arrayList = new ArrayList(list2 instanceof Collection ? list2.size() : 10); for (LJ lj : list2) { arrayList.add(new IV(lj.c, lj.g)); } ArrayList arrayList2 = arrayList; CustomSeparatedViews customSeparatedViews = this.csvDetails; if (customSeparatedViews == null) { C14957gcv.a(""); customSeparatedViews = null; } customSeparatedViews.e(arrayList2, R.layout.2131559336); } public final void setApplyNowButton(boolean z, View.OnClickListener onClickListener) { C14957gcv.e(onClickListener, ""); Button button = this.btApplyNow; Button button2 = null; if (button == null) { C14957gcv.a(""); button = null; } button.setEnabled(z); Button button3 = this.btApplyNow; if (button3 != null) { button2 = button3; } else { C14957gcv.a(""); } button2.setOnClickListener(onClickListener); } public final void setTvCreditAmount(TextView textView) { C14957gcv.e(textView, ""); this.tvCreditAmount = textView; } public final void setItvLoanName(ImageTextView imageTextView) { C14957gcv.e(imageTextView, ""); this.itvLoanName = imageTextView; } public final void setCsvDetails(CustomSeparatedViews customSeparatedViews) { C14957gcv.e(customSeparatedViews, ""); this.csvDetails = customSeparatedViews; } public final void setBtApplyNow(Button button) { C14957gcv.e(button, ""); this.btApplyNow = button; } /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */ public CustomEasyCashLoanSummaryCard(Context context, AttributeSet attributeSet) { this(context, attributeSet, 4, (byte) 0); C14957gcv.e(context, ""); } /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */ public CustomEasyCashLoanSummaryCard(Context context) { this(context, null, 6, (byte) 0); C14957gcv.e(context, ""); } }