2026-08-25 06:04:03 +00:00
|
|
|
// Module ID: 5892
|
|
|
|
|
// Function ID: 5893
|
2026-08-06 08:05:19 +00:00
|
|
|
// Name: StackNavigator
|
2026-08-25 06:04:03 +00:00
|
|
|
// Dependencies: [19, 21, 1501, 5893]
|
2026-08-06 08:05:19 +00:00
|
|
|
// Exports: createStackNavigator
|
|
|
|
|
|
2026-08-25 06:04:03 +00:00
|
|
|
// Module 5892 (StackNavigator)
|
2026-08-24 06:08:38 +00:00
|
|
|
import createStandardNavigationFactories2 from "createStandardNavigationFactories" /* 1501 */;
|
|
|
|
|
import closure_2 from "noop" /* 19 */;
|
|
|
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
|
|
|
import createStandardNavigationFactories from "createStandardNavigationFactories" /* 1501 */;
|
2026-08-06 08:05:19 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
require = arg1;
|
2026-08-06 08:05:19 +00:00
|
|
|
function StackNavigator(arg0) {
|
|
|
|
|
({ id, initialRouteName, UNSTABLE_routeNamesChangeBehavior, children, layout, screenListeners, screenOptions, screenLayout, UNSTABLE_router } = arg0);
|
|
|
|
|
let merged = Object.assign(arg0, Object.create(null));
|
|
|
|
|
let state;
|
|
|
|
|
let navigation;
|
|
|
|
|
let obj = state(navigation[2]);
|
|
|
|
|
const navigationBuilder = state(navigation[2]).useNavigationBuilder(state(navigation[2]).StackRouter, { id, initialRouteName, UNSTABLE_routeNamesChangeBehavior, children, layout, screenListeners, screenOptions, screenLayout, UNSTABLE_router });
|
|
|
|
|
state = navigationBuilder.state;
|
|
|
|
|
navigation = navigationBuilder.navigation;
|
|
|
|
|
const items = [navigation, , ];
|
|
|
|
|
({ index: arr[1], key: arr[2] } = state);
|
|
|
|
|
({ describe, descriptors, NavigationContent } = navigationBuilder);
|
|
|
|
|
const effect = React.useEffect(() => {
|
|
|
|
|
const addListener = navigation.addListener;
|
|
|
|
|
let addListenerResult;
|
|
|
|
|
if (addListener != null) {
|
|
|
|
|
addListenerResult = addListener("tabPress", (arg0) => {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = arg0;
|
2026-08-06 08:05:19 +00:00
|
|
|
focused = focused.isFocused();
|
|
|
|
|
const animationFrame = requestAnimationFrame(() => {
|
|
|
|
|
let tmp2 = closure_0.index > 0;
|
|
|
|
|
if (tmp2) {
|
|
|
|
|
tmp2 = closure_1;
|
|
|
|
|
}
|
|
|
|
|
if (tmp2) {
|
|
|
|
|
tmp2 = !closure_0.defaultPrevented;
|
|
|
|
|
}
|
|
|
|
|
if (tmp2) {
|
|
|
|
|
const obj = {};
|
2026-08-24 06:08:38 +00:00
|
|
|
const StackActions = closure_2_0(closure_2_1[2]).StackActions;
|
2026-08-06 08:05:19 +00:00
|
|
|
const merged = Object.assign(StackActions.popToTop());
|
|
|
|
|
obj.target = closure_0.key;
|
|
|
|
|
closure_1.dispatch(obj);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
return addListenerResult;
|
|
|
|
|
}, items);
|
|
|
|
|
obj = { children: null };
|
|
|
|
|
obj = {};
|
|
|
|
|
const merged1 = Object.assign(merged);
|
|
|
|
|
obj.direction = obj.useLocale().direction;
|
|
|
|
|
obj.state = state;
|
|
|
|
|
obj.describe = describe;
|
|
|
|
|
obj.descriptors = descriptors;
|
|
|
|
|
obj.navigation = navigation;
|
|
|
|
|
obj[0] = jsx(state(navigation[3]).StackView, {});
|
|
|
|
|
return <NavigationContent />;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const createStackNavigator = function createStackNavigator(arg0) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return createStandardNavigationFactories2.createNavigatorFactory(StackNavigator)(arg0);
|
2026-08-06 08:05:19 +00:00
|
|
|
};
|
|
|
|
|
export const createStackScreen = createStandardNavigationFactories.createScreenFactory();
|