import{computed as e,shallowRef as t,toRaw as n,watch as r}from"vue";var i=i=>{let a=t({valueLabels:new Map}),o=t();return r(i,()=>{o.value=n(i.value)},{immediate:!0}),[e(()=>{let{valueLabels:e}=a.value,t=new Map,n=o.value.map(n=>{let{value:r}=n,i=n.label??e.get(r);return t.set(r,i),{...n,label:i}});return a.value.valueLabels=t,n})]};export{i as default};