import{aI as E,aa as P,ab as y,R as g,af as R,ad as $,ai as w,am as A,an as L,ac as z,ao as T,aJ as V,aK as B}from"./index-CNWvE5qA.js";import{g as I}from"./get-auto-contrast-value-Da6zqqWm.js";const[J,x]=E("Progress.Root component was not found in tree");var p={root:"m_db6d6462",section:"m_2242eb65","stripes-animation":"m_81a374bd",label:"m_91e40b74"};const K={},h=P((o,a)=>{const{classNames:s,className:e,style:r,styles:l,vars:d,...t}=y("ProgressLabel",K,o),n=x();return g.createElement(R,{ref:a,...n.getStyles("label",{className:e,style:r,classNames:s,styles:l}),...t})});h.classes=p;h.displayName="@mantine/core/ProgressLabel";const M={},j=w((o,{size:a,radius:s,transitionDuration:e})=>({root:{"--progress-size":A(a,"progress-size"),"--progress-radius":s===void 0?void 0:L(s),"--progress-transition-duration":typeof e=="number"?`${e}ms`:void 0}})),b=P((o,a)=>{const s=y("ProgressRoot",M,o),{classNames:e,className:r,style:l,styles:d,unstyled:t,vars:n,autoContrast:c,transitionDuration:v,...i}=s,m=$({name:"Progress",classes:p,props:s,className:r,style:l,classNames:e,styles:d,unstyled:t,vars:n,varsResolver:j});return g.createElement(J,{value:{getStyles:m,autoContrast:c}},g.createElement(R,{ref:a,...m("root"),...i}))});b.classes=p;b.displayName="@mantine/core/ProgressRoot";const k={withAria:!0},N=P((o,a)=>{const{classNames:s,className:e,style:r,styles:l,vars:d,value:t,withAria:n,color:c,striped:v,animated:i,mod:m,...S}=y("ProgressSection",k,o),C=x(),f=z(),_=n?{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":t,"aria-valuetext":`${t}%`}:{};return g.createElement(R,{ref:a,...C.getStyles("section",{className:e,classNames:s,styles:l,style:r}),...S,..._,mod:[{striped:v||i,animated:i},m],__vars:{"--progress-section-width":`${t}%`,"--progress-section-color":T(c,f),"--progress-label-color":I(C.autoContrast,f)?V({color:c,theme:f}):void 0}})});N.classes=p;N.displayName="@mantine/core/ProgressSection";const q={},u=P((o,a)=>{const s=y("Progress",q,o),{value:e,classNames:r,styles:l,vars:d,color:t,striped:n,animated:c,"aria-label":v,...i}=s,{resolvedClassNames:m,resolvedStyles:S}=B({classNames:r,styles:l,props:s});return g.createElement(b,{ref:a,classNames:m,styles:S,vars:d,...i},g.createElement(N,{value:e,color:t,striped:n,animated:c,"aria-label":v}))});u.classes=p;u.displayName="@mantine/core/Progress";u.Section=N;u.Root=b;u.Label=h;export{u as P};