2026-07-25 08:10:48 +00:00
// Module ID: 9452
// Function ID: 73769
2026-07-20 16:05:17 +00:00
// Name: _createForOfIteratorHelperLoose
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 27, 1348, 1911, 1838, 4350, 3768, 1850, 5669, 4567, 653, 1455, 4568, 33, 4131, 689, 1882, 1273, 4099, 8297, 3970, 4127, 4321, 1212, 5462, 566, 5085, 1395, 5166, 477, 9453, 3831, 5164, 1555, 5676, 4542, 5501, 5482, 7837, 5187, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 9452 (_createForOfIteratorHelperLoose)
2026-07-23 10:11:24 +00:00
import presentAddedFriendToast from "presentAddedFriendToast" ;
import get_ActivityIndicator from "ensureAvatarSource" ;
import _isNativeReflectConstruct from "_isNativeReflectConstruct" ;
import closure_8 from "_createForOfIteratorHelperLoose" ;
import closure_9 from "_createForOfIteratorHelperLoose" ;
import closure_10 from "_isNativeReflectConstruct" ;
import closure_11 from "_isNativeReflectConstruct" ;
import closure_12 from "_isNativeReflectConstruct" ;
import closure_13 from "_isNativeReflectConstruct" ;
import { SUB_COMMAND_KEY_SEPARATOR } from "TRUE_OPTION_NAME" ;
import ME from "ME" ;
import { AppLauncherRouteName } from "APP_LAUNCHER_BUILT_IN_SECTION_ICON" ;
2026-07-24 07:16:23 +00:00
import regExp from "regExp" ;
2026-07-23 10:11:24 +00:00
import jsxProd from "KeyboardTypes" ;
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose" ;
let closure_15 ;
let closure_16 ;
let closure_18 ;
let closure_19 ;
let closure_20 ;
let closure_21 ;
let closure_22 ;
let closure_23 ;
let closure_5 ;
let closure_6 ;
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 ;
}
function getCommandOptionComponents ( option ) {
let analyticsLocations ;
let commandOptionSpec ;
let done ;
let guild ;
let messageId ;
let styles ;
2026-07-23 10:11:24 +00:00
const iter = option . option ;
2026-07-20 16:05:17 +00:00
let channel = option . channel ;
( { guild , commandOptionSpec , styles } = option ) ;
function getUserComponent ( user , styles ) {
2026-07-23 10:11:24 +00:00
let obj = {
2026-07-20 16:05:17 +00:00
style : styles.commandOptionMentionText ,
onPress() {
2026-07-23 10:11:24 +00:00
let obj = channel ( outer2_3 [ 18 ] ) ;
2026-07-20 16:05:17 +00:00
obj . hideActionSheet ( ) ;
2026-07-23 10:11:24 +00:00
obj = { userId : user.id } ;
2026-07-20 16:05:17 +00:00
let id ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_1 ) {
id = outer1_1 . id ;
2026-07-20 16:05:17 +00:00
}
obj . channelId = id ;
2026-07-23 10:11:24 +00:00
channel ( outer2_3 [ 19 ] ) ( obj ) ;
2026-07-20 16:05:17 +00:00
}
} ;
2026-07-23 10:11:24 +00:00
const items = [ outer1_20 , channel ( outer1_3 [ 20 ] ) . getUserTag ( user , { decoration : "never" } ) ] ;
2026-07-20 16:05:17 +00:00
obj . children = items ;
2026-07-23 10:11:24 +00:00
return outer1_22 ( user ( outer1_3 [ 17 ] ) . LegacyText , obj , "optionValue-" + user . name ) ;
2026-07-20 16:05:17 +00:00
}
function getRoleComponent ( role ) {
2026-07-23 10:11:24 +00:00
const items = [ outer1_20 , role . name ] ;
return outer1_22 ( iter ( outer1_3 [ 17 ] ) . LegacyText , { style : styles.commandOptionMentionText , children : items } , "optionValue-" + iter . name ) ;
2026-07-20 16:05:17 +00:00
}
function getCommandValueText ( intl ) {
2026-07-23 10:11:24 +00:00
const obj = { variant : "text-sm/medium" , color : "mobile-text-heading-primary" , children : intl } ;
return outer1_21 ( iter ( outer1_3 [ 21 ] ) . Text , obj , "optionValue-" + iter . name ) ;
2026-07-20 16:05:17 +00:00
}
const text = ` ${ option . parentOptionName } ${ iter . name } ` ;
2026-07-23 10:11:24 +00:00
let items = [ ] ;
2026-07-20 16:05:17 +00:00
let name_localized ;
( { messageId , analyticsLocations } = option ) ;
if ( null != commandOptionSpec ) {
name_localized = commandOptionSpec . name_localized ;
}
if ( null == name_localized ) {
name_localized = iter . name ;
}
2026-07-23 10:11:24 +00:00
if ( null != iter . value ) {
2026-07-20 16:05:17 +00:00
const _HermesInternal2 = HermesInternal ;
let str = ":" ;
let combined = " " + name_localized + ":" ;
} else {
const _HermesInternal = HermesInternal ;
combined = " " + name_localized ;
}
2026-07-25 08:10:48 +00:00
if ( iter . type !== iter ( 1882 ) . ApplicationCommandOptionType . SUB_COMMAND ) {
if ( iter . type !== iter ( 1882 ) . ApplicationCommandOptionType . SUB_COMMAND_GROUP ) {
2026-07-20 16:05:17 +00:00
if ( null != iter . value ) {
const type = iter . type ;
2026-07-25 08:10:48 +00:00
if ( iter ( 1882 ) . ApplicationCommandOptionType . USER === type ) {
2026-07-20 16:05:17 +00:00
const user = authStore . getUser ( iter . value . toString ( ) ) ;
let userComponent = null ;
if ( null != user ) {
userComponent = getUserComponent ( user , styles ) ;
}
const str5 = iter . value ;
2026-07-25 08:10:48 +00:00
} else if ( iter ( 1882 ) . ApplicationCommandOptionType . CHANNEL === type ) {
2026-07-20 16:05:17 +00:00
channel = store . getChannel ( iter . value . toString ( ) ) ;
userComponent = null ;
if ( null != channel ) {
let obj = { style : styles.commandOptionMentionText } ;
const items1 = [ closure_18 , ] ;
2026-07-25 08:10:48 +00:00
let obj1 = iter ( 4321 ) ;
2026-07-20 16:05:17 +00:00
items1 [ 1 ] = obj1 . computeChannelName ( channel , authStore , closure_11 ) ;
obj . children = items1 ;
const _HermesInternal3 = HermesInternal ;
2026-07-23 10:11:24 +00:00
userComponent = callback2 ( iter ( 1273 ) . LegacyText , obj , "optionValue-" + iter . name ) ;
2026-07-20 16:05:17 +00:00
}
const str3 = iter . value ;
2026-07-25 08:10:48 +00:00
} else if ( iter ( 1882 ) . ApplicationCommandOptionType . ROLE === type ) {
2026-07-20 16:05:17 +00:00
let value = iter . value ;
let role ;
if ( null != guild ) {
role = store2 . getRole ( guild . id , tmp14 ) ;
}
userComponent = null ;
if ( null != role ) {
userComponent = getRoleComponent ( role ) ;
}
2026-07-25 08:10:48 +00:00
} else if ( iter ( 1882 ) . ApplicationCommandOptionType . MENTIONABLE === type ) {
2026-07-20 16:05:17 +00:00
str = iter . value . toString ( ) ;
let role1 ;
if ( null != guild ) {
role1 = store2 . getRole ( guild . id , str ) ;
}
if ( null != role1 ) {
userComponent = getRoleComponent ( role1 ) ;
} else {
const user1 = authStore . getUser ( str ) ;
userComponent = null ;
if ( null != user1 ) {
userComponent = getUserComponent ( user1 , styles ) ;
}
}
const str2 = iter . value ;
} else {
userComponent = null ;
2026-07-25 08:10:48 +00:00
if ( iter ( 1882 ) . ApplicationCommandOptionType . ATTACHMENT === type ) {
2026-07-23 10:11:24 +00:00
const intl = iter ( 1212 ) . intl ;
userComponent = getCommandValueText ( intl . string ( iter ( 1212 ) . t . nONJVc ) ) ;
2026-07-20 16:05:17 +00:00
}
}
let str6 = true ;
if ( null == userComponent ) {
let found ;
if ( null != commandOptionSpec ) {
const choices = commandOptionSpec . choices ;
if ( null != choices ) {
found = choices . find ( ( value ) = > value . value === iter . value ) ;
}
}
let str1 = iter . value . toString ( ) ;
if ( null != found ) {
let name = found . name_localized ;
if ( null == name ) {
name = found . name ;
}
str1 = name ;
}
let tmp29 = str1 . length > 0 ;
if ( tmp29 ) {
tmp29 = ! regex . test ( str1 [ 0 ] ) ;
}
userComponent = getCommandValueText ( str1 ) ;
str6 = tmp29 ;
const str7 = iter . value ;
}
obj = { } ;
obj = { } ;
if ( str6 ) {
str6 = " " ;
}
obj . children = combined + str6 ;
const _HermesInternal4 = HermesInternal ;
2026-07-23 10:11:24 +00:00
const items2 = [ callback ( iter ( 1273 ) . LegacyText , obj , "optionKey-" + iter . name ) , userComponent ] ;
2026-07-20 16:05:17 +00:00
obj . children = items2 ;
items . push ( callback2 ( React . Fragment , obj , text ) ) ;
const tmp31 = callback2 ;
const tmp33 = callback ;
}
return items ;
}
}
obj1 = { } ;
const obj2 = { children : combined } ;
2026-07-23 10:11:24 +00:00
obj1 . children = callback ( iter ( 1273 ) . LegacyText , obj2 , "optionKey-" + iter . name ) ;
2026-07-20 16:05:17 +00:00
items . push ( callback ( React . Fragment , obj1 , text ) ) ;
let tmp39 = items ;
2026-07-23 10:11:24 +00:00
if ( null != iter . options ) {
2026-07-20 16:05:17 +00:00
let options ;
if ( null != commandOptionSpec ) {
options = commandOptionSpec . options ;
}
if ( null == options ) {
options = [ ] ;
}
const tmp42 = _createForOfIteratorHelperLoose ( iter . options ) ;
let iter2 = tmp42 ( ) ;
let combined1 = items ;
tmp39 = items ;
if ( ! iter2 . done ) {
do {
value = iter2 . value ;
2026-07-23 10:11:24 +00:00
let tmp43 = getCommandOptionComponents ;
2026-07-20 16:05:17 +00:00
let obj3 = { option : value , channel , guild , messageId , parentOptionName : text , commandOptionSpec : fromEntriesResult [ value . name ] , styles , analyticsLocations } ;
2026-07-23 10:11:24 +00:00
combined1 = combined1 . concat ( getCommandOptionComponents ( obj3 ) ) ;
2026-07-20 16:05:17 +00:00
let iter3 = tmp42 ( ) ;
iter2 = iter3 ;
tmp39 = combined1 ;
done = iter3 . done ;
} while ( ! done ) ;
}
2026-07-23 10:11:24 +00:00
fromEntriesResult = Object . fromEntries ( options . map ( ( name ) = > {
2026-07-20 16:05:17 +00:00
const items = [ name . name , name ] ;
return items ;
} ) ) ;
}
return tmp39 ;
}
2026-07-23 10:11:24 +00:00
function getCommandCopyText ( value , arg1 , id , name_localized ) {
2026-07-20 16:05:17 +00:00
let done ;
2026-07-23 10:11:24 +00:00
const _require = value ;
let items = [ ] ;
2026-07-20 16:05:17 +00:00
name_localized = undefined ;
if ( null != name_localized ) {
name_localized = name_localized . name_localized ;
}
if ( null == name_localized ) {
2026-07-23 10:11:24 +00:00
name_localized = value . name ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( null != value . value ) {
2026-07-20 16:05:17 +00:00
const _HermesInternal2 = HermesInternal ;
let combined = "" + name_localized + ":" ;
} else {
const _HermesInternal = HermesInternal ;
let str = "" ;
combined = "" + name_localized ;
}
2026-07-25 08:10:48 +00:00
if ( value . type !== _require ( 1882 ) . ApplicationCommandOptionType . SUB_COMMAND ) {
if ( value . type !== _require ( 1882 ) . ApplicationCommandOptionType . SUB_COMMAND_GROUP ) {
2026-07-20 16:05:17 +00:00
let sum = null ;
2026-07-23 10:11:24 +00:00
if ( null != value . value ) {
const type = value . type ;
2026-07-25 08:10:48 +00:00
if ( _require ( 1882 ) . ApplicationCommandOptionType . USER === type ) {
2026-07-23 10:11:24 +00:00
const user = authStore . getUser ( value . value . toString ( ) ) ;
2026-07-20 16:05:17 +00:00
sum = null ;
if ( null != user ) {
let obj = { decoration : "never" } ;
2026-07-25 08:10:48 +00:00
sum = closure_20 + importDefault ( 3970 ) . getUserTag ( user , obj ) ;
const obj4 = importDefault ( 3970 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const str6 = value . value ;
2026-07-25 08:10:48 +00:00
} else if ( _require ( 1882 ) . ApplicationCommandOptionType . CHANNEL === type ) {
2026-07-23 10:11:24 +00:00
const channel = store . getChannel ( value . value . toString ( ) ) ;
2026-07-20 16:05:17 +00:00
sum = null ;
if ( null != channel ) {
2026-07-25 08:10:48 +00:00
sum = closure_18 + _require ( 4321 ) . computeChannelName ( channel , authStore , closure_11 ) ;
const obj3 = _require ( 4321 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const str5 = value . value ;
2026-07-25 08:10:48 +00:00
} else if ( _require ( 1882 ) . ApplicationCommandOptionType . ROLE === type ) {
2026-07-23 10:11:24 +00:00
value = value . value ;
2026-07-20 16:05:17 +00:00
let role ;
if ( null != id ) {
role = store2 . getRole ( id . id , tmp16 ) ;
}
sum = null ;
if ( null != role ) {
sum = closure_20 + role . name ;
}
} else {
sum = null ;
2026-07-25 08:10:48 +00:00
if ( _require ( 1882 ) . ApplicationCommandOptionType . MENTIONABLE === type ) {
2026-07-23 10:11:24 +00:00
str = value . value . toString ( ) ;
2026-07-20 16:05:17 +00:00
let role1 ;
if ( null != id ) {
role1 = store2 . getRole ( id . id , str ) ;
}
if ( null != role1 ) {
sum = closure_20 + role1 . name ;
} else {
const user1 = authStore . getUser ( str ) ;
sum = null ;
if ( null != user1 ) {
2026-07-25 08:10:48 +00:00
obj = importDefault ( 3970 ) ;
2026-07-20 16:05:17 +00:00
obj = { decoration : "never" } ;
sum = closure_20 + obj . getUserTag ( user1 , obj ) ;
}
}
2026-07-23 10:11:24 +00:00
const str8 = value . value ;
2026-07-20 16:05:17 +00:00
}
}
}
if ( null == sum ) {
let found ;
if ( null != name_localized ) {
const choices = name_localized . choices ;
if ( null != choices ) {
found = choices . find ( ( value ) = > value . value === value . value ) ;
}
}
if ( null != found ) {
2026-07-23 10:11:24 +00:00
let name = found . name_localized ;
2026-07-20 16:05:17 +00:00
if ( null == name ) {
name = found . name ;
}
sum = name ;
} else {
const _String = String ;
2026-07-23 10:11:24 +00:00
sum = String ( value . value ) ;
2026-07-20 16:05:17 +00:00
}
}
items . push ( combined + sum ) ;
return items ;
}
}
items . push ( combined ) ;
let tmp36 = items ;
2026-07-23 10:11:24 +00:00
if ( null != value . options ) {
2026-07-20 16:05:17 +00:00
let options ;
if ( null != name_localized ) {
options = name_localized . options ;
}
if ( null == options ) {
options = [ ] ;
}
2026-07-23 10:11:24 +00:00
const tmp39 = _createForOfIteratorHelperLoose ( value . options ) ;
2026-07-20 16:05:17 +00:00
let iter = tmp39 ( ) ;
let combined1 = items ;
tmp36 = items ;
if ( ! iter . done ) {
do {
value = iter . value ;
2026-07-23 10:11:24 +00:00
let tmp40 = getCommandCopyText ;
2026-07-20 16:05:17 +00:00
let tmp41 = value ;
let tmp42 = arg1 ;
let tmp43 = id ;
2026-07-23 10:11:24 +00:00
combined1 = combined1 . concat ( getCommandCopyText ( value , arg1 , id , fromEntriesResult [ value . name ] ) ) ;
2026-07-20 16:05:17 +00:00
let iter2 = tmp39 ( ) ;
iter = iter2 ;
tmp36 = combined1 ;
done = iter2 . done ;
} while ( ! done ) ;
}
2026-07-23 10:11:24 +00:00
fromEntriesResult = Object . fromEntries ( options . map ( ( name ) = > {
2026-07-20 16:05:17 +00:00
const items = [ name . name , name ] ;
return items ;
} ) ) ;
}
return tmp36 ;
}
function CommandContentContainer ( channelId ) {
2026-07-23 10:11:24 +00:00
let presentAddedFriendToast ;
let closure_5 ;
2026-07-20 16:05:17 +00:00
let data ;
2026-07-23 10:11:24 +00:00
let importAll ;
let importDefault ;
2026-07-20 16:05:17 +00:00
let messageId ;
channelId = channelId . channelId ;
2026-07-23 10:11:24 +00:00
( { author : importDefault , applicationUser : importAll , data } = channelId ) ;
( { guildId : presentAddedFriendToast , messageType : closure_5 , messageId } = channelId ) ;
let name_localized ;
let tmp = _createForOfIteratorHelperLoose ( ) ;
let _isNativeReflectConstruct = tmp ;
const analyticsLocations = importDefault ( data [ 24 ] ) ( ) . analyticsLocations ;
let obj = channelId ( data [ 25 ] ) ;
let items = [ _isNativeReflectConstruct , channel ] ;
2026-07-20 16:05:17 +00:00
const items1 = [ channelId ] ;
const stateFromStoresObject = obj . useStateFromStoresObject ( items , ( ) = > {
const channel = tmp . getChannel ( channelId ) ;
const obj = { channel } ;
let guild_id ;
if ( null != channel ) {
guild_id = channel . guild_id ;
}
obj . guild = channel . getGuild ( guild_id ) ;
return obj ;
} , items1 ) ;
2026-07-23 10:11:24 +00:00
channel = stateFromStoresObject . channel ;
2026-07-20 16:05:17 +00:00
const guild = stateFromStoresObject . guild ;
2026-07-23 10:11:24 +00:00
let application_command = data . application_command ;
name_localized = undefined ;
2026-07-20 16:05:17 +00:00
if ( null != application_command ) {
name_localized = application_command . name_localized ;
}
if ( null == name_localized ) {
name_localized = data . name ;
}
2026-07-23 10:11:24 +00:00
const intl = channelId ( data [ 23 ] ) . intl ;
2026-07-20 16:05:17 +00:00
obj = {
userHook() {
let obj = { } ;
2026-07-23 10:11:24 +00:00
const items = [ outer1_21 . commandUserText , ] ;
2026-07-20 16:05:17 +00:00
obj = { } ;
2026-07-23 10:11:24 +00:00
let color = closure_1 . colorString ;
2026-07-20 16:05:17 +00:00
if ( null == color ) {
color = tmp . commandText . color ;
}
obj . color = color ;
items [ 1 ] = obj ;
obj . style = items ;
2026-07-23 10:11:24 +00:00
obj . children = closure_1 . nick ;
return outer1_21 ( channelId ( data [ 17 ] ) . LegacyText , obj , "user" ) ;
2026-07-20 16:05:17 +00:00
} ,
commandHook() {
const obj = { variant : "text-sm/semibold" } ;
2026-07-23 10:11:24 +00:00
if ( closure_5 === outer1_15 . CHAT_INPUT_COMMAND ) {
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal ;
2026-07-23 10:11:24 +00:00
let combined = "" + outer1_19 + name_localized ;
2026-07-20 16:05:17 +00:00
} else {
combined = name_localized ;
}
obj . children = combined ;
2026-07-23 10:11:24 +00:00
return outer1_21 ( channelId ( data [ 21 ] ) . Text , obj , "command" ) ;
2026-07-20 16:05:17 +00:00
} ,
applicationHook() {
let obj = { style : tmp.applicationNameText , variant : "text-sm/semibold" } ;
obj = { style : tmp.applicationIcon } ;
2026-07-23 10:11:24 +00:00
tmp = outer1_1 ( data [ 26 ] ) ;
obj . source = channelId ( data [ 27 ] ) . ensureAvatarSource ( avatarSource . getAvatarSource ( presentAddedFriendToast ) ) ;
const items = [ outer1_21 ( tmp , obj , "icon-" + avatarSource . id ) , ` ${ closure_2 . username } ` ] ;
2026-07-20 16:05:17 +00:00
obj . children = items ;
2026-07-23 10:11:24 +00:00
return outer1_22 ( channelId ( data [ 21 ] ) . Text , obj , "application" ) ;
2026-07-20 16:05:17 +00:00
}
} ;
const items2 = [ channel , guild , messageId , , , , , , ] ;
( { name : arr3 [ 3 ] , options : arr3 [ 4 ] , application_command : arr3 [ 5 ] } = data ) ;
items2 [ 6 ] = name_localized ;
items2 [ 7 ] = tmp ;
items2 [ 8 ] = analyticsLocations ;
const memo = React . useMemo ( ( ) = > {
let done ;
2026-07-23 10:11:24 +00:00
let obj = { children : ` / ${ name_localized } ` } ;
let items = [ outer1_21 ( channelId ( data [ 17 ] ) . LegacyText , obj , "integrationName-" + data . name ) ] ;
2026-07-20 16:05:17 +00:00
let tmp = items ;
if ( null != data . options ) {
const application_command = data . application_command ;
let options ;
if ( null != application_command ) {
options = application_command . options ;
}
if ( null == options ) {
options = [ ] ;
}
2026-07-23 10:11:24 +00:00
const tmp5 = outer1_25 ( data . options ) ;
2026-07-20 16:05:17 +00:00
let iter = tmp5 ( ) ;
let combined = items ;
tmp = items ;
if ( ! iter . done ) {
do {
let value = iter . value ;
2026-07-23 10:11:24 +00:00
let tmp6 = outer1_27 ;
2026-07-20 16:05:17 +00:00
obj = { option : value } ;
2026-07-23 10:11:24 +00:00
let tmp7 = channel ;
obj . channel = channel ;
let tmp8 = guild ;
obj . guild = guild ;
let tmp9 = messageId ;
obj . messageId = messageId ;
2026-07-20 16:05:17 +00:00
obj . parentOptionName = "" ;
obj . commandOptionSpec = fromEntriesResult [ value . name ] ;
2026-07-23 10:11:24 +00:00
let tmp10 = _isNativeReflectConstruct ;
obj . styles = _isNativeReflectConstruct ;
let tmp11 = analyticsLocations ;
obj . analyticsLocations = analyticsLocations ;
combined = combined . concat ( outer1_27 ( obj ) ) ;
2026-07-20 16:05:17 +00:00
let iter2 = tmp5 ( ) ;
iter = iter2 ;
tmp = combined ;
done = iter2 . done ;
} while ( ! done ) ;
}
2026-07-23 10:11:24 +00:00
fromEntriesResult = Object . fromEntries ( options . map ( ( name ) = > {
2026-07-20 16:05:17 +00:00
const items = [ name . name , name ] ;
return items ;
} ) ) ;
}
return tmp ;
} , items2 ) ;
obj = { } ;
2026-07-23 10:11:24 +00:00
const obj1 = { style : tmp.commandText , variant : "text-md/medium" , color : "mobile-text-heading-primary" , children : intl.format ( channelId ( data [ 23 ] ) . t [ "sj/RT9" ] , obj ) } ;
const items3 = [ callback ( channelId ( data [ 21 ] ) . Text , obj1 , "commandName-" + data . name ) , ] ;
const obj2 = { style : tmp.commandOptionText , variant : "text-md/medium" , color : "text-default" , children : memo } ;
items3 [ 1 ] = callback ( channelId ( data [ 21 ] ) . Text , obj2 , "commandOption-" + data . name ) ;
2026-07-20 16:05:17 +00:00
obj . children = items3 ;
2026-07-23 10:11:24 +00:00
return callback2 ( channelId ( data [ 28 ] ) . Card , obj ) ;
2026-07-20 16:05:17 +00:00
}
function CommandActionsContainer ( channelId ) {
channelId = channelId . channelId ;
const chatInputRef = channelId . chatInputRef ;
const data = channelId . data ;
2026-07-23 10:11:24 +00:00
let channel ;
let guild ;
2026-07-20 16:05:17 +00:00
let closure_5 ;
2026-07-23 10:11:24 +00:00
let options = data . options ;
2026-07-20 16:05:17 +00:00
const tmp = null != options && options . some ( ( type ) = > type . type === channelId ( channel [ 16 ] ) . ApplicationCommandOptionType . ATTACHMENT ) ;
2026-07-23 10:11:24 +00:00
let obj = channelId ( channel [ 25 ] ) ;
let items = [ _isNativeReflectConstruct , closure_9 ] ;
let items1 = [ channelId ] ;
2026-07-20 16:05:17 +00:00
const stateFromStoresObject = obj . useStateFromStoresObject ( items , ( ) = > {
2026-07-23 10:11:24 +00:00
const channel = outer1_7 . getChannel ( channelId ) ;
2026-07-20 16:05:17 +00:00
const obj = { channel } ;
let guild_id ;
if ( null != channel ) {
guild_id = channel . guild_id ;
}
2026-07-23 10:11:24 +00:00
obj . guild = outer1_9 . getGuild ( guild_id ) ;
2026-07-20 16:05:17 +00:00
return obj ;
} , items1 ) ;
2026-07-23 10:11:24 +00:00
channel = stateFromStoresObject . channel ;
guild = stateFromStoresObject . guild ;
let items2 = [ data , channel , guild ] ;
closure_5 = guild . useCallback ( ( ) = > {
2026-07-20 16:05:17 +00:00
let done ;
const application_command = data . application_command ;
let name_localized ;
if ( null != application_command ) {
name_localized = application_command . name_localized ;
}
if ( null == name_localized ) {
name_localized = data . name ;
}
2026-07-23 10:11:24 +00:00
let items = [ outer1_19 + name_localized ] ;
2026-07-20 16:05:17 +00:00
let obj = items ;
if ( null != data . options ) {
const application_command2 = data . application_command ;
let options ;
if ( null != application_command2 ) {
options = application_command2 . options ;
}
if ( null == options ) {
options = [ ] ;
}
2026-07-23 10:11:24 +00:00
const tmp6 = outer1_25 ( data . options ) ;
2026-07-20 16:05:17 +00:00
let iter = tmp6 ( ) ;
let combined = items ;
obj = items ;
if ( ! iter . done ) {
do {
let value = iter . value ;
2026-07-23 10:11:24 +00:00
let tmp7 = outer1_28 ;
let tmp8 = channel ;
let tmp9 = guild ;
2026-07-20 16:05:17 +00:00
let tmp10 = value ;
2026-07-23 10:11:24 +00:00
combined = combined . concat ( outer1_28 ( value , channel , guild , fromEntriesResult [ value . name ] ) ) ;
2026-07-20 16:05:17 +00:00
let iter2 = tmp6 ( ) ;
iter = iter2 ;
obj = combined ;
done = iter2 . done ;
} while ( ! done ) ;
}
2026-07-23 10:11:24 +00:00
fromEntriesResult = Object . fromEntries ( options . map ( ( name ) = > {
2026-07-20 16:05:17 +00:00
const items = [ name . name , name ] ;
return items ;
} ) ) ;
}
if ( obj3 . isAndroid ( ) ) {
if ( null != chatInputRef ( channel [ 30 ] ) ) {
const _JSON2 = JSON ;
const json = JSON . stringify ( data ) ;
const result = chatInputRef ( channel [ 30 ] ) . setItem ( json , "application/x-discord-interaction-data" , obj . join ( " " ) ) ;
const obj4 = chatInputRef ( channel [ 30 ] ) ;
}
} else {
2026-07-23 10:11:24 +00:00
const DCDClipboardManager = outer1_6 . DCDClipboardManager ;
2026-07-20 16:05:17 +00:00
const _JSON = JSON ;
const json1 = JSON . stringify ( data ) ;
const result1 = DCDClipboardManager . setItem ( json1 , "application/x-discord-interaction-data" , obj . join ( " " ) ) ;
}
if ( null != channel ) {
obj = { channel , type : "channel" } ;
obj = { } ;
const items1 = [ channelId ( channel [ 16 ] ) . ApplicationCommandType . CHAT ] ;
obj . commandTypes = items1 ;
const obj1 = { allowFetch : true } ;
2026-07-23 10:11:24 +00:00
const query = outer1_13 . query ( obj , obj , obj1 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj3 = channelId ( channel [ 29 ] ) ;
2026-07-20 16:05:17 +00:00
channelId ( channel [ 31 ] ) . presentCommandCopied ( ) ;
} , items2 ) ;
const items3 = [ ] ;
if ( tmp2 ) {
obj = { } ;
2026-07-23 10:11:24 +00:00
const intl = channelId ( channel [ 23 ] ) . intl ;
obj . label = intl . string ( channelId ( channel [ 23 ] ) . t [ "42H+Nb" ] ) ;
2026-07-20 16:05:17 +00:00
obj . onPress = function onPress() {
chatInputRef ( channel [ 18 ] ) . hideActionSheet ( ) ;
callback ( ) ;
} ;
2026-07-23 10:11:24 +00:00
items3 . push ( callback ( channelId ( channel [ 32 ] ) . TableRow , obj ) ) ;
2026-07-20 16:05:17 +00:00
}
if ( null != chatInputRef ) {
obj = { } ;
2026-07-23 10:11:24 +00:00
const intl2 = channelId ( channel [ 23 ] ) . intl ;
obj . label = intl2 . string ( channelId ( channel [ 23 ] ) . t . lNWC7s ) ;
2026-07-20 16:05:17 +00:00
obj . onPress = function onPress() {
let obj = chatInputRef ( channel [ 18 ] ) ;
obj . hideActionSheet ( ) ;
if ( null != data . options ) {
if ( data . options . length > 0 ) {
const items = [ channelId ( channel [ 16 ] ) . ApplicationCommandOptionType . SUB_COMMAND , channelId ( channel [ 16 ] ) . ApplicationCommandOptionType . SUB_COMMAND_GROUP ] ;
if ( items . includes ( data . options [ 0 ] . type ) ) {
const items1 = [ data . options [ 0 ] . name ] ;
let options = data . options [ 0 ] . options ;
let hasItem = null != options && options . length > 0 ;
if ( hasItem ) {
const items2 = [ channelId ( channel [ 16 ] ) . ApplicationCommandOptionType . SUB_COMMAND , channelId ( channel [ 16 ] ) . ApplicationCommandOptionType . SUB_COMMAND_GROUP ] ;
hasItem = items2 . includes ( options [ 0 ] . type ) ;
}
if ( hasItem ) {
items1 . push ( options [ 0 ] . name ) ;
options = options [ 0 ] . options ;
}
let tmp19 = null == chatInputRef ;
if ( ! tmp19 ) {
const current2 = chatInputRef . current ;
tmp19 = null == current2 ;
const obj6 = current2 ;
}
if ( ! tmp19 ) {
obj = { type : channelId ( channel [ 33 ] ) . KeyboardTypes . APP_LAUNCHER } ;
2026-07-23 10:11:24 +00:00
obj = { initialRouteName : outer1_17.COMMAND_VIEW , analyticsLocation : channelId ( channel [ 34 ] ) . ApplicationCommandTriggerLocations . RECALL } ;
2026-07-20 16:05:17 +00:00
let obj1 = { } ;
2026-07-23 10:11:24 +00:00
const sum = data . id + outer1_14 ;
obj1 . commandId = sum + items1 . join ( outer1_14 ) ;
2026-07-20 16:05:17 +00:00
obj1 . prefilledOptions = options ;
obj . preSelectedCommand = obj1 ;
obj . context = obj ;
obj6 . openCustomKeyboard ( obj ) ;
}
}
}
}
let tmp6 = null == chatInputRef ;
if ( ! tmp6 ) {
const current = chatInputRef . current ;
tmp6 = null == current ;
obj1 = current ;
}
if ( ! tmp6 ) {
const obj2 = { type : channelId ( channel [ 33 ] ) . KeyboardTypes . APP_LAUNCHER } ;
2026-07-23 10:11:24 +00:00
const obj3 = { initialRouteName : outer1_17.COMMAND_VIEW , analyticsLocation : channelId ( channel [ 34 ] ) . ApplicationCommandTriggerLocations . RECALL } ;
2026-07-20 16:05:17 +00:00
( { id : obj5.commandId , options : obj5.prefilledOptions } = data ) ;
obj3 . preSelectedCommand = { } ;
obj2 . context = obj3 ;
obj1 . openCustomKeyboard ( obj2 ) ;
const obj4 = { } ;
}
} ;
2026-07-23 10:11:24 +00:00
items3 . push ( callback ( channelId ( channel [ 32 ] ) . TableRow , obj ) ) ;
2026-07-20 16:05:17 +00:00
}
let tmp12 = null ;
if ( 0 !== items3 . length ) {
2026-07-23 10:11:24 +00:00
let obj1 = { spacing : 8 } ;
let obj2 = { variant : "text-sm/semibold" , color : "text-subtle" } ;
const intl3 = channelId ( channel [ 23 ] ) . intl ;
obj2 . children = intl3 . string ( channelId ( channel [ 23 ] ) . t [ "3eF5/L" ] ) ;
const items4 = [ callback ( channelId ( channel [ 21 ] ) . Text , obj2 ) , ] ;
let obj3 = { hasIcons : false , children : items3.map ( ( children ) = > outer1_21 ( guild . Fragment , { children } , arg1 ) ) } ;
items4 [ 1 ] = callback ( channelId ( channel [ 36 ] ) . TableRowGroup , obj3 ) ;
2026-07-20 16:05:17 +00:00
obj1 . children = items4 ;
2026-07-23 10:11:24 +00:00
tmp12 = callback2 ( channelId ( channel [ 35 ] ) . Stack , obj1 ) ;
2026-07-20 16:05:17 +00:00
}
return tmp12 ;
}
2026-07-23 10:11:24 +00:00
( { ActivityIndicator : closure_5 , NativeModules : closure_6 } = get_ActivityIndicator ) ;
( { MessageTypes : closure_15 , WHITESPACE_RE : closure_16 } = ME ) ;
2026-07-24 07:16:23 +00:00
( { CHANNEL_SENTINEL : closure_18 , COMMAND_SENTINEL : closure_19 , MENTION_SENTINEL : closure_20 } = regExp ) ;
2026-07-23 10:11:24 +00:00
( { jsx : closure_21 , jsxs : closure_22 , Fragment : closure_23 } = jsxProd ) ;
_createForOfIteratorHelperLoose = { container : { paddingVertical : 8 , paddingHorizontal : 16 , gap : 16 } , activityIndicator : { padding : 16 } , commandUserText : _createForOfIteratorHelperLoose , applicationIcon : { width : 18 , height : 18 , borderRadius : 9 , alignSelf : "center" } , applicationNameText : { textAlignVertical : "center" } , commandOptionText : { marginTop : 12 } } ;
_createForOfIteratorHelperLoose = { fontFamily : ME.Fonts.PRIMARY_SEMIBOLD , commandOptionMentionText : { color : require ( "_createForOfIteratorHelperLoose" ) . colors . BACKGROUND_BRAND } } ;
let obj1 = { color : require ( "_createForOfIteratorHelperLoose" ) . colors . BACKGROUND_BRAND } ;
_createForOfIteratorHelperLoose . commandText = { fontSize : 16 , color : require ( "_createForOfIteratorHelperLoose" ) . colors . MOBILE_TEXT_HEADING_PRIMARY } ;
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose . createStyles ( _createForOfIteratorHelperLoose ) ;
let obj2 = { fontSize : 16 , color : require ( "_createForOfIteratorHelperLoose" ) . colors . MOBILE_TEXT_HEADING_PRIMARY } ;
let result = require ( "_isNativeReflectConstruct" ) . fileFinishedImporting ( "modules/application_commands/native/ExecutedApplicationCommandPopout.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default function ExecutedCommandPopout ( channelId ) {
let applicationUser ;
let author ;
let chatInputRef ;
let guildId ;
let messageType ;
let user ;
channelId = channelId . channelId ;
const messageId = channelId . messageId ;
( { user , chatInputRef , author , applicationUser , guildId , messageType } = channelId ) ;
2026-07-23 10:11:24 +00:00
const tmp = _createForOfIteratorHelperLoose ( ) ;
let obj = channelId ( 566 ) ;
2026-07-20 16:05:17 +00:00
const items = [ closure_10 ] ;
2026-07-23 10:11:24 +00:00
const stateFromStores = obj . useStateFromStores ( items , ( ) = > outer1_10 . getMessage ( channelId , messageId ) ) ;
2026-07-20 16:05:17 +00:00
const items1 = [ channelId , messageId , ] ;
let interactionData ;
if ( null != stateFromStores ) {
interactionData = stateFromStores . interactionData ;
}
items1 [ 2 ] = interactionData ;
const effect = React . useEffect ( ( ) = > {
let interactionData ;
if ( null != stateFromStores ) {
interactionData = stateFromStores . interactionData ;
}
let tmp3 = null == interactionData ;
if ( ! tmp3 ) {
let type ;
if ( null != stateFromStores ) {
type = stateFromStores . interactionData . type ;
}
2026-07-23 10:11:24 +00:00
let tmp9 = type === channelId ( outer1_3 [ 16 ] ) . ApplicationCommandType . CHAT ;
2026-07-20 16:05:17 +00:00
if ( tmp9 ) {
let application_command ;
if ( null != stateFromStores ) {
application_command = stateFromStores . interactionData . application_command ;
}
tmp9 = undefined === application_command ;
}
tmp3 = tmp9 ;
}
if ( tmp3 ) {
2026-07-23 10:11:24 +00:00
const messageInteractionData = stateFromStores ( outer1_3 [ 38 ] ) . fetchMessageInteractionData ( channelId , messageId ) ;
const obj = stateFromStores ( outer1_3 [ 38 ] ) ;
2026-07-20 16:05:17 +00:00
}
} , items1 ) ;
2026-07-24 07:16:23 +00:00
obj = { value : messageId ( 5462 ) ( messageId ( 5482 ) . EXECUTED_COMMAND ) . analyticsLocations } ;
2026-07-20 16:05:17 +00:00
obj = { startExpanded : true , bodyStyles : tmp.container } ;
let interactionData1 ;
if ( null != stateFromStores ) {
interactionData1 = stateFromStores . interactionData ;
}
if ( null != interactionData1 ) {
const obj1 = { } ;
const obj2 = { guildId , user , channelId , messageId , author , applicationUser } ;
let interactionData2 ;
if ( null != stateFromStores ) {
interactionData2 = stateFromStores . interactionData ;
}
obj2 . data = interactionData2 ;
obj2 . messageType = messageType ;
const items2 = [ callback ( CommandContentContainer , obj2 ) , ] ;
const obj3 = { channelId , chatInputRef } ;
let interactionData3 ;
if ( null != stateFromStores ) {
interactionData3 = stateFromStores . interactionData ;
}
obj3 . data = interactionData3 ;
items2 [ 1 ] = callback ( CommandActionsContainer , obj3 ) ;
obj1 . children = items2 ;
let tmp13Result = closure_22 ( closure_23 , obj1 ) ;
const tmp13 = closure_22 ;
const tmp14 = closure_23 ;
const tmp15 = callback ;
const tmp16 = CommandContentContainer ;
const tmp18 = callback ;
const tmp19 = CommandActionsContainer ;
} else {
const obj4 = { style : tmp.activityIndicator , size : "large" } ;
tmp13Result = callback ( closure_5 , obj4 ) ;
}
obj . children = tmp13Result ;
2026-07-23 10:11:24 +00:00
obj . children = callback ( channelId ( 5187 ) . BottomSheet , obj ) ;
2026-07-24 07:16:23 +00:00
return callback ( channelId ( 5462 ) . AnalyticsLocationProvider , obj ) ;
2026-07-20 16:05:17 +00:00
} ;