1import{e as o,o as s,C as v}from"./vendor-CmRaWcmi.js";function k(e){var i=e.match(/[\p{L}\p{N}]/u);return i==null?"?":i[0].toUpperCase()}function p(e){var i=e.strokeWidth,g=e.size,c=e.sigmaProgress,l=e.alt,f=e.src,r=g!==void 0?g:32,t=i!==void 0?i:2,u=o(e.progress,100),S=o(c,0),n=(r-t)/2,a=n*2*3.141592653589793,d=a-u/100*a,m=S/100*a,x=a-m,h=u*360/100;return s.jsxs("div",{children:[s.jsxs("svg",{children:[s.jsx("circle",{className:"text-gray-200",cx:String(r/2),cy:String(r/2),fill:"transparent",r:String(n),stroke:"currentColor",strokeWidth:String(t)}),o(v(c,function(y){return s.jsx("circle",{className:"text-red-300",style:{opacity:"0.7"},cx:String(r/2),cy:String(r/2),fill:"transparent",r:String(n),stroke:"currentColor",strokeDasharray:String(a),strokeDashoffset:String(x),strokeLinecap:"round",strokeWidth:String(t),transform:"rotate("+String(h)+" "+String(r/2)+" "+String(r/2)+")"})}),null),s.jsx("circle",{className:"text-red-500",cx:String(r/2),cy:String(r/2),fill:"transparent",r:String(n),stroke:"currentColor",strokeDasharray:String(a),strokeDashoffset:String(d),strokeLinecap:"round",strokeWidth:String(t)})],className:"absolute inset-0 w-full h-full -rotate-90",viewBox:"0 0 "+r.toString()+" "+r.toString()}),f===""?s.jsx("div",{children:k(l),"aria-label":l,className:"absolute rounded-full bg-slate-300 flex items-center justify-center text-slate-600 font-semibold leading-none select-none",role:"img",style:{bottom:String(t)+"px",fontSize:String(r*.4)+"px",left:String(t)+"px",right:String(t)+"px",top:String(t)+"px"}}):s.jsx("img",{className:"rounded-full w-full h-full object-cover",style:{padding:String(t)+"px"},alt:l,src:f})],className:"relative flex-shrink-0",style:{height:String(r)+"px",width:String(r)+"px"}})}var N=p;export{k as i,N as m}; 2//# sourceMappingURL=AvatarWithProgress.re-C9NYhZAn.js.map
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.