2026-07-23 10:11:24 +00:00
// Module ID: 10439
// Function ID: 80386
2026-07-20 16:05:17 +00:00
// Name: _createForOfIteratorHelperLoose
2026-07-23 10:11:24 +00:00
// Dependencies: [57, 31, 4122, 1347, 7821, 4167, 10440, 6708, 4143, 9478, 4991, 4044, 5671, 5466, 7644, 7627, 6758, 6693, 7795, 7629, 10441, 7630, 5066, 4348, 7902, 6689, 10442, 6922, 6830, 9484, 3760, 5683, 1921, 1278, 1194, 1348, 6923, 8193, 1917, 1838, 4946, 4115, 4349, 3758, 4217, 4202, 4142, 4145, 7080, 1849, 4146, 4175, 10443, 4203, 653, 1851, 33, 566, 22, 620, 5465, 1327, 3803, 1324, 10450, 10453, 10457, 10460, 10464, 6687, 3776, 7668, 4964, 10404, 10405, 7664, 6656, 10847, 3996, 9486, 9886, 9474, 10848, 4347, 9475, 7794, 10849, 10852, 7812, 9312, 6978, 10854, 10856, 4662, 10857, 2]
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
// Module 10439 (_createForOfIteratorHelperLoose)
import initialize from "initialize" ;
import importAllResult from "_isNativeReflectConstruct" ;
import _isNativeReflectConstruct from "_isNativeReflectConstruct" ;
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose" ;
import closure_7 from "_isNativeReflectConstruct" ;
import closure_8 from "_isNativeReflectConstruct" ;
import closure_9 from "_isNativeReflectConstruct" ;
import closure_10 from "_isNativeReflectConstruct" ;
import closure_11 from "_isNativeReflectConstruct" ;
import closure_12 from "_isNativeReflectConstruct" ;
import closure_13 from "_isNativeReflectConstruct" ;
import closure_14 from "_isNativeReflectConstruct" ;
import closure_15 from "_isNativeReflectConstruct" ;
import closure_16 from "_isNativeReflectConstruct" ;
import closure_17 from "_isNativeReflectConstruct" ;
import closure_18 from "_isNativeReflectConstruct" ;
import closure_19 from "_isNativeReflectConstruct" ;
import closure_20 from "_createForOfIteratorHelperLoose" ;
import closure_21 from "_isNativeReflectConstruct" ;
import closure_22 from "_isNativeReflectConstruct" ;
import closure_23 from "_isNativeReflectConstruct" ;
import closure_24 from "_isNativeReflectConstruct" ;
import closure_25 from "_isNativeReflectConstruct" ;
import closure_26 from "_isNativeReflectConstruct" ;
import useMessagePollInteractions from "useMessagePollInteractions" ;
import closure_29 from "_isNativeReflectConstruct" ;
import closure_30 from "_isNativeReflectConstruct" ;
import closure_31 from "_createForOfIteratorHelperLoose" ;
import closure_32 from "_isNativeReflectConstruct" ;
import closure_33 from "_isNativeReflectConstruct" ;
import closure_34 from "_isNativeReflectConstruct" ;
import closure_35 from "_isNativeReflectConstruct" ;
import closure_36 from "_isNativeReflectConstruct" ;
import closure_37 from "_isNativeReflectConstruct" ;
import closure_38 from "_isNativeReflectConstruct" ;
import closure_39 from "_isNativeReflectConstruct" ;
import closure_40 from "_isNativeReflectConstruct" ;
import closure_41 from "_isNativeReflectConstruct" ;
import closure_42 from "_isNativeReflectConstruct" ;
import closure_43 from "_createForOfIteratorHelperLoose" ;
import closure_44 from "_isNativeReflectConstruct" ;
import closure_45 from "_isNativeReflectConstruct" ;
import closure_46 from "_isNativeReflectConstruct" ;
import closure_47 from "_isNativeReflectConstruct" ;
import closure_48 from "_isNativeReflectConstruct" ;
import closure_49 from "_isNativeReflectConstruct" ;
import closure_50 from "_isNativeReflectConstruct" ;
import closure_51 from "_isNativeReflectConstruct" ;
import closure_52 from "_isNativeReflectConstruct" ;
import closure_53 from "_isNativeReflectConstruct" ;
import closure_54 from "_isNativeReflectConstruct" ;
import closure_55 from "_isNativeReflectConstruct" ;
import closure_56 from "_isNativeReflectConstruct" ;
import closure_57 from "_isNativeReflectConstruct" ;
import ME from "ME" ;
import GuildFeatures from "GuildFeatures" ;
import jsxProd from "_isNativeReflectConstruct" ;
let closure_27 ;
let closure_28 ;
let closure_58 ;
let closure_59 ;
let closure_60 ;
let closure_61 ;
let closure_62 ;
let closure_63 ;
let closure_64 ;
let closure_65 ;
let closure_66 ;
const require = arg1 ;
function _createForOfIteratorHelperLoose ( iterable ) {
let closure_0 = iterable ;
iterable = "undefined" !== typeof Symbol ;
if ( iterable ) {
2026-07-20 16:05:17 +00:00
const _Symbol = Symbol ;
2026-07-23 10:11:24 +00:00
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( ! iterable ) {
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( iterable ) {
const iter = iterable . call ( iterable ) ;
2026-07-20 16:05:17 +00:00
const next = iter . next ;
return next . bind ( iter ) ;
} else {
const _Array = Array ;
2026-07-23 10:11:24 +00:00
let tmp = iterable ;
if ( ! Array . isArray ( iterable ) ) {
2026-07-20 16:05:17 +00:00
let tmp2 ;
2026-07-23 10:11:24 +00:00
if ( iterable ) {
if ( "string" === typeof iterable ) {
tmp2 = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
const toString = { } . toString ;
2026-07-23 10:11:24 +00:00
const substr = toString . call ( iterable ) . slice ( 8 , - 1 ) ;
2026-07-20 16:05:17 +00:00
let name = substr ;
if ( tmp3 ) {
2026-07-23 10:11:24 +00:00
name = iterable . constructor . name ;
2026-07-20 16:05:17 +00:00
}
if ( "Map" !== name ) {
if ( "Set" !== name ) {
if ( "Arguments" === name ) {
2026-07-23 10:11:24 +00:00
let arr = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
let obj = /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ ;
2026-07-20 16:05:17 +00:00
}
}
tmp2 = arr ;
}
const _Array2 = Array ;
2026-07-23 10:11:24 +00:00
arr = Array . from ( iterable ) ;
const callResult = toString . call ( iterable ) ;
tmp3 = "Object" === substr && iterable . constructor ;
2026-07-20 16:05:17 +00:00
}
}
tmp = tmp2 ;
if ( ! tmp2 ) {
const _TypeError = TypeError ;
const typeError = new TypeError ( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ;
throw typeError ;
}
}
if ( tmp ) {
2026-07-23 10:11:24 +00:00
closure_0 = tmp ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let c1 = 0 ;
2026-07-20 16:05:17 +00:00
return ( ) = > {
2026-07-23 10:11:24 +00:00
if ( closure_1 >= length . length ) {
2026-07-20 16:05:17 +00:00
let obj = { done : true } ;
} else {
obj = { done : false } ;
closure_1 = tmp3 + 1 ;
2026-07-23 10:11:24 +00:00
obj . value = length [ + closure_1 ] ;
2026-07-20 16:05:17 +00:00
}
return obj ;
} ;
}
}
function _arrayLikeToArray ( arg0 , arg1 ) {
let length ;
if ( tmp ) {
length = arg0 . length ;
}
const ArrayResult = Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
ArrayResult [ num ] = arg0 [ num ] ;
}
return ArrayResult ;
}
2026-07-23 10:11:24 +00:00
( { useChannelPollInteractions : closure_27 , useMessagePollInteractions : closure_28 } = useMessagePollInteractions ) ;
( { ActivityActionTypes : closure_58 , ChannelTypesSets : closure_59 , ME : closure_60 , MessageTypes : closure_61 , Permissions : closure_62 } = ME ) ;
( { PREMIUM_TIER_2_REFERRAL_TRIAL_ID : closure_63 , PremiumTypes : closure_64 } = GuildFeatures ) ;
( { jsx : closure_65 , jsxs : closure_66 } = jsxProd ) ;
2026-07-20 16:05:17 +00:00
const forwardRefResult = importAllResult . forwardRef ( ( channel , ref ) = > {
let acceptingGiftCodes ;
let appDirectoryEmbedApplicationFetchStates ;
let appDirectoryEmbedApplications ;
let displayNameStylesEnabled ;
let invalidAppDirectoryEmbedApplicationIds ;
let isFetchingCurrentQuests ;
let officialMessageStyle ;
let quests ;
let resolvedGiftCodes ;
let resolvingGiftCodes ;
let roleStyle ;
let saturation ;
let tmp56 ;
let tmp57 ;
let unloadableContentEntryMessageIds ;
let unloadedContentEntryMessageIds ;
let useReducedMotion ;
channel = channel . channel ;
2026-07-23 10:11:24 +00:00
let obj = channel ( id [ 57 ] ) ;
let items = [ closure_46 ] ;
let items1 = [ channel . id ] ;
const stateFromStores = obj . useStateFromStores ( items , ( ) = > outer1_46 . getMessages ( channel . id ) , items1 ) ;
id = channel . id ;
2026-07-20 16:05:17 +00:00
let guildId = channel . getGuildId ( ) ;
2026-07-23 10:11:24 +00:00
let obj1 = channel ( id [ 57 ] ) ;
let items2 = [ closure_43 ] ;
const stateFromStores1 = obj1 . useStateFromStores ( items2 , ( ) = > outer1_43 . getGuild ( guildId ) ) ;
2026-07-20 16:05:17 +00:00
let systemChannelFlags ;
if ( null != stateFromStores1 ) {
systemChannelFlags = stateFromStores1 . systemChannelFlags ;
}
2026-07-23 10:11:24 +00:00
let obj2 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items3 = [ closure_38 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores2 = obj2 . useStateFromStores ( items3 , ( ) = > outer1_38 . getId ( ) , [ ] ) ;
const InlineAttachmentMedia = channel ( id [ 62 ] ) . InlineAttachmentMedia ;
2026-07-20 16:05:17 +00:00
const setting = InlineAttachmentMedia . useSetting ( ) ;
2026-07-23 10:11:24 +00:00
const InlineEmbedMedia = channel ( id [ 62 ] ) . InlineEmbedMedia ;
2026-07-20 16:05:17 +00:00
const setting1 = InlineEmbedMedia . useSetting ( ) ;
2026-07-23 10:11:24 +00:00
const RenderEmbeds = channel ( id [ 62 ] ) . RenderEmbeds ;
2026-07-20 16:05:17 +00:00
const setting2 = RenderEmbeds . useSetting ( ) ;
2026-07-23 10:11:24 +00:00
const RenderReactions = channel ( id [ 62 ] ) . RenderReactions ;
2026-07-20 16:05:17 +00:00
const setting3 = RenderReactions . useSetting ( ) ;
2026-07-23 10:11:24 +00:00
const DeveloperMode = channel ( id [ 62 ] ) . DeveloperMode ;
2026-07-20 16:05:17 +00:00
const setting4 = DeveloperMode . useSetting ( ) ;
2026-07-23 10:11:24 +00:00
const AnimateEmoji = channel ( id [ 62 ] ) . AnimateEmoji ;
2026-07-20 16:05:17 +00:00
const setting5 = AnimateEmoji . useSetting ( ) ;
2026-07-23 10:11:24 +00:00
const AnimateStickers = channel ( id [ 62 ] ) . AnimateStickers ;
2026-07-20 16:05:17 +00:00
const setting6 = AnimateStickers . useSetting ( ) ;
2026-07-23 10:11:24 +00:00
const GifAutoPlay = channel ( id [ 62 ] ) . GifAutoPlay ;
2026-07-20 16:05:17 +00:00
const setting7 = GifAutoPlay . useSetting ( ) ;
2026-07-23 10:11:24 +00:00
const TimestampHourCycle = channel ( id [ 62 ] ) . TimestampHourCycle ;
2026-07-20 16:05:17 +00:00
const setting8 = TimestampHourCycle . useSetting ( ) ;
2026-07-23 10:11:24 +00:00
let obj3 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items4 = [ closure_37 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores3 = obj3 . useStateFromStores ( items4 , ( ) = > outer1_37 . theme , [ ] ) ;
let obj4 = channel ( id [ 64 ] ) ;
2026-07-20 16:05:17 +00:00
const isMessageSwipeActionsEnabled = obj4 . useIsMessageSwipeActionsEnabled ( ) ;
2026-07-21 22:01:30 +00:00
const linkedLobby = channel . linkedLobby ;
let application_id ;
2026-07-23 10:11:24 +00:00
let tmp15 = stateFromStores ( id [ 63 ] ) ( "Messages" ) ;
2026-07-21 22:01:30 +00:00
if ( null != linkedLobby ) {
application_id = linkedLobby . application_id ;
}
2026-07-23 10:11:24 +00:00
( function useFetchMessageApplications ( stateFromStores , application_id ) {
let closure_0 = stateFromStores ;
let closure_1 = application_id ;
2026-07-21 22:01:30 +00:00
const items = [ stateFromStores , application_id ] ;
2026-07-20 16:05:17 +00:00
const memo = stateFromStores1 . useMemo ( ( ) = > {
const set = new Set ( ) ;
2026-07-23 10:11:24 +00:00
const item = set . forEach ( ( applicationId ) = > {
2026-07-20 16:05:17 +00:00
if ( tmp ) {
set . add ( applicationId . applicationId ) ;
}
} ) ;
2026-07-23 10:11:24 +00:00
if ( null != closure_1 ) {
set . add ( closure_1 ) ;
2026-07-21 22:01:30 +00:00
}
2026-07-20 16:05:17 +00:00
return Array . from ( set ) ;
} , items ) ;
2026-07-23 10:11:24 +00:00
let initialize = stateFromStores1 . useRef ( [ ] ) ;
2026-07-20 16:05:17 +00:00
const items1 = [ memo ] ;
const effect = stateFromStores1 . useEffect ( ( ) = > {
if ( ! obj . areArraysShallowEqual ( memo , ref . current ) ) {
2026-07-23 10:11:24 +00:00
const obj2 = stateFromStores ( id [ 60 ] ) ;
const found = stateFromStores ( id [ 58 ] ) ( memo ) . filter ( channel ( id [ 61 ] ) . isNotNullish ) ;
const arr = stateFromStores ( id [ 58 ] ) ( memo ) ;
2026-07-20 16:05:17 +00:00
const applications = obj2 . fetchApplications ( found . uniq ( ) . value ( ) , false ) ;
ref . current = memo ;
const iter = found . uniq ( ) ;
}
} , items1 ) ;
2026-07-23 10:11:24 +00:00
} ) ( stateFromStores , application_id ) ;
const tmp17 = ( function useMessageAuthorActivities ( stateFromStores ) {
let closure_0 = stateFromStores ;
2026-07-20 16:05:17 +00:00
const items = [ stateFromStores ] ;
const memo = stateFromStores1 . useMemo ( ( ) = > {
const obj = { } ;
2026-07-23 10:11:24 +00:00
const item = obj . forEach ( ( author ) = > {
2026-07-20 16:05:17 +00:00
if ( tmp ) {
obj [ author . author . id ] = null ;
}
} ) ;
return obj ;
} , items ) ;
2026-07-23 10:11:24 +00:00
const items1 = [ outer1_48 ] ;
2026-07-20 16:05:17 +00:00
const items2 = [ memo ] ;
2026-07-23 10:11:24 +00:00
return channel ( id [ 57 ] ) . useStateFromStoresObject ( items1 , ( ) = > stateFromStores ( id [ 58 ] ) . mapValues ( memo , ( arg0 , arg1 ) = > outer3_48 . getPrimaryActivity ( arg1 ) ) , items2 ) ;
} ) ( stateFromStores ) ;
let obj5 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items5 = [ closure_45 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores4 = obj5 . useStateFromStores ( items5 , ( ) = > outer1_45 . getInvites ( ) , [ ] ) ;
const tmp20 = guildId ( stateFromStores ( id [ 65 ] ) ( stateFromStores , channel ) , 2 ) ;
const fetchVoiceChannelInviteStartTimes = channel ( id [ 66 ] ) . useFetchVoiceChannelInviteStartTimes ( stateFromStores4 ) ;
const obj7 = channel ( id [ 66 ] ) ;
2026-07-20 16:05:17 +00:00
const items6 = [ closure_16 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStoresObject = channel ( id [ 57 ] ) . useStateFromStoresObject ( items6 , ( ) = > ( { appDirectoryEmbedApplications : outer1_16.getApplications ( ) , invalidAppDirectoryEmbedApplicationIds : outer1_16.getInvalidApplicationIds ( ) , appDirectoryEmbedApplicationFetchStates : outer1_16.getApplicationFetchStates ( ) } ) , [ ] ) ;
2026-07-20 16:05:17 +00:00
( { appDirectoryEmbedApplications , invalidAppDirectoryEmbedApplicationIds , appDirectoryEmbedApplicationFetchStates } = stateFromStoresObject ) ;
2026-07-23 10:11:24 +00:00
const obj8 = channel ( id [ 57 ] ) ;
const items7 = [ items63 ] ;
const stateFromStoresArray = channel ( id [ 57 ] ) . useStateFromStoresArray ( items7 , ( ) = > items63 . getFetchingOrFailedFetchingIds ( ) ) ;
const obj9 = channel ( id [ 57 ] ) ;
const items8 = [ channelSummariesExperiment ] ;
const stateFromStoresArray1 = channel ( id [ 57 ] ) . useStateFromStoresArray ( items8 , ( ) = > channelSummariesExperiment . getFetchingIds ( ) ) ;
const obj10 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items9 = [ closure_55 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStoresArray2 = channel ( id [ 57 ] ) . useStateFromStoresArray ( items9 , ( ) = > outer1_55 . getFetchingSkuIds ( ) ) ;
const obj11 = channel ( id [ 57 ] ) ;
const items10 = [ _createForOfIteratorHelperLoose ] ;
2026-07-20 16:05:17 +00:00
const items11 = [ id ] ;
2026-07-23 10:11:24 +00:00
const stateFromStoresArray3 = channel ( id [ 57 ] ) . useStateFromStoresArray ( items10 , ( ) = > {
2026-07-20 16:05:17 +00:00
const embeddedActivitiesForChannel = store . getEmbeddedActivitiesForChannel ( id ) ;
const mapped = embeddedActivitiesForChannel . map ( ( launchId ) = > launchId . launchId ) ;
return mapped . filter ( channel ( id [ 61 ] ) . isNotNullish ) ;
} , items11 ) ;
2026-07-23 10:11:24 +00:00
const obj12 = channel ( id [ 57 ] ) ;
const items12 = [ _createForOfIteratorHelperLoose , closure_48 ] ;
const stateFromStoresArray4 = channel ( id [ 57 ] ) . useStateFromStoresArray ( items12 , ( ) = > {
2026-07-20 16:05:17 +00:00
let done ;
2026-07-23 10:11:24 +00:00
let items = [ ] ;
2026-07-20 16:05:17 +00:00
function _loop ( value ) {
const items = value ;
const userIds = value . userIds ;
2026-07-23 10:11:24 +00:00
const findActivityResult = outer2_48 . findActivity ( userIds . values ( ) . next ( ) . value , ( application_id ) = > application_id . application_id === value . applicationId ) ;
2026-07-20 16:05:17 +00:00
let details ;
if ( null != findActivityResult ) {
details = findActivityResult . details ;
}
if ( null != details ) {
const _HermesInternal = HermesInternal ;
items . push ( "" + value . launchId + ":" + findActivityResult . details ) ;
}
}
2026-07-23 10:11:24 +00:00
const tmp = outer1_67 ( store . getEmbeddedActivitiesForChannel ( id ) ) ;
2026-07-20 16:05:17 +00:00
let iter = tmp ( ) ;
if ( ! iter . done ) {
do {
let _loopResult = _loop ( iter . value ) ;
let iter2 = tmp ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
return items ;
} ) ;
2026-07-23 10:11:24 +00:00
const obj13 = channel ( id [ 57 ] ) ;
const items13 = [ _createForOfIteratorHelperLoose ] ;
const stateFromStoresArray5 = channel ( id [ 57 ] ) . useStateFromStoresArray ( items13 , ( ) = > {
2026-07-20 16:05:17 +00:00
const set = new Set ( ) ;
const embeddedActivitiesByChannel = store . getEmbeddedActivitiesByChannel ( ) ;
2026-07-23 10:11:24 +00:00
let item = embeddedActivitiesByChannel . forEach ( ( arr ) = > {
let closure_0 = arg1 ;
let item = arr . forEach ( ( userIds ) = > {
2026-07-20 16:05:17 +00:00
userIds = userIds . userIds ;
const item = userIds . forEach ( ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
set . add ( "" + outer1_0 + ":" + arg0 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
} ) ;
} ) ;
return Array . from ( set ) ;
} ) ;
2026-07-23 10:11:24 +00:00
const obj14 = channel ( id [ 57 ] ) ;
const items14 = [ _createForOfIteratorHelperLoose ] ;
const stateFromStoresArray6 = channel ( id [ 57 ] ) . useStateFromStoresArray ( items14 , ( ) = > {
2026-07-20 16:05:17 +00:00
let iter2 ;
let tmp4 ;
const items = [ ] ;
2026-07-23 10:11:24 +00:00
const tmp = outer1_67 ( store . getLaunchStates ( ) ) ;
2026-07-20 16:05:17 +00:00
let iter = tmp ( ) ;
if ( ! iter . done ) {
do {
2026-07-23 10:11:24 +00:00
let tmp2 = guildId ;
let tmp3 = guildId ( iter . value , 2 ) ;
2026-07-20 16:05:17 +00:00
[ r10016 , tmp4 ] = tmp3 ;
let tmp5 = tmp4 . isLaunching && null != tmp4 . componentId && tmp4 . componentId . length > 0 ;
if ( tmp5 ) {
let arr = items . push ( tmp4 . componentId ) ;
}
iter2 = tmp ( ) ;
iter = iter2 ;
} while ( ! iter2 . done ) ;
}
return items ;
} ) ;
2026-07-23 10:11:24 +00:00
const obj15 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items15 = [ closure_23 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores5 = channel ( id [ 57 ] ) . useStateFromStores ( items15 , ( ) = > outer1_23 . getMediaPostEmbeds ( ) ) ;
const obj16 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items16 = [ closure_20 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores6 = channel ( id [ 57 ] ) . useStateFromStores ( items16 , ( ) = > outer1_20 . getGuildTemplates ( ) , [ ] ) ;
const obj17 = channel ( id [ 57 ] ) ;
const items17 = [ guildId ] ;
const stateFromStores7 = channel ( id [ 57 ] ) . useStateFromStores ( items17 , ( ) = > guildId . getBuildOverrides ( ) , [ ] ) ;
const obj18 = channel ( id [ 57 ] ) ;
const codedLinksExperimentEmbeds = channel ( id [ 67 ] ) . useCodedLinksExperimentEmbeds ( ) ;
const obj19 = channel ( id [ 67 ] ) ;
quests = channel ( id [ 68 ] ) . useQuests ( { fetchPolicy : "cache-or-network" , callerSource : "messages_native" } ) ;
2026-07-20 16:05:17 +00:00
( { quests , isFetchingCurrentQuests } = quests ) ;
2026-07-23 10:11:24 +00:00
let found = stateFromStores . filter ( ( type ) = > type . type === outer1_61 . PREMIUM_REFERRAL ) ;
let mapped = found . map ( ( referralTrialOfferId ) = > referralTrialOfferId . referralTrialOfferId ) ;
_createForOfIteratorHelperLoose = mapped . filter ( channel ( id [ 61 ] ) . isNotNullish ) ;
const obj20 = channel ( id [ 68 ] ) ;
2026-07-20 16:05:17 +00:00
const items18 = [ closure_29 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStoresArray7 = channel ( id [ 57 ] ) . useStateFromStoresArray ( items18 , ( ) = > {
2026-07-20 16:05:17 +00:00
const mapped = store . map ( ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
const relevantUserTrialOffer = outer2_29 . getRelevantUserTrialOffer ( arg0 ) ;
2026-07-20 16:05:17 +00:00
let id ;
if ( null != relevantUserTrialOffer ) {
id = relevantUserTrialOffer . id ;
}
return id ;
} ) ;
return mapped . filter ( channel ( id [ 61 ] ) . isNotNullish ) ;
} ) ;
2026-07-23 10:11:24 +00:00
const obj21 = channel ( id [ 57 ] ) ;
const trialOffer = channel ( id [ 69 ] ) . useTrialOffer ( closure_63 ) ;
const obj22 = channel ( id [ 69 ] ) ;
2026-07-20 16:05:17 +00:00
const items19 = [ closure_53 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores8 = channel ( id [ 57 ] ) . useStateFromStores ( items19 , ( ) = > stateFromStores ( id [ 70 ] ) . isPremiumExactly ( outer1_53 . getCurrentUser ( ) , outer1_64 . TIER_2 ) ) ;
const obj23 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items20 = [ closure_40 ] ;
const items21 = [ id ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores9 = channel ( id [ 57 ] ) . useStateFromStores ( items20 , ( ) = > outer1_40 . getEditingMessageId ( id ) , items21 ) ;
const obj24 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items22 = [ closure_31 ] ;
const items23 = [ id ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores10 = channel ( id [ 57 ] ) . useStateFromStores ( items22 , ( ) = > {
const pendingReply = outer1_31 . getPendingReply ( id ) ;
id = undefined ;
2026-07-20 16:05:17 +00:00
if ( null != pendingReply ) {
id = pendingReply . message . id ;
}
return id ;
} , items23 ) ;
2026-07-23 10:11:24 +00:00
const obj25 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items24 = [ closure_50 ] ;
const items25 = [ id ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores11 = channel ( id [ 57 ] ) . useStateFromStores ( items24 , ( ) = > outer1_50 . getOldestUnreadMessageId ( id ) , items25 ) ;
const obj26 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items26 = [ closure_44 ] ;
const items27 = [ guildId ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores12 = channel ( id [ 57 ] ) . useStateFromStores ( items26 , ( ) = > {
2026-07-20 16:05:17 +00:00
let canChatInGuildResult = null != guildId ;
if ( canChatInGuildResult ) {
2026-07-23 10:11:24 +00:00
canChatInGuildResult = outer1_44 . canChatInGuild ( guildId ) ;
2026-07-20 16:05:17 +00:00
}
return canChatInGuildResult ;
} , items27 ) ;
2026-07-23 10:11:24 +00:00
const obj27 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items28 = [ closure_47 ] ;
const items29 = [ channel ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores13 = channel ( id [ 57 ] ) . useStateFromStores ( items28 , ( ) = > outer1_47 . can ( outer1_62 . SEND_MESSAGES , channel ) , items29 ) ;
const obj28 = channel ( id [ 57 ] ) ;
const tmp44 = stateFromStores ( id [ 71 ] ) ( id ) ;
2026-07-20 16:05:17 +00:00
const items30 = [ closure_54 ] ;
const items31 = [ stateFromStores2 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores14 = channel ( id [ 57 ] ) . useStateFromStores ( items30 , ( ) = > outer1_54 . getUserVoiceChannelId ( outer1_60 , stateFromStores2 ) , items31 ) ;
const obj29 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items32 = [ closure_49 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores15 = channel ( id [ 57 ] ) . useStateFromStores ( items32 , ( ) = > outer1_49 . getChannelId ( ) , [ ] ) ;
const obj30 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items33 = [ closure_32 ] ;
const items34 = [ channel ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores16 = channel ( id [ 57 ] ) . useStateFromStores ( items33 , ( ) = > {
const THREADS = outer1_59 . THREADS ;
2026-07-20 16:05:17 +00:00
let message = null ;
if ( THREADS . has ( channel . type ) ) {
message = null ;
if ( null != channel . parent_id ) {
const obj = { } ;
( { parent_id : obj.channel_id , id : obj.message_id , guild_id : obj.guild_id } = channel ) ;
2026-07-23 10:11:24 +00:00
message = outer1_32 . getMessageByReference ( obj ) . message ;
2026-07-20 16:05:17 +00:00
}
}
return message ;
} , items34 ) ;
2026-07-23 10:11:24 +00:00
const obj31 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items35 = [ closure_41 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStoresObject1 = channel ( id [ 57 ] ) . useStateFromStoresObject ( items35 , ( ) = > ( { resolvingGiftCodes : outer1_41.getResolvingCodes ( ) , resolvedGiftCodes : outer1_41.getResolvedCodes ( ) , acceptingGiftCodes : outer1_41.getAcceptingCodes ( ) } ) , [ ] ) ;
2026-07-20 16:05:17 +00:00
( { resolvingGiftCodes , resolvedGiftCodes , acceptingGiftCodes } = stateFromStoresObject1 ) ;
2026-07-23 10:11:24 +00:00
const obj32 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items36 = [ closure_11 ] ;
const items37 = [ id ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores17 = channel ( id [ 57 ] ) . useStateFromStores ( items36 , ( ) = > outer1_11 . getParticipants ( id ) . length , items37 ) ;
const obj33 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items38 = [ closure_52 ] ;
const items39 = [ id ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores18 = channel ( id [ 57 ] ) . useStateFromStores ( items38 , ( ) = > outer1_52 . getFiles ( id ) , items39 ) ;
const obj34 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items40 = [ closure_32 ] ;
const items41 = [ id ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores19 = channel ( id [ 57 ] ) . useStateFromStores ( items40 , ( ) = > outer1_32 . getReplyIdsForChannel ( id ) , items41 ) ;
const obj35 = channel ( id [ 57 ] ) ;
const items42 = [ stateFromStores2 ] ;
const stateFromStoresObject2 = channel ( id [ 57 ] ) . useStateFromStoresObject ( items42 , ( ) = > ( { useReducedMotion : stateFromStores2.useReducedMotion , roleStyle : stateFromStores2.roleStyle , officialMessageStyle : stateFromStores2.officialMessageStyle , saturation : stateFromStores2.saturation , displayNameStylesEnabled : stateFromStores2.displayNameStylesEnabled } ) , [ ] ) ;
2026-07-20 16:05:17 +00:00
( { useReducedMotion , roleStyle , officialMessageStyle , saturation , displayNameStylesEnabled } = stateFromStoresObject2 ) ;
2026-07-23 10:11:24 +00:00
const obj36 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items43 = [ closure_35 ] ;
const items44 = [ id ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores20 = channel ( id [ 57 ] ) . useStateFromStores ( items43 , ( ) = > outer1_35 . getChannelThreadsVersion ( id ) , items44 ) ;
const obj37 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items45 = [ closure_22 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStoresObject3 = channel ( id [ 57 ] ) . useStateFromStoresObject ( items45 , ( ) = > outer1_22 . getMessageInteractionStates ( ) ) ;
const obj38 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items46 = [ closure_21 ] ;
2026-07-23 10:11:24 +00:00
const obj39 = channel ( id [ 57 ] ) ;
[ tmp56 , tmp57 ] = guildId ( channel ( id [ 57 ] ) . useStateFromStores ( items46 , ( ) = > {
const items = [ outer1_21 . getInteractionComponentStates ( ) , outer1_21 . getInteractionComponentStateVersion ( ) ] ;
2026-07-20 16:05:17 +00:00
return items ;
2026-07-23 10:11:24 +00:00
} , [ ] , channel ( id [ 72 ] ) . isVersionEqual ) , 2 ) ;
const tmp55 = guildId ( channel ( id [ 57 ] ) . useStateFromStores ( items46 , ( ) = > {
const items = [ outer1_21 . getInteractionComponentStates ( ) , outer1_21 . getInteractionComponentStateVersion ( ) ] ;
2026-07-20 16:05:17 +00:00
return items ;
2026-07-23 10:11:24 +00:00
} , [ ] , channel ( id [ 72 ] ) . isVersionEqual ) , 2 ) ;
2026-07-20 16:05:17 +00:00
const items47 = [ closure_14 ] ;
2026-07-23 10:11:24 +00:00
let stateFromStores21 = channel ( id [ 57 ] ) . useStateFromStores ( items47 , ( ) = > outer1_14 . hasLoadedExperiments ) ;
const obj40 = channel ( id [ 57 ] ) ;
const isSpamMessageRequest = channel ( id [ 73 ] ) . useIsSpamMessageRequest ( channel . id ) ;
const obj41 = channel ( id [ 73 ] ) ;
2026-07-20 16:05:17 +00:00
let tmp61 = null != stateFromStores ;
2026-07-23 10:11:24 +00:00
const isMessageRequest = channel ( id [ 74 ] ) . useIsMessageRequest ( channel . id ) ;
2026-07-20 16:05:17 +00:00
if ( tmp61 ) {
tmp61 = stateFromStores . ready || stateFromStores . cached ;
const tmp62 = stateFromStores . ready || stateFromStores . cached ;
}
2026-07-23 10:11:24 +00:00
const obj42 = channel ( id [ 74 ] ) ;
2026-07-20 16:05:17 +00:00
const tmp63 = null != stateFromStores && stateFromStores . cached ;
const tmp64 = null != stateFromStores && stateFromStores . ready && ! stateFromStores . loadingMore ;
const items48 = [ closure_19 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores22 = channel ( id [ 57 ] ) . useStateFromStores ( items48 , ( ) = > outer1_19 . getRsvpVersion ( ) ) ;
const obj43 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items49 = [ closure_18 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores23 = channel ( id [ 57 ] ) . useStateFromStores ( items49 , ( ) = > outer1_18 . getMessagesVersion ( ) ) ;
const obj44 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items50 = [ closure_42 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores24 = channel ( id [ 57 ] ) . useStateFromStores ( items50 , ( ) = > outer1_42 . getCommunicationDisabledVersion ( ) ) ;
const obj45 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items51 = [ closure_42 ] ;
const items52 = [ guildId , stateFromStores ] ;
2026-07-23 10:11:24 +00:00
const stateFromStoresObject4 = channel ( id [ 57 ] ) . useStateFromStoresObject ( items51 , ( ) = > {
2026-07-20 16:05:17 +00:00
if ( null != guildId ) {
if ( null != stateFromStores ) {
const obj = { } ;
const item = stateFromStores . forEach ( ( author ) = > {
author = author . author ;
let id ;
if ( null != author ) {
id = author . id ;
}
if ( null != id ) {
2026-07-23 10:11:24 +00:00
const member = outer2_42 . getMember ( outer1_3 , author . author . id ) ;
2026-07-20 16:05:17 +00:00
if ( null != member ) {
obj [ author . author . id ] = member ;
}
}
} ) ;
return obj ;
}
}
return { } ;
} , items52 ) ;
2026-07-23 10:11:24 +00:00
const obj46 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items53 = [ closure_47 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores25 = channel ( id [ 57 ] ) . useStateFromStores ( items53 , ( ) = > outer1_47 . can ( outer1_62 . MODERATE_MEMBERS , stateFromStores1 ) ) ;
const obj47 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
id = undefined ;
if ( null != stateFromStores1 ) {
id = stateFromStores1 . id ;
}
2026-07-23 10:11:24 +00:00
const obj48 = channel ( id [ 75 ] ) ;
2026-07-20 16:05:17 +00:00
const items54 = [ closure_36 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores26 = channel ( id [ 57 ] ) . useStateFromStores ( items54 , ( ) = > outer1_36 . locale ) ;
const obj49 = channel ( id [ 57 ] ) ;
const isPaymentsBlocked = channel ( id [ 76 ] ) . useIsPaymentsBlocked ( ) ;
const obj50 = channel ( id [ 76 ] ) ;
2026-07-20 16:05:17 +00:00
const items55 = [ closure_34 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores27 = channel ( id [ 57 ] ) . useStateFromStores ( items55 , ( ) = > {
2026-07-20 16:05:17 +00:00
const tmp = ! channel . isForumPost ( ) ;
let hasJoinedResult = ! tmp ;
if ( ! tmp ) {
2026-07-23 10:11:24 +00:00
hasJoinedResult = outer1_34 . hasJoined ( id ) ;
2026-07-20 16:05:17 +00:00
}
return hasJoinedResult ;
} ) ;
2026-07-23 10:11:24 +00:00
const obj51 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items56 = [ closure_24 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores28 = channel ( id [ 57 ] ) . useStateFromStores ( items56 , ( ) = > outer1_24 . shouldDisplayPrompt ( id ) ) ;
const obj52 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items57 = [ closure_30 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores29 = channel ( id [ 57 ] ) . useStateFromStores ( items57 , ( ) = > outer1_30 . isEligible ( ) ) ;
const obj53 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items58 = [ closure_10 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores30 = channel ( id [ 57 ] ) . useStateFromStores ( items58 , ( ) = > outer1_10 . getLazyCacheStatus ( ) ) ;
const obj54 = channel ( id [ 57 ] ) ;
const messageJumpAndroidKeyboardHeight = channel ( id [ 77 ] ) . useMessageJumpAndroidKeyboardHeight ( ) ;
const obj55 = channel ( id [ 77 ] ) ;
const tmp78 = stateFromStores ( id [ 78 ] ) ( ) ;
channelSummariesExperiment = channel ( id [ 79 ] ) . useChannelSummariesExperiment ( channel ) ;
const obj56 = channel ( id [ 79 ] ) ;
2026-07-20 16:05:17 +00:00
const items59 = [ closure_33 ] ;
const items60 = [ channelSummariesExperiment , channel . id ] ;
const items61 = [ channel . id , , , , ] ;
( { hasMoreAfter : arr65 [ 1 ] , hasMoreBefore : arr65 [ 2 ] , length : arr65 [ 3 ] , ready : arr65 [ 4 ] } = stateFromStores ) ;
2026-07-23 10:11:24 +00:00
const stateFromStores31 = channel ( id [ 57 ] ) . useStateFromStores ( items59 , ( ) = > {
2026-07-20 16:05:17 +00:00
let selectedSummaryResult = null ;
if ( channelSummariesExperiment ) {
2026-07-23 10:11:24 +00:00
selectedSummaryResult = outer1_33 . selectedSummary ( channel . id ) ;
2026-07-20 16:05:17 +00:00
}
return selectedSummaryResult ;
} , items60 ) ;
2026-07-23 10:11:24 +00:00
let effect = stateFromStores1 . useEffect ( ( ) = > {
2026-07-20 16:05:17 +00:00
let hasMoreAfter = ! stateFromStores . ready ;
if ( ! hasMoreAfter ) {
hasMoreAfter = 0 !== stateFromStores . length ;
}
if ( ! hasMoreAfter ) {
hasMoreAfter = stateFromStores . hasMoreBefore ;
}
if ( ! hasMoreAfter ) {
hasMoreAfter = stateFromStores . hasMoreAfter ;
}
if ( ! hasMoreAfter ) {
const obj = stateFromStores ( id [ 80 ] ) ;
const _Date = Date ;
const result = obj . updateChannelDimensions ( channel . id , Date . now ( ) , 1 , 1 , 0 ) ;
}
} , items61 ) ;
2026-07-23 10:11:24 +00:00
const obj57 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
obj = { guild : stateFromStores1 , channel , messages : stateFromStores , isMessagesReady : tmp61 } ;
2026-07-23 10:11:24 +00:00
const shouldTrackAnnouncementMessageViews = channel ( id [ 81 ] ) . useShouldTrackAnnouncementMessageViews ( obj ) ;
const obj58 = channel ( id [ 81 ] ) ;
2026-07-20 16:05:17 +00:00
obj = { messages : stateFromStores , isMessagesReady : tmp61 } ;
2026-07-23 10:11:24 +00:00
const shouldTrackRichPresenceInviteEmbedViews = channel ( id [ 81 ] ) . useShouldTrackRichPresenceInviteEmbedViews ( obj ) ;
const obj60 = channel ( id [ 81 ] ) ;
2026-07-20 16:05:17 +00:00
obj1 = { guild : stateFromStores1 , messages : stateFromStores , isMessagesReady : tmp61 } ;
2026-07-23 10:11:24 +00:00
const shouldTrackOfficialMessageViews = channel ( id [ 81 ] ) . useShouldTrackOfficialMessageViews ( obj1 ) ;
const obj62 = channel ( id [ 81 ] ) ;
2026-07-20 16:05:17 +00:00
obj2 = { messages : stateFromStores , isMessagesReady : tmp61 } ;
2026-07-23 10:11:24 +00:00
const shouldTrackVoiceInviteEmbedViews = channel ( id [ 81 ] ) . useShouldTrackVoiceInviteEmbedViews ( obj2 ) ;
const obj64 = channel ( id [ 81 ] ) ;
const shouldDisplaySpoilerObscurity = channel ( id [ 82 ] ) . useShouldDisplaySpoilerObscurity ( channel ) ;
const obj66 = channel ( id [ 82 ] ) ;
2026-07-20 16:05:17 +00:00
const items62 = [ id , guildId ] ;
2026-07-23 10:11:24 +00:00
const isAgeVerified = channel ( id [ 83 ] ) . useIsAgeVerified ( ) ;
const effect1 = stateFromStores1 . useEffect ( ( ) = > {
2026-07-20 16:05:17 +00:00
stateFromStores ( id [ 84 ] ) . handleChannelSelect ( ) ;
return ( ) = > {
2026-07-23 10:11:24 +00:00
stateFromStores ( id [ 84 ] ) . handleChannelSelect ( ) ;
2026-07-20 16:05:17 +00:00
} ;
} , items62 ) ;
2026-07-23 10:11:24 +00:00
const obj67 = channel ( id [ 83 ] ) ;
const shouldDisableInteractiveComponents = channel ( id [ 85 ] ) . useShouldDisableInteractiveComponents ( channel . id ) ;
items63 = [ ] ;
const obj68 = channel ( id [ 85 ] ) ;
let item = stateFromStores . forEach ( ( messageReference ) = > {
2026-07-20 16:05:17 +00:00
messageReference = messageReference . messageReference ;
let message_id ;
if ( null != messageReference ) {
message_id = messageReference . message_id ;
}
if ( null != message_id ) {
items63 . push ( message_id ) ;
}
} ) ;
2026-07-23 10:11:24 +00:00
const tmp90 = callback ( channel . id ) ;
const tmp92 = callback2 ( items63 ) ;
2026-07-20 16:05:17 +00:00
const items64 = [ closure_15 ] ;
const items65 = [ id ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores32 = channel ( id [ 57 ] ) . useStateFromStores ( items64 , ( ) = > outer1_15 . getChannelFpInfo ( id ) , items65 ) ;
const obj69 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items66 = [ closure_26 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores33 = channel ( id [ 57 ] ) . useStateFromStores ( items66 , ( ) = > outer1_26 . getPendingConnection ( ) ) ;
const obj70 = channel ( id [ 57 ] ) ;
const tmp95 = stateFromStores ( id [ 86 ] ) ( ) ;
( { unloadedContentEntryMessageIds , unloadableContentEntryMessageIds } = stateFromStores ( id [ 87 ] ) ( stateFromStores ) ) ;
const tmp96 = stateFromStores ( id [ 87 ] ) ( stateFromStores ) ;
2026-07-20 16:05:17 +00:00
const items67 = [ closure_53 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores34 = channel ( id [ 57 ] ) . useStateFromStores ( items67 , ( ) = > {
const currentUser = outer1_53 . getCurrentUser ( ) ;
2026-07-20 16:05:17 +00:00
let isStaffResult ;
if ( null != currentUser ) {
isStaffResult = currentUser . isStaff ( ) ;
}
return null != isStaffResult && isStaffResult ;
} ) ;
2026-07-23 10:11:24 +00:00
const obj71 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items68 = [ closure_17 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores35 = channel ( id [ 57 ] ) . useStateFromStores ( items68 , ( ) = > outer1_17 . getVersion ( ) ) ;
const obj72 = channel ( id [ 57 ] ) ;
const colorStore = channel ( id [ 88 ] ) . useColorStore ( ( palette ) = > Object . keys ( palette . palette ) . length ) ;
const obj73 = channel ( id [ 88 ] ) ;
2026-07-20 16:05:17 +00:00
const items69 = [ closure_13 ] ;
2026-07-23 10:11:24 +00:00
guildId = channel ( id [ 57 ] ) . useStateFromStores ( items69 , ( ) = > outer1_13 . getGuildEmoji ( guildId ) ) ;
const obj74 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items70 = [ closure_54 ] ;
const items71 = [ guildId ] ;
2026-07-23 10:11:24 +00:00
guildId = channel ( id [ 57 ] ) . useStateFromStores ( items70 , ( ) = > {
2026-07-20 16:05:17 +00:00
if ( null == guildId ) {
return null ;
} else {
2026-07-23 10:11:24 +00:00
const voiceStates = outer1_54 . getVoiceStates ( guildId ) ;
2026-07-20 16:05:17 +00:00
return channel ( id [ 89 ] ) . getVoiceStateChannelSummaryFromVoiceStates ( voiceStates ) ;
}
} , items71 ) ;
2026-07-23 10:11:24 +00:00
const obj75 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items72 = [ closure_57 , closure_12 , closure_45 , closure_39 ] ;
2026-07-23 10:11:24 +00:00
guildId = channel ( id [ 57 ] ) . useStateFromStoresObject ( items72 , ( ) = > {
2026-07-20 16:05:17 +00:00
let iter3 ;
const obj = { } ;
2026-07-23 10:11:24 +00:00
const invites = outer1_45 . getInvites ( ) ;
const tmp = outer1_67 ( invites . values ( ) ) ;
2026-07-20 16:05:17 +00:00
const iter = tmp ( ) ;
let iter2 = iter ;
if ( ! iter . done ) {
do {
let value = iter2 . value ;
let channel = value . channel ;
let id ;
if ( null != channel ) {
id = channel . id ;
}
let tmp6 = tmp2 ;
let tmp7 = tmp3 ;
let tmp8 = tmp4 ;
if ( null != id ) {
2026-07-23 10:11:24 +00:00
let tmp15 = channel ;
let tmp16 = id ;
let obj4 = channel ( id [ 90 ] ) ;
2026-07-20 16:05:17 +00:00
tmp6 = tmp2 ;
tmp7 = tmp3 ;
tmp8 = tmp4 ;
if ( obj4 . isVoiceChannelInvite ( value ) ) {
id = value . channel . id ;
let guild = value . guild ;
let id1 ;
if ( null != guild ) {
id1 = guild . id ;
}
2026-07-23 10:11:24 +00:00
let tmp10 = outer1_57 ;
let voiceStatesForChannelAlt = outer1_57 . getVoiceStatesForChannelAlt ( id , id1 ) ;
2026-07-20 16:05:17 +00:00
let mapped = voiceStatesForChannelAlt . map ( ( voiceState ) = > {
let str = "" ;
if ( voiceState . voiceState . selfStream ) {
str = "*" ;
}
return "" + str + voiceState . user . id ;
} ) ;
2026-07-23 10:11:24 +00:00
let tmp12 = outer1_12 ;
let tmp13 = outer1_39 ;
2026-07-20 16:05:17 +00:00
let joined = mapped . join ( "," ) ;
2026-07-23 10:11:24 +00:00
let startTime = outer1_12 . getStartTime ( outer1_39 . getChannel ( id ) ) ;
2026-07-20 16:05:17 +00:00
let str = "" ;
if ( null != startTime ) {
str = startTime ;
}
let _HermesInternal = HermesInternal ;
obj [ id ] = "" + joined + ":" + str ;
tmp6 = guild ;
tmp7 = id ;
tmp8 = startTime ;
}
}
iter3 = tmp ( ) ;
2026-07-23 10:11:24 +00:00
tmp2 = tmp6 ;
tmp3 = tmp7 ;
tmp4 = tmp8 ;
2026-07-20 16:05:17 +00:00
iter2 = iter3 ;
} while ( ! iter3 . done ) ;
}
return obj ;
} ) ;
2026-07-23 10:11:24 +00:00
const obj76 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items73 = [ closure_51 ] ;
2026-07-23 10:11:24 +00:00
guildId = channel ( id [ 57 ] ) . useStateFromStoresArray ( items73 , ( ) = > {
const items = [ . . . outer1_51 . getRemoteActivities ( ) , . . . outer1_51 . getHiddenActivities ( ) ] ;
2026-07-20 16:05:17 +00:00
return items . filter ( channel ( id [ 61 ] ) . isNotNullish ) ;
} ) ;
2026-07-23 10:11:24 +00:00
const obj77 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items74 = [ closure_56 ] ;
2026-07-23 10:11:24 +00:00
guildId = channel ( id [ 57 ] ) . useStateFromStoresObject ( items74 , ( ) = > guildId . reduce ( ( arg0 , application_id ) = > {
2026-07-20 16:05:17 +00:00
if ( null == application_id . application_id ) {
return arg0 ;
} else {
2026-07-23 10:11:24 +00:00
const state = outer2_56 . getState ( application_id . application_id , outer2_58 . JOIN ) ;
2026-07-20 16:05:17 +00:00
if ( null != state ) {
arg0 [ application_id . application_id ] = state ;
}
return arg0 ;
}
} , { } ) ) ;
2026-07-23 10:11:24 +00:00
const obj78 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items75 = [ closure_25 ] ;
2026-07-23 10:11:24 +00:00
guildId = channel ( id [ 57 ] ) . useStateFromStoresArray ( items75 , ( ) = > {
const items = [ outer1_25 . getNewestTokens ( ) , outer1_25 . getApplicationFetchStateVersion ( ) ] ;
2026-07-20 16:05:17 +00:00
return items ;
} , [ ] ) ;
2026-07-23 10:11:24 +00:00
const obj79 = channel ( id [ 57 ] ) ;
2026-07-20 16:05:17 +00:00
const items76 = [ closure_53 ] ;
2026-07-23 10:11:24 +00:00
guildId = channel ( id [ 57 ] ) . useStateFromStores ( items76 , ( ) = > {
const currentUser = outer1_53 . getCurrentUser ( ) ;
2026-07-20 16:05:17 +00:00
let displayNameStyles ;
if ( null != currentUser ) {
displayNameStyles = currentUser . displayNameStyles ;
}
return displayNameStyles ;
} ) ;
2026-07-23 10:11:24 +00:00
const obj80 = channel ( id [ 57 ] ) ;
guildId = channel ( id [ 91 ] ) . useFetchSocialLayerStorefrontProductDetailsEmbedData ( stateFromStores ) ;
2026-07-20 16:05:17 +00:00
guildId = closure_66 ;
obj3 = { } ;
2026-07-23 10:11:24 +00:00
guildId = stateFromStores ( id [ 92 ] ) ;
obj3 . profile = channel ( id [ 92 ] ) . Profiles . Messages ;
2026-07-20 16:05:17 +00:00
guildId = channel . isThread ( ) ;
if ( guildId ) {
2026-07-23 10:11:24 +00:00
guildId = callback3 ;
guildId = stateFromStores ;
guildId = id ;
2026-07-20 16:05:17 +00:00
obj4 = { absolute : true } ;
2026-07-23 10:11:24 +00:00
guildId = callback3 ( stateFromStores ( id [ 93 ] ) , obj4 ) ;
2026-07-20 16:05:17 +00:00
}
const items77 = [ guildId , ] ;
2026-07-23 10:11:24 +00:00
guildId = callback3 ;
2026-07-20 16:05:17 +00:00
obj5 = { ref , theme : stateFromStores3 , saturation , isVisualRefreshEnabled : tmp15 , isStaff : stateFromStores34 , animateEmoji : setting5 , animateStickers : setting6 , containerWidth : tmp95 , gifAutoPlay : setting7 , timestampHourCycle : setting8 , inlineAttachmentMedia : setting , inlineEmbedMedia : setting1 , renderEmbeds : setting2 , renderReactions : setting3 , developerMode : setting4 , roleStyle , officialMessageStyle , guildId , currentUserId : stateFromStores2 , channelId : id , isMessagesReady : tmp61 , isMessagesCached : tmp63 , isMessagesAckable : tmp64 , isMessageRequest , isSpamMessageRequest , messageAuthorActivities : tmp17 , invites : stateFromStores4 , appDirectoryEmbedApplications , invalidAppDirectoryEmbedApplicationIds , invalidApplicationIds : stateFromStoresArray , applicationAssetFetchingIds : stateFromStoresArray1 , messages : stateFromStores , messagesWithActivitiesLaunching : stateFromStoresArray6 , activityInstanceIds : stateFromStoresArray3 , activityParticipants : stateFromStoresArray5 , activityInstancePresenceDetails : stateFromStoresArray4 , appDirectoryEmbedApplicationFetchStates , mediaPostPreviewEmbeds : stateFromStores5 , guildTemplates : stateFromStores6 , buildOverrides : stateFromStores7 , fetchingSkuIds : stateFromStoresArray2 , experimentEmbeds : codedLinksExperimentEmbeds , quests , isFetchingCurrentQuests , editingMessageId : stateFromStores9 , replyingMessageId : stateFromStores10 , oldestUnreadMessageId : stateFromStores11 , canChat : stateFromStores12 , canSendMessages : stateFromStores13 , isCallActive : tmp44 , voiceStatePrivateChannelId : stateFromStores14 , currentClientVoiceChannelId : stateFromStores15 , voiceStateChannelIdSummaryForGuild : guildId , resolvingGiftCodes , resolvedGiftCodes , acceptingGiftCodes , participantsLength : stateFromStores17 , uploads : stateFromStores18 , repliedIds : stateFromStores19 , useReducedMotion , displayNameStylesEnabled , channelThreadsVersion : stateFromStores20 , rsvpVersion : stateFromStores22 , failedMessagesVersion : stateFromStores23 , communicationDisabledVersion : stateFromStores24 , messageAuthorMembers : stateFromStoresObject4 , forwardGuildsVersion : stateFromStores35 , interactionStates : stateFromStoresObject3 , interactionComponentStates : tmp56 , interactionComponentStatesVersion : tmp57 } ;
2026-07-23 10:11:24 +00:00
guildId = stateFromStores ( id [ 94 ] ) ;
2026-07-20 16:05:17 +00:00
if ( stateFromStores21 ) {
stateFromStores21 = tmp61 ;
}
obj5 . hasLoadedExperiments = stateFromStores21 ;
obj5 . guildSystemChannelFlags = systemChannelFlags ;
2026-07-23 10:11:24 +00:00
obj5 . currentUserCommunicationDisabled = guildId ( obj48 . useCurrentUserCommunicationDisabled ( id ) , 2 ) [ 1 ] ;
2026-07-20 16:05:17 +00:00
obj5 . renderCommunicationDisabled = stateFromStores25 ;
obj5 . userSettingsLocale = stateFromStores26 ;
obj5 . paymentsBlocked = isPaymentsBlocked ;
obj5 . isFollowingForumPost = stateFromStores27 ;
obj5 . showMediaPostSharePrompt = stateFromStores28 ;
obj5 . showPushFeedback = stateFromStores29 ;
obj5 . cacheStoreLoaded = "initializing" !== stateFromStores30 ;
obj5 . androidKeyboardHeight = messageJumpAndroidKeyboardHeight ;
obj5 . selectedSummary = stateFromStores31 ;
obj5 . keyboardType = tmp78 ;
obj5 . shouldTrackAnnouncementMessageViews = shouldTrackAnnouncementMessageViews ;
obj5 . shouldTrackRichPresenceInviteEmbedViews = shouldTrackRichPresenceInviteEmbedViews ;
obj5 . shouldTrackOfficialMessageViews = shouldTrackOfficialMessageViews ;
obj5 . shouldTrackVoiceInviteEmbedViews = shouldTrackVoiceInviteEmbedViews ;
obj5 . shouldObscureSpoiler = shouldDisplaySpoilerObscurity ;
obj5 . shouldDisableInteractiveComponents = shouldDisableInteractiveComponents ;
obj5 . channelPolls = tmp90 ;
obj5 . messageReferencePolls = tmp92 ;
obj5 . explicitMediaFalsePositiveInfo = stateFromStores32 ;
obj5 . familyCenterPendingConnection = stateFromStores33 ;
obj5 . threadStartingReferenceMessage = stateFromStores16 ;
obj5 . unloadedContentEntryMessageIds = unloadedContentEntryMessageIds ;
obj5 . unloadableContentEntryMessageIds = unloadableContentEntryMessageIds ;
obj5 . resolvedReferralTrialOfferIds = stateFromStoresArray7 ;
guildId = undefined ;
if ( null != trialOffer ) {
guildId = trialOffer . id ;
}
obj5 . referralTrialOfferId = guildId ;
obj5 . isPremiumTier2User = stateFromStores8 ;
2026-07-21 22:01:30 +00:00
obj5 . activityInviteMessageIds = tmp20 [ 0 ] ;
2026-07-20 16:05:17 +00:00
obj5 . guildInviteColorsFetched = colorStore ;
obj5 . isAgeVerified = isAgeVerified ;
obj5 . guildEmojis = guildId ;
obj5 . enableSwipeActions = isMessageSwipeActionsEnabled ;
obj5 . selfActivities = guildId ;
obj5 . activityLaunchJoinStates = guildId ;
obj5 . authorizedAppsTokens = guildId ;
obj5 . currentUserDisplayNameStyles = guildId ;
obj5 . voiceInviteDataByChannelId = guildId ;
guildId = undefined ;
if ( null != stateFromStores1 ) {
guildId = stateFromStores1 . officialMessageColor ;
}
guildId = undefined ;
obj5 . officialMessageColor = guildId ;
guildId = Object . assign ( channel ) ;
items77 [ 1 ] = guildId ( guildId , obj5 ) ;
obj3 . children = items77 ;
return guildId ( guildId , obj3 ) ;
} ) ;
forwardRefResult . displayName = "MessagesConnected" ;
2026-07-23 10:11:24 +00:00
let result = require ( "_isNativeReflectConstruct" ) . fileFinishedImporting ( "modules/messages/native/Messages.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default forwardRefResult ;