482 lines
18 KiB
Java
482 lines
18 KiB
Java
package com.scb.phone.view.fragment.investment.scbs;
|
|
|
|
import android.content.Context;
|
|
import android.os.Bundle;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.Button;
|
|
import android.widget.ImageView;
|
|
import android.widget.LinearLayout;
|
|
import android.widget.TextView;
|
|
import butterknife.BindView;
|
|
import butterknife.ButterKnife;
|
|
import butterknife.OnClick;
|
|
import butterknife.Unbinder;
|
|
import com.scb.phone.R;
|
|
import com.scb.phone.presentation.presenter.investment.accountdetail.ScbsAccountDetailPresenter;
|
|
import com.scb.phone.view.activity.BaseActivity;
|
|
import com.scb.phone.view.activity.investment.scbs.OffshoreCurrencyActivity;
|
|
import com.scb.phone.view.activity.investment.scbs.SCBSProductDetailActivity;
|
|
import com.scb.phone.view.activity.investment.scbs.ScbsInputActivity;
|
|
import com.scb.phone.view.activity.partner.PartnerAuthorizationActivity;
|
|
import com.scb.phone.view.adapter.investment.accountdetail.ScbsProductAdapter;
|
|
import com.scb.phone.view.fragment.investment.scbs.ScbsAccountDetailFragment;
|
|
import java.util.List;
|
|
import o.AbstractC12009eqC;
|
|
import o.BzM;
|
|
import o.C0813Pa;
|
|
import o.C0863Qe;
|
|
import o.C0866Qh;
|
|
import o.C1193Xr;
|
|
import o.InterfaceC13391fZD;
|
|
import o.OT;
|
|
import o.REU;
|
|
import o.ZI;
|
|
import o.cZG;
|
|
import o.fSQ;
|
|
import o.gnL;
|
|
import o.pug;
|
|
import o.pyT;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class ScbsAccountDetailFragment extends Hilt_ScbsAccountDetailFragment<C0813Pa> implements cZG.Sts {
|
|
private FooterBinding c;
|
|
private HeaderBinding d;
|
|
|
|
@InterfaceC13391fZD
|
|
public ScbsAccountDetailPresenter scbsAccountDetailPresenter;
|
|
|
|
@Override // com.scb.phone.view.fragment.BaseHeaderAndFooterFragment
|
|
public final int d() {
|
|
return 2;
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class HeaderBinding_ViewBinding implements Unbinder {
|
|
private HeaderBinding b;
|
|
private View c;
|
|
|
|
public HeaderBinding_ViewBinding(HeaderBinding headerBinding, View view) {
|
|
this.b = headerBinding;
|
|
headerBinding.accountNumberTextView = (TextView) pyT.e(view, R.id.tv_account_number, "field 'accountNumberTextView'", TextView.class);
|
|
headerBinding.accountCashBalanceLayout = (LinearLayout) pyT.e(view, R.id.ll_layout_account_cash_balance, "field 'accountCashBalanceLayout'", LinearLayout.class);
|
|
headerBinding.cashBalanceTextView = (TextView) pyT.e(view, R.id.tv_cash_balance, "field 'cashBalanceTextView'", TextView.class);
|
|
View a = pyT.a(view, R.id.iv_arrow_cash_offshore, "field 'arrowCashOffshoreImageView' and method 'arrowCashOffshoreClick'");
|
|
headerBinding.arrowCashOffshoreImageView = (ImageView) pyT.c(a, R.id.iv_arrow_cash_offshore, "field 'arrowCashOffshoreImageView'", ImageView.class);
|
|
this.c = a;
|
|
a.setOnClickListener(new gnL(this, headerBinding) { // from class: com.scb.phone.view.fragment.investment.scbs.ScbsAccountDetailFragment.HeaderBinding_ViewBinding.2
|
|
private HeaderBinding b;
|
|
private HeaderBinding_ViewBinding d;
|
|
|
|
{
|
|
this.d = this;
|
|
this.b = headerBinding;
|
|
}
|
|
|
|
@Override // o.gnL
|
|
public final void e(View view2) {
|
|
this.b.arrowCashOffshoreClick();
|
|
}
|
|
});
|
|
headerBinding.cashBalanceNumberTextView = (TextView) pyT.e(view, R.id.tv_cash_balance_number, "field 'cashBalanceNumberTextView'", TextView.class);
|
|
headerBinding.disclaimerTextView = (TextView) pyT.e(view, R.id.tv_disclaimer, "field 'disclaimerTextView'", TextView.class);
|
|
headerBinding.symbolListTextView = (TextView) pyT.e(view, R.id.tv_symbol_list, "field 'symbolListTextView'", TextView.class);
|
|
}
|
|
|
|
@Override // butterknife.Unbinder
|
|
public final void a() {
|
|
HeaderBinding headerBinding = this.b;
|
|
if (headerBinding == null) {
|
|
throw new IllegalStateException("Bindings already cleared.");
|
|
}
|
|
this.b = null;
|
|
headerBinding.accountNumberTextView = null;
|
|
headerBinding.accountCashBalanceLayout = null;
|
|
headerBinding.cashBalanceTextView = null;
|
|
headerBinding.arrowCashOffshoreImageView = null;
|
|
headerBinding.cashBalanceNumberTextView = null;
|
|
headerBinding.disclaimerTextView = null;
|
|
headerBinding.symbolListTextView = null;
|
|
this.c.setOnClickListener(null);
|
|
this.c = null;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class FooterBinding_ViewBinding implements Unbinder {
|
|
private View b;
|
|
private View c;
|
|
private FooterBinding e;
|
|
|
|
public FooterBinding_ViewBinding(FooterBinding footerBinding, View view) {
|
|
this.e = footerBinding;
|
|
footerBinding.disclaimerDateTextView = (TextView) pyT.e(view, R.id.tv_disclaimer_date, "field 'disclaimerDateTextView'", TextView.class);
|
|
View a = pyT.a(view, R.id.bt_cash_deposit, "field 'caseDepositButton' and method 'cashDepositClick'");
|
|
footerBinding.caseDepositButton = (Button) pyT.c(a, R.id.bt_cash_deposit, "field 'caseDepositButton'", Button.class);
|
|
this.b = a;
|
|
a.setOnClickListener(new gnL(this, footerBinding) { // from class: com.scb.phone.view.fragment.investment.scbs.ScbsAccountDetailFragment.FooterBinding_ViewBinding.1
|
|
private FooterBinding_ViewBinding b;
|
|
private FooterBinding e;
|
|
|
|
{
|
|
this.b = this;
|
|
this.e = footerBinding;
|
|
}
|
|
|
|
@Override // o.gnL
|
|
public final void e(View view2) {
|
|
this.e.cashDepositClick();
|
|
}
|
|
});
|
|
View a2 = pyT.a(view, R.id.bt_trade_now, "field 'tradeNowButton' and method 'tradeNowClick'");
|
|
footerBinding.tradeNowButton = (Button) pyT.c(a2, R.id.bt_trade_now, "field 'tradeNowButton'", Button.class);
|
|
this.c = a2;
|
|
a2.setOnClickListener(new gnL(this, footerBinding) { // from class: com.scb.phone.view.fragment.investment.scbs.ScbsAccountDetailFragment.FooterBinding_ViewBinding.3
|
|
private FooterBinding_ViewBinding a;
|
|
private FooterBinding c;
|
|
|
|
{
|
|
this.a = this;
|
|
this.c = footerBinding;
|
|
}
|
|
|
|
@Override // o.gnL
|
|
public final void e(View view2) {
|
|
this.c.tradeNowClick();
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // butterknife.Unbinder
|
|
public final void a() {
|
|
FooterBinding footerBinding = this.e;
|
|
if (footerBinding == null) {
|
|
throw new IllegalStateException("Bindings already cleared.");
|
|
}
|
|
this.e = null;
|
|
footerBinding.disclaimerDateTextView = null;
|
|
footerBinding.caseDepositButton = null;
|
|
footerBinding.tradeNowButton = null;
|
|
this.b.setOnClickListener(null);
|
|
this.b = null;
|
|
this.c.setOnClickListener(null);
|
|
this.c = null;
|
|
}
|
|
}
|
|
|
|
public static ScbsAccountDetailFragment c(OT ot) {
|
|
Bundle bundle = new Bundle();
|
|
bundle.putParcelable("SCBS_ACCOUNT_DETAIL", ot);
|
|
ScbsAccountDetailFragment scbsAccountDetailFragment = new ScbsAccountDetailFragment();
|
|
scbsAccountDetailFragment.setArguments(bundle);
|
|
return scbsAccountDetailFragment;
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.BaseHeaderAndFooterFragment, androidx.fragment.app.Fragment
|
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
|
View onCreateView = super.onCreateView(layoutInflater, viewGroup, bundle);
|
|
v("scbs_account_detail");
|
|
this.scbsAccountDetailPresenter.e((ScbsAccountDetailPresenter) this);
|
|
Bundle arguments = getArguments();
|
|
if (arguments != null && arguments.containsKey("SCBS_ACCOUNT_DETAIL")) {
|
|
final ScbsAccountDetailPresenter scbsAccountDetailPresenter = this.scbsAccountDetailPresenter;
|
|
final OT ot = (OT) arguments.getParcelable("SCBS_ACCOUNT_DETAIL");
|
|
scbsAccountDetailPresenter.e = ot;
|
|
ZI.IeS ieS = new ZI.IeS(scbsAccountDetailPresenter, ot) { // from class: o.bAL
|
|
private ScbsAccountDetailPresenter b;
|
|
private OT e;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
ScbsAccountDetailPresenter.a(this.b, this.e, (cZG.Sts) obj);
|
|
}
|
|
|
|
{
|
|
this.b = scbsAccountDetailPresenter;
|
|
this.e = ot;
|
|
}
|
|
};
|
|
if (scbsAccountDetailPresenter.f != 0) {
|
|
ieS.e(scbsAccountDetailPresenter.f);
|
|
}
|
|
}
|
|
return onCreateView;
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.BaseHeaderAndFooterFragment
|
|
public final AbstractC12009eqC<C0813Pa> avh_(LayoutInflater layoutInflater, ViewGroup viewGroup) {
|
|
this.d = new HeaderBinding(this);
|
|
this.c = new FooterBinding(this);
|
|
View inflate = layoutInflater.inflate(R.layout.2131560049, viewGroup, false);
|
|
View inflate2 = layoutInflater.inflate(R.layout.2131560048, viewGroup, false);
|
|
View inflate3 = layoutInflater.inflate(R.layout.2131560047, viewGroup, false);
|
|
ButterKnife.c(this.d, inflate);
|
|
ButterKnife.c(this.c, inflate2);
|
|
ScbsProductAdapter scbsProductAdapter = new ScbsProductAdapter(getContext(), inflate2, inflate3);
|
|
scbsProductAdapter.a = inflate;
|
|
scbsProductAdapter.c = new AbstractC12009eqC.RVV(this) { // from class: o.fiP
|
|
private ScbsAccountDetailFragment d;
|
|
|
|
@Override // o.AbstractC12009eqC.RVV
|
|
public final void b(Object obj) {
|
|
ScbsAccountDetailFragment.a(this.d, (C0813Pa) obj);
|
|
}
|
|
|
|
{
|
|
this.d = this;
|
|
}
|
|
};
|
|
return scbsProductAdapter;
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
|
public void onDestroy() {
|
|
this.scbsAccountDetailPresenter.w_();
|
|
super.onDestroy();
|
|
}
|
|
|
|
@Override // o.cZG.Sts
|
|
public final void a(String str) {
|
|
this.d.accountNumberTextView.setText(str);
|
|
}
|
|
|
|
@Override // o.cZG.Sts
|
|
public final void a(boolean z) {
|
|
this.d.accountCashBalanceLayout.setVisibility(z ? 0 : 8);
|
|
}
|
|
|
|
@Override // o.cZG.Sts
|
|
public final void c(String str, String str2) {
|
|
this.d.cashBalanceTextView.setText(R.string.scbs_account_detail_screen_cash);
|
|
this.d.cashBalanceNumberTextView.setText(String.format("%s %s", str, str2));
|
|
}
|
|
|
|
@Override // o.cZG.Sts
|
|
public final void e(String str, String str2) {
|
|
this.d.cashBalanceTextView.setText(R.string.scbs_account_detail_screen_liquidation_value);
|
|
this.d.cashBalanceNumberTextView.setText(String.format("%s %s", str, str2));
|
|
}
|
|
|
|
@Override // o.cZG.Sts
|
|
public final void c(boolean z) {
|
|
this.d.arrowCashOffshoreImageView.setVisibility(z ? 0 : 8);
|
|
}
|
|
|
|
@Override // o.cZG.Sts
|
|
public final void b(boolean z) {
|
|
this.d.disclaimerTextView.setVisibility(z ? 0 : 8);
|
|
}
|
|
|
|
@Override // o.cZG.Sts
|
|
public final void c(String str) {
|
|
this.d.disclaimerTextView.setText(str);
|
|
}
|
|
|
|
@Override // o.cZG.Sts
|
|
public final void e(String str) {
|
|
this.d.symbolListTextView.setText(str);
|
|
}
|
|
|
|
@Override // o.cZG.Sts
|
|
public final void b(List<C0813Pa> list) {
|
|
e(list);
|
|
}
|
|
|
|
@Override // o.cZG.Sts
|
|
public final void d(String str) {
|
|
this.c.disclaimerDateTextView.setText(str);
|
|
}
|
|
|
|
@Override // o.cZG.Sts
|
|
public final void d(boolean z) {
|
|
this.c.caseDepositButton.setVisibility(z ? 0 : 8);
|
|
}
|
|
|
|
@Override // o.cZG.Sts
|
|
public final void e(boolean z) {
|
|
this.c.tradeNowButton.setVisibility(z ? 0 : 8);
|
|
}
|
|
|
|
@Override // o.cZG.Sts
|
|
public final void b(C0863Qe c0863Qe) {
|
|
SCBSProductDetailActivity.b(getContext(), c0863Qe);
|
|
}
|
|
|
|
@Override // o.cZG.Sts
|
|
public final void a(C0866Qh c0866Qh) {
|
|
OffshoreCurrencyActivity.a(getContext(), c0866Qh);
|
|
}
|
|
|
|
@Override // o.cZG.Sts
|
|
public final void b(String str) {
|
|
Context context = getContext();
|
|
if (context != null) {
|
|
startActivity(PartnerAuthorizationActivity.ajM_(context, str));
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class HeaderBinding {
|
|
|
|
@BindView
|
|
LinearLayout accountCashBalanceLayout;
|
|
|
|
@BindView
|
|
TextView accountNumberTextView;
|
|
|
|
@BindView
|
|
ImageView arrowCashOffshoreImageView;
|
|
|
|
@BindView
|
|
TextView cashBalanceNumberTextView;
|
|
|
|
@BindView
|
|
TextView cashBalanceTextView;
|
|
|
|
@BindView
|
|
TextView disclaimerTextView;
|
|
private ScbsAccountDetailFragment e;
|
|
|
|
@BindView
|
|
TextView symbolListTextView;
|
|
|
|
public HeaderBinding(ScbsAccountDetailFragment scbsAccountDetailFragment) {
|
|
this.e = scbsAccountDetailFragment;
|
|
}
|
|
|
|
@OnClick
|
|
public void arrowCashOffshoreClick() {
|
|
ScbsAccountDetailPresenter scbsAccountDetailPresenter = this.e.scbsAccountDetailPresenter;
|
|
final C0866Qh c0866Qh = new C0866Qh(scbsAccountDetailPresenter.e.i, scbsAccountDetailPresenter.e.j, scbsAccountDetailPresenter.e.l, scbsAccountDetailPresenter.e.s);
|
|
ZI.IeS ieS = new ZI.IeS(c0866Qh) { // from class: o.bAC
|
|
private C0866Qh c;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((cZG.Sts) obj).a(this.c);
|
|
}
|
|
|
|
{
|
|
this.c = c0866Qh;
|
|
}
|
|
};
|
|
if (scbsAccountDetailPresenter.f != 0) {
|
|
ieS.e(scbsAccountDetailPresenter.f);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class FooterBinding {
|
|
|
|
@BindView
|
|
Button caseDepositButton;
|
|
|
|
@BindView
|
|
TextView disclaimerDateTextView;
|
|
private ScbsAccountDetailFragment e;
|
|
|
|
@BindView
|
|
Button tradeNowButton;
|
|
|
|
public FooterBinding(ScbsAccountDetailFragment scbsAccountDetailFragment) {
|
|
this.e = scbsAccountDetailFragment;
|
|
}
|
|
|
|
@OnClick
|
|
public void cashDepositClick() {
|
|
ScbsAccountDetailFragment scbsAccountDetailFragment = this.e;
|
|
pug[] pugVarArr = {new pug("source", "SCBS_account_detail")};
|
|
if (scbsAccountDetailFragment.getActivity() != null) {
|
|
((BaseActivity) scbsAccountDetailFragment.getActivity()).scbAnalytics.e("scbsonboard_cash_deposit", pugVarArr);
|
|
}
|
|
final ScbsAccountDetailPresenter scbsAccountDetailPresenter = this.e.scbsAccountDetailPresenter;
|
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.bAD
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((cZG.Sts) obj).y();
|
|
}
|
|
};
|
|
if (scbsAccountDetailPresenter.f != 0) {
|
|
ieS.e(scbsAccountDetailPresenter.f);
|
|
}
|
|
REU reu = scbsAccountDetailPresenter.billPaymentCase;
|
|
reu.d(reu.e(scbsAccountDetailPresenter.e.d), new fSQ(scbsAccountDetailPresenter) { // from class: o.bAB
|
|
private ScbsAccountDetailPresenter c;
|
|
|
|
@Override // o.fSQ
|
|
public final void c(Object obj) {
|
|
ScbsAccountDetailPresenter.a(this.c, (C17671ymh) obj);
|
|
}
|
|
|
|
{
|
|
this.c = scbsAccountDetailPresenter;
|
|
}
|
|
}, new fSQ(scbsAccountDetailPresenter) { // from class: o.bAE
|
|
private ScbsAccountDetailPresenter c;
|
|
|
|
@Override // o.fSQ
|
|
public final void c(Object obj) {
|
|
ScbsAccountDetailPresenter.d(this.c, (Throwable) obj);
|
|
}
|
|
|
|
{
|
|
this.c = scbsAccountDetailPresenter;
|
|
}
|
|
});
|
|
}
|
|
|
|
@OnClick
|
|
public void tradeNowClick() {
|
|
BzM bzM = new BzM();
|
|
bzM.d("source", "SCBS_account_detail");
|
|
ScbsAccountDetailFragment scbsAccountDetailFragment = this.e;
|
|
if (scbsAccountDetailFragment.getActivity() != null) {
|
|
bzM.c(((BaseActivity) scbsAccountDetailFragment.getActivity()).scbAnalytics, "trade_now");
|
|
}
|
|
final ScbsAccountDetailPresenter scbsAccountDetailPresenter = this.e.scbsAccountDetailPresenter;
|
|
ZI.IeS ieS = new ZI.IeS(scbsAccountDetailPresenter) { // from class: o.bAA
|
|
private ScbsAccountDetailPresenter e;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((cZG.Sts) obj).b(this.e.e.s);
|
|
}
|
|
|
|
{
|
|
this.e = scbsAccountDetailPresenter;
|
|
}
|
|
};
|
|
if (scbsAccountDetailPresenter.f != 0) {
|
|
ieS.e(scbsAccountDetailPresenter.f);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // o.cZG.Sts
|
|
public final void b(C1193Xr c1193Xr) {
|
|
startActivity(ScbsInputActivity.ahG_(getContext(), c1193Xr));
|
|
}
|
|
|
|
public static /* synthetic */ void a(ScbsAccountDetailFragment scbsAccountDetailFragment, C0813Pa c0813Pa) {
|
|
ScbsAccountDetailPresenter scbsAccountDetailPresenter = scbsAccountDetailFragment.scbsAccountDetailPresenter;
|
|
final C0863Qe c0863Qe = new C0863Qe(c0813Pa.i, c0813Pa.b, c0813Pa.d, c0813Pa.e, c0813Pa.a, c0813Pa.j, scbsAccountDetailPresenter.e.f, scbsAccountDetailPresenter.e.l, scbsAccountDetailPresenter.e.s, c0813Pa.c);
|
|
ZI.IeS ieS = new ZI.IeS(c0863Qe) { // from class: o.bAw
|
|
private C0863Qe b;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
((cZG.Sts) obj).b(this.b);
|
|
}
|
|
|
|
{
|
|
this.b = c0863Qe;
|
|
}
|
|
};
|
|
if (scbsAccountDetailPresenter.f != 0) {
|
|
ieS.e(scbsAccountDetailPresenter.f);
|
|
}
|
|
}
|
|
}
|