decord/source/modules/media_uploads/getAttachmentUploadAbortAlert.tsx

38 lines
1.4 KiB
TypeScript
Raw Normal View History

// Module ID: 9536
// Function ID: 9537
// Name: getAttachmentUploadAbortAlert
// Dependencies: [1074, 1115, 5214, 2]
2026-07-20 16:05:17 +00:00
// Exports: getAttachmentUploadAbortAlertContent
// Module 9536 (getAttachmentUploadAbortAlert)
import Constants from "Constants" /* 1074 */;
import util from "util" /* 1115 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const AbortCodes = Constants.AbortCodes;
const result = size.fileFinishedImporting("modules/media_uploads/getAttachmentUploadAbortAlert.tsx");
2026-07-20 16:05:17 +00:00
export const getAttachmentUploadAbortAlertContent = function getAttachmentUploadAbortAlertContent(code) {
const intl = util.intl;
const stringResult = intl.string(util.t.B3vFdU);
2026-07-20 16:05:17 +00:00
if (AbortCodes.TOTAL_ATTACHMENT_SIZE_TOO_LARGE === code) {
const obj2 = { title: stringResult, body: null };
const intl4 = tmp(1115).intl;
const obj3 = { maxSizeMb: tmp(5214).MAX_TOTAL_ATTACHMENT_SIZE_MB };
obj2.body = intl4.formatToPlainString(tmp(1115).t.DYFPg2, obj3);
return obj2;
2026-07-29 08:29:29 +00:00
} else if (tmp4.CLOUD_UPLOAD_NOT_FOUND === code) {
const obj4 = { title: stringResult, body: null };
const intl3 = tmp(1115).intl;
obj4.body = intl3.string(tmp(1115).t.bQldfH);
return obj4;
2026-07-29 08:29:29 +00:00
} else if (tmp4.INVALID_PERMISSIONS === code) {
const obj = { title: stringResult, body: null };
const intl2 = tmp(1115).intl;
obj.body = intl2.string(tmp(1115).t.zl4Weq);
2026-07-20 16:05:17 +00:00
return obj;
} else {
return null;
}
};