Files
discord-decomp/sources/modules/threads/ThreadConstants.tsx
T
2026-07-28 01:06:53 +03:00

61 lines
3.6 KiB
TypeScript

/* Metro module 1243; source: modules/threads/ThreadConstants.tsx; dependencies: [661, 1244, 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 _fun13934(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#13934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1370:6, offset: 0x00df8598, size: 457 bytes, params: 8, frame: 24
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const AbortCodes = (ConstantsModule).AbortCodes;
let Set = global.Set;
const TOO_MANY_ATTACHMENTS = AbortCodes.TOO_MANY_ATTACHMENTS;
const items2 = [TOO_MANY_ATTACHMENTS];
let EXPLICIT_CONTENT = AbortCodes.EXPLICIT_CONTENT;
items2[1] = EXPLICIT_CONTENT;
const ENTITY_TOO_LARGE = AbortCodes.ENTITY_TOO_LARGE;
items2[2] = ENTITY_TOO_LARGE;
EXPLICIT_CONTENT = AbortCodes.EXPLICIT_CONTENT;
items2[3] = EXPLICIT_CONTENT;
let set = new Set(items2);
Set = global.Set;
const AUTOMOD_MESSAGE_BLOCKED = AbortCodes.AUTOMOD_MESSAGE_BLOCKED;
const AUTOMOD_TITLE_BLOCKED = AbortCodes.AUTOMOD_TITLE_BLOCKED;
set = new Set([AUTOMOD_MESSAGE_BLOCKED, AUTOMOD_TITLE_BLOCKED]);
(FileImportTrackerModule).fileFinishedImporting('modules/threads/ThreadConstants.tsx');
exports.DEFAULT_AUTO_ARCHIVE_DURATION = 4320;
exports.MAX_THREAD_MESSAGE_COUNT_OLD = 50;
exports.MAX_THREAD_MESSAGE_COUNT = 100000;
exports.MAX_THREAD_MEMBERS_PREVIEW = 50;
exports.MAX_THREAD_UNREAD_MESSAGE_COUNT = 25;
exports.ThreadMemberFlags = {'HAS_INTERACTED': 1, 'ALL_MESSAGES': 2, 'ONLY_MENTIONS': 4, 'NO_MESSAGES': 8};
exports.OpenThreadAnalyticsLocations = {EMBED: 'Embed', BROWSER: 'Thread Browser', POPOUT: 'Active Threads Popout',
CHANNEL_LIST: 'Channel List', GUILD_ACTIVE_THREADS_MODAL: 'Guild Active Threads Modal', INBOX: 'Inbox',
FORUM: 'Forum', VOICE_AUTO_OPEN: 'Voice Auto Open'};
exports.getThreadNotificationOptions = getThreadNotificationOptions;
exports.ThreadSortOrderReadableForAnalytics = {LATEST_ACTIVITY: 'Last Message', CREATION_DATE: 'Creation'};
exports.FORUM_POST_CREATION_UPLOAD_ERRORS = set;
exports.FORUM_POST_CREATION_AUTOMOD_ERRORS = set;
function getThreadNotificationOptions() { // fn#13935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1370:1017, offset: 0x00df8761, size: 224 bytes, params: 1, frame: 20
const object = {};
const binding = env0_2;
const ALL_MESSAGES = binding.ALL_MESSAGES;
object.setting = ALL_MESSAGES;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
object.label = Reflect.apply(string, intl, [t['n/bTaY']]);
const ONLY_MENTIONS = binding.ONLY_MENTIONS;
const format = intl.format;
const L2hmYy = t.L2hmYy;
const NO_MESSAGES = binding.NO_MESSAGES;
string = intl.string;
const CtVGyQ = t.CtVGyQ;
return [object, {setting: ONLY_MENTIONS, label: Reflect.apply(format, intl, [L2hmYy, {}])}, {setting: NO_MESSAGES,
label: Reflect.apply(string, intl, [CtVGyQ])}];
}
}
global.__d(_fun13934, 1243, [661, 1244, 2]) /* metro module 1243, dependencies: [661, 1244, 2] */;