// Module ID: 6367 // Function ID: 6368 // Name: Screen // Dependencies: [32, 19, 17, 21, 1632, 6347, 6359, 6343, 6340, 6326, 1501] // Exports: Screen // Module 6367 (Screen) import _slicedToArray from "_slicedToArray"; import noop from "noop"; import get_ActivityIndicator from "get ActivityIndicator"; import jsxProd from "jsxProd"; let StyleSheet; let c4; let c5; let closure_6; let require = arg1; ({ StyleSheet, View: c4 } = get_ActivityIndicator); ({ jsx: c5, jsxs: closure_6 } = jsxProd); const styles = StyleSheet.create({ container: { flex: 1 }, content: { flex: 1 }, header: { zIndex: 1 }, absolute: { position: "absolute", top: 0, start: 0, end: 0 } }); export const Screen = function Screen(aria_hidden) { let children; let noop; let headerStatusBarHeight; let headerTransparent; let navigation; let route; let style; let tmp10; let obj = require(headerStatusBarHeight[4]); let obj1 = React; const safeAreaInsets = obj.useSafeAreaInsets(); const context = React.useContext(require(headerStatusBarHeight[5]).HeaderShownContext); let num = React.useContext(require(headerStatusBarHeight[6]).HeaderHeightContext); const modal = aria_hidden.modal; let tmp5 = undefined !== modal; if (tmp5) { tmp5 = modal; } require = tmp5; const headerShown = aria_hidden.headerShown; let tmp6 = undefined === headerShown; if (!tmp6) { tmp6 = headerShown; } ({ headerStatusBarHeight, headerTransparent } = aria_hidden); if (undefined === headerStatusBarHeight) { let num2 = 0; if (!context) { num2 = safeAreaInsets.top; } headerStatusBarHeight = num2; } ({ route, navigation, children, style } = aria_hidden); const frameSize = require(headerStatusBarHeight[7]).useFrameSize((layout) => tmp5(headerStatusBarHeight[8]).getDefaultHeaderHeight(layout, tmp5, headerStatusBarHeight)); const ref = obj1.useRef(null); const tmpResult = require(headerStatusBarHeight[7]); [tmp10, noop] = ref(obj1.useState(frameSize), 2); const items = [route.name]; const layoutEffect = obj1.useLayoutEffect(() => { const current = ref.current; if (current != null) { current.measure((arg0, arg1, arg2, arg3) => { callback(arg3); }); } }, items); obj = { "aria-hidden": !aria_hidden.focused, style: items1, collapsable: false, children: null }; items1 = [container.container, style]; let tmp15Result = null; if (tmp6) { obj = { route: null, navigation: null, children: null }; obj[0] = route; obj[1] = navigation; const items2 = [tmp13.header, ]; let tmp17 = null; if (headerTransparent) { const items3 = [tmp13.absolute, ]; obj1 = { minHeight: null }; obj1[0] = tmp10; items3[1] = obj1; tmp17 = items3; } const obj2 = { style: null, children: null }; items2[1] = tmp17; obj2[0] = items2; const obj3 = { ref: null, pointerEvents: "box-none", onLayout: null, children: null }; obj3[0] = ref; obj3[2] = function onLayout(nativeEvent) { callback(nativeEvent.nativeEvent.layout.height); }; obj3[3] = aria_hidden.header; obj2[1] = closure_5(closure_4, obj3); obj[2] = closure_5(closure_4, obj2); tmp15Result = tmp15(tmp(tmp2[10]).NavigationProvider, obj); } const items4 = [tmp15Result, ]; const obj4 = { style: container.content, children: null }; let tmp20 = context; if (!context) { tmp20 = false !== tmp6; } const obj5 = { value: tmp20, children: null }; if (!tmp6) { if (num == null) { num = 0; } } obj5[1] = closure_5(require(headerStatusBarHeight[6]).HeaderHeightContext.Provider, { value: tmp10, children }); obj4[1] = closure_5(require(headerStatusBarHeight[5]).HeaderShownContext.Provider, obj5); items4[1] = closure_5(closure_4, obj4); obj[3] = items4; return closure_6(require(headerStatusBarHeight[9]).Background, obj); };