import{u as f,_ as v}from"./BLink.vue_vue_type_script_setup_true_lang-Ct47WhzE-DDPYis_D.js";import{u as m}from"./useColorVariantClasses-ZDE19TZw-Cvu7SygP.js";import{u as y}from"./useDefaults-DESCdb0p-CFLjYrdG.js";import{_ as B}from"./ConditionalWrapper.vue_vue_type_script_lang-IX_NpHH--DrWkD0m2.js";import{l as _,x as a,c as C,o as b,w as l,b as g,L as n,D as o,J as h,G as O}from"./index-D02r7Zsc.js";const N=_({__name:"BBadge",props:{dotIndicator:{type:Boolean,default:!1},pill:{type:Boolean,default:!1},placement:{default:void 0},tag:{default:"span"},active:{type:Boolean,default:void 0},activeClass:{default:void 0},disabled:{type:Boolean,default:void 0},exactActiveClass:{default:void 0},href:{default:void 0},icon:{type:Boolean,default:void 0},noRel:{type:Boolean},opacity:{default:void 0},opacityHover:{default:void 0},prefetch:{type:Boolean},prefetchOn:{},noPrefetch:{type:Boolean},prefetchedClass:{},rel:{default:void 0},replace:{type:Boolean,default:void 0},routerComponentName:{default:void 0},stretched:{type:Boolean,default:!1},target:{default:void 0},to:{default:void 0},underlineOffset:{default:void 0},underlineOffsetHover:{default:void 0},underlineOpacity:{default:void 0},underlineOpacityHover:{default:void 0},underlineVariant:{default:void 0},variant:{default:"secondary"},bgVariant:{default:null},textVariant:{default:null}},setup(r){const e=y(r,"BBadge"),{computedLink:d,computedLinkProps:s}=f(e,["active","activeClass","append","disabled","href","rel","replace","routerComponentName","target","to","opacity","opacityHover","underlineVariant","underlineOffset","underlineOffsetHover","underlineOpacity","underlineOpacityHover","icon"]),i=a(()=>d.value?v:e.tag),p=a(()=>{const t=e.placement??(e.dotIndicator?"top-end":void 0);return["position-absolute","translate-middle",{"start-0 top-0":t==="top-start","start-0 top-50":t==="start","start-0 top-100":t==="bottom-start","start-50 top-0":t==="top","start-50 top-100":t==="bottom","start-100 top-0":t==="top-end","start-100 top-50":t==="end","start-100 top-100":t==="bottom-end"}]}),u=m(e),c=a(()=>[u.value,e.placement!==void 0||e.dotIndicator===!0?p.value:void 0,{active:e.active,disabled:e.disabled,"rounded-pill":e.pill,"p-2 border border-light rounded-circle":e.dotIndicator,"text-decoration-none":d.value}]);return(t,H)=>(b(),C(O(i.value),n({class:["badge",c.value]},o(s)),{default:l(()=>[g(B,n({skip:o(e).dotIndicator!==!0,tag:"span"},o(e).dotIndicator?{class:"visually-hidden"}:{}),{default:l(()=>[h(t.$slots,"default")]),_:3},16,["skip"])]),_:3},16,["class"]))}});export{N as _};
