import{defineComponent as K,provide as s,computed as e,inject as o,shallowRef as t}from"vue";const y=Symbol("TreeContextKey"),S=K({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(n,{slots:c}){return s(y,e(()=>n.value)),()=>c.default?.()}}),r=()=>o(y,e(()=>({}))),d=Symbol("KeysStateKey"),l=n=>{s(d,n)},p=()=>o(d,{expandedKeys:t([]),selectedKeys:t([]),loadedKeys:t([]),loadingKeys:t([]),checkedKeys:t([]),halfCheckedKeys:t([]),expandedKeysSet:e(()=>new Set),selectedKeysSet:e(()=>new Set),loadedKeysSet:e(()=>new Set),loadingKeysSet:e(()=>new Set),checkedKeysSet:e(()=>new Set),halfCheckedKeysSet:e(()=>new Set),flattenNodes:t([])});export{S as TreeContext,p as useInjectKeysState,r as useInjectTreeContext,l as useProvideKeysState};
