307 lines
12 KiB
Java
307 lines
12 KiB
Java
package com.scb.phone.view.fragment.ndid;
|
|
|
|
import android.content.Context;
|
|
import android.content.DialogInterface;
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import androidx.fragment.app.FragmentActivity;
|
|
import butterknife.ButterKnife;
|
|
import com.scb.phone.R;
|
|
import com.scb.phone.view.activity.csent.CrossMatchConsentActivity;
|
|
import com.scb.phone.view.activity.csent.SensitiveCSentActivity;
|
|
import com.scb.phone.view.activity.facialrecognition.FacialVerificationLockedActivity;
|
|
import com.scb.phone.view.activity.ndid.IdpLivenessCheckActivity;
|
|
import com.scb.phone.view.activity.ndid.IdpShareInformationActivity;
|
|
import com.scb.phone.view.activity.ndid.IdpSharingStatementVerifyIdentityActivity;
|
|
import com.scb.phone.view.activity.ndid.NdidIdpSharingStatementSelectAccountActivity;
|
|
import com.scb.phone.view.activity.ntb.ReviewInfoResultActivity;
|
|
import com.scb.phone.view.custom.common.CustomDialog;
|
|
import com.scb.phone.view.fragment.BaseFragment;
|
|
import com.scb.phone.view.fragment.TermsAndConditionsFragment;
|
|
import com.scb.phone.view.fragment.ndid.NdidIdpVerificationTermsAndConditionsFragment;
|
|
import java.util.ArrayList;
|
|
import o.C0371Fd;
|
|
import o.C11560ehe;
|
|
import o.C14851gaI;
|
|
import o.C14957gcv;
|
|
import o.C4408bZb;
|
|
import o.Heg;
|
|
import o.IF;
|
|
import o.IK;
|
|
import o.InterfaceC0834Plv;
|
|
import o.InterfaceC12853fJD;
|
|
import o.InterfaceC13391fZD;
|
|
import o.InterfaceC9485dkd;
|
|
import o.fKI;
|
|
import o.huo;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class NdidIdpVerificationTermsAndConditionsFragment extends Hilt_NdidIdpVerificationTermsAndConditionsFragment implements InterfaceC12853fJD, InterfaceC9485dkd.HBt {
|
|
public static final RVV d = new RVV(0);
|
|
private huo<Intent> c;
|
|
|
|
@InterfaceC13391fZD
|
|
public C4408bZb presenter;
|
|
|
|
@Override // o.InterfaceC9652dno
|
|
public final void A() {
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public static final class RVV {
|
|
private RVV() {
|
|
}
|
|
|
|
public /* synthetic */ RVV(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
|
C14957gcv.e(layoutInflater, "");
|
|
View inflate = layoutInflater.inflate(R.layout.2131559514, viewGroup, false);
|
|
((BaseFragment) this).a = ButterKnife.c(this, inflate);
|
|
return inflate;
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public final void onViewCreated(View view, Bundle bundle) {
|
|
C14957gcv.e(view, "");
|
|
super.onViewCreated(view, bundle);
|
|
C4408bZb c4408bZb = this.presenter;
|
|
C4408bZb c4408bZb2 = null;
|
|
if (c4408bZb == null) {
|
|
C14957gcv.a("");
|
|
c4408bZb = null;
|
|
}
|
|
c4408bZb.e((C4408bZb) this);
|
|
huo<Intent> registerForActivityResult = registerForActivityResult(new C11560ehe.Sts(), new InterfaceC0834Plv(this) { // from class: o.foU
|
|
private NdidIdpVerificationTermsAndConditionsFragment e;
|
|
|
|
@Override // o.InterfaceC0834Plv
|
|
public final void d(Object obj) {
|
|
NdidIdpVerificationTermsAndConditionsFragment.c(this.e, (Heg) obj);
|
|
}
|
|
|
|
{
|
|
this.e = this;
|
|
}
|
|
});
|
|
C14957gcv.c(registerForActivityResult, "");
|
|
this.c = registerForActivityResult;
|
|
Bundle arguments = getArguments();
|
|
if (arguments != null) {
|
|
C4408bZb c4408bZb3 = this.presenter;
|
|
if (c4408bZb3 != null) {
|
|
c4408bZb2 = c4408bZb3;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
String W = W();
|
|
C14957gcv.c((Object) W, "");
|
|
String string = arguments.getString("com.scb.phone.EXTRA_REQUEST_ID");
|
|
String str = string == null ? "" : string;
|
|
String string2 = arguments.getString("com.scb.phone.EXTRA_SKIP_FACIAL");
|
|
String str2 = string2 == null ? "" : string2;
|
|
String string3 = arguments.getString("com.scb.phone.EXTRA_REQUEST_TYPE");
|
|
String str3 = string3 == null ? "" : string3;
|
|
C14851gaI stringArrayList = arguments.getStringArrayList("com.scb.phone.EXTRA_SERVICE_ID_LIST");
|
|
if (stringArrayList == null) {
|
|
stringArrayList = C14851gaI.c;
|
|
}
|
|
C4408bZb.b(new Object[]{c4408bZb2, W, str, str2, str3, stringArrayList}, 2053420750, -2053420748, System.identityHashCode(c4408bZb2));
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC9652dno
|
|
public final void a(C0371Fd c0371Fd) {
|
|
C14957gcv.e(c0371Fd, "");
|
|
TermsAndConditionsFragment.HBt hBt = TermsAndConditionsFragment.c;
|
|
fKI.e(this, TermsAndConditionsFragment.HBt.c(c0371Fd), R.id.frame_layout_terms_and_conditions);
|
|
}
|
|
|
|
@Override // o.InterfaceC12853fJD
|
|
public final void d(String str) {
|
|
C4408bZb c4408bZb = this.presenter;
|
|
if (c4408bZb == null) {
|
|
C14957gcv.a("");
|
|
c4408bZb = null;
|
|
}
|
|
c4408bZb.a();
|
|
}
|
|
|
|
@Override // o.InterfaceC12853fJD
|
|
public final void e(String str) {
|
|
Context context = getContext();
|
|
if (context != null) {
|
|
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(context).c(R.string.mr_terms_and_conditions_decline_dialog_title).d(R.string.mr_terms_and_conditions_decline_dialog_description).aoT_(R.string.mr_terms_and_conditions_decline_dialog_btn_decline, new DialogInterface.OnClickListener(this) { // from class: o.foR
|
|
private NdidIdpVerificationTermsAndConditionsFragment e;
|
|
|
|
@Override // android.content.DialogInterface.OnClickListener
|
|
public final void onClick(DialogInterface dialogInterface, int i) {
|
|
NdidIdpVerificationTermsAndConditionsFragment.d(this.e);
|
|
}
|
|
|
|
{
|
|
this.e = this;
|
|
}
|
|
}), Integer.valueOf(R.string.mr_terms_and_conditions_decline_dialog_btn_cancel), new DialogInterface.OnClickListener() { // from class: o.foQ
|
|
@Override // android.content.DialogInterface.OnClickListener
|
|
public final void onClick(DialogInterface dialogInterface, int i) {
|
|
dialogInterface.dismiss();
|
|
}
|
|
}})).show();
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC12828fIc
|
|
public final void h() {
|
|
C4408bZb c4408bZb = this.presenter;
|
|
if (c4408bZb == null) {
|
|
C14957gcv.a("");
|
|
c4408bZb = null;
|
|
}
|
|
c4408bZb.c();
|
|
}
|
|
|
|
@Override // o.InterfaceC9485dkd.HBt
|
|
public final void a() {
|
|
if (getContext() != null) {
|
|
startActivity(ReviewInfoResultActivity.ajy_(getContext(), getString(R.string.ntb_fillinformation_review_info_result_title_page), getString(R.string.ntb_phone_not_supported_title), getString(R.string.mf_onboarding_eligibility_enquiry)));
|
|
}
|
|
FragmentActivity activity = getActivity();
|
|
if (activity != null) {
|
|
activity.finish();
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC9485dkd.HBt
|
|
public final void a(IK ik) {
|
|
C14957gcv.e(ik, "");
|
|
Context context = getContext();
|
|
if (context != null) {
|
|
huo<Intent> huoVar = this.c;
|
|
if (huoVar == null) {
|
|
C14957gcv.a("");
|
|
huoVar = null;
|
|
}
|
|
SensitiveCSentActivity.IeS ieS = SensitiveCSentActivity.f6764o;
|
|
huoVar.d(SensitiveCSentActivity.IeS.aaO_(context, ik), null);
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC9485dkd.HBt
|
|
public final void d(IF r5) {
|
|
C14957gcv.e(r5, "");
|
|
Context context = getContext();
|
|
if (context != null) {
|
|
huo<Intent> huoVar = this.c;
|
|
if (huoVar == null) {
|
|
C14957gcv.a("");
|
|
huoVar = null;
|
|
}
|
|
CrossMatchConsentActivity.LWm lWm = CrossMatchConsentActivity.b;
|
|
huoVar.d(CrossMatchConsentActivity.LWm.aaI_(context, r5), null);
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC9485dkd.HBt
|
|
public final void a(String str) {
|
|
C14957gcv.e(str, "");
|
|
Context context = getContext();
|
|
if (context != null) {
|
|
huo<Intent> huoVar = this.c;
|
|
if (huoVar == null) {
|
|
C14957gcv.a("");
|
|
huoVar = null;
|
|
}
|
|
huoVar.d((Intent) IdpLivenessCheckActivity.e(new Object[]{context, str}, 984263874, -984263874, (int) System.currentTimeMillis()), null);
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC9485dkd.HBt
|
|
public final void d() {
|
|
Context context = getContext();
|
|
if (context != null) {
|
|
FacialVerificationLockedActivity.HBt hBt = FacialVerificationLockedActivity.b;
|
|
startActivity(FacialVerificationLockedActivity.HBt.afs_(context, "NDID_IDP"));
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC9485dkd.HBt
|
|
public final void a(String str, String str2, ArrayList<String> arrayList) {
|
|
C14957gcv.e(str, "");
|
|
C14957gcv.e(str2, "");
|
|
C14957gcv.e(arrayList, "");
|
|
Context context = getContext();
|
|
if (context != null) {
|
|
startActivity(IdpShareInformationActivity.aiO_(context, str, str2, arrayList));
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC9485dkd.HBt
|
|
public final void b(String str) {
|
|
C14957gcv.e(str, "");
|
|
Context context = getContext();
|
|
if (context != null) {
|
|
IdpSharingStatementVerifyIdentityActivity.IeS ieS = IdpSharingStatementVerifyIdentityActivity.k;
|
|
startActivity(IdpSharingStatementVerifyIdentityActivity.IeS.aiQ_(context, str));
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC9485dkd.HBt
|
|
public final void b(String str, ArrayList<String> arrayList) {
|
|
C14957gcv.e(str, "");
|
|
C14957gcv.e(arrayList, "");
|
|
Context context = getContext();
|
|
if (context != null) {
|
|
NdidIdpSharingStatementSelectAccountActivity.RVV rvv = NdidIdpSharingStatementSelectAccountActivity.f7619o;
|
|
startActivity(NdidIdpSharingStatementSelectAccountActivity.RVV.ajf_(context, str, arrayList));
|
|
}
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
|
public final void onDestroyView() {
|
|
C4408bZb c4408bZb = this.presenter;
|
|
huo<Intent> huoVar = null;
|
|
if (c4408bZb == null) {
|
|
C14957gcv.a("");
|
|
c4408bZb = null;
|
|
}
|
|
c4408bZb.w_();
|
|
huo<Intent> huoVar2 = this.c;
|
|
if (huoVar2 == null) {
|
|
C14957gcv.a("");
|
|
} else {
|
|
huoVar = huoVar2;
|
|
}
|
|
huoVar.e();
|
|
super.onDestroyView();
|
|
}
|
|
|
|
public static /* synthetic */ void c(NdidIdpVerificationTermsAndConditionsFragment ndidIdpVerificationTermsAndConditionsFragment, Heg heg) {
|
|
C14957gcv.e(ndidIdpVerificationTermsAndConditionsFragment, "");
|
|
if (heg.e == -1) {
|
|
C4408bZb c4408bZb = ndidIdpVerificationTermsAndConditionsFragment.presenter;
|
|
if (c4408bZb == null) {
|
|
C14957gcv.a("");
|
|
c4408bZb = null;
|
|
}
|
|
c4408bZb.d();
|
|
return;
|
|
}
|
|
if (heg.e == 0) {
|
|
ndidIdpVerificationTermsAndConditionsFragment.ar_();
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void d(NdidIdpVerificationTermsAndConditionsFragment ndidIdpVerificationTermsAndConditionsFragment) {
|
|
C14957gcv.e(ndidIdpVerificationTermsAndConditionsFragment, "");
|
|
ndidIdpVerificationTermsAndConditionsFragment.k(true);
|
|
}
|
|
}
|