import{j as s}from"./index-BTrh13Nx.js";import{m as i}from"./index-knYoKJM5.js";function f({progress:r,size:t=48,strokeWidth:e=4,showGlow:o=!1}){const n=(t-e)/2,a=n*2*Math.PI,l=a-r/100*a;return s.jsxs("div",{className:"relative",style:{width:t,height:t},children:[o&&r>0&&s.jsx("div",{className:"absolute inset-0 rounded-full opacity-30 blur-md",style:{background:`conic-gradient(hsl(var(--primary)) ${r}%, transparent ${r}%)`}}),s.jsxs("svg",{width:t,height:t,className:"-rotate-90",children:[s.jsx("circle",{cx:t/2,cy:t/2,r:n,fill:"none",stroke:"hsl(var(--muted))",strokeWidth:e}),s.jsx("defs",{children:s.jsxs("linearGradient",{id:`ring-grad-${t}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[s.jsx("stop",{offset:"0%",stopColor:"hsl(var(--primary))"}),s.jsx("stop",{offset:"100%",stopColor:"hsl(var(--accent))"})]})}),s.jsx(i.circle,{cx:t/2,cy:t/2,r:n,fill:"none",stroke:`url(#ring-grad-${t})`,strokeWidth:e,strokeLinecap:"round",strokeDasharray:a,initial:{strokeDashoffset:a},animate:{strokeDashoffset:l},transition:{duration:1.2,ease:"easeOut"}})]}),s.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s.jsxs("span",{className:"text-xs font-bold",children:[Math.round(r),"%"]})})]})}export{f as P};
