import{shallowRef as s,watchEffect as m}from"vue";import{conductCheck as d}from"../../vc-tree/utils/conductUtil.mjs";const p=(o,r,f,l,h,n)=>{const u=s([]),c=s([]);return m(()=>{let a=o.value.map(({value:e})=>e),t=r.value.map(({value:e})=>e);const v=a.filter(e=>!l.value[e]);f.value&&({checkedKeys:a,halfCheckedKeys:t}=d(a,!0,l.value,h.value,n.value)),u.value=Array.from(new Set([...v,...a])),c.value=t}),[u,c]};export{p as default};
