import{S as u}from"./Checkmark.CUxYD2Fh.js";import{x as m,o,c as p,q as r,a as s,H as i,l as f,d as g,I as c,G as _}from"./vue.esm-bundler.DqIKZLqK.js";import{_ as y}from"./_plugin-vue_export-helper.BN1snXvA.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={class:"form-radio-wrapper"},h={class:"form-radio"},C=["checked","disabled","name","id"],S={class:"fancy-radio"};function B(l,t,e,T,V,a){const d=m("svg-checkmark");return o(),p("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:_(()=>{},["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(),f(d,{key:0})):g("",!0)])])]),r(l.$slots,"default")],34)}const z=y(b,[["render",B]]);export{z as B};
