import{_ as d}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{o as t,c as s,a as l,M as c,H as u,K as m,$ as p,m as w,t as _,i as f,n as k,I as h}from"./index-Bb2UEb_P.js";const b={},g={fill:"none",viewBox:"4 4 16 16",xmlns:"http://www.w3.org/2000/svg"};function v(n,e){return t(),s("svg",g,e[0]||(e[0]=[l("rect",{fill:"#459FD1",height:"15",rx:"3.5",stroke:"#459FD1",width:"15",x:"4.5",y:"4.5"},null,-1),l("path",{d:"m8 13.476 2.667 2.667 5.333-8",stroke:"#fff","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"},null,-1)]))}const y=d(b,[["render",v]]),x=["disabled"],B={key:1,class:"tw-size-4 tw-rounded tw-border tw-border-gray-300 tw-bg-white tw-shrink-0"},V={key:2},D=c({__name:"InputCheckbox",props:h({label:{},disabled:{type:Boolean}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const e=u(n,"modelValue");return(o,a)=>{const r=y;return t(),s("label",{class:k(["tw-inline-flex tw-items-center tw-gap-2",o.disabled?"tw-cursor-not-allowed tw-opacity-50":"tw-cursor-pointer"])},[m(l("input",{"onUpdate:modelValue":a[0]||(a[0]=i=>e.value=i),type:"checkbox",disabled:o.disabled,class:"tw-hidden"},null,8,x),[[p,e.value]]),e.value?(t(),w(r,{key:0,class:"tw-size-4 tw-shrink-0"})):(t(),s("div",B)),o.label?(t(),s("div",V,_(o.label),1)):f("",!0)],2)}}});export{D as _};
