import{aa as o,ac as p}from"./index.ef672c15.js";import{d as h,u as f,t as x,o as a,a as n,f as r,m as k,g as _,F as b,v as g}from"./index.477073af.js";const y={class:"inline-flex cursor-pointer items-center"},V=["checked"],B={class:"checkbox-label text-input-size text-theme-700 hover:text-theme-500"},S={inheritAttrs:!1},C=h({...S,__name:"InputCheckbox",props:{modelValue:{type:Boolean,default:!1},text:{type:String,default:""}},emits:["update:modelValue"],setup(s,{emit:l}){const c=f(),u=x(),d=e=>{l("update:modelValue",e.checked)},m=["form-checkbox","cursor-pointer","mt-0.5","mr-4","h-5","w-5","appearance-none","rounded-md","border","focus:outline-none","focus:ring-0","border-theme-300","text-theme-500","bg-theme-100","text-theme-700","hover:theme-200"];return(e,t)=>(a(),n("label",y,[r("input",k(o(c),{type:"checkbox",class:m,checked:s.modelValue,onInput:t[0]||(t[0]=i=>d(i.target))}),null,16,V),r("span",B,[o(u).default?_(e.$slots,"default",{key:0}):(a(),n(b,{key:1},[g(p(s.text),1)],64))])]))}});export{C as default};
