import{E as e,N as t,W as n,X as r,ft as i,h as a,it as o,v as s}from"./vendor/json-editor-vue-ddj4xtqm.js";import{Vn as c,qn as l}from"#entry";var u=[`checked`,`disabled`],d=[`disabled`],f=e({__name:`NSwitch`,props:t({disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=o(e,`modelValue`);return(o,f)=>(n(),s(`label`,{class:`n-switch n-switch-base hover:n-switch-hover n-disabled:n-disabled`,checked:t.value||null,disabled:e.disabled||null},[i(a(`input`,{"onUpdate:modelValue":f[0]||=e=>t.value=e,type:`checkbox`,class:`peer absolute op0`,disabled:e.disabled,onKeypress:f[1]||=l(e=>t.value=!t.value,[`enter`])},null,40,d),[[c,t.value]]),f[2]||=a(`div`,{class:`n-switch-slider n-transition n-checked:n-switch-slider-checked peer-active:n-active-base peer-focus-visible:n-focus-base`},[a(`div`,{class:`n-switch-thumb n-transition n-checked:n-switch-thumb-checked`})],-1),r(o.$slots,`default`)],8,u))}}),p=Object.assign(f,{__name:`NSwitch`});export{p as t};