import{defineProperty as a}from"../../../../_virtual/_rollupPluginBabelHelpers.js";import{jsx as r}from"react/jsx-runtime";import{useMemo as e}from"react";import o from"classnames";import{calculatePercentage as t}from"../LinearProgressBarHelpers.js";var l=function(l){var n=l.value,i=l.baseClass,s=l.barStyle,m=l.animated,c=l.min,u=l.max,p=l.color,f=l.barLabelName,b=e((function(){return o(i,"".concat(i,"--").concat(s),a({},"".concat(i,"--animate"),m))}),[s,m,i]),v=e((function(){return null==n?0:t(n,c,u)}),[n,c,u]);return n?r("div",{role:"progressbar","aria-label":f,"aria-valuenow":v,"aria-valuemin":0,"aria-valuemax":100,className:b,style:Object.assign({width:"".concat(v,"%")},p&&{backgroundColor:p})}):null};export{l as default};
