// Module ID: 1506 // Function ID: 1507 // Name: createNavigationContainerRef // Dependencies: [1485] // Module 1506 (createNavigationContainerRef) const require = arg1; let dependencyMap = arg6; let c2 = "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."; arg5.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."; arg5.createNavigationContainerRef = function createNavigationContainerRef() { let items = [...Object.keys(closure_0(c1[0]).CommonActions), "addListener", "removeListener", "resetRoot", "dispatch", "isFocused", "canGoBack", "getRootState", "getState", "getParent", "getCurrentRoute", "getCurrentOptions"]; const sum = tmp + 1; const sum1 = sum + 1; const sum2 = sum1 + 1; const sum3 = sum2 + 1; const sum4 = sum3 + 1; const sum5 = sum4 + 1; const sum6 = sum5 + 1; const sum7 = sum6 + 1; const _require = {}; const dependencyMap = null; function removeListener(arg0, arg1) { } let obj = {}; Object.defineProperty(obj, "current", { get: () => c1, set: (arg0) => { let closure_0 = arg0; let closure_1 = arg0; if (null != arg0) { const _Object = Object; const entries = Object.entries(closure_0); let item = entries.forEach((arg0) => { let arr; [, arr] = arg0; const item = arr.forEach((arg0) => { outer1_0.addListener(closure_0, arg0); }); }); } } }); obj.isReady = function isReady() { let isReadyResult = null != _null; if (isReadyResult) { isReadyResult = _null.isReady(); } return isReadyResult; }; const merged = Object.assign(items.reduce((arg0, arg1) => { let closure_0 = arg1; arg0[arg1] = () => { let tmp17; let tmp18; const items = [...arguments]; let first; let c1; if ("removeListener" === first) { [tmp17, tmp18] = items; if (typeof outer1_2 !== "function") { HermesBuiltin.throwTypeError(); } first = tmp18; if (dependencyMap[tmp17]) { tmp20[tmp17] = tmp20[tmp17].filter((arg0) => arg0 !== closure_0); const arr4 = tmp20[tmp17]; } if (outer1_1 != null) { obj.removeListener(tmp17, tmp18); } obj = outer1_1; } else if (null != outer1_1) { const items1 = []; HermesBuiltin.arraySpread(items, 0); return HermesBuiltin.apply(items1, outer1_1); } else if ("addListener" === tmp) { first = items[0]; c1 = tmp6; dependencyMap[first] = dependencyMap[first] || []; dependencyMap[first].push(items[1]); return () => { if (typeof outer1_2 !== "function") { HermesBuiltin.throwTypeError(); } const first = tmp2; if (first[first]) { tmp3[tmp] = tmp3[tmp].filter((arg0) => arg0 !== closure_0); const arr = tmp3[tmp]; } if (c1 != null) { c1.removeListener(tmp, tmp2); } }; } else { const _console = console; console.error(removeListener); } }; return arg0; }, {})); return obj; };