import{S as c}from"./Checkmark.c5326878.js";import{_ as m,r as p,o,c as _,x as r,f as s,n as i,h as g,a as f,y as u,g as y}from"./_plugin-vue_export-helper.2d9794a3.js";const b={components:{SvgCheckmark:c},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"},C={class:"form-radio"},h=["checked","disabled","name","id"],S={class:"fancy-radio"};function B(l,t,e,v,x,n){const d=p("svg-checkmark");return o(),_("label",{class:i(["aioseo-radio",[e.labelClass,{[e.size]:e.size},n.typeClass,{disabled:e.disabled}]]),onKeydown:[t[1]||(t[1]=u((...a)=>n.labelToggle&&n.labelToggle(...a),["enter"])),t[2]||(t[2]=u((...a)=>n.labelToggle&&n.labelToggle(...a),["space"]))],onClick:t[3]||(t[3]=y(()=>{},["stop"]))},[r(l.$slots,"header"),s("span",k,[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,h),s("span",S,[e.type===1?(o(),g(d,{key:0})):f("",!0)])])]),r(l.$slots,"default")],34)}const w=m(b,[["render",B]]);export{w as B};
