"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 n(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 n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var o=n(e),i=t(r);function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}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 n=t.call(e,r||"default");if("object"!=typeof n)return n;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 n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},l.apply(this,arguments)}function s(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var f={root:"Qt61w","root_theme_yellow-500":"Q--6y","root_theme_violet-500":"ZJtv2","root_theme_green-700":"qpHWh"},p=["value","min","max","theme","style","className"],b=o.forwardRef((function(e,r){var t=e.value,n=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,m=e.style,d=e.className,g=s(e,p),j=n;n<u?j=u:n>y&&(j=y);var h=j/y*100-y;return o.createElement("div",l({ref:r,className:i.default(f.root,f["root_theme_".concat(O)],d),role:"progressbar","aria-valuenow":j,"aria-valuemin":u,"aria-valuemax":y,"data-testid":"progress","data-qaid":"progress",style:c(c({},m),{},{"--pds-progress-width":"".concat(h,"%")})},g))}));b.displayName="Progress",exports.Progress=b,require("./style.production.v2.css");
