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