decord/source/modules/notifications_inbox/NotificationsInboxConstants.tsx

67 lines
3.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 8410
// Function ID: 8411
2026-07-20 16:05:17 +00:00
// Name: ANALYTICS_NAME
2026-08-11 06:20:06 +00:00
// Dependencies: [676, 687, 1236, 1430, 2]
2026-07-20 16:05:17 +00:00
// Exports: getFilterMap, getNotificationsInboxGuild
2026-08-24 06:08:38 +00:00
// Module 8410 (ANALYTICS_NAME)
import set from "set" /* 2 */;
import ME from "ME" /* 676 */;
import setDefault from "set" /* 687 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const NOTIFICATIONS_INBOX = ME.NOTIFICATIONS_INBOX;
2026-07-20 16:05:17 +00:00
let obj = { UNREAD: "UNREAD", TODAY: "TODAY", YESTERDAY: "YESTERDAY", OLDER: "OLDER" };
obj = { ALL: "all", MENTIONS: "mentions", BOOKMARKS: "bookmarks" };
obj = {};
2026-08-24 06:08:38 +00:00
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");
2026-07-20 16:05:17 +00:00
export const ANALYTICS_NAME = "Notifications Inbox";
export const NOTIFICATIONS_INBOX_RAW_GUILD_ID = "notifications_inbox_guild_id";
export const GUILD_HEADER_HEIGHT = 88;
2026-08-24 06:08:38 +00:00
export const INBOX_MESSAGE_AGE_THRESHOLD = setDefault.Millis.WEEK;
2026-07-20 16:05:17 +00:00
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) {
2026-08-24 06:08:38 +00:00
const intl3 = getSystemLocale.intl;
let stringResult = intl3.string(getSystemLocale.t["2pAkDA"]);
2026-07-29 08:29:29 +00:00
let tmp2 = require;
} else if (arg0 === tmp.MENTIONS) {
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
stringResult = intl2.string(getSystemLocale.t.jbV6MM);
2026-07-29 08:29:29 +00:00
tmp2 = require;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp2 = require;
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
stringResult = intl.string(getSystemLocale.t.HcoRu0);
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
obj = { id: NOTIFICATIONS_INBOX, name: stringResult, description: "", icon: "Array", features: "Wumpus" };
2026-07-29 08:29:29 +00:00
obj[4] = [];
2026-08-11 06:20:06 +00:00
return tmp2(1430).fromGuildBasic(obj);
2026-07-20 16:05:17 +00:00
};
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() {
2026-08-24 06:08:38 +00:00
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"]);
2026-07-20 16:05:17 +00:00
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" };