{"ast":null,"code":"function _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 StyleSheet from \"../StyleSheet\";\nimport View from \"../View\";\nvar ProgressBar = React.forwardRef(function (props, ref) {\n  var _props$color = props.color,\n      color = _props$color === void 0 ? '#1976D2' : _props$color,\n      _props$indeterminate = props.indeterminate,\n      indeterminate = _props$indeterminate === void 0 ? false : _props$indeterminate,\n      _props$progress = props.progress,\n      progress = _props$progress === void 0 ? 0 : _props$progress,\n      _props$trackColor = props.trackColor,\n      trackColor = _props$trackColor === void 0 ? 'transparent' : _props$trackColor,\n      style = props.style,\n      other = _objectWithoutPropertiesLoose(props, [\"color\", \"indeterminate\", \"progress\", \"trackColor\", \"style\"]);\n\n  var percentageProgress = progress * 100;\n  var progressRef = React.useRef(null);\n  React.useEffect(function () {\n    var width = indeterminate ? '25%' : percentageProgress + \"%\";\n\n    if (progressRef.current != null) {\n      progressRef.current.setNativeProps({\n        style: {\n          width: width\n        }\n      });\n    }\n  }, [indeterminate, percentageProgress, progressRef]);\n  return React.createElement(View, _extends({}, other, {\n    accessibilityRole: \"progressbar\",\n    accessibilityValue: {\n      max: 100,\n      min: 0,\n      now: indeterminate ? null : percentageProgress\n    },\n    ref: ref,\n    style: [styles.track, style, {\n      backgroundColor: trackColor\n    }]\n  }), React.createElement(View, {\n    ref: progressRef,\n    style: [styles.progress, indeterminate && styles.animation, {\n      backgroundColor: color\n    }]\n  }));\n});\nProgressBar.displayName = 'ProgressBar';\nvar styles = StyleSheet.create({\n  track: {\n    forcedColorAdjust: 'none',\n    height: 5,\n    overflow: 'hidden',\n    userSelect: 'none',\n    zIndex: 0\n  },\n  progress: {\n    forcedColorAdjust: 'none',\n    height: '100%',\n    zIndex: -1\n  },\n  animation: {\n    animationDuration: '1s',\n    animationKeyframes: [{\n      '0%': {\n        transform: [{\n          translateX: '-100%'\n        }]\n      },\n      '100%': {\n        transform: [{\n          translateX: '400%'\n        }]\n      }\n    }],\n    animationTimingFunction: 'linear',\n    animationIterationCount: 'infinite'\n  }\n});\nexport default ProgressBar;","map":{"version":3,"sources":["/Users/rohitsingh/Documents/projects/new-nativebase-setup/NativeBase/example/node_modules/react-native-web/dist/exports/ProgressBar/index.js"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","React","StyleSheet","View","ProgressBar","forwardRef","props","ref","_props$color","color","_props$indeterminate","indeterminate","_props$progress","progress","_props$trackColor","trackColor","style","other","percentageProgress","progressRef","useRef","useEffect","width","current","setNativeProps","createElement","accessibilityRole","accessibilityValue","max","min","now","styles","track","backgroundColor","animation","displayName","create","forcedColorAdjust","height","overflow","userSelect","zIndex","animationDuration","animationKeyframes","transform","translateX","animationTimingFunction","animationIterationCount"],"mappings":"AAAA,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,UAAIG,MAAM,GAAGF,SAAS,CAACD,CAAD,CAAtB;;AAA2B,WAAK,IAAII,GAAT,IAAgBD,MAAhB,EAAwB;AAAE,YAAIN,MAAM,CAACQ,SAAP,CAAiBC,cAAjB,C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TC,IAAAA,uBAAuB,EAAE;AAfhB;AAbkB,CAAlB,CAAb;AA+BA,eAAe3C,WAAf","sourcesContent":["function _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\n/**\n * Copyright (c) Nicolas Gallagher.\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 */\nimport * as React from 'react';\nimport StyleSheet from '../StyleSheet';\nimport View from '../View';\nvar ProgressBar = /*#__PURE__*/React.forwardRef(function (props, ref) {\n  var _props$color = props.color,\n      color = _props$color === void 0 ? '#1976D2' : _props$color,\n      _props$indeterminate = props.indeterminate,\n      indeterminate = _props$indeterminate === void 0 ? false : _props$indeterminate,\n      _props$progress = props.progress,\n      progress = _props$progress === void 0 ? 0 : _props$progress,\n      _props$trackColor = props.trackColor,\n      trackColor = _props$trackColor === void 0 ? 'transparent' : _props$trackColor,\n      style = props.style,\n      other = _objectWithoutPropertiesLoose(props, [\"color\", \"indeterminate\", \"progress\", \"trackColor\", \"style\"]);\n\n  var percentageProgress = progress * 100;\n  var progressRef = React.useRef(null);\n  React.useEffect(function () {\n    var width = indeterminate ? '25%' : percentageProgress + \"%\";\n\n    if (progressRef.current != null) {\n      progressRef.current.setNativeProps({\n        style: {\n          width: width\n        }\n      });\n    }\n  }, [indeterminate, percentageProgress, progressRef]);\n  return /*#__PURE__*/React.createElement(View, _extends({}, other, {\n    accessibilityRole: \"progressbar\",\n    accessibilityValue: {\n      max: 100,\n      min: 0,\n      now: indeterminate ? null : percentageProgress\n    },\n    ref: ref,\n    style: [styles.track, style, {\n      backgroundColor: trackColor\n    }]\n  }), /*#__PURE__*/React.createElement(View, {\n    ref: progressRef,\n    style: [styles.progress, indeterminate && styles.animation, {\n      backgroundColor: color\n    }]\n  }));\n});\nProgressBar.displayName = 'ProgressBar';\nvar styles = StyleSheet.create({\n  track: {\n    forcedColorAdjust: 'none',\n    height: 5,\n    overflow: 'hidden',\n    userSelect: 'none',\n    zIndex: 0\n  },\n  progress: {\n    forcedColorAdjust: 'none',\n    height: '100%',\n    zIndex: -1\n  },\n  animation: {\n    animationDuration: '1s',\n    animationKeyframes: [{\n      '0%': {\n        transform: [{\n          translateX: '-100%'\n        }]\n      },\n      '100%': {\n        transform: [{\n          translateX: '400%'\n        }]\n      }\n    }],\n    animationTimingFunction: 'linear',\n    animationIterationCount: 'infinite'\n  }\n});\nexport default ProgressBar;"]},"metadata":{},"sourceType":"module"}