import{defineComponent as e,inject as t,provide as n,ref as r,watch as i}from"vue";var a=Symbol(`RangeContextProps`),o=e=>{n(a,e)},s=()=>t(a,{rangedValue:r(),hoverRangedValue:r(),inRange:r(),panelPosition:r()}),c=e({compatConfig:{MODE:3},name:`PanelContextProvider`,inheritAttrs:!1,props:{value:{type:Object,default:()=>({})}},setup(e,{slots:t}){let n={rangedValue:r(e.value.rangedValue),hoverRangedValue:r(e.value.hoverRangedValue),inRange:r(e.value.inRange),panelPosition:r(e.value.panelPosition)};return o(n),i(()=>e.value,()=>{Object.keys(e.value).forEach(t=>{n[t]&&(n[t].value=e.value[t])})}),()=>t.default?.()}});export{c as RangeContextProvider,a as default,s as useInjectRange,o as useProvideRange};