71 lines
4.3 KiB
TypeScript
71 lines
4.3 KiB
TypeScript
/* Metro module 7625; source: modules/notifications_inbox/NotificationsInboxConstants.tsx; dependencies: [661, 672, 1244, 1418, 2] */
|
|
import Durations from '../../utils/Durations.tsx'; /* Metro dependency 672 */
|
|
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 _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
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const Millis = (Durations).Millis;
|
|
const WEEK = Millis.WEEK;
|
|
object = {UNREAD: 'UNREAD', TODAY: 'TODAY', YESTERDAY: 'YESTERDAY', OLDER: 'OLDER'};
|
|
const object4 = {};
|
|
const UNREAD = object.UNREAD;
|
|
const t = (IndexNativeModule).t;
|
|
object4[UNREAD] = t.sRUdB8;
|
|
const TODAY = object.TODAY;
|
|
const F4jZQs = t.F4jZQs;
|
|
object4[TODAY] = F4jZQs;
|
|
const YESTERDAY = object.YESTERDAY;
|
|
object4[YESTERDAY] = t.gnv4pE;
|
|
const OLDER = object.OLDER;
|
|
object4[OLDER] = t.exrPZv;
|
|
(FileImportTrackerModule).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 = object;
|
|
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 = object4;
|
|
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 = (IndexNativeModule).intl;
|
|
const t = (IndexNativeModule).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 = (IndexNativeModule).intl;
|
|
const string = intl.string;
|
|
const t = (IndexNativeModule).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'])};
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun61108, 7625, [661, 672, 1244, 1418,
|
|
2]) /* metro module 7625, dependencies: [661, 672, 1244, 1418, 2] */;
|