import{m as d,w as m,O as p,d as s,u as V,E as g,aR as h,k as r,y as u,x as f,as as k,z as v}from"./index.879f7421.js";import{c as P,s as b}from"./index.60364ca1.js";const[c,C]=d("radio-group"),R={disabled:Boolean,iconSize:m,direction:String,modelValue:p,checkedColor:String},i=Symbol(c);var _=s({name:c,props:R,emits:["change","update:modelValue"],setup(e,{emit:n,slots:t}){const{linkChildren:o}=V(i),l=a=>n("update:modelValue",a);return g(()=>e.modelValue,a=>n("change",a)),o({props:e,updateValue:l}),h(()=>e.modelValue),()=>{var a;return r("div",{class:C([e.direction]),role:"radiogroup"},[(a=t.default)==null?void 0:a.call(t)])}}});const E=u(_);const[w,S]=d("radio");var $=s({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()=>r(b,v({bem:S,role:"radio",parent:o,checked:l(),onToggle:a},e),k(t,["default","icon"]))}});const G=u($);export{E as R,G as a};
