Files
discord-decomp/sources/modules/notifications_inbox/NotificationsInboxConstants.tsx
T
2026-07-27 16:20:00 +03:00

66 lines
4.1 KiB
TypeScript

/* Metro module 7625; source: modules/notifications_inbox/NotificationsInboxConstants.tsx; dependencies: [661, 672, 1244, 1418, 2] */
function _fun61108(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7803:6, offset: 0x0171a5f5, size: 763 bytes, params: 8, frame: 27
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).NOTIFICATIONS_INBOX;
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
const WEEK = Millis.WEEK;
object2 = {UNREAD: 'UNREAD', TODAY: 'TODAY', YESTERDAY: 'YESTERDAY', OLDER: 'OLDER'};
const object3 = {};
const UNREAD = object2.UNREAD;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object3[UNREAD] = t.sRUdB8;
const TODAY = object2.TODAY;
const F4jZQs = t.F4jZQs;
object3[TODAY] = F4jZQs;
const YESTERDAY = object2.YESTERDAY;
object3[YESTERDAY] = t.gnv4pE;
const OLDER = object2.OLDER;
object3[OLDER] = t.exrPZv;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notifications_inbox/NotificationsInboxConstants.tsx');
exports.ANALYTICS_NAME = 'Notifications Inbox';
exports.NOTIFICATIONS_INBOX_RAW_GUILD_ID = 'notifications_inbox_guild_id';
exports.GUILD_HEADER_HEIGHT = 88;
exports.INBOX_MESSAGE_AGE_THRESHOLD = WEEK;
exports.MAX_MESSAGES_PER_CHANNEL = 50;
exports.MAX_UNREAD_MESSAGES_PER_CHANNEL = 10;
exports.NOTIFICATIONS_INBOX_FEATURE = 'notifications-inbox';
exports.getNotificationsInboxGuild = getNotificationsInboxGuild;
exports.MessageCategory = object2;
exports.InboxFilters = {ALL: 'all', MENTIONS: 'mentions', BOOKMARKS: 'bookmarks'};
exports.InboxReadState = {READ: 'READ', UNREAD: 'UNREAD'};
exports.InboxMessageType = {ALL_MESSAGES_CHANNEL: 'ALL_MESSAGES_CHANNEL', MENTION: 'MENTION', BOOKMARK: 'BOOKMARK'};
exports.MESSAGE_CATEGORY_DISPLAY_MAP = object3;
exports.getFilterMap = getFilterMap;
exports.ChannelLoadState = {UNLOADED: 'unloaded', LOADED: 'loaded', LOADED_UNREAD: 'loadedUnread'};
exports.LoadingTrigger = {AUTO_LOAD: 'auto_load', ON_OPEN: 'on_open', FILL_SCROLLER: 'fill_scroller',
USER_SCROLL: 'user_scroll', UNKNOWN: 'unknown'};
exports.NotificationInboxItemType = {MENTION: 'MENTION', REPLY: 'REPLY', REACTION: 'REACTION',
ANNOUNCEMENT: 'ANNOUNCEMENT', MESSAGE: 'MESSAGE'};
exports.NotificationInboxActionType = {ACK: 'ACK', BOOKMARK: 'BOOKMARK', SETTINGS: 'SETTINGS'};
}
function getNotificationsInboxGuild(a0) { // fn#61109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7803:1511, offset: 0x0171a8f0, size: 282 bytes, params: 2, frame: 16
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const BOOKMARKS = env0_3.BOOKMARKS;
return (require(1418) /* metro dependency 1418: GuildRecordUtils */).fromGuildBasic({id: NOTIFICATIONS_INBOX,
name: a0 === BOOKMARKS ? intl.string(t['2pAkDA']) : a0 === env0_3.MENTIONS ? intl.string(t.jbV6MM) : intl.string(t.HcoRu0),
description: '', icon: undefined, features: []});
}
function getFilterMap() { // fn#61110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7803:1916, offset: 0x0171aa0a, size: 193 bytes, params: 1, frame: 18
const binding = env0_3;
const ALL = binding.ALL;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const MENTIONS = binding.MENTIONS;
const BOOKMARKS = binding.BOOKMARKS;
return {[ALL]: Reflect.apply(string, intl, [t.iWyjNt]), [MENTIONS]: intl.string(t.jbV6MM),
[BOOKMARKS]: intl.string(t['+rlGYW'])};
}