(()=>{"use strict";window.addEventListener("elementor/frontend/init",(()=>{const e=elementorModules.frontend.handlers.Base;let a;a=e.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{media:!1,easing:1,viewport:1}},onElementChange:debounce((function(e){-1===e.indexOf("section_parallax_")&&-1===e.indexOf("ep_parallax_")||this.run()}),400),settings:function(e){return this.getElementSettings(e)},run:function(){if(elementorFrontend.isEditMode())return;this.bgParallax&&(this.bgParallax.$destroy(),this.bgParallax=null);const e=this.getElementSettings(),a=this.getDefaultSettings(),t=this.$element.data("id");if("yes"!==e.section_parallax_on)return;const l=document.querySelector(`.elementor-element-${t}`);if(l){if(e.section_parallax_x_value?.size&&(a.bgx=e.section_parallax_x_value.size||0),e.section_parallax_value?.size&&(a.bgy=e.section_parallax_value.size||0),e.ep_parallax_bg_colors&&((e.ep_parallax_bg_border_color_start||e.ep_parallax_bg_border_color_end)&&(a.borderColor=[e.ep_parallax_bg_border_color_start||0,e.ep_parallax_bg_border_color_end||0]),(e.ep_parallax_bg_color_start||e.ep_parallax_bg_color_end)&&(a.backgroundColor=[e.ep_parallax_bg_color_start||0,e.ep_parallax_bg_color_end||0])),e.section_parallax_x_value||e.section_parallax_value||e.ep_parallax_bg_colors){if(!window.bdtUIkit?.parallax)return void console.error("bdtUIkit.parallax is not available");this.bgParallax=window.bdtUIkit.parallax(l,a)}}else console.warn(`Element with ID ${t} not found`)},onDestroy:function(){this.bgParallax&&(this.bgParallax.$destroy(),this.bgParallax=null)}}),elementorFrontend.hooks.addAction("frontend/element_ready/section",(e=>{elementorFrontend.elementsHandler.addHandler(a,{$element:e})})),elementorFrontend.hooks.addAction("frontend/element_ready/container",(e=>{elementorFrontend.elementsHandler.addHandler(a,{$element:e})}))}))})();