1import{d as i,h as s,f as r,c as b,D as y,j as d,A as h,F as p,l as V,t as k,o}from"./CWoPGWPY.js";const v={class:"flex cursor-pointer"},f={class:"h-5.5 w-5.5 relative"},x=["checked","value"],g={key:0,class:"ml-4 leading-6 select-none"},A=i({__name:"Checkbox",props:{modelValue:{type:[Boolean,Array],default:!1},val:{type:[String,Number,Boolean]},label:{}},emits:["update:model-value"],setup(e,{emit:u}){const c=u,l=e,m=t=>{if(Array.isArray(l.modelValue)){let a=[];l.modelValue.includes(l.val)?a=l.modelValue.filter(n=>n!==l.val):(a=l.modelValue.slice(),a.push(l.val)),c("update:model-value",a);return}c("update:model-value",!t)};return(t,a)=>{const n=y;return o(),s("label",v,[r("span",f,[r("input",{type:"checkbox",class:"appearance-none h-5.5 w-5.5 rounded-0.5 border-solid border border-grey-2 bg-white cursor-pointer",checked:Array.isArray(e.modelValue)?e.modelValue.includes(e.val):e.modelValue,value:e.modelValue,onInput:a[0]||(a[0]=B=>m(e.modelValue))},null,40,x),e.modelValue?(o(),b(n,{key:0,class:"absolute top-1 left-1 text-main-red",name:"check",size:"16px"})):d("",!0)]),e.label||t.$slots.labelText?(o(),s("span",g,[t.$slots.labelText?h(t.$slots,"labelText",{key:0}):(o(),s(p,{key:1},[V(k(e.label),1)],64))])):d("",!0)])}}}),C=Object.assign(A,{__name:"UiCheckbox"});export{C as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.