import{V as n,m as C,a as $,b as h}from"./VSelectionControl-Bdgm37Tl.js";import{v as f,x as V,a as t,B as i,ak as A,h as O,T as x,al as F,I as m,U as N,e as U,F as B}from"./index-CTxlYqj4.js";import{u as y}from"./tag-Dx3OexMp.js";import{a as p,m as T,b as D}from"./VTextField-CWm47OUI.js";const L=V({...C({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),E=f()({name:"VRadio",props:L(),setup(e,l){let{slots:s}=l;return y(()=>{const a=n.filterProps(e);return t(n,i(a,{class:["v-radio",e.class],style:e.style,type:"radio"}),s)}),{}}}),M=V({height:{type:[Number,String],default:"auto"},...T(),...N($(),["multiple"]),trueIcon:{type:m,default:"$radioOn"},falseIcon:{type:m,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),H=f()({name:"VRadioGroup",inheritAttrs:!1,props:M(),emits:{"update:modelValue":e=>!0},setup(e,l){let{attrs:s,slots:a}=l;const b=A(),c=O(()=>e.id||`radio-group-${b}`),o=x(e,"modelValue");return y(()=>{const[v,I]=F(s),P=p.filterProps(e),R=n.filterProps(e),r=a.label?a.label({label:e.label,props:{for:c.value}}):e.label;return t(p,i({class:["v-radio-group",e.class],style:e.style},v,P,{modelValue:o.value,"onUpdate:modelValue":u=>o.value=u,id:c.value}),{...a,default:u=>{let{id:d,messagesId:g,isDisabled:k,isReadonly:G}=u;return U(B,null,[r&&t(D,{id:d.value},{default:()=>[r]}),t(h,i(R,{id:d.value,"aria-describedby":g.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:k.value,readonly:G.value,"aria-labelledby":r?d.value:void 0,multiple:!1},I,{modelValue:o.value,"onUpdate:modelValue":S=>o.value=S}),a)])}})}),{}}});export{H as V,E as a};
