import{shallowRef as c,watch as v,toRaw as d,computed as b}from"vue";const p=a=>{const l=c({valueLabels:new Map}),s=c();return v(a,()=>{s.value=d(a.value)},{immediate:!0}),[b(()=>{const{valueLabels:o}=l.value,t=new Map,r=s.value.map(e=>{const{value:u}=e,n=e.label??o.get(u);return t.set(u,n),{...e,label:n}});return l.value.valueLabels=t,r})]};export{p as default};
