2026-07-28 08:39:19 +00:00
// Module ID: 4202
// Function ID: 35422
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-28 08:39:19 +00:00
// Dependencies: [6, 7, 15, 17, 18, 57, 4188, 566, 686, 2]
2026-07-23 10:11:24 +00:00
2026-07-28 08:39:19 +00:00
// Module 4202 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import _callSuper from "_callSuper" ;
import initialize from "initialize" ;
import _possibleConstructorReturn from "_possibleConstructorReturn" ;
import _getPrototypeOf from "_getPrototypeOf" ;
import _inherits from "_inherits" ;
import _slicedToArray from "_slicedToArray" ;
import closure_6 from "_callSuper" ;
import set from "_possibleConstructorReturn" ;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
let _callSuper = ! valueOf . call ( Reflect . construct ( Boolean , [ ] , ( ) = > {
2026-07-20 16:05:17 +00:00
} ) ) ;
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
return _callSuper ;
2026-07-20 16:05:17 +00:00
}
const result = _isNativeReflectConstruct ( ) ;
}
2026-07-23 10:11:24 +00:00
function _createForOfIteratorHelperLoose ( iterable ) {
let _callSuper = 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
_callSuper = 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 ( initialize >= length . length ) {
2026-07-20 16:05:17 +00:00
let obj = { done : true } ;
} else {
obj = { done : false } ;
2026-07-23 10:11:24 +00:00
initialize = tmp3 + 1 ;
obj . value = length [ + initialize ] ;
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 addApplication ( fromServer ) {
let done ;
let value = map . get ( fromServer . id ) ;
const result = map3 . set ( fromServer . id , Date . now ( ) ) ;
let result1 = fromServer ;
if ( null != value ) {
result1 = value . mergeFromApplicationUpdate ( fromServer ) ;
}
const result2 = map . set ( fromServer . id , result1 ) ;
const result3 = map2 . set ( fromServer . name . toLowerCase ( ) , result1 ) ;
const tmp5 = _createForOfIteratorHelperLoose ( fromServer . aliases ) ;
let iter = tmp5 ( ) ;
if ( ! iter . done ) {
do {
let str2 = iter . value ;
2026-07-23 10:11:24 +00:00
let tmp6 = map2 ;
let result4 = map2 . set ( str2 . toLowerCase ( ) , result1 ) ;
2026-07-20 16:05:17 +00:00
let iter2 = tmp5 ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
if ( null != fromServer . linkedGames ) {
const tmp9 = _createForOfIteratorHelperLoose ( fromServer . linkedGames ) ;
let iter3 = tmp9 ( ) ;
if ( ! iter3 . done ) {
value = iter3 . value ;
while ( null == value . application ) {
let iter4 = tmp9 ( ) ;
iter3 = iter4 ;
}
2026-07-23 10:11:24 +00:00
if ( value . application instanceof ctor ) {
2026-07-20 16:05:17 +00:00
let application = value . application ;
} else {
2026-07-23 10:11:24 +00:00
application = ctor . createFromServer ( value . application ) ;
2026-07-20 16:05:17 +00:00
}
addApplication ( application ) ;
const tmp10 = addApplication ;
}
}
map4 . delete ( fromServer . id ) ;
}
function handleWishlistAction ( wishlistData ) {
let done ;
const applications = wishlistData . wishlistData . applications ;
if ( null != applications ) {
if ( 0 !== applications . length ) {
const tmp2 = _createForOfIteratorHelperLoose ( applications ) ;
let iter = tmp2 ( ) ;
if ( ! iter . done ) {
do {
2026-07-23 10:11:24 +00:00
let tmp3 = addApplication ;
let tmp4 = addApplication ( iter . value ) ;
2026-07-20 16:05:17 +00:00
let iter2 = tmp2 ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
}
}
return false ;
}
function updateApplication ( application ) {
2026-07-23 10:11:24 +00:00
addApplication ( ctor . createFromServer ( application ) ) ;
2026-07-20 16:05:17 +00:00
}
function handleAppWithBot ( arg0 ) {
let applicationId ;
let length ;
let userId ;
( { userId , applicationId } = arg0 ) ;
if ( null == closure_14 . botUserIdToAppUsage [ userId ] ) {
let obj = { applicationId } ;
const _Date = Date ;
obj . lastUsedMs = Date . now ( ) ;
} else {
2026-07-23 10:11:24 +00:00
obj = { applicationId , lastUsedMs : tmp3.lastUsedMs } ;
2026-07-20 16:05:17 +00:00
}
closure_14 . botUserIdToAppUsage [ userId ] = obj ;
const map = new Map ( ) ;
const entries = Object . entries ( closure_14 . botUserIdToAppUsage ) ;
let num = 0 ;
if ( 0 < entries . length ) {
do {
2026-07-23 10:11:24 +00:00
let tmp5 = callback3 ;
let tmp6 = callback3 ( entries [ num ] , 2 ) ;
let result = map . set ( tmp6 [ 0 ] , tmp6 [ 1 ] ) ;
2026-07-20 16:05:17 +00:00
num = num + 1 ;
length = entries . length ;
} while ( num < length ) ;
}
const sorted = Array . from ( map . entries ( ) ) . sort ( ( arg0 , arg1 ) = > arg1 [ 1 ] . lastUsedMs - arg0 [ 1 ] . lastUsedMs ) ;
for ( let num2 = 0 ; num2 < sorted . length ; num2 = num2 + 1 ) {
if ( num2 >= 10 ) {
let first = sorted [ num2 ] [ 0 ] ;
2026-07-23 10:11:24 +00:00
let tmp9 = closure_14 ;
2026-07-20 16:05:17 +00:00
let botUserIdToAppUsage = closure_14 . botUserIdToAppUsage ;
2026-07-23 10:11:24 +00:00
delete tmp [ tmp2 ] ;
2026-07-20 16:05:17 +00:00
}
}
}
function handleApplicationWidgetConfigFetchSuccess ( applications ) {
let done ;
applications = applications . applications ;
if ( 0 === applications . length ) {
return false ;
} else {
const tmp2 = _createForOfIteratorHelperLoose ( applications ) ;
let iter = tmp2 ( ) ;
if ( ! iter . done ) {
do {
2026-07-23 10:11:24 +00:00
let tmp3 = addApplication ;
let tmp4 = ctor ;
let tmp5 = addApplication ( ctor . createFromServer ( iter . value ) ) ;
2026-07-20 16:05:17 +00:00
let iter2 = tmp2 ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
return true ;
}
}
function handleEntitlementsFetched ( entitlements ) {
let iter3 ;
const tmp = _createForOfIteratorHelperLoose ( entitlements . entitlements ) ;
const iter = tmp ( ) ;
let iter2 = iter ;
let flag = false ;
let flag2 = false ;
if ( ! iter . done ) {
do {
let sku = iter2 . value . sku ;
let application ;
if ( null != sku ) {
application = sku . application ;
}
if ( null != application ) {
2026-07-23 10:11:24 +00:00
let tmp3 = addApplication ;
let tmp4 = ctor ;
let tmp5 = addApplication ( ctor . createFromServer ( sku . application ) ) ;
2026-07-20 16:05:17 +00:00
flag = true ;
}
iter3 = tmp ( ) ;
iter2 = iter3 ;
flag2 = flag ;
} while ( ! iter3 . done ) ;
}
return flag2 ;
}
let closure_7 = [ ] ;
2026-07-23 10:11:24 +00:00
let map = new Map ( ) ;
2026-07-20 16:05:17 +00:00
const map1 = new Map ( ) ;
const map2 = new Map ( ) ;
const map3 = new Map ( ) ;
const map4 = new Map ( ) ;
2026-07-23 10:11:24 +00:00
let set = new Set ( ) ;
2026-07-20 16:05:17 +00:00
let closure_14 = { botUserIdToAppUsage : { } } ;
2026-07-23 10:11:24 +00:00
let tmp8 = ( ( PersistedStore ) = > {
2026-07-20 16:05:17 +00:00
class ApplicationStore {
constructor ( ) {
self = this ;
tmp = ApplicationStore ( this , ApplicationStore ) ;
2026-07-23 10:11:24 +00:00
obj = outer1_3 ( ApplicationStore ) ;
tmp2 = outer1_2 ;
if ( outer1_15 ( ) ) {
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 ( ApplicationStore , PersistedStore ) ;
let obj = {
key : "initialize" ,
value ( botUserIdToAppUsage ) {
let applicationId ;
let lastUsedMs ;
if ( null != botUserIdToAppUsage ) {
if ( "object" === typeof botUserIdToAppUsage . botUserIdToAppUsage ) {
for ( const key10002 in arg0 . botUserIdToAppUsage ) {
let tmp3 = key10002 ;
( { applicationId , lastUsedMs } = arg0 . botUserIdToAppUsage [ key10002 ] ) ;
let tmp = "string" === typeof applicationId ;
if ( tmp ) {
tmp = applicationId . length > 0 ;
}
if ( tmp ) {
tmp = "number" === typeof lastUsedMs ;
}
if ( tmp ) {
tmp = lastUsedMs > 0 ;
}
if ( ! tmp ) {
continue ;
} else {
2026-07-23 10:11:24 +00:00
let tmp2 = outer1_14 ;
2026-07-20 16:05:17 +00:00
let obj = { applicationId , lastUsedMs } ;
2026-07-23 10:11:24 +00:00
outer1_14 . botUserIdToAppUsage [ key10002 ] = obj ;
continue ;
2026-07-20 16:05:17 +00:00
}
continue ;
}
}
}
}
} ;
const items = [ obj , , , , , , , , , , , , ] ;
obj = {
key : "getState" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_14 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 1 ] = obj ;
obj = {
key : "_getAllApplications" ,
value() {
2026-07-23 10:11:24 +00:00
return Array . from ( outer1_8 . values ( ) ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 2 ] = obj ;
items [ 3 ] = {
key : "getGuildApplication" ,
value ( arg0 , arg1 ) {
let value ;
if ( null != arg0 ) {
2026-07-23 10:11:24 +00:00
const tmp3 = outer1_16 ( outer1_8 . values ( ) ) ;
2026-07-20 16:05:17 +00:00
const iter = tmp3 ( ) ;
let iter2 = iter ;
if ( ! iter . done ) {
while ( true ) {
value = iter2 . value ;
if ( value . guildId === arg0 ) {
if ( value . type === arg1 ) {
break ;
}
}
let iter3 = tmp3 ( ) ;
iter2 = iter3 ;
}
return value ;
}
}
}
} ;
items [ 4 ] = {
key : "getGuildApplicationIds" ,
value ( arg0 ) {
if ( null == arg0 ) {
2026-07-23 10:11:24 +00:00
let value = outer1_7 ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
value = outer1_9 . get ( arg0 ) ;
2026-07-20 16:05:17 +00:00
if ( null == value ) {
2026-07-23 10:11:24 +00:00
value = outer1_7 ;
2026-07-20 16:05:17 +00:00
}
}
return value ;
}
} ;
items [ 5 ] = {
key : "getApplication" ,
value ( arg0 ) {
if ( null != arg0 ) {
2026-07-23 10:11:24 +00:00
return outer1_8 . get ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
}
} ;
items [ 6 ] = {
key : "getApplicationByName" ,
value ( str ) {
if ( null != str ) {
const formatted = str . toLowerCase ( ) ;
let value ;
2026-07-23 10:11:24 +00:00
if ( outer1_10 . has ( formatted ) ) {
value = outer1_10 . get ( formatted ) ;
2026-07-20 16:05:17 +00:00
}
return value ;
}
}
} ;
items [ 7 ] = {
key : "getApplicationLastUpdated" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
return outer1_11 . get ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 8 ] = {
key : "isFetchingApplication" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
return true === outer1_12 . get ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 9 ] = {
key : "isHydrated" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
return outer1_13 . has ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 10 ] = {
key : "didFetchingApplicationFail" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
return false === outer1_12 . get ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 11 ] = {
key : "getFetchingOrFailedFetchingIds" ,
value() {
2026-07-23 10:11:24 +00:00
return Array . from ( outer1_12 . keys ( ) ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 12 ] = {
key : "getAppIdForBotUserId" ,
value ( arg0 ) {
if ( null != arg0 ) {
let applicationId ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_14 . botUserIdToAppUsage [ arg0 ] ) {
2026-07-20 16:05:17 +00:00
applicationId = tmp2 . applicationId ;
}
return applicationId ;
}
}
} ;
return callback ( ApplicationStore , items ) ;
2026-07-23 10:11:24 +00:00
} ) ( require ( "initialize" ) . PersistedStore ) ;
2026-07-20 16:05:17 +00:00
tmp8 . displayName = "ApplicationStore" ;
tmp8 . persistKey = "ApplicationStore" ;
2026-07-23 10:11:24 +00:00
tmp8 = new tmp8 ( require ( "dispatcher" ) , {
2026-07-20 16:05:17 +00:00
LOGOUT : function handleLogout() {
map . clear ( ) ;
map1 . clear ( ) ;
map2 . clear ( ) ;
map3 . clear ( ) ;
map4 . clear ( ) ;
set . clear ( ) ;
} ,
OVERLAY_INITIALIZE : function handleOverlayInitialize ( applications ) {
let done ;
const tmp = _createForOfIteratorHelperLoose ( applications . applications ) ;
let iter = tmp ( ) ;
if ( ! iter . done ) {
do {
2026-07-23 10:11:24 +00:00
let tmp2 = addApplication ;
let tmp3 = ctor ;
let prototype = ctor . prototype ;
2026-07-20 16:05:17 +00:00
let tmp4 = new . target ;
let tmp5 = new . target ;
2026-07-23 10:11:24 +00:00
let tmp6 = new ctor ( iter . value ) ;
2026-07-20 16:05:17 +00:00
let tmp7 = tmp6 ;
2026-07-23 10:11:24 +00:00
let tmp8 = addApplication ( tmp6 ) ;
2026-07-20 16:05:17 +00:00
let iter2 = tmp ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
} ,
APPLICATION_FETCH : function handleApplicationFetch ( applicationId ) {
applicationId = applicationId . applicationId ;
const value = map4 . get ( applicationId ) ;
const result = map4 . set ( applicationId , true ) ;
return true !== value ;
} ,
APPLICATION_FETCH_SUCCESS : function handleApplicationFetchSuccess ( application ) {
application = application . application ;
if ( true === application . isHydrated ) {
set . add ( application . id ) ;
}
updateApplication ( application ) ;
} ,
APPLICATION_FETCH_FAIL : function handleApplicationFetchFail ( applicationId ) {
applicationId = applicationId . applicationId ;
const value = map4 . get ( applicationId ) ;
const result = map4 . set ( applicationId , false ) ;
return false !== value ;
} ,
APPLICATIONS_FETCH : function handleApplicationsFetch ( applicationIds ) {
let done ;
const tmp = _createForOfIteratorHelperLoose ( applicationIds . applicationIds ) ;
let iter = tmp ( ) ;
let flag = false ;
if ( ! iter . done ) {
do {
let value = iter . value ;
2026-07-23 10:11:24 +00:00
let tmp2 = map4 ;
let tmp4 = map4 ;
value = map4 . get ( value ) ;
let result = map4 . set ( value , true ) ;
2026-07-20 16:05:17 +00:00
flag = true !== value ;
let iter2 = tmp ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
return flag ;
} ,
APPLICATIONS_FETCH_SUCCESS : function handleApplicationsFetchSuccess ( applications ) {
let iter2 ;
const tmp2 = _createForOfIteratorHelperLoose ( applications . applications ) ;
let iter = tmp2 ( ) ;
if ( ! iter . done ) {
do {
let value = iter . value ;
if ( true === tmp ) {
2026-07-23 10:11:24 +00:00
let tmp3 = set ;
let addResult = set . add ( value . id ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let tmp5 = addApplication ;
let tmp6 = ctor ;
let tmp7 = addApplication ( ctor . createFromServer ( value ) ) ;
2026-07-20 16:05:17 +00:00
iter2 = tmp2 ( ) ;
iter = iter2 ;
} while ( ! iter2 . done ) ;
}
} ,
APPLICATIONS_FETCH_FAIL : function handleApplicationsFetchFail ( applicationIds ) {
let done ;
const tmp = _createForOfIteratorHelperLoose ( applicationIds . applicationIds ) ;
const iter = tmp ( ) ;
let iter2 = iter ;
let flag = false ;
if ( ! iter . done ) {
do {
let value = iter2 . value ;
2026-07-23 10:11:24 +00:00
let tmp2 = map4 ;
let tmp4 = map4 ;
value = map4 . get ( value ) ;
let result = map4 . set ( value , false ) ;
2026-07-20 16:05:17 +00:00
flag = false !== value ;
let iter3 = tmp ( ) ;
iter2 = iter3 ;
done = iter3 . done ;
} while ( ! done ) ;
}
return flag ;
} ,
APPLICATION_UPDATE : function handleUpdateApplication ( application ) {
updateApplication ( application . application ) ;
} ,
APPLICATION_SUBSCRIPTIONS_FETCH_ENTITLEMENTS_SUCCESS : handleEntitlementsFetched ,
ENTITLEMENTS_FETCH_FOR_USER_SUCCESS : handleEntitlementsFetched ,
ENTITLEMENTS_GIFTABLE_FETCH_SUCCESS : handleEntitlementsFetched ,
GUILD_APPLICATIONS_FETCH_SUCCESS : function handleGuildApplicationsFetchSuccess ( applications ) {
let done ;
const items = [ ] ;
const tmp = _createForOfIteratorHelperLoose ( applications . applications ) ;
let iter = tmp ( ) ;
if ( ! iter . done ) {
do {
let value = iter . value ;
let arr = items . push ( value . id ) ;
2026-07-23 10:11:24 +00:00
let tmp3 = addApplication ;
let tmp4 = ctor ;
let tmp5 = addApplication ( ctor . createFromServer ( value ) ) ;
2026-07-20 16:05:17 +00:00
let iter2 = tmp ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
const result = map1 . set ( applications . guildId , items ) ;
} ,
BILLING_PAYMENTS_FETCH_SUCCESS : function handleFetchPayments ( payments ) {
let iter2 ;
const set = new Set ( ) ;
const tmp = _createForOfIteratorHelperLoose ( payments . payments ) ;
let iter = tmp ( ) ;
if ( ! iter . done ) {
do {
let sku = iter . value . sku ;
let application ;
if ( null != sku ) {
application = sku . application ;
}
let tmp3 = null == application || set . has ( application . id ) ;
if ( ! tmp3 ) {
2026-07-23 10:11:24 +00:00
let tmp4 = addApplication ;
let tmp5 = ctor ;
let tmp6 = addApplication ( ctor . createFromServer ( application ) ) ;
2026-07-20 16:05:17 +00:00
}
iter2 = tmp ( ) ;
iter = iter2 ;
} while ( ! iter2 . done ) ;
}
return set . size > 0 ;
} ,
PAYMENT_UPDATE : function handleUpdatePayment ( payment ) {
payment = payment . payment ;
const sku = payment . sku ;
let application ;
if ( null != sku ) {
application = sku . application ;
}
if ( null == application ) {
return false ;
} else {
2026-07-23 10:11:24 +00:00
addApplication ( ctor . createFromServer ( payment . sku . application ) ) ;
2026-07-20 16:05:17 +00:00
}
} ,
INVITE_RESOLVE_SUCCESS : function handleResolveInvite ( invite ) {
invite = invite . invite ;
if ( null == invite . target_application ) {
return false ;
} else {
2026-07-23 10:11:24 +00:00
addApplication ( ctor . createFromServer ( invite . target_application ) ) ;
2026-07-20 16:05:17 +00:00
}
} ,
GIFT_CODE_RESOLVE_SUCCESS : function handleGiftCodeResolveSuccess ( giftCode ) {
giftCode = giftCode . giftCode ;
const store_listing = giftCode . store_listing ;
let application ;
if ( null != store_listing ) {
application = store_listing . sku . application ;
}
if ( null == application ) {
return false ;
} else {
2026-07-23 10:11:24 +00:00
addApplication ( ctor . createFromServer ( giftCode . store_listing . sku . application ) ) ;
2026-07-20 16:05:17 +00:00
}
} ,
LIBRARY_FETCH_SUCCESS : function handleLibraryApplicationsFetch ( libraryApplications ) {
let done ;
const tmp = _createForOfIteratorHelperLoose ( libraryApplications . libraryApplications ) ;
let iter = tmp ( ) ;
if ( ! iter . done ) {
do {
2026-07-23 10:11:24 +00:00
let tmp2 = addApplication ;
let tmp3 = ctor ;
let tmp4 = addApplication ( ctor . createFromServer ( iter . value . application ) ) ;
2026-07-20 16:05:17 +00:00
let iter2 = tmp ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
} ,
STORE_LISTING_FETCH_SUCCESS : function handleStoreListingFetch ( storeListing ) {
storeListing = storeListing . storeListing ;
if ( null == storeListing . sku . application ) {
return false ;
} else {
2026-07-23 10:11:24 +00:00
addApplication ( ctor . createFromServer ( storeListing . sku . application ) ) ;
2026-07-20 16:05:17 +00:00
}
} ,
LOAD_MESSAGES_SUCCESS : function handleLoadMessages ( messages ) {
messages = messages . messages ;
2026-07-23 10:11:24 +00:00
let item = messages . forEach ( ( attachments ) = > {
( function mergeApplicationsFromMessage ( attachments ) {
2026-07-20 16:05:17 +00:00
attachments = attachments . attachments ;
if ( null != attachments ) {
const item = attachments . forEach ( ( application ) = > {
if ( null != application . application ) {
2026-07-23 10:11:24 +00:00
outer3_18 ( outer3_6 . createFromServer ( application . application ) ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
}
2026-07-23 10:11:24 +00:00
} ) ( attachments ) ;
2026-07-20 16:05:17 +00:00
} ) ;
} ,
USER_PROFILE_FETCH_SUCCESS : function handleProfileFetchSuccess ( userProfile ) {
let application ;
let user ;
( { user , application } = userProfile . userProfile ) ;
let bot = user . bot ;
if ( bot ) {
bot = null != application ;
}
if ( bot ) {
const obj = { userId : user.id , applicationId : application.id } ;
handleAppWithBot ( obj ) ;
}
} ,
APP_DM_OPEN : function handleAppDMOpen ( botUserId ) {
botUserId = botUserId . botUserId ;
if ( null != closure_14 . botUserIdToAppUsage [ botUserId ] ) {
const obj = { } ;
const merged = Object . assign ( tmp ) ;
const _Date = Date ;
obj [ "lastUsedMs" ] = Date . now ( ) ;
closure_14 . botUserIdToAppUsage [ botUserId ] = obj ;
}
} ,
USER_AUTHORIZED_APPS_UPDATE : function handleAuthorizedAppsUpdate ( tokens ) {
const values = Object . values ( tokens . tokens ) ;
for ( let num = 0 ; num < values . length ; num = num + 1 ) {
let tmp = values [ num ] ;
if ( null != tmp ) {
let tmp2 = addApplication ;
2026-07-23 10:11:24 +00:00
let tmp3 = ctor ;
let tmp4 = addApplication ( ctor . createFromServer ( tmp . application ) ) ;
2026-07-20 16:05:17 +00:00
let bot = tmp . application . bot ;
let tmp5 = bot ;
if ( null != bot ) {
let tmp6 = handleAppWithBot ;
let obj = { userId : bot.id , applicationId : tmp.application.id } ;
let tmp7 = handleAppWithBot ( obj ) ;
let tmp8 = bot ;
}
}
}
} ,
LOAD_NOTIFICATION_CENTER_ITEMS_SUCCESS : function handleNotificationCenterItemsSuccess ( items ) {
items = items . items ;
const item = items . forEach ( ( application ) = > {
if ( null != application . application ) {
2026-07-23 10:11:24 +00:00
outer1_18 ( outer1_6 . createFromServer ( application . application ) ) ;
2026-07-20 16:05:17 +00:00
}
} ) ;
} ,
OAUTH2_TOKEN_CREATE : function handleOAuth2TokenCreate ( application ) {
2026-07-23 10:11:24 +00:00
addApplication ( ctor . createFromServer ( application . application ) ) ;
2026-07-20 16:05:17 +00:00
} ,
WISHLIST_FETCH_SUCCESS : handleWishlistAction ,
WISHLIST_ADD_SKU_SUCCESS : handleWishlistAction ,
WISHLIST_REMOVE_SKU_SUCCESS : handleWishlistAction ,
SOCIAL_LAYER_STOREFRONT_LOAD_SUCCESS : function handleSocialLayerStorefrontLoadSuccess ( storefront ) {
const application = storefront . storefront . application ;
if ( null == application ) {
return false ;
} else {
addApplication ( application ) ;
}
} ,
WISHLIST_RECOMMENDATIONS_FETCH_SUCCESS : function handleWishlistRecommendationsFetchSuccess ( data ) {
let done ;
const applications = data . data . applications ;
if ( null != applications ) {
if ( 0 !== applications . length ) {
const tmp2 = _createForOfIteratorHelperLoose ( applications ) ;
let iter = tmp2 ( ) ;
if ( ! iter . done ) {
do {
2026-07-23 10:11:24 +00:00
let tmp3 = addApplication ;
let tmp4 = addApplication ( iter . value ) ;
2026-07-20 16:05:17 +00:00
let iter2 = tmp2 ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
}
}
return false ;
} ,
APPLICATION_WIDGET_CONFIG_FEATURED_FETCH_SUCCESS : handleApplicationWidgetConfigFetchSuccess ,
APPLICATION_WIDGET_CONFIG_DEVELOPER_FETCH_SUCCESS : handleApplicationWidgetConfigFetchSuccess ,
APPLICATION_WIDGET_CONFIG_FETCH_SUCCESS : handleApplicationWidgetConfigFetchSuccess
} ) ;
2026-07-23 10:11:24 +00:00
let result = set . fileFinishedImporting ( "modules/applications/ApplicationStore.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default tmp8 ;