56 lines
3.2 KiB
TypeScript
56 lines
3.2 KiB
TypeScript
/* Metro module 1243; source: modules/threads/ThreadConstants.tsx; dependencies: [661, 1244, 2] */
|
|
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 = (require(661) /* metro dependency 661: Constants */).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]);
|
|
(require(2) /* metro dependency 2 */).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 object2 = {};
|
|
const binding = env0_2;
|
|
const ALL_MESSAGES = binding.ALL_MESSAGES;
|
|
object2.setting = ALL_MESSAGES;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
object2.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 [object2, {setting: ONLY_MENTIONS, label: Reflect.apply(format, intl, [L2hmYy, {}])}, {setting: NO_MESSAGES,
|
|
label: Reflect.apply(string, intl, [CtVGyQ])}];
|
|
}
|
|
|