2026-07-23 10:11:24 +00:00
// Module ID: 10394
// Function ID: 80122
2026-07-20 16:05:17 +00:00
// Name: _arrayLikeToArray
2026-07-23 10:11:24 +00:00
// Dependencies: [3991, 1557, 10395, 10019, 1570, 1453, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-23 10:11:24 +00:00
// Module 10394 (_arrayLikeToArray)
import module_3991 from "module_3991" ;
import useSafeAreaInsets from "useSafeAreaInsets" ;
import module_3991 from "module_3991" ;
import useSafeAreaInsets from "useSafeAreaInsets" ;
2026-07-21 06:55:02 +00:00
2026-07-20 16:05:17 +00:00
let done ;
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 obj = { } ;
obj = { } ;
2026-07-23 10:11:24 +00:00
const merged = Object . assign ( useSafeAreaInsets . getSafeAreaInsets ( "main" ) ) ;
obj . main = module_3991 . makeMutable ( obj ) ;
2026-07-20 16:05:17 +00:00
obj = { } ;
2026-07-23 10:11:24 +00:00
const merged1 = Object . assign ( useSafeAreaInsets . getSafeAreaInsets ( "share" ) ) ;
obj . share = module_3991 . makeMutable ( obj ) ;
2026-07-20 16:05:17 +00:00
function _loop ( value ) {
2026-07-23 10:11:24 +00:00
let closure_0 = value ;
importDefault ( 10395 ) ( ( arg0 ) = > {
outer1_1 ( outer1_2 [ 3 ] ) ( outer1_3 [ closure_0 ] , arg0 ) ;
2026-07-20 16:05:17 +00:00
} , value ) ;
}
2026-07-23 10:11:24 +00:00
const tmp4 = ( function _createForOfIteratorHelperLoose ( APP_ENTRY_KEYS ) {
let closure_0 = APP_ENTRY_KEYS ;
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 = APP_ENTRY_KEYS [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( ! iterable ) {
iterable = APP_ENTRY_KEYS [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( iterable ) {
const iter = iterable . call ( APP_ENTRY_KEYS ) ;
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 ;
2026-07-20 16:05:17 +00:00
if ( ! Array . isArray ( APP_ENTRY_KEYS ) ) {
let tmp2 ;
if ( APP_ENTRY_KEYS ) {
if ( "string" === typeof APP_ENTRY_KEYS ) {
tmp2 = _arrayLikeToArray ( APP_ENTRY_KEYS , undefined ) ;
} else {
const toString = { } . toString ;
const substr = toString . call ( APP_ENTRY_KEYS ) . slice ( 8 , - 1 ) ;
let name = substr ;
if ( tmp3 ) {
name = APP_ENTRY_KEYS . constructor . name ;
}
if ( "Map" !== name ) {
if ( "Set" !== name ) {
if ( "Arguments" === name ) {
let arr = _arrayLikeToArray ( APP_ENTRY_KEYS , undefined ) ;
} 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 ;
arr = Array . from ( APP_ENTRY_KEYS ) ;
const callResult = toString . call ( APP_ENTRY_KEYS ) ;
2026-07-23 10:11:24 +00:00
tmp3 = "Object" === substr && APP_ENTRY_KEYS . 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 >= APP_ENTRY_KEYS . 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 = APP_ENTRY_KEYS [ + closure_1 ] ;
2026-07-20 16:05:17 +00:00
}
return obj ;
} ;
}
2026-07-23 10:11:24 +00:00
} ) ( require ( "APP_ENTRY_KEYS" ) . APP_ENTRY_KEYS ) ;
2026-07-20 16:05:17 +00:00
let iter = tmp4 ( ) ;
if ( ! iter . done ) {
do {
let _loopResult = _loop ( iter . value ) ;
let iter2 = tmp4 ( ) ;
iter = iter2 ;
done = iter2 . done ;
} while ( ! done ) ;
}
let closure_4 = { code : "function getSafeAreaInsetsWorklet_useSafeAreaInsetsSharedValueNativeTsx1(appEntryKey='main'){const{safeAreaInsetsSharedValues}=this.__closure;return safeAreaInsetsSharedValues[appEntryKey].get();}" } ;
2026-07-23 10:11:24 +00:00
const tmp6 = ( ( ) = > {
export function getSafeAreaInsetsWorklet() {
2026-07-20 16:05:17 +00:00
let str = arg0 ;
if ( arg0 === undefined ) {
str = "main" ;
}
2026-07-23 10:11:24 +00:00
return outer1_3 [ str ] . get ( ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj = { safeAreaInsetsSharedValues : obj } ;
2026-07-20 16:05:17 +00:00
getSafeAreaInsetsWorklet . __closure = obj ;
getSafeAreaInsetsWorklet . __workletHash = 5220247127549 ;
getSafeAreaInsetsWorklet . __initData = closure_4 ;
return getSafeAreaInsetsWorklet ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
const result = require ( "subscribeToSafeAreaInsets" ) . fileFinishedImporting ( "modules/safe_area/useSafeAreaInsetsSharedValue.native.tsx" ) ;
export default function useSafeAreaInsetsSharedValue() {
const obj = require ( 1453 ) /* context */ ;
return obj [ obj . useAppEntryKey ( obj ) ] ;
} ;