decord/source/modules/media_uploads/getAttachmentUploadAbortAlert.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

41 lines
1.5 KiB
TypeScript

// Module ID: 9398
// Function ID: 9399
// Name: getAttachmentUploadAbortAlertContent
// Dependencies: [1074, 1114, 5129, 2]
// Exports: getAttachmentUploadAbortAlertContent
// Module 9398 (getAttachmentUploadAbortAlertContent)
import set from "set" /* 2 */;
import ME from "ME" /* 1074 */;
import getSystemLocale from "getSystemLocale" /* 1114 */;
const AbortCodes = ME.AbortCodes;
const result = set.fileFinishedImporting("modules/media_uploads/getAttachmentUploadAbortAlert.tsx");
export const getAttachmentUploadAbortAlertContent = function getAttachmentUploadAbortAlertContent(code) {
const intl = getSystemLocale.intl;
const stringResult = intl.string(getSystemLocale.t.B3vFdU);
if (AbortCodes.TOTAL_ATTACHMENT_SIZE_TOO_LARGE === code) {
let obj = { title: null, body: null };
obj[0] = stringResult;
const intl4 = tmp(1114).intl;
obj = { maxSizeMb: null };
obj[0] = tmp(5129).MAX_TOTAL_ATTACHMENT_SIZE_MB;
obj[1] = intl4.formatToPlainString(tmp(1114).t.DYFPg2, obj);
return obj;
} else if (tmp4.CLOUD_UPLOAD_NOT_FOUND === code) {
obj1 = { title: null, body: null };
obj1[0] = stringResult;
const intl3 = tmp(1114).intl;
obj1[1] = intl3.string(tmp(1114).t.bQldfH);
return obj1;
} else if (tmp4.INVALID_PERMISSIONS === code) {
obj = { title: null, body: null };
obj[0] = stringResult;
const intl2 = tmp(1114).intl;
obj[1] = intl2.string(tmp(1114).t.zl4Weq);
return obj;
} else {
return null;
}
};