1import{c as E,f as I,a as R}from"./button-Clt4Zfn1.js";import{r as c,j as l}from"./index-0y0VnOb8.js";const V=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],z=E("upload",V);function A(e,r=[]){let n=[];function s(u,i){const o=c.createContext(i);o.displayName=u+"Context";const a=n.length;n=[...n,i];const d=p=>{const{scope:f,children:x,...v}=p,j=f?.[e]?.[a]||o,M=c.useMemo(()=>v,Object.values(v));return l.jsx(j.Provider,{value:M,children:x})};d.displayName=u+"Provider";function h(p,f){const x=f?.[e]?.[a]||o,v=c.useContext(x);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${u}\``)}return[d,h]}const t=()=>{const u=n.map(i=>c.createContext(i));return function(o){const a=o?.[e]||u;return c.useMemo(()=>({[`__scope${e}`]:{...o,[e]:a}}),[o,a])}};return t.scopeName=e,[s,D(t,...r)]}function D(...e){const r=e[0];if(e.length===1)return r;const n=()=>{const s=e.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(u){const i=s.reduce((o,{useScope:a,scopeName:d})=>{const p=a(u)[`__scope${d}`];return{...o,...p}},{});return c.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return n.scopeName=r.scopeName,n}var L=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$=L.reduce((e,r)=>{const n=I(`Primitive.${r}`),s=c.forwardRef((t,u)=>{const{asChild:i,...o}=t,a=i?n:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(a,{...o,ref:u})});return s.displayName=`Primitive.${r}`,{...e,[r]:s}},{}),g="Progress",P=100,[O]=A(g),[k,T]=O(g),y=c.forwardRef((e,r)=>{const{__scopeProgress:n,value:s=null,max:t,getValueLabel:u=U,...i}=e;(t||t===0)&&!N(t)&&console.error(G(`${t}`,"Progress"));const o=N(t)?t:P;s!==null&&!b(s,o)&&console.error(H(`${s}`,"Progress"));const a=b(s,o)?s:null,d=m(a)?u(a,o):void 0;return l.jsx(k,{scope:n,value:a,max:o,children:l.jsx($.div,{"aria-valuemax":o,"aria-valuemin":0,"aria-valuenow":m(a)?a:void 0,"aria-valuetext":d,role:"progressbar","data-state":_(a,o),"data-value":a??void 0,"data-max":o,...i,ref:r})})});y.displayName=g;var S="ProgressIndicator",w=c.forwardRef((e,r)=>{const{__scopeProgress:n,...s}=e,t=T(S,n);return l.jsx($.div,{"data-state":_(t.value,t.max),"data-value":t.value??void 0,"data-max":t.max,...s,ref:r})});w.displayName=S;function U(e,r){return`${Math.round(e/r*100)}%`}function _(e,r){return e==null?"indeterminate":e===r?"complete":"loading"}function m(e){return typeof e=="number"}function N(e){return m(e)&&!isNaN(e)&&e>0}function b(e,r){return m(e)&&!isNaN(e)&&e<=r&&e>=0}function G(e,r){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${P}\`.`}function H(e,r){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${r}\`. The \`value\` prop must be: 2 - a positive number 3 - less than the value passed to \`max\` (or ${P} if no \`max\` prop is set) 4 - \`null\` or \`undefined\` if the progress is indeterminate. 5 6Defaulting to \`null\`.`}var C=y,X=w;const q=c.forwardRef(({className:e,value:r,...n},s)=>l.jsx(C,{ref:s,className:R("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:l.jsx(X,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(r||0)}%)`}})}));q.displayName=C.displayName;export{q as P,z as U};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.