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

41 lines
2.5 KiB
TypeScript

/* Metro module 4695; source: modules/icymi/ICYMIAttachmentUploadTarget.tsx; dependencies: [6, 7, 661, 4651, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun40590(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#40590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4873:6, offset: 0x0110585e, size: 174 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ConstantsModule;
const env0_4 = value.Endpoints;
const env0_5 = value.MAX_ATTACHMENT_SIZE;
const env0_6 = value.MAX_UPLOAD_COUNT;
value = _fun40591();
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/ICYMIAttachmentUploadTarget.tsx');
exports.default = value;
function _fun40591() { // fn#40591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4873:187, offset: 0x0110590c, size: 176 bytes, params: 1, frame: 15
return CreateClass(ICYMIAttachmentUploadTarget, [{key: 'getCreateAttachmentURL', value: function() {
return Endpoints.GRAVITY_ATTACHMENTS;
}}, {key: 'getDeleteUploadURL', value: function(a0) {
return Endpoints.MESSAGE_DELETE_UPLOAD(a0);
}}, {key: 'getMaxFileSize', value: function() {
return MAX_ATTACHMENT_SIZE;
}}, {key: 'getMaxAttachmentsCount', value: function() {
return MAX_UPLOAD_COUNT;
}}, {key: 'getMaxTotalAttachmentSize', value: function() {
return require(dependencyMap[3]).MAX_TOTAL_ATTACHMENT_SIZE;
}}, {key: 'shouldReactNativeCompressUploads', get: function() {
return true;
}}]);
function ICYMIAttachmentUploadTarget() { // fn#40592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4873:208, offset: 0x00c618a4, size: 27 bytes, params: 1, frame: 13
env1_2(this, ICYMIAttachmentUploadTarget);
}
}
}
global.__d(_fun40590, 4695, [6, 7, 661, 4651, 2]) /* metro module 4695, dependencies: [6, 7, 661, 4651, 2] */;