import{S as d}from"./Checkmark.68b20c77.js";import{x as m,o,c as _,m as r,a as s,I as i,k as p,b as f,J as c,H as g}from"./vue.runtime.esm-bundler.78401fbe.js";import{_ as y}from"./_plugin-vue_export-helper.58be9317.js";const b={components:{SvgCheckmark:d},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={class:"form-radio-wrapper"},h={class:"form-radio"},C=["checked","disabled","name","id"],S={class:"fancy-radio"};function B(l,t,e,v,x,a){const u=m("svg-checkmark");return o(),_("label",{class:i(["aioseo-radio",[e.labelClass,{[e.size]:e.size},a.typeClass,{disabled:e.disabled}]]),onKeydown:[t[1]||(t[1]=c((...n)=>a.labelToggle&&a.labelToggle(...n),["enter"])),t[2]||(t[2]=c((...n)=>a.labelToggle&&a.labelToggle(...n),["space"]))],onClick:g(()=>{},["stop"])},[r(l.$slots,"header"),s("span",k,[s("span",h,[s("input",{type:"radio",onInput:t[0]||(t[0]=n=>l.$emit("update:modelValue",n.target.checked)),checked:e.modelValue,disabled:e.disabled,name:e.name,id:e.id,class:i(e.inputClass),ref:"input"},null,42,C),s("span",S,[e.type===1?(o(),p(u,{key:0})):f("",!0)])])]),r(l.$slots,"default")],34)}const z=y(b,[["render",B]]);export{z as B};
