import{S as u}from"./Checkmark.c5326878.js";import{_ as d,c as m,x as r,f as s,n as o,d as g,y as c,g as _,r as f,o as b}from"./_plugin-vue_export-helper.2d9794a3.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={class:"form-checkbox-wrapper"},y={class:"form-checkbox"},h=["checked","name","id","disabled"];function x(l,n,e,C,S,a){const i=f("svg-checkmark");return b(),m("label",{class:o(["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:n[3]||(n[3]=_(()=>{},["stop"]))},[r(l.$slots,"header"),s("span",k,[s("span",y,[s("input",{type:"checkbox",onInput:n[0]||(n[0]=t=>l.$emit("update:modelValue",t.target.checked)),checked:e.modelValue,name:e.name,id:e.id,class:o(e.inputClass),disabled:e.disabled,ref:"input"},null,42,h),s("span",{class:o(["fancy-checkbox",e.type])},[g(i)],2)])]),r(l.$slots,"default")],34)}const T=d(p,[["render",x]]);export{T as B};
