import{S as d}from"./Checkmark.762f711e.js";import{w as l,a as m}from"./runtime-dom.esm-bundler.dc49ee3e.js";import{_ as p}from"./_plugin-vue_export-helper.eefbdd86.js";import{a6 as f,o as r,c as g,a3 as i,_ as s,ae as c,a1 as _,a4 as y}from"./runtime-core.esm-bundler.ce5add0b.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(o,a,e,w,T,t){const u=f("svg-checkmark");return r(),g("label",{class:c(["aioseo-radio",[e.labelClass,{[e.size]:e.size},t.typeClass,{disabled:e.disabled}]]),onKeydown:[a[1]||(a[1]=l((...n)=>t.labelToggle&&t.labelToggle(...n),["enter"])),a[2]||(a[2]=l((...n)=>t.labelToggle&&t.labelToggle(...n),["space"]))],onClick:m(()=>{},["stop"])},[i(o.$slots,"header"),s("span",k,[s("span",h,[s("input",{type:"radio",onInput:a[0]||(a[0]=n=>o.$emit("update:modelValue",n.target.checked)),checked:e.modelValue,disabled:e.disabled,name:e.name,id:e.id,class:c(e.inputClass),ref:"input"},null,42,C),s("span",S,[e.type===1?(r(),_(u,{key:0})):y("",!0)])])]),i(o.$slots,"default")],34)}const A=p(b,[["render",B]]);export{A as B};
