"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("vue"),r=(c,u)=>{const a=s.shallowRef({values:new Map,options:new Map});return[s.computed(()=>{const{values:l,options:v}=a.value,t=c.value.map(e=>e.label===void 0?{...e,label:l.get(e.value)?.label}:e),o=new Map,n=new Map;return t.forEach(e=>{o.set(e.value,e),n.set(e.value,u.value.get(e.value)||v.get(e.value))}),a.value.values=o,a.value.options=n,t}),l=>u.value.get(l)||a.value.options.get(l)]};exports.default=r;
