PATH:
home
/
lab2454c
/
sothebankuab.com
/
wp-content
/
plugins
/
elementor
/
assets
/
js
/*! elementor - v3.11.5 - 14-03-2023 */ "use strict"; (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) => { 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 }; if (elementSettings.image_spacing_custom) { swiperOptions.breakpoints[elementorBreakpoints[breakpointName].value].spaceBetween = this.getSpaceBetween(breakpointName); } 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 = this.getSpaceBetween(); } 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 }; } if ('yes' === elementSettings.lazyload) { swiperOptions.lazy = { loadPrevNext: true, loadPrevNextAmount: 1 }; } return swiperOptions; } async onInit() { super.onInit(...arguments); 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); const elementSettings = this.getElementSettings(); 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 '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', arrows_position: 'arrows_position' // Not a Swiper setting. }; } onElementChange(propertyName) { if (0 === propertyName.indexOf('image_spacing_custom')) { this.updateSpaceBetween(propertyName); return; } 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); } } getSpaceBetween() { let device = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(), 'image_spacing_custom', 'size', device) || 0; } updateSpaceBetween(propertyName) { const deviceMatch = propertyName.match('image_spacing_custom_(.*)'), device = deviceMatch ? deviceMatch[1] : 'desktop', newSpaceBetween = this.getSpaceBetween(device); if ('desktop' !== device) { this.swiper.params.breakpoints[elementorFrontend.config.responsive.activeBreakpoints[device].value].spaceBetween = newSpaceBetween; } this.swiper.params.spaceBetween = newSpaceBetween; this.swiper.update(); } } exports["default"] = ImageCarousel; /***/ }) }]); //# sourceMappingURL=image-carousel.eb05c92d71778c099df7.bundle.js.map
[-] frontend.min.js
[edit]
[-] e3ad248eb0b0a0144cc5.bundle.min.js
[edit]
[-] kit-library.0415ff95f9e449f27766.bundle.js
[edit]
[-] cef791548925eafe8d06.bundle.js
[edit]
[-] lightbox.10bc81bc33e5bd8f8073.bundle.min.js
[edit]
[-] editor.js
[edit]
[-] alert.cbc2a0fee74ee3ed0419.bundle.min.js
[edit]
[-] onboarding.276dc41e63f17732408f.bundle.js
[edit]
[-] image-carousel.eb05c92d71778c099df7.bundle.js
[edit]
[-] container.1defadbf74ae3af5a41b.bundle.js
[edit]
[-] admin-feedback.min.js
[edit]
[-] f0a189c7b01c3881792d.bundle.min.js
[edit]
[-] container.0fe1d3abe4a4fd76f033.bundle.min.js
[edit]
[-] nested-tabs.min.js
[edit]
[-] frontend.js
[edit]
[-] container-converter.min.js
[edit]
[-] kit-elements-defaults-editor.js
[edit]
[-] notes.min.js
[edit]
[-] tabs.b358a47f052794b89da0.bundle.js
[edit]
[-] progress.ca55d33bb06cee4e6f02.bundle.min.js
[edit]
[-] video.d86bfd0676264945e968.bundle.min.js
[edit]
[-] 8860c7bcf54e5ffd4068.bundle.min.js
[edit]
[-] admin-top-bar.min.js
[edit]
[-] editor-loader-v1.min.js
[edit]
[-] tabs.c2af5be7f9cb3cdcf3d5.bundle.min.js
[edit]
[-] import-export-admin.min.js
[edit]
[+]
..
[-] admin.js
[edit]
[-] wp-audio.c312891b47caa5e1facb.bundle.js
[edit]
[-] admin-modules.js
[edit]
[-] f44354f947a948ef36c9.bundle.min.js
[edit]
[-] admin-top-bar.js
[edit]
[-] editor-modules.min.js
[edit]
[-] gutenberg.min.js
[edit]
[-] app.min.js
[edit]
[-] nested-tabs.js
[edit]
[-] app.js
[edit]
[-] editor-loader-v1.js
[edit]
[-] editor.min.js.LICENSE.txt
[edit]
[-] preloaded-modules.min.js
[edit]
[-] preloaded-modules.js
[edit]
[-] nested-elements.min.js
[edit]
[-] kit-elements-defaults-editor.min.js
[edit]
[-] gutenberg.js
[edit]
[-] dev-tools.js
[edit]
[-] editor-document.js
[edit]
[-] lightbox.b732c3c462a598199d4f.bundle.js
[edit]
[-] app-packages.js
[edit]
[-] common.min.js
[edit]
[-] progress.76cabc81514569f4de82.bundle.js
[edit]
[-] web-cli.min.js
[edit]
[-] common-modules.min.js
[edit]
[-] onboarding.3e3dea382a15b3aaa603.bundle.min.js
[edit]
[-] common-modules.js
[edit]
[-] frontend-modules.min.js
[edit]
[-] text-editor.26e9c597fc0c1765a519.bundle.js
[edit]
[-] common.js
[edit]
[-] new-template.min.js
[edit]
[-] app-loader.js
[edit]
[-] editor.min.js
[edit]
[-] elementor-admin-bar.js
[edit]
[-] 4569ab75c577ec92c0bb.bundle.js
[edit]
[-] editor-loader-v2.js
[edit]
[-] kit-elements-defaults-editor.min.js.LICENSE.txt
[edit]
[-] elementor-admin-bar.min.js
[edit]
[-] video.9fcf6f0b982bacc93b9e.bundle.js
[edit]
[-] nested-elements.js
[edit]
[-] toggle.31881477c45ff5cf9d4d.bundle.min.js
[edit]
[-] frontend-modules.js
[edit]
[-] webpack.runtime.min.js
[edit]
[-] text-path.b50b3e74488a4e302613.bundle.min.js
[edit]
[-] app-loader.min.js
[edit]
[-] 49c816d19da28d022afe.bundle.js
[edit]
[-] counter.76b7d2e97fab58558ee8.bundle.js
[edit]
[-] web-cli.js
[edit]
[-] webpack.runtime.js
[edit]
[-] editor-modules.js
[edit]
[-] toggle.275b387e0126af4abc73.bundle.js
[edit]
[-] image-carousel.624de4dfcf054f3ddaa7.bundle.min.js
[edit]
[-] counter.02cef29c589e742d4c8c.bundle.min.js
[edit]
[-] app-packages.min.js.LICENSE.txt
[edit]
[-] new-template.js
[edit]
[-] app.min.js.LICENSE.txt
[edit]
[-] 54ec8bb1df28d799d240.bundle.js
[edit]
[-] admin-feedback.js
[edit]
[-] text-path.88008b84f1a6aba02048.bundle.js
[edit]
[-] accordion.8799675460c73eb48972.bundle.min.js
[edit]
[-] alert.fab41b1ce9a2329c8779.bundle.js
[edit]
[-] editor-document.min.js
[edit]
[-] beta-tester.js
[edit]
[-] common.min.js.LICENSE.txt
[edit]
[-] kit-library.c5dcf4fb963fcd4cfbac.bundle.min.js
[edit]
[-] accordion.2e5c3409e658db9d3c3a.bundle.js
[edit]
[-] web-cli.min.js.LICENSE.txt
[edit]
[-] app-packages.min.js
[edit]
[-] text-editor.2c35aafbe5bf0e127950.bundle.min.js
[edit]
[-] admin.min.js
[edit]
[-] admin-modules.min.js
[edit]
[-] container-converter.js
[edit]
[-] 5ce3f7e7b60c9a9a6060.bundle.js
[edit]
[-] editor-loader-v2.min.js
[edit]
[-] 1bef795bdeaafc779b19.bundle.min.js
[edit]
[-] nested-tabs.min.js.LICENSE.txt
[edit]
[-] import-export-admin.js
[edit]
[-] notes.js
[edit]
[-] 62aed6374b1561fb5fd8.bundle.js
[edit]
[-] wp-audio.75f0ced143febb8cd31a.bundle.min.js
[edit]
[-] dev-tools.min.js
[edit]
[-] beta-tester.min.js
[edit]