2026-10-03 08:58:59 +00:00
// Module ID: 1125
// Function ID: 1126
2026-09-10 05:38:07 +00:00
// Name: ThreadConstants
2026-10-03 08:58:59 +00:00
// Dependencies: [1085, 1126, 2]
2026-07-20 16:05:17 +00:00
// Exports: getThreadNotificationOptions
2026-10-03 08:58:59 +00:00
// Module 1125 (ThreadConstants)
import Constants from "Constants" /* 1085 */ ;
import intl4 from "intl" /* 1126 */ ;
2026-09-10 05:38:07 +00:00
import size from "module_2" /* 2 */ ;
2026-07-23 10:11:24 +00:00
2026-09-10 05:38:07 +00:00
const AbortCodes = Constants . AbortCodes ;
const ThreadMemberFlags = { HAS_INTERACTED : 1 , ALL_MESSAGES : 2 , ONLY_MENTIONS : 4 , NO_MESSAGES : 8 } ;
2026-07-23 10:11:24 +00:00
let items = [ , , , ] ;
2026-07-20 16:05:17 +00:00
( { TOO_MANY_ATTACHMENTS : arr [ 0 ] , EXPLICIT_CONTENT : arr [ 1 ] , ENTITY_TOO_LARGE : arr [ 2 ] , EXPLICIT_CONTENT : arr [ 3 ] } = AbortCodes ) ;
const items1 = [ , ] ;
( { AUTOMOD_MESSAGE_BLOCKED : arr2 [ 0 ] , AUTOMOD_TITLE_BLOCKED : arr2 [ 1 ] } = AbortCodes ) ;
2026-09-10 05:38:07 +00:00
const set = new Set ( items ) ;
2026-10-03 08:58:59 +00:00
const set1 = new Set ( items1 ) ;
2026-09-10 05:38:07 +00:00
const result = size . fileFinishedImporting ( "modules/threads/ThreadConstants.tsx" ) ;
2026-07-20 16:05:17 +00:00
export const DEFAULT_AUTO_ARCHIVE_DURATION = 4320 ;
export const MAX_THREAD_MESSAGE_COUNT_OLD = 50 ;
export const MAX_THREAD_MESSAGE_COUNT = 100000 ;
export const MAX_THREAD_MEMBERS_PREVIEW = 50 ;
export const MAX_THREAD_UNREAD_MESSAGE_COUNT = 25 ;
2026-09-10 05:38:07 +00:00
export { ThreadMemberFlags } ;
2026-07-20 16:05:17 +00:00
export const OpenThreadAnalyticsLocations = { EMBED : "Embed" , BROWSER : "Thread Browser" , POPOUT : "Active Threads Popout" , CHANNEL_LIST : "Channel List" , GUILD_ACTIVE_THREADS_MODAL : "Guild Active Threads Modal" , INBOX : "Inbox" , FORUM : "Forum" , VOICE_AUTO_OPEN : "Voice Auto Open" } ;
export const getThreadNotificationOptions = function getThreadNotificationOptions() {
2026-10-03 08:58:59 +00:00
let intl ;
let intl2 ;
let intl3 ;
let obj ;
obj = { setting : obj.ALL_MESSAGES , label : intl.string ( intl4 . t [ "n/bTaY" ] ) } ;
intl = intl4 . intl ;
2026-07-20 16:05:17 +00:00
const items = [ obj , , ] ;
2026-10-03 08:58:59 +00:00
const obj2 = { setting : obj.ONLY_MENTIONS , label : intl2.format ( intl4 . t . L2hmYy , { } ) } ;
intl2 = intl4 . intl ;
2026-09-10 05:38:07 +00:00
items [ 1 ] = obj2 ;
2026-10-03 08:58:59 +00:00
const obj3 = { setting : obj.NO_MESSAGES , label : intl3.string ( intl4 . t . CtVGyQ ) } ;
intl3 = intl4 . intl ;
2026-09-10 05:38:07 +00:00
items [ 2 ] = obj3 ;
2026-07-20 16:05:17 +00:00
return items ;
} ;
export const ThreadSortOrderReadableForAnalytics = { LATEST_ACTIVITY : "Last Message" , CREATION_DATE : "Creation" } ;
export const FORUM_POST_CREATION_UPLOAD_ERRORS = set ;
2026-10-03 08:58:59 +00:00
export const FORUM_POST_CREATION_AUTOMOD_ERRORS = set1 ;