PATH:
home
/
lab2454c
/
sothebankuab.com
/
wp-content
/
plugins
/
elementor-pro
/
assets
/
js
/*! elementor-pro - v3.3.4 - 21-07-2021 */ (self["webpackChunkelementor_pro"] = self["webpackChunkelementor_pro"] || []).push([["modules_carousel_assets_js_frontend_handlers_base_js"],{ /***/ "../modules/carousel/assets/js/frontend/handlers/base.js": /*!***************************************************************!*\ !*** ../modules/carousel/assets/js/frontend/handlers/base.js ***! \***************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { "use strict"; var _Object$defineProperty = __webpack_require__(/*! @babel/runtime-corejs2/core-js/object/define-property */ "../node_modules/@babel/runtime-corejs2/core-js/object/define-property.js"); var _interopRequireDefault = __webpack_require__(/*! @babel/runtime-corejs2/helpers/interopRequireDefault */ "../node_modules/@babel/runtime-corejs2/helpers/interopRequireDefault.js"); _Object$defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); var _keys = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/core-js/object/keys */ "../node_modules/@babel/runtime-corejs2/core-js/object/keys.js")); __webpack_require__(/*! core-js/modules/es6.array.find.js */ "../node_modules/core-js/modules/es6.array.find.js"); __webpack_require__(/*! core-js/modules/es6.regexp.match.js */ "../node_modules/core-js/modules/es6.regexp.match.js"); var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/asyncToGenerator */ "../node_modules/@babel/runtime-corejs2/helpers/asyncToGenerator.js")); var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/classCallCheck */ "../node_modules/@babel/runtime-corejs2/helpers/classCallCheck.js")); var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createClass */ "../node_modules/@babel/runtime-corejs2/helpers/createClass.js")); var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/inherits */ "../node_modules/@babel/runtime-corejs2/helpers/inherits.js")); var _createSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime-corejs2/helpers/createSuper */ "../node_modules/@babel/runtime-corejs2/helpers/createSuper.js")); var CarouselBase = /*#__PURE__*/function (_elementorModules$fro) { (0, _inherits2.default)(CarouselBase, _elementorModules$fro); var _super = (0, _createSuper2.default)(CarouselBase); function CarouselBase() { (0, _classCallCheck2.default)(this, CarouselBase); return _super.apply(this, arguments); } (0, _createClass2.default)(CarouselBase, [{ key: "getDefaultSettings", value: function getDefaultSettings() { return { selectors: { swiperContainer: '.elementor-main-swiper', swiperSlide: '.swiper-slide' }, slidesPerView: { desktop: 3, tablet: 2, mobile: 1 } }; } }, { key: "getDefaultElements", value: function getDefaultElements() { var selectors = this.getSettings('selectors'), elements = { $swiperContainer: this.$element.find(selectors.swiperContainer) }; elements.$slides = elements.$swiperContainer.find(selectors.swiperSlide); return elements; } }, { key: "getEffect", value: function getEffect() { return this.getElementSettings('effect'); } }, { key: "getDeviceSlidesPerView", value: function getDeviceSlidesPerView(device) { var slidesPerViewKey = 'slides_per_view' + ('desktop' === device ? '' : '_' + device); return Math.min(this.getSlidesCount(), +this.getElementSettings(slidesPerViewKey) || this.getSettings('slidesPerView')[device]); } }, { key: "getSlidesPerView", value: function getSlidesPerView(device) { if ('slide' === this.getEffect()) { return this.getDeviceSlidesPerView(device); } return 1; } }, { key: "getDeviceSlidesToScroll", value: function getDeviceSlidesToScroll(device) { var slidesToScrollKey = 'slides_to_scroll' + ('desktop' === device ? '' : '_' + device); return Math.min(this.getSlidesCount(), +this.getElementSettings(slidesToScrollKey) || 1); } }, { key: "getSlidesToScroll", value: function getSlidesToScroll(device) { if ('slide' === this.getEffect()) { return this.getDeviceSlidesToScroll(device); } return 1; } }, { key: "getSpaceBetween", value: function getSpaceBetween(device) { var propertyName = 'space_between'; if (device && 'desktop' !== device) { propertyName += '_' + device; } return this.getElementSettings(propertyName).size || 0; } }, { key: "getSwiperOptions", value: function getSwiperOptions() { var _this = this; var elementSettings = this.getElementSettings(); var swiperOptions = { grabCursor: true, initialSlide: this.getInitialSlide(), slidesPerView: this.getSlidesPerView('desktop'), slidesPerGroup: this.getSlidesToScroll('desktop'), spaceBetween: this.getSpaceBetween(), loop: 'yes' === elementSettings.loop, speed: elementSettings.speed, effect: this.getEffect(), preventClicksPropagation: false, slideToClickedSlide: true, handleElementorBreakpoints: true }; if (elementSettings.show_arrows) { swiperOptions.navigation = { prevEl: '.elementor-swiper-button-prev', nextEl: '.elementor-swiper-button-next' }; } if (elementSettings.pagination) { swiperOptions.pagination = { el: '.swiper-pagination', type: elementSettings.pagination, clickable: true }; } if ('cube' !== this.getEffect()) { var breakpointsSettings = {}, breakpoints = elementorFrontend.config.responsive.activeBreakpoints; (0, _keys.default)(breakpoints).forEach(function (breakpointName) { breakpointsSettings[breakpoints[breakpointName].value] = { slidesPerView: _this.getSlidesPerView(breakpointName), slidesPerGroup: _this.getSlidesToScroll(breakpointName), spaceBetween: _this.getSpaceBetween(breakpointName) }; }); swiperOptions.breakpoints = breakpointsSettings; } if (!this.isEdit && elementSettings.autoplay) { swiperOptions.autoplay = { delay: elementSettings.autoplay_speed, disableOnInteraction: !!elementSettings.pause_on_interaction }; } return swiperOptions; } }, { key: "getDeviceBreakpointValue", value: function getDeviceBreakpointValue(device) { var _this2 = this; if (!this.breakpointsDictionary) { var breakpoints = elementorFrontend.config.responsive.activeBreakpoints; this.breakpointsDictionary = {}; (0, _keys.default)(breakpoints).forEach(function (breakpointName) { _this2.breakpointsDictionary[breakpointName] = breakpoints[breakpointName].value; }); } return this.breakpointsDictionary[device]; } }, { key: "updateSpaceBetween", value: function updateSpaceBetween(propertyName) { var deviceMatch = propertyName.match('space_between_(.*)'), device = deviceMatch ? deviceMatch[1] : 'desktop', newSpaceBetween = this.getSpaceBetween(device); if ('desktop' !== device) { this.swiper.params.breakpoints[this.getDeviceBreakpointValue(device)].spaceBetween = newSpaceBetween; } else { this.swiper.params.spaceBetween = newSpaceBetween; } this.swiper.params.spaceBetween = newSpaceBetween; this.swiper.update(); } }, { key: "onInit", value: function () { var _onInit = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() { var elementSettings, Swiper, _args = arguments; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: elementorModules.frontend.handlers.Base.prototype.onInit.apply(this, _args); elementSettings = this.getElementSettings(); if (!(1 >= this.getSlidesCount())) { _context.next = 4; break; } return _context.abrupt("return"); case 4: Swiper = elementorFrontend.utils.swiper; _context.next = 7; return new Swiper(this.elements.$swiperContainer, this.getSwiperOptions()); case 7: this.swiper = _context.sent; if ('yes' === elementSettings.pause_on_hover) { this.togglePauseOnHover(true); } // Expose the swiper instance in the frontend this.elements.$swiperContainer.data('swiper', this.swiper); case 10: case "end": return _context.stop(); } } }, _callee, this); })); function onInit() { return _onInit.apply(this, arguments); } return onInit; }() }, { key: "getChangeableProperties", value: function getChangeableProperties() { return { autoplay: 'autoplay', pause_on_hover: 'pauseOnHover', pause_on_interaction: 'disableOnInteraction', autoplay_speed: 'delay', speed: 'speed', width: 'width' }; } }, { key: "updateSwiperOption", value: function updateSwiperOption(propertyName) { if (0 === propertyName.indexOf('width')) { this.swiper.update(); return; } var elementSettings = this.getElementSettings(), newSettingValue = elementSettings[propertyName], changeableProperties = this.getChangeableProperties(); var propertyToUpdate = changeableProperties[propertyName], valueToUpdate = newSettingValue; // Handle special cases where the value to update is not the value that the Swiper library accepts switch (propertyName) { case 'autoplay': if (newSettingValue) { valueToUpdate = { delay: elementSettings.autoplay_speed, disableOnInteraction: 'yes' === elementSettings.pause_on_interaction }; } else { valueToUpdate = false; } break; case 'autoplay_speed': propertyToUpdate = 'autoplay'; valueToUpdate = { delay: newSettingValue, disableOnInteraction: 'yes' === elementSettings.pause_on_interaction }; break; case 'pause_on_hover': this.togglePauseOnHover('yes' === newSettingValue); break; case 'pause_on_interaction': valueToUpdate = 'yes' === newSettingValue; break; } // 'pause_on_hover' is implemented by the handler with event listeners, not the Swiper library if ('pause_on_hover' !== propertyName) { this.swiper.params[propertyToUpdate] = valueToUpdate; } this.swiper.update(); } }, { key: "onElementChange", value: function onElementChange(propertyName) { if (1 >= this.getSlidesCount()) { return; } if (0 === propertyName.indexOf('width')) { this.swiper.update(); // If there is another thumbs slider, like in the Media Carousel widget. if (this.thumbsSwiper) { this.thumbsSwiper.update(); } return; } // This is for handling the responsive control 'space_between'. // Responsive controls require a separate way of handling, and some currently don't work // (Swiper bug, currently exists in v5.3.6) TODO: update Swiper when bug is fixed and handle responsive controls if (0 === propertyName.indexOf('space_between')) { this.updateSpaceBetween(propertyName); return; } var changeableProperties = this.getChangeableProperties(); if (changeableProperties.hasOwnProperty(propertyName)) { this.updateSwiperOption(propertyName); } } }, { key: "onEditSettingsChange", value: function onEditSettingsChange(propertyName) { if (1 >= this.getSlidesCount()) { return; } if ('activeItemIndex' === propertyName) { this.swiper.slideToLoop(this.getEditSettings('activeItemIndex') - 1); } } }]); return CarouselBase; }(elementorModules.frontend.handlers.SwiperBase); exports.default = CarouselBase; /***/ }) }]); //# sourceMappingURL=2674f26f7a61a076ae44.bundle.js.map
[-] frontend.min.js
[edit]
[-] elements-handlers.js
[edit]
[-] editor.js
[edit]
[-] screenshot.min.js
[edit]
[-] archive-posts.fd5949b12eae1d836370.bundle.min.js
[edit]
[-] share-buttons.90bff2e73000d4e3f189.bundle.min.js
[edit]
[-] posts.4b4834181e0158037844.bundle.js
[edit]
[-] qunit-tests.min.js
[edit]
[-] elements-handlers.min.js
[edit]
[-] portfolio.7e41bde7ebd3c1195e2a.bundle.min.js
[edit]
[-] share-buttons.a4ac583614766c17243b.bundle.js
[edit]
[-] form-submission-admin.js
[edit]
[-] frontend.js
[edit]
[-] popup.502330d9929af9beeefd.bundle.min.js
[edit]
[-] form-submission-admin.min.js
[edit]
[-] countdown.e8b325f6654ba38a5606.bundle.js
[edit]
[-] popup.11f78f8460dfd624d6fd.bundle.js
[edit]
[-] countdown.bb46c1fe3c44d539dcc5.bundle.min.js
[edit]
[-] table-of-contents.18b2bc609c0761e78803.bundle.min.js
[edit]
[+]
..
[-] admin.js
[edit]
[-] preview.min.js
[edit]
[-] lottie.56eeeacd4e8b45bf0e69.bundle.js
[edit]
[-] search-form.3930197ed1faa52a1ca6.bundle.js
[edit]
[-] webpack-pro.runtime.min.js
[edit]
[-] app.min.js
[edit]
[-] app.js
[edit]
[-] gallery.553ce77143c8a6c9fb2f.bundle.min.js
[edit]
[-] social.248e7d2278f85735e210.bundle.js
[edit]
[-] gallery.044b1c02fe2971304f4b.bundle.js
[edit]
[-] animated-headline.c48ffcc42cf8e1937b79.bundle.js
[edit]
[-] video-playlist.5e558c60b53f53a24687.bundle.js
[edit]
[-] jszip.vendor.8911033537a0c9d6e5f8.bundle.js
[edit]
[-] woocommerce-menu-cart.c85790f6adbf4d37d78a.bundle.js
[edit]
[-] code-highlight.980168b9b4c79600c41c.bundle.min.js
[edit]
[-] jszip.vendor.9ec53381c344ee903f3e.bundle.min.js.LICENSE.txt
[edit]
[-] 2674f26f7a61a076ae44.bundle.js
[edit]
[-] social.313de86242bbec8993a6.bundle.min.js
[edit]
[-] archive-posts.c5bfd0c6126737964ea3.bundle.js
[edit]
[-] search-form.69e3551a94b182780302.bundle.min.js
[edit]
[-] table-of-contents.c40874e82fb2b6d09547.bundle.js
[edit]
[-] editor.min.js
[edit]
[-] custom-code.js
[edit]
[-] nav-menu.1047f3cf542aebc7eea1.bundle.js
[edit]
[-] lottie.b602d6a1c68e229db197.bundle.min.js
[edit]
[-] portfolio.1753cf6f95efb460cd6c.bundle.js
[edit]
[-] form.dd13e7aa247581b7c347.bundle.min.js
[edit]
[-] paypal-button.e7bc00be6d37a75afa94.bundle.js
[edit]
[-] nav-menu.45545c0d5772c620c9fc.bundle.min.js
[edit]
[-] preloaded-elements-handlers.js
[edit]
[-] animated-headline.0cdf629ebd9eaf373218.bundle.min.js
[edit]
[-] woocommerce-menu-cart.a0ca3c5b1b1fbd100eae.bundle.min.js
[edit]
[-] webpack-pro.runtime.js
[edit]
[-] screenshot.js
[edit]
[-] media-carousel.90dacec614de60683492.bundle.min.js
[edit]
[-] code-highlight.36c6ab32da7b5cd4cf39.bundle.js
[edit]
[-] carousel.b9b72c3f8c26e7336341.bundle.js
[edit]
[-] slides.b404bc7083be41fc917c.bundle.js
[edit]
[-] media-carousel.195b60e9d52641de17ef.bundle.js
[edit]
[-] preview.js
[edit]
[-] jszip.vendor.9ec53381c344ee903f3e.bundle.min.js
[edit]
[-] hotspot.87f8b120d01ef70bdf13.bundle.min.js
[edit]
[-] slides.805ab056f4b77290515e.bundle.min.js
[edit]
[-] admin.min.js
[edit]
[-] preloaded-elements-handlers.min.js
[edit]
[-] hotspot.6e5f8367844f92a2df4d.bundle.js
[edit]
[-] qunit-tests.js
[edit]
[-] custom-code.min.js
[edit]
[-] paypal-button.b2f7547fbb7a974af793.bundle.min.js
[edit]
[-] carousel.1ebc0652cb61e40967b7.bundle.min.js
[edit]
[-] posts.2850ece7b8987a6bff85.bundle.min.js
[edit]
[-] form.a1a56dc07903de7da0f4.bundle.js
[edit]
[-] video-playlist.05b3106f8cec7280494a.bundle.min.js
[edit]