2026-07-24 07:16:23 +00:00
// Module ID: 13469
// Function ID: 103507
2026-07-20 16:05:17 +00:00
// Name: _createForOfIteratorHelperLoose
2026-07-24 07:16:23 +00:00
// Dependencies: [57, 3767, 1849, 4033, 653, 13456, 8354, 483, 10525, 10530, 2]
2026-07-23 10:11:24 +00:00
2026-07-24 07:16:23 +00:00
// Module 13469 (_createForOfIteratorHelperLoose)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray" ;
import _isNativeReflectConstruct from "_isNativeReflectConstruct" ;
import closure_6 from "_isNativeReflectConstruct" ;
import ME from "ME" ;
import createRPCCommand from "createRPCCommand" ;
2026-07-20 16:05:17 +00:00
let RPCCommands ;
2026-07-23 10:11:24 +00:00
let closure_7 ;
let closure_8 ;
let closure_9 ;
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
( { ApplicationFlags : closure_7 , RelationshipTypes : closure_8 , RPCCommands , RPCErrors : closure_9 } = ME ) ;
2026-07-20 16:05:17 +00:00
let obj = { } ;
obj = { } ;
obj = { } ;
2026-07-23 10:11:24 +00:00
let items = [ require ( "set" ) . OAuth2Scopes . RELATIONSHIPS_READ ] ;
obj [ require ( "RPC_SCOPE_CONFIG" ) . RPC_SCOPE_CONFIG . ANY ] = items ;
2026-07-20 16:05:17 +00:00
obj . scope = obj ;
obj . handler = function handler ( socket ) {
let iter3 ;
2026-07-23 10:11:24 +00:00
let obj = importAll ( 483 ) ;
2026-07-20 16:05:17 +00:00
const flags = socket . socket . application . flags ;
let num = 0 ;
if ( null != flags ) {
num = flags ;
}
2026-07-23 10:11:24 +00:00
const obj2 = importAll ( 483 ) ;
const deserializeResult = importAll ( 483 ) . deserialize ( num ) ;
2026-07-20 16:05:17 +00:00
if ( obj . has ( deserializeResult , obj3 . deserialize ( constants . DISABLE_RELATIONSHIPS_ACCESS ) ) ) {
2026-07-24 07:16:23 +00:00
let tmp20 = importDefault ( 10525 ) ;
2026-07-23 10:11:24 +00:00
obj = { errorCode : constants3.INVALID_PERMISSIONS } ;
2026-07-20 16:05:17 +00:00
const prototype = tmp20 . prototype ;
tmp20 = new tmp20 ( obj , "Missing Permissions" ) ;
throw tmp20 ;
} else {
const items = [ ] ;
2026-07-23 10:11:24 +00:00
mutableRelationships = mutableRelationships . getMutableRelationships ( ) ;
2026-07-20 16:05:17 +00:00
const tmp4 = _createForOfIteratorHelperLoose ( mutableRelationships . entries ( ) ) ;
const iter = tmp4 ( ) ;
let iter2 = iter ;
if ( ! iter . done ) {
do {
2026-07-23 10:11:24 +00:00
let tmp5 = callback ;
let tmp6 = callback ( iter2 . value , 2 ) ;
2026-07-20 16:05:17 +00:00
let tmp8 = tmp6 [ 1 ] ;
2026-07-23 10:11:24 +00:00
let tmp9 = constants2 ;
if ( tmp8 !== constants2 . NONE ) {
let tmp10 = user ;
user = user . getUser ( tmp7 ) ;
2026-07-20 16:05:17 +00:00
let tmp12 = user ;
if ( null != user ) {
2026-07-23 10:11:24 +00:00
let tmp13 = require ;
let tmp14 = dependencyMap ;
2026-07-24 07:16:23 +00:00
let obj5 = require ( 10530 ) /* recurseReplaceContentTree */ ;
2026-07-20 16:05:17 +00:00
let result = obj5 . transformBaseRelationship ( tmp8 , user ) ;
2026-07-24 07:16:23 +00:00
let obj6 = require ( 10530 ) /* recurseReplaceContentTree */ ;
2026-07-20 16:05:17 +00:00
let arr = items . push ( obj6 . transformApplicationRelationship ( result , socket . socket . application . id ) ) ;
let tmp17 = user ;
}
}
iter3 = tmp4 ( ) ;
iter2 = iter3 ;
} while ( ! iter3 . done ) ;
}
obj = { relationships : items } ;
return obj ;
}
2026-07-23 10:11:24 +00:00
obj3 = importAll ( 483 ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-23 10:11:24 +00:00
obj [ RPCCommands . GET_RELATIONSHIPS ] = createRPCCommand . createRPCCommand ( RPCCommands . GET_RELATIONSHIPS , obj ) ;
let result = require ( "_isNativeReflectConstruct" ) . fileFinishedImporting ( "modules/rpc/server/commands/relationships.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default obj ;