index-2b121e0e.js 942 B

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