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