var FPF_Slider=function(){function e(){this.sliderItemClass=".fpf-field-control.slider:not(.no-render)",this.init()}var n=e.prototype;return n.init=function(){this.slidersExist()&&this.initEvents()},n.initEvents=function(){document.addEventListener("input",function(e){this.onSliderDragChange(e),this.onSliderManualValueChange(e)}.bind(this))},n.onSliderDragChange=function(e){var n=e.target.closest(".fpf-slider-control-item");n&&(n.nextElementSibling.value=e.target.value,n.nextElementSibling.dispatchEvent(new Event("input",{bubbles:!0})),n.nextElementSibling.dispatchEvent(new Event("blur",{bubbles:!0})))},n.onSliderManualValueChange=function(e){var n=e.target.closest(".fpf-slider-selected-value");n&&(n.previousElementSibling.value=e.target.value)},n.slidersExist=function(){return!!document.querySelectorAll(this.sliderItemClass).length},e}();document.addEventListener("DOMContentLoaded",function(e){new FPF_Slider});

