import{i}from"./dom-DVb-f0ZG-Crdf0-mU.js";import{u as c}from"./useDefaults-DESCdb0p-CFLjYrdG.js";import{u as d}from"./useColorVariantClasses-ZDE19TZw-Cvu7SygP.js";import{l as m,u as f,x as l,c as _,o as t,w as v,d as b,h as y,D as a,J as C,e as h,t as S,n as B,G as x}from"./index-D02r7Zsc.js";const k={key:0,class:"visually-hidden"},N=m({__name:"BSpinner",props:{label:{default:void 0},role:{default:"status"},small:{type:Boolean,default:!1},tag:{default:"span"},type:{default:"border"},variant:{default:null}},setup(o){const e=c(o,"BSpinner"),n=f(),r=d(l(()=>({textVariant:e.variant}))),u=l(()=>[`spinner-${e.type}`,r.value,{[`spinner-${e.type}-sm`]:e.small}]),s=l(()=>!i(n.label));return(p,V)=>(t(),_(x(a(e).tag),{class:B(u.value),role:a(e).label||s.value?a(e).role:null,"aria-hidden":a(e).label||s.value?null:!0},{default:v(()=>[a(e).label||s.value?(t(),b("span",k,[C(p.$slots,"label",{},()=>[h(S(a(e).label),1)])])):y("",!0)]),_:3},8,["class","role","aria-hidden"]))}});export{N as _};
