what-the-bank/sources/com/scb/phone/view/fragment/additionaldocument/DocumentUploadFragment.java

1659 lines
60 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.additionaldocument;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.provider.MediaStore;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.kofax.kmc.kut.utilities.Licensing;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.activity.additionaldocument.CaptureDocumentActivity;
import com.scb.phone.view.activity.additionaldocument.CropDocumentActivity;
import com.scb.phone.view.activity.additionaldocument.DocumentInstructionsActivity;
import com.scb.phone.view.custom.additionaldocument.DocumentUploadedCustomView;
import com.scb.phone.view.custom.additionaldocument.DocumentsUploadedSectionCustomView;
import com.scb.phone.view.custom.common.CustomDialog;
import com.scb.phone.view.custom.common.CustomInputDialog;
import com.scb.phone.view.fragment.BaseFragment;
import com.scb.phone.view.fragment.additionaldocument.DocumentUploadFragment;
import com.scb.phone.view.fragment.additionaldocument.PictureSelectionBottomEntryFragment;
import com.scb.phone.view.fragment.easycash.BaseTakePhotoFragment;
import com.scb.phone.view.fragment.easycash.EasycashContactInformationFragment;
import com.scb.phone.view.fragment.easycash.issuer.EasycashIssuerLandingFragment;
import java.io.Serializable;
import java.text.MessageFormat;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import o.AbstractC13175fSw;
import o.AbstractC14961gcz;
import o.BES;
import o.C0400Ft;
import o.C0690Mh;
import o.C0693Mj;
import o.C1100VpK;
import o.C11560ehe;
import o.C12891fKc;
import o.C14866gag;
import o.C14957gcv;
import o.C2497afi;
import o.C2503afo;
import o.C2974aoj;
import o.Fbt;
import o.Hzp;
import o.InterfaceC0834Plv;
import o.InterfaceC13391fZD;
import o.InterfaceC14894gbR;
import o.InterfaceC1903aRj;
import o.InterfaceC9021dbp;
import o.Lld;
import o.YW;
import o.YeV;
import o.ZI;
import o.eBS;
import o.eBV;
import o.eGG;
import o.eSW;
import o.fJY;
import o.gdZ;
import o.gjJ;
import o.huo;
import o.yRS;
import o.zJl;
import org.bouncycastle.asn1.cmp.PKIFailureInfo;
import org.jmrtd.lds.ImageInfo;
/* loaded from: classes5.dex */
public class DocumentUploadFragment extends Hilt_DocumentUploadFragment implements InterfaceC9021dbp, PictureSelectionBottomEntryFragment.RVV {
private PictureSelectionBottomEntryFragment d;
private InterfaceC1903aRj f;
private final huo<zJl> g;
@BindView
public TextView headerText;
private boolean j;
@BindView
public Button nextButton;
@InterfaceC13391fZD
public C2497afi presenter;
@BindView
public LinearLayout sectionList;
@InterfaceC13391fZD
public Lld tracker;
@BindView
public Button uploadLaterButton;
@Override // com.scb.phone.view.fragment.easycash.BaseTakePhotoFragment, o.InterfaceC9713dpA.HBt
public final boolean p() {
return true;
}
@Override // com.scb.phone.view.fragment.easycash.BaseTakePhotoFragment, o.InterfaceC9713dpA.HBt
public final int t() {
return 1;
}
public DocumentUploadFragment() {
huo<zJl> registerForActivityResult = registerForActivityResult(new C11560ehe.IeS(), new InterfaceC0834Plv(this) { // from class: o.eGC
private DocumentUploadFragment d;
@Override // o.InterfaceC0834Plv
public final void d(Object obj) {
DocumentUploadFragment.aqy_(this.d, (Uri) obj);
}
{
this.d = this;
}
});
C14957gcv.c(registerForActivityResult, "");
this.g = registerForActivityResult;
this.j = true;
}
/* loaded from: classes5.dex */
public static final class Sts {
private Sts() {
}
public /* synthetic */ Sts(byte b) {
this();
}
}
@Override // com.scb.phone.view.fragment.easycash.BaseTakePhotoFragment, o.InterfaceC9713dpA.HBt
public final String q() {
String string = getString(R.string.occupation_information_title);
C14957gcv.c((Object) string, "");
return string;
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
View inflate = layoutInflater.inflate(R.layout.2131559574, viewGroup, false);
((BaseFragment) this).a = ButterKnife.c(this, inflate);
C2497afi c2497afi = this.presenter;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
c2497afi.e((C2497afi) this);
return inflate;
}
@Override // androidx.fragment.app.Fragment
public void onResume() {
super.onResume();
if (this.j) {
h();
this.j = false;
}
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroy() {
C2497afi c2497afi = this.presenter;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
c2497afi.w_();
this.f = null;
super.onDestroy();
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.scb.phone.view.fragment.additionaldocument.Hilt_DocumentUploadFragment, com.scb.phone.view.fragment.etb.BreadcrumbFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment
public void onAttach(Context context) {
C14957gcv.e(context, "");
super.onAttach(context);
if (context instanceof InterfaceC1903aRj) {
this.f = (InterfaceC1903aRj) context;
}
}
@Override // o.InterfaceC9021dbp
public final void h() {
InterfaceC1903aRj interfaceC1903aRj = this.f;
if (interfaceC1903aRj != null) {
C2497afi c2497afi = this.presenter;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
String e = interfaceC1903aRj.e();
String k = interfaceC1903aRj.k();
if (c2497afi.f != 0) {
c2497afi.f.y();
}
c2497afi.e.a(e, k);
Fbt fbt = c2497afi.e;
fbt.d(fbt.i, new C2497afi.ojQ(c2497afi));
}
}
@Override // o.InterfaceC9021dbp
public final void d(String str) {
C14957gcv.e(str, "");
InterfaceC1903aRj interfaceC1903aRj = this.f;
if (interfaceC1903aRj != null) {
C2497afi c2497afi = this.presenter;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
String e = interfaceC1903aRj.e();
String k = interfaceC1903aRj.k();
String j = interfaceC1903aRj.j();
C14957gcv.e(str, "");
if (c2497afi.f != 0) {
c2497afi.f.y();
}
C1100VpK c1100VpK = c2497afi.a;
C0400Ft.HBt hBt = c2497afi.h;
String str2 = hBt != null ? hBt.e : null;
c1100VpK.e("documentFile", str, str2 == null ? "" : str2, e, k, j);
C1100VpK c1100VpK2 = c2497afi.a;
c1100VpK2.d(c1100VpK2.i, new C2497afi.IeS(c2497afi));
}
}
@Override // o.InterfaceC9021dbp
public final void a(String str, String str2, String str3) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(str3, "");
InterfaceC1903aRj interfaceC1903aRj = this.f;
if (interfaceC1903aRj != null) {
C2497afi c2497afi = this.presenter;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
String e = interfaceC1903aRj.e();
String k = interfaceC1903aRj.k();
String j = interfaceC1903aRj.j();
C14957gcv.e(str, "");
if (c2497afi.f != 0) {
c2497afi.f.y();
}
C1100VpK c1100VpK = c2497afi.a;
BES bes = new BES(str);
C0400Ft.HBt hBt = c2497afi.h;
String str4 = hBt != null ? hBt.e : null;
c1100VpK.e("documentFile", bes, str4 == null ? "" : str4, e, k, j, str2);
C1100VpK c1100VpK2 = c2497afi.a;
c1100VpK2.d(c1100VpK2.i, new C2497afi.IeS(c2497afi));
}
}
@Override // o.InterfaceC9021dbp
public final void b(final C0400Ft c0400Ft) {
Button button;
Context context;
C14957gcv.e(c0400Ft, "");
TextView textView = this.headerText;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
InterfaceC1903aRj interfaceC1903aRj = this.f;
textView.setText(MessageFormat.format(getString(C14957gcv.b((Object) "CREDIT_CARD", (Object) (interfaceC1903aRj != null ? interfaceC1903aRj.k() : null)) ? R.string.document_upload_required_count_card_x : R.string.document_upload_required_count), String.valueOf(c0400Ft.c), c0400Ft.d));
LinearLayout linearLayout = this.sectionList;
if (linearLayout == null) {
C14957gcv.a("");
linearLayout = null;
}
linearLayout.removeAllViews();
Context context2 = getContext();
int i = 0;
if (context2 != null) {
for (final C0400Ft.HBt hBt : c0400Ft.e) {
DocumentsUploadedSectionCustomView documentsUploadedSectionCustomView = new DocumentsUploadedSectionCustomView(context2);
int i2 = c0400Ft.c;
String str = c0400Ft.d;
final RVV rvv = new RVV(this);
final HBt hBt2 = new HBt(this);
IeS ieS = new IeS(this);
C14957gcv.e(hBt, "");
C14957gcv.e(str, "");
C14957gcv.e(rvv, "");
C14957gcv.e(hBt2, "");
C14957gcv.e(ieS, "");
String str2 = hBt.d;
int size = hBt.l.size();
StringBuilder sb = new StringBuilder();
sb.append(str2);
sb.append(" (");
sb.append(size);
sb.append(")");
String obj = sb.toString();
TextView textView2 = documentsUploadedSectionCustomView.label;
if (textView2 == null) {
C14957gcv.a("");
textView2 = null;
}
textView2.setText(obj);
String str3 = hBt.i;
if (str3 == null || str3.length() == 0) {
TextView textView3 = documentsUploadedSectionCustomView.tvRemark;
if (textView3 == null) {
C14957gcv.a("");
textView3 = null;
}
textView3.setVisibility(8);
} else {
TextView textView4 = documentsUploadedSectionCustomView.tvRemark;
if (textView4 == null) {
C14957gcv.a("");
textView4 = null;
}
textView4.setVisibility(i);
TextView textView5 = documentsUploadedSectionCustomView.tvRemark;
if (textView5 == null) {
C14957gcv.a("");
textView5 = null;
}
textView5.setText(hBt.i);
}
if (hBt.b) {
ImageView imageView = documentsUploadedSectionCustomView.questionMark;
if (imageView == null) {
C14957gcv.a("");
imageView = null;
}
imageView.setOnClickListener(new View.OnClickListener(rvv, hBt) { // from class: o.eAG
private C0400Ft.HBt a;
private InterfaceC14894gbR b;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
DocumentsUploadedSectionCustomView.e(this.b, this.a);
}
{
this.b = rvv;
this.a = hBt;
}
});
} else {
ImageView imageView2 = documentsUploadedSectionCustomView.questionMark;
if (imageView2 == null) {
C14957gcv.a("");
imageView2 = null;
}
imageView2.setVisibility(8);
}
Context context3 = documentsUploadedSectionCustomView.getContext();
if (context3 != null) {
LinearLayout linearLayout2 = documentsUploadedSectionCustomView.listLayout;
if (linearLayout2 == null) {
C14957gcv.a("");
linearLayout2 = null;
}
linearLayout2.removeAllViews();
for (C0400Ft.LWm lWm : hBt.l) {
final DocumentUploadedCustomView documentUploadedCustomView = new DocumentUploadedCustomView(context3, hBt, lWm.a);
final DocumentsUploadedSectionCustomView.RVV rvv2 = new DocumentsUploadedSectionCustomView.RVV(ieS, lWm);
C14957gcv.e(rvv2, "");
ImageView imageView3 = documentUploadedCustomView.deleteIcon;
if (imageView3 != null) {
context = context2;
} else {
C14957gcv.a("");
context = context2;
imageView3 = null;
}
imageView3.setOnClickListener(new View.OnClickListener(rvv2, documentUploadedCustomView) { // from class: o.eAH
private InterfaceC14894gbR a;
private DocumentUploadedCustomView c;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
DocumentUploadedCustomView.e(this.a, this.c);
}
{
this.a = rvv2;
this.c = documentUploadedCustomView;
}
});
LinearLayout linearLayout3 = documentsUploadedSectionCustomView.listLayout;
if (linearLayout3 == null) {
C14957gcv.a("");
linearLayout3 = null;
}
linearLayout3.addView(documentUploadedCustomView);
context2 = context;
}
}
Context context4 = context2;
Button button2 = documentsUploadedSectionCustomView.addButton;
if (button2 == null) {
C14957gcv.a("");
button2 = null;
}
button2.setEnabled(true);
if (i2 >= Integer.parseInt(str)) {
Button button3 = documentsUploadedSectionCustomView.addButton;
if (button3 == null) {
C14957gcv.a("");
button3 = null;
}
button3.setEnabled(false);
} else {
Integer num = hBt.g;
if (num != null) {
if (hBt.l.size() >= num.intValue()) {
Button button4 = documentsUploadedSectionCustomView.addButton;
if (button4 == null) {
C14957gcv.a("");
button4 = null;
}
button4.setEnabled(false);
}
}
}
Button button5 = documentsUploadedSectionCustomView.addButton;
if (button5 == null) {
C14957gcv.a("");
button5 = null;
}
button5.setOnClickListener(new View.OnClickListener(hBt2, hBt) { // from class: o.eAD
private InterfaceC14894gbR a;
private C0400Ft.HBt c;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
DocumentsUploadedSectionCustomView.c(this.a, this.c);
}
{
this.a = hBt2;
this.c = hBt;
}
});
LinearLayout linearLayout4 = this.sectionList;
if (linearLayout4 == null) {
C14957gcv.a("");
linearLayout4 = null;
}
linearLayout4.addView(documentsUploadedSectionCustomView);
context2 = context4;
i = 0;
}
}
boolean z = true;
for (C0400Ft.HBt hBt3 : c0400Ft.e) {
if (hBt3.c && hBt3.l.size() < hBt3.j) {
z = false;
}
}
Button button6 = this.nextButton;
if (button6 == null) {
C14957gcv.a("");
button6 = null;
}
button6.setEnabled(z);
Button button7 = this.nextButton;
if (button7 == null) {
C14957gcv.a("");
button7 = null;
}
button7.setOnClickListener(new View.OnClickListener(this, c0400Ft) { // from class: o.eGA
private DocumentUploadFragment a;
private C0400Ft e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
DocumentUploadFragment.c(this.a, this.e);
}
{
this.a = this;
this.e = c0400Ft;
}
});
InterfaceC1903aRj interfaceC1903aRj2 = this.f;
if (interfaceC1903aRj2 == null || !interfaceC1903aRj2.r()) {
return;
}
Button button8 = this.uploadLaterButton;
if (button8 != null) {
button = button8;
} else {
C14957gcv.a("");
button = null;
}
Button button9 = button;
C14957gcv.e(button9, "");
button9.setVisibility(0);
button.setOnClickListener(new View.OnClickListener(this) { // from class: o.eGE
private DocumentUploadFragment b;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
DocumentUploadFragment.c(this.b);
}
{
this.b = this;
}
});
}
/* loaded from: classes5.dex */
static final class HBt extends AbstractC14961gcz implements InterfaceC14894gbR<C0400Ft.HBt, C14866gag> {
private DocumentUploadFragment d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(C0400Ft.HBt hBt) {
final C0400Ft.HBt hBt2 = hBt;
C14957gcv.e(hBt2, "");
C2497afi c2497afi = this.d.presenter;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
C14957gcv.e(hBt2, "");
c2497afi.h = hBt2;
ZI.IeS ieS = new ZI.IeS(hBt2) { // from class: o.afJ
private C0400Ft.HBt e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2497afi.c(this.e, (InterfaceC9021dbp) obj);
}
{
this.e = hBt2;
}
};
if (c2497afi.f != 0) {
ieS.e(c2497afi.f);
}
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
HBt(DocumentUploadFragment documentUploadFragment) {
super(1);
this.d = documentUploadFragment;
}
}
/* loaded from: classes5.dex */
static final class IeS extends AbstractC14961gcz implements InterfaceC14894gbR<C0400Ft.LWm, C14866gag> {
private DocumentUploadFragment d;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(C0400Ft.LWm lWm) {
final C0400Ft.LWm lWm2 = lWm;
C14957gcv.e(lWm2, "");
C2497afi c2497afi = this.d.presenter;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
C14957gcv.e(lWm2, "");
ZI.IeS ieS = new ZI.IeS(lWm2) { // from class: o.aft
private C0400Ft.LWm c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2497afi.b(this.c, (InterfaceC9021dbp) obj);
}
{
this.c = lWm2;
}
};
if (c2497afi.f != 0) {
ieS.e(c2497afi.f);
}
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
IeS(DocumentUploadFragment documentUploadFragment) {
super(1);
this.d = documentUploadFragment;
}
}
/* loaded from: classes5.dex */
static final class RVV extends AbstractC14961gcz implements InterfaceC14894gbR<String, C14866gag> {
private DocumentUploadFragment c;
@Override // o.InterfaceC14894gbR
public final /* synthetic */ C14866gag invoke(String str) {
final String str2 = str;
C14957gcv.e(str2, "");
C2497afi c2497afi = this.c.presenter;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
C14957gcv.e(str2, "");
ZI.IeS ieS = new ZI.IeS(str2) { // from class: o.afg
private String b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2497afi.e(this.b, (InterfaceC9021dbp) obj);
}
{
this.b = str2;
}
};
if (c2497afi.f != 0) {
ieS.e(c2497afi.f);
}
return C14866gag.c;
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
RVV(DocumentUploadFragment documentUploadFragment) {
super(1);
this.c = documentUploadFragment;
}
}
private final void E() {
InterfaceC1903aRj interfaceC1903aRj = this.f;
if (interfaceC1903aRj != null) {
C2497afi c2497afi = this.presenter;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
Bundle arguments = getArguments();
c2497afi.a(arguments != null ? arguments.getBoolean("com.scb.phone.IS_REQUIRE_ISSUER_FLAG", false) : false, interfaceC1903aRj.e(), interfaceC1903aRj.k(), interfaceC1903aRj.j());
}
}
@Override // o.InterfaceC9021dbp
public final void a(final String str) {
C14957gcv.e(str, "");
((CustomDialog) CustomDialog.e(new Object[]{CustomDialog.b(getContext()).c(R.string.document_upload_delete_dialog_title).d(R.string.document_upload_delete_dialog_text), Integer.valueOf(R.string.document_upload_delete_dialog_cancel), new DialogInterface.OnClickListener() { // from class: o.eGK
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
}
}})).aoT_(R.string.document_upload_delete_dialog_accept, new DialogInterface.OnClickListener(this, str) { // from class: o.eGJ
private String a;
private DocumentUploadFragment c;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
DocumentUploadFragment.aqz_(this.c, this.a, dialogInterface);
}
{
this.c = this;
this.a = str;
}
}).show();
}
@Override // o.InterfaceC9021dbp
public final void c(Set<? extends YW> set) {
C14957gcv.e(set, "");
getChildFragmentManager().n();
PictureSelectionBottomEntryFragment a = PictureSelectionBottomEntryFragment.a(set);
C14957gcv.c(a, "");
this.d = a;
yRS childFragmentManager = getChildFragmentManager();
PictureSelectionBottomEntryFragment pictureSelectionBottomEntryFragment = this.d;
if (pictureSelectionBottomEntryFragment == null) {
C14957gcv.a("");
pictureSelectionBottomEntryFragment = null;
}
a.show(childFragmentManager, pictureSelectionBottomEntryFragment.getTag());
}
@Override // o.InterfaceC9021dbp
public final void c(String str, Hzp hzp) {
Intent aqG_;
C14957gcv.e(str, "");
C14957gcv.e(hzp, "");
Context context = getContext();
if (context != null) {
String b = C2974aoj.b(str);
if (C14957gcv.b((Object) b, (Object) C2974aoj.b("CID"))) {
aqG_ = atw_(context, true, hzp);
} else if (C14957gcv.b((Object) b, (Object) C2974aoj.b("SALARY"))) {
aqG_ = aty_(context, true, hzp);
} else if (C14957gcv.b((Object) b, (Object) C2974aoj.b("STATEMENT"))) {
aqG_ = atu_(context, true, hzp);
} else if (!C14957gcv.b((Object) b, (Object) C2974aoj.b("CAR"))) {
return;
} else {
aqG_ = aqG_(context, true, hzp);
}
startActivityForResult(aqG_, 321);
}
}
@Override // o.InterfaceC9021dbp
public final void d(String str, Hzp hzp) {
Intent aqG_;
C14957gcv.e(str, "");
C14957gcv.e(hzp, "");
Context context = getContext();
if (context != null) {
String b = C2974aoj.b(str);
if (C14957gcv.b((Object) b, (Object) C2974aoj.b("CID"))) {
aqG_ = atw_(context, false, hzp);
} else if (C14957gcv.b((Object) b, (Object) C2974aoj.b("SALARY"))) {
aqG_ = aty_(context, false, hzp);
} else if (C14957gcv.b((Object) b, (Object) C2974aoj.b("STATEMENT"))) {
aqG_ = atu_(context, false, hzp);
} else if (!C14957gcv.b((Object) b, (Object) C2974aoj.b("CAR"))) {
return;
} else {
aqG_ = aqG_(context, false, hzp);
}
startActivity(aqG_);
}
}
public Intent atw_(Context context, boolean z, Hzp hzp) {
C14957gcv.e(context, "");
C14957gcv.e(hzp, "");
DocumentInstructionsActivity.HBt hBt = DocumentInstructionsActivity.b;
C14957gcv.e(context, "");
C14957gcv.e(hzp, "");
return DocumentInstructionsActivity.HBt.Yf_(context, z, "CID", hzp);
}
public Intent aty_(Context context, boolean z, Hzp hzp) {
C14957gcv.e(context, "");
C14957gcv.e(hzp, "");
DocumentInstructionsActivity.HBt hBt = DocumentInstructionsActivity.b;
C14957gcv.e(context, "");
C14957gcv.e(hzp, "");
return DocumentInstructionsActivity.HBt.Yf_(context, z, "PAYSLIP", hzp);
}
public Intent atu_(Context context, boolean z, Hzp hzp) {
C14957gcv.e(context, "");
C14957gcv.e(hzp, "");
DocumentInstructionsActivity.HBt hBt = DocumentInstructionsActivity.b;
C14957gcv.e(context, "");
C14957gcv.e(hzp, "");
return DocumentInstructionsActivity.HBt.Yf_(context, z, "BANK", hzp);
}
private static Intent aqG_(Context context, boolean z, Hzp hzp) {
C14957gcv.e(context, "");
C14957gcv.e(hzp, "");
DocumentInstructionsActivity.HBt hBt = DocumentInstructionsActivity.b;
C14957gcv.e(context, "");
C14957gcv.e(hzp, "");
return DocumentInstructionsActivity.HBt.Yf_(context, z, "CAR", hzp);
}
public final void m() {
InterfaceC1903aRj interfaceC1903aRj;
Context context = getContext();
C2497afi c2497afi = this.presenter;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
C0400Ft.HBt hBt = c2497afi.h;
String str = hBt != null ? hBt.e : null;
if (context == null || str == null || (interfaceC1903aRj = this.f) == null) {
return;
}
String e = interfaceC1903aRj.e();
if (e == null) {
e = "";
}
String k = interfaceC1903aRj.k();
C14957gcv.c((Object) k, "");
String j = interfaceC1903aRj.j();
C14957gcv.c((Object) j, "");
Intent atv_ = atv_(context, e, str, k, j);
this.j = true;
startActivity(atv_);
}
public final void k() {
String[] strArr = {ImageInfo.JPEG_MIME_TYPE, "image/png", "image/jpg"};
Intent type = new Intent("android.intent.action.PICK", MediaStore.Images.Media.EXTERNAL_CONTENT_URI).setType("image/*");
C14957gcv.c(type, "");
type.putExtra("android.intent.extra.MIME_TYPES", strArr);
startActivityForResult(type, 123);
}
public final void l() {
Intent intent = new Intent("android.intent.action.OPEN_DOCUMENT");
intent.addCategory("android.intent.category.OPENABLE");
intent.setType("application/pdf");
startActivityForResult(intent, 124);
}
@Override // o.InterfaceC9021dbp
public final void e() {
eGG.c(this);
}
@Override // com.scb.phone.view.fragment.easycash.BaseTakePhotoFragment, androidx.fragment.app.Fragment
public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
C14957gcv.e(strArr, "");
C14957gcv.e(iArr, "");
super.onRequestPermissionsResult(i, strArr, iArr);
eGG.a(this, i, iArr);
}
@Override // com.scb.phone.view.fragment.easycash.BaseTakePhotoFragment, com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onActivityResult(int i, int i2, Intent intent) {
Uri data;
String str;
Uri data2;
String ayS_;
super.onActivityResult(i, i2, intent);
Integer num = null;
C2497afi c2497afi = null;
C2497afi c2497afi2 = null;
C2497afi c2497afi3 = null;
C2497afi c2497afi4 = null;
num = null;
if (i == 123 && i2 == -1) {
if (intent == null || (data2 = intent.getData()) == null || (ayS_ = C12891fKc.ayS_(getContext(), data2)) == null) {
return;
}
C14957gcv.c((Object) ayS_, "");
C2497afi c2497afi5 = this.presenter;
if (c2497afi5 == null) {
C14957gcv.a("");
c2497afi5 = null;
}
if (c2497afi5.c()) {
C2497afi c2497afi6 = this.presenter;
if (c2497afi6 != null) {
c2497afi = c2497afi6;
} else {
C14957gcv.a("");
}
c2497afi.a(ayS_);
return;
}
C2497afi c2497afi7 = this.presenter;
if (c2497afi7 != null) {
c2497afi2 = c2497afi7;
} else {
C14957gcv.a("");
}
AbstractC13175fSw<BES> b = C12891fKc.b(getContext(), ayS_);
C14957gcv.c(b, "");
c2497afi2.e(b);
return;
}
if (i == 321 && i2 == -1) {
if (intent != null) {
C2497afi c2497afi8 = this.presenter;
if (c2497afi8 != null) {
c2497afi3 = c2497afi8;
} else {
C14957gcv.a("");
}
Serializable serializableExtra = intent.getSerializableExtra("UPLOAD_METHOD");
C14957gcv.d(serializableExtra, "");
Hzp hzp = (Hzp) serializableExtra;
C14957gcv.e(hzp, "");
int i3 = C2497afi.HBt.a[hzp.ordinal()];
if (i3 == 1) {
c2497afi3.a();
return;
}
if (i3 == 2) {
ZI.IeS ieS = new ZI.IeS() { // from class: o.afL
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9021dbp) obj).d();
}
};
if (c2497afi3.f != 0) {
ieS.e(c2497afi3.f);
return;
}
return;
}
if (i3 == 3) {
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.afM
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9021dbp) obj).a();
}
};
if (c2497afi3.f != 0) {
ieS2.e(c2497afi3.f);
return;
}
return;
}
return;
}
return;
}
if (i == 10003 && i2 == -1) {
C2497afi c2497afi9 = this.presenter;
if (c2497afi9 != null) {
c2497afi4 = c2497afi9;
} else {
C14957gcv.a("");
}
AbstractC13175fSw<BES> b2 = C12891fKc.b(getContext(), ((BaseTakePhotoFragment) this).c);
C14957gcv.c(b2, "");
C14957gcv.e(b2, "");
c2497afi4.e(b2);
return;
}
if (i != 124 || i2 != -1 || intent == null || (data = intent.getData()) == null) {
return;
}
fJY.IeS ieS3 = fJY.e;
final String ayN_ = fJY.IeS.ayN_(getContext(), data);
if (ayN_ != null) {
C2497afi c2497afi10 = this.presenter;
if (c2497afi10 == null) {
C14957gcv.a("");
c2497afi10 = null;
}
int e = C12891fKc.e(ayN_);
C14957gcv.e(ayN_, "");
if (!gdZ.a("pdf", C2497afi.c(ayN_), true)) {
ZI.IeS ieS4 = new ZI.IeS() { // from class: o.afm
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9021dbp) obj).n();
}
};
if (c2497afi10.f != 0) {
ieS4.e(c2497afi10.f);
return;
}
return;
}
C0400Ft.HBt hBt = c2497afi10.h;
if (hBt != null && (str = hBt.f) != null) {
num = Integer.valueOf(Integer.parseInt(str) * PKIFailureInfo.badCertTemplate);
}
final boolean z = e <= (num != null ? num.intValue() : 9437184);
ZI.IeS ieS5 = new ZI.IeS(z, ayN_) { // from class: o.afp
private boolean a;
private String b;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2497afi.e(this.a, this.b, (InterfaceC9021dbp) obj);
}
{
this.a = z;
this.b = ayN_;
}
};
if (c2497afi10.f != 0) {
ieS5.e(c2497afi10.f);
}
}
}
@Override // com.scb.phone.view.fragment.additionaldocument.PictureSelectionBottomEntryFragment.RVV
public final void s() {
Object obj;
C2497afi c2497afi = this.presenter;
PictureSelectionBottomEntryFragment pictureSelectionBottomEntryFragment = null;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
C0400Ft.HBt hBt = c2497afi.h;
final String str = hBt != null ? hBt.e : null;
if (str != null) {
C2497afi c2497afi2 = this.presenter;
if (c2497afi2 == null) {
C14957gcv.a("");
c2497afi2 = null;
}
boolean isSdkLicensed = Licensing.isSdkLicensed(Licensing.LicenseType.IMAGE_CAPTURE);
C14957gcv.e(str, "");
if (!isSdkLicensed) {
C2503afo c2503afo = new C2503afo();
if (c2497afi2.f != 0) {
c2503afo.e(c2497afi2.f);
}
} else {
C0400Ft c0400Ft = c2497afi2.b;
if (c0400Ft == null) {
C14957gcv.a("");
c0400Ft = null;
}
Iterator<T> it = c0400Ft.e.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
} else {
obj = it.next();
if (C14957gcv.b((Object) ((C0400Ft.HBt) obj).e, (Object) str)) {
break;
}
}
}
C0400Ft.HBt hBt2 = (C0400Ft.HBt) obj;
if (hBt2 != null) {
if (C2497afi.b(str, hBt2.l.size())) {
ZI.IeS ieS = new ZI.IeS(str) { // from class: o.afr
private String b;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C2497afi.g(this.b, (InterfaceC9021dbp) obj2);
}
{
this.b = str;
}
};
if (c2497afi2.f != 0) {
ieS.e(c2497afi2.f);
}
} else {
c2497afi2.a();
}
}
}
PictureSelectionBottomEntryFragment pictureSelectionBottomEntryFragment2 = this.d;
if (pictureSelectionBottomEntryFragment2 == null) {
C14957gcv.a("");
} else {
pictureSelectionBottomEntryFragment = pictureSelectionBottomEntryFragment2;
}
pictureSelectionBottomEntryFragment.dismiss();
}
}
@Override // com.scb.phone.view.fragment.additionaldocument.PictureSelectionBottomEntryFragment.RVV
public final void o() {
Object obj;
C2497afi c2497afi = this.presenter;
PictureSelectionBottomEntryFragment pictureSelectionBottomEntryFragment = null;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
C0400Ft.HBt hBt = c2497afi.h;
final String str = hBt != null ? hBt.e : null;
if (str != null) {
C2497afi c2497afi2 = this.presenter;
if (c2497afi2 == null) {
C14957gcv.a("");
c2497afi2 = null;
}
boolean isSdkLicensed = Licensing.isSdkLicensed(Licensing.LicenseType.IMAGE_CAPTURE);
C14957gcv.e(str, "");
if (!isSdkLicensed) {
C2503afo c2503afo = new C2503afo();
if (c2497afi2.f != 0) {
c2503afo.e(c2497afi2.f);
}
} else {
C0400Ft c0400Ft = c2497afi2.b;
if (c0400Ft == null) {
C14957gcv.a("");
c0400Ft = null;
}
Iterator<T> it = c0400Ft.e.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
} else {
obj = it.next();
if (C14957gcv.b((Object) ((C0400Ft.HBt) obj).e, (Object) str)) {
break;
}
}
}
C0400Ft.HBt hBt2 = (C0400Ft.HBt) obj;
if (hBt2 != null) {
if (C2497afi.b(str, hBt2.l.size())) {
ZI.IeS ieS = new ZI.IeS(str) { // from class: o.afI
private String e;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C2497afi.d(this.e, (InterfaceC9021dbp) obj2);
}
{
this.e = str;
}
};
if (c2497afi2.f != 0) {
ieS.e(c2497afi2.f);
}
} else {
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.afn
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9021dbp) obj2).d();
}
};
if (c2497afi2.f != 0) {
ieS2.e(c2497afi2.f);
}
}
}
}
PictureSelectionBottomEntryFragment pictureSelectionBottomEntryFragment2 = this.d;
if (pictureSelectionBottomEntryFragment2 == null) {
C14957gcv.a("");
} else {
pictureSelectionBottomEntryFragment = pictureSelectionBottomEntryFragment2;
}
pictureSelectionBottomEntryFragment.dismiss();
}
}
@Override // com.scb.phone.view.fragment.additionaldocument.PictureSelectionBottomEntryFragment.RVV
public final void r() {
Object obj;
C2497afi c2497afi = this.presenter;
PictureSelectionBottomEntryFragment pictureSelectionBottomEntryFragment = null;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
C0400Ft.HBt hBt = c2497afi.h;
final String str = hBt != null ? hBt.e : null;
if (str != null) {
C2497afi c2497afi2 = this.presenter;
if (c2497afi2 == null) {
C14957gcv.a("");
c2497afi2 = null;
}
C14957gcv.e(str, "");
C0400Ft c0400Ft = c2497afi2.b;
if (c0400Ft == null) {
C14957gcv.a("");
c0400Ft = null;
}
Iterator<T> it = c0400Ft.e.iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
} else {
obj = it.next();
if (C14957gcv.b((Object) ((C0400Ft.HBt) obj).e, (Object) str)) {
break;
}
}
}
C0400Ft.HBt hBt2 = (C0400Ft.HBt) obj;
if (hBt2 != null) {
if (C2497afi.b(str, hBt2.l.size())) {
ZI.IeS ieS = new ZI.IeS(str) { // from class: o.afD
private String c;
@Override // o.ZI.IeS
public final void e(Object obj2) {
C2497afi.c(this.c, (InterfaceC9021dbp) obj2);
}
{
this.c = str;
}
};
if (c2497afi2.f != 0) {
ieS.e(c2497afi2.f);
}
} else {
ZI.IeS ieS2 = new ZI.IeS() { // from class: o.afK
@Override // o.ZI.IeS
public final void e(Object obj2) {
((InterfaceC9021dbp) obj2).a();
}
};
if (c2497afi2.f != 0) {
ieS2.e(c2497afi2.f);
}
}
}
PictureSelectionBottomEntryFragment pictureSelectionBottomEntryFragment2 = this.d;
if (pictureSelectionBottomEntryFragment2 == null) {
C14957gcv.a("");
} else {
pictureSelectionBottomEntryFragment = pictureSelectionBottomEntryFragment2;
}
pictureSelectionBottomEntryFragment.dismiss();
}
}
@Override // o.InterfaceC9021dbp
public final void b() {
if (this.k != null) {
this.k.e(this, new EasycashIssuerLandingFragment());
}
}
@Override // o.InterfaceC9021dbp
public void c() {
if (this.k != null) {
this.k.e(this, EasycashContactInformationFragment.E());
}
}
@Override // o.InterfaceC9021dbp
public final void c(String str) {
InterfaceC1903aRj interfaceC1903aRj;
C14957gcv.e(str, "");
Context context = getContext();
C2497afi c2497afi = this.presenter;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
C0400Ft.HBt hBt = c2497afi.h;
String str2 = hBt != null ? hBt.e : null;
if (context == null || str2 == null || (interfaceC1903aRj = this.f) == null) {
return;
}
String e = interfaceC1903aRj.e();
if (e == null) {
e = "";
}
String k = interfaceC1903aRj.k();
C14957gcv.c((Object) k, "");
InterfaceC1903aRj interfaceC1903aRj2 = this.f;
String j = interfaceC1903aRj2 != null ? interfaceC1903aRj2.j() : null;
Intent atx_ = atx_(context, e, str, str2, k, j == null ? C1100VpK.IeS.DEFAULT.name() : j);
this.j = true;
startActivity(atx_);
}
@Override // o.InterfaceC9021dbp
public final void i() {
CustomDialog b = CustomDialog.b(getContext());
String string = getString(R.string.additional_document_error_title);
if (gjJ.a(string)) {
b.mTitleTextView.setVisibility(0);
b.mTitleTextView.setText(string);
}
String string2 = getString(R.string.additional_document_error_text);
if (gjJ.a(string2)) {
b.mTextTextView.setVisibility(0);
b.mTextTextView.setText(string2);
}
b.aoU_(getString(R.string.additional_document_error_ok), new DialogInterface.OnClickListener() { // from class: o.eGF
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
}
}).show();
}
@Override // o.InterfaceC9021dbp
public final void j() {
C0693Mj c0693Mj = new C0693Mj();
c0693Mj.d = getString(R.string.additional_document_error_title);
c0693Mj.c = getString(R.string.invalid_image_processor_license);
C0690Mh c0690Mh = new C0690Mh();
c0690Mh.e = C0690Mh.IeS.JUST_DISMISS;
c0690Mh.b = getString(R.string.ok);
c0693Mj.e = c0690Mh;
e(c0693Mj);
}
@Override // o.InterfaceC9021dbp
public final void n() {
C0690Mh c0690Mh = new C0690Mh();
c0690Mh.b = getString(R.string.ok);
c0690Mh.e = C0690Mh.IeS.JUST_DISMISS;
C0693Mj c0693Mj = new C0693Mj();
c0693Mj.d = getString(R.string.error_wrong_format_title);
c0693Mj.c = getString(R.string.error_wrong_format_pdf);
c0693Mj.e = c0690Mh;
e(c0693Mj);
}
@Override // o.InterfaceC9021dbp
public final void f() {
C0690Mh c0690Mh = new C0690Mh();
c0690Mh.b = getString(R.string.ok);
c0690Mh.e = C0690Mh.IeS.JUST_DISMISS;
C0693Mj c0693Mj = new C0693Mj();
c0693Mj.d = getString(R.string.error_wrong_format_title);
c0693Mj.c = getString(R.string.error_wrong_format);
c0693Mj.e = c0690Mh;
e(c0693Mj);
}
@Override // o.InterfaceC9021dbp
public final void e(final String str) {
C14957gcv.e(str, "");
eBS.Sts sts = eBS.d;
Context context = getContext();
String string = getString(R.string.hml_pdf_upload_title);
C14957gcv.c((Object) string, "");
String string2 = getString(R.string.hml_pdf_upload_text);
C14957gcv.c((Object) string2, "");
String string3 = getString(R.string.hml_pdf_upload_hint);
C14957gcv.c((Object) string3, "");
final CustomInputDialog d = eBS.Sts.d(context, string, string2, string3);
String string4 = getString(R.string.hml_pdf_upload_positive_button);
DialogInterface.OnClickListener onClickListener = new DialogInterface.OnClickListener(this, str, d) { // from class: o.eGD
private CustomInputDialog a;
private DocumentUploadFragment b;
private String c;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
DocumentUploadFragment.b(this.b, this.c, this.a);
}
{
this.b = this;
this.c = str;
this.a = d;
}
};
if (string4 != null) {
d.mPositiveButton.setText(string4);
d.mPositiveButton.setOnClickListener(new eBV(d, onClickListener));
}
d.apd_(getString(R.string.hml_pdf_upload_negative_button), new DialogInterface.OnClickListener() { // from class: o.eGB
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
}
});
d.show();
}
@Override // o.InterfaceC9021dbp
public final void d(String str, String str2) {
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
eBS.Sts sts = eBS.d;
Context context = getContext();
String string = getString(R.string.hml_pdf_upload_hint);
C14957gcv.c((Object) string, "");
CustomInputDialog d = eBS.Sts.d(context, str, str2, string);
d.mEditTextView.setVisibility(8);
String string2 = getString(R.string.hml_pdf_upload_incorrect_password_positive);
DialogInterface.OnClickListener onClickListener = new DialogInterface.OnClickListener(this) { // from class: o.eGI
private DocumentUploadFragment b;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
DocumentUploadFragment.e(this.b);
}
{
this.b = this;
}
};
if (string2 != null) {
d.mPositiveButton.setText(string2);
d.mPositiveButton.setOnClickListener(new eBV(d, onClickListener));
}
d.apd_(getString(R.string.hml_pdf_upload_incorrect_password_negative), new DialogInterface.OnClickListener() { // from class: o.eGH
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
}
}).show();
}
public Intent atv_(Context context, String str, String str2, String str3, String str4) {
C14957gcv.e(context, "");
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(str3, "");
C14957gcv.e(str4, "");
CaptureDocumentActivity.Sts sts = CaptureDocumentActivity.b;
return CaptureDocumentActivity.Sts.Yb_(context, str, str2, str3, str4);
}
public Intent atx_(Context context, String str, String str2, String str3, String str4, String str5) {
C14957gcv.e(context, "");
C14957gcv.e(str, "");
C14957gcv.e(str2, "");
C14957gcv.e(str3, "");
C14957gcv.e(str4, "");
C14957gcv.e(str5, "");
CropDocumentActivity.Sts sts = CropDocumentActivity.b;
return CropDocumentActivity.Sts.Ye_(context, str, str2, str3, str4, str5, true);
}
public static /* synthetic */ void aqy_(DocumentUploadFragment documentUploadFragment, Uri uri) {
String ayS_;
C14957gcv.e(documentUploadFragment, "");
if (uri == null || (ayS_ = C12891fKc.ayS_(documentUploadFragment.getContext(), uri)) == null) {
return;
}
C14957gcv.c((Object) ayS_, "");
C2497afi c2497afi = documentUploadFragment.presenter;
C2497afi c2497afi2 = null;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
if (c2497afi.c()) {
C2497afi c2497afi3 = documentUploadFragment.presenter;
if (c2497afi3 != null) {
c2497afi2 = c2497afi3;
} else {
C14957gcv.a("");
}
c2497afi2.a(ayS_);
return;
}
C2497afi c2497afi4 = documentUploadFragment.presenter;
if (c2497afi4 != null) {
c2497afi2 = c2497afi4;
} else {
C14957gcv.a("");
}
AbstractC13175fSw<BES> b = C12891fKc.b(documentUploadFragment.getContext(), ayS_);
C14957gcv.c(b, "");
c2497afi2.e(b);
}
public static /* synthetic */ void b(DocumentUploadFragment documentUploadFragment, final String str, CustomInputDialog customInputDialog) {
C14957gcv.e(documentUploadFragment, "");
C14957gcv.e(str, "");
C14957gcv.e(customInputDialog, "");
C2497afi c2497afi = documentUploadFragment.presenter;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
final String valueOf = String.valueOf(customInputDialog.mEditTextView.getText());
C14957gcv.c((Object) valueOf, "");
C14957gcv.e(str, "");
C14957gcv.e(valueOf, "");
c2497afi.c = str;
ZI.IeS ieS = new ZI.IeS(str, valueOf) { // from class: o.afA
private String a;
private String c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2497afi.e(this.c, this.a, (InterfaceC9021dbp) obj);
}
{
this.c = str;
this.a = valueOf;
}
};
if (c2497afi.f != 0) {
ieS.e(c2497afi.f);
}
}
public static /* synthetic */ void aqz_(DocumentUploadFragment documentUploadFragment, String str, DialogInterface dialogInterface) {
C14957gcv.e(documentUploadFragment, "");
C14957gcv.e(str, "");
InterfaceC1903aRj interfaceC1903aRj = documentUploadFragment.f;
if (interfaceC1903aRj != null) {
C2497afi c2497afi = documentUploadFragment.presenter;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
String e = interfaceC1903aRj.e();
String j = interfaceC1903aRj.j();
C14957gcv.e(str, "");
if (c2497afi.f != 0) {
c2497afi.f.y();
}
c2497afi.d.c(e, str, j);
YeV yeV = c2497afi.d;
yeV.d(yeV.i, new C2497afi.Sts(c2497afi, str));
}
dialogInterface.dismiss();
}
public static /* synthetic */ void c(DocumentUploadFragment documentUploadFragment, C0400Ft c0400Ft) {
C14957gcv.e(documentUploadFragment, "");
C14957gcv.e(c0400Ft, "");
documentUploadFragment.E();
Lld lld = documentUploadFragment.tracker;
Lld lld2 = null;
if (lld == null) {
C14957gcv.a("");
lld = null;
}
List<C0400Ft.HBt> list = c0400Ft.e;
boolean z = false;
if (!(list instanceof Collection) || !list.isEmpty()) {
Iterator<T> it = list.iterator();
while (true) {
if (!it.hasNext()) {
break;
} else if (((C0400Ft.HBt) it.next()).l.size() > 0) {
z = true;
break;
}
}
}
lld.a(z);
Iterator<T> it2 = c0400Ft.e.iterator();
while (it2.hasNext()) {
String str = ((C0400Ft.HBt) it2.next()).e;
int hashCode = str.hashCode();
if (hashCode != -1856389686) {
if (hashCode != 499399534) {
if (hashCode == 701446479 && str.equals("STATEMENT")) {
lld.c("STATEMENT", !r3.l.isEmpty());
}
} else if (str.equals("COMP_REGIS")) {
lld.c("COMP_REGIS", !r3.l.isEmpty());
}
} else if (str.equals("SALARY")) {
lld.c("SALARY", !r3.l.isEmpty());
}
}
Lld lld3 = documentUploadFragment.tracker;
if (lld3 != null) {
lld2 = lld3;
} else {
C14957gcv.a("");
}
Lld lld4 = lld2;
if (documentUploadFragment.getActivity() != null) {
lld4.c(((BaseActivity) documentUploadFragment.getActivity()).scbAnalytics, "apply_loan_document");
}
}
public static /* synthetic */ void c(DocumentUploadFragment documentUploadFragment) {
C14957gcv.e(documentUploadFragment, "");
Lld lld = documentUploadFragment.tracker;
Lld lld2 = null;
if (lld == null) {
C14957gcv.a("");
lld = null;
}
InterfaceC1903aRj interfaceC1903aRj = documentUploadFragment.f;
String j = interfaceC1903aRj != null ? interfaceC1903aRj.j() : null;
if (j == null) {
j = "";
}
lld.j(j);
Lld lld3 = documentUploadFragment.tracker;
if (lld3 != null) {
lld2 = lld3;
} else {
C14957gcv.a("");
}
Lld lld4 = lld2;
if (documentUploadFragment.getActivity() != null) {
lld4.c(((BaseActivity) documentUploadFragment.getActivity()).scbAnalytics, "credit_loan_document_later");
}
documentUploadFragment.E();
}
public static /* synthetic */ void e(DocumentUploadFragment documentUploadFragment) {
C14957gcv.e(documentUploadFragment, "");
final C2497afi c2497afi = documentUploadFragment.presenter;
if (c2497afi == null) {
C14957gcv.a("");
c2497afi = null;
}
ZI.IeS ieS = new ZI.IeS(c2497afi) { // from class: o.afh
private C2497afi d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2497afi.e(this.d, (InterfaceC9021dbp) obj);
}
{
this.d = c2497afi;
}
};
if (c2497afi.f != 0) {
ieS.e(c2497afi.f);
}
}
@Override // o.InterfaceC9021dbp
public final void a() {
if (getActivity() != null) {
if (BaseActivity.P()) {
eGG.d(this);
return;
}
}
if (Build.VERSION.SDK_INT < 29) {
eGG.e(this);
} else {
l();
}
}
@Override // o.InterfaceC9021dbp
public final void d() {
if (getActivity() != null) {
if (BaseActivity.P()) {
huo<zJl> huoVar = this.g;
zJl.RVV rvv = new zJl.RVV();
C11560ehe.IeS.RVV rvv2 = C11560ehe.IeS.RVV.a;
C14957gcv.e(rvv2, "");
rvv.e = rvv2;
zJl zjl = new zJl();
C11560ehe.IeS.tOB tob = rvv.e;
C14957gcv.e(tob, "");
zjl.c = tob;
huoVar.d(zjl, null);
return;
}
}
eGG.a(this);
}
@Override // o.InterfaceC9021dbp
public final void g() {
if (getActivity() != null) {
if (BaseActivity.P()) {
eSW.b(this);
return;
}
}
eSW.d(this);
}
static {
new Sts((byte) 0);
}
}