decord/source/modules/media_uploads/getAttachmentUploadAbortAlert.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

41 lines
1.5 KiB
TypeScript

// Module ID: 9322
// Function ID: 9323
// Name: getAttachmentUploadAbortAlertContent
// Dependencies: [673, 1233, 5090, 2]
// Exports: getAttachmentUploadAbortAlertContent
// Module 9322 (getAttachmentUploadAbortAlertContent)
import set from "set" /* 2 */;
import ME from "ME" /* 673 */;
import getSystemLocale from "getSystemLocale" /* 1233 */;
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(1233).intl;
obj = { maxSizeMb: null };
obj[0] = tmp(5090).MAX_TOTAL_ATTACHMENT_SIZE_MB;
obj[1] = intl4.formatToPlainString(tmp(1233).t.DYFPg2, obj);
return obj;
} else if (tmp4.CLOUD_UPLOAD_NOT_FOUND === code) {
obj1 = { title: null, body: null };
obj1[0] = stringResult;
const intl3 = tmp(1233).intl;
obj1[1] = intl3.string(tmp(1233).t.bQldfH);
return obj1;
} else if (tmp4.INVALID_PERMISSIONS === code) {
obj = { title: null, body: null };
obj[0] = stringResult;
const intl2 = tmp(1233).intl;
obj[1] = intl2.string(tmp(1233).t.zl4Weq);
return obj;
} else {
return null;
}
};