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