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