import{M as u,S as r,O as d,Q as S,l as f,W as m,bl as y,f as a,am as x,X as g}from"./index-BV0H45HW.js";const[p,l]=S("loading"),v=Array(12).fill(null).map((e,n)=>a("i",{class:l("line",String(n+1))},null)),z=a("svg",{class:l("circular"),viewBox:"25 25 50 50"},[a("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),I={size:r,type:d("circular"),color:String,vertical:Boolean,textSize:r,textColor:String};var C=u({name:p,props:I,setup(e,{slots:n}){const c=f(()=>m({color:e.color},y(e.size))),i=()=>{const t=e.type==="spinner"?v:z;return a("span",{class:l("spinner",e.type),style:c.value},[n.icon?n.icon():t])},o=()=>{var t;if(n.default)return a("span",{class:l("text"),style:{fontSize:x(e.textSize),color:(t=e.textColor)!=null?t:e.color}},[n.default()])};return()=>{const{type:t,vertical:s}=e;return a("div",{class:l([t,{vertical:s}]),"aria-live":"polite","aria-busy":!0},[i(),o()])}}});const P=g(C);export{P as L};
