import{L as r,M as u,ax as s,E as a}from"./index-CLvovu40.js";import{a as l}from"./api-5Y4dWpBS.js";const d=["top","middle","bottom"],b=r({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=>d.includes(e)}},setup(e,{slots:n}){const o=a(()=>e.align!==void 0?{verticalAlign:e.align}:null),i=a(()=>{const t=e.outline===!0&&e.color||e.textColor;return`q-badge flex inline items-center no-wrap q-badge--${e.multiLine===!0?"multi":"single"}-line`+(e.outline===!0?" q-badge--outline":e.color!==void 0?` bg-${e.color}`:"")+(t!==void 0?` text-${t}`:"")+(e.floating===!0?" q-badge--floating":"")+(e.rounded===!0?" q-badge--rounded":"")+(e.transparent===!0?" q-badge--transparent":"")});return()=>u("div",{class:i.value,style:o.value,role:"status","aria-label":e.label},s(n.default,e.label!==void 0?[e.label]:[]))}}),m=async e=>await l.POST("/admin/users",e),v=async e=>await l.PUT("/admin/users/block",e);export{b as Q,v as b,m as l};
