2026-07-27 11:26:19 +00:00
// Module ID: 12690
// Function ID: 98472
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-25 08:10:48 +00:00
// Dependencies: [6, 7, 15, 17, 18, 5892, 5590, 3768, 1850, 566, 686, 2]
2026-07-23 10:11:24 +00:00
2026-07-27 11:26:19 +00:00
// Module 12690 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct" ;
import closure_1 from "_isNativeReflectConstruct" ;
import _possibleConstructorReturn from "_possibleConstructorReturn" ;
import _getPrototypeOf from "_getPrototypeOf" ;
import _inherits from "_inherits" ;
import closure_5 from "_isNativeReflectConstruct" ;
import closure_6 from "_isNativeReflectConstruct" ;
import closure_7 from "_isNativeReflectConstruct" ;
import closure_8 from "_isNativeReflectConstruct" ;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
let _isNativeReflectConstruct = ! valueOf . call ( Reflect . construct ( Boolean , [ ] , ( ) = > {
2026-07-20 16:05:17 +00:00
} ) ) ;
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
return _isNativeReflectConstruct ;
2026-07-20 16:05:17 +00:00
}
const result = _isNativeReflectConstruct ( ) ;
}
2026-07-23 10:11:24 +00:00
function _createForOfIteratorHelperLoose ( iterable ) {
let _isNativeReflectConstruct = 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
_isNativeReflectConstruct = 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 ;
}
let closure_9 = [ ] ;
2026-07-23 10:11:24 +00:00
let c10 = false ;
let tmp2 = ( ( PersistedStore ) = > {
2026-07-20 16:05:17 +00:00
class FriendGroupsStore {
constructor ( ) {
self = this ;
tmp = FriendGroupsStore ( this , FriendGroupsStore ) ;
2026-07-23 10:11:24 +00:00
obj = outer1_3 ( FriendGroupsStore ) ;
tmp2 = outer1_2 ;
if ( outer1_11 ( ) ) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis ;
_Reflect = Reflect ;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_3 ;
2026-07-20 16:05:17 +00:00
tmp8 = arguments ;
2026-07-23 10:11:24 +00:00
constructResult = Reflect . construct ( obj , arguments , outer1_3 ( self ) . constructor ) ;
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments ;
tmp4 = arguments ;
constructResult = obj ( . . . arguments ) ;
}
return tmp2 ( self , constructResult ) ;
}
}
callback2 ( FriendGroupsStore , PersistedStore ) ;
let obj = {
key : "initialize" ,
value ( groups ) {
2026-07-23 10:11:24 +00:00
this . waitFor ( outer1_6 , outer1_7 , outer1_5 , outer1_8 ) ;
2026-07-20 16:05:17 +00:00
if ( null != groups ) {
groups = groups . groups ;
if ( null == groups ) {
groups = [ ] ;
}
2026-07-23 10:11:24 +00:00
const outer1_9 = groups ;
2026-07-20 16:05:17 +00:00
const isInitialized = groups . isInitialized ;
2026-07-23 10:11:24 +00:00
const outer1_10 = null != isInitialized && isInitialized ;
2026-07-20 16:05:17 +00:00
}
}
} ;
const items = [ obj , , , , , , , ] ;
obj = {
key : "getGroups" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_9 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 1 ] = obj ;
obj = {
key : "getGroup" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
let _isNativeReflectConstruct = arg0 ;
const found = outer1_9 . find ( ( id ) = > id . id === _isNativeReflectConstruct ) ;
2026-07-20 16:05:17 +00:00
let tmp2 = null ;
if ( null != found ) {
tmp2 = found ;
}
return tmp2 ;
}
} ;
items [ 2 ] = obj ;
items [ 3 ] = {
key : "getGroupIds" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_9 . map ( ( id ) = > id . id ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 4 ] = {
key : "getUserGroups" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
let _isNativeReflectConstruct = arg0 ;
return outer1_9 . filter ( ( userIds ) = > {
2026-07-20 16:05:17 +00:00
userIds = userIds . userIds ;
2026-07-23 10:11:24 +00:00
return userIds . includes ( _isNativeReflectConstruct ) ;
2026-07-20 16:05:17 +00:00
} ) ;
}
} ;
items [ 5 ] = {
key : "isGroupEmpty" ,
value ( arg0 ) {
const group = this . getGroup ( arg0 ) ;
let tmp2 = null == group ;
if ( ! tmp2 ) {
tmp2 = 0 === group . userIds . length ;
}
return tmp2 ;
}
} ;
items [ 6 ] = {
key : "isInitialized" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_10 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 7 ] = {
key : "getState" ,
value() {
2026-07-23 10:11:24 +00:00
return { groups : outer1_9 , isInitialized : outer1_10 } ;
2026-07-20 16:05:17 +00:00
}
} ;
return callback ( FriendGroupsStore , items ) ;
2026-07-23 10:11:24 +00:00
} ) ( require ( "initialize" ) . PersistedStore ) ;
2026-07-20 16:05:17 +00:00
tmp2 . displayName = "FriendGroupsStore" ;
tmp2 . persistKey = "FriendGroupsStoreV2" ;
2026-07-23 10:11:24 +00:00
tmp2 = new tmp2 ( require ( "dispatcher" ) , {
2026-07-20 16:05:17 +00:00
POST_CONNECTION_OPEN : function handleInitializeFriendGroups() {
2026-07-23 10:11:24 +00:00
if ( ! c10 ) {
2026-07-20 16:05:17 +00:00
if ( arr . length <= 0 ) {
2026-07-23 10:11:24 +00:00
arr = [ ] ;
c10 = true ;
2026-07-20 16:05:17 +00:00
}
}
return false ;
} ,
CREATE_FRIEND_GROUP : function handleCreateFriendGroup ( groupId ) {
groupId = groupId . groupId ;
let flag = ! arr . some ( ( id ) = > id . id === groupId ) ;
if ( flag ) {
const obj = { id : groupId , name : groupId.name , userIds : [ ] } ;
2026-07-23 10:11:24 +00:00
arr = arr . push ( obj ) ;
2026-07-20 16:05:17 +00:00
flag = true ;
}
return flag ;
} ,
UPDATE_FRIEND_GROUP : function handleUpdateFriendGroup ( groupId ) {
groupId = groupId . groupId ;
const findIndexResult = arr . findIndex ( ( id ) = > id . id === groupId ) ;
let flag = - 1 !== findIndexResult ;
if ( flag ) {
const obj = { } ;
const merged = Object . assign ( arr [ findIndexResult ] ) ;
obj [ "name" ] = groupId . name ;
arr [ findIndexResult ] = obj ;
flag = true ;
}
return flag ;
} ,
DELETE_FRIEND_GROUP : function handleDeleteFriendGroup ( groupId ) {
groupId = groupId . groupId ;
2026-07-23 10:11:24 +00:00
found = found . filter ( ( id ) = > id . id !== groupId ) ;
2026-07-20 16:05:17 +00:00
return found . length !== found . length ;
} ,
REORDER_FRIEND_GROUPS : function handleReorderFriendGroups ( groupIds ) {
let iter2 ;
2026-07-23 10:11:24 +00:00
let items = [ ] ;
2026-07-20 16:05:17 +00:00
const tmp = _createForOfIteratorHelperLoose ( groupIds . groupIds ) ;
let iter = tmp ( ) ;
if ( ! iter . done ) {
do {
let value = map . get ( iter . value ) ;
if ( null != value ) {
let arr = items . push ( value ) ;
}
iter2 = tmp ( ) ;
iter = iter2 ;
} while ( ! iter2 . done ) ;
}
2026-07-23 10:11:24 +00:00
let flag = items . length === items . length ;
2026-07-20 16:05:17 +00:00
if ( flag ) {
flag = true ;
}
return flag ;
} ,
ADD_USERS_TO_GROUP : function handleAddUsersToGroup ( arg0 ) {
2026-07-23 10:11:24 +00:00
let _isNativeReflectConstruct ;
2026-07-20 16:05:17 +00:00
let userIds ;
2026-07-23 10:11:24 +00:00
( { groupId : _isNativeReflectConstruct , userIds } = arg0 ) ;
let set ;
const findIndexResult = arr . findIndex ( ( id ) = > id . id === _isNativeReflectConstruct ) ;
2026-07-20 16:05:17 +00:00
if ( - 1 === findIndexResult ) {
return false ;
} else {
const _Set = Set ;
2026-07-23 10:11:24 +00:00
set = new Set ( tmp11 . userIds ) ;
2026-07-20 16:05:17 +00:00
const found = userIds . filter ( ( arg0 ) = > ! set . has ( arg0 ) ) ;
let flag = 0 !== found . length ;
if ( flag ) {
const obj = { } ;
const merged = Object . assign ( tmp11 ) ;
const items = [ ] ;
HermesBuiltin . arraySpread ( found , HermesBuiltin . arraySpread ( tmp11 . userIds , 0 ) ) ;
obj [ "userIds" ] = items ;
arr [ findIndexResult ] = obj ;
flag = true ;
}
return flag ;
}
} ,
REMOVE_USERS_FROM_GROUP : function handleRemoveUsersFromGroup ( arg0 ) {
2026-07-23 10:11:24 +00:00
let _isNativeReflectConstruct ;
2026-07-20 16:05:17 +00:00
let userIds ;
2026-07-23 10:11:24 +00:00
( { groupId : _isNativeReflectConstruct , userIds } = arg0 ) ;
let set ;
const findIndexResult = arr . findIndex ( ( id ) = > id . id === _isNativeReflectConstruct ) ;
2026-07-20 16:05:17 +00:00
if ( - 1 === findIndexResult ) {
return false ;
} else {
const _Set = Set ;
2026-07-23 10:11:24 +00:00
set = new Set ( userIds ) ;
2026-07-20 16:05:17 +00:00
userIds = tmp7 . userIds ;
const found = userIds . filter ( ( arg0 ) = > ! set . has ( arg0 ) ) ;
let flag = found . length !== tmp7 . userIds . length ;
if ( flag ) {
const obj = { } ;
const merged = Object . assign ( tmp7 ) ;
obj [ "userIds" ] = found ;
arr [ findIndexResult ] = obj ;
flag = true ;
}
return flag ;
}
}
} ) ;
2026-07-23 10:11:24 +00:00
let result = require ( "_possibleConstructorReturn" ) . fileFinishedImporting ( "modules/friend_groups/FriendGroupsStore.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default tmp2 ;