import{shallowRef as n,watchEffect as r}from"vue";import{convertDataToEntities as v}from"../../vc-tree/utils/treeUtil.mjs";const p=(l,o)=>{const t=n(new Map),a=n({});return r(()=>{const i=o.value,s=v(l.value,{fieldNames:i,initWrapper:e=>({...e,valueEntities:new Map}),processEntity:(e,u)=>{const c=e.node[i.value];u.valueEntities.set(c,e)}});t.value=s.valueEntities,a.value=s.keyEntities}),{valueEntities:t,keyEntities:a}};export{p as default};
