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