2026-07-20 16:05:17 +00:00
// Module ID: 1469
2026-07-21 22:01:30 +00:00
// Function ID: 17076
2026-07-20 16:05:17 +00:00
// Name: getPartialState
// Dependencies: []
// Module 1469 (getPartialState)
2026-07-21 22:01:30 +00:00
let closure _3 = [ ] ;
2026-07-20 16:05:17 +00:00
let closure _4 = importDefault ( dependencyMap [ 0 ] ) ;
let closure _5 = importDefault ( dependencyMap [ 1 ] ) ;
const importAllResult = importAll ( dependencyMap [ 2 ] ) ;
const jsx = arg1 ( dependencyMap [ 3 ] ) . jsx ;
function getPartialState ( routes ) {
let key ;
let routeNames ;
if ( undefined !== routes ) {
( { key , routeNames } = routes ) ;
const _Object = Object ;
const obj = { stale : true } ;
routes = routes . routes ;
obj . routes = routes . map ( ( state ) => {
let merged = state ;
if ( undefined !== state . state ) {
const _Object = Object ;
const obj = { state : callback ( state . state ) } ;
merged = Object . assign ( { } , state , obj ) ;
}
return merged ;
} ) ;
return Object . assign ( { } , callback2 ( routes , closure _3 ) , obj ) ;
}
}
export default importAllResult . forwardRef ( function BaseNavigationContainer ( children ) {
let independent ;
let onStateChange ;
let onUnhandledAction ;
( { initialState : closure _0 , onStateChange } = children ) ;
const importDefault = onStateChange ;
( { onUnhandledAction , independent } = children ) ;
if ( ! importAllResult . useContext ( importDefault ( dependencyMap [ 4 ] ) ) . isDefault ) {
if ( ! independent ) {
const _Error = Error ;
const error = new Error ( "Looks like you have nested a 'NavigationContainer' inside another. Normally you need only one container at the root of the app, so this was probably an error. If this was intentional, pass 'independent={true}' explicitly. Note that this will make the child navigators disconnected from the parent and you won't be able to navigate between them." ) ;
throw error ;
}
}
const tmp6 = callback ( importDefault ( dependencyMap [ 5 ] ) ( ( ) => {
let tmp2 ;
if ( null != closure _0 ) {
tmp2 = closure _0 ;
}
return closure _8 ( tmp2 ) ;
} ) , 5 ) ;
const first = tmp6 [ 0 ] ;
const dependencyMap = first ;
let closure _3 = tmp8 ;
let callback = tmp9 ;
let closure _5 = tmp10 ;
const jsx = importAllResult . useRef ( true ) ;
let closure _8 = importAllResult . useRef ( ) ;
callback = importAllResult . useCallback ( ( ) => ref2 . current , [ ] ) ;
const callback1 = importAllResult . useCallback ( ( current ) => {
closure _8 . current = current ;
} , [ ] ) ;
const tmp14 = importDefault ( dependencyMap [ 6 ] ) ( ) ;
const listeners = tmp14 . listeners ;
const addListener = tmp14 . addListener ;
const tmp15 = importDefault ( dependencyMap [ 7 ] ) ( ) ;
const keyedListeners = tmp15 . keyedListeners ;
const addKeyedListener = tmp15 . addKeyedListener ;
const items = [ listeners . focus ] ;
const callback2 = importAllResult . useCallback ( ( arg0 ) => {
if ( null == listeners . focus [ 0 ] ) {
const _console = console ;
console . error ( arg0 ( first [ 8 ] ) . NOT _INITIALIZED _ERROR ) ;
} else {
const focus = listeners . focus ;
focus [ 0 ] ( ( dispatch ) => dispatch . dispatch ( dispatch ) ) ;
}
} , items ) ;
const items1 = [ listeners . focus ] ;
const callback3 = importAllResult . useCallback ( ( ) => {
if ( null == listeners . focus [ 0 ] ) {
return false ;
} else {
const focus = listeners . focus ;
const tmp2 = focus [ 0 ] ( ( canGoBack ) => canGoBack . canGoBack ( ) ) ;
let result = ! tmp3 ;
if ( ! ! tmp2 . handled ) {
result = tmp2 . result ;
}
return result ;
}
} , items1 ) ;
const items2 = [ keyedListeners . getState , listeners . focus ] ;
const callback4 = importAllResult . useCallback ( ( key ) => {
key = undefined ;
if ( null != key ) {
key = key . key ;
}
if ( null == key ) {
let key1 ;
if ( null != keyedListeners . getState . root ) {
const getState = keyedListeners . getState ;
key1 = getState . root ( ) . key ;
}
key = key1 ;
}
const onStateChange = key ;
if ( null == key ) {
const _console = console ;
console . error ( key ( first [ 8 ] ) . NOT _INITIALIZED _ERROR ) ;
} else {
const focus = listeners . focus ;
focus [ 0 ] ( ( dispatch ) => {
const CommonActions = dispatch ( closure _2 [ 9 ] ) . CommonActions ;
return dispatch . dispatch ( Object . assign ( { } , CommonActions . reset ( dispatch ) , { target : key } ) ) ;
} ) ;
}
} , items2 ) ;
const items3 = [ keyedListeners . getState ] ;
const callback5 = importAllResult . useCallback ( ( ) => {
let rootResult ;
if ( null != keyedListeners . getState . root ) {
const getState = keyedListeners . getState ;
rootResult = getState . root ( ) ;
}
return rootResult ;
} , items3 ) ;
const items4 = [ callback5 ] ;
const callback6 = importAllResult . useCallback ( ( ) => {
const tmp = callback5 ( ) ;
if ( null != tmp ) {
return onStateChange ( first [ 10 ] ) ( tmp ) ;
}
} , items4 ) ;
const tmp21 = importDefault ( dependencyMap [ 11 ] ) ( ) ;
const tmp22 = importDefault ( dependencyMap [ 12 ] ) ( { } ) ;
const addOptionsGetter = tmp22 . addOptionsGetter ;
const getCurrentOptions = tmp22 . getCurrentOptions ;
const items5 = [ callback3 , callback2 , tmp21 , getCurrentOptions , callback6 , callback5 , listeners . focus , callback4 ] ;
const memo = importAllResult . useMemo ( ( ) => {
const keys = Object . keys ( callback ( first [ 9 ] ) . CommonActions ) ;
const reduced = keys . reduce ( ( arg0 , arg1 ) => {
arg0 [ arg1 ] = ( ) => callback ( arg1 ( closure _2 [ 9 ] ) . CommonActions [ closure _0 ] ( ... arguments ) ) ;
return arg0 ;
} , { } ) ;
return Object . assign ( { } , reduced , tmp21 . create ( "root" ) , {
dispatch : callback2 ,
resetRoot : callback4 ,
isFocused ( ) {
return true ;
} ,
canGoBack : callback3 ,
getParent ( ) {
} ,
getState ( ) {
return ref . current ;
} ,
getRootState : callback5 ,
getCurrentRoute : callback6 ,
getCurrentOptions ,
isReady ( ) {
return null != focus . focus [ 0 ] ;
}
} ) ;
} , items5 ) ;
const items6 = [ memo ] ;
const imperativeHandle = importAllResult . useImperativeHandle ( arg1 , ( ) => memo , items6 ) ;
const items7 = [ tmp21 ] ;
const callback7 = importAllResult . useCallback ( ( action , noop ) => {
tmp21 . emit ( { type : "__unsafe_action__" , data : { action , noop , stack : ref4 . current } } ) ;
} , items7 ) ;
let closure _25 = importAllResult . useRef ( ) ;
const items8 = [ tmp21 ] ;
const callback8 = importAllResult . useCallback ( ( current ) => {
if ( ref3 . current !== current ) {
ref3 . current = current ;
let obj = { type : "options" } ;
obj = { options : current } ;
obj . data = obj ;
tmp21 . emit ( obj ) ;
}
} , items8 ) ;
let closure _27 = importAllResult . useRef ( ) ;
const items9 = [ addListener , addKeyedListener , callback7 , callback8 ] ;
const items10 = [ tmp6 [ 3 ] , tmp6 [ 4 ] ] ;
const memo1 = importAllResult . useMemo ( ( ) => ( { addListener , addKeyedListener , onDispatchAction : callback7 , onOptionsChange : callback8 , stackRef : closure _27 } ) , items9 ) ;
const memo2 = importAllResult . useMemo ( ( ) => ( { scheduleUpdate : tmp10 , flushUpdates : tmp11 } ) , items10 ) ;
let closure _28 = importAllResult . useRef ( true ) ;
const callback9 = importAllResult . useCallback ( ( ) => ref5 . current , [ ] ) ;
const items11 = [ first , tmp6 [ 1 ] , tmp6 [ 2 ] , callback , callback1 , callback9 , addOptionsGetter ] ;
const memo3 = importAllResult . useMemo ( ( ) => ( { state : first , getState : tmp8 , setState : tmp9 , getKey : callback , setKey : callback1 , getIsInitial : callback9 , addOptionsGetter } ) , items11 ) ;
let closure _30 = importAllResult . useRef ( onStateChange ) ;
let closure _31 = importAllResult . useRef ( first ) ;
const effect = importAllResult . useEffect ( ( ) => {
closure _28 . current = false ;
closure _30 . current = onStateChange ;
closure _31 . current = first ;
} ) ;
const items12 = [ callback5 , tmp21 , first ] ;
const effect1 = importAllResult . useEffect ( ( ) => {
tmp21 . emit ( { type : "state" , data : { state : first } } ) ;
let current = ! ref . current ;
if ( current ) {
current = ref6 . current ;
}
if ( current ) {
ref6 . current ( tmp ) ;
}
ref . current = false ;
} , items12 ) ;
let callback10 = importAllResult . useCallback ( ( arg0 ) => {
} , [ ] ) ;
let obj = { value : memo } ;
obj = { value : memo2 } ;
obj = { value : memo1 } ;
const obj1 = { value : memo3 } ;
const obj2 = { } ;
if ( null != onUnhandledAction ) {
callback10 = onUnhandledAction ;
}
obj2 . value = callback10 ;
obj2 . children = jsx ( importDefault ( dependencyMap [ 17 ] ) , { children : children . children } ) ;
obj1 . children = jsx ( importDefault ( dependencyMap [ 16 ] ) . Provider , obj2 ) ;
obj . children = jsx ( importDefault ( dependencyMap [ 4 ] ) . Provider , obj1 ) ;
obj . children = jsx ( importDefault ( dependencyMap [ 15 ] ) . Provider , obj ) ;
obj . children = jsx ( arg1 ( dependencyMap [ 14 ] ) . ScheduleUpdateContext . Provider , obj ) ;
const tmp34Result = jsx ( importDefault ( dependencyMap [ 13 ] ) . Provider , obj ) ;
let tmp36 = tmp34Result ;
if ( independent ) {
const obj3 = { value : undefined } ;
const obj4 = { value : undefined , children : tmp34Result } ;
obj3 . children = jsx ( importDefault ( dependencyMap [ 19 ] ) . Provider , obj4 ) ;
tmp36 = jsx ( importDefault ( dependencyMap [ 18 ] ) . Provider , obj3 ) ;
}
return tmp36 ;
} ) ;