!function(e,i){"use strict";ElementsKit_Helper.registerWidget("elementskit-advanced-slider.default",(function(s){let t=s.find(".ekit-slider-wrapper"),n=s.closest(".swiper-custom-nav"),r=s.find(".ekit-progress-bar"),a=s.find(".elementskit-advanced-slider").data("widget_settings");var o={loop:"yes"==a.sliderOptions.loopEnable,speed:a.sliderOptions.speedTime||600,grabCursor:"yes"==a.sliderOptions.sliderGrapCursor,direction:a.sliderOptions.sliderDirectionType||"horizontal",autoHeight:!0,effect:a.sliderOptions.sliderEffect||"default",paginationClickable:!0,keyboard:{enabled:"yes"==a.sliderOptions.keyboardControl},pagination:{el:t.find(".swiper-pagination.ekit-swiper-pagination").get(0),clickable:!0},on:{init:function(){p(this),d(this),"yes"===a?.sliderOptions.sliderThumbsShow&&function(){let{sliderOptions:i}=a,n=s.find(".swiper-pagination.ekit-swiper-pagination"),r=n.children(),o=i.sliderTabItems.map((e=>e.ekit_slider_thumbs_image.url)),l=r.length,d={display:"grid"};r.each((function(i){const s=e(this);s.css({background:`url(${o[i]})`,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}),s.siblings().css({width:"100%"})})),"horizontal"===i.sliderDirectionType?(d.width=i.sliderThumbsOffset.size?`${i.sliderThumbsOffset.size}%`:"70%",d.gridTemplateColumns=`repeat(${l}, 1fr)`,d.gridTemplateRows="1fr",d.marginTop="7px"):(d.gridTemplateColumns="1fr",d.gridTemplateRows=`repeat(${l}, 1fr)`);n.css(d),t.addClass("slider-thumbs-yes")}()},slideChange:function(){var e;e=this,r.removeClass("progress-bar-active"),e.update()},slideChangeTransitionEnd:function(){var e;p(this),e=this,r.addClass("progress-bar-active"),e.update()},activeIndexChange:function(){d(this)}},navigation:{nextEl:n.length?n.find(".ekit-double-btn-two"):s.find(".swiper-button-next").get(0),prevEl:n.length?n.find(".ekit-double-btn-one"):s.find(".swiper-button-prev").get(0)}};"horizontal"==a.sliderOptions.sliderDirectionType?(o.slidesPerView=a.sliderOptions.slidesPerViewItem,o.spaceBetween=a.sliderOptions.spaceBetweenGap,o.breakpoints=a.sliderOptions.breakpointsOption):o.slidesPerView=1,"yes"!=a.sliderOptions.sliderAutoPlay&&"yes"!=a.sliderOptions.progressBar||(o.autoplay={delay:a?.sliderOptions.autoPlayDelay||3e3},a?.sliderOptions?.pauseOnMouseEnter&&t.hover((function(){this.swiper.autoplay.stop()}),(function(){this.swiper.autoplay.start()}))),"yes"==a.sliderOptions.sliderMouseScroll&&(o.mousewheel={invert:!0,sensitivity:1,thresholdTime:9});let l=s.find(`.${i.config.swiperClass}`);function d(i){let s=i.activeIndex;e(i.slides[s]).find(".elementor-widget").each((function(i,s){let{_animation:t,_animation_delay:n}=e(s).data("settings")||{};t&&(e(s).addClass("animated elementor-invisible").css({"animation-name":"unset"}),setTimeout((()=>{e(s).css({"animation-name":t}),e(s).removeClass("elementor-invisible")}),n||1200))})),i.update()}function p(i){t.find(".ekit-swiper-slide").css({height:"auto"});let s=i.activeIndex,n=e(i.slides[s]).height();t.find(".ekit-swiper-wrapper, .ekit-swiper-slide").css({height:n}),i.update()}ElementsKit_Helper.swiper(l,o).then((function(e){})),"yes"==a.sliderOptions.progressBar&&(s.find(".ekit-slider-wrapper, .ekit-swiper-progress").each((function(i,s){e(s).on("mouseenter",(function(){a?.sliderOptions?.pauseOnMouseEnter&&r.css({animationPlayState:"paused"})}))})),s.find(".ekit-slider-wrapper, .ekit-swiper-progress").each((function(i,s){e(s).on("mouseleave",(function(){r.css({animationPlayState:"running"})}))})))}))}(jQuery,window.elementorFrontend);