import{S as u}from"./Checkmark.8c62b4d7.js";import{w as r,a as d}from"./runtime-dom.esm-bundler.f6259c83.js";import{_ as m}from"./_plugin-vue_export-helper.eefbdd86.js";import{a6 as f,o as g,c as p,a3 as c,a as o,ae as l,m as b}from"./runtime-core.esm-bundler.4f558f23.js";const _={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={class:"form-checkbox-wrapper"},y={class:"form-checkbox"},h=["checked","name","id","disabled"];function x(s,n,e,C,S,t){const i=f("svg-checkmark");return g(),p("label",{class:l(["aioseo-checkbox",[e.labelClass,{[e.size]:e.size},{disabled:e.disabled},{round:e.round}]]),onKeydown:[n[1]||(n[1]=r((...a)=>t.labelToggle&&t.labelToggle(...a),["enter"])),n[2]||(n[2]=r((...a)=>t.labelToggle&&t.labelToggle(...a),["space"]))],onClick:d(()=>{},["stop"])},[c(s.$slots,"header"),o("span",k,[o("span",y,[o("input",{type:"checkbox",onInput:n[0]||(n[0]=a=>s.$emit("update:modelValue",a.target.checked)),checked:e.modelValue,name:e.name,id:e.id,class:l(e.inputClass),disabled:e.disabled,ref:"input"},null,42,h),o("span",{class:l(["fancy-checkbox",e.type])},[b(i)],2)])]),c(s.$slots,"default")],34)}const v=m(_,[["render",x]]);export{v as B};
