{"ast":null,"code":"\"use strict\";\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nconst _excluded = [\"source\", \"style\"];\nimport { useLocale, useTheme } from '@react-navigation/native';\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 { jsx as _jsx } from \"react/jsx-runtime\";\nexport function HeaderIcon(_ref) {\n  let {\n      source,\n      style\n    } = _ref,\n    rest = _objectWithoutPropertiesLoose(_ref, _excluded);\n  const {\n    colors\n  } = useTheme();\n  const {\n    direction\n  } = useLocale();\n  return _jsx(Image, Object.assign({\n    source: source,\n    resizeMode: \"contain\",\n    fadeDuration: 0,\n    tintColor: colors.text,\n    style: [styles.icon, direction === 'rtl' && styles.flip, style]\n  }, rest));\n}\nexport const ICON_SIZE = Platform.OS === 'ios' ? 21 : 24;\nexport const ICON_MARGIN = Platform.OS === 'ios' ? 8 : 3;\nconst styles = StyleSheet.create({\n  icon: {\n    width: ICON_SIZE,\n    height: ICON_SIZE,\n    margin: ICON_MARGIN\n  },\n  flip: {\n    transform: 'scaleX(-1)'\n  }\n});","map":{"version":3,"names":["useLocale","useTheme","Image","Platform","StyleSheet","jsx","_jsx","HeaderIcon","_ref","source","style","rest","_objectWithoutPropertiesLoose","_excluded","colors","direction","Object","assign","resizeMode","fadeDuration","tintColor","text","styles","icon","flip","ICON_SIZE","OS","ICON_MARGIN","create","width","height","margin","transform"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/@react-navigation/elements/src/Header/HeaderIcon.tsx"],"sourcesContent":["import { useLocale, useTheme } from '@react-navigation/native';\nimport { Image, type ImageProps, Platform, StyleSheet } from 'react-native';\n\nexport function HeaderIcon({ source, style, ...rest }: ImageProps) {\n  const { colors } = useTheme();\n  const { direction } = useLocale();\n\n  return (\n    <Image\n      source={source}\n      resizeMode=\"contain\"\n      fadeDuration={0}\n      tintColor={colors.text}\n      style={[styles.icon, direction === 'rtl' && styles.flip, style]}\n      {...rest}\n    />\n  );\n}\n\nexport const ICON_SIZE = Platform.OS === 'ios' ? 21 : 24;\nexport const ICON_MARGIN = Platform.OS === 'ios' ? 8 : 3;\n\nconst styles = StyleSheet.create({\n  icon: {\n    width: ICON_SIZE,\n    height: ICON_SIZE,\n    margin: ICON_MARGIN,\n  },\n  flip: {\n    transform: 'scaleX(-1)',\n  },\n});\n"],"mappings":";;;;AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,0BAA0B;AAAA,OAAAC,KAAA;AAAA,OAAAC,QAAA;AAAA,OAAAC,UAAA;AACc,SAAAC,GAAA,IAAAC,IAAA;AAE5E,OAAO,SAASC,UAAUA,CAAAC,IAAA,EAAyC;EAAA,IAAxC;MAAEC,MAAM;MAAEC;IAA2B,CAAC,GAAAF,IAAA;IAAlBG,IAAA,GAAAC,6BAAA,CAAAJ,IAAA,EAAAK,SAAA;EAC7C,MAAM;IAAEC;EAAO,CAAC,GAAGb,QAAQ,CAAC,CAAC;EAC7B,MAAM;IAAEc;EAAU,CAAC,GAAGf,SAAS,CAAC,CAAC;EAEjC,OACEM,IAAA,CAACJ,KAAK,EAAAc,MAAA,CAAAC,MAAA;IACJR,MAAM,EAAEA,MAAO;IACfS,UAAU,EAAC,SAAS;IACpBC,YAAY,EAAE,CAAE;IAChBC,SAAS,EAAEN,MAAM,CAACO,IAAK;IACvBX,KAAK,EAAE,CAACY,MAAM,CAACC,IAAI,EAAER,SAAS,KAAK,KAAK,IAAIO,MAAM,CAACE,IAAI,EAAEd,KAAK;EAAE,GAC5DC,IAAA,CACL,CAAC;AAEN;AAEA,OAAO,MAAMc,SAAS,GAAGtB,QAAQ,CAACuB,EAAE,KAAK,KAAK,GAAG,EAAE,GAAG,EAAE;AACxD,OAAO,MAAMC,WAAW,GAAGxB,QAAQ,CAACuB,EAAE,KAAK,KAAK,GAAG,CAAC,GAAG,CAAC;AAExD,MAAMJ,MAAM,GAAGlB,UAAU,CAACwB,MAAM,CAAC;EAC/BL,IAAI,EAAE;IACJM,KAAK,EAAEJ,SAAS;IAChBK,MAAM,EAAEL,SAAS;IACjBM,MAAM,EAAEJ;EACV,CAAC;EACDH,IAAI,EAAE;IACJQ,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]},"metadata":{"hasCjsExports":false},"sourceType":"module","externalDependencies":[]}