what-the-bank/sources/com/scb/phone/view/fragment/cardmanagement/deejungtransfer/DeejungTransferLandingBotto...

1433 lines
57 KiB
Java

package com.scb.phone.view.fragment.cardmanagement.deejungtransfer;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import androidx.cardview.widget.CardView;
import androidx.constraintlayout.widget.Barrier;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import androidx.legacy.widget.Space;
import com.scb.phone.R;
import com.scb.phone.view.activity.cardmanagement.AmortizationActivity;
import com.scb.phone.view.activity.cardmanagement.deejungtransfer.DeejungTransferInstallmentsReviewActivity;
import com.scb.phone.view.activity.cardmanagement.deejungtransfer.DeejungTransferMinFullReviewActivity;
import com.scb.phone.view.custom.common.CustomDialog;
import com.scb.phone.view.custom.common.DefaultButton;
import com.scb.phone.view.fragment.cardmanagement.DeejungPlanErrorFragment;
import com.scb.phone.view.fragment.cardmanagement.DeejungPlansFragment;
import com.scb.phone.view.fragment.cardmanagement.deejungtransfer.DeejungTransferLandingBottomFragment;
import java.text.NumberFormat;
import java.util.List;
import java.util.Locale;
import o.AbstractC13482fbE;
import o.AbstractC14961gcz;
import o.C0367Fb;
import o.C0433Gl;
import o.C0693Mj;
import o.C14957gcv;
import o.C2417aeH;
import o.C3079aqj;
import o.C6583cXR;
import o.GI;
import o.GN;
import o.GP;
import o.GR;
import o.InterfaceC13391fZD;
import o.InterfaceC13393fZL;
import o.InterfaceC14890gbN;
import o.InterfaceC9080dcv;
import o.InterfaceC9082dcx;
import o.WW;
import o.ZI;
import o.fZZ;
import o.gdZ;
import o.gjJ;
import o.gnT;
import o.nMh;
import o.qVh;
import o.qeC;
import o.xZj;
import o.yDO;
import o.yRS;
import o.yrV;
/* loaded from: classes5.dex */
public final class DeejungTransferLandingBottomFragment extends Hilt_DeejungTransferLandingBottomFragment implements InterfaceC9080dcv {
private InterfaceC9082dcx d;
private final InterfaceC13393fZL f;
private int g;
private C0367Fb h;
private int i;
private GN j;
private C0433Gl k;
private C2417aeH l;
/* renamed from: o, reason: collision with root package name */
private int f8026o;
@InterfaceC13391fZD
public C3079aqj presenter;
private String c = "";
private String n = "";
public DeejungTransferLandingBottomFragment() {
RVV rvv = new RVV(this);
C14957gcv.e(rvv, "");
this.f = new fZZ(rvv);
}
/* loaded from: classes5.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
/* loaded from: classes5.dex */
static final class RVV extends AbstractC14961gcz implements InterfaceC14890gbN<yrV> {
private DeejungTransferLandingBottomFragment e;
@Override // o.InterfaceC14890gbN
public final /* synthetic */ yrV invoke() {
View inflate = this.e.getLayoutInflater().inflate(R.layout.2131559554, (ViewGroup) null, false);
int i = R.id.account_icon_installments;
ImageView imageView = (ImageView) qeC.e(inflate, R.id.account_icon_installments);
if (imageView != null) {
i = R.id.account_icon_min_max;
ImageView imageView2 = (ImageView) qeC.e(inflate, R.id.account_icon_min_max);
if (imageView2 != null) {
i = R.id.amount_label;
TextView textView = (TextView) qeC.e(inflate, R.id.amount_label);
if (textView != null) {
i = R.id.barrier;
Barrier barrier = (Barrier) qeC.e(inflate, R.id.barrier);
if (barrier != null) {
i = R.id.button_review_min_max;
DefaultButton defaultButton = (DefaultButton) qeC.e(inflate, R.id.button_review_min_max);
if (defaultButton != null) {
i = R.id.divider1;
View e = qeC.e(inflate, R.id.divider1);
if (e != null) {
i = R.id.divider2;
View e2 = qeC.e(inflate, R.id.divider2);
if (e2 != null) {
i = R.id.divider3;
View e3 = qeC.e(inflate, R.id.divider3);
if (e3 != null) {
i = R.id.general_terms;
TextView textView2 = (TextView) qeC.e(inflate, R.id.general_terms);
if (textView2 != null) {
i = R.id.installment_plan_label;
TextView textView3 = (TextView) qeC.e(inflate, R.id.installment_plan_label);
if (textView3 != null) {
i = R.id.installment_plans_layout;
CardView cardView = (CardView) qeC.e(inflate, R.id.installment_plans_layout);
if (cardView != null) {
i = R.id.layout_review_min_max;
LinearLayout linearLayout = (LinearLayout) qeC.e(inflate, R.id.layout_review_min_max);
if (linearLayout != null) {
i = R.id.layout_transfer_amount;
ConstraintLayout constraintLayout = (ConstraintLayout) qeC.e(inflate, R.id.layout_transfer_amount);
if (constraintLayout != null) {
i = R.id.min_or_full_plan_label;
TextView textView4 = (TextView) qeC.e(inflate, R.id.min_or_full_plan_label);
if (textView4 != null) {
i = R.id.min_or_max_layout;
CardView cardView2 = (CardView) qeC.e(inflate, R.id.min_or_max_layout);
if (cardView2 != null) {
i = R.id.plan_loader;
View e4 = qeC.e(inflate, R.id.plan_loader);
if (e4 != null) {
if (e4 == null) {
throw new NullPointerException("rootView");
}
LinearLayout linearLayout2 = (LinearLayout) e4;
qVh qvh = new qVh(linearLayout2, linearLayout2);
int i2 = R.id.plans_buttons;
ConstraintLayout constraintLayout2 = (ConstraintLayout) qeC.e(inflate, R.id.plans_buttons);
if (constraintLayout2 != null) {
i2 = R.id.plans_buttons_bottom;
Space space = (Space) qeC.e(inflate, R.id.plans_buttons_bottom);
if (space != null) {
i2 = R.id.plans_fragment_container;
FrameLayout frameLayout = (FrameLayout) qeC.e(inflate, R.id.plans_fragment_container);
if (frameLayout != null) {
i2 = R.id.remaining_limit_label;
TextView textView5 = (TextView) qeC.e(inflate, R.id.remaining_limit_label);
if (textView5 != null) {
i2 = R.id.select_payment_method_label;
TextView textView6 = (TextView) qeC.e(inflate, R.id.select_payment_method_label);
if (textView6 != null) {
i2 = R.id.space;
View e5 = qeC.e(inflate, R.id.space);
if (e5 != null) {
EditText editText = (EditText) qeC.e(inflate, R.id.transfer_amount);
if (editText != null) {
TextView textView7 = (TextView) qeC.e(inflate, R.id.txv_error_transfer_amount);
if (textView7 != null) {
return new yrV((ConstraintLayout) inflate, imageView, imageView2, textView, barrier, defaultButton, e, e2, e3, textView2, textView3, cardView, linearLayout, constraintLayout, textView4, cardView2, qvh, constraintLayout2, space, frameLayout, textView5, textView6, e5, editText, textView7);
}
i = R.id.txv_error_transfer_amount;
} else {
i = R.id.transfer_amount;
}
}
}
}
}
}
}
i = i2;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
RVV(DeejungTransferLandingBottomFragment deejungTransferLandingBottomFragment) {
super(0);
this.e = deejungTransferLandingBottomFragment;
}
}
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
ConstraintLayout constraintLayout = ((yrV) this.f.e()).l;
C14957gcv.c(constraintLayout, "");
return constraintLayout;
}
@Override // androidx.fragment.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
Parcelable parcelable;
Parcelable parcelable2;
final String obj;
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
C3079aqj c3079aqj = this.presenter;
C0367Fb c0367Fb = null;
if (c3079aqj == null) {
C14957gcv.a("");
c3079aqj = null;
}
c3079aqj.e((C3079aqj) this);
FragmentActivity activity = getActivity();
if (activity != null) {
Intent intent = activity.getIntent();
C14957gcv.c(intent, "");
if (Build.VERSION.SDK_INT >= 33) {
Bundle extras = intent.getExtras();
parcelable = extras != null ? (Parcelable) extras.getParcelable("com.scb.phone.view.activity.card_management.DeejungLandingActivity.KEY_DEEJUNG_TRANSFER_LANDING_DISPLAY_MODEL", GN.class) : null;
} else {
Bundle extras2 = intent.getExtras();
Parcelable parcelable3 = extras2 != null ? extras2.getParcelable("com.scb.phone.view.activity.card_management.DeejungLandingActivity.KEY_DEEJUNG_TRANSFER_LANDING_DISPLAY_MODEL") : null;
if (!(parcelable3 instanceof GN)) {
parcelable3 = null;
}
parcelable = (GN) parcelable3;
}
GN gn = (GN) parcelable;
if (gn != null) {
this.j = gn;
}
Intent intent2 = activity.getIntent();
C14957gcv.c(intent2, "");
if (Build.VERSION.SDK_INT >= 33) {
Bundle extras3 = intent2.getExtras();
parcelable2 = extras3 != null ? (Parcelable) extras3.getParcelable("com.scb.phone.view.activity.card_management.DeejungPlansActivity.KEY_CREDIT_CARD_DISPLAY", C0367Fb.class) : null;
} else {
Bundle extras4 = intent2.getExtras();
Parcelable parcelable4 = extras4 != null ? extras4.getParcelable("com.scb.phone.view.activity.card_management.DeejungPlansActivity.KEY_CREDIT_CARD_DISPLAY") : null;
if (!(parcelable4 instanceof C0367Fb)) {
parcelable4 = null;
}
parcelable2 = (C0367Fb) parcelable4;
}
C0367Fb c0367Fb2 = (C0367Fb) parcelable2;
if (c0367Fb2 != null) {
this.h = c0367Fb2;
}
FragmentActivity fragmentActivity = activity;
this.g = nMh.getColor(fragmentActivity, R.color.f13582131100866);
this.f8026o = nMh.getColor(fragmentActivity, R.color.f13902131100898);
this.i = nMh.getColor(fragmentActivity, R.color.f3472131099855);
final C3079aqj c3079aqj2 = this.presenter;
if (c3079aqj2 == null) {
C14957gcv.a("");
c3079aqj2 = null;
}
final GN gn2 = this.j;
if (gn2 == null) {
C14957gcv.a("");
gn2 = null;
}
C0367Fb c0367Fb3 = this.h;
if (c0367Fb3 == null) {
C14957gcv.a("");
} else {
c0367Fb = c0367Fb3;
}
C14957gcv.e(gn2, "");
C14957gcv.e(c0367Fb, "");
c3079aqj2.b = gn2;
c3079aqj2.c = c0367Fb;
double d = gn2.i;
double d2 = gn2.f;
if (d != d2) {
String format = NumberFormat.getInstance(Locale.getDefault()).format(d);
String format2 = NumberFormat.getInstance(Locale.getDefault()).format(d2);
StringBuilder sb = new StringBuilder();
sb.append(format);
sb.append(" - ");
sb.append(format2);
obj = sb.toString();
} else {
obj = NumberFormat.getInstance(Locale.getDefault()).format(d);
}
ZI.IeS ieS = new ZI.IeS(obj, gn2, c3079aqj2) { // from class: o.aqv
private GN b;
private String d;
private C3079aqj e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C3079aqj.b(this.d, this.b, this.e, (InterfaceC9080dcv) obj2);
}
{
this.d = obj;
this.b = gn2;
this.e = c3079aqj2;
}
};
if (c3079aqj2.f != 0) {
ieS.e(c3079aqj2.f);
}
final EditText editText = ((yrV) this.f.e()).r;
editText.setOnEditorActionListener(new TextView.OnEditorActionListener(this, editText) { // from class: o.eKq
private DeejungTransferLandingBottomFragment c;
private EditText d;
@Override // android.widget.TextView.OnEditorActionListener
public final boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {
return DeejungTransferLandingBottomFragment.aqX_(this.c, this.d, i);
}
{
this.c = this;
this.d = editText;
}
});
editText.addTextChangedListener(new LWm(editText, this));
final yrV yrv = (yrV) this.f.e();
editText.setOnFocusChangeListener(new View.OnFocusChangeListener(this, yrv) { // from class: o.eKf
private DeejungTransferLandingBottomFragment b;
private yrV e;
@Override // android.view.View.OnFocusChangeListener
public final void onFocusChange(View view2, boolean z) {
DeejungTransferLandingBottomFragment.b(this.b, this.e, z);
}
{
this.b = this;
this.e = yrv;
}
});
yrV yrv2 = (yrV) this.f.e();
yrv2.f.setOnClickListener(new View.OnClickListener(this) { // from class: o.eKm
private DeejungTransferLandingBottomFragment a;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
DeejungTransferLandingBottomFragment.b(this.a);
}
{
this.a = this;
}
});
yrv2.j.setOnClickListener(new View.OnClickListener(this) { // from class: o.eKl
private DeejungTransferLandingBottomFragment b;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
DeejungTransferLandingBottomFragment.d(this.b);
}
{
this.b = this;
}
});
yrv2.c.setOnClickListener(new View.OnClickListener(this) { // from class: o.eKk
private DeejungTransferLandingBottomFragment a;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
DeejungTransferLandingBottomFragment.e(this.a);
}
{
this.a = this;
}
});
yrv2.r.getOnFocusChangeListener();
}
}
/* loaded from: classes5.dex */
public static final class LWm implements TextWatcher {
private EditText a;
private DeejungTransferLandingBottomFragment d;
@Override // android.text.TextWatcher
public final void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
}
@Override // android.text.TextWatcher
public final void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
}
LWm(EditText editText, DeejungTransferLandingBottomFragment deejungTransferLandingBottomFragment) {
this.a = editText;
this.d = deejungTransferLandingBottomFragment;
}
@Override // android.text.TextWatcher
public final void afterTextChanged(Editable editable) {
C14957gcv.e(editable, "");
LWm lWm = this;
this.a.removeTextChangedListener(lWm);
this.d.c = gdZ.a(gdZ.b((CharSequence) editable.toString()).toString(), ",", "");
if (this.d.c.length() != 0) {
final long parseLong = Long.parseLong(this.d.c);
this.a.setText(NumberFormat.getInstance(Locale.getDefault()).format(parseLong));
EditText editText = this.a;
editText.setSelection(editText.getText().length());
C3079aqj c3079aqj = this.d.presenter;
GN gn = null;
if (c3079aqj == null) {
C14957gcv.a("");
c3079aqj = null;
}
GN gn2 = this.d.j;
if (gn2 == null) {
C14957gcv.a("");
gn2 = null;
}
final double d = gn2.i;
GN gn3 = this.d.j;
if (gn3 == null) {
C14957gcv.a("");
} else {
gn = gn3;
}
final double d2 = gn.f;
final C3079aqj c3079aqj2 = c3079aqj;
ZI.IeS ieS = new ZI.IeS(d, c3079aqj2, parseLong, d2) { // from class: o.aqB
private C3079aqj a;
private double b;
private long c;
private double d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C3079aqj.e(this.b, this.a, this.c, this.d, (InterfaceC9080dcv) obj);
}
{
this.b = d;
this.a = c3079aqj2;
this.c = parseLong;
this.d = d2;
}
};
if (c3079aqj.f != 0) {
ieS.e(c3079aqj.f);
}
} else {
this.d.o();
}
this.a.addTextChangedListener(lWm);
}
}
private final boolean F() {
if (this.c.length() != 0) {
if (this.presenter == null) {
C14957gcv.a("");
}
String str = this.c;
GN gn = this.j;
GN gn2 = null;
if (gn == null) {
C14957gcv.a("");
gn = null;
}
double d = gn.i;
GN gn3 = this.j;
if (gn3 == null) {
C14957gcv.a("");
} else {
gn2 = gn3;
}
if (!C3079aqj.b(str, d, gn2.f)) {
return false;
}
}
return true;
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.scb.phone.view.fragment.cardmanagement.deejungtransfer.Hilt_DeejungTransferLandingBottomFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment
public final void onAttach(Context context) {
C14957gcv.e(context, "");
super.onAttach(context);
if (context instanceof InterfaceC9082dcx) {
this.d = (InterfaceC9082dcx) context;
}
}
@Override // o.InterfaceC9080dcv
public final void d(String str) {
C14957gcv.e(str, "");
((yrV) this.f.e()).n.setText(str);
d();
}
@Override // o.InterfaceC9080dcv
public final void e(GI gi, C0433Gl c0433Gl) {
C14957gcv.e(gi, "");
C14957gcv.e(c0433Gl, "");
Context context = getContext();
if (context != null) {
AmortizationActivity.IeS ieS = AmortizationActivity.b;
InterfaceC9082dcx interfaceC9082dcx = this.d;
InterfaceC9082dcx interfaceC9082dcx2 = null;
if (interfaceC9082dcx == null) {
C14957gcv.a("");
interfaceC9082dcx = null;
}
WW d = interfaceC9082dcx.d();
C0367Fb c0367Fb = this.h;
if (c0367Fb == null) {
C14957gcv.a("");
c0367Fb = null;
}
InterfaceC9082dcx interfaceC9082dcx3 = this.d;
if (interfaceC9082dcx3 == null) {
C14957gcv.a("");
} else {
interfaceC9082dcx2 = interfaceC9082dcx3;
}
String c = interfaceC9082dcx2.c();
C14957gcv.e(context, "");
C14957gcv.e(gi, "");
C14957gcv.e(c0433Gl, "");
C14957gcv.e(d, "");
C14957gcv.e(c0367Fb, "");
Intent intent = new Intent(context, (Class<?>) AmortizationActivity.class);
intent.putExtra("com.phone.scb.EXTRA_AMORTIZATION_SUMMARY_DISPLAY", gi);
intent.putExtra("com.phone.scb.EXTRA_DEEJUNG_PLAN_DISPLAY", c0433Gl);
intent.putExtra("com.phone.scb.EXTRA_ACCOUNT_SOURCE_DISPLAY", d);
intent.putExtra("com.phone.scb.EXTRA_CREDIT_CARD_DISPLAY", c0367Fb);
intent.putExtra("com.phone.scb.EXTRA_TERM_AND_CONDITION_URL", c);
intent.addFlags(603979776);
context.startActivity(intent);
}
}
@Override // o.InterfaceC9080dcv
public final void I() {
yrV yrv = (yrV) this.f.e();
TextView textView = yrv.q;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(0);
TextView textView3 = yrv.q;
Resources resources = getResources();
Object[] objArr = new Object[1];
GN gn = this.j;
if (gn == null) {
C14957gcv.a("");
gn = null;
}
objArr[0] = (String) C6583cXR.c(new Object[]{Double.valueOf(gn.i)}, -150997759, 150997764, (int) System.currentTimeMillis());
textView3.setText(resources.getString(R.string.minimum_transfer_limit_error, objArr));
yrv.a.setBackgroundColor(this.g);
}
@Override // o.InterfaceC9080dcv
public final void B() {
yrV yrv = (yrV) this.f.e();
TextView textView = yrv.q;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(0);
yrv.q.setText(getResources().getString(R.string.maximum_transfer_limit_error));
yrv.a.setBackgroundColor(this.g);
}
@Override // o.InterfaceC9080dcv
public final void o() {
yrV yrv = (yrV) this.f.e();
TextView textView = yrv.q;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
yrv.a.setBackgroundColor(this.f8026o);
}
@Override // o.InterfaceC9080dcv
public final void d() {
FragmentActivity activity = getActivity();
if (activity != null) {
int color = nMh.getColor(activity, R.color.f3002131099807);
yrV yrv = (yrV) this.f.e();
yrv.j.setEnabled(false);
yrv.f.setEnabled(false);
yrv.i.setTextColor(color);
yrv.h.setTextColor(color);
yrv.d.setAlpha(0.4f);
yrv.e.setAlpha(0.4f);
H();
G();
TextView textView = yrv.b;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
}
}
@Override // o.InterfaceC9080dcv
public final void e() {
FragmentActivity activity = getActivity();
if (activity != null) {
int color = nMh.getColor(activity, R.color.f2732131099780);
yrV yrv = (yrV) this.f.e();
yrv.j.setEnabled(true);
yrv.f.setEnabled(true);
yrv.i.setTextColor(color);
yrv.h.setTextColor(color);
yrv.d.setAlpha(1.0f);
yrv.e.setAlpha(1.0f);
}
}
@Override // o.InterfaceC9080dcv
public final void D() {
FragmentActivity activity = getActivity();
if (activity != null) {
yrV yrv = (yrV) this.f.e();
yrv.r.clearFocus();
yrv.f.setBackground(nMh.getDrawable(activity, R.drawable.shape_purple_border_rounded_rectangle));
}
}
@Override // o.InterfaceC9080dcv
public final void b(String str, String str2, String str3, String str4, String str5) {
TextView textView = ((yrV) this.f.e()).b;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(0);
textView.setText(textView.getResources().getString(R.string.installment_plans_general_terms_for_credit_card, str, str2, str3, str4, str5));
}
@Override // o.InterfaceC9080dcv
public final void G() {
FragmentActivity activity = getActivity();
if (activity != null) {
int color = nMh.getColor(activity, R.color.f14042131100912);
yrV yrv = (yrV) this.f.e();
yrv.f.setBackgroundColor(color);
TextView textView = yrv.b;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
}
}
@Override // o.InterfaceC9080dcv
public final void H() {
FragmentActivity activity = getActivity();
if (activity != null) {
int color = nMh.getColor(activity, R.color.f14042131100912);
yrV yrv = (yrV) this.f.e();
yrv.j.setBackgroundColor(color);
TextView textView = yrv.b;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
LinearLayout linearLayout = yrv.g;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(8);
}
}
@Override // o.InterfaceC9080dcv
public final void A() {
FragmentActivity activity = getActivity();
if (activity != null) {
yrV yrv = (yrV) this.f.e();
yrv.r.clearFocus();
yrv.j.setBackground(nMh.getDrawable(activity, R.drawable.shape_purple_border_rounded_rectangle));
}
}
@Override // o.InterfaceC9080dcv
public final void b(String str) {
C14957gcv.e(str, "");
TextView textView = ((yrV) this.f.e()).b;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(0);
textView.setText(str);
}
@Override // o.InterfaceC9080dcv
public final void l() {
TextView textView = ((yrV) this.f.e()).b;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
}
@Override // o.InterfaceC9080dcv
public final void z() {
FragmentActivity activity = getActivity();
if (activity != null) {
final yrV yrv = (yrV) this.f.e();
LinearLayout linearLayout = yrv.g;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(0);
final ScrollView scrollView = (ScrollView) activity.findViewById(R.id.root_scroll_view);
if (scrollView != null) {
C14957gcv.c(scrollView, "");
scrollView.post(new Runnable(scrollView, yrv) { // from class: o.eKj
private yrV b;
private ScrollView d;
@Override // java.lang.Runnable
public final void run() {
DeejungTransferLandingBottomFragment.arb_(this.d, this.b);
}
{
this.d = scrollView;
this.b = yrv;
}
});
}
}
}
@Override // o.InterfaceC9080dcv
public final void C() {
FragmentActivity activity = getActivity();
if (activity != null) {
final yrV yrv = (yrV) this.f.e();
LinearLayout linearLayout = yrv.f9330o.b;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(0);
final ScrollView scrollView = (ScrollView) activity.findViewById(R.id.root_scroll_view);
if (scrollView != null) {
C14957gcv.c(scrollView, "");
scrollView.post(new Runnable(scrollView, yrv) { // from class: o.eKt
private yrV c;
private ScrollView d;
@Override // java.lang.Runnable
public final void run() {
DeejungTransferLandingBottomFragment.aqZ_(this.d, this.c);
}
{
this.d = scrollView;
this.c = yrv;
}
});
}
}
}
@Override // o.InterfaceC9080dcv
public final void m() {
LinearLayout linearLayout = ((yrV) this.f.e()).f9330o.b;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(8);
}
@Override // o.InterfaceC9080dcv
public final void a() {
((yrV) this.f.e()).r.setEnabled(false);
}
@Override // o.InterfaceC9080dcv
public final void c() {
((yrV) this.f.e()).r.setEnabled(true);
}
@Override // o.InterfaceC9080dcv
public final void E() {
FragmentActivity activity = getActivity();
if (activity != null) {
yRS supportFragmentManager = activity.getSupportFragmentManager();
C14957gcv.c(supportFragmentManager, "");
DeejungPlansFragment deejungPlansFragment = (DeejungPlansFragment) supportFragmentManager.findFragmentByTag("DeejungPlansFragment");
if (deejungPlansFragment == null || !deejungPlansFragment.isHidden()) {
return;
}
supportFragmentManager.a().a(deejungPlansFragment).b();
supportFragmentManager.n();
arc_(activity);
}
}
@Override // o.InterfaceC9080dcv
public final void r() {
FragmentActivity activity = getActivity();
if (activity != null) {
yRS supportFragmentManager = activity.getSupportFragmentManager();
C14957gcv.c(supportFragmentManager, "");
Fragment findFragmentByTag = supportFragmentManager.findFragmentByTag("DeejungPlansFragment");
if (findFragmentByTag == null || !findFragmentByTag.isVisible()) {
return;
}
supportFragmentManager.a().c(findFragmentByTag).b();
}
}
@Override // o.InterfaceC9080dcv
public final void w() {
FragmentActivity activity = getActivity();
if (activity != null) {
yRS supportFragmentManager = activity.getSupportFragmentManager();
C14957gcv.c(supportFragmentManager, "");
Fragment findFragmentByTag = supportFragmentManager.findFragmentByTag("DeejungPlansFragment");
if (findFragmentByTag != null) {
supportFragmentManager.a().e(findFragmentByTag).b();
}
}
}
@Override // o.InterfaceC9080dcv
public final void a(List<C0433Gl> list) {
C14957gcv.e(list, "");
FragmentActivity activity = getActivity();
if (activity != null) {
yRS supportFragmentManager = activity.getSupportFragmentManager();
C14957gcv.c(supportFragmentManager, "");
if (((DeejungPlansFragment) supportFragmentManager.findFragmentByTag("DeejungPlansFragment")) == null) {
DeejungPlansFragment.LWm lWm = DeejungPlansFragment.d;
C0367Fb c0367Fb = this.h;
if (c0367Fb == null) {
C14957gcv.a("");
c0367Fb = null;
}
DeejungPlansFragment a = DeejungPlansFragment.LWm.a(list, c0367Fb, Boolean.FALSE);
a.c = this;
AbstractC13482fbE a2 = supportFragmentManager.a();
a2.b(((yrV) this.f.e()).m.getId(), a, "DeejungPlansFragment", 1);
a2.b();
supportFragmentManager.n();
arc_(activity);
}
}
}
private final void arc_(Activity activity) {
final ScrollView scrollView = (ScrollView) activity.findViewById(R.id.root_scroll_view);
final ViewGroup viewGroup = (ViewGroup) activity.findViewById(R.id.deejung_landing_parent_layout);
if (scrollView == null || viewGroup == null) {
return;
}
scrollView.post(new Runnable(viewGroup, scrollView, this) { // from class: o.eKo
private ViewGroup b;
private DeejungTransferLandingBottomFragment c;
private ScrollView e;
@Override // java.lang.Runnable
public final void run() {
DeejungTransferLandingBottomFragment.aqY_(this.b, this.e, this.c);
}
{
this.b = viewGroup;
this.e = scrollView;
this.c = this;
}
});
}
@Override // o.InterfaceC9080dcv
public final C0367Fb f() {
C0367Fb c0367Fb = this.h;
if (c0367Fb != null) {
return c0367Fb;
}
C14957gcv.a("");
return null;
}
@Override // o.InterfaceC9080dcv
public final C0433Gl i() {
C0433Gl c0433Gl = this.k;
if (c0433Gl != null) {
return c0433Gl;
}
C14957gcv.a("");
return null;
}
@Override // o.InterfaceC9080dcv
public final void a(GR gr) {
Context context = getContext();
if (context != null) {
DeejungTransferInstallmentsReviewActivity.LWm lWm = DeejungTransferInstallmentsReviewActivity.b;
Intent intent = new Intent(context, (Class<?>) DeejungTransferInstallmentsReviewActivity.class);
intent.putExtra("com.scb.phone.view.activity.card_management.DeejungTransferInstallmentsSummaryFragment.KEY_TRANSFER_INSTALLMENTS_SUMMARY_DISPLAY_MODEL", gr);
startActivity(intent);
}
}
@Override // o.InterfaceC9080dcv
public final String h() {
InterfaceC9082dcx interfaceC9082dcx = this.d;
if (interfaceC9082dcx == null) {
C14957gcv.a("");
interfaceC9082dcx = null;
}
String str = interfaceC9082dcx.d().s;
return str == null ? "" : str;
}
@Override // o.InterfaceC9080dcv
public final String n() {
InterfaceC9082dcx interfaceC9082dcx = this.d;
if (interfaceC9082dcx == null) {
C14957gcv.a("");
interfaceC9082dcx = null;
}
String str = interfaceC9082dcx.d().k;
return str == null ? "" : str;
}
@Override // o.InterfaceC9080dcv
public final String b() {
InterfaceC9082dcx interfaceC9082dcx = this.d;
if (interfaceC9082dcx == null) {
C14957gcv.a("");
interfaceC9082dcx = null;
}
String str = interfaceC9082dcx.d().r;
return str == null ? "" : str;
}
@Override // o.InterfaceC9080dcv
public final String j() {
InterfaceC9082dcx interfaceC9082dcx = this.d;
InterfaceC9082dcx interfaceC9082dcx2 = null;
if (interfaceC9082dcx == null) {
C14957gcv.a("");
interfaceC9082dcx = null;
}
String c = interfaceC9082dcx.c();
if (!(!(c == null || gdZ.d((CharSequence) c)))) {
return "";
}
InterfaceC9082dcx interfaceC9082dcx3 = this.d;
if (interfaceC9082dcx3 == null) {
C14957gcv.a("");
} else {
interfaceC9082dcx2 = interfaceC9082dcx3;
}
return interfaceC9082dcx2.c();
}
@Override // o.InterfaceC9073dco
public final void c(C0433Gl c0433Gl) {
C3079aqj c3079aqj;
C14957gcv.e(c0433Gl, "");
this.k = c0433Gl;
C3079aqj c3079aqj2 = this.presenter;
C0367Fb c0367Fb = null;
if (c3079aqj2 != null) {
c3079aqj = c3079aqj2;
} else {
C14957gcv.a("");
c3079aqj = null;
}
String str = this.c;
String h = h();
C0367Fb c0367Fb2 = this.h;
if (c0367Fb2 == null) {
C14957gcv.a("");
} else {
c0367Fb = c0367Fb2;
}
String str2 = c0367Fb.g;
C14957gcv.c((Object) str2, "");
c3079aqj.a(c0433Gl, str, h, str2, false);
}
@Override // o.InterfaceC9073dco
public final void a(final C0433Gl c0433Gl) {
C14957gcv.e(c0433Gl, "");
this.k = c0433Gl;
C3079aqj c3079aqj = this.presenter;
C0367Fb c0367Fb = null;
if (c3079aqj == null) {
C14957gcv.a("");
c3079aqj = null;
}
final String str = this.c;
final String h = h();
C0367Fb c0367Fb2 = this.h;
if (c0367Fb2 == null) {
C14957gcv.a("");
c0367Fb2 = null;
}
final String str2 = c0367Fb2.g;
C14957gcv.c((Object) str2, "");
C0367Fb c0367Fb3 = this.h;
if (c0367Fb3 == null) {
C14957gcv.a("");
c0367Fb3 = null;
}
final String str3 = c0367Fb3.S;
C0367Fb c0367Fb4 = this.h;
if (c0367Fb4 == null) {
C14957gcv.a("");
} else {
c0367Fb = c0367Fb4;
}
final String str4 = c0367Fb.q;
C14957gcv.e(c0433Gl, "");
C14957gcv.e(str, "");
C14957gcv.e(h, "");
C14957gcv.e(str2, "");
final C3079aqj c3079aqj2 = c3079aqj;
ZI.IeS ieS = new ZI.IeS(str, c3079aqj2, str3, str4, h, c0433Gl, str2) { // from class: o.aqC
private C3079aqj a;
private String b;
private String c;
private String d;
private String e;
private String g;
private C0433Gl i;
private boolean j = false;
@Override // o.ZI.IeS
public final void e(Object obj) {
C3079aqj.e(this.c, this.a, this.e, this.d, this.b, this.j, this.i, this.g, (InterfaceC9080dcv) obj);
}
{
this.c = str;
this.a = c3079aqj2;
this.e = str3;
this.d = str4;
this.b = h;
this.i = c0433Gl;
this.g = str2;
}
};
if (c3079aqj.f != 0) {
ieS.e(c3079aqj.f);
}
}
@Override // o.InterfaceC9080dcv
public final void a(GP gp) {
Context context = getContext();
if (context != null) {
DeejungTransferMinFullReviewActivity.Sts sts = DeejungTransferMinFullReviewActivity.b;
Intent intent = new Intent(context, (Class<?>) DeejungTransferMinFullReviewActivity.class);
intent.putExtra("com.scb.phone.view.activity.card_management.DeejungTransferMinFullSummaryFragment.KEY_TRANSFER_INSTALLMENT_SUMMARY_DISPLAY_MODEL", gp);
startActivity(intent);
}
}
@Override // o.InterfaceC9080dcv
public final C2417aeH g() {
C2417aeH c2417aeH = this.l;
if (c2417aeH != null) {
return c2417aeH;
}
C14957gcv.a("");
return null;
}
@Override // o.InterfaceC9080dcv
public final void c(C0693Mj c0693Mj, final gnT gnt) {
C14957gcv.e(c0693Mj, "");
C14957gcv.e(gnt, "");
CustomDialog b = CustomDialog.b(getContext());
String str = c0693Mj.d;
if (gjJ.a(str)) {
b.mTitleTextView.setVisibility(0);
b.mTitleTextView.setText(str);
}
String str2 = c0693Mj.c;
if (gjJ.a(str2)) {
b.mTextTextView.setVisibility(0);
b.mTextTextView.setText(str2);
}
((CustomDialog) CustomDialog.e(new Object[]{b.aoT_(R.string.proceed, new DialogInterface.OnClickListener(gnt, this) { // from class: o.eKe
private gnT c;
private DeejungTransferLandingBottomFragment e;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
DeejungTransferLandingBottomFragment.e(this.c, this.e);
}
{
this.c = gnt;
this.e = this;
}
}), Integer.valueOf(R.string.cancel), new DialogInterface.OnClickListener() { // from class: o.eKn
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
}
}})).show();
}
@Override // o.InterfaceC9080dcv
public final void s() {
FragmentActivity activity = getActivity();
if (activity != null) {
yRS supportFragmentManager = activity.getSupportFragmentManager();
C14957gcv.c(supportFragmentManager, "");
Fragment findFragmentByTag = supportFragmentManager.findFragmentByTag("DeejungPlanErrorFragment");
if (findFragmentByTag != null) {
supportFragmentManager.a().e(findFragmentByTag).b();
}
}
}
@Override // o.InterfaceC9080dcv
public final void d(C0693Mj c0693Mj) {
C14957gcv.e(c0693Mj, "");
FragmentActivity activity = getActivity();
if (activity != null) {
yRS supportFragmentManager = activity.getSupportFragmentManager();
C14957gcv.c(supportFragmentManager, "");
if (((DeejungPlanErrorFragment) supportFragmentManager.findFragmentByTag("DeejungPlanErrorFragment")) == null) {
AbstractC13482fbE a = activity.getSupportFragmentManager().a();
C14957gcv.c(a, "");
DeejungPlanErrorFragment.Sts sts = DeejungPlanErrorFragment.c;
a.b(((yrV) this.f.e()).m.getId(), DeejungPlanErrorFragment.Sts.b(c0693Mj.d, c0693Mj.c, null, null, null, true), "DeejungPlanErrorFragment", 1);
a.b();
}
}
}
@Override // o.InterfaceC9080dcv
public final void c(String str) {
C14957gcv.e(str, "");
this.n = str;
((yrV) this.f.e()).r.setHint(str);
}
public static /* synthetic */ void e(DeejungTransferLandingBottomFragment deejungTransferLandingBottomFragment) {
C14957gcv.e(deejungTransferLandingBottomFragment, "");
C3079aqj c3079aqj = deejungTransferLandingBottomFragment.presenter;
C0367Fb c0367Fb = null;
if (c3079aqj == null) {
C14957gcv.a("");
c3079aqj = null;
}
String str = deejungTransferLandingBottomFragment.c;
String h = deejungTransferLandingBottomFragment.h();
C0367Fb c0367Fb2 = deejungTransferLandingBottomFragment.h;
if (c0367Fb2 == null) {
C14957gcv.a("");
} else {
c0367Fb = c0367Fb2;
}
String str2 = c0367Fb.g;
C14957gcv.c((Object) str2, "");
c3079aqj.c(str, h, str2, false);
}
public static /* synthetic */ void e(gnT gnt, DeejungTransferLandingBottomFragment deejungTransferLandingBottomFragment) {
C3079aqj c3079aqj;
C0433Gl c0433Gl;
C14957gcv.e(gnt, "");
C14957gcv.e(deejungTransferLandingBottomFragment, "");
C0367Fb c0367Fb = null;
if (gnt == gnT.MIN_OR_FULL_NEWTENOR) {
C3079aqj c3079aqj2 = deejungTransferLandingBottomFragment.presenter;
if (c3079aqj2 == null) {
C14957gcv.a("");
c3079aqj2 = null;
}
String str = deejungTransferLandingBottomFragment.c;
String h = deejungTransferLandingBottomFragment.h();
C0367Fb c0367Fb2 = deejungTransferLandingBottomFragment.h;
if (c0367Fb2 == null) {
C14957gcv.a("");
} else {
c0367Fb = c0367Fb2;
}
String str2 = c0367Fb.g;
C14957gcv.c((Object) str2, "");
c3079aqj2.c(str, h, str2, true);
return;
}
C3079aqj c3079aqj3 = deejungTransferLandingBottomFragment.presenter;
if (c3079aqj3 != null) {
c3079aqj = c3079aqj3;
} else {
C14957gcv.a("");
c3079aqj = null;
}
C0433Gl c0433Gl2 = deejungTransferLandingBottomFragment.k;
if (c0433Gl2 == null) {
C14957gcv.a("");
c0433Gl = null;
} else {
c0433Gl = c0433Gl2;
}
String str3 = deejungTransferLandingBottomFragment.c;
String h2 = deejungTransferLandingBottomFragment.h();
C0367Fb c0367Fb3 = deejungTransferLandingBottomFragment.h;
if (c0367Fb3 == null) {
C14957gcv.a("");
} else {
c0367Fb = c0367Fb3;
}
String str4 = c0367Fb.g;
C14957gcv.c((Object) str4, "");
c3079aqj.a(c0433Gl, str3, h2, str4, true);
}
public static /* synthetic */ void b(DeejungTransferLandingBottomFragment deejungTransferLandingBottomFragment) {
C14957gcv.e(deejungTransferLandingBottomFragment, "");
C3079aqj c3079aqj = deejungTransferLandingBottomFragment.presenter;
C0367Fb c0367Fb = null;
if (c3079aqj == null) {
C14957gcv.a("");
c3079aqj = null;
}
C0367Fb c0367Fb2 = deejungTransferLandingBottomFragment.h;
if (c0367Fb2 == null) {
C14957gcv.a("");
} else {
c0367Fb = c0367Fb2;
}
String str = c0367Fb.g;
C14957gcv.c((Object) str, "");
String str2 = deejungTransferLandingBottomFragment.c;
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
if (c3079aqj.e) {
return;
}
ZI.IeS ieS = new ZI.IeS() { // from class: o.aqo
@Override // o.ZI.IeS
public final void e(Object obj) {
C3079aqj.b((InterfaceC9080dcv) obj);
}
};
if (c3079aqj.f != 0) {
ieS.e(c3079aqj.f);
}
if (gdZ.a(c3079aqj.a, str2, true)) {
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.aqt
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9080dcv) obj).E();
}
};
if (c3079aqj.f != 0) {
ieS2.e(c3079aqj.f);
}
c3079aqj.a(c3079aqj.i);
return;
}
c3079aqj.a = str2;
c3079aqj.e = true;
ZI.IeS ieS3 = new ZI.IeS() { // from class: o.aqw
@Override // o.ZI.IeS
public final void e(Object obj) {
C3079aqj.e((InterfaceC9080dcv) obj);
}
};
if (c3079aqj.f != 0) {
ieS3.e(c3079aqj.f);
}
c3079aqj.d.b(new yDO(Double.parseDouble(gdZ.a(str2, ",", "")), gnT.DEEJUNG_NEWTENOR, str));
xZj xzj = c3079aqj.d;
xzj.d(xzj.i, new C3079aqj.LWm(c3079aqj));
}
public static /* synthetic */ boolean aqX_(DeejungTransferLandingBottomFragment deejungTransferLandingBottomFragment, EditText editText, int i) {
C14957gcv.e(deejungTransferLandingBottomFragment, "");
C14957gcv.e(editText, "");
if (i != 6) {
return false;
}
deejungTransferLandingBottomFragment.aN_();
editText.setFocusable(false);
editText.setFocusableInTouchMode(true);
return true;
}
public static /* synthetic */ void aqY_(ViewGroup viewGroup, ScrollView scrollView, DeejungTransferLandingBottomFragment deejungTransferLandingBottomFragment) {
C14957gcv.e(deejungTransferLandingBottomFragment, "");
scrollView.smoothScrollTo(0, ((yrV) deejungTransferLandingBottomFragment.f.e()).k.getBottom() + ((int) (viewGroup.getHeight() - scrollView.getY())));
}
public static /* synthetic */ void aqZ_(ScrollView scrollView, yrV yrv) {
C14957gcv.e(scrollView, "");
C14957gcv.e(yrv, "");
scrollView.smoothScrollTo(0, yrv.f9330o.b.getBottom());
}
public static /* synthetic */ void b(DeejungTransferLandingBottomFragment deejungTransferLandingBottomFragment, yrV yrv, boolean z) {
C14957gcv.e(deejungTransferLandingBottomFragment, "");
C14957gcv.e(yrv, "");
if (z) {
if (deejungTransferLandingBottomFragment.n.length() == 0 || C14957gcv.b((Object) yrv.r.getHint(), (Object) deejungTransferLandingBottomFragment.n)) {
yrv.r.setHint("");
}
if (deejungTransferLandingBottomFragment.F()) {
yrv.a.setBackgroundColor(deejungTransferLandingBottomFragment.f8026o);
return;
}
return;
}
Editable text = yrv.r.getText();
C14957gcv.c(text, "");
if (text.length() == 0) {
yrv.r.setHint(deejungTransferLandingBottomFragment.n);
} else if (deejungTransferLandingBottomFragment.F()) {
yrv.a.setBackgroundColor(deejungTransferLandingBottomFragment.i);
} else {
yrv.a.setBackgroundColor(deejungTransferLandingBottomFragment.g);
deejungTransferLandingBottomFragment.d();
}
}
public static /* synthetic */ void d(DeejungTransferLandingBottomFragment deejungTransferLandingBottomFragment) {
C14957gcv.e(deejungTransferLandingBottomFragment, "");
final C3079aqj c3079aqj = deejungTransferLandingBottomFragment.presenter;
C0367Fb c0367Fb = null;
if (c3079aqj == null) {
C14957gcv.a("");
c3079aqj = null;
}
C0367Fb c0367Fb2 = deejungTransferLandingBottomFragment.h;
if (c0367Fb2 == null) {
C14957gcv.a("");
} else {
c0367Fb = c0367Fb2;
}
final String str = c0367Fb.g;
C14957gcv.c((Object) str, "");
final String str2 = deejungTransferLandingBottomFragment.c;
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
if (c3079aqj.e) {
return;
}
ZI.IeS ieS = new ZI.IeS(c3079aqj, str2, str) { // from class: o.aqp
private String a;
private C3079aqj b;
private String d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C3079aqj.c(this.b, this.a, this.d, (InterfaceC9080dcv) obj);
}
{
this.b = c3079aqj;
this.a = str2;
this.d = str;
}
};
if (c3079aqj.f != 0) {
ieS.e(c3079aqj.f);
}
}
public static /* synthetic */ void arb_(ScrollView scrollView, yrV yrv) {
C14957gcv.e(scrollView, "");
C14957gcv.e(yrv, "");
scrollView.smoothScrollTo(0, yrv.g.getBottom());
}
@Override // o.InterfaceC9080dcv
public final void a(C2417aeH c2417aeH) {
C14957gcv.e(c2417aeH, "");
this.l = c2417aeH;
}
@Override // o.InterfaceC9080dcv
public final String k() {
return this.c;
}
static {
new IeS((byte) 0);
}
}