PATH:
home
/
lab2454c
/
spaxtac.com
/
wp-content
/
plugins
/
elementor
/
assets
/
js
/*! elementor - v3.4.8 - 16-11-2021 */ (self["webpackChunkelementor"] = self["webpackChunkelementor"] || []).push([["image-carousel"],{ /***/ "../assets/dev/js/frontend/handlers/image-carousel.js": /*!************************************************************!*\ !*** ../assets/dev/js/frontend/handlers/image-carousel.js ***! \************************************************************/ /***/ ((__unused_webpack_module, exports) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.default = void 0; class ImageCarousel extends elementorModules.frontend.handlers.SwiperBase { getDefaultSettings() { return { selectors: { carousel: '.elementor-image-carousel-wrapper', slideContent: '.swiper-slide' } }; } getDefaultElements() { const selectors = this.getSettings('selectors'); const elements = { $swiperContainer: this.$element.find(selectors.carousel) }; elements.$slides = elements.$swiperContainer.find(selectors.slideContent); return elements; } getSwiperSettings() { const elementSettings = this.getElementSettings(), slidesToShow = +elementSettings.slides_to_show || 3, isSingleSlide = 1 === slidesToShow, elementorBreakpoints = elementorFrontend.config.responsive.activeBreakpoints, defaultSlidesToShowMap = { mobile: 1, tablet: isSingleSlide ? 1 : 2 }; const swiperOptions = { slidesPerView: slidesToShow, loop: 'yes' === elementSettings.infinite, speed: elementSettings.speed, handleElementorBreakpoints: true }; swiperOptions.breakpoints = {}; let lastBreakpointSlidesToShowValue = slidesToShow; Object.keys(elementorBreakpoints).reverse().forEach(breakpointName => { // Tablet has a specific default `slides_to_show`. const defaultSlidesToShow = defaultSlidesToShowMap[breakpointName] ? defaultSlidesToShowMap[breakpointName] : lastBreakpointSlidesToShowValue; swiperOptions.breakpoints[elementorBreakpoints[breakpointName].value] = { slidesPerView: +elementSettings['slides_to_show_' + breakpointName] || defaultSlidesToShow, slidesPerGroup: +elementSettings['slides_to_scroll_' + breakpointName] || 1 }; lastBreakpointSlidesToShowValue = +elementSettings['slides_to_show_' + breakpointName] || defaultSlidesToShow; }); if ('yes' === elementSettings.autoplay) { swiperOptions.autoplay = { delay: elementSettings.autoplay_speed, disableOnInteraction: 'yes' === elementSettings.pause_on_interaction }; } if (isSingleSlide) { swiperOptions.effect = elementSettings.effect; if ('fade' === elementSettings.effect) { swiperOptions.fadeEffect = { crossFade: true }; } } else { swiperOptions.slidesPerGroup = +elementSettings.slides_to_scroll || 1; } if (elementSettings.image_spacing_custom) { swiperOptions.spaceBetween = elementSettings.image_spacing_custom.size; } const showArrows = 'arrows' === elementSettings.navigation || 'both' === elementSettings.navigation, showDots = 'dots' === elementSettings.navigation || 'both' === elementSettings.navigation; if (showArrows) { swiperOptions.navigation = { prevEl: '.elementor-swiper-button-prev', nextEl: '.elementor-swiper-button-next' }; } if (showDots) { swiperOptions.pagination = { el: '.swiper-pagination', type: 'bullets', clickable: true }; } return swiperOptions; } async onInit(...args) { super.onInit(...args); const elementSettings = this.getElementSettings(); if (!this.elements.$swiperContainer.length || 2 > this.elements.$slides.length) { return; } const Swiper = elementorFrontend.utils.swiper; this.swiper = await new Swiper(this.elements.$swiperContainer, this.getSwiperSettings()); // Expose the swiper instance in the frontend this.elements.$swiperContainer.data('swiper', this.swiper); if ('yes' === elementSettings.pause_on_hover) { this.togglePauseOnHover(true); } } updateSwiperOption(propertyName) { const elementSettings = this.getElementSettings(), newSettingValue = elementSettings[propertyName], params = this.swiper.params; // Handle special cases where the value to update is not the value that the Swiper library accepts. switch (propertyName) { case 'image_spacing_custom': params.spaceBetween = newSettingValue.size || 0; break; case 'autoplay_speed': params.autoplay.delay = newSettingValue; break; case 'speed': params.speed = newSettingValue; break; } this.swiper.update(); } getChangeableProperties() { return { pause_on_hover: 'pauseOnHover', autoplay_speed: 'delay', speed: 'speed', image_spacing_custom: 'spaceBetween' }; } onElementChange(propertyName) { const changeableProperties = this.getChangeableProperties(); if (changeableProperties[propertyName]) { // 'pause_on_hover' is implemented by the handler with event listeners, not the Swiper library. if ('pause_on_hover' === propertyName) { const newSettingValue = this.getElementSettings('pause_on_hover'); this.togglePauseOnHover('yes' === newSettingValue); } else { this.updateSwiperOption(propertyName); } } } onEditSettingsChange(propertyName) { if ('activeItemIndex' === propertyName) { this.swiper.slideToLoop(this.getEditSettings('activeItemIndex') - 1); } } } exports.default = ImageCarousel; /***/ }) }]); //# sourceMappingURL=image-carousel.024943eec9daaabea9ff.bundle.js.map
[-] frontend.min.js
[edit]
[-] editor.js
[edit]
[-] alert.f04b9d16129bc8aa4cdc.bundle.js
[edit]
[-] progress.5306267e0436c8de4985.bundle.js
[edit]
[-] counter.1bf6011c2ab9506880c2.bundle.min.js
[edit]
[-] admin-feedback.min.js
[edit]
[-] frontend.js
[edit]
[-] alert.124c2442b8a696597f9e.bundle.min.js
[edit]
[-] kit-library.d3688acfaab28676a99c.bundle.js
[edit]
[-] tabs.b7bd957161644e810d53.bundle.js
[edit]
[-] toggle.5e8aae8d1c1e897e9b4e.bundle.js
[edit]
[-] text-editor.9efe2dca043f0f618897.bundle.min.js
[edit]
[-] image-carousel.024943eec9daaabea9ff.bundle.js
[edit]
[-] admin-top-bar.min.js
[edit]
[+]
..
[-] admin.js
[edit]
[-] accordion.5824c4bc9e26d54f2918.bundle.js
[edit]
[-] video.509fb0e07b97e0f603d7.bundle.js
[edit]
[-] admin-top-bar.js
[edit]
[-] editor-modules.min.js
[edit]
[-] image-carousel.f9dc73796adfb21bb945.bundle.min.js
[edit]
[-] gutenberg.min.js
[edit]
[-] app.min.js
[edit]
[-] app.js
[edit]
[-] text-path.9b3ece1b692d34d012b5.bundle.js
[edit]
[-] preloaded-modules.min.js
[edit]
[-] 06ad222c8807f0a951da.bundle.js
[edit]
[-] preloaded-modules.js
[edit]
[-] gutenberg.js
[edit]
[-] editor-document.js
[edit]
[-] text-path.15daa9710b97d5cf86b9.bundle.min.js
[edit]
[-] app-packages.js
[edit]
[-] common.min.js
[edit]
[-] toggle.1aca60f44e355cb43256.bundle.min.js
[edit]
[-] common-modules.min.js
[edit]
[-] common-modules.js
[edit]
[-] frontend-modules.min.js
[edit]
[-] common.js
[edit]
[-] new-template.min.js
[edit]
[-] app-loader.js
[edit]
[-] editor.min.js
[edit]
[-] elementor-admin-bar.js
[edit]
[-] elementor-admin-bar.min.js
[edit]
[-] tabs.cd05b61e107cc58d1be9.bundle.min.js
[edit]
[-] frontend-modules.js
[edit]
[-] lightbox.c3bb4b95635c5e3ad984.bundle.min.js
[edit]
[-] webpack.runtime.min.js
[edit]
[-] kit-library.e61c291a7b6bbc946eeb.bundle.min.js
[edit]
[-] app-loader.min.js
[edit]
[-] webpack.runtime.js
[edit]
[-] editor-modules.js
[edit]
[-] wp-audio.de344657de8b792ed9b0.bundle.js
[edit]
[-] video.505da250f982d8f15187.bundle.min.js
[edit]
[-] new-template.js
[edit]
[-] admin-feedback.js
[edit]
[-] text-editor.a8434931ecdcd5ff7589.bundle.js
[edit]
[-] editor-document.min.js
[edit]
[-] beta-tester.js
[edit]
[-] accordion.839112600fade8979d16.bundle.min.js
[edit]
[-] counter.b452600865ffc51a6ea0.bundle.js
[edit]
[-] progress.4079971c3240c226b858.bundle.min.js
[edit]
[-] app-packages.min.js
[edit]
[-] admin.min.js
[edit]
[-] lightbox.8c3d45f71a9a1ecd69fc.bundle.js
[edit]
[-] wp-audio.2332b719d144261993a3.bundle.min.js
[edit]
[-] beta-tester.min.js
[edit]
[-] d44a57c594ce7771dd50.bundle.min.js
[edit]