decord/source/modules/notifications_inbox/NotificationsInboxConstants.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

66 lines
3.1 KiB
TypeScript

// Module ID: 8161
// Function ID: 8162
// Name: ANALYTICS_NAME
// Dependencies: [1074, 1090, 1114, 1971, 2]
// Exports: getFilterMap, getNotificationsInboxGuild
// Module 8161 (ANALYTICS_NAME)
import set from "set" /* 2 */;
import ME from "ME" /* 1074 */;
import setDefault from "set" /* 1090 */;
import getSystemLocale from "getSystemLocale" /* 1114 */;
const NOTIFICATIONS_INBOX = ME.NOTIFICATIONS_INBOX;
let obj = { UNREAD: "UNREAD", TODAY: "TODAY", YESTERDAY: "YESTERDAY", OLDER: "OLDER" };
obj = { ALL: "all", MENTIONS: "mentions", BOOKMARKS: "bookmarks" };
obj = {};
obj[obj.UNREAD] = getSystemLocale.t.sRUdB8;
obj[obj.TODAY] = getSystemLocale.t.F4jZQs;
obj[obj.YESTERDAY] = getSystemLocale.t.gnv4pE;
obj[obj.OLDER] = getSystemLocale.t.exrPZv;
const result = set.fileFinishedImporting("modules/notifications_inbox/NotificationsInboxConstants.tsx");
export const ANALYTICS_NAME = "Notifications Inbox";
export const NOTIFICATIONS_INBOX_RAW_GUILD_ID = "notifications_inbox_guild_id";
export const GUILD_HEADER_HEIGHT = 88;
export const INBOX_MESSAGE_AGE_THRESHOLD = setDefault.Millis.WEEK;
export const MAX_MESSAGES_PER_CHANNEL = 50;
export const MAX_UNREAD_MESSAGES_PER_CHANNEL = 10;
export const NOTIFICATIONS_INBOX_FEATURE = "notifications-inbox";
export const getNotificationsInboxGuild = function getNotificationsInboxGuild(arg0) {
if (arg0 === obj.BOOKMARKS) {
const intl3 = getSystemLocale.intl;
let stringResult = intl3.string(getSystemLocale.t["2pAkDA"]);
let tmp2 = require;
} else if (arg0 === tmp.MENTIONS) {
const intl2 = getSystemLocale.intl;
stringResult = intl2.string(getSystemLocale.t.jbV6MM);
tmp2 = require;
} else {
tmp2 = require;
const intl = getSystemLocale.intl;
stringResult = intl.string(getSystemLocale.t.HcoRu0);
}
obj = { id: NOTIFICATIONS_INBOX, name: stringResult, description: "", icon: "Array", features: "text-sm/normal" };
obj[4] = [];
return tmp2(1971).fromGuildBasic(obj);
};
export const MessageCategory = obj;
export const InboxFilters = obj;
export const InboxReadState = { READ: "READ", UNREAD: "UNREAD" };
export const InboxMessageType = { ALL_MESSAGES_CHANNEL: "ALL_MESSAGES_CHANNEL", MENTION: "MENTION", BOOKMARK: "BOOKMARK" };
export const MESSAGE_CATEGORY_DISPLAY_MAP = obj;
export const getFilterMap = function getFilterMap() {
obj = {};
const intl = getSystemLocale.intl;
obj[obj.ALL] = intl.string(getSystemLocale.t.iWyjNt);
const intl2 = getSystemLocale.intl;
obj[obj.MENTIONS] = intl2.string(getSystemLocale.t.jbV6MM);
const intl3 = getSystemLocale.intl;
obj[obj.BOOKMARKS] = intl3.string(getSystemLocale.t["+rlGYW"]);
return obj;
};
export const ChannelLoadState = { UNLOADED: "unloaded", LOADED: "loaded", LOADED_UNREAD: "loadedUnread" };
export const LoadingTrigger = { AUTO_LOAD: "auto_load", ON_OPEN: "on_open", FILL_SCROLLER: "fill_scroller", USER_SCROLL: "user_scroll", UNKNOWN: "unknown" };
export const NotificationInboxItemType = { MENTION: "MENTION", REPLY: "REPLY", REACTION: "REACTION", ANNOUNCEMENT: "ANNOUNCEMENT", MESSAGE: "MESSAGE" };
export const NotificationInboxActionType = { ACK: "ACK", BOOKMARK: "BOOKMARK", SETTINGS: "SETTINGS" };