269 lines
9.1 KiB
Java
269 lines
9.1 KiB
Java
package com.scb.phone.view.fragment.hml;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import android.widget.ImageView;
|
|
import android.widget.TextView;
|
|
import androidx.fragment.app.FragmentActivity;
|
|
import butterknife.BindView;
|
|
import com.huawei.hms.support.api.entity.core.CommonCode;
|
|
import com.scb.phone.R;
|
|
import com.scb.phone.view.activity.hml.HmlBusinessETBPersonalInfoActivity;
|
|
import com.scb.phone.view.activity.hml.HmlETBLandingActivity;
|
|
import com.scb.phone.view.activity.hml.HmlETBPersonalInfoActivity;
|
|
import java.util.Set;
|
|
import kotlin.NoWhenBranchMatchedException;
|
|
import o.AbstractC5576bvf;
|
|
import o.C14875gap;
|
|
import o.C14957gcv;
|
|
import o.C5363brd;
|
|
import o.EVU;
|
|
import o.InterfaceC13391fZD;
|
|
import o.bTI;
|
|
import o.pug;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class HmlETBSummaryFragment extends Hilt_HmlETBSummaryFragment {
|
|
public static final RVV d = new RVV(0);
|
|
private final Set<String> c;
|
|
|
|
@InterfaceC13391fZD
|
|
public C5363brd hmlETBSummaryPresenter;
|
|
|
|
@BindView
|
|
public TextView step1Description;
|
|
|
|
@BindView
|
|
public ImageView step1Image;
|
|
|
|
@BindView
|
|
public TextView step1Text;
|
|
|
|
@BindView
|
|
public TextView step2Desc;
|
|
|
|
@BindView
|
|
public TextView step3Description;
|
|
|
|
@BindView
|
|
public TextView step3Text;
|
|
|
|
@BindView
|
|
public TextView step4Text;
|
|
|
|
public HmlETBSummaryFragment() {
|
|
String[] strArr = {"1000", "1998", "1999"};
|
|
C14957gcv.e(strArr, "");
|
|
this.c = C14875gap.e(strArr);
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public static final class RVV {
|
|
private RVV() {
|
|
}
|
|
|
|
public /* synthetic */ RVV(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC9299dhC
|
|
public final void b(bTI bti) {
|
|
Intent afQ_;
|
|
Intent intent;
|
|
Bundle extras;
|
|
Intent intent2;
|
|
Bundle extras2;
|
|
Intent intent3;
|
|
Bundle extras3;
|
|
Intent intent4;
|
|
Bundle extras4;
|
|
Intent intent5;
|
|
Bundle extras5;
|
|
C14957gcv.e(bti, "");
|
|
c("p10x1_simulator_summary", new pug("user_type", "etb"));
|
|
Context context = getContext();
|
|
if (context != null) {
|
|
int i = LWm.d[bti.ordinal()];
|
|
if (i == 1) {
|
|
afQ_ = HmlETBPersonalInfoActivity.afQ_(context);
|
|
C14957gcv.c(afQ_, "");
|
|
} else if (i == 2) {
|
|
HmlBusinessETBPersonalInfoActivity.HBt hBt = HmlBusinessETBPersonalInfoActivity.b;
|
|
C14957gcv.e(context, "");
|
|
afQ_ = new Intent(context, (Class<?>) HmlBusinessETBPersonalInfoActivity.class);
|
|
} else {
|
|
throw new NoWhenBranchMatchedException();
|
|
}
|
|
FragmentActivity activity = getActivity();
|
|
String str = null;
|
|
afQ_.putExtra("utm_campaign", (activity == null || (intent5 = activity.getIntent()) == null || (extras5 = intent5.getExtras()) == null) ? null : extras5.getString("utm_campaign"));
|
|
FragmentActivity activity2 = getActivity();
|
|
afQ_.putExtra("utm_content", (activity2 == null || (intent4 = activity2.getIntent()) == null || (extras4 = intent4.getExtras()) == null) ? null : extras4.getString("utm_content"));
|
|
FragmentActivity activity3 = getActivity();
|
|
afQ_.putExtra("utm_source", (activity3 == null || (intent3 = activity3.getIntent()) == null || (extras3 = intent3.getExtras()) == null) ? null : extras3.getString("utm_source"));
|
|
FragmentActivity activity4 = getActivity();
|
|
afQ_.putExtra("utm_medium", (activity4 == null || (intent2 = activity4.getIntent()) == null || (extras2 = intent2.getExtras()) == null) ? null : extras2.getString("utm_medium"));
|
|
FragmentActivity activity5 = getActivity();
|
|
if (activity5 != null && (intent = activity5.getIntent()) != null && (extras = intent.getExtras()) != null) {
|
|
str = extras.getString(CommonCode.Resolution.HAS_RESOLUTION_FROM_APK);
|
|
}
|
|
afQ_.putExtra(CommonCode.Resolution.HAS_RESOLUTION_FROM_APK, str);
|
|
startActivity(afQ_);
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC9299dhC
|
|
public final void c(EVU evu) {
|
|
C14957gcv.e(evu, "");
|
|
FragmentActivity activity = getActivity();
|
|
if (activity != null) {
|
|
HmlETBLandingActivity.HBt hBt = HmlETBLandingActivity.k;
|
|
startActivity(HmlETBLandingActivity.HBt.afM_(activity, evu));
|
|
}
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.hml.HmlSummaryFragment
|
|
protected final AbstractC5576bvf f() {
|
|
C5363brd c5363brd = this.hmlETBSummaryPresenter;
|
|
if (c5363brd == null) {
|
|
C14957gcv.a("");
|
|
c5363brd = null;
|
|
}
|
|
return c5363brd;
|
|
}
|
|
|
|
@Override // o.InterfaceC9299dhC
|
|
public final void e() {
|
|
TextView textView = this.step2Text;
|
|
TextView textView2 = null;
|
|
if (textView == null) {
|
|
C14957gcv.a("");
|
|
textView = null;
|
|
}
|
|
textView.setVisibility(8);
|
|
ImageView imageView = this.step2Image;
|
|
if (imageView == null) {
|
|
C14957gcv.a("");
|
|
imageView = null;
|
|
}
|
|
imageView.setVisibility(8);
|
|
ImageView imageView2 = this.step1Image;
|
|
if (imageView2 == null) {
|
|
C14957gcv.a("");
|
|
imageView2 = null;
|
|
}
|
|
imageView2.setImageResource(R.drawable.icon_national_id_scan);
|
|
TextView textView3 = this.step1Text;
|
|
if (textView3 == null) {
|
|
C14957gcv.a("");
|
|
textView3 = null;
|
|
}
|
|
textView3.setText(getResources().getText(R.string.hml_summary_personal_info_step));
|
|
TextView textView4 = this.step1Description;
|
|
if (textView4 == null) {
|
|
C14957gcv.a("");
|
|
textView4 = null;
|
|
}
|
|
textView4.setVisibility(8);
|
|
TextView textView5 = this.step3Text;
|
|
if (textView5 == null) {
|
|
C14957gcv.a("");
|
|
textView5 = null;
|
|
}
|
|
textView5.setText(getResources().getText(R.string.hml_summary_review_occupation_step));
|
|
ImageView imageView3 = this.step3Image;
|
|
if (imageView3 == null) {
|
|
C14957gcv.a("");
|
|
imageView3 = null;
|
|
}
|
|
imageView3.setImageResource(R.drawable.ic_occupation_step);
|
|
TextView textView6 = this.step3Description;
|
|
if (textView6 != null) {
|
|
textView2 = textView6;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
textView2.setText(getResources().getText(R.string.hml_summary_doc_income_doc));
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.hml.HmlSummaryFragment, o.InterfaceC9299dhC
|
|
public final void a() {
|
|
TextView textView = this.step3Text;
|
|
TextView textView2 = null;
|
|
if (textView == null) {
|
|
C14957gcv.a("");
|
|
textView = null;
|
|
}
|
|
textView.setVisibility(8);
|
|
ImageView imageView = this.step3Image;
|
|
if (imageView == null) {
|
|
C14957gcv.a("");
|
|
imageView = null;
|
|
}
|
|
imageView.setVisibility(8);
|
|
TextView textView3 = this.step3Description;
|
|
if (textView3 == null) {
|
|
C14957gcv.a("");
|
|
textView3 = null;
|
|
}
|
|
textView3.setVisibility(8);
|
|
TextView textView4 = this.step1Text;
|
|
if (textView4 == null) {
|
|
C14957gcv.a("");
|
|
textView4 = null;
|
|
}
|
|
textView4.setText(getString(R.string.hml_business_flow_simulator_summary_personal_info_step));
|
|
TextView textView5 = this.step1Description;
|
|
if (textView5 == null) {
|
|
C14957gcv.a("");
|
|
textView5 = null;
|
|
}
|
|
textView5.setVisibility(8);
|
|
TextView textView6 = this.step2Text;
|
|
if (textView6 == null) {
|
|
C14957gcv.a("");
|
|
textView6 = null;
|
|
}
|
|
textView6.setText(getString(R.string.hml_business_flow_simulator_summary_business_info_step));
|
|
TextView textView7 = this.step2Desc;
|
|
if (textView7 == null) {
|
|
C14957gcv.a("");
|
|
textView7 = null;
|
|
}
|
|
textView7.setText(getString(R.string.hml_business_flow_simulator_summary_business_step_desc));
|
|
TextView textView8 = this.step2Desc;
|
|
if (textView8 == null) {
|
|
C14957gcv.a("");
|
|
textView8 = null;
|
|
}
|
|
textView8.setVisibility(0);
|
|
TextView textView9 = this.step4Text;
|
|
if (textView9 != null) {
|
|
textView2 = textView9;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
textView2.setText(getString(R.string.hml_business_flow_simulator_summary_ncb_consent_step));
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final /* synthetic */ class LWm {
|
|
public static final int[] d;
|
|
|
|
static {
|
|
int[] iArr = new int[bTI.values().length];
|
|
try {
|
|
iArr[bTI.CONSUMER.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
iArr[bTI.BUSINESS_OWNER.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
d = iArr;
|
|
}
|
|
}
|
|
}
|