"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("clsx");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var n=o(e),i=t(r);function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function c(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?a(Object(t),!0).forEach((function(r){u(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function u(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,r||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},l.apply(this,arguments)}function s(e,r){if(null==e)return{};var t,o,n=function(e,r){if(null==e)return{};var t,o,n={},i=Object.keys(e);for(o=0;o<i.length;o++)t=i[o],r.indexOf(t)>=0||(n[t]=e[t]);return n}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)t=i[o],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}var f={root:"DYWod","root_theme_yellow-500":"GlEJ3","root_theme_violet-500":"QPb6V","root_theme_green-700":"FVrHZ"},p=["value","min","max","theme","style","className"],b=n.forwardRef((function(e,r){var t=e.value,o=void 0===t?0:t,a=e.min,u=void 0===a?0:a,b=e.max,y=void 0===b?100:b,v=e.theme,O=void 0===v?"yellow-500":v,d=e.style,m=e.className,g=s(e,p),j=o;o<u?j=u:o>y&&(j=y);var P=j/y*100-y;return n.createElement("div",l({ref:r,className:i.default(f.root,f["root_theme_".concat(O)],m),role:"progressbar","aria-valuenow":j,"aria-valuemin":u,"aria-valuemax":y,"data-testid":"progress","data-qaid":"progress",style:c(c({},d),{},{"--pds-progress-width":"".concat(P,"%")})},g))}));b.displayName="Progress",exports.Progress=b,require("./style.production.css");
