"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/extends"),r=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/objectWithoutProperties"),o=require("react"),a=require("clsx");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function i(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 c=n(e),s=n(r),u=n(t),l=i(o),f=n(a),p={root:"DYWod","root_theme_yellow-500":"GlEJ3","root_theme_violet-500":"QPb6V","root_theme_green-700":"FVrHZ"},b=["value","min","max","theme","style","className"];function d(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 m(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?d(Object(t),!0).forEach((function(r){s.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var y=l.forwardRef((function(e,r){var t=e.value,o=void 0===t?0:t,a=e.min,n=void 0===a?0:a,i=e.max,s=void 0===i?100:i,d=e.theme,y=void 0===d?"yellow-500":d,O=e.style,v=e.className,j=u.default(e,b),h=100-Math.min(Math.max((o-n)/(s-n)*100,0),100);return l.createElement("div",c.default({ref:r,className:f.default(p.root,p["root_theme_".concat(y)],v),role:"progressbar","aria-valuenow":o,"aria-valuemin":n,"aria-valuemax":s,"data-testid":"progress","data-qaid":"progress",style:m(m({},O),{},{"--pds-progress-width":"-".concat(h,"%")})},j))}));y.displayName="Progress",exports.Progress=y,require("./style.production.css");
