import{i as d,d as r,aI as m,x as p,ah as V,g as s,n as g,aQ as h,w as u,aR as f,aU as k,o as v}from"./index-bc617d61.js";import{c as P,s as b}from"./Checker-9a3c6d3f.js";const[c,C]=d("radio-group"),R={disabled:Boolean,iconSize:g,direction:String,modelValue:h,checkedColor:String},i=Symbol(c);var _=r({name:c,props:R,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 N=u(_),[w,S]=d("radio");var $=r({name:w,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{N as R,y as a};
