2026-07-20 16:05:17 +00:00
// Module ID: 1474
2026-07-24 07:16:23 +00:00
// Function ID: 17132
2026-07-20 16:05:17 +00:00
// Name: createNavigationContainerRef
2026-07-23 10:11:24 +00:00
// Dependencies: [57, 65, 1461]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 1474 (createNavigationContainerRef)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray" ;
import _toConsumableArray from "_toConsumableArray" ;
const require = arg1 ;
2026-07-20 16:05:17 +00:00
export default function createNavigationContainerRef ( ) {
2026-07-23 10:11:24 +00:00
let items = [ ] ;
const combined = items . concat ( callback ( Object . keys ( _require ( removeListener [ 2 ] ) . CommonActions ) ) , [ "addListener" , "removeListener" , "resetRoot" , "dispatch" , "isFocused" , "canGoBack" , "getRootState" , "getState" , "getParent" , "getCurrentRoute" , "getCurrentOptions" ] ) ;
_require = { } ;
removeListener = function removeListener ( arg0 , arg1 ) {
const dependencyMap = arg1 ;
if ( dependencyMap [ arg0 ] ) {
dependencyMap [ arg0 ] = dependencyMap [ arg0 ] . filter ( ( arg0 ) => arg0 !== closure _0 ) ;
const arr = dependencyMap [ arg0 ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
} ;
let c2 = null ;
2026-07-20 16:05:17 +00:00
const obj = { } ;
Object . defineProperty ( obj , "current" , {
2026-07-23 10:11:24 +00:00
get : ( ) => c2 ,
2026-07-20 16:05:17 +00:00
set : ( arg0 ) => {
let closure _0 = arg0 ;
2026-07-23 10:11:24 +00:00
let _slicedToArray = arg0 ;
2026-07-20 16:05:17 +00:00
if ( null != arg0 ) {
const _Object = Object ;
const entries = Object . entries ( closure _0 ) ;
2026-07-23 10:11:24 +00:00
let item = entries . forEach ( ( arg0 ) => {
const tmp = callback ( arg0 , 2 ) ;
2026-07-20 16:05:17 +00:00
let closure _0 = tmp [ 0 ] ;
const item = tmp [ 1 ] . forEach ( ( arg0 ) => {
closure _0 . addListener ( closure _0 , arg0 ) ;
} ) ;
} ) ;
}
}
} ) ;
obj . isReady = function isReady ( ) {
2026-07-23 10:11:24 +00:00
let isReadyResult = null != _null ;
2026-07-20 16:05:17 +00:00
if ( isReadyResult ) {
2026-07-23 10:11:24 +00:00
isReadyResult = _null . isReady ( ) ;
2026-07-20 16:05:17 +00:00
}
return isReadyResult ;
} ;
return Object . assign ( obj , combined . reduce ( ( arg0 , arg1 ) => {
let closure _0 = arg1 ;
arg0 [ arg1 ] = ( ) => {
const length = arguments . length ;
const array = new Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
array [ num ] = arguments [ num ] ;
}
2026-07-23 10:11:24 +00:00
if ( null != outer1 _2 ) {
return outer1 _2 [ first ] . apply ( outer1 _2 , array ) ;
} else if ( "addListener" === first ) {
first = array [ 0 ] ;
let closure _1 = tmp6 ;
let items = dependencyMap [ first ] ;
2026-07-20 16:05:17 +00:00
if ( ! items ) {
items = [ ] ;
}
2026-07-23 10:11:24 +00:00
dependencyMap [ first ] = items ;
dependencyMap [ first ] . push ( array [ 1 ] ) ;
2026-07-20 16:05:17 +00:00
return ( ) => {
2026-07-23 10:11:24 +00:00
outer2 _1 ( first , closure _1 ) ;
2026-07-20 16:05:17 +00:00
} ;
} else if ( "removeListener" === tmp12 ) {
2026-07-23 10:11:24 +00:00
outer1 _1 ( array [ 0 ] , array [ 1 ] ) ;
2026-07-20 16:05:17 +00:00
} else {
const _console = console ;
console . error ( "The 'navigation' object hasn't been initialized yet. This might happen if you don't have a navigator mounted, or if the navigator hasn't finished mounting. See https://reactnavigation.org/docs/navigating-without-navigation-prop#handling-initialization for more details." ) ;
}
} ;
return arg0 ;
} , { } ) ) ;
} ;
export const NOT _INITIALIZED _ERROR = "The 'navigation' object hasn't been initialized yet. This might happen if you don't have a navigator mounted, or if the navigator hasn't finished mounting. See https://reactnavigation.org/docs/navigating-without-navigation-prop#handling-initialization for more details." ;