Files
discord-decomp/sources/modules/media_uploads/getAttachmentUploadAbortAlert.tsx
2026-07-28 01:06:53 +03:00

46 lines
2.6 KiB
TypeScript

/* Metro module 8003; source: modules/media_uploads/getAttachmentUploadAbortAlert.tsx; dependencies: [661, 1244, 4651, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
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});
(FileImportTrackerModule).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 object;
var formatToPlainString;
var DYFPg2;
var object2;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).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) {
object = {title: value2};
formatToPlainString = intl.formatToPlainString;
DYFPg2 = t.DYFPg2;
object2 = {};
object2.maxSizeMb = (require(4651) /* metro dependency 4651: UploadUtils */).MAX_TOTAL_ATTACHMENT_SIZE_MB;
object.body = Reflect.apply(formatToPlainString, intl, [DYFPg2, object2]);
return object;
}
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;
}
}
global.__d(_fun63587, 8003, [661, 1244, 4651, 2]) /* metro module 8003, dependencies: [661, 1244, 4651, 2] */;