import{S as u}from"./Checkmark.74f4bcd8.js";import{r as m,o as l,c as _,e as r,a as s,n as i,d as p,b as f,I as c,f as g}from"./vue.runtime.esm-bundler.f433d23f.js";import{_ as y}from"./_plugin-vue_export-helper.3febc96a.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"},S=["checked","disabled","name","id"],B={class:"fancy-radio"};function v(o,t,e,T,V,n){const d=m("svg-checkmark");return l(),_("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:g(()=>{},["stop"])},[r(o.$slots,"header"),s("span",h,[s("span",C,[s("input",{type:"radio",onInput:t[0]||(t[0]=a=>o.$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,S),s("span",B,[e.type===1?(l(),p(d,{key:0})):f("",!0)])])]),r(o.$slots,"default")],42,k)}const A=y(b,[["render",v]]);export{A as B};
