what-the-bank/sources/com/scb/phone/view/fragment/ndid/NdidMenuFragment.java

262 lines
8.7 KiB
Java

package com.scb.phone.view.fragment.ndid;
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.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.ndid.NdidIdpMenuErrorActivity;
import com.scb.phone.view.activity.ndid.NdidIdpServiceStatusActivity;
import com.scb.phone.view.activity.ndid.NdidIdpVerificationActivity;
import com.scb.phone.view.fragment.BaseFragment;
import java.util.ArrayList;
import java.util.List;
import o.AbstractC15351go;
import o.C14957gcv;
import o.C15849jC;
import o.C16296nGh;
import o.C4422bZp;
import o.InterfaceC13391fZD;
import o.InterfaceC9488dkg;
import o.nMh;
/* loaded from: classes5.dex */
public final class NdidMenuFragment extends Hilt_NdidMenuFragment implements InterfaceC9488dkg.HBt {
public static final IeS d = new IeS(0);
private String c;
@BindView
public ConstraintLayout csLayoutBiometricVerificationSection;
@BindView
public ConstraintLayout csLayoutHowToVerify;
@BindView
public ConstraintLayout csLayoutServiceStatusSection;
@BindView
public ConstraintLayout csLayoutVerificationRequestSection;
@InterfaceC13391fZD
public C4422bZp presenter;
@BindView
public TextView tvBiometricVerificationCurrentStatus;
@BindView
public TextView tvServiceCurrentStatus;
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
View inflate = layoutInflater.inflate(R.layout.2131559783, 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);
C4422bZp c4422bZp = this.presenter;
C4422bZp c4422bZp2 = null;
if (c4422bZp == null) {
C14957gcv.a("");
c4422bZp = null;
}
c4422bZp.e((C4422bZp) this);
C4422bZp c4422bZp3 = this.presenter;
if (c4422bZp3 != null) {
c4422bZp2 = c4422bZp3;
} else {
C14957gcv.a("");
}
if (c4422bZp2.f != 0) {
c4422bZp2.f.y();
}
C15849jC c15849jC = c4422bZp2.e;
C4422bZp.LWm lWm = new C4422bZp.LWm(c4422bZp2);
C4422bZp.HBt hBt = new C4422bZp.HBt(c4422bZp2);
C14957gcv.e(lWm, "");
C14957gcv.e(hBt, "");
c15849jC.b(c15849jC.i, lWm, hBt, new AbstractC15351go.LWm());
}
@Override // o.InterfaceC9488dkg.HBt
public final void d(String str, String str2, String str3) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(str3, "");
TextView textView = this.tvBiometricVerificationCurrentStatus;
TextView textView2 = null;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setText(str);
TextView textView3 = this.tvServiceCurrentStatus;
if (textView3 != null) {
textView2 = textView3;
} else {
C14957gcv.a("");
}
textView2.setText(str2);
C14957gcv.e(str3, "");
this.c = str3;
}
@Override // o.InterfaceC9488dkg.HBt
public final void c() {
ConstraintLayout constraintLayout = this.csLayoutBiometricVerificationSection;
ConstraintLayout constraintLayout2 = null;
if (constraintLayout == null) {
C14957gcv.a("");
constraintLayout = null;
}
constraintLayout.setVisibility(0);
ConstraintLayout constraintLayout3 = this.csLayoutServiceStatusSection;
if (constraintLayout3 == null) {
C14957gcv.a("");
constraintLayout3 = null;
}
constraintLayout3.setVisibility(0);
ConstraintLayout constraintLayout4 = this.csLayoutVerificationRequestSection;
if (constraintLayout4 == null) {
C14957gcv.a("");
constraintLayout4 = null;
}
constraintLayout4.setVisibility(0);
ConstraintLayout constraintLayout5 = this.csLayoutHowToVerify;
if (constraintLayout5 != null) {
constraintLayout2 = constraintLayout5;
} else {
C14957gcv.a("");
}
constraintLayout2.setVisibility(8);
}
@Override // o.InterfaceC9488dkg.HBt
public final void b() {
ConstraintLayout constraintLayout = this.csLayoutBiometricVerificationSection;
ConstraintLayout constraintLayout2 = null;
if (constraintLayout == null) {
C14957gcv.a("");
constraintLayout = null;
}
constraintLayout.setVisibility(0);
ConstraintLayout constraintLayout3 = this.csLayoutServiceStatusSection;
if (constraintLayout3 == null) {
C14957gcv.a("");
constraintLayout3 = null;
}
constraintLayout3.setVisibility(8);
ConstraintLayout constraintLayout4 = this.csLayoutVerificationRequestSection;
if (constraintLayout4 == null) {
C14957gcv.a("");
constraintLayout4 = null;
}
constraintLayout4.setVisibility(8);
ConstraintLayout constraintLayout5 = this.csLayoutHowToVerify;
if (constraintLayout5 != null) {
constraintLayout2 = constraintLayout5;
} else {
C14957gcv.a("");
}
constraintLayout2.setVisibility(0);
}
@Override // o.InterfaceC9488dkg.HBt
public final void e(int i) {
Context context = getContext();
if (context != null) {
TextView textView = this.tvServiceCurrentStatus;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setTextColor(nMh.getColor(context, i));
}
}
@Override // o.InterfaceC9488dkg.HBt
public final void c(C16296nGh c16296nGh) {
C14957gcv.e(c16296nGh, "");
if (getContext() != null) {
Intent intent = new Intent(getContext(), (Class<?>) NdidIdpVerificationActivity.class);
intent.addFlags(603979776);
intent.putExtra("com.scb.phone.EXTRA_REQUEST_ID", c16296nGh.d);
intent.putExtra("com.scb.phone.EXTRA_REQUEST_MESSAGE", c16296nGh.c);
intent.putExtra("com.scb.phone.EXTRA_REQUEST_TIMEOUT", c16296nGh.b);
intent.putExtra("com.scb.phone.EXTRA_SKIP_FACIAL", c16296nGh.i);
intent.putExtra("com.scb.phone.EXTRA_REQUEST_TYPE", c16296nGh.a);
List<String> list = c16296nGh.e;
C14957gcv.e(list, "");
intent.putStringArrayListExtra("com.scb.phone.EXTRA_SERVICE_ID_LIST", new ArrayList<>(list));
startActivity(intent);
}
}
@Override // o.InterfaceC9488dkg.HBt
public final void a() {
Context context = getContext();
if (context != null) {
NdidIdpMenuErrorActivity.Sts sts = NdidIdpMenuErrorActivity.k;
C14957gcv.e(context, "");
startActivity(new Intent(context, (Class<?>) NdidIdpMenuErrorActivity.class));
}
}
@OnClick
public final void callEnrollmentRequest() {
C4422bZp c4422bZp = this.presenter;
if (c4422bZp == null) {
C14957gcv.a("");
c4422bZp = null;
}
if (c4422bZp.f != 0) {
c4422bZp.f.y();
}
C15849jC c15849jC = c4422bZp.e;
C4422bZp.IeS ieS = new C4422bZp.IeS(c4422bZp);
C4422bZp.RVV rvv = new C4422bZp.RVV(c4422bZp);
C14957gcv.e(ieS, "");
C14957gcv.e(rvv, "");
c15849jC.b(c15849jC.g, ieS, rvv, new AbstractC15351go.LWm());
}
@OnClick
public final void navigateToNdidIdpServiceStatus() {
Context context = getContext();
if (context != null) {
NdidIdpServiceStatusActivity.Sts sts = NdidIdpServiceStatusActivity.f7617o;
String str = this.c;
if (str == null) {
C14957gcv.a("");
str = null;
}
C14957gcv.e(context, "");
C14957gcv.e(str, "");
Intent intent = new Intent(context, (Class<?>) NdidIdpServiceStatusActivity.class);
intent.putExtra("EXTRA_ENROLLED_STATUS", str);
startActivity(intent);
}
}
/* loaded from: classes5.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
}