var D=Object.defineProperty,H=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var P=(s,e,a)=>e in s?D(s,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[e]=a,c=(s,e)=>{for(var a in e||(e={}))j.call(e,a)&&P(s,a,e[a]);if(g)for(var a of g(e))A.call(e,a)&&P(s,a,e[a]);return s},d=(s,e)=>H(s,O(e));import{b as w,m as f,c as y,aa as E,d as S,ae as J,e as t,aX as u,al as p,w as B,f as b,o as k,g as h,h as V,j as z,n as m,k as G,J as K,_ as M,a2 as I,q as N,aM as U}from"./index-C8qz7c0N.js";const R=Symbol("wd-radio-group"),X=d(c({},w),{modelValue:[String,Number,Boolean],shape:f("check"),checkedColor:String,disabled:y(!1),cell:y(!1),size:f(""),inline:y(!1),iconPlacement:f("auto")}),Y=d(c({},w),{value:E([String,Number,Boolean]),shape:String,checkedColor:String,disabled:{type:[Boolean,null],default:null},cell:{type:[Boolean,null],default:null},size:String,inline:{type:[Boolean,null],default:null},maxWidth:String,iconPlacement:{type:String}}),x={name:"wd-radio",options:{virtualHost:!0,addGlobalClass:!0,styleIsolation:"shared"}},F=S(d(c({},x),{props:Y,setup(s){const e=s,{parent:a}=J(R),n=t(()=>a?e.value===a.props.modelValue:!1),r=t(()=>e.shape||u(a,"props.shape")),i=t(()=>e.checkedColor||u(a,"props.checkedColor")),l=t(()=>p(e.disabled)?e.disabled:u(a,"props.disabled")),C=t(()=>p(e.inline)?e.inline:u(a,"props.inline")),_=t(()=>e.size||u(a,"props.size")),$=t(()=>p(e.cell)?e.cell:u(a,"props.cell")),W=t(()=>p(e.iconPlacement)?e.iconPlacement:u(a,"props.iconPlacement"));B(()=>e.shape,o=>{});function q(){const{value:o}=e;!l.value&&a&&p(o)&&a.updateValue(o)}return(o,T)=>{const v=z;return k(),b(v,{class:I(`wd-radio ${$.value?"is-cell-radio":""} ${$.value&&r.value=="button"?"is-button-radio":""} ${_.value?"is-"+_.value:""} ${C.value?"is-inline":""} ${n.value?"is-checked":""} ${r.value!=="check"?"is-"+r.value:""} ${l.value?"is-disabled":""} icon-placement-${W.value} ${o.customClass}`),style:m(o.customStyle),onClick:q},{default:h(()=>[V(v,{class:"wd-radio__label",style:m(`${o.maxWidth?"max-width:"+o.maxWidth:""};  ${n.value&&r.value==="button"&&!l.value?"color :"+i.value:""}`)},{default:h(()=>[G(o.$slots,"default",{},void 0,!0)]),_:3},8,["style"]),V(v,{class:"wd-radio__shape",style:m(n.value&&!l.value?"color: "+i.value:"")},{default:h(()=>[r.value==="check"?(k(),b(M,{key:0,style:m(n.value&&!l.value?"color: "+i.value:""),name:"check"},null,8,["style"])):K("",!0)]),_:1},8,["style"])]),_:3},8,["class","style"])}}})),ae=N(F,[["__scopeId","data-v-66db7d09"]]),L={name:"wd-radio-group",options:{virtualHost:!0,addGlobalClass:!0,styleIsolation:"shared"}},Q=S(d(c({},L),{props:X,emits:["change","update:modelValue"],setup(s,{emit:e}){const a=s,n=e,{linkChildren:r}=U(R);r({props:a,updateValue:i}),B(()=>a.shape,l=>{},{deep:!0,immediate:!0});function i(l){n("update:modelValue",l),n("change",{value:l})}return(l,C)=>{const _=z;return k(),b(_,{class:I(`wd-radio-group  ${l.customClass} ${l.cell&&l.shape==="button"?"is-button":""}`),style:m(l.customStyle)},{default:h(()=>[G(l.$slots,"default",{},void 0,!0)]),_:3},8,["class","style"])}}})),le=N(Q,[["__scopeId","data-v-87ff328b"]]);export{ae as _,le as a};
