View file File name : nested-carousel.21c7f0c4423917225bce.bundle.min.js Content :/*! elementor-pro - v3.21.0 - 20-05-2024 */ "use strict";(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[209],{1826:(e,t,n)=>{var s=n(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(6399));class NestedCarousel extends elementorModules.frontend.handlers.CarouselBase{getDefaultSettings(){const e=super.getDefaultSettings();return e.selectors.carousel=".e-n-carousel",e.selectors.slidesWrapper=".e-n-carousel > .swiper-wrapper",e}getSwiperSettings(){const e=super.getSwiperSettings(),t=this.getElementSettings(),n=elementorFrontend.config.is_rtl,s=`.elementor-element-${this.getID()}`;return elementorFrontend.isEditMode()&&(delete e.autoplay,e.loop=!1,e.noSwipingSelector=".swiper-slide > .e-con .elementor-element"),"yes"===t.arrows&&(e.navigation={prevEl:n?`${s} .elementor-swiper-button-next`:`${s} .elementor-swiper-button-prev`,nextEl:n?`${s} .elementor-swiper-button-prev`:`${s} .elementor-swiper-button-next`}),this.applySwipeOptions(e),e}async onInit(){this.wrapSlideContent(),super.onInit(...arguments),elementorFrontend.config.experimentalFeatures.e_swiper_latest||this.reInitBackgroundSlideshow(),this.ranElementHandlers=!1}handleElementHandlers(){if(this.ranElementHandlers||!this.swiper)return;const e=Array.from(this.swiper.slides).filter((e=>e.classList.contains(this.swiper.params.slideDuplicateClass)));(0,i.default)(e),this.ranElementHandlers=!0}wrapSlideContent(){if(!elementorFrontend.isEditMode())return;const e=this.getSettings(),t=e.selectors.slideContent.replace(".",""),n=this.$element;let s=1;this.findElement(`${e.selectors.slidesWrapper} > .e-con`).each((function(){const i=jQuery(this),r=i.closest("div").hasClass(t),o=n.find(`${e.selectors.slidesWrapper} > .${t}:nth-child(${s})`);r||o.append(i),s++}))}togglePauseOnHover(e){elementorFrontend.isEditMode()||super.togglePauseOnHover(e)}getChangeableProperties(){return{arrows_position:"arrows_position"}}applySwipeOptions(e){this.isTouchDevice()?(e.touchRatio=1,e.longSwipesRatio=.3,e.followFinger=!0,e.threshold=10):e.shortSwipes=!1}isTouchDevice(){return elementorFrontend.utils.environment.isTouchDevice}reInitBackgroundSlideshow(){const e=this.elements.$swiperContainer.find(".elementor-background-slideshow");for(const t of e){if(!t.swiper)return;t.swiper.initialized=!1,t.swiper.init()}}linkContainer(e){const{container:t,index:n,targetContainer:s,action:{type:i}}=e.detail,r=t.view.$el;if(t.model.get("id")===this.$element.data("id")){const{$slides:e}=this.getDefaultElements();let t,o;switch(i){case"move":[t,o]=this.move(r,n,s,e);break;case"duplicate":[t,o]=this.duplicate(r,n,s,e)}void 0!==t&&t.appendChild(o),this.updateIndexValues(e),this.updateListeners()}}move(e,t,n,s){return[s[t],n.view.$el[0]]}duplicate(e,t,n,s){return[s[t+1],n.view.$el[0]]}updateIndexValues(e){e.each(((e,t)=>{const n=e+1;t.setAttribute("data-slide",n)}))}updateListeners(){this.swiper.initialized=!1,this.swiper.init()}bindEvents(){super.bindEvents(),elementorFrontend.elements.$window.on("elementor/nested-container/atomic-repeater",this.linkContainer.bind(this))}}t.default=NestedCarousel}}]);