what-the-bank/sources/com/scb/phone/view/fragment/cardmanagement/DeejungPlanDetailFragment.java

335 lines
17 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.cardmanagement;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.scb.phone.R;
import com.scb.phone.view.fragment.cardmanagement.DeejungPlanDetailFragment;
import o.C0367Fb;
import o.C0433Gl;
import o.C14957gcv;
import o.C2914anb;
import o.CQO;
import o.InterfaceC13391fZD;
import o.InterfaceC9059dca;
import o.InterfaceC9073dco;
import o.ZI;
import o.qeC;
/* loaded from: classes5.dex */
public final class DeejungPlanDetailFragment extends Hilt_DeejungPlanDetailFragment implements InterfaceC9059dca {
public static final HBt c = new HBt(0);
public InterfaceC9073dco d;
private CQO f;
private C0367Fb h;
private C0433Gl j;
@InterfaceC13391fZD
public C2914anb presenter;
/* loaded from: classes5.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
@Override // androidx.fragment.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
boolean z;
Parcelable parcelable;
Parcelable parcelable2;
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
C2914anb c2914anb = this.presenter;
final C2914anb c2914anb2 = null;
if (c2914anb == null) {
C14957gcv.a("");
c2914anb = null;
}
c2914anb.e((C2914anb) this);
Bundle arguments = getArguments();
if (arguments != null) {
if (Build.VERSION.SDK_INT >= 33) {
parcelable = (Parcelable) arguments.getParcelable("com.scb.phone.view.fragment.card_management.DeejungPlanDetailFragment.KEY_DEEJUNG_INSTALLMENT_PLAN", C0433Gl.class);
} else {
Parcelable parcelable3 = arguments.getParcelable("com.scb.phone.view.fragment.card_management.DeejungPlanDetailFragment.KEY_DEEJUNG_INSTALLMENT_PLAN");
if (!(parcelable3 instanceof C0433Gl)) {
parcelable3 = null;
}
parcelable = (C0433Gl) parcelable3;
}
this.j = (C0433Gl) parcelable;
if (Build.VERSION.SDK_INT >= 33) {
parcelable2 = (Parcelable) arguments.getParcelable("com.scb.phone.view.activity.card_management.DeejungPlansActivity.KEY_CREDIT_CARD_DISPLAY", C0367Fb.class);
} else {
Parcelable parcelable4 = arguments.getParcelable("com.scb.phone.view.activity.card_management.DeejungPlansActivity.KEY_CREDIT_CARD_DISPLAY");
if (!(parcelable4 instanceof C0367Fb)) {
parcelable4 = null;
}
parcelable2 = (C0367Fb) parcelable4;
}
this.h = (C0367Fb) parcelable2;
z = arguments.getBoolean("com.scb.phone.view.fragment.card_management.KEY_IS_FROM_DEEJUNG_INSTALLMENT");
} else {
z = true;
}
C2914anb c2914anb3 = this.presenter;
if (c2914anb3 != null) {
c2914anb2 = c2914anb3;
} else {
C14957gcv.a("");
}
C0433Gl c0433Gl = this.j;
C0367Fb c0367Fb = this.h;
c2914anb2.a = c0433Gl;
c2914anb2.b = c0367Fb;
c2914anb2.d = z;
ZI.IeS ieS = new ZI.IeS(c2914anb2) { // from class: o.ang
private C2914anb d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2914anb.c(this.d, (InterfaceC9059dca) obj);
}
{
this.d = c2914anb2;
}
};
if (c2914anb2.f != 0) {
ieS.e(c2914anb2.f);
}
CQO cqo = this.f;
C14957gcv.e(cqo);
cqo.c.setOnClickListener(new View.OnClickListener(this) { // from class: o.eJc
private DeejungPlanDetailFragment b;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
DeejungPlanDetailFragment.d(this.b);
}
{
this.b = this;
}
});
}
@Override // o.InterfaceC9059dca
public final void a(C0433Gl c0433Gl) {
CQO cqo = this.f;
C14957gcv.e(cqo);
if (c0433Gl != null) {
cqo.d.setText(c0433Gl.m);
cqo.b.setText(getString(R.string.total_payment));
cqo.e.setText(c0433Gl.l);
cqo.a.setText(c0433Gl.k);
cqo.k.setText(c0433Gl.j);
}
}
@Override // o.InterfaceC9059dca
public final void a(String str) {
CQO cqo = this.f;
C14957gcv.e(cqo);
cqo.f8117o.setText(R.string.yearly_interest_rate_label);
TextView textView = cqo.m;
if (str == null) {
str = "";
}
textView.setText(str);
cqo.c.setText(R.string.see_full_installment_plan);
LinearLayout linearLayout = cqo.f;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(8);
}
@Override // o.InterfaceC9059dca
public final void b(String str) {
CQO cqo = this.f;
C14957gcv.e(cqo);
TextView textView = cqo.m;
if (str == null) {
str = "";
}
textView.setText(str);
}
@Override // o.InterfaceC9059dca
public final void c(String str, String str2) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
CQO cqo = this.f;
C14957gcv.e(cqo);
cqo.h.setText(str);
cqo.l.setText(str2);
LinearLayout linearLayout = cqo.i;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(0);
LinearLayout linearLayout3 = cqo.j;
C14957gcv.c(linearLayout3, "");
LinearLayout linearLayout4 = linearLayout3;
C14957gcv.e(linearLayout4, "");
linearLayout4.setVisibility(0);
}
@Override // o.InterfaceC9059dca
public final void e() {
CQO cqo = this.f;
C14957gcv.e(cqo);
LinearLayout linearLayout = cqo.i;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(8);
LinearLayout linearLayout3 = cqo.j;
C14957gcv.c(linearLayout3, "");
LinearLayout linearLayout4 = linearLayout3;
C14957gcv.e(linearLayout4, "");
linearLayout4.setVisibility(8);
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onDestroyView() {
this.f = null;
super.onDestroyView();
}
public static /* synthetic */ void d(DeejungPlanDetailFragment deejungPlanDetailFragment) {
C14957gcv.e(deejungPlanDetailFragment, "");
C2914anb c2914anb = deejungPlanDetailFragment.presenter;
if (c2914anb == null) {
C14957gcv.a("");
c2914anb = null;
}
if (c2914anb.d()) {
InterfaceC9073dco interfaceC9073dco = deejungPlanDetailFragment.d;
if (interfaceC9073dco != null) {
interfaceC9073dco.a(deejungPlanDetailFragment.j);
return;
}
return;
}
InterfaceC9073dco interfaceC9073dco2 = deejungPlanDetailFragment.d;
if (interfaceC9073dco2 != null) {
interfaceC9073dco2.c(deejungPlanDetailFragment.j);
}
}
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
View inflate = layoutInflater.inflate(R.layout.2131559548, viewGroup, false);
int i = R.id.btn_deejung_review;
Button button = (Button) qeC.e(inflate, R.id.btn_deejung_review);
if (button != null) {
i = R.id.deejung_plan_chicklet_header;
TextView textView = (TextView) qeC.e(inflate, R.id.deejung_plan_chicklet_header);
if (textView != null) {
i = R.id.deejung_plan_chicklet_header_label;
TextView textView2 = (TextView) qeC.e(inflate, R.id.deejung_plan_chicklet_header_label);
if (textView2 != null) {
i = R.id.deejung_plan_chicklet_inner_label_first;
TextView textView3 = (TextView) qeC.e(inflate, R.id.deejung_plan_chicklet_inner_label_first);
if (textView3 != null) {
i = R.id.deejung_plan_chicklet_inner_label_second;
TextView textView4 = (TextView) qeC.e(inflate, R.id.deejung_plan_chicklet_inner_label_second);
if (textView4 != null) {
i = R.id.deejung_plan_chicklet_inner_text_first;
TextView textView5 = (TextView) qeC.e(inflate, R.id.deejung_plan_chicklet_inner_text_first);
if (textView5 != null) {
i = R.id.deejung_plan_chicklet_inner_text_second;
TextView textView6 = (TextView) qeC.e(inflate, R.id.deejung_plan_chicklet_inner_text_second);
if (textView6 != null) {
i = R.id.label_costOverview;
TextView textView7 = (TextView) qeC.e(inflate, R.id.label_costOverview);
if (textView7 != null) {
i = R.id.layout_monthly_plan_details;
LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, R.id.layout_monthly_plan_details);
if (linearLayout != null) {
i = R.id.ll_layout_fee;
LinearLayout linearLayout2 = (LinearLayout) qeC.e(inflate, R.id.ll_layout_fee);
if (linearLayout2 != null) {
i = R.id.ll_layout_interest;
LinearLayout linearLayout3 = (LinearLayout) qeC.e(inflate, R.id.ll_layout_interest);
if (linearLayout3 != null) {
i = R.id.ll_layout_principal;
LinearLayout linearLayout4 = (LinearLayout) qeC.e(inflate, R.id.ll_layout_principal);
if (linearLayout4 != null) {
i = R.id.ll_layout_vat;
LinearLayout linearLayout5 = (LinearLayout) qeC.e(inflate, R.id.ll_layout_vat);
if (linearLayout5 != null) {
i = R.id.monthly_plan_details_label;
TextView textView8 = (TextView) qeC.e(inflate, R.id.monthly_plan_details_label);
if (textView8 != null) {
i = R.id.review_button_view;
LinearLayout linearLayout6 = (LinearLayout) qeC.e(inflate, R.id.review_button_view);
if (linearLayout6 != null) {
i = R.id.tv_fee;
TextView textView9 = (TextView) qeC.e(inflate, R.id.tv_fee);
if (textView9 != null) {
i = R.id.tv_fee_label;
TextView textView10 = (TextView) qeC.e(inflate, R.id.tv_fee_label);
if (textView10 != null) {
i = R.id.tvRateLabel;
TextView textView11 = (TextView) qeC.e(inflate, R.id.tvRateLabel);
if (textView11 != null) {
i = R.id.tv_vat;
TextView textView12 = (TextView) qeC.e(inflate, R.id.tv_vat);
if (textView12 != null) {
i = R.id.tv_vat_label;
TextView textView13 = (TextView) qeC.e(inflate, R.id.tv_vat_label);
if (textView13 != null) {
i = R.id.txv_monthly_interest_rate;
TextView textView14 = (TextView) qeC.e(inflate, R.id.txv_monthly_interest_rate);
if (textView14 != null) {
TextView textView15 = (TextView) qeC.e(inflate, R.id.txv_monthly_plan_details);
if (textView15 != null) {
CQO cqo = new CQO((LinearLayout) inflate, button, textView, textView2, textView3, textView4, textView5, textView6, textView7, linearLayout, linearLayout2, linearLayout3, linearLayout4, linearLayout5, textView8, linearLayout6, textView9, textView10, textView11, textView12, textView13, textView14, textView15);
this.f = cqo;
C14957gcv.e(cqo);
LinearLayout linearLayout7 = cqo.g;
C14957gcv.c(linearLayout7, "");
return linearLayout7;
}
i = R.id.txv_monthly_plan_details;
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
}