import{aJ as e,m as a,au as t,N as l}from"./naive-ui.js?v=20260328163632";import{k as s,r as o,w as u,O as r,s as d,u as i}from"./base-lib.js?v=20260328163632";const p=s({name:"BtCheckbox",props:{modelValue:{type:[Array,null],default:""},...e,options:{type:Array,required:!0}},emits:["update:modelValue"],setup(e,{attrs:s,emit:p,slots:n}){const m=o(e.modelValue);u((()=>e.modelValue),(e=>{m.value=e}));const c=e=>{p("update:modelValue",e)};return()=>r(a,d(s,e,{value:m.value,"onUpdate:value":c}),{default:()=>{let a;return r(t,{"item-style":"display: flex;",align:"center"},"function"==typeof(s=a=e.options.map(((e,a)=>e.isHide?null:r(l,{key:a,value:e.value,disabled:e.disabled},{default:()=>[e.label]}))))||"[object Object]"===Object.prototype.toString.call(s)&&!i(s)?a:{default:()=>[a]});var s}})}});export{p as B};
