import{x as l,y as m,A as p,d as r,ae as V,Z as g,aY as h,i as s,K as u,ao as f,aw as v,a3 as k}from"./index.afa1b71c.js";import{c as P,s as b}from"./index.4b8ed396.js";const[i,C]=l("radio-group"),_={disabled:Boolean,iconSize:m,direction:String,modelValue:p,checkedColor:String},c=Symbol(i);var $=r({name:i,props:_,emits:["change","update:modelValue"],setup(e,{emit:n,slots:t}){const{linkChildren:o}=V(c),d=a=>n("update:modelValue",a);return g(()=>e.modelValue,a=>n("change",a)),o({props:e,updateValue:d}),h(()=>e.modelValue),()=>{var a;return s("div",{class:C([e.direction]),role:"radiogroup"},[(a=t.default)==null?void 0:a.call(t)])}}});const G=u($),[w,x]=l("radio");var R=r({name:w,props:P,emits:["update:modelValue"],setup(e,{emit:n,slots:t}){const{parent:o}=f(c),d=()=>(o?o.props.modelValue:e.modelValue)===e.name,a=()=>{o?o.updateValue(e.name):n("update:modelValue",e.name)};return()=>s(b,k({bem:x,role:"radio",parent:o,checked:d(),onToggle:a},e),v(t,["default","icon"]))}});const I=u(R);export{G as R,I as a};
