import{computed as e,shallowRef as t}from"vue";var n=(n,r)=>{let i=t({values:new Map,options:new Map});return[e(()=>{let{values:e,options:t}=i.value,a=n.value.map(t=>t.label===void 0?{...t,label:e.get(t.value)?.label}:t),o=new Map,s=new Map;return a.forEach(e=>{o.set(e.value,e),s.set(e.value,r.value.get(e.value)||t.get(e.value))}),i.value.values=o,i.value.options=s,a}),e=>r.value.get(e)||i.value.options.get(e)]};export{n as default};