{"ast":null,"code":"\"use strict\";\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nconst _excluded = [\"visible\", \"inputType\", \"autoFocus\", \"placeholder\", \"cancelButtonText\", \"enterKeyHint\", \"onChangeText\", \"onClose\", \"tintColor\", \"style\"];\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 Image from \"react-native-web/dist/exports/Image\";\nimport Platform from \"react-native-web/dist/exports/Platform\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport TextInput from \"react-native-web/dist/exports/TextInput\";\nimport View from \"react-native-web/dist/exports/View\";\nimport clearIcon from \"../assets/clear-icon.png\";\nimport closeIcon from \"../assets/close-icon.png\";\nimport searchIcon from \"../assets/search-icon.png\";\nimport { PlatformPressable } from \"../PlatformPressable.js\";\nimport { Text } from \"../Text.js\";\nimport { HeaderButton } from \"./HeaderButton.js\";\nimport { HeaderIcon } from \"./HeaderIcon.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst INPUT_TYPE_TO_MODE = {\n  text: 'text',\n  number: 'numeric',\n  phone: 'tel',\n  email: 'email'\n};\nconst useNativeDriver = Platform.OS !== 'web';\nfunction HeaderSearchBarInternal(_ref, ref) {\n  let {\n      visible,\n      inputType,\n      autoFocus = true,\n      placeholder = 'Search',\n      cancelButtonText = 'Cancel',\n      enterKeyHint = 'search',\n      onChangeText,\n      onClose,\n      tintColor,\n      style\n    } = _ref,\n    rest = _objectWithoutPropertiesLoose(_ref, _excluded);\n  const navigation = useNavigation();\n  const {\n    dark,\n    colors,\n    fonts\n  } = useTheme();\n  const [value, setValue] = React.useState('');\n  const [rendered, setRendered] = React.useState(visible);\n  const [visibleAnim] = React.useState(() => new Animated.Value(visible ? 1 : 0));\n  const [clearVisibleAnim] = React.useState(() => new Animated.Value(0));\n  const visibleValueRef = React.useRef(visible);\n  const clearVisibleValueRef = React.useRef(false);\n  const inputRef = React.useRef(null);\n  React.useEffect(() => {\n    if (visible === visibleValueRef.current) {\n      return;\n    }\n    Animated.timing(visibleAnim, {\n      toValue: visible ? 1 : 0,\n      duration: 100,\n      useNativeDriver\n    }).start(({\n      finished\n    }) => {\n      if (finished) {\n        setRendered(visible);\n        visibleValueRef.current = visible;\n      }\n    });\n    return () => {\n      visibleAnim.stopAnimation();\n    };\n  }, [visible, visibleAnim]);\n  const hasText = value !== '';\n  React.useEffect(() => {\n    if (clearVisibleValueRef.current === hasText) {\n      return;\n    }\n    Animated.timing(clearVisibleAnim, {\n      toValue: hasText ? 1 : 0,\n      duration: 100,\n      useNativeDriver\n    }).start(({\n      finished\n    }) => {\n      if (finished) {\n        clearVisibleValueRef.current = hasText;\n      }\n    });\n  }, [clearVisibleAnim, hasText]);\n  const clearText = React.useCallback(() => {\n    inputRef.current?.clear();\n    inputRef.current?.focus();\n    setValue('');\n  }, []);\n  const onClear = React.useCallback(() => {\n    clearText();\n    onChangeText?.({\n      nativeEvent: {\n        text: ''\n      }\n    });\n  }, [clearText, onChangeText]);\n  const cancelSearch = React.useCallback(() => {\n    onClear();\n    onClose();\n  }, [onClear, onClose]);\n  React.useEffect(() => navigation?.addListener('blur', cancelSearch), [cancelSearch, navigation]);\n  React.useImperativeHandle(ref, () => ({\n    focus: () => {\n      inputRef.current?.focus();\n    },\n    blur: () => {\n      inputRef.current?.blur();\n    },\n    setText: text => {\n      inputRef.current?.setNativeProps({\n        text\n      });\n      setValue(text);\n    },\n    clearText,\n    cancelSearch\n  }), [cancelSearch, clearText]);\n  if (!visible && !rendered) {\n    return null;\n  }\n  const textColor = tintColor ?? colors.text;\n  return _jsxs(Animated.View, {\n    pointerEvents: visible ? 'auto' : 'none',\n    \"aria-live\": \"polite\",\n    \"aria-hidden\": !visible,\n    style: [styles.container, {\n      opacity: visibleAnim\n    }, style],\n    children: [_jsxs(View, {\n      style: styles.searchbarContainer,\n      children: [_jsx(HeaderIcon, {\n        source: searchIcon,\n        tintColor: textColor,\n        style: styles.inputSearchIcon\n      }), _jsx(TextInput, Object.assign({}, rest, {\n        ref: inputRef,\n        onChange: onChangeText,\n        onChangeText: setValue,\n        autoFocus: autoFocus,\n        inputMode: INPUT_TYPE_TO_MODE[inputType ?? 'text'],\n        enterKeyHint: enterKeyHint,\n        placeholder: placeholder,\n        placeholderTextColor: Color(textColor).alpha(0.5).string(),\n        cursorColor: colors.primary,\n        selectionHandleColor: colors.primary,\n        selectionColor: Color(colors.primary).alpha(0.3).string(),\n        style: [fonts.regular, styles.searchbar, {\n          backgroundColor: Platform.select({\n            ios: dark ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.1)',\n            default: 'transparent'\n          }),\n          color: textColor,\n          borderBottomColor: Color(textColor).alpha(0.2).string()\n        }]\n      })), Platform.OS === 'ios' ? _jsx(PlatformPressable, {\n        onPress: onClear,\n        style: [{\n          opacity: clearVisibleAnim,\n          transform: [{\n            scale: clearVisibleAnim\n          }]\n        }, styles.clearButton],\n        children: _jsx(Image, {\n          source: clearIcon,\n          resizeMode: \"contain\",\n          tintColor: textColor,\n          style: styles.clearIcon\n        })\n      }) : null]\n    }), Platform.OS !== 'ios' ? _jsx(HeaderButton, {\n      onPress: () => {\n        if (value) {\n          onClear();\n        } else {\n          onClose();\n        }\n      },\n      style: styles.closeButton,\n      children: _jsx(HeaderIcon, {\n        source: closeIcon,\n        tintColor: textColor\n      })\n    }) : null, Platform.OS === 'ios' ? _jsx(PlatformPressable, {\n      onPress: cancelSearch,\n      style: styles.cancelButton,\n      children: _jsx(Text, {\n        style: [fonts.regular, {\n          color: tintColor ?? colors.primary\n        }, styles.cancelText],\n        children: cancelButtonText\n      })\n    }) : null]\n  });\n}\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    flexDirection: 'row',\n    alignItems: 'stretch'\n  },\n  inputSearchIcon: Object.assign({\n    position: 'absolute',\n    opacity: 0.5,\n    left: Platform.select({\n      ios: 16,\n      default: 4\n    }),\n    top: Platform.select({\n      ios: -1,\n      default: 17\n    })\n  }, Platform.select({\n    ios: {\n      height: 18,\n      width: 18\n    },\n    default: {}\n  })),\n  closeButton: {\n    position: 'absolute',\n    opacity: 0.5,\n    right: Platform.select({\n      ios: 0,\n      default: 8\n    }),\n    top: Platform.select({\n      ios: -2,\n      default: 17\n    })\n  },\n  clearButton: {\n    position: 'absolute',\n    right: 0,\n    top: -7,\n    bottom: 0,\n    justifyContent: 'center',\n    padding: 8\n  },\n  clearIcon: {\n    height: 16,\n    width: 16,\n    opacity: 0.5\n  },\n  cancelButton: {\n    alignSelf: 'center',\n    top: -4\n  },\n  cancelText: {\n    fontSize: 17,\n    marginHorizontal: 12\n  },\n  searchbarContainer: {\n    flex: 1\n  },\n  searchbar: Platform.select({\n    ios: {\n      flex: 1,\n      fontSize: 17,\n      paddingHorizontal: 32,\n      marginLeft: 16,\n      marginTop: -1,\n      marginBottom: 4,\n      borderRadius: 8\n    },\n    default: {\n      flex: 1,\n      fontSize: 18,\n      paddingHorizontal: 36,\n      marginRight: 8,\n      marginTop: 8,\n      marginBottom: 8,\n      borderBottomWidth: 1\n    }\n  })\n});\nexport const HeaderSearchBar = React.forwardRef(HeaderSearchBarInternal);","map":{"version":3,"names":["useNavigation","useTheme","Color","React","Animated","Image","Platform","StyleSheet","TextInput","View","clearIcon","closeIcon","searchIcon","PlatformPressable","Text","HeaderButton","HeaderIcon","jsx","_jsx","jsxs","_jsxs","INPUT_TYPE_TO_MODE","text","number","phone","email","useNativeDriver","OS","HeaderSearchBarInternal","_ref","ref","visible","inputType","autoFocus","placeholder","cancelButtonText","enterKeyHint","onChangeText","onClose","tintColor","style","rest","_objectWithoutPropertiesLoose","_excluded","navigation","dark","colors","fonts","value","setValue","useState","rendered","setRendered","visibleAnim","Value","clearVisibleAnim","visibleValueRef","useRef","clearVisibleValueRef","inputRef","useEffect","current","timing","toValue","duration","start","finished","stopAnimation","hasText","clearText","useCallback","clear","focus","onClear","nativeEvent","cancelSearch","addListener","useImperativeHandle","blur","setText","setNativeProps","textColor","pointerEvents","styles","container","opacity","children","searchbarContainer","source","inputSearchIcon","Object","assign","onChange","inputMode","placeholderTextColor","alpha","string","cursorColor","primary","selectionHandleColor","selectionColor","regular","searchbar","backgroundColor","select","ios","default","color","borderBottomColor","onPress","transform","scale","clearButton","resizeMode","closeButton","cancelButton","cancelText","create","flex","flexDirection","alignItems","position","left","top","height","width","right","bottom","justifyContent","padding","alignSelf","fontSize","marginHorizontal","paddingHorizontal","marginLeft","marginTop","marginBottom","borderRadius","marginRight","borderBottomWidth","HeaderSearchBar","forwardRef"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/@react-navigation/elements/src/Header/HeaderSearchBar.tsx"],"sourcesContent":["import { useNavigation, useTheme } from '@react-navigation/native';\nimport Color from 'color';\nimport * as React from 'react';\nimport {\n  Animated,\n  Image,\n  Platform,\n  type StyleProp,\n  StyleSheet,\n  TextInput,\n  View,\n  type ViewStyle,\n} from 'react-native';\n\nimport clearIcon from '../assets/clear-icon.png';\nimport closeIcon from '../assets/close-icon.png';\nimport searchIcon from '../assets/search-icon.png';\nimport { PlatformPressable } from '../PlatformPressable';\nimport { Text } from '../Text';\nimport type { HeaderSearchBarOptions, HeaderSearchBarRef } from '../types';\nimport { HeaderButton } from './HeaderButton';\nimport { HeaderIcon } from './HeaderIcon';\n\ntype Props = Omit<HeaderSearchBarOptions, 'ref'> & {\n  visible: boolean;\n  onClose: () => void;\n  tintColor?: string;\n  style?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;\n};\n\nconst INPUT_TYPE_TO_MODE = {\n  text: 'text',\n  number: 'numeric',\n  phone: 'tel',\n  email: 'email',\n} as const;\n\nconst useNativeDriver = Platform.OS !== 'web';\n\nfunction HeaderSearchBarInternal(\n  {\n    visible,\n    inputType,\n    autoFocus = true,\n    placeholder = 'Search',\n    cancelButtonText = 'Cancel',\n    enterKeyHint = 'search',\n    onChangeText,\n    onClose,\n    tintColor,\n    style,\n    ...rest\n  }: Props,\n  ref: React.ForwardedRef<HeaderSearchBarRef>\n) {\n  const navigation = useNavigation();\n  const { dark, colors, fonts } = useTheme();\n  const [value, setValue] = React.useState('');\n  const [rendered, setRendered] = React.useState(visible);\n  const [visibleAnim] = React.useState(\n    () => new Animated.Value(visible ? 1 : 0)\n  );\n  const [clearVisibleAnim] = React.useState(() => new Animated.Value(0));\n\n  const visibleValueRef = React.useRef(visible);\n  const clearVisibleValueRef = React.useRef(false);\n  const inputRef = React.useRef<TextInput>(null);\n\n  React.useEffect(() => {\n    // Avoid act warning in tests just by rendering header\n    if (visible === visibleValueRef.current) {\n      return;\n    }\n\n    Animated.timing(visibleAnim, {\n      toValue: visible ? 1 : 0,\n      duration: 100,\n      useNativeDriver,\n    }).start(({ finished }) => {\n      if (finished) {\n        setRendered(visible);\n        visibleValueRef.current = visible;\n      }\n    });\n\n    return () => {\n      visibleAnim.stopAnimation();\n    };\n  }, [visible, visibleAnim]);\n\n  const hasText = value !== '';\n\n  React.useEffect(() => {\n    if (clearVisibleValueRef.current === hasText) {\n      return;\n    }\n\n    Animated.timing(clearVisibleAnim, {\n      toValue: hasText ? 1 : 0,\n      duration: 100,\n      useNativeDriver,\n    }).start(({ finished }) => {\n      if (finished) {\n        clearVisibleValueRef.current = hasText;\n      }\n    });\n  }, [clearVisibleAnim, hasText]);\n\n  const clearText = React.useCallback(() => {\n    inputRef.current?.clear();\n    inputRef.current?.focus();\n    setValue('');\n  }, []);\n\n  const onClear = React.useCallback(() => {\n    clearText();\n    // FIXME: figure out how to create a SyntheticEvent\n    // @ts-expect-error: we don't have the native event here\n    onChangeText?.({ nativeEvent: { text: '' } });\n  }, [clearText, onChangeText]);\n\n  const cancelSearch = React.useCallback(() => {\n    onClear();\n    onClose();\n  }, [onClear, onClose]);\n\n  React.useEffect(\n    () => navigation?.addListener('blur', cancelSearch),\n    [cancelSearch, navigation]\n  );\n\n  React.useImperativeHandle(\n    ref,\n    () => ({\n      focus: () => {\n        inputRef.current?.focus();\n      },\n      blur: () => {\n        inputRef.current?.blur();\n      },\n      setText: (text: string) => {\n        inputRef.current?.setNativeProps({ text });\n        setValue(text);\n      },\n      clearText,\n      cancelSearch,\n    }),\n    [cancelSearch, clearText]\n  );\n\n  if (!visible && !rendered) {\n    return null;\n  }\n\n  const textColor = tintColor ?? colors.text;\n\n  return (\n    <Animated.View\n      pointerEvents={visible ? 'auto' : 'none'}\n      aria-live=\"polite\"\n      aria-hidden={!visible}\n      style={[styles.container, { opacity: visibleAnim }, style]}\n    >\n      <View style={styles.searchbarContainer}>\n        <HeaderIcon\n          source={searchIcon}\n          tintColor={textColor}\n          style={styles.inputSearchIcon}\n        />\n        <TextInput\n          {...rest}\n          ref={inputRef}\n          onChange={onChangeText}\n          onChangeText={setValue}\n          autoFocus={autoFocus}\n          inputMode={INPUT_TYPE_TO_MODE[inputType ?? 'text']}\n          enterKeyHint={enterKeyHint}\n          placeholder={placeholder}\n          placeholderTextColor={Color(textColor).alpha(0.5).string()}\n          cursorColor={colors.primary}\n          selectionHandleColor={colors.primary}\n          selectionColor={Color(colors.primary).alpha(0.3).string()}\n          style={[\n            fonts.regular,\n            styles.searchbar,\n            {\n              backgroundColor: Platform.select({\n                ios: dark ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.1)',\n                default: 'transparent',\n              }),\n              color: textColor,\n              borderBottomColor: Color(textColor).alpha(0.2).string(),\n            },\n          ]}\n        />\n        {Platform.OS === 'ios' ? (\n          <PlatformPressable\n            onPress={onClear}\n            style={[\n              {\n                opacity: clearVisibleAnim,\n                transform: [{ scale: clearVisibleAnim }],\n              },\n              styles.clearButton,\n            ]}\n          >\n            <Image\n              source={clearIcon}\n              resizeMode=\"contain\"\n              tintColor={textColor}\n              style={styles.clearIcon}\n            />\n          </PlatformPressable>\n        ) : null}\n      </View>\n      {Platform.OS !== 'ios' ? (\n        <HeaderButton\n          onPress={() => {\n            if (value) {\n              onClear();\n            } else {\n              onClose();\n            }\n          }}\n          style={styles.closeButton}\n        >\n          <HeaderIcon source={closeIcon} tintColor={textColor} />\n        </HeaderButton>\n      ) : null}\n      {Platform.OS === 'ios' ? (\n        <PlatformPressable onPress={cancelSearch} style={styles.cancelButton}>\n          <Text\n            style={[\n              fonts.regular,\n              { color: tintColor ?? colors.primary },\n              styles.cancelText,\n            ]}\n          >\n            {cancelButtonText}\n          </Text>\n        </PlatformPressable>\n      ) : null}\n    </Animated.View>\n  );\n}\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    flexDirection: 'row',\n    alignItems: 'stretch',\n  },\n  inputSearchIcon: {\n    position: 'absolute',\n    opacity: 0.5,\n    left: Platform.select({ ios: 16, default: 4 }),\n    top: Platform.select({ ios: -1, default: 17 }),\n    ...Platform.select({\n      ios: {\n        height: 18,\n        width: 18,\n      },\n      default: {},\n    }),\n  },\n  closeButton: {\n    position: 'absolute',\n    opacity: 0.5,\n    right: Platform.select({ ios: 0, default: 8 }),\n    top: Platform.select({ ios: -2, default: 17 }),\n  },\n  clearButton: {\n    position: 'absolute',\n    right: 0,\n    top: -7,\n    bottom: 0,\n    justifyContent: 'center',\n    padding: 8,\n  },\n  clearIcon: {\n    height: 16,\n    width: 16,\n    opacity: 0.5,\n  },\n  cancelButton: {\n    alignSelf: 'center',\n    top: -4,\n  },\n  cancelText: {\n    fontSize: 17,\n    marginHorizontal: 12,\n  },\n  searchbarContainer: {\n    flex: 1,\n  },\n  searchbar: Platform.select({\n    ios: {\n      flex: 1,\n      fontSize: 17,\n      paddingHorizontal: 32,\n      marginLeft: 16,\n      marginTop: -1,\n      marginBottom: 4,\n      borderRadius: 8,\n    },\n    default: {\n      flex: 1,\n      fontSize: 18,\n      paddingHorizontal: 36,\n      marginRight: 8,\n      marginTop: 8,\n      marginBottom: 8,\n      borderBottomWidth: 1,\n    },\n  }),\n});\n\nexport const HeaderSearchBar = React.forwardRef(HeaderSearchBarInternal);\n"],"m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