2026-07-23 10:11:24 +00:00
// Module ID: 5039
// Function ID: 43473
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 1352, 1348, 1838, 4142, 1906, 5040, 3760, 1355, 21, 4345, 5041, 686, 22, 566, 2]
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
// Module 5039 (_isNativeReflectConstruct)
import _isNativeReflectConstruct from "_isNativeReflectConstruct" ;
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose" ;
import getThreadLastActivityTime from "getThreadLastActivityTime" ;
import apply from "apply" ;
import initialize from "initialize" ;
import _callSuper from "_callSuper" ;
import closure_10 from "_isNativeReflectConstruct" ;
import closure_11 from "_createForOfIteratorHelperLoose" ;
import closure_12 from "_isNativeReflectConstruct" ;
import closure_13 from "_isNativeReflectConstruct" ;
import closure_14 from "_isNativeReflectConstruct" ;
import closure_15 from "_isNativeReflectConstruct" ;
import { ChannelFlags } from "set" ;
let closure_8 ;
let closure_9 ;
const require = arg1 ;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = ! valueOf . call ( Reflect . construct ( Boolean , [ ] , ( ) = > {
} ) ) ;
function _isNativeReflectConstruct() {
return closure_0 ;
}
const result = _isNativeReflectConstruct ( ) ;
}
2026-07-23 10:11:24 +00:00
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 ;
}
function rebuild() {
let closure_17 = { } ;
let closure_21 = { } ;
let closure_18 = { } ;
let closure_19 = { } ;
let closure_20 = { } ;
const channelId = store3 . getChannelId ( ) ;
for ( const key10012 in closure_24 ) {
let tmp3 = key10012 ;
let _clearTimeout = clearTimeout ;
2026-07-23 10:11:24 +00:00
let tmp4 = dependencyMap7 ;
let clearTimeoutResult = clearTimeout ( dependencyMap7 [ key10012 ] ) ;
continue ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const dependencyMap7 = { } ;
2026-07-20 16:05:17 +00:00
closure_14 . forEachGuild ( ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
outer1_35 ( arg0 ) ;
2026-07-20 16:05:17 +00:00
} ) ;
rebuildNewThreadCounts ( ) ;
}
2026-07-23 10:11:24 +00:00
function rebuildGuild ( guild_id ) {
delete tmp [ tmp2 ] ;
delete tmp [ tmp2 ] ;
delete tmp [ tmp2 ] ;
delete tmp [ tmp2 ] ;
delete tmp [ tmp2 ] ;
rebuildGuild_ ( guild_id ) ;
2026-07-20 16:05:17 +00:00
for ( const key10012 in closure_19 [ arg0 ] ) {
2026-07-23 10:11:24 +00:00
let tmp4 = key10012 ;
let tmp5 = recountParent ;
let tmp6 = recountParent ( arg0 , key10012 ) ;
continue ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
function rebuildGuild_ ( guild_id ) {
2026-07-20 16:05:17 +00:00
let isTimedRelevant ;
let isUnread ;
2026-07-23 10:11:24 +00:00
const threadsForGuild = closure_14 . getThreadsForGuild ( guild_id ) ;
2026-07-20 16:05:17 +00:00
const keys = Object . keys ( ) ;
if ( keys !== undefined ) {
while ( keys [ tmp2 ] !== undefined ) {
let tmp63 = tmp17 ;
let tmp35 = tmp4 ;
let tmp36 = tmp5 ;
let tmp37 = tmp6 ;
let tmp38 = tmp7 ;
let tmp39 = tmp8 ;
let tmp40 = tmp9 ;
let keys1 = Object . keys ( ) ;
if ( keys1 === undefined ) {
continue ;
} else {
2026-07-23 10:11:24 +00:00
tmp4 = tmp35 ;
tmp5 = tmp36 ;
tmp6 = tmp37 ;
tmp7 = tmp38 ;
tmp8 = tmp39 ;
tmp9 = tmp40 ;
2026-07-20 16:05:17 +00:00
let tmp21 = keys1 [ tmp ] ;
while ( tmp21 !== undefined ) {
let tmp65 = tmp21 ;
let tmp66 = clearTimer ;
let tmp67 = clearTimer ( tmp21 ) ;
let tmp68 = store ;
let channel = store . getChannel ( tmp21 ) ;
tmp35 = tmp21 ;
tmp36 = channel ;
if ( null == channel ) {
continue ;
} else {
let tmp22 = closure_15 ;
let joinTimestampResult = closure_15 . joinTimestamp ( tmp21 ) ;
if ( null != joinTimestampResult ) {
let obj = { channel , joinTimestamp : joinTimestampResult.getTime ( ) } ;
let tmp41 = parseThreadState ;
let tmp42 = parseThreadState ( channel ) ;
( { isUnread , isTimedRelevant } = tmp42 ) ;
let tmp44 = closure_17 ;
let tmp45 = channel ;
let tmp46 = obj ;
let flag3 = false ;
let tmp43 = updateIn ;
let tmp47 = updateIn ( closure_17 , channel , obj , false ) ;
let tmp48 = closure_21 ;
let tmp49 = null ;
if ( tmp42 . isRelevant ) {
tmp49 = obj ;
}
let tmp50 = tmp48 ;
let tmp51 = channel ;
let tmp52 = tmp49 ;
let flag4 = false ;
let tmp43Result = tmp43 ( tmp48 , channel , tmp49 , false ) ;
let tmp55 = closure_18 ;
let tmp56 = null ;
let tmp54 = updateIn ;
if ( isUnread ) {
tmp56 = obj ;
}
let tmp57 = tmp55 ;
let tmp58 = channel ;
let tmp59 = tmp56 ;
let flag5 = false ;
let tmp54Result = tmp54 ( tmp55 , channel , tmp56 , false ) ;
tmp35 = tmp21 ;
tmp36 = channel ;
tmp37 = joinTimestampResult ;
tmp38 = obj ;
tmp39 = isUnread ;
tmp40 = isTimedRelevant ;
if ( ! isTimedRelevant ) {
continue ;
} else {
let tmp61 = syncTimer ;
let tmp62 = syncTimer ( channel , true ) ;
tmp35 = tmp21 ;
tmp36 = channel ;
tmp37 = joinTimestampResult ;
tmp38 = obj ;
tmp39 = isUnread ;
tmp40 = isTimedRelevant ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
continue ;
} else {
let tmp24 = closure_19 ;
let tmp25 = channel ;
let tmp26 = channel ;
let flag = false ;
let tmp23 = updateIn ;
let tmp27 = updateIn ( closure_19 , channel , channel , false ) ;
let tmp28 = store2 ;
let tmp29 = closure_20 ;
let tmp30 = null ;
if ( store2 . isForumPostUnread ( channel . id ) ) {
tmp30 = channel ;
}
let tmp31 = tmp29 ;
let tmp32 = channel ;
let tmp33 = tmp30 ;
let flag2 = false ;
let tmp23Result = tmp23 ( tmp29 , channel , tmp30 , false ) ;
tmp35 = tmp21 ;
tmp36 = channel ;
tmp37 = joinTimestampResult ;
tmp38 = tmp18 ;
tmp39 = tmp19 ;
tmp40 = tmp20 ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
continue ;
}
continue ;
}
}
continue ;
}
}
}
function rebuildNewThreadCounts() {
let closure_22 = { } ;
for ( const key10004 in closure_19 ) {
let tmp3 = key10004 ;
2026-07-23 10:11:24 +00:00
let tmp4 = dependencyMap3 ;
2026-07-20 16:05:17 +00:00
let keys = Object . keys ( ) ;
if ( keys === undefined ) {
continue ;
} else {
let tmp2 = keys [ tmp ] ;
while ( tmp2 !== undefined ) {
let tmp6 = tmp2 ;
2026-07-23 10:11:24 +00:00
let tmp7 = recountParent ;
let tmp8 = recountParent ( key10004 , tmp2 ) ;
continue ;
2026-07-20 16:05:17 +00:00
}
}
continue ;
}
}
2026-07-23 10:11:24 +00:00
function recountChannelId ( channelId ) {
const basicChannel = store . getBasicChannel ( channelId ) ;
2026-07-20 16:05:17 +00:00
let hasItem = null != basicChannel ;
if ( hasItem ) {
hasItem = set . has ( basicChannel . type ) ;
}
if ( hasItem ) {
recountParent ( basicChannel . guild_id , basicChannel . id ) ;
}
}
function recountParent ( guild_id , id ) {
const channel = store . getChannel ( id ) ;
if ( null != channel ) {
if ( channel . isForumLikeChannel ( ) ) {
2026-07-23 10:11:24 +00:00
if ( null == dependencyMap6 [ guild_id ] ) {
dependencyMap6 [ guild_id ] = { } ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
dependencyMap6 [ guild_id ] [ id ] = 0 ;
if ( null != dependencyMap3 [ guild_id ] ) {
if ( null != dependencyMap3 [ guild_id ] [ id ] ) {
guild = guild . getGuild ( guild_id ) ;
2026-07-20 16:05:17 +00:00
if ( null != guild ) {
let trackedAckMessageId = store2 . getTrackedAckMessageId ( id ) ;
if ( null == trackedAckMessageId ) {
const _Date3 = Date ;
let timestamp = Date . now ( ) ;
if ( null == guild . joinedAt ) {
2026-07-23 10:11:24 +00:00
trackedAckMessageId = importDefault ( 21 ) . fromTimestamp ( timestamp ) ;
const obj3 = importDefault ( 21 ) ;
2026-07-20 16:05:17 +00:00
} else {
const _Date = Date ;
const joinedAt = guild . joinedAt ;
if ( guild . joinedAt instanceof Date ) {
timestamp = joinedAt . getTime ( ) ;
} else if ( "string" === typeof joinedAt ) {
const _Date2 = Date ;
const date = new Date ( guild . joinedAt ) ;
timestamp = date . getTime ( ) ;
}
}
}
for ( const key10046 in closure_19 [ arg0 ] [ arg1 ] ) {
let tmp29 = key10046 ;
2026-07-23 10:11:24 +00:00
let tmp30 = c23 ;
if ( arg1 === c23 ) {
let tmp20 = store2 ;
if ( ! store2 . isNewForumThread ( key10046 , arg1 , guild ) ) {
2026-07-20 16:05:17 +00:00
continue ;
} else {
2026-07-23 10:11:24 +00:00
let tmp21 = dependencyMap6 ;
let tmp22 = dependencyMap6 [ arg0 ] ;
2026-07-20 16:05:17 +00:00
tmp22 [ arg1 ] = tmp22 [ arg1 ] + 1 ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
continue ;
} else {
2026-07-23 10:11:24 +00:00
let tmp14 = importDefault ;
let tmp15 = dependencyMap ;
let obj4 = importDefault ( 21 ) ;
2026-07-20 16:05:17 +00:00
let tmp16 = obj4 . compare ( key10046 , trackedAckMessageId ) > 0 ;
if ( tmp16 ) {
2026-07-23 10:11:24 +00:00
let tmp17 = store2 ;
tmp16 = ! store2 . hasOpenedThread ( key10046 ) ;
2026-07-20 16:05:17 +00:00
}
if ( ! tmp16 ) {
continue ;
} else {
2026-07-23 10:11:24 +00:00
let tmp18 = dependencyMap6 ;
let tmp19 = dependencyMap6 [ arg0 ] ;
2026-07-20 16:05:17 +00:00
tmp19 [ arg1 ] = tmp19 [ arg1 ] + 1 ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
continue ;
}
continue ;
}
}
}
}
}
}
}
function updateThread ( guild_id , parent_id , id ) {
let isRelevant ;
let isUnread ;
if ( null == parent_id ) {
return false ;
} else {
const channel = store . getChannel ( id ) ;
let isTimedRelevant = closure_15 . joinTimestamp ( id ) ;
if ( null != channel ) {
if ( closure_14 . isActive ( guild_id , parent_id , id ) ) {
if ( null != isTimedRelevant ) {
const obj = { channel , joinTimestamp : isTimedRelevant.getTime ( ) } ;
const tmp40 = parseThreadState ( channel ) ;
isTimedRelevant = tmp40 . isTimedRelevant ;
( { isUnread , isRelevant } = tmp40 ) ;
updateIn ( closure_17 , channel , obj , true ) ;
let tmp47 = null ;
if ( isRelevant ) {
tmp47 = obj ;
}
updateIn ( closure_21 , channel , tmp47 , true ) ;
let tmp54 = null ;
if ( isUnread ) {
tmp54 = obj ;
}
updateIn ( closure_18 , channel , tmp54 , true ) ;
updateIn ( closure_19 , channel , null , true ) ;
updateIn ( closure_20 , channel , null , true ) ;
syncTimer ( channel , isTimedRelevant ) ;
const tmp41 = updateIn ;
const tmp52 = updateIn ;
} else {
updateIn ( closure_17 , channel , null , true ) ;
updateIn ( closure_18 , channel , null , true ) ;
updateIn ( closure_21 , channel , null , true ) ;
updateIn ( closure_19 , channel , channel , true ) ;
let tmp32 = null ;
if ( isForumPostUnreadResult ) {
tmp32 = channel ;
}
updateIn ( closure_20 , channel , tmp32 , true ) ;
clearTimer ( channel . id ) ;
2026-07-23 10:11:24 +00:00
isForumPostUnreadResult = store2 . isForumPostUnread ( channel . id ) ;
2026-07-20 16:05:17 +00:00
const tmp76 = updateIn ;
}
recountParent ( guild_id , parent_id ) ;
}
}
deleteIn ( closure_17 , guild_id , parent_id , id ) ;
deleteIn ( closure_21 , guild_id , parent_id , id ) ;
deleteIn ( closure_18 , guild_id , parent_id , id ) ;
deleteIn ( closure_19 , guild_id , parent_id , id ) ;
deleteIn ( closure_20 , guild_id , parent_id , id ) ;
clearTimer ( id ) ;
recountParent ( guild_id , parent_id ) ;
}
}
function handleThreadUpdate ( channel ) {
return updateThread ( channel . channel . guild_id , channel . channel . parent_id , channel . channel . id ) ;
}
function anyThreadsNSFW ( guild_id , parent_id ) {
if ( null == parent_id ) {
return false ;
} else {
let tmp = null ;
2026-07-23 10:11:24 +00:00
if ( null != dependencyMap [ guild_id ] ) {
2026-07-20 16:05:17 +00:00
tmp = tmp10 [ parent_id ] ;
}
if ( null != tmp ) {
for ( const key10008 in tmp ) {
let tmp11 = key10008 ;
2026-07-23 10:11:24 +00:00
let tmp12 = require ;
let tmp13 = dependencyMap ;
let obj = require ( 4345 ) /* shouldAgeVerifyForAgeGate */ ;
2026-07-20 16:05:17 +00:00
if ( ! obj . isChannelContentGated ( tmp [ key10008 ] . channel ) ) {
continue ;
} else {
let flag = true ;
return true ;
}
}
}
let tmp5 = null ;
2026-07-23 10:11:24 +00:00
if ( null != dependencyMap3 [ guild_id ] ) {
2026-07-20 16:05:17 +00:00
tmp5 = tmp4 [ parent_id ] ;
}
if ( null != tmp5 ) {
const keys = Object . keys ( ) ;
if ( keys !== undefined ) {
while ( keys [ 14 ] !== undefined ) {
let tmp14 = tmp8 ;
2026-07-23 10:11:24 +00:00
let tmp15 = require ;
2026-07-20 16:05:17 +00:00
let tmp16 = dependencyMap ;
2026-07-23 10:11:24 +00:00
let obj2 = require ( 4345 ) /* shouldAgeVerifyForAgeGate */ ;
2026-07-20 16:05:17 +00:00
if ( ! obj2 . isChannelContentGated ( tmp5 [ tmp8 ] ) ) {
continue ;
} else {
let flag2 = true ;
return true ;
}
}
}
}
return false ;
}
}
function handleThreadMemberUpdate ( id ) {
const channel = store . getChannel ( id . id ) ;
let tmp2 = null == channel ;
if ( ! tmp2 ) {
tmp2 = ! closure_14 . isActive ( id . guildId , channel . parent_id , id . id ) ;
}
let tmp4 = ! tmp2 ;
if ( ! tmp2 ) {
tmp4 = updateThread ( channel . guild_id , channel . parent_id , channel . id ) ;
}
return tmp4 ;
}
function handleReadStateChannelAction ( channelId ) {
let guild_id ;
let isRelevant ;
let isUnread ;
let parent_id ;
const channel = store . getChannel ( channelId . channelId ) ;
if ( null == channel ) {
rebuildReadStates ( ) ;
} else {
( { guild_id , parent_id } = channel ) ;
if ( set2 . has ( channel . type ) ) {
if ( null == parent_id ) {
return false ;
2026-07-23 10:11:24 +00:00
} else if ( exists ( dependencyMap , channel ) ) {
2026-07-20 16:05:17 +00:00
const tmp21 = parseThreadState ( channel ) ;
( { isUnread , isRelevant } = tmp21 ) ;
syncTimer ( channel , tmp21 . isTimedRelevant ) ;
if ( isUnread === tmp26 ) {
if ( isRelevant === exists ( closure_21 , channel ) ) {
return false ;
}
}
let tmp30 = null ;
if ( isRelevant ) {
tmp30 = tmp29 ;
}
let tmp33 = null ;
if ( isUnread ) {
tmp33 = tmp29 ;
}
updateIn ( closure_18 , channel , tmp33 , true ) ;
updateIn ( closure_21 , channel , tmp30 , true ) ;
recountParent ( guild_id , parent_id ) ;
2026-07-23 10:11:24 +00:00
tmp26 = exists ( closure_18 , channel ) ;
2026-07-20 16:05:17 +00:00
const tmp31 = updateIn ;
} else {
const isForumPostUnreadResult = store2 . isForumPostUnread ( channel . id ) ;
if ( isForumPostUnreadResult === tmp10 ) {
return false ;
} else {
let tmp15 = null ;
if ( isForumPostUnreadResult ) {
tmp15 = channel ;
}
updateIn ( closure_20 , channel , tmp15 , true ) ;
const tmp13 = updateIn ;
}
2026-07-23 10:11:24 +00:00
tmp10 = exists ( closure_20 , channel ) ;
2026-07-20 16:05:17 +00:00
}
} else {
let tmp5 ;
2026-07-23 10:11:24 +00:00
if ( null != dependencyMap6 [ guild_id ] ) {
2026-07-20 16:05:17 +00:00
tmp5 = tmp4 [ channel . id ] ;
}
let flag = Number ( tmp5 ) > 0 ;
if ( flag ) {
recountParent ( guild_id , channel . id ) ;
flag = true ;
}
return flag ;
}
}
}
function rebuildReadStates() {
let isRelevant ;
let isTimedRelevant ;
let closure_18 = { } ;
let closure_21 = { } ;
const keys = Object . keys ( ) ;
if ( keys !== undefined ) {
while ( keys [ tmp2 ] !== undefined ) {
let tmp52 = tmp12 ;
2026-07-23 10:11:24 +00:00
let tmp53 = dependencyMap ;
2026-07-20 16:05:17 +00:00
let tmp20 = tmp3 ;
let tmp17 = tmp4 ;
let tmp18 = tmp5 ;
let tmp19 = tmp6 ;
let keys1 = Object . keys ( ) ;
if ( keys1 === undefined ) {
continue ;
} else {
2026-07-23 10:11:24 +00:00
tmp3 = tmp20 ;
2026-07-20 16:05:17 +00:00
let tmp13 = tmp17 ;
let tmp14 = tmp18 ;
let tmp15 = tmp19 ;
2026-07-23 10:11:24 +00:00
tmp4 = tmp17 ;
tmp5 = tmp18 ;
tmp6 = tmp19 ;
2026-07-20 16:05:17 +00:00
let tmp16 = keys1 [ tmp ] ;
while ( tmp16 !== undefined ) {
let tmp55 = tmp16 ;
2026-07-23 10:11:24 +00:00
let tmp56 = dependencyMap ;
2026-07-20 16:05:17 +00:00
tmp20 = tmp16 ;
let tmp32 = tmp17 ;
isRelevant = tmp18 ;
let tmp33 = tmp19 ;
let keys2 = Object . keys ( ) ;
if ( keys2 === undefined ) {
continue ;
} else {
tmp17 = tmp32 ;
tmp18 = isRelevant ;
tmp19 = tmp33 ;
tmp20 = tmp16 ;
let tmp21 = keys2 [ tmp4 ] ;
while ( tmp21 !== undefined ) {
let tmp58 = tmp21 ;
2026-07-23 10:11:24 +00:00
let tmp59 = dependencyMap ;
let tmp60 = dependencyMap [ tmp12 ] [ tmp16 ] [ tmp21 ] ;
2026-07-20 16:05:17 +00:00
let tmp61 = parseThreadState ;
let tmp62 = parseThreadState ( tmp60 . channel ) ;
( { isRelevant , isTimedRelevant } = tmp62 ) ;
if ( tmp62 . isUnread ) {
let tmp22 = updateIn ;
let tmp23 = closure_18 ;
let tmp24 = tmp60 ;
let flag = false ;
let tmp25 = updateIn ( closure_18 , tmp60 . channel , tmp60 , false ) ;
}
if ( isRelevant ) {
let tmp26 = updateIn ;
let tmp27 = closure_21 ;
let tmp28 = tmp60 ;
let flag2 = false ;
let tmp29 = updateIn ( closure_21 , tmp60 . channel , tmp60 , false ) ;
}
let tmp30 = syncTimer ;
let tmp31 = syncTimer ( tmp60 . channel , isTimedRelevant ) ;
tmp32 = tmp60 ;
tmp33 = isTimedRelevant ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
}
continue ;
}
}
continue ;
}
}
let closure_20 = { } ;
const keys3 = Object . keys ( ) ;
if ( keys3 !== undefined ) {
while ( keys3 [ tmp12 ] !== undefined ) {
let tmp63 = tmp39 ;
2026-07-23 10:11:24 +00:00
let tmp64 = dependencyMap3 ;
2026-07-20 16:05:17 +00:00
let tmp43 = tmp34 ;
let tmp42 = tmp35 ;
let keys4 = Object . keys ( ) ;
if ( keys4 === undefined ) {
continue ;
} else {
2026-07-23 10:11:24 +00:00
tmp34 = tmp43 ;
2026-07-20 16:05:17 +00:00
let tmp40 = tmp42 ;
2026-07-23 10:11:24 +00:00
tmp35 = tmp42 ;
2026-07-20 16:05:17 +00:00
let tmp41 = keys4 [ tmp16 ] ;
while ( tmp41 !== undefined ) {
let tmp66 = tmp41 ;
2026-07-23 10:11:24 +00:00
let tmp67 = dependencyMap3 ;
2026-07-20 16:05:17 +00:00
tmp43 = tmp41 ;
let tmp50 = tmp42 ;
let keys5 = Object . keys ( ) ;
if ( keys5 === undefined ) {
continue ;
} else {
tmp42 = tmp50 ;
tmp43 = tmp41 ;
let tmp44 = keys5 [ tmp37 ] ;
while ( tmp44 !== undefined ) {
let tmp69 = tmp44 ;
2026-07-23 10:11:24 +00:00
let tmp70 = dependencyMap3 ;
let tmp71 = dependencyMap3 [ tmp39 ] [ tmp41 ] [ tmp44 ] ;
2026-07-20 16:05:17 +00:00
let tmp72 = store2 ;
tmp50 = tmp71 ;
if ( ! store2 . isForumPostUnread ( tmp44 ) ) {
continue ;
} else {
let tmp45 = updateIn ;
let tmp46 = closure_20 ;
let tmp47 = tmp71 ;
let tmp48 = tmp71 ;
let flag3 = false ;
let tmp49 = updateIn ( closure_20 , tmp71 , tmp71 , false ) ;
tmp50 = tmp71 ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
continue ;
}
}
continue ;
}
}
continue ;
}
}
rebuildNewThreadCounts ( ) ;
}
function updateSelectedChannel() {
const channelId = store3 . getChannelId ( ) ;
2026-07-23 10:11:24 +00:00
if ( channelId === channelId ) {
2026-07-20 16:05:17 +00:00
return false ;
} else {
recountChannelId ( tmp ) ;
2026-07-23 10:11:24 +00:00
recountChannelId ( channelId ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
tmp = channelId ;
2026-07-20 16:05:17 +00:00
}
function parseThreadState ( channel ) {
const tmp = store2 . getMentionCount ( channel . id ) > 0 ;
let hasUnreadResult = store2 . hasUnread ( channel . id ) ;
if ( hasUnreadResult ) {
hasUnreadResult = ! closure_15 . isMuted ( channel . id ) ;
}
const hasFlagResult = channel . hasFlag ( ChannelFlags . PINNED ) ;
let isActiveThreadResult = channel . isActiveThread ( ) ;
let tmp6 = isActiveThreadResult ;
if ( isActiveThreadResult ) {
const _Date = Date ;
2026-07-23 10:11:24 +00:00
tmp6 = importDefault ( 5041 ) ( channel ) > Date . now ( ) ;
const tmp9 = importDefault ( 5041 ) ( channel ) ;
2026-07-20 16:05:17 +00:00
}
const obj = { } ;
if ( ! isActiveThreadResult ) {
isActiveThreadResult = hasFlagResult ;
}
if ( isActiveThreadResult ) {
isActiveThreadResult = hasUnreadResult ;
}
if ( ! isActiveThreadResult ) {
isActiveThreadResult = tmp ;
}
obj . isUnread = isActiveThreadResult ;
let tmp12 = tmp6 ;
if ( ! tmp6 ) {
tmp12 = hasFlagResult ;
}
if ( ! tmp12 ) {
tmp12 = hasUnreadResult ;
}
if ( ! tmp12 ) {
tmp12 = tmp ;
}
if ( ! tmp12 ) {
tmp12 = tmp11 ;
}
obj . isRelevant = tmp12 ;
obj . isTimedRelevant = tmp6 ;
return obj ;
}
function syncTimer ( channel , isTimedRelevant ) {
clearTimer ( channel . id ) ;
if ( isTimedRelevant ) {
2026-07-23 10:11:24 +00:00
( function setTimer ( channel_id , mute_config , arg2 ) {
let closure_0 = channel_id ;
outer1_24 [ channel_id . id ] = setTimeout ( ( ) = > {
const channel = outer2_10 . getChannel ( id . id ) ;
2026-07-20 16:05:17 +00:00
if ( null != channel ) {
2026-07-23 10:11:24 +00:00
let obj = outer2_1 ( outer2_2 [ 16 ] ) ;
2026-07-20 16:05:17 +00:00
obj = { type : "THREAD_UPDATE" , channel } ;
obj . dispatch ( obj ) ;
}
2026-07-23 10:11:24 +00:00
} , outer1_1 ( outer1_2 [ 15 ] ) ( channel_id ) - Date . now ( ) + 1 ) ;
} ) ( channel ) ;
2026-07-20 16:05:17 +00:00
}
}
function clearTimer ( id ) {
2026-07-23 10:11:24 +00:00
if ( id in dependencyMap7 ) {
2026-07-20 16:05:17 +00:00
const _clearTimeout = clearTimeout ;
2026-07-23 10:11:24 +00:00
clearTimeout ( dependencyMap7 [ id ] ) ;
delete tmp [ tmp2 ] ;
2026-07-20 16:05:17 +00:00
}
}
function updateIn ( closure_17 , channel , channel2 , arg3 ) {
let guild_id ;
let id ;
let parent_id ;
( { guild_id , parent_id , id } = channel ) ;
2026-07-23 10:11:24 +00:00
if ( tmp5 ) {
2026-07-20 16:05:17 +00:00
if ( ! ( guild_id in closure_17 ) ) {
closure_17 [ guild_id ] = { } ;
}
if ( ! ( parent_id in closure_17 [ guild_id ] ) ) {
closure_17 [ guild_id ] [ parent_id ] = { } ;
}
if ( arg3 ) {
let obj = { } ;
const merged = Object . assign ( closure_17 [ guild_id ] ) ;
obj = { } ;
const merged1 = Object . assign ( closure_17 [ guild_id ] [ parent_id ] ) ;
obj [ parent_id ] = obj ;
closure_17 [ guild_id ] = obj ;
}
if ( null === channel2 ) {
2026-07-23 10:11:24 +00:00
delete tmp3 [ tmp4 ] ;
2026-07-20 16:05:17 +00:00
if ( obj3 . isEmpty ( closure_17 [ guild_id ] [ parent_id ] ) ) {
2026-07-23 10:11:24 +00:00
delete tmp [ tmp2 ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj3 = importDefault ( 22 ) ;
2026-07-20 16:05:17 +00:00
} else {
closure_17 [ guild_id ] [ parent_id ] [ id ] = channel2 ;
}
}
}
function deleteIn ( closure_17 , guild_id , parent_id , id ) {
2026-07-23 10:11:24 +00:00
let tmp5 = null != guild_id && null != parent_id && null != id ;
if ( tmp5 ) {
tmp5 = existsIn ( closure_17 , guild_id , parent_id , id ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( tmp5 ) {
2026-07-20 16:05:17 +00:00
let obj = { } ;
const merged = Object . assign ( closure_17 [ guild_id ] ) ;
obj = { } ;
const merged1 = Object . assign ( closure_17 [ guild_id ] [ parent_id ] ) ;
obj [ parent_id ] = obj ;
closure_17 [ guild_id ] = obj ;
2026-07-23 10:11:24 +00:00
delete tmp3 [ tmp4 ] ;
2026-07-20 16:05:17 +00:00
if ( obj3 . isEmpty ( closure_17 [ guild_id ] [ parent_id ] ) ) {
2026-07-23 10:11:24 +00:00
delete tmp [ tmp2 ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj3 = importDefault ( 22 ) ;
2026-07-20 16:05:17 +00:00
}
}
function exists ( closure_17 , guild_id ) {
return existsIn ( closure_17 , guild_id . guild_id , guild_id . parent_id , guild_id . id ) ;
}
function existsIn ( closure_17 , guild_id , parent_id , id ) {
let tmp = guild_id in closure_17 && parent_id in closure_17 [ guild_id ] ;
if ( tmp ) {
tmp = id in closure_17 [ guild_id ] [ parent_id ] ;
}
return tmp ;
}
2026-07-23 10:11:24 +00:00
( { THREADED_CHANNEL_TYPES : closure_8 , THREAD_CHANNEL_TYPES : closure_9 } = _callSuper ) ;
2026-07-20 16:05:17 +00:00
let closure_17 = { } ;
let closure_18 = { } ;
let closure_19 = { } ;
let closure_20 = { } ;
let closure_21 = { } ;
let closure_22 = { } ;
2026-07-23 10:11:24 +00:00
let c23 = null ;
2026-07-20 16:05:17 +00:00
let closure_24 = { } ;
let obj = { } ;
let closure_26 = { } ;
let closure_27 = { } ;
let closure_28 = { } ;
let closure_29 = { } ;
2026-07-23 10:11:24 +00:00
let tmp3 = ( ( Store ) = > {
2026-07-20 16:05:17 +00:00
class ActiveJoinedThreadsStore {
constructor ( ) {
self = this ;
2026-07-23 10:11:24 +00:00
tmp = outer1_3 ( this , ActiveJoinedThreadsStore ) ;
obj = outer1_6 ( ActiveJoinedThreadsStore ) ;
tmp2 = outer1_5 ;
if ( outer1_30 ( ) ) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis ;
_Reflect = Reflect ;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_6 ;
2026-07-20 16:05:17 +00:00
tmp8 = arguments ;
2026-07-23 10:11:24 +00:00
constructResult = Reflect . construct ( obj , arguments , outer1_6 ( self ) . constructor ) ;
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments ;
tmp4 = arguments ;
constructResult = obj ( . . . arguments ) ;
}
return tmp2 ( self , constructResult ) ;
}
}
callback2 ( ActiveJoinedThreadsStore , Store ) ;
let obj = {
key : "initialize" ,
value() {
2026-07-23 10:11:24 +00:00
this . waitFor ( outer1_14 , outer1_10 , outer1_11 , outer1_15 , outer1_12 , outer1_13 ) ;
const items = [ outer1_13 ] ;
this . syncWith ( items , outer1_43 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
2026-07-23 10:11:24 +00:00
let items = [ obj , , , , , , , , , , , , , , , , ] ;
2026-07-20 16:05:17 +00:00
obj = {
key : "hasActiveJoinedUnreadThreads" ,
value ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
let tmp = arg0 in outer1_18 ;
2026-07-20 16:05:17 +00:00
if ( tmp ) {
2026-07-23 10:11:24 +00:00
tmp = arg1 in outer1_18 [ arg0 ] ;
2026-07-20 16:05:17 +00:00
}
return tmp ;
}
} ;
items [ 1 ] = obj ;
obj = {
key : "getActiveUnjoinedThreadsForParent" ,
value ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
if ( ! ( arg0 in outer1_19 ) ) {
const tmp3 = outer1_28 ;
2026-07-20 16:05:17 +00:00
}
return tmp3 ;
}
} ;
items [ 2 ] = obj ;
items [ 3 ] = {
key : "getActiveJoinedThreadsForParent" ,
value ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
if ( ! ( arg0 in outer1_17 ) ) {
const tmp3 = outer1_27 ;
2026-07-20 16:05:17 +00:00
}
return tmp3 ;
}
} ;
items [ 4 ] = {
key : "getAllActiveJoinedThreads" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_17 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 5 ] = {
key : "getActiveJoinedThreadsForGuild" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
let tmp = outer1_17 [ arg0 ] ;
2026-07-20 16:05:17 +00:00
if ( null == tmp ) {
2026-07-23 10:11:24 +00:00
tmp = outer1_25 ;
2026-07-20 16:05:17 +00:00
}
return tmp ;
}
} ;
items [ 6 ] = {
key : "getActiveJoinedUnreadThreadsForGuild" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
let tmp = outer1_18 [ arg0 ] ;
2026-07-20 16:05:17 +00:00
if ( null == tmp ) {
2026-07-23 10:11:24 +00:00
tmp = outer1_25 ;
2026-07-20 16:05:17 +00:00
}
return tmp ;
}
} ;
items [ 7 ] = {
key : "getActiveJoinedUnreadThreadsForParent" ,
value ( arg0 , arg1 ) {
let tmp = this . getActiveJoinedUnreadThreadsForGuild ( arg0 ) [ arg1 ] ;
if ( null == tmp ) {
2026-07-23 10:11:24 +00:00
tmp = outer1_27 ;
2026-07-20 16:05:17 +00:00
}
return tmp ;
}
} ;
items [ 8 ] = {
key : "getActiveJoinedRelevantThreadsForGuild" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
let tmp = outer1_21 [ arg0 ] ;
2026-07-20 16:05:17 +00:00
if ( null == tmp ) {
2026-07-23 10:11:24 +00:00
tmp = outer1_25 ;
2026-07-20 16:05:17 +00:00
}
return tmp ;
}
} ;
items [ 9 ] = {
key : "getActiveJoinedRelevantThreadsForParent" ,
value ( arg0 , arg1 ) {
let tmp = this . getActiveJoinedRelevantThreadsForGuild ( arg0 ) [ arg1 ] ;
if ( null == tmp ) {
2026-07-23 10:11:24 +00:00
tmp = outer1_27 ;
2026-07-20 16:05:17 +00:00
}
return tmp ;
}
} ;
items [ 10 ] = {
key : "getActiveUnjoinedThreadsForGuild" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
let tmp = outer1_19 [ arg0 ] ;
2026-07-20 16:05:17 +00:00
if ( null == tmp ) {
2026-07-23 10:11:24 +00:00
tmp = outer1_26 ;
2026-07-20 16:05:17 +00:00
}
return tmp ;
}
} ;
items [ 11 ] = {
key : "getActiveUnjoinedUnreadThreadsForGuild" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
let tmp = outer1_20 [ arg0 ] ;
2026-07-20 16:05:17 +00:00
if ( null == tmp ) {
2026-07-23 10:11:24 +00:00
tmp = outer1_25 ;
2026-07-20 16:05:17 +00:00
}
return tmp ;
}
} ;
items [ 12 ] = {
key : "getActiveUnjoinedUnreadThreadsForParent" ,
value ( arg0 , arg1 ) {
let tmp = this . getActiveUnjoinedUnreadThreadsForGuild ( arg0 ) [ arg1 ] ;
if ( null == tmp ) {
2026-07-23 10:11:24 +00:00
tmp = outer1_27 ;
2026-07-20 16:05:17 +00:00
}
return tmp ;
}
} ;
items [ 13 ] = {
key : "getNewThreadCountsForGuild" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
let tmp = outer1_22 [ arg0 ] ;
2026-07-20 16:05:17 +00:00
if ( null == tmp ) {
2026-07-23 10:11:24 +00:00
tmp = outer1_29 ;
2026-07-20 16:05:17 +00:00
}
return tmp ;
}
} ;
items [ 14 ] = {
key : "computeAllActiveJoinedThreads" ,
value ( arg0 ) {
const items = [ ] ;
const keys = Object . keys ( ) ;
if ( keys !== undefined ) {
while ( keys [ tmp2 ] !== undefined ) {
let tmp12 = tmp6 ;
if ( tmp6 === arg0 ) {
let tmp8 = tmp3 ;
2026-07-23 10:11:24 +00:00
let tmp7 = outer1_17 ;
2026-07-20 16:05:17 +00:00
let keys1 = Object . keys ( ) ;
if ( keys1 === undefined ) {
continue ;
} else {
2026-07-23 10:11:24 +00:00
tmp3 = tmp8 ;
2026-07-20 16:05:17 +00:00
let tmp10 = keys1 [ tmp ] ;
while ( tmp10 !== undefined ) {
let tmp13 = tmp10 ;
2026-07-23 10:11:24 +00:00
let tmp14 = outer1_17 ;
2026-07-20 16:05:17 +00:00
tmp8 = tmp10 ;
let keys2 = Object . keys ( ) ;
if ( keys2 === undefined ) {
continue ;
} else {
tmp8 = tmp10 ;
let tmp11 = keys2 [ tmp7 ] ;
while ( tmp11 !== undefined ) {
let tmp16 = tmp11 ;
2026-07-23 10:11:24 +00:00
let tmp17 = outer1_17 ;
let arr = items . push ( outer1_17 [ tmp6 ] [ tmp10 ] [ tmp11 ] . channel ) ;
continue ;
2026-07-20 16:05:17 +00:00
}
}
continue ;
}
}
continue ;
}
continue ;
}
}
return items ;
}
} ;
items [ 15 ] = {
key : "getNewThreadCount" ,
value ( arg0 , arg1 ) {
let tmp2 ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_22 [ arg0 ] ) {
2026-07-20 16:05:17 +00:00
tmp2 = tmp [ arg1 ] ;
}
let num = 0 ;
if ( null != tmp2 ) {
num = tmp2 ;
}
return num ;
}
} ;
items [ 16 ] = {
key : "getActiveThreadCount" ,
value ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
let obj = outer1_1 ( outer1_2 [ 17 ] ) ;
2026-07-20 16:05:17 +00:00
obj = undefined ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_17 [ arg0 ] ) {
2026-07-20 16:05:17 +00:00
obj = tmp [ arg1 ] ;
}
if ( null == obj ) {
obj = { } ;
}
const sizeResult = obj . size ( obj ) ;
obj = undefined ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_19 [ arg0 ] ) {
2026-07-20 16:05:17 +00:00
obj = tmp3 [ arg1 ] ;
}
if ( null == obj ) {
obj = { } ;
}
2026-07-23 10:11:24 +00:00
return sizeResult + outer1_1 ( outer1_2 [ 17 ] ) . size ( obj ) ;
2026-07-20 16:05:17 +00:00
}
} ;
return callback ( ActiveJoinedThreadsStore , items ) ;
2026-07-23 10:11:24 +00:00
} ) ( require ( "initialize" ) . Store ) ;
2026-07-20 16:05:17 +00:00
tmp3 . displayName = "ActiveJoinedThreadsStore" ;
obj = {
CONNECTION_OPEN : rebuild ,
OVERLAY_INITIALIZE : rebuild ,
THREAD_LIST_SYNC : function handleThreadListSync ( guildId ) {
rebuildGuild ( guildId . guildId ) ;
} ,
LOAD_THREADS_SUCCESS : rebuild ,
LOAD_ARCHIVED_THREADS_SUCCESS : rebuild ,
SEARCH_MESSAGES_SUCCESS : rebuild ,
MOD_VIEW_SEARCH_MESSAGES_SUCCESS : rebuild ,
GUILD_CREATE : function handleGuildCreate ( guild ) {
rebuildGuild ( guild . guild . id ) ;
} ,
GUILD_DELETE : rebuild ,
CURRENT_USER_UPDATE : rebuild ,
VOICE_CHANNEL_SELECT : function handleVoiceChannelSelect ( channelId ) {
const channel = store . getChannel ( channelId . channelId ) ;
if ( null != channel ) {
if ( channel . isThread ( ) ) {
updateThread ( channel . guild_id , channel . parent_id , channel . id ) ;
}
}
return false ;
} ,
THREAD_CREATE : handleThreadUpdate ,
THREAD_UPDATE : handleThreadUpdate ,
THREAD_DELETE : handleThreadUpdate ,
CHANNEL_UPDATES : function handleChannelUpdates ( channels ) {
const tmp = _createForOfIteratorHelperLoose ( channels . channels ) ;
let iter = tmp ( ) ;
if ( ! iter . done ) {
const value = iter . value ;
2026-07-23 10:11:24 +00:00
const result = require ( 4345 ) /* shouldAgeVerifyForAgeGate */ . isChannelContentGated ( value ) ;
2026-07-20 16:05:17 +00:00
while ( result === anyThreadsNSFW ( value . guild_id , value . parent_id ) ) {
let iter2 = tmp ( ) ;
iter = iter2 ;
}
rebuild ( ) ;
}
return false ;
} ,
CHANNEL_DELETE : function handleChannelDelete ( channel ) {
channel = channel . channel ;
let flag = false ;
2026-07-23 10:11:24 +00:00
if ( tmp3 ) {
let tmp5 = channel . guild_id in dependencyMap ;
if ( tmp5 ) {
tmp5 = channel . parent_id in dependencyMap [ channel . guild_id ] ;
2026-07-20 16:05:17 +00:00
}
let flag2 = false ;
2026-07-23 10:11:24 +00:00
if ( tmp5 ) {
2026-07-20 16:05:17 +00:00
const parent_id = channel . parent_id ;
2026-07-23 10:11:24 +00:00
delete tmp2 [ tmp ] ;
2026-07-20 16:05:17 +00:00
flag2 = true ;
}
2026-07-23 10:11:24 +00:00
let tmp10 = channel . guild_id in dependencyMap2 ;
if ( tmp10 ) {
tmp10 = channel . parent_id in dependencyMap2 [ channel . guild_id ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( tmp10 ) {
2026-07-20 16:05:17 +00:00
const parent_id2 = channel . parent_id ;
2026-07-23 10:11:24 +00:00
delete tmp2 [ tmp ] ;
2026-07-20 16:05:17 +00:00
flag2 = true ;
}
2026-07-23 10:11:24 +00:00
let tmp15 = channel . guild_id in dependencyMap5 ;
if ( tmp15 ) {
tmp15 = channel . parent_id in dependencyMap5 [ channel . guild_id ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( tmp15 ) {
const keys = importDefault ( 21 ) . keys ( dependencyMap5 [ channel . guild_id ] [ channel . parent_id ] ) ;
2026-07-20 16:05:17 +00:00
const item = keys . forEach ( clearTimer ) ;
const parent_id3 = channel . parent_id ;
2026-07-23 10:11:24 +00:00
delete tmp2 [ tmp ] ;
2026-07-20 16:05:17 +00:00
flag2 = true ;
2026-07-23 10:11:24 +00:00
const obj = importDefault ( 21 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let tmp25 = channel . guild_id in dependencyMap3 ;
if ( tmp25 ) {
tmp25 = channel . parent_id in dependencyMap3 [ channel . guild_id ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( tmp25 ) {
2026-07-20 16:05:17 +00:00
const parent_id4 = channel . parent_id ;
2026-07-23 10:11:24 +00:00
delete tmp2 [ tmp ] ;
2026-07-20 16:05:17 +00:00
flag2 = true ;
}
2026-07-23 10:11:24 +00:00
let tmp30 = channel . guild_id in dependencyMap4 ;
if ( tmp30 ) {
tmp30 = channel . parent_id in dependencyMap4 [ channel . guild_id ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( tmp30 ) {
2026-07-20 16:05:17 +00:00
const parent_id5 = channel . parent_id ;
2026-07-23 10:11:24 +00:00
delete tmp2 [ tmp ] ;
2026-07-20 16:05:17 +00:00
flag2 = true ;
}
flag = flag2 ;
if ( flag2 ) {
recountParent ( channel . guild_id , channel . parent_id ) ;
flag = flag2 ;
}
}
return flag ;
} ,
THREAD_MEMBER_UPDATE : handleThreadMemberUpdate ,
THREAD_MEMBERS_UPDATE : handleThreadMemberUpdate ,
LOAD_MESSAGES_SUCCESS : handleReadStateChannelAction ,
MESSAGE_CREATE : handleReadStateChannelAction ,
MESSAGE_DELETE : handleReadStateChannelAction ,
MESSAGE_DELETE_BULK : handleReadStateChannelAction ,
MESSAGE_ACK : handleReadStateChannelAction ,
CHANNEL_ACK : handleReadStateChannelAction ,
CHANNEL_LOCAL_ACK : handleReadStateChannelAction ,
CHANNEL_SELECT : function handleChannelSelect ( channelId ) {
handleReadStateChannelAction ( channelId ) ;
updateSelectedChannel ( ) ;
} ,
PASSIVE_UPDATE_V2 : function handlePassiveUpdateV2 ( channels ) {
if ( channels . channels . length > 0 ) {
rebuildGuild ( channels . guildId ) ;
}
} ,
WINDOW_FOCUS : rebuildReadStates ,
UPDATE_CHANNEL_DIMENSIONS : function handleUpdateChannelDimensions ( channelId ) {
const channel = store . getChannel ( channelId . channelId ) ;
const tmp = null == channel || ! channel . isThread ( ) ;
let tmp2 = ! tmp ;
if ( ! tmp ) {
tmp2 = updateThread ( channel . guild_id , channel . parent_id , channel . id ) ;
}
return tmp2 ;
} ,
TRY_ACK : rebuildReadStates ,
BULK_ACK : rebuildReadStates
} ;
2026-07-23 10:11:24 +00:00
tmp3 = new tmp3 ( require ( "dispatcher" ) , obj ) ;
let result = require ( "_possibleConstructorReturn" ) . fileFinishedImporting ( "modules/threads/ActiveJoinedThreadsStore.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default tmp3 ;
export const NO_GUILD_JOINED_THREADS = obj ;