import*as e from"@wordpress/interactivity";var t={833:(t,r,o)=>{t.exports=(e=>{var t={};return o.d(t,e),t})({getContext:()=>e.getContext,store:()=>e.store})}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n=o(833);function a(e){return{min:void 0!==e.min?Number(e.min):0,max:void 0!==e.max?Number(e.max):100}}(0,n.store)("jetpack/form",{state:{get getSliderValue(){const e=(0,n.getContext)(),{min:t}=a(e);return e.fieldValue??e.default??t??0},get getSliderPosition(){const e=(0,n.getContext)(),{min:t,max:r}=a(e);let o=Number(e.fieldValue??e.default??t);o=o<t?t:o,o=o>r?r:o;const i=100*(o-t)/(r-t);return`calc(${i}% + (${8-.15*i}px))`}},actions:{onSliderChange(e){(0,n.getContext)().fieldValue=e.target.value}}});