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