import{shallowRef as p,computed as v}from"vue";const f=(s,o)=>{const a=p({values:new Map,options:new Map});return[v(()=>{const{values:l,options:c}=a.value,t=s.value.map(e=>e.label===void 0?{...e,label:l.get(e.value)?.label}:e),u=new Map,n=new Map;return t.forEach(e=>{u.set(e.value,e),n.set(e.value,o.value.get(e.value)||c.get(e.value))}),a.value.values=u,a.value.options=n,t}),l=>o.value.get(l)||a.value.options.get(l)]};export{f as default};
