'use strict';

require('react');
var classnames = require('classnames');
var framerMotion = require('framer-motion');
require('@babel/runtime/helpers/slicedToArray');
require('react-router-dom');
require('@bigbinary/neeto-hotkeys');
require('./overlayManager.js');
require('@babel/runtime/helpers/defineProperty');
require('@babel/runtime/helpers/classCallCheck');
require('@babel/runtime/helpers/createClass');
require('@bigbinary/neeto-cist');
require('qs');
require('ramda');
require('./index-BgzkP01c.js');
require('i18next');
var usePrefersReducedMotion = require('./usePrefersReducedMotion-D2Ck84HM.js');
var jsxRuntime = require('react/jsx-runtime');
require('@babel/runtime/helpers/toConsumableArray');
require('dayjs');
require('dayjs/plugin/localeData');
require('dayjs/plugin/utc');
require('dayjs/plugin/weekday');
require('dayjs/plugin/weekOfYear');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

var classnames__default = /*#__PURE__*/_interopDefault(classnames);

var ProgressBar = function ProgressBar(_ref) {
  var progressPercentage = _ref.progressPercentage,
    progressValue = _ref.progressValue,
    _ref$className = _ref.className,
    className = _ref$className === void 0 ? "" : _ref$className;
  var prefersReducedMotion = usePrefersReducedMotion.usePrefersReducedMotion();
  return /*#__PURE__*/jsxRuntime.jsx("div", {
    className: classnames__default.default(["neeto-ui-progress-bar__wrapper neeto-ui-rounded-full", className]),
    children: /*#__PURE__*/jsxRuntime.jsx(framerMotion.motion.div, {
      animate: {
        width: "".concat(progressPercentage, "%")
      },
      className: "neeto-ui-progress-bar neeto-ui-rounded-full",
      "data-testid": "progress-bar",
      initial: {
        width: 0
      },
      transition: {
        duration: prefersReducedMotion ? 0 : 0.5,
        ease: "easeInOut"
      },
      children: progressValue !== null && progressValue !== void 0 ? progressValue : "".concat(progressPercentage, "%")
    })
  });
};

module.exports = ProgressBar;
//# sourceMappingURL=ProgressBar.js.map
