"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),r=require("../../vc-tree/utils/treeUtil.js"),v=(n,u)=>{const i=t.shallowRef(new Map),s=t.shallowRef({});return t.watchEffect(()=>{const a=u.value,l=r.convertDataToEntities(n.value,{fieldNames:a,initWrapper:e=>({...e,valueEntities:new Map}),processEntity:(e,o)=>{const c=e.node[a.value];o.valueEntities.set(c,e)}});i.value=l.valueEntities,s.value=l.keyEntities}),{valueEntities:i,keyEntities:s}};exports.default=v;
