import{S as u}from"./Checkmark.36fbf255.js";import{_ as d,r as _,c as m,e as r,a as s,B as l,d as g,E as c,D as f,o as b}from"./_plugin-vue_export-helper.a81c6319.js";const p={components:{SvgCheckmark:u},props:{modelValue:Boolean,name:String,labelClass:{type:String,default(){return""}},inputClass:{type:String,default(){return""}},id:String,size:String,disabled:Boolean,round:Boolean,type:{type:String,default(){return"blue"}}},methods:{labelToggle(){this.$refs.input.click()}}},k=["onClick"],y={class:"form-checkbox-wrapper"},h={class:"form-checkbox"},x=["checked","name","id","disabled"];function C(o,n,e,B,S,a){const i=_("svg-checkmark");return b(),m("label",{class:l(["aioseo-checkbox",[e.labelClass,{[e.size]:e.size},{disabled:e.disabled},{round:e.round}]]),onKeydown:[n[1]||(n[1]=c((...t)=>a.labelToggle&&a.labelToggle(...t),["enter"])),n[2]||(n[2]=c((...t)=>a.labelToggle&&a.labelToggle(...t),["space"]))],onClick:f(()=>{},["stop"])},[r(o.$slots,"header"),s("span",y,[s("span",h,[s("input",{type:"checkbox",onInput:n[0]||(n[0]=t=>o.$emit("update:modelValue",t.target.checked)),checked:e.modelValue,name:e.name,id:e.id,class:l(e.inputClass),disabled:e.disabled,ref:"input"},null,42,x),s("span",{class:l(["fancy-checkbox",e.type])},[g(i)],2)])]),r(o.$slots,"default")],42,k)}const V=d(p,[["render",C]]);export{V as B};
