import{aJ as x,aK as y,ao as m,hK as $,aL as P}from"./app-k0jcl5PQ.js";const g=1e3;function j(s,e,r){const a=(s-e)/(r-e)*100;return Math.round(a*g)/g}function h({min:s,now:e,max:r,label:a,visuallyHidden:o,striped:d,animated:i,className:c,style:p,variant:n,bsPrefix:t,...l},u){return m.jsx("div",{ref:u,...l,role:"progressbar",className:P(c,`${t}-bar`,{[`bg-${n}`]:n,[`${t}-bar-animated`]:i,[`${t}-bar-striped`]:i||d}),style:{width:`${j(e,s,r)}%`,...p},"aria-valuenow":e,"aria-valuemin":s,"aria-valuemax":r,children:o?m.jsx("span",{className:"visually-hidden",children:a}):a})}const w=x.forwardRef(({isChild:s=!1,...e},r)=>{const a={min:0,max:100,animated:!1,visuallyHidden:!1,striped:!1,...e};if(a.bsPrefix=y(a.bsPrefix,"progress"),s)return h(a,r);const{min:o,now:d,max:i,label:c,visuallyHidden:p,striped:n,animated:t,bsPrefix:l,variant:u,className:v,children:f,...N}=a;return m.jsx("div",{ref:r,...N,className:P(v,l),children:f?$(f,b=>x.cloneElement(b,{isChild:!0})):h({min:o,now:d,max:i,label:c,visuallyHidden:p,striped:n,animated:t,bsPrefix:l,variant:u},r)})});w.displayName="ProgressBar";export{w as P};
//# sourceMappingURL=Bd15j6xA.chunk.js.map
