import{Q as f,S as h}from"./ui-ba7aaa7e.js";import{e as y,r as k,w as _,P as i,a3 as o,a4 as c,Q as v,F as A,aa as S,I as C,m as V,H as z,ab as T}from"./vue-bf422dc1.js";import"./icons-a8498fb6.js";const N=y({__name:"checkTag",props:{items:{type:Array,required:!0},modelValue:{type:[String,Number,Array],required:!0},size:{type:String,default:"medium"},variant:{type:String,default:"light-outline"}},emits:["actions","update:modelValue"],setup(t,{emit:l}){const r=t,{items:u}=r,a=k();_(()=>r.modelValue,e=>{Array.isArray(e)?e.length>0?a.value=1:a.value=0:a.value=e},{immediate:!0});const s=l,m=e=>{a.value=e,Array.isArray(r.modelValue)?s("actions",e):(s("actions",e),s("update:modelValue",e))};return(e,b)=>{const d=f,p=h;return i(),o(p,null,{default:c(()=>[(i(!0),v(A,null,S(C(u),(n,g)=>(i(),o(d,V(e.$attrs,{key:g,size:t.size,variant:t.variant,checked:n.value==a.value,onChange:x=>m(n.value)}),{default:c(()=>[z(T(n.label),1)]),_:2},1040,["size","variant","checked","onChange"]))),128))]),_:1})}}});export{N as default};
