what-the-bank/sources/com/scb/phone/view/fragment/hml/HmlOutcomeResubmissionFragm...

205 lines
6.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.hml;
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 butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.scb.phone.R;
import com.scb.phone.view.activity.hml.HmlSensitiveConsentActivity;
import com.scb.phone.view.activity.hml.submission.HmlDocumentSubmissionActivity;
import com.scb.phone.view.fragment.BaseFragment;
import o.C14957gcv;
import o.C5501buJ;
import o.EnumC5550bvF;
import o.InterfaceC13391fZD;
import o.InterfaceC9339dhq;
import o.NH;
import o.OVB;
import o.ZI;
import o.pug;
/* loaded from: classes5.dex */
public class HmlOutcomeResubmissionFragment extends Hilt_HmlOutcomeResubmissionFragment implements InterfaceC9339dhq {
private String d;
@BindView
public TextView dateText;
@InterfaceC13391fZD
public C5501buJ presenter;
/* loaded from: classes5.dex */
public static final class HBt {
private HBt() {
}
public /* synthetic */ HBt(byte b) {
this();
}
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
View inflate = layoutInflater.inflate(R.layout.2131559717, viewGroup, false);
((BaseFragment) this).a = ButterKnife.c(this, inflate);
return inflate;
}
@Override // androidx.fragment.app.Fragment
public void onViewCreated(View view, Bundle bundle) {
final NH nh;
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
C5501buJ c5501buJ = this.presenter;
C5501buJ c5501buJ2 = null;
if (c5501buJ == null) {
C14957gcv.a("");
c5501buJ = null;
}
c5501buJ.e((C5501buJ) this);
Bundle arguments = getArguments();
if (arguments == null || (nh = (NH) arguments.getParcelable("HML_OUTCOME_RESUBMISSION_EXTRA")) == null) {
return;
}
C5501buJ c5501buJ3 = this.presenter;
if (c5501buJ3 != null) {
c5501buJ2 = c5501buJ3;
} else {
C14957gcv.a("");
}
C14957gcv.e(nh, "");
c5501buJ2.b = nh;
ZI.IeS ieS = new ZI.IeS(nh) { // from class: o.buI
private NH d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5501buJ.c(this.d, (InterfaceC9339dhq) obj);
}
{
this.d = nh;
}
};
if (c5501buJ2.f != 0) {
ieS.e(c5501buJ2.f);
}
}
@Override // o.InterfaceC9339dhq
public final void d(NH nh) {
C14957gcv.e(nh, "");
TextView textView = this.dateText;
TextView textView2 = null;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setVisibility(nh.e == null ? 8 : 0);
TextView textView3 = this.dateText;
if (textView3 != null) {
textView2 = textView3;
} else {
C14957gcv.a("");
}
textView2.setText(nh.e);
this.d = nh.d;
}
@OnClick
public final void onButtonReturnHomeClicked() {
k(true);
}
@OnClick
public final void onContactCallCenter() {
aZ_();
}
@OnClick
public void onResubmitDocuments() {
final C5501buJ c5501buJ = this.presenter;
NH nh = null;
if (c5501buJ == null) {
C14957gcv.a("");
c5501buJ = null;
}
NH nh2 = c5501buJ.b;
if (nh2 == null) {
C14957gcv.a("");
} else {
nh = nh2;
}
if (C14957gcv.b(nh.b, Boolean.TRUE)) {
ZI.IeS ieS = new ZI.IeS(c5501buJ) { // from class: o.buL
private C5501buJ c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5501buJ.c(this.c, (InterfaceC9339dhq) obj);
}
{
this.c = c5501buJ;
}
};
if (c5501buJ.f != 0) {
ieS.e(c5501buJ.f);
return;
}
return;
}
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.buM
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9339dhq) obj).c();
}
};
if (c5501buJ.f != 0) {
ieS2.e(c5501buJ.f);
}
}
@Override // o.InterfaceC9339dhq
public final void e(String str) {
if (str != null) {
HmlSensitiveConsentActivity.Sts sts = HmlSensitiveConsentActivity.m;
Context requireContext = requireContext();
C14957gcv.c(requireContext, "");
C14957gcv.e(requireContext, "");
C14957gcv.e(str, "");
Intent intent = new Intent(requireContext, (Class<?>) HmlSensitiveConsentActivity.class);
intent.putExtra("HML_CONSENT_TYPE", OVB.SENSITIVE_CONSENT);
intent.putExtra("HML_SUB_CONSENT_TYPE", str);
startActivity(intent);
}
}
public static final HmlOutcomeResubmissionFragment e(NH nh) {
C14957gcv.e(nh, "");
HmlOutcomeResubmissionFragment hmlOutcomeResubmissionFragment = new HmlOutcomeResubmissionFragment();
Bundle bundle = new Bundle();
bundle.putParcelable("HML_OUTCOME_RESUBMISSION_EXTRA", nh);
hmlOutcomeResubmissionFragment.setArguments(bundle);
return hmlOutcomeResubmissionFragment;
}
@Override // o.InterfaceC9339dhq
public final void c() {
c("p10x1_application_outcome", new pug("user_type", "etb"), new pug("button", "resubmitDocument"));
HmlDocumentSubmissionActivity.LWm lWm = HmlDocumentSubmissionActivity.b;
startActivity(HmlDocumentSubmissionActivity.LWm.agD_(requireContext(), EnumC5550bvF.RESUBMISSION));
}
static {
new HBt((byte) 0);
}
}