2026-07-28 08:39:19 +00:00
// Module ID: 4200
// Function ID: 35354
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-28 08:39:19 +00:00
// Dependencies: [6, 7, 15, 17, 18, 4201, 1194, 653, 587, 4209, 1360, 22, 566, 686, 2]
2026-07-20 16:05:17 +00:00
2026-07-28 08:39:19 +00:00
// Module 4200 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct" ;
import ME from "ME" ;
import _possibleConstructorReturn from "_possibleConstructorReturn" ;
import _getPrototypeOf from "_getPrototypeOf" ;
import _inherits from "_inherits" ;
import closure_9 from "_isNativeReflectConstruct" ;
import closure_10 from "_isNativeReflectConstruct" ;
import { LibraryApplicationFlags } from "ME" ;
import set from "_possibleConstructorReturn" ;
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 getSavedData() {
2026-07-23 10:11:24 +00:00
const Storage = require ( 587 ) /* Storage */ . Storage ;
let obj = Storage . get ( LibraryApplicationStore ) ;
2026-07-20 16:05:17 +00:00
if ( null == obj ) {
obj = { } ;
}
return obj ;
}
function saveActiveLaunchOptionIds() {
2026-07-23 10:11:24 +00:00
const Storage = require ( 587 ) /* Storage */ . Storage ;
2026-07-20 16:05:17 +00:00
const obj = { } ;
const merged = Object . assign ( getSavedData ( ) ) ;
obj [ "activeLaunchOptionIds" ] = closure_18 ;
2026-07-23 10:11:24 +00:00
const result = Storage . set ( LibraryApplicationStore , obj ) ;
2026-07-20 16:05:17 +00:00
}
function saveActiveLibraryApplicationBranchIds() {
2026-07-23 10:11:24 +00:00
const Storage = require ( 587 ) /* Storage */ . Storage ;
2026-07-20 16:05:17 +00:00
const obj = { } ;
const merged = Object . assign ( getSavedData ( ) ) ;
obj [ "activeLibraryApplicationBranchIds" ] = closure_17 ;
2026-07-23 10:11:24 +00:00
const result = Storage . set ( LibraryApplicationStore , obj ) ;
2026-07-20 16:05:17 +00:00
}
function setLibraryApplications ( libraryApplications ) {
let done ;
const tmp = _createForOfIteratorHelperLoose ( libraryApplications ) ;
let iter = tmp ( ) ;
if ( ! iter . done ) {
do {
let tmp2 = closure_9 ;
let fromServer = closure_9 . createFromServer ( iter . value ) ;
2026-07-23 10:11:24 +00:00
let tmp4 = require ;
let tmp5 = dependencyMap ;
2026-07-28 08:39:19 +00:00
let obj = require ( 4209 ) /* convertToTransitionState */ ;
2026-07-20 16:05:17 +00:00
let tmp6 = closure_14 ;
closure_14 [ obj . getComboId ( fromServer . id , fromServer . branchId ) ] = fromServer ;
let iter2 = tmp ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
}
function handleLibraryApplicationUpdate ( libraryApplication ) {
const fromServer = closure_9 . createFromServer ( libraryApplication . libraryApplication ) ;
2026-07-28 08:39:19 +00:00
const comboId = require ( 4209 ) /* convertToTransitionState */ . getComboId ( fromServer . id , fromServer . branchId ) ;
2026-07-20 16:05:17 +00:00
closure_14 [ comboId ] = fromServer ;
set . delete ( comboId ) ;
}
function _getLibraryApplication ( applicationId , branchId ) {
2026-07-28 08:39:19 +00:00
const comboId = require ( 4209 ) /* convertToTransitionState */ . getComboId ( applicationId , branchId ) ;
2026-07-23 10:11:24 +00:00
let tmp2 = table [ comboId ] ;
2026-07-20 16:05:17 +00:00
if ( null == tmp2 ) {
2026-07-23 10:11:24 +00:00
tmp2 = table2 [ comboId ] ;
2026-07-20 16:05:17 +00:00
}
return tmp2 ;
}
function _getAllLibraryApplications() {
const merged = Object . assign ( closure_15 ) ;
const merged1 = Object . assign ( closure_14 ) ;
return { } ;
}
2026-07-23 10:11:24 +00:00
const LibraryApplicationStore = "LibraryApplicationStore" ;
let c13 = false ;
2026-07-20 16:05:17 +00:00
let closure_14 = { } ;
let closure_15 = { } ;
2026-07-23 10:11:24 +00:00
let set = new Set ( ) ;
2026-07-20 16:05:17 +00:00
let closure_17 = { } ;
let closure_18 = { } ;
2026-07-23 10:11:24 +00:00
let c19 = false ;
let tmp3 = ( ( Store ) = > {
2026-07-20 16:05:17 +00:00
class LibraryApplicationStore {
constructor ( ) {
self = this ;
2026-07-23 10:11:24 +00:00
tmp = outer1_4 ( this , LibraryApplicationStore ) ;
obj = outer1_7 ( LibraryApplicationStore ) ;
tmp2 = outer1_6 ;
if ( outer1_20 ( ) ) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis ;
_Reflect = Reflect ;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_7 ;
2026-07-20 16:05:17 +00:00
tmp8 = arguments ;
2026-07-23 10:11:24 +00:00
constructResult = Reflect . construct ( obj , arguments , outer1_7 ( self ) . constructor ) ;
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments ;
tmp4 = arguments ;
constructResult = obj ( . . . arguments ) ;
}
return tmp2 ( self , constructResult ) ;
}
}
callback2 ( LibraryApplicationStore , Store ) ;
let obj = {
key : "initialize" ,
value() {
2026-07-23 10:11:24 +00:00
this . waitFor ( outer1_10 ) ;
const Storage = LibraryApplicationStore ( outer1_3 [ 8 ] ) . Storage ;
const value = Storage . get ( outer1_12 ) ;
2026-07-20 16:05:17 +00:00
if ( null != value ) {
if ( null == value . activeLaunchOptionIds ) {
2026-07-23 10:11:24 +00:00
outer1_24 ( ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
const outer1_18 = value . activeLaunchOptionIds ;
2026-07-20 16:05:17 +00:00
}
if ( null == value . activeLibraryApplicationBranchIds ) {
2026-07-23 10:11:24 +00:00
outer1_25 ( ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
const outer1_17 = value . activeLibraryApplicationBranchIds ;
2026-07-20 16:05:17 +00:00
}
}
}
} ;
const items = [ obj , , , , , , , , , , , , ] ;
obj = {
key : "libraryApplications" ,
get ( ) {
2026-07-23 10:11:24 +00:00
return ( function getLibraryApplicationsFiltered ( arg0 ) {
let closure_0 = arg0 ;
const tmp = outer2_28 ( ) ;
let closure_1 = tmp ;
2026-07-20 16:05:17 +00:00
const keys = Object . keys ( tmp ) ;
const item = keys . forEach ( ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
if ( ! callback ( tmp [ arg0 ] ) ) {
delete tmp [ tmp2 ] ;
2026-07-20 16:05:17 +00:00
}
} ) ;
return tmp ;
2026-07-23 10:11:24 +00:00
} ) ( ( isHidden ) = > ! isHidden . isHidden ( ) ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 1 ] = obj ;
obj = {
key : "getAllLibraryApplications" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_28 ( ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 2 ] = obj ;
items [ 3 ] = {
key : "hasLibraryApplication" ,
value() {
2026-07-23 10:11:24 +00:00
return Object . keys ( outer1_28 ( ) ) . length > 0 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 4 ] = {
key : "hasApplication" ,
value ( arg0 , arg1 ) {
let flag = arg2 ;
if ( arg2 === undefined ) {
flag = false ;
}
2026-07-23 10:11:24 +00:00
const obj = outer1_27 ( arg0 , arg1 ) ;
2026-07-20 16:05:17 +00:00
let tmp = null != obj ;
if ( tmp ) {
let result = ! ( ! flag && obj . isHidden ( ) ) ;
if ( result ) {
2026-07-23 10:11:24 +00:00
result = LibraryApplicationStore ( outer1_3 [ 9 ] ) . isUserEntitledToLibraryApplication ( obj ) ;
const obj2 = LibraryApplicationStore ( outer1_3 [ 9 ] ) ;
2026-07-20 16:05:17 +00:00
}
tmp = result ;
const tmp2 = ! flag && obj . isHidden ( ) ;
}
return tmp ;
}
} ;
items [ 5 ] = {
key : "getLibraryApplication" ,
value ( arg0 , arg1 ) {
let flag = arg2 ;
if ( arg2 === undefined ) {
flag = false ;
}
2026-07-23 10:11:24 +00:00
const tmp = outer1_27 ( arg0 , arg1 ) ;
2026-07-20 16:05:17 +00:00
let tmp2 = tmp ;
if ( flag ) {
tmp2 = tmp ;
if ( null != tmp ) {
let tmp6 = null ;
if ( obj . isUserEntitledToLibraryApplication ( tmp ) ) {
tmp6 = tmp ;
}
tmp2 = tmp6 ;
2026-07-23 10:11:24 +00:00
obj = LibraryApplicationStore ( outer1_3 [ 9 ] ) ;
2026-07-20 16:05:17 +00:00
}
}
return tmp2 ;
}
} ;
items [ 6 ] = {
key : "getActiveLibraryApplication" ,
value ( arg0 ) {
let flag = arg1 ;
if ( arg1 === undefined ) {
flag = false ;
}
2026-07-23 10:11:24 +00:00
if ( null != outer1_17 [ arg0 ] ) {
const comboId = LibraryApplicationStore ( outer1_3 [ 9 ] ) . getComboId ( arg0 , tmp ) ;
let obj2 = outer1_14 [ comboId ] ;
2026-07-20 16:05:17 +00:00
if ( null == obj2 ) {
2026-07-23 10:11:24 +00:00
obj2 = outer1_15 [ comboId ] ;
2026-07-20 16:05:17 +00:00
}
if ( null != obj2 ) {
if ( obj3 . isUserEntitledToLibraryApplication ( obj2 ) ) {
return obj2 ;
}
2026-07-23 10:11:24 +00:00
obj3 = LibraryApplicationStore ( outer1_3 [ 9 ] ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const obj = LibraryApplicationStore ( outer1_3 [ 9 ] ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const tmp9 = outer1_28 ( ) ;
2026-07-20 16:05:17 +00:00
for ( const key10030 in tmp9 ) {
let tmp14 = key10030 ;
if ( tmp9 [ key10030 ] . id !== arg0 ) {
continue ;
} else {
let obj4 = tmp9 [ key10030 ] ;
2026-07-23 10:11:24 +00:00
let tmp10 = LibraryApplicationStore ;
let tmp11 = outer1_3 ;
let obj5 = LibraryApplicationStore ( outer1_3 [ 9 ] ) ;
2026-07-20 16:05:17 +00:00
let tmp12 = obj4 ;
if ( ! obj5 . isUserEntitledToLibraryApplication ( obj4 ) ) {
continue ;
} else {
if ( ! flag ) {
let tmp13 = obj4 ;
}
return obj4 ;
}
continue ;
}
continue ;
}
}
} ;
items [ 7 ] = {
key : "isUpdatingFlags" ,
value ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
return outer1_16 . has ( LibraryApplicationStore ( outer1_3 [ 9 ] ) . getComboId ( arg0 , arg1 ) ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 8 ] = {
key : "getActiveLaunchOptionId" ,
value ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
const obj = LibraryApplicationStore ( outer1_3 [ 9 ] ) ;
return outer1_18 [ obj . getComboId ( obj , arg0 , arg1 ) ] ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 9 ] = {
key : "fetched" ,
get ( ) {
2026-07-23 10:11:24 +00:00
return outer1_13 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 10 ] = {
key : "entitledBranchIds" ,
get ( ) {
2026-07-23 10:11:24 +00:00
const tmp = outer1_1 ( outer1_3 [ 11 ] ) ;
const values = outer1_1 ( outer1_3 [ 11 ] ) ( outer1_28 ( ) ) . values ( ) ;
const found = values . filter ( ( libraryApplication ) = > LibraryApplicationStore ( outer2_3 [ 9 ] ) . isUserEntitledToLibraryApplication ( libraryApplication ) ) ;
const tmpResult = outer1_1 ( outer1_3 [ 11 ] ) ( outer1_28 ( ) ) ;
2026-07-20 16:05:17 +00:00
return found . map ( ( branchId ) = > branchId . branchId ) . value ( ) ;
}
} ;
items [ 11 ] = {
key : "hasRemovedLibraryApplicationThisSession" ,
get ( ) {
2026-07-23 10:11:24 +00:00
return outer1_19 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 12 ] = {
key : "whenInitialized" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0 ;
2026-07-20 16:05:17 +00:00
const result = this . addConditionalChangeListener ( ( ) = > {
2026-07-23 10:11:24 +00:00
if ( outer2_13 ) {
2026-07-20 16:05:17 +00:00
const _setImmediate = setImmediate ;
2026-07-23 10:11:24 +00:00
setImmediate ( closure_0 ) ;
2026-07-20 16:05:17 +00:00
return false ;
}
} ) ;
}
} ;
return callback ( LibraryApplicationStore , items ) ;
2026-07-23 10:11:24 +00:00
} ) ( require ( "initialize" ) . Store ) ;
2026-07-20 16:05:17 +00:00
tmp3 . displayName = "LibraryApplicationStore" ;
2026-07-23 10:11:24 +00:00
tmp3 = new tmp3 ( require ( "dispatcher" ) , {
2026-07-20 16:05:17 +00:00
LOGOUT : function handleLogout() {
2026-07-23 10:11:24 +00:00
let c13 = false ;
2026-07-20 16:05:17 +00:00
} ,
LIBRARY_FETCH_SUCCESS : function handleFetchSuccess ( libraryApplications ) {
let closure_14 = { } ;
setLibraryApplications ( libraryApplications . libraryApplications ) ;
2026-07-23 10:11:24 +00:00
let c13 = true ;
2026-07-20 16:05:17 +00:00
} ,
SKU_PURCHASE_SUCCESS : function handlePurchaseSuccess ( libraryApplications ) {
setLibraryApplications ( libraryApplications . libraryApplications ) ;
} ,
LIBRARY_APPLICATION_FLAGS_UPDATE_START : function handleFlagsUpdateStart ( flags ) {
let applicationId ;
let branchId ;
( { applicationId , branchId } = flags ) ;
2026-07-28 08:39:19 +00:00
const comboId = require ( 4209 ) /* convertToTransitionState */ . getComboId ( applicationId , branchId ) ;
2026-07-20 16:05:17 +00:00
const obj2 = _getLibraryApplication ( applicationId , branchId ) ;
let hasFlagResult = null != obj2 && ! obj2 . isHidden ( ) ;
if ( hasFlagResult ) {
2026-07-23 10:11:24 +00:00
hasFlagResult = importAll ( 1360 ) . hasFlag ( flags . flags , LibraryApplicationFlags . HIDDEN ) ;
const obj3 = importAll ( 1360 ) ;
2026-07-20 16:05:17 +00:00
}
if ( hasFlagResult ) {
2026-07-23 10:11:24 +00:00
let c19 = true ;
2026-07-20 16:05:17 +00:00
}
set . add ( comboId ) ;
} ,
LIBRARY_APPLICATION_FLAGS_UPDATE_SUCCESS : handleLibraryApplicationUpdate ,
LIBRARY_APPLICATION_UPDATE : handleLibraryApplicationUpdate ,
LIBRARY_APPLICATION_ACTIVE_LAUNCH_OPTION_UPDATE : function handleActiveLaunchOptionIdUpdate ( arg0 ) {
let applicationId ;
let branchId ;
let launchOptionId ;
( { applicationId , branchId , launchOptionId } = arg0 ) ;
2026-07-28 08:39:19 +00:00
closure_18 [ require ( 4209 ) /* convertToTransitionState */ . getComboId ( applicationId , branchId ) ] = launchOptionId ;
2026-07-20 16:05:17 +00:00
saveActiveLaunchOptionIds ( ) ;
} ,
LIBRARY_APPLICATION_ACTIVE_BRANCH_UPDATE : function handleActiveBranchUpdate ( arg0 ) {
let applicationId ;
let branchId ;
( { applicationId , branchId } = arg0 ) ;
2026-07-23 10:11:24 +00:00
if ( table3 [ applicationId ] === branchId ) {
2026-07-20 16:05:17 +00:00
return false ;
} else {
2026-07-23 10:11:24 +00:00
table3 [ applicationId ] = branchId ;
2026-07-20 16:05:17 +00:00
saveActiveLibraryApplicationBranchIds ( ) ;
}
} ,
LIBRARY_APPLICATIONS_TEST_MODE_ENABLED : function handleTestModeEnabled ( libraryApplications ) {
let done ;
const tmp = _createForOfIteratorHelperLoose ( libraryApplications . libraryApplications ) ;
let iter = tmp ( ) ;
if ( ! iter . done ) {
do {
let value = iter . value ;
2026-07-23 10:11:24 +00:00
let tmp2 = require ;
let tmp3 = dependencyMap ;
2026-07-28 08:39:19 +00:00
let obj = require ( 4209 ) /* convertToTransitionState */ ;
2026-07-20 16:05:17 +00:00
let tmp4 = closure_15 ;
closure_15 [ obj . getComboId ( value . id , value . branchId ) ] = value ;
let iter2 = tmp ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
} ,
DEVELOPER_TEST_MODE_RESET : function handleTestModeDisabled() {
let closure_15 = { } ;
}
} ) ;
2026-07-23 10:11:24 +00:00
let result = set . fileFinishedImporting ( "stores/LibraryApplicationStore.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default tmp3 ;