import{w as a}from"./runtime-dom.esm-bundler.dc49ee3e.js";import{_ as r}from"./_plugin-vue_export-helper.eefbdd86.js";import{o as u,c,_ as o,a3 as i,ae as d}from"./runtime-core.esm-bundler.ce5add0b.js";const p={props:{modelValue:Boolean,disabled:{type:Boolean,default(){return!1}}},methods:{labelToggle(){this.$refs.input.click()}}},g={class:"toggle-content"},f=["disabled","checked"],_=o("span",{class:"toggle-switch"},null,-1);function m(s,e,t,b,y,l){return u(),c("label",{class:d(["aioseo-toggle",{disabled:t.disabled}]),tabindex:"0",onKeydown:[e[1]||(e[1]=a((...n)=>l.labelToggle&&l.labelToggle(...n),["enter"])),e[2]||(e[2]=a((...n)=>l.labelToggle&&l.labelToggle(...n),["space"]))]},[o("div",g,[o("input",{disabled:t.disabled,type:"checkbox",checked:t.modelValue,onInput:e[0]||(e[0]=n=>s.$emit("update:modelValue",n.target.checked)),ref:"input"},null,40,f),_]),i(s.$slots,"default")],34)}const x=r(p,[["render",m]]);export{x as B};
