import*as e from"react";import{progress as i,getProgressProps as r,stripe as t}from"./progress.utils.js";import{omitThemingProps as a}from"../../../system/dist/esm/system.utils.js";import{useMultiStyleConfig as s}from"../../../system/dist/esm/use-style-config.js";import{chakra as n}from"../../../system/dist/esm/system.js";import{StylesProvider as l,useStyles as m}from"../../../system/dist/esm/providers.js";import{__DEV__ as o}from"../../../utils/dist/esm/assertion.js";function d(e,i){if(null==e)return{};var r,t,a={},s=Object.keys(e);for(t=0;t<s.length;t++)r=s[t],i.indexOf(r)>=0||(a[r]=e[r]);return a}function u(){return(u=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e}).apply(this,arguments)}var c=i=>{var{min:t,max:a,value:s,isIndeterminate:l}=i,o=d(i,["min","max","value","isIndeterminate"]),c=r({value:s,min:t,max:a,isIndeterminate:l}),f=u({height:"100%"},m().filledTrack);return e.createElement(n.div,u({style:u({width:c.percent+"%"},o.style)},c.bind,o,{__css:f}))},f=r=>{var m,o=a(r),{value:f,min:p=0,max:v=100,hasStripe:b,isAnimated:y,children:h,borderRadius:g,isIndeterminate:j,"aria-label":x,"aria-labelledby":I}=o,O=d(o,["value","min","max","hasStripe","isAnimated","children","borderRadius","isIndeterminate","aria-label","aria-labelledby"]),R=s("Progress",r),k=null!=g?g:null==(m=R.track)?void 0:m.borderRadius,w=u({},!j&&b&&y&&{animation:t+" 1s linear infinite"},j&&{position:"absolute",willChange:"left",minWidth:"50%",animation:i+" 1s ease infinite normal none running"}),E=u({overflow:"hidden",position:"relative"},R.track);return e.createElement(n.div,u({borderRadius:k,__css:E},O),e.createElement(l,{value:R},e.createElement(c,{"aria-label":x,"aria-labelledby":I,min:p,max:v,value:f,isIndeterminate:j,css:w,borderRadius:k}),h))};o&&(f.displayName="Progress");export{f as Progress};
//# sourceMappingURL=progress.js.map
