import{a7 as e,a as l,Q as a,ae as o}from"./index.3938ccd1.js";const t=["top","middle","bottom"];var n=e({name:"QBadge",props:{color:String,textColor:String,floating:Boolean,transparent:Boolean,multiLine:Boolean,outline:Boolean,rounded:Boolean,label:[Number,String],align:{type:String,validator:e=>t.includes(e)}},setup(e,{slots:t}){const n=l((()=>void 0!==e.align?{verticalAlign:e.align}:null)),i=l((()=>{const l=!0===e.outline&&e.color||e.textColor;return`q-badge flex inline items-center no-wrap q-badge--${!0===e.multiLine?"multi":"single"}-line`+(!0===e.outline?" q-badge--outline":void 0!==e.color?` bg-${e.color}`:"")+(void 0!==l?` text-${l}`:"")+(!0===e.floating?" q-badge--floating":"")+(!0===e.rounded?" q-badge--rounded":"")+(!0===e.transparent?" q-badge--transparent":"")}));return()=>a("div",{class:i.value,style:n.value,role:"status","aria-label":e.label},o(t.default,void 0!==e.label?[e.label]:[]))}});export{n as Q};
