!function(r){"use strict";r(window).on("elementor/frontend/init",function(){var t=elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.run()},getDefaultSettings:function(){return{selectors:{wrapper:".etheme-media-carousel-wrapper",container:".etheme-media-carousel",thumbs:".etheme-media-carousel-thumbs",slideContent:".swiper-slide",swiperPagination:".swiper-pagination",swiperButtonPrev:".swiper-button-prev",swiperButtonNext:".swiper-button-next"}}},getDefaultElements:function(){var e=this.getSettings("selectors"),t={$wrapper:this.$element.find(e.wrapper),$container:this.$element.find(e.container),$thumbs:this.$element.find(e.thumbs),$swiperPagination:this.$element.find(e.swiperPagination),$swiperButtonPrev:this.$element.find(e.swiperButtonPrev),$swiperButtonNext:this.$element.find(e.swiperButtonNext)};return t.$slides=t.$container.find(e.slideContent),t},getReadySettings:function(){const t=this.getElementSettings();var e,n=elementorFrontend.config.experimentalFeatures.e_swiper_latest,s={},i=(t.show_thumbs&&(e={slidesPerView:t.thumbs_slides_per_view||4,slidesPerGroup:t.slides_per_group||1,spaceBetween:t.thumbs_space_between.size,watchSlidesVisibility:!0,loop:!!t.loop,autoHeight:!!t.thumbs_autoheight,speed:t.speed,handleElementorBreakpoints:!0},t.autoplay&&(e.autoplay={delay:t.autoplay_speed,disableOnInteraction:!!t.pause_on_interaction,stopOnLastSlide:!t.loop}),e=new Swiper(this.elements.$thumbs,e),s.thumbs={swiper:e}),-1{s.breakpoints[i[e].value]={slidesPerView:+parseInt(t["slides_per_view_"+e])||1,slidesPerGroup:+parseInt(t["slides_per_group_"+e])||1}})):s.slidesPerView="auto",t.autoplay&&(s.autoplay={delay:t.autoplay_speed,disableOnInteraction:!!t.pause_on_interaction,stopOnLastSlide:!t.loop}),r.extend({},s)},run:function(){var e=this.getElementSettings(),t=elementorFrontend.utils.swiper;this.swiper=new t(this.elements.$container,this.getReadySettings()),this.elements.$container.data("swiper",this.swiper),e.pause_on_hover?this.elements.$container.on("mouseenter",function(){this.swiper.autoplay.stop()}).on("mouseleave",function(){this.swiper.autoplay.start()}):this.elements.$container.off("mouseenter mouseleave")}});elementorFrontend.hooks.addAction("frontend/element_ready/etheme_media_carousel.default",function(e){elementorFrontend.elementsHandler.addHandler(t,{$element:e})})})}(jQuery);