{"ast":null,"code":"'use strict';\n\nfunction _extends() {\n  _extends = Object.assign || function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n\n    return target;\n  };\n\n  return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n  if (source == null) return {};\n  var target = {};\n  var sourceKeys = Object.keys(source);\n  var key, i;\n\n  for (i = 0; i < sourceKeys.length; i++) {\n    key = sourceKeys[i];\n    if (excluded.indexOf(key) >= 0) continue;\n    target[key] = source[key];\n  }\n\n  return target;\n}\n\nimport * as React from 'react';\nimport { useCallback, useMemo, useState, useRef } from 'react';\nimport useMergeRefs from \"../../modules/useMergeRefs\";\nimport usePressEvents from \"../../modules/usePressEvents\";\nimport StyleSheet from \"../StyleSheet\";\nimport View from \"../View\";\n\nfunction createExtraStyles(activeOpacity, underlayColor) {\n  return {\n    child: {\n      opacity: activeOpacity !== null && activeOpacity !== void 0 ? activeOpacity : 0.85\n    },\n    underlay: {\n      backgroundColor: underlayColor === undefined ? 'black' : underlayColor\n    }\n  };\n}\n\nfunction hasPressHandler(props) {\n  return props.onPress != null || props.onPressIn != null || props.onPressOut != null || props.onLongPress != null;\n}\n\nfunction TouchableHighlight(props, forwardedRef) {\n  var activeOpacity = props.activeOpacity,\n      children = props.children,\n      delayPressIn = props.delayPressIn,\n      delayPressOut = props.delayPressOut,\n      delayLongPress = props.delayLongPress,\n      disabled = props.disabled,\n      focusable = props.focusable,\n      onHideUnderlay = props.onHideUnderlay,\n      onLongPress = props.onLongPress,\n      onPress = props.onPress,\n      onPressIn = props.onPressIn,\n      onPressOut = props.onPressOut,\n      onShowUnderlay = props.onShowUnderlay,\n      rejectResponderTermination = props.rejectResponderTermination,\n      style = props.style,\n      testOnly_pressed = props.testOnly_pressed,\n      underlayColor = props.underlayColor,\n      rest = _objectWithoutPropertiesLoose(props, [\"activeOpacity\", \"children\", \"delayPressIn\", \"delayPressOut\", \"delayLongPress\", \"disabled\", \"focusable\", \"onHideUnderlay\", \"onLongPress\", \"onPress\", \"onPressIn\", \"onPressOut\", \"onShowUnderlay\", \"rejectResponderTermination\", \"style\", \"testOnly_pressed\", \"underlayColor\"]);\n\n  var hostRef = useRef(null);\n  var setRef = useMergeRefs(forwardedRef, hostRef);\n\n  var _useState = useState(testOnly_pressed === true ? createExtraStyles(activeOpacity, underlayColor) : null),\n      extraStyles = _useState[0],\n      setExtraStyles = _useState[1];\n\n  var showUnderlay = useCallback(function () {\n    if (!hasPressHandler(props)) {\n      return;\n    }\n\n    setExtraStyles(createExtraStyles(activeOpacity, underlayColor));\n\n    if (onShowUnderlay != null) {\n      onShowUnderlay();\n    }\n  }, [activeOpacity, onShowUnderlay, props, underlayColor]);\n  var hideUnderlay = useCallback(function () {\n    if (testOnly_pressed === true) {\n      return;\n    }\n\n    if (hasPressHandler(props)) {\n      setExtraStyles(null);\n\n      if (onHideUnderlay != null) {\n        onHideUnderlay();\n      }\n    }\n  }, [onHideUnderlay, props, testOnly_pressed]);\n  var pressConfig = useMemo(function () {\n    return {\n      cancelable: !rejectResponderTermination,\n      disabled: disabled,\n      delayLongPress: delayLongPress,\n      delayPressStart: delayPressIn,\n      delayPressEnd: delayPressOut,\n      onLongPress: onLongPress,\n      onPress: onPress,\n      onPressStart: function onPressStart(event) {\n        showUnderlay();\n\n        if (onPressIn != null) {\n          onPressIn(event);\n        }\n      },\n      onPressEnd: function onPressEnd(event) {\n        hideUnderlay();\n\n        if (onPressOut != null) {\n          onPressOut(event);\n        }\n      }\n    };\n  }, [delayLongPress, delayPressIn, delayPressOut, disabled, onLongPress, onPress, onPressIn, onPressOut, rejectResponderTermination, showUnderlay, hideUnderlay]);\n  var pressEventHandlers = usePressEvents(hostRef, pressConfig);\n  var child = React.Children.only(children);\n  return React.createElement(View, _extends({}, rest, pressEventHandlers, {\n    accessibilityDisabled: disabled,\n    focusable: !disabled && focusable !== false,\n    ref: setRef,\n    style: [styles.root, style, !disabled && styles.actionable, extraStyles && extraStyles.underlay]\n  }), React.cloneElement(child, {\n    style: StyleSheet.compose(child.props.style, extraStyles && extraStyles.child)\n  }));\n}\n\nvar styles = StyleSheet.create({\n  root: {\n    userSelect: 'none'\n  },\n  actionable: {\n    cursor: 'pointer',\n    touchAction: 'manipulation'\n  }\n});\nvar MemoedTouchableHighlight = React.memo(React.forwardRef(TouchableHighlight));\nMemoedTouchableHighlight.displayName = 'TouchableHighlight';\nexport default MemoedTouchableHighlight;","map":{"version":3,"sources":["/Users/rohitsingh/Documents/projects/new-nativebase-setup/NativeBase/example/node_modules/react-native-web/dist/exports/TouchableHighlight/index.js"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","React","useCallback","useMemo","useState","useRef","useMergeRefs","usePressEvents","StyleSheet","View","createExtraStyles","activeOpacity","underlayColor","child","opacity","underlay","backgroundColor","undefined","hasPressHandler","props","onPress","onPressIn","onPressOut","onLongPress","TouchableHighlight","forwardedRef","children","delayPressIn","delayPressOut","delayLongPress","disabled","focusable","onHideUnderlay","onShowUnderlay","rejectResponderTermination","style","testOnly_pressed","rest","hostRef","setRef","_useState","extraStyles","setExtraStyles","showUnderlay","hideUnderlay","pressConfig","cancelable","delayPressStart","delayPressEnd","onPressStart","event","onPressEnd","pressEventHandlers","Children","only","createElement","accessibilityDisabled","ref","styles","root","actionable","cloneElement","compose","create","userSelect","cursor","touchAction","MemoedTouchableHighlight","memo","forwardRef","displayName"],"mappings":"AASA;;AAEA,SAASA,QAAT,GAAoB;AAAEA,EAAAA,QAAQ,GAAGC,MAAM,CAACC,MAAP,IAAiB,UAAUC,MAAV,EAAkB;AAAE,SAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGC,SAAS,CAACC,MAA9B,EAAsCF,CAAC,EAAvC,EAA2C;AAAE,UA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GZ,KAAK,CAACoD,QAAN,CAAeC,IAAf,CAAoB5B,QAApB,CAAZ;AACA,SAAoBzB,KAAK,CAACsD,aAAN,CAAoB9C,IAApB,EAA0B1B,QAAQ,CAAC,EAAD,EAAKsD,IAAL,EAAWe,kBAAX,EAA+B;AACnFI,IAAAA,qBAAqB,EAAE1B,QAD4D;AAEnFC,IAAAA,SAAS,EAAE,CAACD,QAAD,IAAaC,SAAS,KAAK,KAF6C;AAGnF0B,IAAAA,GAAG,EAAElB,MAH8E;AAInFJ,IAAAA,KAAK,EAAE,CAACuB,MAAM,CAACC,IAAR,EAAcxB,KAAd,EAAqB,CAACL,QAAD,IAAa4B,MAAM,CAACE,UAAzC,EAAqDnB,WAAW,IAAIA,WAAW,CAAC1B,QAAhF;AAJ4E,GAA/B,CAAlC,EAKHd,KAAK,CAAC4D,YAAN,CAAmBhD,KAAnB,EAA0B;AACzCsB,IAAAA,KAAK,EAAE3B,UAAU,CAACsD,OAAX,CAAmBjD,KAAK,CAACM,KAAN,CAAYgB,KAA/B,EAAsCM,WAAW,IAAIA,WAAW,CAAC5B,KAAjE;AADkC,GAA1B,CALG,CAApB;AAQD;;AAED,IAAI6C,MAAM,GAAGlD,UAAU,CAACuD,MAAX,CAAkB;AAC7BJ,EAAAA,IAAI,EAAE;AACJK,IAAAA,UAAU,EAAE;AADR,GADuB;AAI7BJ,EAAAA,UAAU,EAAE;AACVK,IAAAA,MAAM,EAAE,SADE;AAEVC,IAAAA,WAAW,EAAE;AAFH;AAJiB,CAAlB,CAAb;AASA,IAAIC,wBAAwB,GAAgBlE,KAAK,CAACmE,IAAN,CAAyBnE,KAAK,CAACoE,UAAN,CAAiB7C,kBAAjB,CAAzB,CAA5C;AACA2C,wBAAwB,CAACG,WAAzB,GAAuC,oBAAvC;AACA,eAAeH,wBAAf","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n * @format\n */\n'use strict';\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport * as React from 'react';\nimport { useCallback, useMemo, useState, useRef } from 'react';\nimport useMergeRefs from '../../modules/useMergeRefs';\nimport usePressEvents from '../../modules/usePressEvents';\nimport StyleSheet from '../StyleSheet';\nimport View from '../View';\n\nfunction createExtraStyles(activeOpacity, underlayColor) {\n  return {\n    child: {\n      opacity: activeOpacity !== null && activeOpacity !== void 0 ? activeOpacity : 0.85\n    },\n    underlay: {\n      backgroundColor: underlayColor === undefined ? 'black' : underlayColor\n    }\n  };\n}\n\nfunction hasPressHandler(props) {\n  return props.onPress != null || props.onPressIn != null || props.onPressOut != null || props.onLongPress != null;\n}\n/**\n * A wrapper for making views respond properly to touches.\n * On press down, the opacity of the wrapped view is decreased, which allows\n * the underlay color to show through, darkening or tinting the view.\n *\n * The underlay comes from wrapping the child in a new View, which can affect\n * layout, and sometimes cause unwanted visual artifacts if not used correctly,\n * for example if the backgroundColor of the wrapped view isn't explicitly set\n * to an opaque color.\n *\n * TouchableHighlight must have one child (not zero or more than one).\n * If you wish to have several child components, wrap them in a View.\n */\n\n\nfunction TouchableHighlight(props, forwardedRef) {\n  var activeOpacity = props.activeOpacity,\n      children = props.children,\n      delayPressIn = props.delayPressIn,\n      delayPressOut = props.delayPressOut,\n      delayLongPress = props.delayLongPress,\n      disabled = props.disabled,\n      focusable = props.focusable,\n      onHideUnderlay = props.onHideUnderlay,\n      onLongPress = props.onLongPress,\n      onPress = props.onPress,\n      onPressIn = props.onPressIn,\n      onPressOut = props.onPressOut,\n      onShowUnderlay = props.onShowUnderlay,\n      rejectResponderTermination = props.rejectResponderTermination,\n      style = props.style,\n      testOnly_pressed = props.testOnly_pressed,\n      underlayColor = props.underlayColor,\n      rest = _objectWithoutPropertiesLoose(props, [\"activeOpacity\", \"children\", \"delayPressIn\", \"delayPressOut\", \"delayLongPress\", \"disabled\", \"focusable\", \"onHideUnderlay\", \"onLongPress\", \"onPress\", \"onPressIn\", \"onPressOut\", \"onShowUnderlay\", \"rejectResponderTermination\", \"style\", \"testOnly_pressed\", \"underlayColor\"]);\n\n  var hostRef = useRef(null);\n  var setRef = useMergeRefs(forwardedRef, hostRef);\n\n  var _useState = useState(testOnly_pressed === true ? createExtraStyles(activeOpacity, underlayColor) : null),\n      extraStyles = _useState[0],\n      setExtraStyles = _useState[1];\n\n  var showUnderlay = useCallback(function () {\n    if (!hasPressHandler(props)) {\n      return;\n    }\n\n    setExtraStyles(createExtraStyles(activeOpacity, underlayColor));\n\n    if (onShowUnderlay != null) {\n      onShowUnderlay();\n    }\n  }, [activeOpacity, onShowUnderlay, props, underlayColor]);\n  var hideUnderlay = useCallback(function () {\n    if (testOnly_pressed === true) {\n      return;\n    }\n\n    if (hasPressHandler(props)) {\n      setExtraStyles(null);\n\n      if (onHideUnderlay != null) {\n        onHideUnderlay();\n      }\n    }\n  }, [onHideUnderlay, props, testOnly_pressed]);\n  var pressConfig = useMemo(function () {\n    return {\n      cancelable: !rejectResponderTermination,\n      disabled: disabled,\n      delayLongPress: delayLongPress,\n      delayPressStart: delayPressIn,\n      delayPressEnd: delayPressOut,\n      onLongPress: onLongPress,\n      onPress: onPress,\n      onPressStart: function onPressStart(event) {\n        showUnderlay();\n\n        if (onPressIn != null) {\n          onPressIn(event);\n        }\n      },\n      onPressEnd: function onPressEnd(event) {\n        hideUnderlay();\n\n        if (onPressOut != null) {\n          onPressOut(event);\n        }\n      }\n    };\n  }, [delayLongPress, delayPressIn, delayPressOut, disabled, onLongPress, onPress, onPressIn, onPressOut, rejectResponderTermination, showUnderlay, hideUnderlay]);\n  var pressEventHandlers = usePressEvents(hostRef, pressConfig);\n  var child = React.Children.only(children);\n  return /*#__PURE__*/React.createElement(View, _extends({}, rest, pressEventHandlers, {\n    accessibilityDisabled: disabled,\n    focusable: !disabled && focusable !== false,\n    ref: setRef,\n    style: [styles.root, style, !disabled && styles.actionable, extraStyles && extraStyles.underlay]\n  }), /*#__PURE__*/React.cloneElement(child, {\n    style: StyleSheet.compose(child.props.style, extraStyles && extraStyles.child)\n  }));\n}\n\nvar styles = StyleSheet.create({\n  root: {\n    userSelect: 'none'\n  },\n  actionable: {\n    cursor: 'pointer',\n    touchAction: 'manipulation'\n  }\n});\nvar MemoedTouchableHighlight = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(TouchableHighlight));\nMemoedTouchableHighlight.displayName = 'TouchableHighlight';\nexport default MemoedTouchableHighlight;"]},"metadata":{},"sourceType":"module"}