You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
947 B

import{c as u,e as d,g as m,n as l,m as f,h as y,w as S}from"./index-f3701452.js";import{b as a,d as g,f as p}from"./index-f4658ae7.js";const[x,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:l,type:f("circular"),color:String,vertical:Boolean,textSize:l,textColor:String};var C=g({name:x,props:I,setup(e,{slots:n}){const c=p(()=>d({color:e.color},m(e.size))),i=()=>{const t=e.type==="spinner"?v:z;return a("span",{class:r("spinner",e.type),style:c.value},[n.icon?n.icon():t])},o=()=>{var t;if(n.default)return a("span",{class:r("text"),style:{fontSize:y(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};