decord/source/modules/media_uploads/getAttachmentUploadAbortAlert.tsx

35 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 8184
// Function ID: 64635
2026-07-20 16:05:17 +00:00
// Name: getAttachmentUploadAbortAlertContent
2026-07-23 10:11:24 +00:00
// Dependencies: [653, 1212, 4666, 2]
2026-07-20 16:05:17 +00:00
// Exports: getAttachmentUploadAbortAlertContent
2026-07-24 07:16:23 +00:00
// Module 8184 (getAttachmentUploadAbortAlertContent)
2026-07-23 10:11:24 +00:00
import { AbortCodes } from "ME";
const result = require("items").fileFinishedImporting("modules/media_uploads/getAttachmentUploadAbortAlert.tsx");
2026-07-20 16:05:17 +00:00
export const getAttachmentUploadAbortAlertContent = function getAttachmentUploadAbortAlertContent(code) {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
const stringResult = intl.string(require(1212) /* getSystemLocale */.t.B3vFdU);
2026-07-20 16:05:17 +00:00
if (AbortCodes.TOTAL_ATTACHMENT_SIZE_TOO_LARGE === code) {
let obj = { title: stringResult };
2026-07-23 10:11:24 +00:00
const intl4 = require(1212) /* getSystemLocale */.intl;
obj = { maxSizeMb: require(4666) /* items */.MAX_TOTAL_ATTACHMENT_SIZE_MB };
obj.body = intl4.formatToPlainString(require(1212) /* getSystemLocale */.t.DYFPg2, obj);
2026-07-20 16:05:17 +00:00
return obj;
} else if (AbortCodes.CLOUD_UPLOAD_NOT_FOUND === code) {
const obj1 = { title: stringResult };
2026-07-23 10:11:24 +00:00
const intl3 = require(1212) /* getSystemLocale */.intl;
obj1.body = intl3.string(require(1212) /* getSystemLocale */.t.bQldfH);
2026-07-20 16:05:17 +00:00
return obj1;
} else if (AbortCodes.INVALID_PERMISSIONS === code) {
obj = { title: stringResult };
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
obj.body = intl2.string(require(1212) /* getSystemLocale */.t.zl4Weq);
2026-07-20 16:05:17 +00:00
return obj;
} else {
return null;
}
};