package o; import androidx.fragment.app.FragmentActivity; import com.scb.phone.view.fragment.additionaldocument.DocumentUploadFragment; import java.util.Arrays; /* loaded from: classes5.dex */ public final class eGG { private static final String[] c = {"android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_EXTERNAL_STORAGE"}; private static final String[] d = {"android.permission.READ_MEDIA_IMAGES"}; private static final String[] e = {"android.permission.CAMERA"}; private static final String[] b = {"android.permission.WRITE_EXTERNAL_STORAGE", "android.permission.READ_EXTERNAL_STORAGE"}; public static final void c(DocumentUploadFragment documentUploadFragment) { C14957gcv.e(documentUploadFragment, ""); FragmentActivity requireActivity = documentUploadFragment.requireActivity(); String[] strArr = e; if (C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { documentUploadFragment.m(); } else { documentUploadFragment.requestPermissions(strArr, 33); } } public static final void a(DocumentUploadFragment documentUploadFragment) { C14957gcv.e(documentUploadFragment, ""); FragmentActivity requireActivity = documentUploadFragment.requireActivity(); String[] strArr = b; if (C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { documentUploadFragment.k(); } else { documentUploadFragment.requestPermissions(strArr, 34); } } public static final void e(DocumentUploadFragment documentUploadFragment) { C14957gcv.e(documentUploadFragment, ""); FragmentActivity requireActivity = documentUploadFragment.requireActivity(); String[] strArr = c; if (C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { documentUploadFragment.l(); } else { documentUploadFragment.requestPermissions(strArr, 31); } } public static final void d(DocumentUploadFragment documentUploadFragment) { C14957gcv.e(documentUploadFragment, ""); FragmentActivity requireActivity = documentUploadFragment.requireActivity(); String[] strArr = d; if (!C15581guh.b(requireActivity, (String[]) Arrays.copyOf(strArr, strArr.length))) { documentUploadFragment.requestPermissions(strArr, 32); } else { documentUploadFragment.l(); } } public static final void a(DocumentUploadFragment documentUploadFragment, int i, int[] iArr) { C14957gcv.e(documentUploadFragment, ""); C14957gcv.e(iArr, ""); switch (i) { case 31: if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) { documentUploadFragment.l(); return; } return; case 32: if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) { documentUploadFragment.l(); return; } return; case 33: if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) { documentUploadFragment.m(); return; } return; case 34: if (C15581guh.d(Arrays.copyOf(iArr, iArr.length))) { documentUploadFragment.k(); return; } return; default: return; } } }