import{S as u}from"./Checkmark.762f711e.js";import{w as r,a as d}from"./runtime-dom.esm-bundler.dc49ee3e.js";import{_ as m}from"./_plugin-vue_export-helper.eefbdd86.js";import{a6 as f,o as g,c as p,a3 as c,_ as o,ae as l,l as _}from"./runtime-core.esm-bundler.ce5add0b.js";const b={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])},[_(i)],2)])]),c(s.$slots,"default")],34)}const v=m(b,[["render",x]]);export{v as B};
