repoweaver
Version:
A GitHub App that skillfully weaves multiple templates together to create and update repositories with intelligent merge strategies
1 lines • 43.9 kB
JSON
{"ast":null,"code":"\"use strict\";\n\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nvar _excluded = [\"height\", \"minHeight\", \"maxHeight\", \"backgroundColor\", \"borderBottomColor\", \"borderBottomEndRadius\", \"borderBottomLeftRadius\", \"borderBottomRightRadius\", \"borderBottomStartRadius\", \"borderBottomWidth\", \"borderColor\", \"borderEndColor\", \"borderEndWidth\", \"borderLeftColor\", \"borderLeftWidth\", \"borderRadius\", \"borderRightColor\", \"borderRightWidth\", \"borderStartColor\", \"borderStartWidth\", \"borderStyle\", \"borderTopColor\", \"borderTopEndRadius\", \"borderTopLeftRadius\", \"borderTopRightRadius\", \"borderTopStartRadius\", \"borderTopWidth\", \"borderWidth\", \"boxShadow\", \"elevation\", \"shadowColor\", \"shadowOffset\", \"shadowOpacity\", \"shadowRadius\", \"opacity\", \"transform\"];\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nimport { useNavigation, useTheme } from '@react-navigation/native';\nimport Color from 'color';\nimport * as React from 'react';\nimport Animated from \"react-native-web/dist/exports/Animated\";\nimport Platform from \"react-native-web/dist/exports/Platform\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport View from \"react-native-web/dist/exports/View\";\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport searchIcon from \"../assets/search-icon.png\";\nimport { useFrameSize } from \"../useFrameSize.js\";\nimport { getDefaultHeaderHeight } from \"./getDefaultHeaderHeight.js\";\nimport { HeaderBackButton } from \"./HeaderBackButton.js\";\nimport { HeaderBackground } from \"./HeaderBackground.js\";\nimport { HeaderButton } from \"./HeaderButton.js\";\nimport { HeaderIcon } from \"./HeaderIcon.js\";\nimport { HeaderSearchBar } from \"./HeaderSearchBar.js\";\nimport { HeaderShownContext } from \"./HeaderShownContext.js\";\nimport { HeaderTitle } from \"./HeaderTitle.js\";\nimport { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nvar IPAD_MINI_MEDIUM_WIDTH = 414;\nvar warnIfHeaderStylesDefined = function warnIfHeaderStylesDefined(styles) {\n Object.keys(styles).forEach(function (styleProp) {\n var value = styles[styleProp];\n if (styleProp === 'position' && value === 'absolute') {\n console.warn(\"position: 'absolute' is not supported on headerStyle. If you would like to render content under the header, use the 'headerTransparent' option.\");\n } else if (value !== undefined) {\n console.warn(`${styleProp} was given a value of ${value}, this has no effect on headerStyle.`);\n }\n });\n};\nexport function Header(props) {\n var insets = useSafeAreaInsets();\n var frame = useFrameSize(function (size) {\n return size;\n }, true);\n var _useTheme = useTheme(),\n colors = _useTheme.colors;\n var navigation = useNavigation();\n var isParentHeaderShown = React.useContext(HeaderShownContext);\n var _React$useState = React.useState(false),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n searchBarVisible = _React$useState2[0],\n setSearchBarVisible = _React$useState2[1];\n var _React$useState3 = React.useState(undefined),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n titleLayout = _React$useState4[0],\n setTitleLayout = _React$useState4[1];\n var onTitleLayout = function onTitleLayout(e) {\n var _e$nativeEvent$layout = e.nativeEvent.layout,\n height = _e$nativeEvent$layout.height,\n width = _e$nativeEvent$layout.width;\n setTitleLayout(function (titleLayout) {\n if (titleLayout && height === titleLayout.height && width === titleLayout.width) {\n return titleLayout;\n }\n return {\n height: height,\n width: width\n };\n });\n };\n var _props$layout = props.layout,\n layout = _props$layout === void 0 ? frame : _props$layout,\n _props$modal = props.modal,\n modal = _props$modal === void 0 ? false : _props$modal,\n back = props.back,\n title = props.title,\n customTitle = props.headerTitle,\n _props$headerTitleAli = props.headerTitleAlign,\n headerTitleAlign = _props$headerTitleAli === void 0 ? Platform.OS === 'ios' ? 'center' : 'left' : _props$headerTitleAli,\n _props$headerLeft = props.headerLeft,\n headerLeft = _props$headerLeft === void 0 ? back ? function (props) {\n return _jsx(HeaderBackButton, _objectSpread({}, props));\n } : undefined : _props$headerLeft,\n headerSearchBarOptions = props.headerSearchBarOptions,\n headerTransparent = props.headerTransparent,\n headerTintColor = props.headerTintColor,\n headerBackground = props.headerBackground,\n headerRight = props.headerRight,\n titleAllowFontScaling = props.headerTitleAllowFontScaling,\n titleStyle = props.headerTitleStyle,\n leftContainerStyle = props.headerLeftContainerStyle,\n rightContainerStyle = props.headerRightContainerStyle,\n titleContainerStyle = props.headerTitleContainerStyle,\n _props$headerBackButt = props.headerBackButtonDisplayMode,\n headerBackButtonDisplayMode = _props$headerBackButt === void 0 ? Platform.OS === 'ios' ? 'default' : 'minimal' : _props$headerBackButt,\n headerBackTitleStyle = props.headerBackTitleStyle,\n backgroundContainerStyle = props.headerBackgroundContainerStyle,\n customHeaderStyle = props.headerStyle,\n headerShadowVisible = props.headerShadowVisible,\n headerPressColor = props.headerPressColor,\n headerPressOpacity = props.headerPressOpacity,\n _props$headerStatusBa = props.headerStatusBarHeight,\n headerStatusBarHeight = _props$headerStatusBa === void 0 ? isParentHeaderShown ? 0 : insets.top : _props$headerStatusBa;\n var defaultHeight = getDefaultHeaderHeight(layout, modal, headerStatusBarHeight);\n var _StyleSheet$flatten = StyleSheet.flatten(customHeaderStyle || {}),\n _StyleSheet$flatten$h = _StyleSheet$flatten.height,\n height = _StyleSheet$flatten$h === void 0 ? defaultHeight : _StyleSheet$flatten$h,\n minHeight = _StyleSheet$flatten.minHeight,\n maxHeight = _StyleSheet$flatten.maxHeight,\n backgroundColor = _StyleSheet$flatten.backgroundColor,\n borderBottomColor = _StyleSheet$flatten.borderBottomColor,\n borderBottomEndRadius = _StyleSheet$flatten.borderBottomEndRadius,\n borderBottomLeftRadius = _StyleSheet$flatten.borderBottomLeftRadius,\n borderBottomRightRadius = _StyleSheet$flatten.borderBottomRightRadius,\n borderBottomStartRadius = _StyleSheet$flatten.borderBottomStartRadius,\n borderBottomWidth = _StyleSheet$flatten.borderBottomWidth,\n borderColor = _StyleSheet$flatten.borderColor,\n borderEndColor = _StyleSheet$flatten.borderEndColor,\n borderEndWidth = _StyleSheet$flatten.borderEndWidth,\n borderLeftColor = _StyleSheet$flatten.borderLeftColor,\n borderLeftWidth = _StyleSheet$flatten.borderLeftWidth,\n borderRadius = _StyleSheet$flatten.borderRadius,\n borderRightColor = _StyleSheet$flatten.borderRightColor,\n borderRightWidth = _StyleSheet$flatten.borderRightWidth,\n borderStartColor = _StyleSheet$flatten.borderStartColor,\n borderStartWidth = _StyleSheet$flatten.borderStartWidth,\n borderStyle = _StyleSheet$flatten.borderStyle,\n borderTopColor = _StyleSheet$flatten.borderTopColor,\n borderTopEndRadius = _StyleSheet$flatten.borderTopEndRadius,\n borderTopLeftRadius = _StyleSheet$flatten.borderTopLeftRadius,\n borderTopRightRadius = _StyleSheet$flatten.borderTopRightRadius,\n borderTopStartRadius = _StyleSheet$flatten.borderTopStartRadius,\n borderTopWidth = _StyleSheet$flatten.borderTopWidth,\n borderWidth = _StyleSheet$flatten.borderWidth,\n boxShadow = _StyleSheet$flatten.boxShadow,\n elevation = _StyleSheet$flatten.elevation,\n shadowColor = _StyleSheet$flatten.shadowColor,\n shadowOffset = _StyleSheet$flatten.shadowOffset,\n shadowOpacity = _StyleSheet$flatten.shadowOpacity,\n shadowRadius = _StyleSheet$flatten.shadowRadius,\n opacity = _StyleSheet$flatten.opacity,\n transform = _StyleSheet$flatten.transform,\n unsafeStyles = _objectWithoutProperties(_StyleSheet$flatten, _excluded);\n if (process.env.NODE_ENV !== 'production') {\n warnIfHeaderStylesDefined(unsafeStyles);\n }\n var safeStyles = {\n backgroundColor: backgroundColor,\n borderBottomColor: borderBottomColor,\n borderBottomEndRadius: borderBottomEndRadius,\n borderBottomLeftRadius: borderBottomLeftRadius,\n borderBottomRightRadius: borderBottomRightRadius,\n borderBottomStartRadius: borderBottomStartRadius,\n borderBottomWidth: borderBottomWidth,\n borderColor: borderColor,\n borderEndColor: borderEndColor,\n borderEndWidth: borderEndWidth,\n borderLeftColor: borderLeftColor,\n borderLeftWidth: borderLeftWidth,\n borderRadius: borderRadius,\n borderRightColor: borderRightColor,\n borderRightWidth: borderRightWidth,\n borderStartColor: borderStartColor,\n borderStartWidth: borderStartWidth,\n borderStyle: borderStyle,\n borderTopColor: borderTopColor,\n borderTopEndRadius: borderTopEndRadius,\n borderTopLeftRadius: borderTopLeftRadius,\n borderTopRightRadius: borderTopRightRadius,\n borderTopStartRadius: borderTopStartRadius,\n borderTopWidth: borderTopWidth,\n borderWidth: borderWidth,\n boxShadow: boxShadow,\n elevation: elevation,\n shadowColor: shadowColor,\n shadowOffset: shadowOffset,\n shadowOpacity: shadowOpacity,\n shadowRadius: shadowRadius,\n opacity: opacity,\n transform: transform\n };\n for (var styleProp in safeStyles) {\n if (safeStyles[styleProp] === undefined) {\n delete safeStyles[styleProp];\n }\n }\n var backgroundStyle = _objectSpread(_objectSpread(_objectSpread({}, headerTransparent && {\n backgroundColor: 'transparent'\n }), (headerTransparent || headerShadowVisible === false) && _objectSpread({\n borderBottomWidth: 0\n }, Platform.select({\n android: {\n elevation: 0\n },\n web: {\n boxShadow: 'none'\n },\n default: {\n shadowOpacity: 0\n }\n }))), safeStyles);\n var iconTintColor = headerTintColor != null ? headerTintColor : Platform.select({\n ios: colors.primary,\n default: colors.text\n });\n var leftButton = headerLeft ? headerLeft({\n tintColor: iconTintColor,\n pressColor: headerPressColor,\n pressOpacity: headerPressOpacity,\n displayMode: headerBackButtonDisplayMode,\n titleLayout: titleLayout,\n screenLayout: layout,\n canGoBack: Boolean(back),\n onPress: back ? navigation.goBack : undefined,\n label: back == null ? void 0 : back.title,\n labelStyle: headerBackTitleStyle,\n href: back == null ? void 0 : back.href\n }) : null;\n var rightButton = headerRight ? headerRight({\n tintColor: iconTintColor,\n pressColor: headerPressColor,\n pressOpacity: headerPressOpacity,\n canGoBack: Boolean(back)\n }) : null;\n var headerTitle = typeof customTitle !== 'function' ? function (props) {\n return _jsx(HeaderTitle, _objectSpread({}, props));\n } : customTitle;\n return _jsxs(Animated.View, {\n pointerEvents: \"box-none\",\n style: [{\n height: height,\n minHeight: minHeight,\n maxHeight: maxHeight,\n opacity: opacity,\n transform: transform\n }],\n children: [_jsx(Animated.View, {\n pointerEvents: \"box-none\",\n style: [StyleSheet.absoluteFill, backgroundContainerStyle],\n children: headerBackground ? headerBackground({\n style: backgroundStyle\n }) : _jsx(HeaderBackground, {\n pointerEvents: headerTransparent && (backgroundStyle.backgroundColor === 'transparent' || Color(backgroundStyle.backgroundColor).alpha() === 0) ? 'none' : 'auto',\n style: backgroundStyle\n })\n }), _jsx(View, {\n pointerEvents: \"none\",\n style: {\n height: headerStatusBarHeight\n }\n }), _jsxs(View, {\n pointerEvents: \"box-none\",\n style: [styles.content, Platform.OS === 'ios' && frame.width >= IPAD_MINI_MEDIUM_WIDTH ? styles.large : null],\n children: [_jsx(Animated.View, {\n pointerEvents: \"box-none\",\n style: [styles.start, !searchBarVisible && headerTitleAlign === 'center' && styles.expand, {\n marginStart: insets.left\n }, leftContainerStyle],\n children: leftButton\n }), Platform.OS === 'ios' || !searchBarVisible ? _jsxs(_Fragment, {\n children: [_jsx(Animated.View, {\n pointerEvents: \"box-none\",\n style: [styles.title, {\n maxWidth: headerTitleAlign === 'center' ? layout.width - ((leftButton ? headerBackButtonDisplayMode !== 'minimal' ? 80 : 32 : 16) + (rightButton || headerSearchBarOptions ? 16 : 0) + Math.max(insets.left, insets.right)) * 2 : layout.width - ((leftButton ? 52 : 16) + (rightButton || headerSearchBarOptions ? 52 : 16) + insets.left - insets.right)\n }, headerTitleAlign === 'left' && leftButton ? {\n marginStart: 4\n } : {\n marginHorizontal: 16\n }, titleContainerStyle],\n children: headerTitle({\n children: title,\n allowFontScaling: titleAllowFontScaling,\n tintColor: headerTintColor,\n onLayout: onTitleLayout,\n style: titleStyle\n })\n }), _jsxs(Animated.View, {\n pointerEvents: \"box-none\",\n style: [styles.end, styles.expand, {\n marginEnd: insets.right\n }, rightContainerStyle],\n children: [rightButton, headerSearchBarOptions ? _jsx(HeaderButton, {\n tintColor: iconTintColor,\n pressColor: headerPressColor,\n pressOpacity: headerPressOpacity,\n onPress: function onPress() {\n setSearchBarVisible(true);\n headerSearchBarOptions == null ? void 0 : headerSearchBarOptions.onOpen == null ? void 0 : headerSearchBarOptions.onOpen();\n },\n children: _jsx(HeaderIcon, {\n source: searchIcon,\n tintColor: iconTintColor\n })\n }) : null]\n })]\n }) : null, Platform.OS === 'ios' || searchBarVisible ? _jsx(HeaderSearchBar, _objectSpread(_objectSpread({}, headerSearchBarOptions), {}, {\n visible: searchBarVisible,\n onClose: function onClose() {\n setSearchBarVisible(false);\n headerSearchBarOptions == null ? void 0 : headerSearchBarOptions.onClose == null ? void 0 : headerSearchBarOptions.onClose();\n },\n tintColor: headerTintColor,\n style: [Platform.OS === 'ios' ? [StyleSheet.absoluteFill, {\n paddingTop: headerStatusBarHeight ? 0 : 4\n }, {\n backgroundColor: backgroundColor != null ? backgroundColor : colors.card\n }] : !leftButton && {\n marginStart: 8\n }]\n })) : null]\n })]\n });\n}\nvar styles = StyleSheet.create({\n content: {\n flex: 1,\n flexDirection: 'row',\n alignItems: 'stretch'\n },\n large: {\n marginHorizontal: 5\n },\n title: {\n justifyContent: 'center'\n },\n start: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'flex-start'\n },\n end: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'flex-end'\n },\n expand: {\n flexGrow: 1,\n flexBasis: 0\n }\n});","map":{"version":3,"names":["useNavigation","useTheme","Color","React","Animated","Platform","StyleSheet","View","useSafeAreaInsets","searchIcon","useFrameSize","getDefaultHeaderHeight","HeaderBackButton","HeaderBackground","HeaderButton","HeaderIcon","HeaderSearchBar","HeaderShownContext","HeaderTitle","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","IPAD_MINI_MEDIUM_WIDTH","warnIfHeaderStylesDefined","styles","Object","keys","forEach","styleProp","value","console","warn","undefined","Header","props","insets","frame","size","_useTheme","colors","navigation","isParentHeaderShown","useContext","_React$useState","useState","_React$useState2","_slicedToArray","searchBarVisible","setSearchBarVisible","_React$useState3","_React$useState4","titleLayout","setTitleLayout","onTitleLayout","e","_e$nativeEvent$layout","nativeEvent","layout","height","width","_props$layout","_props$modal","modal","back","title","customTitle","headerTitle","_props$headerTitleAli","headerTitleAlign","OS","_props$headerLeft","headerLeft","_objectSpread","headerSearchBarOptions","headerTransparent","headerTintColor","headerBackground","headerRight","titleAllowFontScaling","headerTitleAllowFontScaling","titleStyle","headerTitleStyle","leftContainerStyle","headerLeftContainerStyle","rightContainerStyle","headerRightContainerStyle","titleContainerStyle","headerTitleContainerStyle","_props$headerBackButt","headerBackButtonDisplayMode","headerBackTitleStyle","backgroundContainerStyle","headerBackgroundContainerStyle","customHeaderStyle","headerStyle","headerShadowVisible","headerPressColor","headerPressOpacity","_props$headerStatusBa","headerStatusBarHeight","top","defaultHeight","_StyleSheet$flatten","flatten","_StyleSheet$flatten$h","minHeight","maxHeight","backgroundColor","borderBottomColor","borderBottomEndRadius","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStartRadius","borderBottomWidth","borderColor","borderEndColor","borderEndWidth","borderLeftColor","borderLeftWidth","borderRadius","borderRightColor","borderRightWidth","borderStartColor","borderStartWidth","borderStyle","borderTopColor","borderTopEndRadius","borderTopLeftRadius","borderTopRightRadius","borderTopStartRadius","borderTopWidth","borderWidth","boxShadow","elevation","shadowColor","shadowOffset","shadowOpacity","shadowRadius","opacity","transform","unsafeStyles","_objectWithoutProperties","_excluded","process","env","NODE_ENV","safeStyles","backgroundStyle","select","android","web","default","iconTintColor","ios","primary","text","leftButton","tintColor","pressColor","pressOpacity","displayMode","screenLayout","canGoBack","Boolean","onPress","goBack","label","labelStyle","href","rightButton","pointerEvents","style","children","absoluteFill","alpha","content","large","start","expand","marginStart","left","maxWidth","Math","max","right","marginHorizontal","allowFontScaling","onLayout","end","marginEnd","onOpen","source","visible","onClose","paddingTop","card","create","flex","flexDirection","alignItems","justifyContent","flexGrow","flexBasis"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/@react-navigation/elements/src/Header/Header.tsx"],"sourcesContent":["import { useNavigation, useTheme } from '@react-navigation/native';\nimport Color from 'color';\nimport * as React from 'react';\nimport {\n Animated,\n type LayoutChangeEvent,\n Platform,\n StyleSheet,\n View,\n type ViewStyle,\n} from 'react-native';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\n\nimport searchIcon from '../assets/search-icon.png';\nimport type { HeaderOptions, Layout } from '../types';\nimport { useFrameSize } from '../useFrameSize';\nimport { getDefaultHeaderHeight } from './getDefaultHeaderHeight';\nimport { HeaderBackButton } from './HeaderBackButton';\nimport { HeaderBackground } from './HeaderBackground';\nimport { HeaderButton } from './HeaderButton';\nimport { HeaderIcon } from './HeaderIcon';\nimport { HeaderSearchBar } from './HeaderSearchBar';\nimport { HeaderShownContext } from './HeaderShownContext';\nimport { HeaderTitle } from './HeaderTitle';\n\n// Width of the screen in split layout on portrait mode on iPad Mini\nconst IPAD_MINI_MEDIUM_WIDTH = 414;\n\ntype Props = HeaderOptions & {\n /**\n * Options for the back button.\n */\n back?: {\n /**\n * Title of the previous screen.\n */\n title: string | undefined;\n /**\n * The `href` to use for the anchor tag on web\n */\n href: string | undefined;\n };\n /**\n * Whether the header is in a modal\n */\n modal?: boolean;\n /**\n * Layout of the screen.\n */\n layout?: Layout;\n /**\n * Title text for the header.\n */\n title: string;\n};\n\nconst warnIfHeaderStylesDefined = (styles: Record<string, any>) => {\n Object.keys(styles).forEach((styleProp) => {\n const value = styles[styleProp];\n\n if (styleProp === 'position' && value === 'absolute') {\n console.warn(\n \"position: 'absolute' is not supported on headerStyle. If you would like to render content under the header, use the 'headerTransparent' option.\"\n );\n } else if (value !== undefined) {\n console.warn(\n `${styleProp} was given a value of ${value}, this has no effect on headerStyle.`\n );\n }\n });\n};\n\nexport function Header(props: Props) {\n const insets = useSafeAreaInsets();\n const frame = useFrameSize((size) => size, true);\n const { colors } = useTheme();\n\n const navigation = useNavigation();\n const isParentHeaderShown = React.useContext(HeaderShownContext);\n\n const [searchBarVisible, setSearchBarVisible] = React.useState(false);\n const [titleLayout, setTitleLayout] = React.useState<Layout | undefined>(\n undefined\n );\n\n const onTitleLayout = (e: LayoutChangeEvent) => {\n const { height, width } = e.nativeEvent.layout;\n\n setTitleLayout((titleLayout) => {\n if (\n titleLayout &&\n height === titleLayout.height &&\n width === titleLayout.width\n ) {\n return titleLayout;\n }\n\n return { height, width };\n });\n };\n\n const {\n layout = frame,\n modal = false,\n back,\n title,\n headerTitle: customTitle,\n headerTitleAlign = Platform.OS === 'ios' ? 'center' : 'left',\n headerLeft = back ? (props) => <HeaderBackButton {...props} /> : undefined,\n headerSearchBarOptions,\n headerTransparent,\n headerTintColor,\n headerBackground,\n headerRight,\n headerTitleAllowFontScaling: titleAllowFontScaling,\n headerTitleStyle: titleStyle,\n headerLeftContainerStyle: leftContainerStyle,\n headerRightContainerStyle: rightContainerStyle,\n headerTitleContainerStyle: titleContainerStyle,\n headerBackButtonDisplayMode = Platform.OS === 'ios' ? 'default' : 'minimal',\n headerBackTitleStyle,\n headerBackgroundContainerStyle: backgroundContainerStyle,\n headerStyle: customHeaderStyle,\n headerShadowVisible,\n headerPressColor,\n headerPressOpacity,\n headerStatusBarHeight = isParentHeaderShown ? 0 : insets.top,\n } = props;\n\n const defaultHeight = getDefaultHeaderHeight(\n layout,\n modal,\n headerStatusBarHeight\n );\n\n const {\n height = defaultHeight,\n minHeight,\n maxHeight,\n backgroundColor,\n borderBottomColor,\n borderBottomEndRadius,\n borderBottomLeftRadius,\n borderBottomRightRadius,\n borderBottomStartRadius,\n borderBottomWidth,\n borderColor,\n borderEndColor,\n borderEndWidth,\n borderLeftColor,\n borderLeftWidth,\n borderRadius,\n borderRightColor,\n borderRightWidth,\n borderStartColor,\n borderStartWidth,\n borderStyle,\n borderTopColor,\n borderTopEndRadius,\n borderTopLeftRadius,\n borderTopRightRadius,\n borderTopStartRadius,\n borderTopWidth,\n borderWidth,\n boxShadow,\n elevation,\n shadowColor,\n shadowOffset,\n shadowOpacity,\n shadowRadius,\n opacity,\n transform,\n ...unsafeStyles\n } = StyleSheet.flatten(customHeaderStyle || {}) as ViewStyle;\n\n if (process.env.NODE_ENV !== 'production') {\n warnIfHeaderStylesDefined(unsafeStyles);\n }\n\n const safeStyles: ViewStyle = {\n backgroundColor,\n borderBottomColor,\n borderBottomEndRadius,\n borderBottomLeftRadius,\n borderBottomRightRadius,\n borderBottomStartRadius,\n borderBottomWidth,\n borderColor,\n borderEndColor,\n borderEndWidth,\n borderLeftColor,\n borderLeftWidth,\n borderRadius,\n borderRightColor,\n borderRightWidth,\n borderStartColor,\n borderStartWidth,\n borderStyle,\n borderTopColor,\n borderTopEndRadius,\n borderTopLeftRadius,\n borderTopRightRadius,\n borderTopStartRadius,\n borderTopWidth,\n borderWidth,\n boxShadow,\n elevation,\n shadowColor,\n shadowOffset,\n shadowOpacity,\n shadowRadius,\n opacity,\n transform,\n };\n\n // Setting a property to undefined triggers default style\n // So we need to filter them out\n // Users can use `null` instead\n for (const styleProp in safeStyles) {\n // @ts-expect-error: typescript wrongly complains that styleProp cannot be used to index safeStyles\n if (safeStyles[styleProp] === undefined) {\n // @ts-expect-error don't need to care about index signature for deletion\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete safeStyles[styleProp];\n }\n }\n\n const backgroundStyle = {\n ...(headerTransparent && { backgroundColor: 'transparent' }),\n ...((headerTransparent || headerShadowVisible === false) && {\n borderBottomWidth: 0,\n ...Platform.select({\n android: {\n elevation: 0,\n },\n web: {\n boxShadow: 'none',\n },\n default: {\n shadowOpacity: 0,\n },\n }),\n }),\n ...safeStyles,\n };\n\n const iconTintColor =\n headerTintColor ??\n Platform.select({\n ios: colors.primary,\n default: colors.text,\n });\n\n const leftButton = headerLeft\n ? headerLeft({\n tintColor: iconTintColor,\n pressColor: headerPressColor,\n pressOpacity: headerPressOpacity,\n displayMode: headerBackButtonDisplayMode,\n titleLayout,\n screenLayout: layout,\n canGoBack: Boolean(back),\n onPress: back ? navigation.goBack : undefined,\n label: back?.title,\n labelStyle: headerBackTitleStyle,\n href: back?.href,\n })\n : null;\n\n const rightButton = headerRight\n ? headerRight({\n tintColor: iconTintColor,\n pressColor: headerPressColor,\n pressOpacity: headerPressOpacity,\n canGoBack: Boolean(back),\n })\n : null;\n\n const headerTitle =\n typeof customTitle !== 'function'\n ? (props: React.ComponentProps<typeof HeaderTitle>) => (\n <HeaderTitle {...props} />\n )\n : customTitle;\n\n return (\n <Animated.View\n pointerEvents=\"box-none\"\n style={[{ height, minHeight, maxHeight, opacity, transform }]}\n >\n <Animated.View\n pointerEvents=\"box-none\"\n style={[StyleSheet.absoluteFill, backgroundContainerStyle]}\n >\n {headerBackground ? (\n headerBackground({ style: backgroundStyle })\n ) : (\n <HeaderBackground\n pointerEvents={\n // Allow touch through the header when background color is transparent\n headerTransparent &&\n (backgroundStyle.backgroundColor === 'transparent' ||\n Color(backgroundStyle.backgroundColor).alpha() === 0)\n ? 'none'\n : 'auto'\n }\n style={backgroundStyle}\n />\n )}\n </Animated.View>\n <View pointerEvents=\"none\" style={{ height: headerStatusBarHeight }} />\n <View\n pointerEvents=\"box-none\"\n style={[\n styles.content,\n Platform.OS === 'ios' && frame.width >= IPAD_MINI_MEDIUM_WIDTH\n ? styles.large\n : null,\n ]}\n >\n <Animated.View\n pointerEvents=\"box-none\"\n style={[\n styles.start,\n !searchBarVisible && headerTitleAlign === 'center' && styles.expand,\n { marginStart: insets.left },\n leftContainerStyle,\n ]}\n >\n {leftButton}\n </Animated.View>\n {Platform.OS === 'ios' || !searchBarVisible ? (\n <>\n <Animated.View\n pointerEvents=\"box-none\"\n style={[\n styles.title,\n {\n // Avoid the title from going offscreen or overlapping buttons\n maxWidth:\n headerTitleAlign === 'center'\n ? layout.width -\n ((leftButton\n ? headerBackButtonDisplayMode !== 'minimal'\n ? 80\n : 32\n : 16) +\n (rightButton || headerSearchBarOptions ? 16 : 0) +\n Math.max(insets.left, insets.right)) *\n 2\n : layout.width -\n ((leftButton ? 52 : 16) +\n (rightButton || headerSearchBarOptions ? 52 : 16) +\n insets.left -\n insets.right),\n },\n headerTitleAlign === 'left' && leftButton\n ? { marginStart: 4 }\n : { marginHorizontal: 16 },\n titleContainerStyle,\n ]}\n >\n {headerTitle({\n children: title,\n allowFontScaling: titleAllowFontScaling,\n tintColor: headerTintColor,\n onLayout: onTitleLayout,\n style: titleStyle,\n })}\n </Animated.View>\n <Animated.View\n pointerEvents=\"box-none\"\n style={[\n styles.end,\n styles.expand,\n { marginEnd: insets.right },\n rightContainerStyle,\n ]}\n >\n {rightButton}\n {headerSearchBarOptions ? (\n <HeaderButton\n tintColor={iconTintColor}\n pressColor={headerPressColor}\n pressOpacity={headerPressOpacity}\n onPress={() => {\n setSearchBarVisible(true);\n headerSearchBarOptions?.onOpen?.();\n }}\n >\n <HeaderIcon source={searchIcon} tintColor={iconTintColor} />\n </HeaderButton>\n ) : null}\n </Animated.View>\n </>\n ) : null}\n {Platform.OS === 'ios' || searchBarVisible ? (\n <HeaderSearchBar\n {...headerSearchBarOptions}\n visible={searchBarVisible}\n onClose={() => {\n setSearchBarVisible(false);\n headerSearchBarOptions?.onClose?.();\n }}\n tintColor={headerTintColor}\n style={[\n Platform.OS === 'ios'\n ? [\n StyleSheet.absoluteFill,\n { paddingTop: headerStatusBarHeight ? 0 : 4 },\n { backgroundColor: backgroundColor ?? colors.card },\n ]\n : !leftButton && { marginStart: 8 },\n ]}\n />\n ) : null}\n </View>\n </Animated.View>\n );\n}\n\nconst styles = StyleSheet.create({\n content: {\n flex: 1,\n flexDirection: 'row',\n alignItems: 'stretch',\n },\n large: {\n marginHorizontal: 5,\n },\n title: {\n justifyContent: 'center',\n },\n start: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'flex-start',\n },\n end: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'flex-end',\n },\n expand: {\n flexGrow: 1,\n flexBasis: 0,\n },\n});\n"],"mappings":";;;;;;;;AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,0BAA0B;AAClE,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAO,KAAKC,KAAK,MAAM,OAAO;AAAA,OAAAC,QAAA;AAAA,OAAAC,QAAA;AAAA,OAAAC,UAAA;AAAA,OAAAC,IAAA;AAS9B,SAASC,iBAAiB,QAAQ,gCAAgC;AAElE,OAAOC,UAAU;AAEjB,SAASC,YAAY;AACrB,SAASC,sBAAsB;AAC/B,SAASC,gBAAgB;AACzB,SAASC,gBAAgB;AACzB,SAASC,YAAY;AACrB,SAASC,UAAU;AACnB,SAASC,eAAe;AACxB,SAASC,kBAAkB;AAC3B,SAASC,WAAW;AAEpB,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AACA,IAAMC,sBAAsB,GAAG,GAAG;AA8BlC,IAAMC,yBAAyB,GAAI,SAA7BA,yBAAyBA,CAAIC,MAA2B,EAAK;EACjEC,MAAM,CAACC,IAAI,CAACF,MAAM,CAAC,CAACG,OAAO,CAAE,UAAAC,SAAS,EAAK;IACzC,IAAMC,KAAK,GAAGL,MAAM,CAACI,SAAS,C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