decord/alpha/source/modules/notifications_inbox/NotificationsInboxConstants.tsx

73 lines
3.2 KiB
TypeScript
Raw Normal View History

2026-10-03 08:58:59 +00:00
// Module ID: 7832
// Function ID: 7833
// Name: NotificationsInboxConstants
2026-10-03 08:58:59 +00:00
// Dependencies: [1085, 1102, 1126, 2066, 2]
2026-07-20 16:05:17 +00:00
// Exports: getFilterMap, getNotificationsInboxGuild
2026-10-03 08:58:59 +00:00
// Module 7832 (NotificationsInboxConstants)
import Constants from "Constants" /* 1085 */;
import DurationsDefault from "Durations" /* 1102 */;
import intl4 from "intl" /* 1126 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const NOTIFICATIONS_INBOX = Constants.NOTIFICATIONS_INBOX;
2026-07-20 16:05:17 +00:00
let obj = { UNREAD: "UNREAD", TODAY: "TODAY", YESTERDAY: "YESTERDAY", OLDER: "OLDER" };
const obj2 = { ALL: "all", MENTIONS: "mentions", BOOKMARKS: "bookmarks" };
const obj3 = {};
2026-10-03 08:58:59 +00:00
const WEEK = DurationsDefault.Millis.WEEK;
obj3[obj.UNREAD] = intl4.t.sRUdB8;
obj3[obj.TODAY] = intl4.t.F4jZQs;
obj3[obj.YESTERDAY] = intl4.t.gnv4pE;
obj3[obj.OLDER] = intl4.t.exrPZv;
const result = size.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-10-03 08:58:59 +00:00
export const INBOX_MESSAGE_AGE_THRESHOLD = 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) {
2026-10-03 08:58:59 +00:00
let stringResult;
let tmp2;
if (arg0 === obj2.BOOKMARKS) {
2026-10-03 08:58:59 +00:00
const intl3 = intl4.intl;
stringResult = intl3.string(intl4.t["2pAkDA"]);
tmp2 = require;
2026-07-29 08:29:29 +00:00
} else if (arg0 === tmp.MENTIONS) {
2026-10-03 08:58:59 +00:00
const intl2 = intl4.intl;
stringResult = intl2.string(intl4.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-10-03 08:58:59 +00:00
const intl = intl4.intl;
stringResult = intl.string(intl4.t.HcoRu0);
2026-07-20 16:05:17 +00:00
}
const obj = { id: NOTIFICATIONS_INBOX, name: stringResult, description: "", icon: "Array", features: [] };
2026-10-03 08:58:59 +00:00
const tmp2Result = tmp2(2066);
return tmp2Result.fromGuildBasic(obj);
2026-07-20 16:05:17 +00:00
};
export const MessageCategory = obj;
export const InboxFilters = obj2;
2026-07-20 16:05:17 +00:00
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 = obj3;
2026-07-20 16:05:17 +00:00
export const getFilterMap = function getFilterMap() {
const obj = {};
2026-10-03 08:58:59 +00:00
const ALL = obj2.ALL;
const intl = intl4.intl;
obj[ALL] = intl.string(intl4.t.iWyjNt);
const MENTIONS = obj2.MENTIONS;
const intl2 = intl4.intl;
obj[MENTIONS] = intl2.string(intl4.t.jbV6MM);
const BOOKMARKS = obj2.BOOKMARKS;
const intl3 = intl4.intl;
obj[BOOKMARKS] = intl3.string(intl4.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" };