import{E as e,Mt as t,Qt as n,W as r,X as i,ft as a,h as o,v as s,vt as c,w as l}from"./vendor/json-editor-vue-eojr4v24.js";import{T as u,j as d}from"./ready-dadbdj5i.js";import{P as f}from"./client-nwyjxodt.js";import{t as p}from"./nicon-m1crov2l.js";var m=[`checked`,`disabled`],h=[`disabled`],g={class:`n-checkbox-box n-transition n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base`},_=e({__name:`NCheckbox`,props:{modelValue:{type:[Boolean,null],default:!1},disabled:{type:Boolean,default:!1}},setup(e,{emit:_}){let v=f(e,`modelValue`,_,{passive:!0});return(f,_)=>{let y=p;return r(),s(`label`,{class:`n-checkbox select-none items-center hover:n-checkbox-hover n-disabled:n-disabled`,checked:t(v)||null,disabled:e.disabled||null},[a(o(`input`,{"onUpdate:modelValue":_[0]||=e=>c(v)?v.value=e:null,type:`checkbox`,class:`peer absolute op0`,disabled:e.disabled,onKeypress:_[1]||=d(e=>v.value=!t(v),[`enter`])},null,40,h),[[u,t(v)]]),o(`span`,g,[l(y,{class:`n-checkbox-icon scale-0 transform op0 n-transition n-checked:scale-100 n-checked:op100`})]),o(`span`,{class:n([t(v)?``:`op50`,`n-transition`])},[i(f.$slots,`default`)],2)],8,m)}}}),v=Object.assign(_,{__name:`NCheckbox`});export{v as t};