508 lines
16 KiB
Java
508 lines
16 KiB
Java
|
package com.scb.phone.view.fragment.insurance;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.content.Intent;
|
||
|
import android.os.Bundle;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.LinearLayout;
|
||
|
import android.widget.TextView;
|
||
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import butterknife.OnClick;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.ccsof.CcSofCreditCardOnlyActivity;
|
||
|
import com.scb.phone.view.activity.ccsof.CcSofHybridActivity;
|
||
|
import com.scb.phone.view.activity.partner.PartnerBillPaymentInputActivity;
|
||
|
import com.scb.phone.view.fragment.BaseFragment;
|
||
|
import o.C0690Mh;
|
||
|
import o.C0787Op;
|
||
|
import o.C0798Ot;
|
||
|
import o.C0799Ou;
|
||
|
import o.C0802Ow;
|
||
|
import o.C0804Oy;
|
||
|
import o.C1194Xs;
|
||
|
import o.C13396fZU;
|
||
|
import o.C14957gcv;
|
||
|
import o.C15771iW;
|
||
|
import o.C16903sI;
|
||
|
import o.C5704byA;
|
||
|
import o.HR;
|
||
|
import o.I;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC9321dhY;
|
||
|
import o.SYy;
|
||
|
import o.YCA;
|
||
|
import o.YY;
|
||
|
import o.ZI;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class PolicyDetailFragment extends Hilt_PolicyDetailFragment implements InterfaceC9321dhY.LWm {
|
||
|
public static final Sts c = new Sts(0);
|
||
|
|
||
|
@BindView
|
||
|
public ConstraintLayout caLayoutPaymentCarSection;
|
||
|
|
||
|
@BindView
|
||
|
public ConstraintLayout csLayoutPolicyHeaderSection;
|
||
|
|
||
|
@BindView
|
||
|
public LinearLayout llLayoutPaymentSection;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C5704byA presenter;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvCarRepairType;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvDueAmount;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvDueDate;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvEffectiveDate;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvEndDate;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvInsuranceType;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvNewSumAssured;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvPaymentDisclaimer;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvPaymentPlan;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvPolicyHeader;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvPolicyHeaderLabel;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvPolicyRenewal;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvPremium;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvPremiumAmount;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvSumAssured;
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
C14957gcv.e(layoutInflater, "");
|
||
|
View inflate = layoutInflater.inflate(R.layout.2131559729, viewGroup, false);
|
||
|
((BaseFragment) this).a = ButterKnife.c(this, inflate);
|
||
|
C5704byA c5704byA = this.presenter;
|
||
|
if (c5704byA == null) {
|
||
|
C14957gcv.a("");
|
||
|
c5704byA = null;
|
||
|
}
|
||
|
c5704byA.e((C5704byA) this);
|
||
|
return inflate;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final void onViewCreated(View view, Bundle bundle) {
|
||
|
final C0804Oy c0804Oy;
|
||
|
C14957gcv.e(view, "");
|
||
|
super.onViewCreated(view, bundle);
|
||
|
Bundle arguments = getArguments();
|
||
|
if (arguments == null || (c0804Oy = (C0804Oy) arguments.getParcelable("EXTRA_POLICY_INFO_DISPLAY")) == null) {
|
||
|
return;
|
||
|
}
|
||
|
C5704byA c5704byA = this.presenter;
|
||
|
if (c5704byA == null) {
|
||
|
C14957gcv.a("");
|
||
|
c5704byA = null;
|
||
|
}
|
||
|
C14957gcv.c(c0804Oy, "");
|
||
|
C14957gcv.e(c0804Oy, "");
|
||
|
c5704byA.c = c0804Oy;
|
||
|
ZI.IeS ieS = new ZI.IeS(c0804Oy) { // from class: o.byF
|
||
|
private C0804Oy d;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C5704byA.c(this.d, (InterfaceC9321dhY.LWm) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = c0804Oy;
|
||
|
}
|
||
|
};
|
||
|
if (c5704byA.f != 0) {
|
||
|
ieS.e(c5704byA.f);
|
||
|
}
|
||
|
ZI.IeS ieS2 = new ZI.IeS(c0804Oy) { // from class: o.byI
|
||
|
private C0804Oy c;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C5704byA.d(this.c, (InterfaceC9321dhY.LWm) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.c = c0804Oy;
|
||
|
}
|
||
|
};
|
||
|
if (c5704byA.f != 0) {
|
||
|
ieS2.e(c5704byA.f);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9321dhY.LWm
|
||
|
public final void c(C0798Ot c0798Ot) {
|
||
|
C14957gcv.e(c0798Ot, "");
|
||
|
ConstraintLayout constraintLayout = this.csLayoutPolicyHeaderSection;
|
||
|
TextView textView = null;
|
||
|
if (constraintLayout == null) {
|
||
|
C14957gcv.a("");
|
||
|
constraintLayout = null;
|
||
|
}
|
||
|
constraintLayout.setVisibility(0);
|
||
|
TextView textView2 = this.tvPolicyHeaderLabel;
|
||
|
if (textView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView2 = null;
|
||
|
}
|
||
|
textView2.setText(c0798Ot.e);
|
||
|
TextView textView3 = this.tvPolicyHeader;
|
||
|
if (textView3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView3 = null;
|
||
|
}
|
||
|
textView3.setText(c0798Ot.i);
|
||
|
TextView textView4 = this.tvSumAssured;
|
||
|
if (textView4 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView4 = null;
|
||
|
}
|
||
|
textView4.setText(c0798Ot.j);
|
||
|
TextView textView5 = this.tvPaymentPlan;
|
||
|
if (textView5 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView5 = null;
|
||
|
}
|
||
|
textView5.setText(c0798Ot.a);
|
||
|
TextView textView6 = this.tvPremiumAmount;
|
||
|
if (textView6 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView6 = null;
|
||
|
}
|
||
|
textView6.setText(c0798Ot.c);
|
||
|
TextView textView7 = this.tvEffectiveDate;
|
||
|
if (textView7 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView7 = null;
|
||
|
}
|
||
|
textView7.setText(c0798Ot.d);
|
||
|
TextView textView8 = this.tvEndDate;
|
||
|
if (textView8 != null) {
|
||
|
textView = textView8;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
textView.setText(c0798Ot.b);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9321dhY.LWm
|
||
|
public final void d(C0802Ow c0802Ow) {
|
||
|
C14957gcv.e(c0802Ow, "");
|
||
|
ConstraintLayout constraintLayout = this.csLayoutPolicyHeaderSection;
|
||
|
TextView textView = null;
|
||
|
if (constraintLayout == null) {
|
||
|
C14957gcv.a("");
|
||
|
constraintLayout = null;
|
||
|
}
|
||
|
constraintLayout.setVisibility(8);
|
||
|
TextView textView2 = this.tvSumAssured;
|
||
|
if (textView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView2 = null;
|
||
|
}
|
||
|
textView2.setText(c0802Ow.b);
|
||
|
TextView textView3 = this.tvPaymentPlan;
|
||
|
if (textView3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView3 = null;
|
||
|
}
|
||
|
textView3.setText(c0802Ow.e);
|
||
|
TextView textView4 = this.tvPremiumAmount;
|
||
|
if (textView4 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView4 = null;
|
||
|
}
|
||
|
textView4.setText(c0802Ow.d);
|
||
|
TextView textView5 = this.tvEffectiveDate;
|
||
|
if (textView5 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView5 = null;
|
||
|
}
|
||
|
textView5.setText(c0802Ow.a);
|
||
|
TextView textView6 = this.tvEndDate;
|
||
|
if (textView6 != null) {
|
||
|
textView = textView6;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
textView.setText(c0802Ow.c);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9321dhY.LWm
|
||
|
public final void e(C0787Op c0787Op) {
|
||
|
C14957gcv.e(c0787Op, "");
|
||
|
LinearLayout linearLayout = this.llLayoutPaymentSection;
|
||
|
TextView textView = null;
|
||
|
if (linearLayout == null) {
|
||
|
C14957gcv.a("");
|
||
|
linearLayout = null;
|
||
|
}
|
||
|
linearLayout.setVisibility(0);
|
||
|
ConstraintLayout constraintLayout = this.caLayoutPaymentCarSection;
|
||
|
if (constraintLayout == null) {
|
||
|
C14957gcv.a("");
|
||
|
constraintLayout = null;
|
||
|
}
|
||
|
constraintLayout.setVisibility(0);
|
||
|
TextView textView2 = this.tvPolicyRenewal;
|
||
|
if (textView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView2 = null;
|
||
|
}
|
||
|
textView2.setText(c0787Op.g);
|
||
|
TextView textView3 = this.tvInsuranceType;
|
||
|
if (textView3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView3 = null;
|
||
|
}
|
||
|
textView3.setText(c0787Op.a);
|
||
|
TextView textView4 = this.tvCarRepairType;
|
||
|
if (textView4 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView4 = null;
|
||
|
}
|
||
|
textView4.setText(c0787Op.d);
|
||
|
TextView textView5 = this.tvNewSumAssured;
|
||
|
if (textView5 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView5 = null;
|
||
|
}
|
||
|
textView5.setText(c0787Op.j);
|
||
|
TextView textView6 = this.tvPremium;
|
||
|
if (textView6 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView6 = null;
|
||
|
}
|
||
|
textView6.setText(c0787Op.h);
|
||
|
TextView textView7 = this.tvDueDate;
|
||
|
if (textView7 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView7 = null;
|
||
|
}
|
||
|
textView7.setText(c0787Op.e);
|
||
|
TextView textView8 = this.tvDueAmount;
|
||
|
if (textView8 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView8 = null;
|
||
|
}
|
||
|
textView8.setText(c0787Op.b);
|
||
|
TextView textView9 = this.tvPaymentDisclaimer;
|
||
|
if (textView9 != null) {
|
||
|
textView = textView9;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
textView.setText(c0787Op.c);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9321dhY.LWm
|
||
|
public final void b(C0799Ou c0799Ou) {
|
||
|
C14957gcv.e(c0799Ou, "");
|
||
|
LinearLayout linearLayout = this.llLayoutPaymentSection;
|
||
|
TextView textView = null;
|
||
|
if (linearLayout == null) {
|
||
|
C14957gcv.a("");
|
||
|
linearLayout = null;
|
||
|
}
|
||
|
linearLayout.setVisibility(0);
|
||
|
ConstraintLayout constraintLayout = this.caLayoutPaymentCarSection;
|
||
|
if (constraintLayout == null) {
|
||
|
C14957gcv.a("");
|
||
|
constraintLayout = null;
|
||
|
}
|
||
|
constraintLayout.setVisibility(8);
|
||
|
TextView textView2 = this.tvDueDate;
|
||
|
if (textView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView2 = null;
|
||
|
}
|
||
|
textView2.setText(c0799Ou.c);
|
||
|
TextView textView3 = this.tvDueAmount;
|
||
|
if (textView3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView3 = null;
|
||
|
}
|
||
|
textView3.setText(c0799Ou.d);
|
||
|
TextView textView4 = this.tvPaymentDisclaimer;
|
||
|
if (textView4 != null) {
|
||
|
textView = textView4;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
textView.setText(c0799Ou.a);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9321dhY.LWm
|
||
|
public final void d() {
|
||
|
LinearLayout linearLayout = this.llLayoutPaymentSection;
|
||
|
if (linearLayout == null) {
|
||
|
C14957gcv.a("");
|
||
|
linearLayout = null;
|
||
|
}
|
||
|
linearLayout.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9321dhY.LWm
|
||
|
public final void a(C1194Xs c1194Xs, String str, YY yy) {
|
||
|
C14957gcv.e(c1194Xs, "");
|
||
|
C14957gcv.e(yy, "");
|
||
|
PartnerBillPaymentInputActivity.LWm lWm = PartnerBillPaymentInputActivity.l;
|
||
|
Context requireContext = requireContext();
|
||
|
C14957gcv.c(requireContext, "");
|
||
|
C14957gcv.e(requireContext, "");
|
||
|
Intent putExtra = new Intent(requireContext, (Class<?>) PartnerBillPaymentInputActivity.class).putExtra("EXTRA_BILL_PAYMENT_PARTNER_DISPLAY", c1194Xs).putExtra("EXTRA_BILL_PAYMENT_PARTNER_SUBTYPE", str);
|
||
|
C14957gcv.c(putExtra, "");
|
||
|
YY yy2 = yy;
|
||
|
Intent putExtra2 = putExtra.putExtra("com.scb.phone.EXTRA_PAYMENT_FLOW_TYPE", yy2 != null ? yy2.ordinal() : -1);
|
||
|
C14957gcv.c(putExtra2, "");
|
||
|
startActivity(putExtra2);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9321dhY.LWm
|
||
|
public final void a(HR hr, YY yy) {
|
||
|
C14957gcv.e(hr, "");
|
||
|
C14957gcv.e(yy, "");
|
||
|
CcSofCreditCardOnlyActivity.Sts sts = CcSofCreditCardOnlyActivity.b;
|
||
|
Context requireContext = requireContext();
|
||
|
C14957gcv.c(requireContext, "");
|
||
|
C14957gcv.e(requireContext, "");
|
||
|
C14957gcv.e(hr, "");
|
||
|
C14957gcv.e(yy, "");
|
||
|
Intent putExtra = new Intent(requireContext, (Class<?>) CcSofCreditCardOnlyActivity.class).putExtra("EXTRA_PURCHASE_SOURCE_FUND_DISPLAY", hr);
|
||
|
C14957gcv.c(putExtra, "");
|
||
|
Intent putExtra2 = putExtra.putExtra("com.scb.phone.EXTRA_PAYMENT_FLOW_TYPE", yy.ordinal());
|
||
|
C14957gcv.c(putExtra2, "");
|
||
|
startActivity(putExtra2);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9321dhY.LWm
|
||
|
public final void d(HR hr, String str, YY yy) {
|
||
|
C14957gcv.e(hr, "");
|
||
|
C14957gcv.e(yy, "");
|
||
|
CcSofHybridActivity.HBt hBt = CcSofHybridActivity.b;
|
||
|
Context requireContext = requireContext();
|
||
|
C14957gcv.c(requireContext, "");
|
||
|
C14957gcv.e(requireContext, "");
|
||
|
C14957gcv.e(hr, "");
|
||
|
C14957gcv.e(yy, "");
|
||
|
Intent putExtra = new Intent(requireContext, (Class<?>) CcSofHybridActivity.class).putExtra("EXTRA_PURCHASE_SOURCE_FUND_DISPLAY", hr).putExtra("EXTRA_BILL_PAYMENT_SUBTYPE", str);
|
||
|
C14957gcv.c(putExtra, "");
|
||
|
Intent putExtra2 = putExtra.putExtra("com.scb.phone.EXTRA_PAYMENT_FLOW_TYPE", yy.ordinal());
|
||
|
C14957gcv.c(putExtra2, "");
|
||
|
startActivity(putExtra2);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9321dhY.LWm
|
||
|
public final void b() {
|
||
|
C5704byA c5704byA = this.presenter;
|
||
|
if (c5704byA == null) {
|
||
|
C14957gcv.a("");
|
||
|
c5704byA = null;
|
||
|
}
|
||
|
C0690Mh.IeS ieS = C0690Mh.IeS.JUST_DISMISS;
|
||
|
C16903sI c16903sI = c5704byA.j;
|
||
|
c5704byA.d(c16903sI.c((String) null, c16903sI.e(R.string.error_generic_resource), ieS));
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9321dhY.LWm
|
||
|
public final void d(C13396fZU<String, SYy> c13396fZU) {
|
||
|
C14957gcv.e(c13396fZU, "");
|
||
|
g(c13396fZU);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public final void onDestroy() {
|
||
|
super.onDestroy();
|
||
|
C5704byA c5704byA = this.presenter;
|
||
|
if (c5704byA == null) {
|
||
|
C14957gcv.a("");
|
||
|
c5704byA = null;
|
||
|
}
|
||
|
c5704byA.w_();
|
||
|
}
|
||
|
|
||
|
@OnClick
|
||
|
public final void onClickPay() {
|
||
|
final C5704byA c5704byA = this.presenter;
|
||
|
if (c5704byA == null) {
|
||
|
C14957gcv.a("");
|
||
|
c5704byA = null;
|
||
|
}
|
||
|
ZI.IeS ieS = new ZI.IeS(c5704byA) { // from class: o.byH
|
||
|
private C5704byA e;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C5704byA.b(this.e, (InterfaceC9321dhY.LWm) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = c5704byA;
|
||
|
}
|
||
|
};
|
||
|
if (c5704byA.f != 0) {
|
||
|
ieS.e(c5704byA.f);
|
||
|
}
|
||
|
C0804Oy c0804Oy = c5704byA.c;
|
||
|
String str = c0804Oy != null ? c0804Oy.c : null;
|
||
|
if (str == null) {
|
||
|
str = "";
|
||
|
}
|
||
|
C0804Oy c0804Oy2 = c5704byA.c;
|
||
|
String str2 = c0804Oy2 != null ? c0804Oy2.b : null;
|
||
|
if (str2 == null) {
|
||
|
str2 = "";
|
||
|
}
|
||
|
I i = new I(str, str2);
|
||
|
C15771iW c15771iW = c5704byA.a;
|
||
|
C5704byA.LWm lWm = new C5704byA.LWm(c5704byA);
|
||
|
C5704byA.Sts sts = new C5704byA.Sts(c5704byA);
|
||
|
C14957gcv.e(i, "");
|
||
|
C14957gcv.e(lWm, "");
|
||
|
C14957gcv.e(sts, "");
|
||
|
c15771iW.b(c15771iW.b, lWm, sts, new YCA.LWm(i), new C15771iW.RVV(c15771iW));
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class Sts {
|
||
|
private Sts() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ Sts(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
}
|