"use strict";const s=require("./mergeProps-DD8aR8go.cjs.js"),p=require("./filterDOMProps-AbzzCIX-.cjs.js"),m=require("./number-DHvo-MDe.cjs.js"),x=require("./useLabel-BYUx0yyV.cjs.js"),v=require("./context-XwB7Jud0.cjs.js"),P=require("./NumberFormatter-DewVDY5w.cjs.js"),q=require("react");function f(a={}){let{locale:e}=v.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7();return q.useMemo(()=>new P.$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(e,a),[e,a])}function g(a){let{value:e=0,minValue:r=0,maxValue:t=100,valueLabel:l,isIndeterminate:o,formatOptions:c={style:"percent"}}=a,b=p.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),{labelProps:d,fieldProps:n}=x.$d191a55c9702f145$export$8467354a121f1b9f({...a,labelElementType:"span"});e=m.$9446cca9a3875146$export$7d15b64cf5a3a4c4(e,r,t);let u=(e-r)/(t-r),$=f(c);if(!o&&!l){let i=c.style==="percent"?u:e;l=$.format(i)}return{progressBarProps:s.$3ef42575df84b30b$export$9d1611c77c2fe928(b,{...n,"aria-valuenow":o?void 0:e,"aria-valuemin":r,"aria-valuemax":t,"aria-valuetext":o?void 0:l,role:"progressbar"}),labelProps:d}}exports.$204d9ebcedfb8806$export$ed5abd763a836edc=g;exports.$a916eb452884faea$export$b7a616150fdb9f44=f;
//# sourceMappingURL=useProgressBar-CiLam1li.cjs.js.map
