import{computed as s}from"vue";import{convertDataToEntities as a}from"../../vc-tree/utils/treeUtil.mjs";import{VALUE_SPLIT as p}from"../utils/commonUtil.mjs";const l=(o,e)=>s(()=>a(o.value,{fieldNames:e.value,initWrapper:t=>({...t,pathKeyEntities:{}}),processEntity:(t,n)=>{const i=t.nodes.map(r=>r[e.value.value]).join(p);n.pathKeyEntities[i]=t,t.key=i}}).pathKeyEntities);export{l as default};
