42 lines
2.2 KiB
TypeScript
42 lines
2.2 KiB
TypeScript
/* Metro module 8003; source: modules/media_uploads/getAttachmentUploadAbortAlert.tsx; dependencies: [661, 1244, 4651, 2] */
|
|
function _fun63587(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8181:6, offset: 0x01b86ae3, size: 115 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = (require(661) /* metro dependency 661: Constants */).AbortCodes;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/media_uploads/getAttachmentUploadAbortAlert.tsx');
|
|
exports.getAttachmentUploadAbortAlertContent = getAttachmentUploadAbortAlertContent;
|
|
}
|
|
|
|
function getAttachmentUploadAbortAlertContent(a0) { // fn#63588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8181:245, offset: 0x01b86b56, size: 330 bytes, params: 2, frame: 18
|
|
var object3;
|
|
var formatToPlainString;
|
|
var DYFPg2;
|
|
var object4;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const string = intl.string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
const B3vFdU = t.B3vFdU;
|
|
const value2 = Reflect.apply(string, intl, [B3vFdU]);
|
|
const TOTAL_ATTACHMENT_SIZE_TOO_LARGE = AbortCodes.TOTAL_ATTACHMENT_SIZE_TOO_LARGE;
|
|
if (TOTAL_ATTACHMENT_SIZE_TOO_LARGE === a0) {
|
|
object3 = {title: value2};
|
|
formatToPlainString = intl.formatToPlainString;
|
|
DYFPg2 = t.DYFPg2;
|
|
object4 = {};
|
|
object4.maxSizeMb = (require(4651) /* metro dependency 4651: UploadUtils */).MAX_TOTAL_ATTACHMENT_SIZE_MB;
|
|
object3.body = Reflect.apply(formatToPlainString, intl, [DYFPg2, object4]);
|
|
return object3;
|
|
}
|
|
const CLOUD_UPLOAD_NOT_FOUND = AbortCodes.CLOUD_UPLOAD_NOT_FOUND;
|
|
if (CLOUD_UPLOAD_NOT_FOUND === a0) {
|
|
return {title: value2, body: intl.string(t.bQldfH)};
|
|
}
|
|
const INVALID_PERMISSIONS = AbortCodes.INVALID_PERMISSIONS;
|
|
if (INVALID_PERMISSIONS === a0) {
|
|
return {title: value2, body: intl.string(t.zl4Weq)};
|
|
}
|
|
return null;
|
|
}
|
|
|