package com.scb.phone.view.custom.cardmanagement; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.RadioButton; 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.cardmanagement.CustomStatementChannelViewComponent; import o.C14957gcv; /* loaded from: classes5.dex */ public final class CustomStatementChannelViewComponent extends ConstraintLayout { private LWm c; @BindView public RadioButton cbSelect; @BindView public View divider; private String e; @BindView public View fullDivider; @BindView public TextView tvRemark; @BindView public TextView tvTitle; /* loaded from: classes5.dex */ public interface LWm { void e(String str); } private /* synthetic */ CustomStatementChannelViewComponent(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 CustomStatementChannelViewComponent(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); C14957gcv.e(context, ""); this.e = ""; LayoutInflater.from(context).inflate(R.layout.2131558941, (ViewGroup) this, true); ButterKnife.c(this); } public final void setTitle(String str) { C14957gcv.e(str, ""); TextView textView = this.tvTitle; if (textView == null) { C14957gcv.a(""); textView = null; } textView.setText(str); } public final void setRemark(String str) { C14957gcv.e(str, ""); TextView textView = this.tvRemark; if (textView == null) { C14957gcv.a(""); textView = null; } textView.setText(str); } public final void b(boolean z) { View view = null; if (z) { View view2 = this.divider; if (view2 != null) { view = view2; } else { C14957gcv.a(""); } view.setVisibility(4); d(false); return; } View view3 = this.divider; if (view3 != null) { view = view3; } else { C14957gcv.a(""); } view.setVisibility(0); d(true); } private final void d(boolean z) { View view = this.fullDivider; if (view == null) { C14957gcv.a(""); view = null; } view.setVisibility(z ? 8 : 0); } public final void setSelect(String str) { C14957gcv.e(str, ""); RadioButton radioButton = this.cbSelect; if (radioButton == null) { C14957gcv.a(""); radioButton = null; } radioButton.setChecked(C14957gcv.b((Object) str, (Object) this.e)); } public static /* synthetic */ void c(CustomStatementChannelViewComponent customStatementChannelViewComponent) { C14957gcv.e(customStatementChannelViewComponent, ""); LWm lWm = customStatementChannelViewComponent.c; if (lWm != null) { lWm.e(customStatementChannelViewComponent.e); } } public static /* synthetic */ void e(CustomStatementChannelViewComponent customStatementChannelViewComponent) { C14957gcv.e(customStatementChannelViewComponent, ""); LWm lWm = customStatementChannelViewComponent.c; if (lWm != null) { lWm.e(customStatementChannelViewComponent.e); } } public final void setListener(LWm lWm) { C14957gcv.e(lWm, ""); this.c = lWm; RadioButton radioButton = this.cbSelect; if (radioButton == null) { C14957gcv.a(""); radioButton = null; } radioButton.setOnClickListener(new View.OnClickListener(this) { // from class: o.eAK private CustomStatementChannelViewComponent c; @Override // android.view.View.OnClickListener public final void onClick(View view) { CustomStatementChannelViewComponent.e(this.c); } { this.c = this; } }); setOnClickListener(new View.OnClickListener(this) { // from class: o.eAM private CustomStatementChannelViewComponent e; @Override // android.view.View.OnClickListener public final void onClick(View view) { CustomStatementChannelViewComponent.c(this.e); } { this.e = this; } }); } public final void setTvTitle(TextView textView) { C14957gcv.e(textView, ""); this.tvTitle = textView; } public final void setTvRemark(TextView textView) { C14957gcv.e(textView, ""); this.tvRemark = textView; } public final void setKey(String str) { C14957gcv.e(str, ""); this.e = str; } public final void setFullDivider(View view) { C14957gcv.e(view, ""); this.fullDivider = view; } public final void setDivider(View view) { C14957gcv.e(view, ""); this.divider = view; } public final void setCbSelect(RadioButton radioButton) { C14957gcv.e(radioButton, ""); this.cbSelect = radioButton; } /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */ public CustomStatementChannelViewComponent(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 CustomStatementChannelViewComponent(Context context) { this(context, null, 6, (byte) 0); C14957gcv.e(context, ""); } }