| @@ -1,6 +1,7 @@ | ||
| 1 | +/*! elementor - v3.24.0 - 28-10-2024 */ | |
| 1 | 2 | "use strict"; |
| 2 | -(self["webpackChunkelementorFrontend"] = self["webpackChunkelementorFrontend"] || []).push([["frontend"],{ | |
| 3 | +(self["webpackChunkelementor"] = self["webpackChunkelementor"] || []).push([["frontend"],{ | |
| 3 | 4 | |
| 4 | 5 | /***/ "../assets/dev/js/frontend/documents-manager.js": |
| 5 | 6 | /*!******************************************************!*\ |
| 6 | 7 | !*** ../assets/dev/js/frontend/documents-manager.js ***! |
| @@ -15,10 +16,10 @@ | ||
| 15 | 16 | })); |
| 16 | 17 | exports["default"] = void 0; |
| 17 | 18 | var _document = _interopRequireDefault(__webpack_require__(/*! ./document */ "../assets/dev/js/frontend/document.js")); |
| 18 | 19 | class _default extends elementorModules.ViewModule { |
| 19 | - constructor(...args) { | |
| 20 | - super(...args); | |
| 20 | + constructor() { | |
| 21 | + super(...arguments); | |
| 21 | 22 | this.documents = {}; |
| 22 | 23 | this.initDocumentClasses(); |
| 23 | 24 | this.attachDocumentsClasses(); |
| 24 | 25 | } |
| @@ -70,17 +71,21 @@ | ||
| 70 | 71 | |
| 71 | 72 | |
| 72 | 73 | |
| 73 | 74 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 74 | -__webpack_require__(/*! core-js/modules/esnext.iterator.constructor.js */ "../node_modules/core-js/modules/esnext.iterator.constructor.js"); | |
| 75 | -__webpack_require__(/*! core-js/modules/esnext.iterator.for-each.js */ "../node_modules/core-js/modules/esnext.iterator.for-each.js"); | |
| 76 | 75 | var _global = _interopRequireDefault(__webpack_require__(/*! ./handlers/global */ "../assets/dev/js/frontend/handlers/global.js")); |
| 76 | +var _background = _interopRequireDefault(__webpack_require__(/*! ./handlers/background */ "../assets/dev/js/frontend/handlers/background.js")); | |
| 77 | 77 | var _container = _interopRequireDefault(__webpack_require__(/*! ./handlers/container/container */ "../assets/dev/js/frontend/handlers/container/container.js")); |
| 78 | -var _section = _interopRequireDefault(__webpack_require__(/*! ./handlers/section/section */ "../assets/dev/js/frontend/handlers/section/section.js")); | |
| 79 | 78 | var _column = _interopRequireDefault(__webpack_require__(/*! ./handlers/column */ "../assets/dev/js/frontend/handlers/column.js")); |
| 79 | +var _handlesPosition = _interopRequireDefault(__webpack_require__(/*! ./handlers/section/handles-position */ "../assets/dev/js/frontend/handlers/section/handles-position.js")); | |
| 80 | +var _stretchedSection = _interopRequireDefault(__webpack_require__(/*! ./handlers/section/stretched-section */ "../assets/dev/js/frontend/handlers/section/stretched-section.js")); | |
| 81 | +var _shapes = _interopRequireDefault(__webpack_require__(/*! ./handlers/section/shapes */ "../assets/dev/js/frontend/handlers/section/shapes.js")); | |
| 82 | +// Section handlers. | |
| 83 | + | |
| 80 | 84 | /* global elementorFrontendConfig */ |
| 81 | 85 | |
| 82 | 86 | module.exports = function ($) { |
| 87 | + var _this = this; | |
| 83 | 88 | const handlersInstances = {}; |
| 84 | 89 | this.elementsHandlers = { |
| 85 | 90 | 'accordion.default': () => __webpack_require__.e(/*! import() | accordion */ "accordion").then(__webpack_require__.bind(__webpack_require__, /*! ./handlers/accordion */ "../assets/dev/js/frontend/handlers/accordion.js")), |
| 86 | 91 | 'alert.default': () => __webpack_require__.e(/*! import() | alert */ "alert").then(__webpack_require__.bind(__webpack_require__, /*! ./handlers/alert */ "../assets/dev/js/frontend/handlers/alert.js")), |
| @@ -90,25 +95,32 @@ | ||
| 90 | 95 | 'toggle.default': () => __webpack_require__.e(/*! import() | toggle */ "toggle").then(__webpack_require__.bind(__webpack_require__, /*! ./handlers/toggle */ "../assets/dev/js/frontend/handlers/toggle.js")), |
| 91 | 96 | 'video.default': () => __webpack_require__.e(/*! import() | video */ "video").then(__webpack_require__.bind(__webpack_require__, /*! ./handlers/video */ "../assets/dev/js/frontend/handlers/video.js")), |
| 92 | 97 | 'image-carousel.default': () => __webpack_require__.e(/*! import() | image-carousel */ "image-carousel").then(__webpack_require__.bind(__webpack_require__, /*! ./handlers/image-carousel */ "../assets/dev/js/frontend/handlers/image-carousel.js")), |
| 93 | 98 | 'text-editor.default': () => __webpack_require__.e(/*! import() | text-editor */ "text-editor").then(__webpack_require__.bind(__webpack_require__, /*! ./handlers/text-editor */ "../assets/dev/js/frontend/handlers/text-editor.js")), |
| 94 | - 'wp-widget-media_audio.default': () => __webpack_require__.e(/*! import() | wp-audio */ "wp-audio").then(__webpack_require__.bind(__webpack_require__, /*! ./handlers/wp-audio */ "../assets/dev/js/frontend/handlers/wp-audio.js")), | |
| 95 | - container: _container.default, | |
| 96 | - section: _section.default, | |
| 97 | - column: _column.default | |
| 99 | + 'wp-widget-media_audio.default': () => __webpack_require__.e(/*! import() | wp-audio */ "wp-audio").then(__webpack_require__.bind(__webpack_require__, /*! ./handlers/wp-audio */ "../assets/dev/js/frontend/handlers/wp-audio.js")) | |
| 98 | 100 | }; |
| 99 | 101 | if (elementorFrontendConfig.experimentalFeatures['nested-elements']) { |
| 100 | - this.elementsHandlers['nested-tabs.default'] = () => __webpack_require__.e(/*! import() | nested-tabs */ "nested-tabs").then(__webpack_require__.bind(__webpack_require__, /*! elementor/modules/nested-tabs/assets/js/frontend/handlers/nested-tabs */ "../modules/nested-tabs/assets/js/frontend/handlers/nested-tabs.js")); | |
| 102 | + this.elementsHandlers['nested-tabs.default'] = () => Promise.resolve(/*! import() */).then(__webpack_require__.bind(__webpack_require__, /*! elementor/modules/nested-tabs/assets/js/frontend/handlers/nested-tabs */ "../modules/nested-tabs/assets/js/frontend/handlers/nested-tabs.js")); | |
| 101 | 103 | } |
| 102 | 104 | if (elementorFrontendConfig.experimentalFeatures['nested-elements']) { |
| 103 | - this.elementsHandlers['nested-accordion.default'] = () => __webpack_require__.e(/*! import() | nested-accordion */ "nested-accordion").then(__webpack_require__.bind(__webpack_require__, /*! elementor/modules/nested-accordion/assets/js/frontend/handlers/nested-accordion */ "../modules/nested-accordion/assets/js/frontend/handlers/nested-accordion.js")); | |
| 105 | + this.elementsHandlers['nested-accordion.default'] = () => Promise.resolve(/*! import() */).then(__webpack_require__.bind(__webpack_require__, /*! elementor/modules/nested-accordion/assets/js/frontend/handlers/nested-accordion */ "../modules/nested-accordion/assets/js/frontend/handlers/nested-accordion.js")); | |
| 104 | 106 | } |
| 105 | 107 | if (elementorFrontendConfig.experimentalFeatures.container) { |
| 106 | - this.elementsHandlers['contact-buttons.default'] = () => __webpack_require__.e(/*! import() | contact-buttons */ "contact-buttons").then(__webpack_require__.bind(__webpack_require__, /*! elementor/modules/floating-buttons/assets/js/floating-buttons/frontend/handlers/contact-buttons */ "../modules/floating-buttons/assets/js/floating-buttons/frontend/handlers/contact-buttons.js")); | |
| 107 | - this.elementsHandlers['floating-bars-var-1.default'] = () => __webpack_require__.e(/*! import() | floating-bars */ "floating-bars").then(__webpack_require__.bind(__webpack_require__, /*! elementor/modules/floating-buttons/assets/js/floating-bars/frontend/handlers/floating-bars */ "../modules/floating-buttons/assets/js/floating-bars/frontend/handlers/floating-bars.js")); | |
| 108 | + this.elementsHandlers['contact-buttons.default'] = () => Promise.resolve(/*! import() */).then(__webpack_require__.bind(__webpack_require__, /*! elementor/modules/floating-buttons/assets/js/floating-buttons/frontend/handlers/contact-buttons */ "../modules/floating-buttons/assets/js/floating-buttons/frontend/handlers/contact-buttons.js")); | |
| 109 | + this.elementsHandlers['floating-bars-var-1.default'] = () => Promise.resolve(/*! import() */).then(__webpack_require__.bind(__webpack_require__, /*! elementor/modules/floating-buttons/assets/js/floating-bars/frontend/handlers/floating-bars */ "../modules/floating-buttons/assets/js/floating-bars/frontend/handlers/floating-bars.js")); | |
| 108 | 110 | } |
| 109 | 111 | const addGlobalHandlers = () => elementorFrontend.hooks.addAction('frontend/element_ready/global', _global.default); |
| 110 | 112 | const addElementsHandlers = () => { |
| 113 | + this.elementsHandlers.section = [_stretchedSection.default, | |
| 114 | + // Must run before background handlers to init the slideshow only after the stretch. | |
| 115 | + ..._background.default, _handlesPosition.default, _shapes.default]; | |
| 116 | + this.elementsHandlers.container = [..._background.default]; | |
| 117 | + | |
| 118 | + // Add editor-only handlers. | |
| 119 | + if (elementorFrontend.isEditMode()) { | |
| 120 | + this.elementsHandlers.container.push(..._container.default); | |
| 121 | + } | |
| 122 | + this.elementsHandlers.column = _column.default; | |
| 111 | 123 | $.each(this.elementsHandlers, (elementName, Handlers) => { |
| 112 | 124 | const elementData = elementName.split('.'); |
| 113 | 125 | elementName = elementData[0]; |
| 114 | 126 | const skin = elementData[1] || null; |
| @@ -115,14 +127,15 @@ | ||
| 115 | 127 | this.attachHandler(elementName, Handlers, skin); |
| 116 | 128 | }); |
| 117 | 129 | }; |
| 118 | 130 | const isClassHandler = Handler => Handler.prototype?.getUniqueHandlerID; |
| 119 | - const addHandlerWithHook = (elementBaseName, Handler, skin = 'default') => { | |
| 131 | + const addHandlerWithHook = function (elementBaseName, Handler) { | |
| 132 | + let skin = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'default'; | |
| 120 | 133 | skin = skin ? '.' + skin : ''; |
| 121 | 134 | const elementName = elementBaseName + skin; |
| 122 | 135 | elementorFrontend.hooks.addAction(`frontend/element_ready/${elementName}`, $element => { |
| 123 | 136 | if (isClassHandler(Handler)) { |
| 124 | - this.addHandler(Handler, { | |
| 137 | + _this.addHandler(Handler, { | |
| 125 | 138 | $element, |
| 126 | 139 | elementName |
| 127 | 140 | }, true); |
| 128 | 141 | } else { |
| @@ -130,18 +143,19 @@ | ||
| 130 | 143 | if (!handlerValue) { |
| 131 | 144 | return; |
| 132 | 145 | } |
| 133 | 146 | if (handlerValue instanceof Promise) { |
| 134 | - handlerValue.then(({ | |
| 135 | - default: dynamicHandler | |
| 136 | - }) => { | |
| 137 | - this.addHandler(dynamicHandler, { | |
| 147 | + handlerValue.then(_ref => { | |
| 148 | + let { | |
| 149 | + default: dynamicHandler | |
| 150 | + } = _ref; | |
| 151 | + _this.addHandler(dynamicHandler, { | |
| 138 | 152 | $element, |
| 139 | 153 | elementName |
| 140 | 154 | }, true); |
| 141 | 155 | }); |
| 142 | 156 | } else { |
| 143 | - this.addHandler(handlerValue, { | |
| 157 | + _this.addHandler(handlerValue, { | |
| 144 | 158 | $element, |
| 145 | 159 | elementName |
| 146 | 160 | }, true); |
| 147 | 161 | } |
| @@ -180,11 +194,12 @@ | ||
| 180 | 194 | if (isClassHandler(elementHandler)) { |
| 181 | 195 | return elementHandler; |
| 182 | 196 | } |
| 183 | 197 | return new Promise(res => { |
| 184 | - elementHandler().then(({ | |
| 185 | - default: dynamicHandler | |
| 186 | - }) => { | |
| 198 | + elementHandler().then(_ref2 => { | |
| 199 | + let { | |
| 200 | + default: dynamicHandler | |
| 201 | + } = _ref2; | |
| 187 | 202 | res(dynamicHandler); |
| 188 | 203 | }); |
| 189 | 204 | }); |
| 190 | 205 | }; |
| @@ -239,11 +254,8 @@ | ||
| 239 | 254 | Object.defineProperty(exports, "__esModule", ({ |
| 240 | 255 | value: true |
| 241 | 256 | })); |
| 242 | 257 | exports["default"] = void 0; |
| 243 | -__webpack_require__(/*! core-js/modules/esnext.iterator.constructor.js */ "../node_modules/core-js/modules/esnext.iterator.constructor.js"); | |
| 244 | -__webpack_require__(/*! core-js/modules/esnext.iterator.find.js */ "../node_modules/core-js/modules/esnext.iterator.find.js"); | |
| 245 | -__webpack_require__(/*! core-js/modules/esnext.iterator.for-each.js */ "../node_modules/core-js/modules/esnext.iterator.for-each.js"); | |
| 246 | 258 | __webpack_require__(/*! ../public-path */ "../assets/dev/js/public-path.js"); |
| 247 | 259 | var _documentsManager = _interopRequireDefault(__webpack_require__(/*! ./documents-manager */ "../assets/dev/js/frontend/documents-manager.js")); |
| 248 | 260 | var _storage = _interopRequireDefault(__webpack_require__(/*! elementor-common/utils/storage */ "../core/common/assets/js/utils/storage.js")); |
| 249 | 261 | var _environment = _interopRequireDefault(__webpack_require__(/*! elementor-common/utils/environment */ "../core/common/assets/js/utils/environment.js")); |
| @@ -257,17 +269,17 @@ | ||
| 257 | 269 | var _breakpoints = _interopRequireDefault(__webpack_require__(/*! elementor-utils/breakpoints */ "../assets/dev/js/utils/breakpoints.js")); |
| 258 | 270 | var _events = _interopRequireDefault(__webpack_require__(/*! elementor-utils/events */ "../assets/dev/js/utils/events.js")); |
| 259 | 271 | var _frontend = _interopRequireDefault(__webpack_require__(/*! elementor/modules/shapes/assets/js/frontend/frontend */ "../modules/shapes/assets/js/frontend/frontend.js")); |
| 260 | 272 | var _controls = _interopRequireDefault(__webpack_require__(/*! ./utils/controls */ "../assets/dev/js/frontend/utils/controls.js")); |
| 261 | -var _anchorScrollMargin = _interopRequireDefault(__webpack_require__(/*! ./utils/anchor-scroll-margin */ "../assets/dev/js/frontend/utils/anchor-scroll-margin.js")); | |
| 262 | 273 | var _utils = __webpack_require__(/*! elementor-frontend/utils/utils */ "../assets/dev/js/frontend/utils/utils.js"); |
| 263 | 274 | /* global elementorFrontendConfig */ |
| 264 | 275 | |
| 265 | 276 | const EventManager = __webpack_require__(/*! elementor-utils/hooks */ "../assets/dev/js/utils/hooks.js"), |
| 266 | - ElementsHandler = __webpack_require__(/*! elementor-frontend/elements-handlers-manager */ "../assets/dev/js/frontend/elements-handlers-manager.js"); | |
| 277 | + ElementsHandler = __webpack_require__(/*! elementor-frontend/elements-handlers-manager */ "../assets/dev/js/frontend/elements-handlers-manager.js"), | |
| 278 | + AnchorsModule = __webpack_require__(/*! elementor-frontend/utils/anchors */ "../assets/dev/js/frontend/utils/anchors.js"); | |
| 267 | 279 | class Frontend extends elementorModules.ViewModule { |
| 268 | - constructor(...args) { | |
| 269 | - super(...args); | |
| 280 | + constructor() { | |
| 281 | + super(...arguments); | |
| 270 | 282 | this.config = elementorFrontendConfig; |
| 271 | 283 | this.config.legacyMode = { |
| 272 | 284 | /** |
| 273 | 285 | * @deprecated since 3.1.0 |
| @@ -411,8 +423,9 @@ | ||
| 411 | 423 | this.utils = { |
| 412 | 424 | youtube: new _youtubeLoader.default(), |
| 413 | 425 | vimeo: new _vimeoLoader.default(), |
| 414 | 426 | baseVideoLoader: new _baseLoader.default(), |
| 427 | + anchors: new AnchorsModule(), | |
| 415 | 428 | get lightbox() { |
| 416 | 429 | return _lightboxManager.default.getLightbox(); |
| 417 | 430 | }, |
| 418 | 431 | urlActions: new _urlActions.default(), |
| @@ -420,10 +433,9 @@ | ||
| 420 | 433 | environment: _environment.default, |
| 421 | 434 | assetsLoader: new _assetsLoader.default(), |
| 422 | 435 | escapeHTML: _utils.escapeHTML, |
| 423 | 436 | events: _events.default, |
| 424 | - controls: new _controls.default(), | |
| 425 | - anchor_scroll_margin: new _anchorScrollMargin.default() | |
| 437 | + controls: new _controls.default() | |
| 426 | 438 | }; |
| 427 | 439 | |
| 428 | 440 | // TODO: BC since 2.4.0 |
| 429 | 441 | this.modules = { |
| @@ -513,15 +525,17 @@ | ||
| 513 | 525 | elementorFrontend.trigger('elementor/modules/init:before'); |
| 514 | 526 | |
| 515 | 527 | // TODO: Use this instead. |
| 516 | 528 | elementorFrontend.trigger('elementor/modules/init/before'); |
| 517 | - Object.entries(handlers).forEach(([moduleName, ModuleClass]) => { | |
| 529 | + Object.entries(handlers).forEach(_ref => { | |
| 530 | + let [moduleName, ModuleClass] = _ref; | |
| 518 | 531 | this.modulesHandlers[moduleName] = new ModuleClass(); |
| 519 | 532 | }); |
| 520 | 533 | } |
| 521 | 534 | populateActiveBreakpointsConfig() { |
| 522 | 535 | this.config.responsive.activeBreakpoints = {}; |
| 523 | - Object.entries(this.config.responsive.breakpoints).forEach(([breakpointKey, breakpointData]) => { | |
| 536 | + Object.entries(this.config.responsive.breakpoints).forEach(_ref2 => { | |
| 537 | + let [breakpointKey, breakpointData] = _ref2; | |
| 524 | 538 | if (breakpointData.is_enabled) { |
| 525 | 539 | this.config.responsive.activeBreakpoints[breakpointKey] = breakpointData; |
| 526 | 540 | } |
| 527 | 541 | }); |
| @@ -558,46 +572,489 @@ | ||
| 558 | 572 | } |
| 559 | 573 | |
| 560 | 574 | /***/ }), |
| 561 | 575 | |
| 562 | -/***/ "../assets/dev/js/frontend/handlers/column.js": | |
| 563 | -/*!****************************************************!*\ | |
| 564 | - !*** ../assets/dev/js/frontend/handlers/column.js ***! | |
| 565 | - \****************************************************/ | |
| 576 | +/***/ "../assets/dev/js/frontend/handlers/background-slideshow.js": | |
| 577 | +/*!******************************************************************!*\ | |
| 578 | + !*** ../assets/dev/js/frontend/handlers/background-slideshow.js ***! | |
| 579 | + \******************************************************************/ | |
| 580 | +/***/ ((__unused_webpack_module, exports) => { | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | +Object.defineProperty(exports, "__esModule", ({ | |
| 585 | + value: true | |
| 586 | +})); | |
| 587 | +exports["default"] = void 0; | |
| 588 | +class BackgroundSlideshow extends elementorModules.frontend.handlers.SwiperBase { | |
| 589 | + getDefaultSettings() { | |
| 590 | + return { | |
| 591 | + classes: { | |
| 592 | + swiperContainer: `elementor-background-slideshow ${elementorFrontend.config.swiperClass}`, | |
| 593 | + swiperWrapper: 'swiper-wrapper', | |
| 594 | + swiperSlide: 'elementor-background-slideshow__slide swiper-slide', | |
| 595 | + swiperPreloader: 'swiper-lazy-preloader', | |
| 596 | + slideBackground: 'elementor-background-slideshow__slide__image', | |
| 597 | + kenBurns: 'elementor-ken-burns', | |
| 598 | + kenBurnsActive: 'elementor-ken-burns--active', | |
| 599 | + kenBurnsIn: 'elementor-ken-burns--in', | |
| 600 | + kenBurnsOut: 'elementor-ken-burns--out' | |
| 601 | + } | |
| 602 | + }; | |
| 603 | + } | |
| 604 | + getSwiperOptions() { | |
| 605 | + const elementSettings = this.getElementSettings(), | |
| 606 | + swiperOptions = { | |
| 607 | + grabCursor: false, | |
| 608 | + slidesPerView: 1, | |
| 609 | + slidesPerGroup: 1, | |
| 610 | + loop: 'yes' === elementSettings.background_slideshow_loop, | |
| 611 | + speed: elementSettings.background_slideshow_transition_duration, | |
| 612 | + autoplay: { | |
| 613 | + delay: elementSettings.background_slideshow_slide_duration, | |
| 614 | + stopOnLastSlide: !elementSettings.background_slideshow_loop | |
| 615 | + }, | |
| 616 | + handleElementorBreakpoints: true, | |
| 617 | + on: { | |
| 618 | + slideChange: () => { | |
| 619 | + if (elementSettings.background_slideshow_ken_burns) { | |
| 620 | + this.handleKenBurns(); | |
| 621 | + } | |
| 622 | + } | |
| 623 | + } | |
| 624 | + }; | |
| 625 | + if ('yes' === elementSettings.background_slideshow_loop) { | |
| 626 | + swiperOptions.loopedSlides = this.getSlidesCount(); | |
| 627 | + } | |
| 628 | + switch (elementSettings.background_slideshow_slide_transition) { | |
| 629 | + case 'fade': | |
| 630 | + swiperOptions.effect = 'fade'; | |
| 631 | + swiperOptions.fadeEffect = { | |
| 632 | + crossFade: true | |
| 633 | + }; | |
| 634 | + break; | |
| 635 | + case 'slide_down': | |
| 636 | + swiperOptions.autoplay.reverseDirection = true; | |
| 637 | + swiperOptions.direction = 'vertical'; | |
| 638 | + break; | |
| 639 | + case 'slide_up': | |
| 640 | + swiperOptions.direction = 'vertical'; | |
| 641 | + break; | |
| 642 | + } | |
| 643 | + if ('yes' === elementSettings.background_slideshow_lazyload) { | |
| 644 | + swiperOptions.lazy = { | |
| 645 | + loadPrevNext: true, | |
| 646 | + loadPrevNextAmount: 1 | |
| 647 | + }; | |
| 648 | + } | |
| 649 | + return swiperOptions; | |
| 650 | + } | |
| 651 | + buildSwiperElements() { | |
| 652 | + const classes = this.getSettings('classes'), | |
| 653 | + elementSettings = this.getElementSettings(), | |
| 654 | + direction = 'slide_left' === elementSettings.background_slideshow_slide_transition ? 'ltr' : 'rtl', | |
| 655 | + $container = jQuery('<div>', { | |
| 656 | + class: classes.swiperContainer, | |
| 657 | + dir: direction | |
| 658 | + }), | |
| 659 | + $wrapper = jQuery('<div>', { | |
| 660 | + class: classes.swiperWrapper | |
| 661 | + }), | |
| 662 | + kenBurnsActive = elementSettings.background_slideshow_ken_burns, | |
| 663 | + lazyload = 'yes' === elementSettings.background_slideshow_lazyload; | |
| 664 | + let slideInnerClass = classes.slideBackground; | |
| 665 | + if (kenBurnsActive) { | |
| 666 | + slideInnerClass += ' ' + classes.kenBurns; | |
| 667 | + const kenBurnsDirection = 'in' === elementSettings.background_slideshow_ken_burns_zoom_direction ? 'kenBurnsIn' : 'kenBurnsOut'; | |
| 668 | + slideInnerClass += ' ' + classes[kenBurnsDirection]; | |
| 669 | + } | |
| 670 | + if (lazyload) { | |
| 671 | + slideInnerClass += ' swiper-lazy'; | |
| 672 | + } | |
| 673 | + this.elements.$slides = jQuery(); | |
| 674 | + elementSettings.background_slideshow_gallery.forEach(slide => { | |
| 675 | + const $slide = jQuery('<div>', { | |
| 676 | + class: classes.swiperSlide | |
| 677 | + }); | |
| 678 | + let $slidebg; | |
| 679 | + if (lazyload) { | |
| 680 | + const $slideloader = jQuery('<div>', { | |
| 681 | + class: classes.swiperPreloader | |
| 682 | + }); | |
| 683 | + $slidebg = jQuery('<div>', { | |
| 684 | + class: slideInnerClass, | |
| 685 | + 'data-background': slide.url | |
| 686 | + }); | |
| 687 | + $slidebg.append($slideloader); | |
| 688 | + } else { | |
| 689 | + $slidebg = jQuery('<div>', { | |
| 690 | + class: slideInnerClass, | |
| 691 | + style: 'background-image: url("' + slide.url + '");' | |
| 692 | + }); | |
| 693 | + } | |
| 694 | + $slide.append($slidebg); | |
| 695 | + $wrapper.append($slide); | |
| 696 | + this.elements.$slides = this.elements.$slides.add($slide); | |
| 697 | + }); | |
| 698 | + $container.append($wrapper); | |
| 699 | + this.$element.prepend($container); | |
| 700 | + this.elements.$backgroundSlideShowContainer = $container; | |
| 701 | + } | |
| 702 | + async initSlider() { | |
| 703 | + if (1 >= this.getSlidesCount()) { | |
| 704 | + return; | |
| 705 | + } | |
| 706 | + const elementSettings = this.getElementSettings(); | |
| 707 | + const Swiper = elementorFrontend.utils.swiper; | |
| 708 | + this.swiper = await new Swiper(this.elements.$backgroundSlideShowContainer, this.getSwiperOptions()); | |
| 709 | + | |
| 710 | + // Expose the swiper instance in the frontend | |
| 711 | + this.elements.$backgroundSlideShowContainer.data('swiper', this.swiper); | |
| 712 | + if (elementSettings.background_slideshow_ken_burns) { | |
| 713 | + this.handleKenBurns(); | |
| 714 | + } | |
| 715 | + } | |
| 716 | + activate() { | |
| 717 | + this.buildSwiperElements(); | |
| 718 | + this.initSlider(); | |
| 719 | + } | |
| 720 | + deactivate() { | |
| 721 | + if (this.swiper) { | |
| 722 | + this.swiper.destroy(); | |
| 723 | + this.elements.$backgroundSlideShowContainer.remove(); | |
| 724 | + } | |
| 725 | + } | |
| 726 | + run() { | |
| 727 | + if ('slideshow' === this.getElementSettings('background_background')) { | |
| 728 | + this.activate(); | |
| 729 | + } else { | |
| 730 | + this.deactivate(); | |
| 731 | + } | |
| 732 | + } | |
| 733 | + onInit() { | |
| 734 | + super.onInit(); | |
| 735 | + if (this.getElementSettings('background_slideshow_gallery')) { | |
| 736 | + this.run(); | |
| 737 | + } | |
| 738 | + } | |
| 739 | + onDestroy() { | |
| 740 | + super.onDestroy(); | |
| 741 | + this.deactivate(); | |
| 742 | + } | |
| 743 | + onElementChange(propertyName) { | |
| 744 | + if ('background_background' === propertyName) { | |
| 745 | + this.run(); | |
| 746 | + } | |
| 747 | + } | |
| 748 | +} | |
| 749 | +exports["default"] = BackgroundSlideshow; | |
| 750 | + | |
| 751 | +/***/ }), | |
| 752 | + | |
| 753 | +/***/ "../assets/dev/js/frontend/handlers/background-video.js": | |
| 754 | +/*!**************************************************************!*\ | |
| 755 | + !*** ../assets/dev/js/frontend/handlers/background-video.js ***! | |
| 756 | + \**************************************************************/ | |
| 757 | +/***/ ((__unused_webpack_module, exports) => { | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | +Object.defineProperty(exports, "__esModule", ({ | |
| 762 | + value: true | |
| 763 | +})); | |
| 764 | +exports["default"] = void 0; | |
| 765 | +class BackgroundVideo extends elementorModules.frontend.handlers.Base { | |
| 766 | + getDefaultSettings() { | |
| 767 | + return { | |
| 768 | + selectors: { | |
| 769 | + backgroundVideoContainer: '.elementor-background-video-container', | |
| 770 | + backgroundVideoEmbed: '.elementor-background-video-embed', | |
| 771 | + backgroundVideoHosted: '.elementor-background-video-hosted' | |
| 772 | + } | |
| 773 | + }; | |
| 774 | + } | |
| 775 | + getDefaultElements() { | |
| 776 | + const selectors = this.getSettings('selectors'), | |
| 777 | + elements = { | |
| 778 | + $backgroundVideoContainer: this.$element.find(selectors.backgroundVideoContainer) | |
| 779 | + }; | |
| 780 | + elements.$backgroundVideoEmbed = elements.$backgroundVideoContainer.children(selectors.backgroundVideoEmbed); | |
| 781 | + elements.$backgroundVideoHosted = elements.$backgroundVideoContainer.children(selectors.backgroundVideoHosted); | |
| 782 | + return elements; | |
| 783 | + } | |
| 784 | + calcVideosSize($video) { | |
| 785 | + let aspectRatioSetting = '16:9'; | |
| 786 | + if ('vimeo' === this.videoType) { | |
| 787 | + aspectRatioSetting = $video[0].width + ':' + $video[0].height; | |
| 788 | + } | |
| 789 | + const containerWidth = this.elements.$backgroundVideoContainer.outerWidth(), | |
| 790 | + containerHeight = this.elements.$backgroundVideoContainer.outerHeight(), | |
| 791 | + aspectRatioArray = aspectRatioSetting.split(':'), | |
| 792 | + aspectRatio = aspectRatioArray[0] / aspectRatioArray[1], | |
| 793 | + ratioWidth = containerWidth / aspectRatio, | |
| 794 | + ratioHeight = containerHeight * aspectRatio, | |
| 795 | + isWidthFixed = containerWidth / containerHeight > aspectRatio; | |
| 796 | + return { | |
| 797 | + width: isWidthFixed ? containerWidth : ratioHeight, | |
| 798 | + height: isWidthFixed ? ratioWidth : containerHeight | |
| 799 | + }; | |
| 800 | + } | |
| 801 | + changeVideoSize() { | |
| 802 | + if (!('hosted' === this.videoType) && !this.player) { | |
| 803 | + return; | |
| 804 | + } | |
| 805 | + let $video; | |
| 806 | + if ('youtube' === this.videoType) { | |
| 807 | + $video = jQuery(this.player.getIframe()); | |
| 808 | + } else if ('vimeo' === this.videoType) { | |
| 809 | + $video = jQuery(this.player.element); | |
| 810 | + } else if ('hosted' === this.videoType) { | |
| 811 | + $video = this.elements.$backgroundVideoHosted; | |
| 812 | + } | |
| 813 | + if (!$video) { | |
| 814 | + return; | |
| 815 | + } | |
| 816 | + const size = this.calcVideosSize($video); | |
| 817 | + $video.width(size.width).height(size.height); | |
| 818 | + } | |
| 819 | + startVideoLoop(firstTime) { | |
| 820 | + // If the section has been removed | |
| 821 | + if (!this.player.getIframe().contentWindow) { | |
| 822 | + return; | |
| 823 | + } | |
| 824 | + const elementSettings = this.getElementSettings(), | |
| 825 | + startPoint = elementSettings.background_video_start || 0, | |
| 826 | + endPoint = elementSettings.background_video_end; | |
| 827 | + if (elementSettings.background_play_once && !firstTime) { | |
| 828 | + this.player.stopVideo(); | |
| 829 | + return; | |
| 830 | + } | |
| 831 | + this.player.seekTo(startPoint); | |
| 832 | + if (endPoint) { | |
| 833 | + const durationToEnd = endPoint - startPoint + 1; | |
| 834 | + setTimeout(() => { | |
| 835 | + this.startVideoLoop(false); | |
| 836 | + }, durationToEnd * 1000); | |
| 837 | + } | |
| 838 | + } | |
| 839 | + prepareVimeoVideo(Vimeo, videoLink) { | |
| 840 | + const elementSettings = this.getElementSettings(), | |
| 841 | + videoSize = this.elements.$backgroundVideoContainer.outerWidth(), | |
| 842 | + vimeoOptions = { | |
| 843 | + url: videoLink, | |
| 844 | + width: videoSize.width, | |
| 845 | + autoplay: true, | |
| 846 | + loop: !elementSettings.background_play_once, | |
| 847 | + transparent: true, | |
| 848 | + background: true, | |
| 849 | + muted: true | |
| 850 | + }; | |
| 851 | + if (elementSettings.background_privacy_mode) { | |
| 852 | + vimeoOptions.dnt = true; | |
| 853 | + } | |
| 854 | + this.player = new Vimeo.Player(this.elements.$backgroundVideoContainer, vimeoOptions); | |
| 855 | + | |
| 856 | + // Handle user-defined start/end times | |
| 857 | + this.handleVimeoStartEndTimes(elementSettings); | |
| 858 | + this.player.ready().then(() => { | |
| 859 | + jQuery(this.player.element).addClass('elementor-background-video-embed'); | |
| 860 | + this.changeVideoSize(); | |
| 861 | + }); | |
| 862 | + } | |
| 863 | + handleVimeoStartEndTimes(elementSettings) { | |
| 864 | + // If a start time is defined, set the start time | |
| 865 | + if (elementSettings.background_video_start) { | |
| 866 | + this.player.on('play', data => { | |
| 867 | + if (0 === data.seconds) { | |
| 868 | + this.player.setCurrentTime(elementSettings.background_video_start); | |
| 869 | + } | |
| 870 | + }); | |
| 871 | + } | |
| 872 | + this.player.on('timeupdate', data => { | |
| 873 | + // If an end time is defined, handle ending the video | |
| 874 | + if (elementSettings.background_video_end && elementSettings.background_video_end < data.seconds) { | |
| 875 | + if (elementSettings.background_play_once) { | |
| 876 | + // Stop at user-defined end time if not loop | |
| 877 | + this.player.pause(); | |
| 878 | + } else { | |
| 879 | + // Go to start time if loop | |
| 880 | + this.player.setCurrentTime(elementSettings.background_video_start); | |
| 881 | + } | |
| 882 | + } | |
| 883 | + | |
| 884 | + // If start time is defined but an end time is not, go to user-defined start time at video end. | |
| 885 | + // Vimeo JS API has an 'ended' event, but it never fires when infinite loop is defined, so we | |
| 886 | + // get the video duration (returns a promise) then use duration-0.5s as end time | |
| 887 | + this.player.getDuration().then(duration => { | |
| 888 | + if (elementSettings.background_video_start && !elementSettings.background_video_end && data.seconds > duration - 0.5) { | |
| 889 | + this.player.setCurrentTime(elementSettings.background_video_start); | |
| 890 | + } | |
| 891 | + }); | |
| 892 | + }); | |
| 893 | + } | |
| 894 | + prepareYTVideo(YT, videoID) { | |
| 895 | + const $backgroundVideoContainer = this.elements.$backgroundVideoContainer, | |
| 896 | + elementSettings = this.getElementSettings(); | |
| 897 | + let startStateCode = YT.PlayerState.PLAYING; | |
| 898 | + | |
| 899 | + // Since version 67, Chrome doesn't fire the `PLAYING` state at start time | |
| 900 | + if (window.chrome) { | |
| 901 | + startStateCode = YT.PlayerState.UNSTARTED; | |
| 902 | + } | |
| 903 | + const playerOptions = { | |
| 904 | + videoId: videoID, | |
| 905 | + events: { | |
| 906 | + onReady: () => { | |
| 907 | + this.player.mute(); | |
| 908 | + this.changeVideoSize(); | |
| 909 | + this.startVideoLoop(true); | |
| 910 | + this.player.playVideo(); | |
| 911 | + }, | |
| 912 | + onStateChange: event => { | |
| 913 | + switch (event.data) { | |
| 914 | + case startStateCode: | |
| 915 | + $backgroundVideoContainer.removeClass('elementor-invisible elementor-loading'); | |
| 916 | + break; | |
| 917 | + case YT.PlayerState.ENDED: | |
| 918 | + if ('function' === typeof this.player.seekTo) { | |
| 919 | + this.player.seekTo(elementSettings.background_video_start || 0); | |
| 920 | + } | |
| 921 | + if (elementSettings.background_play_once) { | |
| 922 | + this.player.destroy(); | |
| 923 | + } | |
| 924 | + } | |
| 925 | + } | |
| 926 | + }, | |
| 927 | + playerVars: { | |
| 928 | + controls: 0, | |
| 929 | + rel: 0, | |
| 930 | + playsinline: 1 | |
| 931 | + } | |
| 932 | + }; | |
| 933 | + | |
| 934 | + // To handle CORS issues, when the default host is changed, the origin parameter has to be set. | |
| 935 | + if (elementSettings.background_privacy_mode) { | |
| 936 | + playerOptions.host = 'https://www.youtube-nocookie.com'; | |
| 937 | + playerOptions.origin = window.location.hostname; | |
| 938 | + } | |
| 939 | + $backgroundVideoContainer.addClass('elementor-loading elementor-invisible'); | |
| 940 | + this.player = new YT.Player(this.elements.$backgroundVideoEmbed[0], playerOptions); | |
| 941 | + } | |
| 942 | + activate() { | |
| 943 | + let videoLink = this.getElementSettings('background_video_link'), | |
| 944 | + videoID; | |
| 945 | + const playOnce = this.getElementSettings('background_play_once'); | |
| 946 | + if (-1 !== videoLink.indexOf('vimeo.com')) { | |
| 947 | + this.videoType = 'vimeo'; | |
| 948 | + this.apiProvider = elementorFrontend.utils.vimeo; | |
| 949 | + } else if (videoLink.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com)/)) { | |
| 950 | + this.videoType = 'youtube'; | |
| 951 | + this.apiProvider = elementorFrontend.utils.youtube; | |
| 952 | + } | |
| 953 | + if (this.apiProvider) { | |
| 954 | + videoID = this.apiProvider.getVideoIDFromURL(videoLink); | |
| 955 | + this.apiProvider.onApiReady(apiObject => { | |
| 956 | + if ('youtube' === this.videoType) { | |
| 957 | + this.prepareYTVideo(apiObject, videoID); | |
| 958 | + } | |
| 959 | + if ('vimeo' === this.videoType) { | |
| 960 | + this.prepareVimeoVideo(apiObject, videoLink); | |
| 961 | + } | |
| 962 | + }); | |
| 963 | + } else { | |
| 964 | + this.videoType = 'hosted'; | |
| 965 | + const startTime = this.getElementSettings('background_video_start'), | |
| 966 | + endTime = this.getElementSettings('background_video_end'); | |
| 967 | + if (startTime || endTime) { | |
| 968 | + videoLink += '#t=' + (startTime || 0) + (endTime ? ',' + endTime : ''); | |
| 969 | + } | |
| 970 | + this.elements.$backgroundVideoHosted.attr('src', videoLink).one('canplay', this.changeVideoSize.bind(this)); | |
| 971 | + if (playOnce) { | |
| 972 | + this.elements.$backgroundVideoHosted.on('ended', () => { | |
| 973 | + this.elements.$backgroundVideoHosted.hide(); | |
| 974 | + }); | |
| 975 | + } | |
| 976 | + } | |
| 977 | + elementorFrontend.elements.$window.on('resize elementor/bg-video/recalc', this.changeVideoSize); | |
| 978 | + } | |
| 979 | + deactivate() { | |
| 980 | + if ('youtube' === this.videoType && this.player.getIframe() || 'vimeo' === this.videoType) { | |
| 981 | + this.player.destroy(); | |
| 982 | + } else { | |
| 983 | + this.elements.$backgroundVideoHosted.removeAttr('src').off('ended'); | |
| 984 | + } | |
| 985 | + elementorFrontend.elements.$window.off('resize', this.changeVideoSize); | |
| 986 | + } | |
| 987 | + run() { | |
| 988 | + const elementSettings = this.getElementSettings(); | |
| 989 | + if (!elementSettings.background_play_on_mobile && 'mobile' === elementorFrontend.getCurrentDeviceMode()) { | |
| 990 | + return; | |
| 991 | + } | |
| 992 | + if ('video' === elementSettings.background_background && elementSettings.background_video_link) { | |
| 993 | + this.activate(); | |
| 994 | + } else { | |
| 995 | + this.deactivate(); | |
| 996 | + } | |
| 997 | + } | |
| 998 | + onInit() { | |
| 999 | + super.onInit(...arguments); | |
| 1000 | + this.changeVideoSize = this.changeVideoSize.bind(this); | |
| 1001 | + this.run(); | |
| 1002 | + } | |
| 1003 | + onElementChange(propertyName) { | |
| 1004 | + if ('background_background' === propertyName) { | |
| 1005 | + this.run(); | |
| 1006 | + } | |
| 1007 | + } | |
| 1008 | +} | |
| 1009 | +exports["default"] = BackgroundVideo; | |
| 1010 | + | |
| 1011 | +/***/ }), | |
| 1012 | + | |
| 1013 | +/***/ "../assets/dev/js/frontend/handlers/background.js": | |
| 1014 | +/*!********************************************************!*\ | |
| 1015 | + !*** ../assets/dev/js/frontend/handlers/background.js ***! | |
| 1016 | + \********************************************************/ | |
| 566 | 1017 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 567 | 1018 | |
| 568 | 1019 | |
| 569 | 1020 | |
| 1021 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 570 | 1022 | Object.defineProperty(exports, "__esModule", ({ |
| 571 | 1023 | value: true |
| 572 | 1024 | })); |
| 573 | 1025 | exports["default"] = void 0; |
| 574 | -var _default = exports["default"] = [() => __webpack_require__.e(/*! import() | shared-frontend-handlers */ "shared-frontend-handlers").then(__webpack_require__.bind(__webpack_require__, /*! ./background-slideshow */ "../assets/dev/js/frontend/handlers/background-slideshow.js"))]; | |
| 1026 | +var _backgroundSlideshow = _interopRequireDefault(__webpack_require__(/*! ./background-slideshow */ "../assets/dev/js/frontend/handlers/background-slideshow.js")); | |
| 1027 | +var _backgroundVideo = _interopRequireDefault(__webpack_require__(/*! ./background-video */ "../assets/dev/js/frontend/handlers/background-video.js")); | |
| 1028 | +var _default = [_backgroundSlideshow.default, _backgroundVideo.default]; | |
| 1029 | +exports["default"] = _default; | |
| 575 | 1030 | |
| 576 | 1031 | /***/ }), |
| 577 | 1032 | |
| 578 | -/***/ "../assets/dev/js/frontend/handlers/container/container.js": | |
| 579 | -/*!*****************************************************************!*\ | |
| 580 | - !*** ../assets/dev/js/frontend/handlers/container/container.js ***! | |
| 581 | - \*****************************************************************/ | |
| 1033 | +/***/ "../assets/dev/js/frontend/handlers/column.js": | |
| 1034 | +/*!****************************************************!*\ | |
| 1035 | + !*** ../assets/dev/js/frontend/handlers/column.js ***! | |
| 1036 | + \****************************************************/ | |
| 582 | 1037 | /***/ ((__unused_webpack_module, exports, __webpack_require__) => { |
| 583 | 1038 | |
| 584 | 1039 | |
| 585 | 1040 | |
| 1041 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 586 | 1042 | Object.defineProperty(exports, "__esModule", ({ |
| 587 | 1043 | value: true |
| 588 | 1044 | })); |
| 589 | 1045 | exports["default"] = void 0; |
| 590 | -var _createEditorHandler = __webpack_require__(/*! ../create-editor-handler */ "../assets/dev/js/frontend/handlers/create-editor-handler.js"); | |
| 591 | -var _default = exports["default"] = [() => __webpack_require__.e(/*! import() | shared-frontend-handlers */ "shared-frontend-handlers").then(__webpack_require__.bind(__webpack_require__, /*! ../background-slideshow */ "../assets/dev/js/frontend/handlers/background-slideshow.js")), () => __webpack_require__.e(/*! import() | shared-frontend-handlers */ "shared-frontend-handlers").then(__webpack_require__.bind(__webpack_require__, /*! ../background-video */ "../assets/dev/js/frontend/handlers/background-video.js")), (0, _createEditorHandler.createEditorHandler)(() => __webpack_require__.e(/*! import() | shared-editor-handlers */ "shared-editor-handlers").then(__webpack_require__.bind(__webpack_require__, /*! ../handles-position */ "../assets/dev/js/frontend/handlers/handles-position.js"))), (0, _createEditorHandler.createEditorHandler)(() => __webpack_require__.e(/*! import() | container-editor-handlers */ "container-editor-handlers").then(__webpack_require__.bind(__webpack_require__, /*! ./shapes */ "../assets/dev/js/frontend/handlers/container/shapes.js"))), (0, _createEditorHandler.createEditorHandler)(() => __webpack_require__.e(/*! import() | container-editor-handlers */ "container-editor-handlers").then(__webpack_require__.bind(__webpack_require__, /*! ./grid-container */ "../assets/dev/js/frontend/handlers/container/grid-container.js")))]; | |
| 1046 | +var _backgroundSlideshow = _interopRequireDefault(__webpack_require__(/*! ./background-slideshow */ "../assets/dev/js/frontend/handlers/background-slideshow.js")); | |
| 1047 | +var _default = [_backgroundSlideshow.default]; | |
| 1048 | +exports["default"] = _default; | |
| 592 | 1049 | |
| 593 | 1050 | /***/ }), |
| 594 | 1051 | |
| 595 | -/***/ "../assets/dev/js/frontend/handlers/create-editor-handler.js": | |
| 596 | -/*!*******************************************************************!*\ | |
| 597 | - !*** ../assets/dev/js/frontend/handlers/create-editor-handler.js ***! | |
| 598 | - \*******************************************************************/ | |
| 599 | -/***/ ((__unused_webpack_module, exports) => { | |
| 1052 | +/***/ "../assets/dev/js/frontend/handlers/container/container.js": | |
| 1053 | +/*!*****************************************************************!*\ | |
| 1054 | + !*** ../assets/dev/js/frontend/handlers/container/container.js ***! | |
| 1055 | + \*****************************************************************/ | |
| 1056 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 600 | 1057 | |
| 601 | 1058 | |
| 602 | 1059 | |
| 603 | 1060 | Object.defineProperty(exports, "__esModule", ({ |
| @@ -602,18 +1059,11 @@ | ||
| 602 | 1059 | |
| 603 | 1060 | Object.defineProperty(exports, "__esModule", ({ |
| 604 | 1061 | value: true |
| 605 | 1062 | })); |
| 606 | -exports.createEditorHandler = createEditorHandler; | |
| 607 | -function createEditorHandler(importer) { | |
| 608 | - return () => { | |
| 609 | - return new Promise(resolve => { | |
| 610 | - if (elementorFrontend.isEditMode()) { | |
| 611 | - importer().then(resolve); | |
| 612 | - } | |
| 613 | - }); | |
| 614 | - }; | |
| 615 | -} | |
| 1063 | +exports["default"] = void 0; | |
| 1064 | +var _default = [() => __webpack_require__.e(/*! import() | container */ "container").then(__webpack_require__.bind(__webpack_require__, /*! ./handles-position */ "../assets/dev/js/frontend/handlers/container/handles-position.js")), () => __webpack_require__.e(/*! import() | container */ "container").then(__webpack_require__.bind(__webpack_require__, /*! ./shapes */ "../assets/dev/js/frontend/handlers/container/shapes.js")), () => __webpack_require__.e(/*! import() | container */ "container").then(__webpack_require__.bind(__webpack_require__, /*! ./grid-container */ "../assets/dev/js/frontend/handlers/container/grid-container.js"))]; | |
| 1065 | +exports["default"] = _default; | |
| 616 | 1066 | |
| 617 | 1067 | /***/ }), |
| 618 | 1068 | |
| 619 | 1069 | /***/ "../assets/dev/js/frontend/handlers/global.js": |
| @@ -652,10 +1102,10 @@ | ||
| 652 | 1102 | } |
| 653 | 1103 | getAnimation() { |
| 654 | 1104 | return this.getCurrentDeviceSetting('animation') || this.getCurrentDeviceSetting('_animation'); |
| 655 | 1105 | } |
| 656 | - onInit(...args) { | |
| 657 | - super.onInit(...args); | |
| 1106 | + onInit() { | |
| 1107 | + super.onInit(...arguments); | |
| 658 | 1108 | if (this.getAnimation()) { |
| 659 | 1109 | const observer = elementorModules.utils.Scroll.scrollObserver({ |
| 660 | 1110 | callback: event => { |
| 661 | 1111 | if (event.isInViewport) { |
| @@ -681,13 +1131,13 @@ | ||
| 681 | 1131 | exports["default"] = _default; |
| 682 | 1132 | |
| 683 | 1133 | /***/ }), |
| 684 | 1134 | |
| 685 | -/***/ "../assets/dev/js/frontend/handlers/section/section.js": | |
| 686 | -/*!*************************************************************!*\ | |
| 687 | - !*** ../assets/dev/js/frontend/handlers/section/section.js ***! | |
| 688 | - \*************************************************************/ | |
| 689 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1135 | +/***/ "../assets/dev/js/frontend/handlers/section/handles-position.js": | |
| 1136 | +/*!**********************************************************************!*\ | |
| 1137 | + !*** ../assets/dev/js/frontend/handlers/section/handles-position.js ***! | |
| 1138 | + \**********************************************************************/ | |
| 1139 | +/***/ ((__unused_webpack_module, exports) => { | |
| 690 | 1140 | |
| 691 | 1141 | |
| 692 | 1142 | |
| 693 | 1143 | Object.defineProperty(exports, "__esModule", ({ |
| @@ -693,20 +1143,69 @@ | ||
| 693 | 1143 | Object.defineProperty(exports, "__esModule", ({ |
| 694 | 1144 | value: true |
| 695 | 1145 | })); |
| 696 | 1146 | exports["default"] = void 0; |
| 697 | -var _createEditorHandler = __webpack_require__(/*! ../create-editor-handler */ "../assets/dev/js/frontend/handlers/create-editor-handler.js"); | |
| 698 | -var _default = exports["default"] = [() => __webpack_require__.e(/*! import() | section-frontend-handlers */ "section-frontend-handlers").then(__webpack_require__.bind(__webpack_require__, /*! ./stretched-section */ "../assets/dev/js/frontend/handlers/section/stretched-section.js")), | |
| 699 | -// Must run before BackgroundSlideshow to init the slideshow only after the stretch. | |
| 700 | -() => __webpack_require__.e(/*! import() | shared-frontend-handlers */ "shared-frontend-handlers").then(__webpack_require__.bind(__webpack_require__, /*! ../background-slideshow */ "../assets/dev/js/frontend/handlers/background-slideshow.js")), () => __webpack_require__.e(/*! import() | shared-frontend-handlers */ "shared-frontend-handlers").then(__webpack_require__.bind(__webpack_require__, /*! ../background-video */ "../assets/dev/js/frontend/handlers/background-video.js")), (0, _createEditorHandler.createEditorHandler)(() => __webpack_require__.e(/*! import() | shared-editor-handlers */ "shared-editor-handlers").then(__webpack_require__.bind(__webpack_require__, /*! ../handles-position */ "../assets/dev/js/frontend/handlers/handles-position.js"))), (0, _createEditorHandler.createEditorHandler)(() => __webpack_require__.e(/*! import() | section-editor-handlers */ "section-editor-handlers").then(__webpack_require__.bind(__webpack_require__, /*! ./shapes */ "../assets/dev/js/frontend/handlers/section/shapes.js")))]; | |
| 1147 | +class HandlesPosition extends elementorModules.frontend.handlers.Base { | |
| 1148 | + isActive() { | |
| 1149 | + return elementorFrontend.isEditMode(); | |
| 1150 | + } | |
| 1151 | + isFirstSection() { | |
| 1152 | + return this.$element[0] === document.querySelector('.elementor-edit-mode .elementor-top-section'); | |
| 1153 | + } | |
| 1154 | + isOverflowHidden() { | |
| 1155 | + return 'hidden' === this.$element.css('overflow'); | |
| 1156 | + } | |
| 1157 | + getOffset() { | |
| 1158 | + if ('body' === elementor.config.document.container) { | |
| 1159 | + return this.$element.offset().top; | |
| 1160 | + } | |
| 1161 | + const $container = jQuery(elementor.config.document.container); | |
| 1162 | + return this.$element.offset().top - $container.offset().top; | |
| 1163 | + } | |
| 1164 | + setHandlesPosition() { | |
| 1165 | + const document = elementor.documents.getCurrent(); | |
| 1166 | + if (!document || !document.container.isEditable()) { | |
| 1167 | + return; | |
| 1168 | + } | |
| 1169 | + const insideHandleClass = 'elementor-section--handles-inside'; | |
| 1170 | + if (elementor.settings.page.model.attributes.scroll_snap) { | |
| 1171 | + this.$element.addClass(insideHandleClass); | |
| 1172 | + return; | |
| 1173 | + } | |
| 1174 | + const isOverflowHidden = this.isOverflowHidden(); | |
| 1175 | + if (!isOverflowHidden && !this.isFirstSection()) { | |
| 1176 | + return; | |
| 1177 | + } | |
| 1178 | + const offset = isOverflowHidden ? 0 : this.getOffset(); | |
| 1179 | + if (offset < 25) { | |
| 1180 | + this.$element.addClass(insideHandleClass); | |
| 1181 | + const $handlesElement = this.$element.find('> .elementor-element-overlay > .elementor-editor-section-settings'); | |
| 1182 | + if (offset < -5) { | |
| 1183 | + $handlesElement.css('top', -offset); | |
| 1184 | + } else { | |
| 1185 | + $handlesElement.css('top', ''); | |
| 1186 | + } | |
| 1187 | + } else { | |
| 1188 | + this.$element.removeClass(insideHandleClass); | |
| 1189 | + } | |
| 1190 | + } | |
| 1191 | + onInit() { | |
| 1192 | + if (!this.isActive()) { | |
| 1193 | + return; | |
| 1194 | + } | |
| 1195 | + this.setHandlesPosition(); | |
| 1196 | + this.$element.on('mouseenter', this.setHandlesPosition.bind(this)); | |
| 1197 | + } | |
| 1198 | +} | |
| 1199 | +exports["default"] = HandlesPosition; | |
| 701 | 1200 | |
| 702 | 1201 | /***/ }), |
| 703 | 1202 | |
| 704 | -/***/ "../assets/dev/js/frontend/utils/anchor-scroll-margin.js": | |
| 705 | -/*!***************************************************************!*\ | |
| 706 | - !*** ../assets/dev/js/frontend/utils/anchor-scroll-margin.js ***! | |
| 707 | - \***************************************************************/ | |
| 708 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1203 | +/***/ "../assets/dev/js/frontend/handlers/section/shapes.js": | |
| 1204 | +/*!************************************************************!*\ | |
| 1205 | + !*** ../assets/dev/js/frontend/handlers/section/shapes.js ***! | |
| 1206 | + \************************************************************/ | |
| 1207 | +/***/ ((__unused_webpack_module, exports) => { | |
| 709 | 1208 | |
| 710 | 1209 | |
| 711 | 1210 | |
| 712 | 1211 | Object.defineProperty(exports, "__esModule", ({ |
| @@ -712,135 +1211,195 @@ | ||
| 712 | 1211 | Object.defineProperty(exports, "__esModule", ({ |
| 713 | 1212 | value: true |
| 714 | 1213 | })); |
| 715 | 1214 | exports["default"] = void 0; |
| 716 | -__webpack_require__(/*! core-js/modules/es.array.push.js */ "../node_modules/core-js/modules/es.array.push.js"); | |
| 717 | -__webpack_require__(/*! core-js/modules/esnext.iterator.constructor.js */ "../node_modules/core-js/modules/esnext.iterator.constructor.js"); | |
| 718 | -__webpack_require__(/*! core-js/modules/esnext.iterator.filter.js */ "../node_modules/core-js/modules/esnext.iterator.filter.js"); | |
| 719 | -__webpack_require__(/*! core-js/modules/esnext.iterator.for-each.js */ "../node_modules/core-js/modules/esnext.iterator.for-each.js"); | |
| 720 | -class _default extends elementorModules.ViewModule { | |
| 1215 | +class Shapes extends elementorModules.frontend.handlers.Base { | |
| 721 | 1216 | getDefaultSettings() { |
| 722 | 1217 | return { |
| 723 | 1218 | selectors: { |
| 724 | - links: '.elementor-element a[href*="#"]', | |
| 725 | - stickyElements: '.elementor-element.elementor-sticky' | |
| 726 | - } | |
| 1219 | + container: '> .elementor-shape-%s' | |
| 1220 | + }, | |
| 1221 | + svgURL: elementorFrontend.config.urls.assets + 'shapes/' | |
| 727 | 1222 | }; |
| 728 | 1223 | } |
| 729 | - onInit() { | |
| 730 | - this.observeStickyElements(() => { | |
| 731 | - this.initializeStickyAndAnchorTracking(); | |
| 732 | - }); | |
| 1224 | + getDefaultElements() { | |
| 1225 | + const elements = {}, | |
| 1226 | + selectors = this.getSettings('selectors'); | |
| 1227 | + elements.$topContainer = this.$element.find(selectors.container.replace('%s', 'top')); | |
| 1228 | + elements.$bottomContainer = this.$element.find(selectors.container.replace('%s', 'bottom')); | |
| 1229 | + return elements; | |
| 733 | 1230 | } |
| 734 | - observeStickyElements(callback) { | |
| 735 | - const observer = new MutationObserver(mutationsList => { | |
| 736 | - for (const mutation of mutationsList) { | |
| 737 | - if ('childList' === mutation.type || 'attributes' === mutation.type && mutation.target.classList.contains('elementor-sticky')) { | |
| 738 | - callback(); | |
| 739 | - } | |
| 1231 | + isActive() { | |
| 1232 | + return elementorFrontend.isEditMode(); | |
| 1233 | + } | |
| 1234 | + getSvgURL(shapeType, fileName) { | |
| 1235 | + let svgURL = this.getSettings('svgURL') + fileName + '.svg'; | |
| 1236 | + if (elementor.config.additional_shapes && shapeType in elementor.config.additional_shapes) { | |
| 1237 | + svgURL = elementor.config.additional_shapes[shapeType]; | |
| 1238 | + if (-1 < fileName.indexOf('-negative')) { | |
| 1239 | + svgURL = svgURL.replace('.svg', '-negative.svg'); | |
| 740 | 1240 | } |
| 741 | - }); | |
| 742 | - observer.observe(document.body, { | |
| 743 | - childList: true, | |
| 744 | - subtree: true, | |
| 745 | - attributes: true, | |
| 746 | - attributeFilter: ['class', 'style'] | |
| 747 | - }); | |
| 1241 | + } | |
| 1242 | + return svgURL; | |
| 748 | 1243 | } |
| 749 | - initializeStickyAndAnchorTracking() { | |
| 750 | - const anchorLinks = this.getAllAnchorLinks(); | |
| 751 | - const stickyElements = this.getAllStickyElements(); | |
| 752 | - const trackedElements = []; | |
| 753 | - if (!stickyElements.length > 0 && !anchorLinks.length > 0) { | |
| 1244 | + buildSVG(side) { | |
| 1245 | + const baseSettingKey = 'shape_divider_' + side, | |
| 1246 | + shapeType = this.getElementSettings(baseSettingKey), | |
| 1247 | + $svgContainer = this.elements['$' + side + 'Container']; | |
| 1248 | + $svgContainer.attr('data-shape', shapeType); | |
| 1249 | + if (!shapeType) { | |
| 1250 | + $svgContainer.empty(); // Shape-divider set to 'none' | |
| 754 | 1251 | return; |
| 755 | 1252 | } |
| 756 | - this.trackStickyElements(stickyElements, trackedElements); | |
| 757 | - this.trackAnchorLinks(anchorLinks, trackedElements); | |
| 758 | - this.organizeStickyAndAnchors(trackedElements); | |
| 759 | - } | |
| 760 | - trackAnchorLinks(anchorLinks, trackedElements) { | |
| 761 | - anchorLinks.forEach(element => { | |
| 762 | - const target = this.getAnchorTarget(element); | |
| 763 | - const scrollPosition = this.getScrollPosition(target); | |
| 764 | - trackedElements.push({ | |
| 765 | - element: target, | |
| 766 | - type: 'anchor', | |
| 767 | - scrollPosition | |
| 768 | - }); | |
| 1253 | + let fileName = shapeType; | |
| 1254 | + if (this.getElementSettings(baseSettingKey + '_negative')) { | |
| 1255 | + fileName += '-negative'; | |
| 1256 | + } | |
| 1257 | + const svgURL = this.getSvgURL(shapeType, fileName); | |
| 1258 | + jQuery.get(svgURL, data => { | |
| 1259 | + $svgContainer.empty().append(data.childNodes[0]); | |
| 769 | 1260 | }); |
| 1261 | + this.setNegative(side); | |
| 770 | 1262 | } |
| 771 | - trackStickyElements(stickyElements, trackedElements) { | |
| 772 | - stickyElements.forEach(element => { | |
| 773 | - const settings = this.getElementSettings(element); | |
| 774 | - if (!settings || !settings.sticky_anchor_link_offset) { | |
| 775 | - return; | |
| 776 | - } | |
| 777 | - const { | |
| 778 | - sticky_anchor_link_offset: scrollMarginTop | |
| 779 | - } = settings; | |
| 780 | - if (0 === scrollMarginTop) { | |
| 781 | - return; | |
| 782 | - } | |
| 783 | - const scrollPosition = this.getScrollPosition(element); | |
| 784 | - trackedElements.push({ | |
| 785 | - scrollMarginTop, | |
| 786 | - type: 'sticky', | |
| 787 | - scrollPosition | |
| 788 | - }); | |
| 789 | - }); | |
| 1263 | + setNegative(side) { | |
| 1264 | + this.elements['$' + side + 'Container'].attr('data-negative', !!this.getElementSettings('shape_divider_' + side + '_negative')); | |
| 790 | 1265 | } |
| 791 | - organizeStickyAndAnchors(elements) { | |
| 792 | - const stickyList = this.filterAndSortElementsByType(elements, 'sticky'); | |
| 793 | - const anchorList = this.filterAndSortElementsByType(elements, 'anchor'); | |
| 794 | - stickyList.forEach((sticky, index) => { | |
| 795 | - this.defineCurrentStickyRange(sticky, index, stickyList, anchorList); | |
| 796 | - }); | |
| 797 | - } | |
| 798 | - defineCurrentStickyRange(sticky, index, stickyList, anchorList) { | |
| 799 | - const nextStickyScrollPosition = index + 1 < stickyList.length ? stickyList[index + 1].scrollPosition : Infinity; | |
| 800 | - sticky.anchor = anchorList.filter(anchor => { | |
| 801 | - const withinRange = anchor.scrollPosition > sticky.scrollPosition && anchor.scrollPosition < nextStickyScrollPosition; | |
| 802 | - if (withinRange) { | |
| 803 | - anchor.element.style.scrollMarginTop = `${sticky.scrollMarginTop}px`; | |
| 1266 | + onInit() { | |
| 1267 | + if (!this.isActive(this.getSettings())) { | |
| 1268 | + return; | |
| 1269 | + } | |
| 1270 | + super.onInit(...arguments); | |
| 1271 | + ['top', 'bottom'].forEach(side => { | |
| 1272 | + if (this.getElementSettings('shape_divider_' + side)) { | |
| 1273 | + this.buildSVG(side); | |
| 804 | 1274 | } |
| 805 | - return withinRange; | |
| 806 | 1275 | }); |
| 807 | 1276 | } |
| 808 | - getScrollPosition(element) { | |
| 809 | - let offsetTop = 0; | |
| 810 | - while (element) { | |
| 811 | - offsetTop += element.offsetTop; | |
| 812 | - element = element.offsetParent; | |
| 1277 | + onElementChange(propertyName) { | |
| 1278 | + const shapeChange = propertyName.match(/^shape_divider_(top|bottom)$/); | |
| 1279 | + if (shapeChange) { | |
| 1280 | + this.buildSVG(shapeChange[1]); | |
| 1281 | + return; | |
| 813 | 1282 | } |
| 814 | - return offsetTop; | |
| 1283 | + const negativeChange = propertyName.match(/^shape_divider_(top|bottom)_negative$/); | |
| 1284 | + if (negativeChange) { | |
| 1285 | + this.buildSVG(negativeChange[1]); | |
| 1286 | + this.setNegative(negativeChange[1]); | |
| 1287 | + } | |
| 815 | 1288 | } |
| 816 | - getAllStickyElements() { | |
| 817 | - const allStickyElements = document.querySelectorAll(this.getSettings('selectors.stickyElements')); | |
| 818 | - return Array.from(allStickyElements).filter((anchor, index, self) => index === self.findIndex(t => t.getAttribute('data-id') === anchor.getAttribute('data-id'))); | |
| 1289 | +} | |
| 1290 | +exports["default"] = Shapes; | |
| 1291 | + | |
| 1292 | +/***/ }), | |
| 1293 | + | |
| 1294 | +/***/ "../assets/dev/js/frontend/handlers/section/stretched-section.js": | |
| 1295 | +/*!***********************************************************************!*\ | |
| 1296 | + !*** ../assets/dev/js/frontend/handlers/section/stretched-section.js ***! | |
| 1297 | + \***********************************************************************/ | |
| 1298 | +/***/ ((__unused_webpack_module, exports) => { | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | +Object.defineProperty(exports, "__esModule", ({ | |
| 1303 | + value: true | |
| 1304 | +})); | |
| 1305 | +exports["default"] = void 0; | |
| 1306 | +class StretchedSection extends elementorModules.frontend.handlers.StretchedElement { | |
| 1307 | + getStretchedClass() { | |
| 1308 | + return 'elementor-section-stretched'; | |
| 819 | 1309 | } |
| 820 | - getAllAnchorLinks() { | |
| 821 | - const allAnchors = document.querySelectorAll(this.getSettings('selectors.links')); | |
| 822 | - return Array.from(allAnchors).filter((anchor, index, self) => index === self.findIndex(t => t.getAttribute('href') === anchor.getAttribute('href'))); | |
| 1310 | + getStretchSettingName() { | |
| 1311 | + return 'stretch_section'; | |
| 823 | 1312 | } |
| 824 | - filterAndSortElementsByType(elements, type) { | |
| 825 | - return elements.filter(item => type === item.type).sort((a, b) => a.scrollPosition - b.scrollPosition); | |
| 1313 | + getStretchActiveValue() { | |
| 1314 | + return 'section-stretched'; | |
| 826 | 1315 | } |
| 827 | - isValidSelector(hash) { | |
| 828 | - const validSelectorPattern = /^#[A-Za-z_][\w-]*$/; | |
| 829 | - return validSelectorPattern.test(hash); | |
| 830 | - } | |
| 831 | - getAnchorTarget(element) { | |
| 832 | - const hash = element?.hash; | |
| 833 | - if (!this.isValidSelector(hash)) { | |
| 834 | - return null; | |
| 1316 | +} | |
| 1317 | +exports["default"] = StretchedSection; | |
| 1318 | + | |
| 1319 | +/***/ }), | |
| 1320 | + | |
| 1321 | +/***/ "../assets/dev/js/frontend/utils/anchors.js": | |
| 1322 | +/*!**************************************************!*\ | |
| 1323 | + !*** ../assets/dev/js/frontend/utils/anchors.js ***! | |
| 1324 | + \**************************************************/ | |
| 1325 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | +var _utils = __webpack_require__(/*! ./utils */ "../assets/dev/js/frontend/utils/utils.js"); | |
| 1330 | +module.exports = elementorModules.ViewModule.extend({ | |
| 1331 | + getDefaultSettings() { | |
| 1332 | + return { | |
| 1333 | + scrollDuration: 500, | |
| 1334 | + selectors: { | |
| 1335 | + links: 'a[href*="#"]', | |
| 1336 | + targets: '.elementor-element, .elementor-menu-anchor', | |
| 1337 | + scrollable: (0, _utils.isScrollSnapActive)() ? 'body' : 'html, body' | |
| 1338 | + } | |
| 1339 | + }; | |
| 1340 | + }, | |
| 1341 | + getDefaultElements() { | |
| 1342 | + var $ = jQuery, | |
| 1343 | + selectors = this.getSettings('selectors'); | |
| 1344 | + return { | |
| 1345 | + $scrollable: $(selectors.scrollable) | |
| 1346 | + }; | |
| 1347 | + }, | |
| 1348 | + bindEvents() { | |
| 1349 | + elementorFrontend.elements.$document.on('click', this.getSettings('selectors.links'), this.handleAnchorLinks); | |
| 1350 | + }, | |
| 1351 | + handleAnchorLinks(event) { | |
| 1352 | + var clickedLink = event.currentTarget, | |
| 1353 | + isSamePathname = location.pathname === clickedLink.pathname, | |
| 1354 | + isSameHostname = location.hostname === clickedLink.hostname, | |
| 1355 | + $anchor; | |
| 1356 | + if (!isSameHostname || !isSamePathname || clickedLink.hash.length < 2) { | |
| 1357 | + return; | |
| 835 | 1358 | } |
| 836 | - return document.querySelector(hash); | |
| 1359 | + try { | |
| 1360 | + $anchor = jQuery(clickedLink.hash).filter(this.getSettings('selectors.targets')); | |
| 1361 | + } catch (e) { | |
| 1362 | + return; | |
| 1363 | + } | |
| 1364 | + if (!$anchor.length) { | |
| 1365 | + return; | |
| 1366 | + } | |
| 1367 | + var scrollTop = $anchor.offset().top, | |
| 1368 | + $wpAdminBar = elementorFrontend.elements.$wpAdminBar, | |
| 1369 | + $activeStickies = jQuery('.elementor-section.elementor-sticky--active:visible'), | |
| 1370 | + maxStickyHeight = 0; | |
| 1371 | + if ($wpAdminBar.length > 0) { | |
| 1372 | + scrollTop -= $wpAdminBar.height(); | |
| 1373 | + } | |
| 1374 | + | |
| 1375 | + // Offset height of tallest sticky | |
| 1376 | + if ($activeStickies.length > 0) { | |
| 1377 | + maxStickyHeight = Math.max.apply(null, $activeStickies.map(function () { | |
| 1378 | + return jQuery(this).outerHeight(); | |
| 1379 | + }).get()); | |
| 1380 | + scrollTop -= maxStickyHeight; | |
| 1381 | + } | |
| 1382 | + event.preventDefault(); | |
| 1383 | + scrollTop = elementorFrontend.hooks.applyFilters('frontend/handlers/menu_anchor/scroll_top_distance', scrollTop); | |
| 1384 | + | |
| 1385 | + // On scroll animation start: remove scroll-snap. | |
| 1386 | + if ((0, _utils.isScrollSnapActive)()) { | |
| 1387 | + elementorFrontend.elements.$body.css('scroll-snap-type', 'none'); | |
| 1388 | + } | |
| 1389 | + this.elements.$scrollable.animate({ | |
| 1390 | + scrollTop | |
| 1391 | + }, this.getSettings('scrollDuration'), 'linear', () => { | |
| 1392 | + // On scroll animation complete: add scroll-snap back. | |
| 1393 | + if ((0, _utils.isScrollSnapActive)()) { | |
| 1394 | + elementorFrontend.elements.$body.css('scroll-snap-type', ''); | |
| 1395 | + } | |
| 1396 | + }); | |
| 1397 | + }, | |
| 1398 | + onInit() { | |
| 1399 | + elementorModules.ViewModule.prototype.onInit.apply(this, arguments); | |
| 837 | 1400 | } |
| 838 | - getElementSettings(element) { | |
| 839 | - return JSON.parse(element.getAttribute('data-settings')); | |
| 840 | - } | |
| 841 | -} | |
| 842 | -exports["default"] = _default; | |
| 1401 | +}); | |
| 843 | 1402 | |
| 844 | 1403 | /***/ }), |
| 845 | 1404 | |
| 846 | 1405 | /***/ "../assets/dev/js/frontend/utils/assets-loader.js": |
| @@ -874,10 +1433,12 @@ | ||
| 874 | 1433 | } |
| 875 | 1434 | return assetData.loader; |
| 876 | 1435 | } |
| 877 | 1436 | isAssetLoaded(assetData, assetType) { |
| 878 | - const filePath = 'script' === assetType ? `script[src="${assetData.src}"]` : `link[href="${assetData.src}"]`; | |
| 879 | - return !!document.querySelectorAll(filePath)?.length; | |
| 1437 | + const tag = 'script' === assetType ? 'script' : 'link', | |
| 1438 | + filePath = `${tag}[src="${assetData.src}"]`, | |
| 1439 | + assetElements = document.querySelectorAll(filePath); | |
| 1440 | + return !!assetElements?.length; | |
| 880 | 1441 | } |
| 881 | 1442 | loadAsset(assetData, assetType) { |
| 882 | 1443 | return new Promise(resolve => { |
| 883 | 1444 | const element = 'style' === assetType ? this.getStyleElement(assetData.src) : this.getScriptElement(assetData.src); |
| @@ -898,8 +1459,10 @@ | ||
| 898 | 1459 | exports["default"] = AssetsLoader; |
| 899 | 1460 | const assetsUrl = elementorFrontendConfig.urls.assets; |
| 900 | 1461 | const fileSuffix = elementorFrontendConfig.environmentMode.isScriptDebug ? '' : '.min'; |
| 901 | 1462 | const pluginVersion = elementorFrontendConfig.version; |
| 1463 | +const swiperJsSource = elementorFrontendConfig.experimentalFeatures.e_swiper_latest ? `${assetsUrl}lib/swiper/v8/swiper${fileSuffix}.js?ver=8.4.5` : `${assetsUrl}lib/swiper/swiper${fileSuffix}.js?ver=5.3.6`; | |
| 1464 | +const swiperCssSource = elementorFrontendConfig.experimentalFeatures.e_swiper_latest ? `${assetsUrl}lib/swiper/v8/css/swiper${fileSuffix}.css?ver=8.4.5` : `${assetsUrl}lib/swiper/css/swiper${fileSuffix}.css?ver=5.3.6`; | |
| 902 | 1465 | AssetsLoader.assets = { |
| 903 | 1466 | script: { |
| 904 | 1467 | dialog: { |
| 905 | 1468 | src: `${assetsUrl}lib/dialog/dialog${fileSuffix}.js?ver=4.9.3` |
| @@ -906,16 +1469,15 @@ | ||
| 906 | 1469 | }, |
| 907 | 1470 | 'share-link': { |
| 908 | 1471 | src: `${assetsUrl}lib/share-link/share-link${fileSuffix}.js?ver=${pluginVersion}` |
| 909 | 1472 | }, |
| 910 | - // TODO: Remove 'swiper' in v3.29.0 [ED-16272]. | |
| 911 | 1473 | swiper: { |
| 912 | - src: `${assetsUrl}lib/swiper/v8/swiper${fileSuffix}.js?ver=8.4.5` | |
| 1474 | + src: swiperJsSource | |
| 913 | 1475 | } |
| 914 | 1476 | }, |
| 915 | 1477 | style: { |
| 916 | 1478 | swiper: { |
| 917 | - src: `${assetsUrl}lib/swiper/v8/css/swiper${fileSuffix}.css?ver=8.4.5`, | |
| 1479 | + src: swiperCssSource, | |
| 918 | 1480 | parent: 'head' |
| 919 | 1481 | }, |
| 920 | 1482 | 'e-lightbox': { |
| 921 | 1483 | src: elementorFrontendConfig?.responsive?.hasCustomBreakpoints ? `${elementorFrontendConfig.urls.uploadUrl}/elementor/css/custom-lightbox.min.css?ver=${pluginVersion}` : `${assetsUrl}css/conditionals/lightbox${fileSuffix}.css?ver=${pluginVersion}` |
| @@ -978,9 +1540,11 @@ | ||
| 978 | 1540 | * @param {string} controlSubKey A specific property of the control object. |
| 979 | 1541 | * @param {string} device If we want to get a value for a specific device mode. |
| 980 | 1542 | * @return {*} Control Value |
| 981 | 1543 | */ |
| 982 | - getResponsiveControlValue(controlSettings, controlKey, controlSubKey = '', device = null) { | |
| 1544 | + getResponsiveControlValue(controlSettings, controlKey) { | |
| 1545 | + let controlSubKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ''; | |
| 1546 | + let device = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; | |
| 983 | 1547 | const currentDeviceMode = device || elementorFrontend.getCurrentDeviceMode(), |
| 984 | 1548 | controlValueDesktop = this.getControlValue(controlSettings, controlKey, controlSubKey); |
| 985 | 1549 | |
| 986 | 1550 | // Set the control value for the current device mode. |
| @@ -1031,16 +1595,17 @@ | ||
| 1031 | 1595 | Object.defineProperty(exports, "__esModule", ({ |
| 1032 | 1596 | value: true |
| 1033 | 1597 | })); |
| 1034 | 1598 | exports["default"] = void 0; |
| 1035 | -__webpack_require__(/*! core-js/modules/esnext.iterator.constructor.js */ "../node_modules/core-js/modules/esnext.iterator.constructor.js"); | |
| 1036 | -__webpack_require__(/*! core-js/modules/esnext.iterator.find.js */ "../node_modules/core-js/modules/esnext.iterator.find.js"); | |
| 1037 | 1599 | class LightboxManager extends elementorModules.ViewModule { |
| 1038 | 1600 | static getLightbox() { |
| 1039 | 1601 | const lightboxPromise = new Promise(resolveLightbox => { |
| 1040 | - Promise.all(/*! import() | lightbox */[__webpack_require__.e("vendors-node_modules_dompurify_dist_purify_cjs_js"), __webpack_require__.e("lightbox")]).then(__webpack_require__.t.bind(__webpack_require__, /*! elementor-frontend/utils/lightbox/lightbox */ "../assets/dev/js/frontend/utils/lightbox/lightbox.js", 23)).then(({ | |
| 1041 | - default: LightboxModule | |
| 1042 | - }) => resolveLightbox(new LightboxModule())); | |
| 1602 | + __webpack_require__.e(/*! import() | lightbox */ "lightbox").then(__webpack_require__.t.bind(__webpack_require__, /*! elementor-frontend/utils/lightbox/lightbox */ "../assets/dev/js/frontend/utils/lightbox/lightbox.js", 23)).then(_ref => { | |
| 1603 | + let { | |
| 1604 | + default: LightboxModule | |
| 1605 | + } = _ref; | |
| 1606 | + return resolveLightbox(new LightboxModule()); | |
| 1607 | + }); | |
| 1043 | 1608 | }), |
| 1044 | 1609 | dialogScriptPromise = elementorFrontend.utils.assetsLoader.load('script', 'dialog'), |
| 1045 | 1610 | dialogStylePromise = elementorFrontend.utils.assetsLoader.load('style', 'dialog'), |
| 1046 | 1611 | shareLinkPromise = elementorFrontend.utils.assetsLoader.load('script', 'share-link'), |
| @@ -1063,9 +1628,9 @@ | ||
| 1063 | 1628 | }; |
| 1064 | 1629 | } |
| 1065 | 1630 | isLightboxLink(element) { |
| 1066 | 1631 | // Check for lowercase `a` to make sure it works also for links inside SVGs. |
| 1067 | - if ('a' === element.tagName.toLowerCase() && (element.hasAttribute('download') || !/^[^?]+\.(png|jpe?g|gif|svg|webp|avif)(\?.*)?$/i.test(element.href)) && !element.dataset.elementorLightboxVideo) { | |
| 1632 | + if ('a' === element.tagName.toLowerCase() && (element.hasAttribute('download') || !/^[^?]+\.(png|jpe?g|gif|svg|webp)(\?.*)?$/i.test(element.href)) && !element.dataset.elementorLightboxVideo) { | |
| 1068 | 1633 | return false; |
| 1069 | 1634 | } |
| 1070 | 1635 | const generalOpenInLightbox = elementorFrontend.getKitSettings('global_image_lightbox'), |
| 1071 | 1636 | currentLinkOpenInLightbox = element.dataset.elementorOpenLightbox; |
| @@ -1100,10 +1665,10 @@ | ||
| 1100 | 1665 | } |
| 1101 | 1666 | bindEvents() { |
| 1102 | 1667 | elementorFrontend.elements.$document.on('click', this.getSettings('selectors.links'), event => this.onLinkClick(event)); |
| 1103 | 1668 | } |
| 1104 | - onInit(...args) { | |
| 1105 | - super.onInit(...args); | |
| 1669 | + onInit() { | |
| 1670 | + super.onInit(...arguments); | |
| 1106 | 1671 | if (elementorFrontend.isEditMode()) { |
| 1107 | 1672 | return; |
| 1108 | 1673 | } |
| 1109 | 1674 | this.maybeActivateLightboxOnLink(); |
| @@ -1127,9 +1692,9 @@ | ||
| 1127 | 1692 | /***/ "../assets/dev/js/frontend/utils/swiper.js": |
| 1128 | 1693 | /*!*************************************************!*\ |
| 1129 | 1694 | !*** ../assets/dev/js/frontend/utils/swiper.js ***! |
| 1130 | 1695 | \*************************************************/ |
| 1131 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1696 | +/***/ ((__unused_webpack_module, exports) => { | |
| 1132 | 1697 | |
| 1133 | 1698 | |
| 1134 | 1699 | |
| 1135 | 1700 | Object.defineProperty(exports, "__esModule", ({ |
| @@ -1135,11 +1700,9 @@ | ||
| 1135 | 1700 | Object.defineProperty(exports, "__esModule", ({ |
| 1136 | 1701 | value: true |
| 1137 | 1702 | })); |
| 1138 | 1703 | exports["default"] = void 0; |
| 1139 | -__webpack_require__(/*! core-js/modules/esnext.iterator.constructor.js */ "../node_modules/core-js/modules/esnext.iterator.constructor.js"); | |
| 1140 | -__webpack_require__(/*! core-js/modules/esnext.iterator.for-each.js */ "../node_modules/core-js/modules/esnext.iterator.for-each.js"); | |
| 1141 | -class SwiperHandler { | |
| 1704 | +class Swiper { | |
| 1142 | 1705 | constructor(container, config) { |
| 1143 | 1706 | this.config = config; |
| 1144 | 1707 | if (this.config.breakpoints) { |
| 1145 | 1708 | // The config is passed as a param to allow adjustConfig to be called outside of this wrapper |
| @@ -1152,23 +1715,14 @@ | ||
| 1152 | 1715 | // The Swiper will overlap the column width when applying custom margin values on the column. |
| 1153 | 1716 | container.closest('.elementor-widget-wrap')?.classList.add('e-swiper-container'); |
| 1154 | 1717 | container.closest('.elementor-widget')?.classList.add('e-widget-swiper'); |
| 1155 | 1718 | return new Promise(resolve => { |
| 1156 | - // TODO: Remove in v3.29.0 [ED-16272]. | |
| 1157 | - if ('undefined' === typeof Swiper) { | |
| 1158 | - elementorFrontend.utils.assetsLoader.load('script', 'swiper').then(() => resolve(this.createSwiperInstance(container, this.config))); | |
| 1159 | - return; | |
| 1160 | - } | |
| 1161 | - if ('function' === typeof Swiper && 'undefined' === typeof window.Swiper) { | |
| 1162 | - window.Swiper = Swiper; | |
| 1163 | - } | |
| 1164 | - resolve(this.createSwiperInstance(container, this.config)); | |
| 1719 | + elementorFrontend.utils.assetsLoader.load('script', 'swiper').then(() => resolve(this.createSwiperInstance(container, this.config))); | |
| 1165 | 1720 | }); |
| 1166 | 1721 | } |
| 1167 | 1722 | createSwiperInstance(container, config) { |
| 1168 | 1723 | const SwiperSource = window.Swiper; |
| 1169 | 1724 | SwiperSource.prototype.adjustConfig = this.adjustConfig; |
| 1170 | - config = this.applyMotionPreferences(config); | |
| 1171 | 1725 | return new SwiperSource(container, config); |
| 1172 | 1726 | } |
| 1173 | 1727 | |
| 1174 | 1728 | // Backwards compatibility for Elementor Pro <2.9.0 (old Swiper version - <5.0.0) |
| @@ -1213,20 +1767,10 @@ | ||
| 1213 | 1767 | }; |
| 1214 | 1768 | }); |
| 1215 | 1769 | return config; |
| 1216 | 1770 | } |
| 1217 | - applyMotionPreferences(config) { | |
| 1218 | - const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches; | |
| 1219 | - if (!prefersReducedMotion) { | |
| 1220 | - return config; | |
| 1221 | - } | |
| 1222 | - return Object.assign({}, config, { | |
| 1223 | - speed: 0, | |
| 1224 | - autoplay: false | |
| 1225 | - }); | |
| 1226 | - } | |
| 1227 | 1771 | } |
| 1228 | -exports["default"] = SwiperHandler; | |
| 1772 | +exports["default"] = Swiper; | |
| 1229 | 1773 | |
| 1230 | 1774 | /***/ }), |
| 1231 | 1775 | |
| 1232 | 1776 | /***/ "../assets/dev/js/frontend/utils/url-actions.js": |
| @@ -1272,10 +1816,9 @@ | ||
| 1272 | 1816 | } |
| 1273 | 1817 | addAction(name, callback) { |
| 1274 | 1818 | this.actions[name] = callback; |
| 1275 | 1819 | } |
| 1276 | - runAction(url, ...restArgs) { | |
| 1277 | - url = decodeURI(url); | |
| 1820 | + runAction(url) { | |
| 1278 | 1821 | url = decodeURIComponent(url); |
| 1279 | 1822 | const actionMatch = url.match(/action=(.+?)&/); |
| 1280 | 1823 | if (!actionMatch) { |
| 1281 | 1824 | return; |
| @@ -1289,8 +1832,11 @@ | ||
| 1289 | 1832 | if (settingsMatch) { |
| 1290 | 1833 | settings = JSON.parse(atob(settingsMatch[1])); |
| 1291 | 1834 | } |
| 1292 | 1835 | settings.previousEvent = event; |
| 1836 | + for (var _len = arguments.length, restArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | |
| 1837 | + restArgs[_key - 1] = arguments[_key]; | |
| 1838 | + } | |
| 1293 | 1839 | action(settings, ...restArgs); |
| 1294 | 1840 | } |
| 1295 | 1841 | runLinkAction(event) { |
| 1296 | 1842 | event.preventDefault(); |
| @@ -1467,9 +2013,9 @@ | ||
| 1467 | 2013 | getApiURL() { |
| 1468 | 2014 | return 'https://www.youtube.com/iframe_api'; |
| 1469 | 2015 | } |
| 1470 | 2016 | getURLRegex() { |
| 1471 | - return /^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?vi?=|(?:embed|v|vi|user|shorts)\/))([^?&"'>]+)/; | |
| 2017 | + return /^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?vi?=|(?:embed|v|vi|user)\/))([^?&"'>]+)/; | |
| 1472 | 2018 | } |
| 1473 | 2019 | isApiLoaded() { |
| 1474 | 2020 | return window.YT && YT.loaded; |
| 1475 | 2021 | } |
| @@ -1497,9 +2043,9 @@ | ||
| 1497 | 2043 | /***/ "../assets/dev/js/utils/breakpoints.js": |
| 1498 | 2044 | /*!*********************************************!*\ |
| 1499 | 2045 | !*** ../assets/dev/js/utils/breakpoints.js ***! |
| 1500 | 2046 | \*********************************************/ |
| 1501 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2047 | +/***/ ((__unused_webpack_module, exports) => { | |
| 1502 | 2048 | |
| 1503 | 2049 | |
| 1504 | 2050 | |
| 1505 | 2051 | Object.defineProperty(exports, "__esModule", ({ |
| @@ -1505,12 +2051,8 @@ | ||
| 1505 | 2051 | Object.defineProperty(exports, "__esModule", ({ |
| 1506 | 2052 | value: true |
| 1507 | 2053 | })); |
| 1508 | 2054 | exports["default"] = void 0; |
| 1509 | -__webpack_require__(/*! core-js/modules/es.array.push.js */ "../node_modules/core-js/modules/es.array.push.js"); | |
| 1510 | -__webpack_require__(/*! core-js/modules/esnext.iterator.constructor.js */ "../node_modules/core-js/modules/esnext.iterator.constructor.js"); | |
| 1511 | -__webpack_require__(/*! core-js/modules/esnext.iterator.for-each.js */ "../node_modules/core-js/modules/esnext.iterator.for-each.js"); | |
| 1512 | -__webpack_require__(/*! core-js/modules/esnext.iterator.map.js */ "../node_modules/core-js/modules/esnext.iterator.map.js"); | |
| 1513 | 2055 | /** |
| 1514 | 2056 | * Breakpoints |
| 1515 | 2057 | * |
| 1516 | 2058 | * This utility class contains helper functions relating to Elementor's breakpoints system. |
| @@ -1534,9 +2076,10 @@ | ||
| 1534 | 2076 | * @since 3.4.0 |
| 1535 | 2077 | * |
| 1536 | 2078 | * @param {Object} args |
| 1537 | 2079 | */ |
| 1538 | - getActiveBreakpointsList(args = {}) { | |
| 2080 | + getActiveBreakpointsList() { | |
| 2081 | + let args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 1539 | 2082 | const defaultArgs = { |
| 1540 | 2083 | largeToSmall: false, |
| 1541 | 2084 | withDesktop: false |
| 1542 | 2085 | }; |
| @@ -1703,9 +2246,11 @@ | ||
| 1703 | 2246 | * @param {string|null} bcEvent - BC event to dispatch, default to `null`. |
| 1704 | 2247 | * |
| 1705 | 2248 | * @return {void} |
| 1706 | 2249 | */ |
| 1707 | - static dispatch(context, event, data = null, bcEvent = null) { | |
| 2250 | + static dispatch(context, event) { | |
| 2251 | + let data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; | |
| 2252 | + let bcEvent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; | |
| 1708 | 2253 | // Make sure to use the native context if it's a jQuery instance. |
| 1709 | 2254 | context = context instanceof jQuery ? context[0] : context; |
| 1710 | 2255 | |
| 1711 | 2256 | // Dispatch the BC event only if exists. |
| @@ -1722,9 +2267,10 @@ | ||
| 1722 | 2267 | })); |
| 1723 | 2268 | } |
| 1724 | 2269 | } |
| 1725 | 2270 | exports.Events = Events; |
| 1726 | -var _default = exports["default"] = Events; | |
| 2271 | +var _default = Events; | |
| 2272 | +exports["default"] = _default; | |
| 1727 | 2273 | |
| 1728 | 2274 | /***/ }), |
| 1729 | 2275 | |
| 1730 | 2276 | /***/ "../assets/dev/js/utils/hooks.js": |
| @@ -1730,9 +2276,9 @@ | ||
| 1730 | 2276 | /***/ "../assets/dev/js/utils/hooks.js": |
| 1731 | 2277 | /*!***************************************!*\ |
| 1732 | 2278 | !*** ../assets/dev/js/utils/hooks.js ***! |
| 1733 | 2279 | \***************************************/ |
| 1734 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2280 | +/***/ ((module) => { | |
| 1735 | 2281 | |
| 1736 | 2282 | |
| 1737 | 2283 | |
| 1738 | 2284 | /** |
| @@ -1738,9 +2284,8 @@ | ||
| 1738 | 2284 | /** |
| 1739 | 2285 | * Handles managing all events for whatever you plug it into. Priorities for hooks are based on lowest to highest in |
| 1740 | 2286 | * that, lowest priority hooks are fired first. |
| 1741 | 2287 | */ |
| 1742 | -__webpack_require__(/*! core-js/modules/es.array.push.js */ "../node_modules/core-js/modules/es.array.push.js"); | |
| 1743 | 2288 | var EventManager = function () { |
| 1744 | 2289 | var slice = Array.prototype.slice, |
| 1745 | 2290 | MethodsAvailable; |
| 1746 | 2291 | |
| @@ -1897,9 +2442,9 @@ | ||
| 1897 | 2442 | /** |
| 1898 | 2443 | * Performs an action if it exists. You can pass as many arguments as you want to this function; the only rule is |
| 1899 | 2444 | * that the first argument must always be the action. |
| 1900 | 2445 | */ |
| 1901 | - function doAction(/* Action, arg1, arg2, ... */ | |
| 2446 | + function doAction( /* Action, arg1, arg2, ... */ | |
| 1902 | 2447 | ) { |
| 1903 | 2448 | var args = slice.call(arguments); |
| 1904 | 2449 | var action = args.shift(); |
| 1905 | 2450 | if ('string' === typeof action) { |
| @@ -1940,9 +2485,9 @@ | ||
| 1940 | 2485 | /** |
| 1941 | 2486 | * Performs a filter if it exists. You should only ever pass 1 argument to be filtered. The only rule is that |
| 1942 | 2487 | * the first argument must always be the filter. |
| 1943 | 2488 | */ |
| 1944 | - function applyFilters(/* Filter, filtered arg, arg2, ... */ | |
| 2489 | + function applyFilters( /* Filter, filtered arg, arg2, ... */ | |
| 1945 | 2490 | ) { |
| 1946 | 2491 | var args = slice.call(arguments); |
| 1947 | 2492 | var filter = args.shift(); |
| 1948 | 2493 | if ('string' === typeof filter) { |
| @@ -2009,9 +2554,9 @@ | ||
| 2009 | 2554 | isSafari = /^((?!chrome|android).)*safari/i.test(userAgent) || /constructor/i.test(window.HTMLElement) || (p => { |
| 2010 | 2555 | return '[object SafariRemoteNotification]' === p.toString(); |
| 2011 | 2556 | })(!window.safari || typeof safari !== 'undefined' && safari.pushNotification), |
| 2012 | 2557 | // Internet Explorer 6-11 |
| 2013 | - isIE = /Trident|MSIE/.test(userAgent) && (/* @cc_on!@*/ false || !!document.documentMode), | |
| 2558 | + isIE = /Trident|MSIE/.test(userAgent) && ( /* @cc_on!@*/ false || !!document.documentMode), | |
| 2014 | 2559 | // Edge 20+ |
| 2015 | 2560 | isEdge = !isIE && !!window.StyleMedia || matchUserAgent('Edg'), |
| 2016 | 2561 | // Google Chrome (Not accurate) |
| 2017 | 2562 | isChrome = !!window.chrome && matchUserAgent('Chrome') && !(isEdge || isOpera), |
| @@ -2032,9 +2577,10 @@ | ||
| 2032 | 2577 | opera: isOpera, |
| 2033 | 2578 | safari: isSafari, |
| 2034 | 2579 | webkit: matchUserAgent('AppleWebKit') |
| 2035 | 2580 | }; |
| 2036 | -var _default = exports["default"] = environment; | |
| 2581 | +var _default = environment; | |
| 2582 | +exports["default"] = _default; | |
| 2037 | 2583 | |
| 2038 | 2584 | /***/ }), |
| 2039 | 2585 | |
| 2040 | 2586 | /***/ "../core/common/assets/js/utils/storage.js": |
| @@ -2040,9 +2586,9 @@ | ||
| 2040 | 2586 | /***/ "../core/common/assets/js/utils/storage.js": |
| 2041 | 2587 | /*!*************************************************!*\ |
| 2042 | 2588 | !*** ../core/common/assets/js/utils/storage.js ***! |
| 2043 | 2589 | \*************************************************/ |
| 2044 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2590 | +/***/ ((__unused_webpack_module, exports) => { | |
| 2045 | 2591 | |
| 2046 | 2592 | |
| 2047 | 2593 | |
| 2048 | 2594 | Object.defineProperty(exports, "__esModule", ({ |
| @@ -2048,10 +2594,8 @@ | ||
| 2048 | 2594 | Object.defineProperty(exports, "__esModule", ({ |
| 2049 | 2595 | value: true |
| 2050 | 2596 | })); |
| 2051 | 2597 | exports["default"] = void 0; |
| 2052 | -__webpack_require__(/*! core-js/modules/esnext.iterator.constructor.js */ "../node_modules/core-js/modules/esnext.iterator.constructor.js"); | |
| 2053 | -__webpack_require__(/*! core-js/modules/esnext.iterator.for-each.js */ "../node_modules/core-js/modules/esnext.iterator.for-each.js"); | |
| 2054 | 2598 | class _default extends elementorModules.Module { |
| 2055 | 2599 | get(key, options) { |
| 2056 | 2600 | options = options || {}; |
| 2057 | 2601 | let storage; |
| @@ -2133,9 +2677,9 @@ | ||
| 2133 | 2677 | exports["default"] = void 0; |
| 2134 | 2678 | class _default extends elementorModules.Module { |
| 2135 | 2679 | constructor() { |
| 2136 | 2680 | super(); |
| 2137 | - elementorFrontend.elementsHandler.attachHandler('text-path', () => Promise.all(/*! import() | text-path */[__webpack_require__.e("vendors-node_modules_dompurify_dist_purify_cjs_js"), __webpack_require__.e("text-path")]).then(__webpack_require__.bind(__webpack_require__, /*! ./handlers/text-path */ "../modules/shapes/assets/js/frontend/handlers/text-path.js"))); | |
| 2681 | + elementorFrontend.elementsHandler.attachHandler('text-path', () => __webpack_require__.e(/*! import() | text-path */ "text-path").then(__webpack_require__.bind(__webpack_require__, /*! ./handlers/text-path */ "../modules/shapes/assets/js/frontend/handlers/text-path.js"))); | |
| 2138 | 2682 | } |
| 2139 | 2683 | } |
| 2140 | 2684 | exports["default"] = _default; |
| 2141 | 2685 | |
| @@ -2140,23 +2684,22 @@ | ||
| 2140 | 2684 | exports["default"] = _default; |
| 2141 | 2685 | |
| 2142 | 2686 | /***/ }), |
| 2143 | 2687 | |
| 2144 | -/***/ "../node_modules/core-js/internals/a-possible-prototype.js": | |
| 2145 | -/*!*****************************************************************!*\ | |
| 2146 | - !*** ../node_modules/core-js/internals/a-possible-prototype.js ***! | |
| 2147 | - \*****************************************************************/ | |
| 2688 | +/***/ "../node_modules/core-js/internals/an-instance.js": | |
| 2689 | +/*!********************************************************!*\ | |
| 2690 | + !*** ../node_modules/core-js/internals/an-instance.js ***! | |
| 2691 | + \********************************************************/ | |
| 2148 | 2692 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2149 | 2693 | |
| 2150 | 2694 | |
| 2151 | -var isPossiblePrototype = __webpack_require__(/*! ../internals/is-possible-prototype */ "../node_modules/core-js/internals/is-possible-prototype.js"); | |
| 2695 | +var isPrototypeOf = __webpack_require__(/*! ../internals/object-is-prototype-of */ "../node_modules/core-js/internals/object-is-prototype-of.js"); | |
| 2152 | 2696 | |
| 2153 | -var $String = String; | |
| 2154 | 2697 | var $TypeError = TypeError; |
| 2155 | 2698 | |
| 2156 | -module.exports = function (argument) { | |
| 2157 | - if (isPossiblePrototype(argument)) return argument; | |
| 2158 | - throw new $TypeError("Can't set " + $String(argument) + ' as a prototype'); | |
| 2699 | +module.exports = function (it, Prototype) { | |
| 2700 | + if (isPrototypeOf(Prototype, it)) return it; | |
| 2701 | + throw $TypeError('Incorrect invocation'); | |
| 2159 | 2702 | }; |
| 2160 | 2703 | |
| 2161 | 2704 | |
| 2162 | 2705 | /***/ }), |
| @@ -2198,173 +2741,8 @@ | ||
| 2198 | 2741 | |
| 2199 | 2742 | |
| 2200 | 2743 | /***/ }), |
| 2201 | 2744 | |
| 2202 | -/***/ "../node_modules/core-js/internals/error-stack-clear.js": | |
| 2203 | -/*!**************************************************************!*\ | |
| 2204 | - !*** ../node_modules/core-js/internals/error-stack-clear.js ***! | |
| 2205 | - \**************************************************************/ | |
| 2206 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2207 | - | |
| 2208 | - | |
| 2209 | -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "../node_modules/core-js/internals/function-uncurry-this.js"); | |
| 2210 | - | |
| 2211 | -var $Error = Error; | |
| 2212 | -var replace = uncurryThis(''.replace); | |
| 2213 | - | |
| 2214 | -var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd'); | |
| 2215 | -// eslint-disable-next-line redos/no-vulnerable, sonarjs/slow-regex -- safe | |
| 2216 | -var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/; | |
| 2217 | -var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST); | |
| 2218 | - | |
| 2219 | -module.exports = function (stack, dropEntries) { | |
| 2220 | - if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) { | |
| 2221 | - while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, ''); | |
| 2222 | - } return stack; | |
| 2223 | -}; | |
| 2224 | - | |
| 2225 | - | |
| 2226 | -/***/ }), | |
| 2227 | - | |
| 2228 | -/***/ "../node_modules/core-js/internals/function-uncurry-this-accessor.js": | |
| 2229 | -/*!***************************************************************************!*\ | |
| 2230 | - !*** ../node_modules/core-js/internals/function-uncurry-this-accessor.js ***! | |
| 2231 | - \***************************************************************************/ | |
| 2232 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2233 | - | |
| 2234 | - | |
| 2235 | -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "../node_modules/core-js/internals/function-uncurry-this.js"); | |
| 2236 | -var aCallable = __webpack_require__(/*! ../internals/a-callable */ "../node_modules/core-js/internals/a-callable.js"); | |
| 2237 | - | |
| 2238 | -module.exports = function (object, key, method) { | |
| 2239 | - try { | |
| 2240 | - // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | |
| 2241 | - return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method])); | |
| 2242 | - } catch (error) { /* empty */ } | |
| 2243 | -}; | |
| 2244 | - | |
| 2245 | - | |
| 2246 | -/***/ }), | |
| 2247 | - | |
| 2248 | -/***/ "../node_modules/core-js/internals/inherit-if-required.js": | |
| 2249 | -/*!****************************************************************!*\ | |
| 2250 | - !*** ../node_modules/core-js/internals/inherit-if-required.js ***! | |
| 2251 | - \****************************************************************/ | |
| 2252 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2253 | - | |
| 2254 | - | |
| 2255 | -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js"); | |
| 2256 | -var isObject = __webpack_require__(/*! ../internals/is-object */ "../node_modules/core-js/internals/is-object.js"); | |
| 2257 | -var setPrototypeOf = __webpack_require__(/*! ../internals/object-set-prototype-of */ "../node_modules/core-js/internals/object-set-prototype-of.js"); | |
| 2258 | - | |
| 2259 | -// makes subclassing work correct for wrapped built-ins | |
| 2260 | -module.exports = function ($this, dummy, Wrapper) { | |
| 2261 | - var NewTarget, NewTargetPrototype; | |
| 2262 | - if ( | |
| 2263 | - // it can work only with native `setPrototypeOf` | |
| 2264 | - setPrototypeOf && | |
| 2265 | - // we haven't completely correct pre-ES6 way for getting `new.target`, so use this | |
| 2266 | - isCallable(NewTarget = dummy.constructor) && | |
| 2267 | - NewTarget !== Wrapper && | |
| 2268 | - isObject(NewTargetPrototype = NewTarget.prototype) && | |
| 2269 | - NewTargetPrototype !== Wrapper.prototype | |
| 2270 | - ) setPrototypeOf($this, NewTargetPrototype); | |
| 2271 | - return $this; | |
| 2272 | -}; | |
| 2273 | - | |
| 2274 | - | |
| 2275 | -/***/ }), | |
| 2276 | - | |
| 2277 | -/***/ "../node_modules/core-js/internals/is-possible-prototype.js": | |
| 2278 | -/*!******************************************************************!*\ | |
| 2279 | - !*** ../node_modules/core-js/internals/is-possible-prototype.js ***! | |
| 2280 | - \******************************************************************/ | |
| 2281 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2282 | - | |
| 2283 | - | |
| 2284 | -var isObject = __webpack_require__(/*! ../internals/is-object */ "../node_modules/core-js/internals/is-object.js"); | |
| 2285 | - | |
| 2286 | -module.exports = function (argument) { | |
| 2287 | - return isObject(argument) || argument === null; | |
| 2288 | -}; | |
| 2289 | - | |
| 2290 | - | |
| 2291 | -/***/ }), | |
| 2292 | - | |
| 2293 | -/***/ "../node_modules/core-js/internals/normalize-string-argument.js": | |
| 2294 | -/*!**********************************************************************!*\ | |
| 2295 | - !*** ../node_modules/core-js/internals/normalize-string-argument.js ***! | |
| 2296 | - \**********************************************************************/ | |
| 2297 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2298 | - | |
| 2299 | - | |
| 2300 | -var toString = __webpack_require__(/*! ../internals/to-string */ "../node_modules/core-js/internals/to-string.js"); | |
| 2301 | - | |
| 2302 | -module.exports = function (argument, $default) { | |
| 2303 | - return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument); | |
| 2304 | -}; | |
| 2305 | - | |
| 2306 | - | |
| 2307 | -/***/ }), | |
| 2308 | - | |
| 2309 | -/***/ "../node_modules/core-js/internals/object-set-prototype-of.js": | |
| 2310 | -/*!********************************************************************!*\ | |
| 2311 | - !*** ../node_modules/core-js/internals/object-set-prototype-of.js ***! | |
| 2312 | - \********************************************************************/ | |
| 2313 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2314 | - | |
| 2315 | - | |
| 2316 | -/* eslint-disable no-proto -- safe */ | |
| 2317 | -var uncurryThisAccessor = __webpack_require__(/*! ../internals/function-uncurry-this-accessor */ "../node_modules/core-js/internals/function-uncurry-this-accessor.js"); | |
| 2318 | -var isObject = __webpack_require__(/*! ../internals/is-object */ "../node_modules/core-js/internals/is-object.js"); | |
| 2319 | -var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "../node_modules/core-js/internals/require-object-coercible.js"); | |
| 2320 | -var aPossiblePrototype = __webpack_require__(/*! ../internals/a-possible-prototype */ "../node_modules/core-js/internals/a-possible-prototype.js"); | |
| 2321 | - | |
| 2322 | -// `Object.setPrototypeOf` method | |
| 2323 | -// https://tc39.es/ecma262/#sec-object.setprototypeof | |
| 2324 | -// Works with __proto__ only. Old v8 can't work with null proto objects. | |
| 2325 | -// eslint-disable-next-line es/no-object-setprototypeof -- safe | |
| 2326 | -module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () { | |
| 2327 | - var CORRECT_SETTER = false; | |
| 2328 | - var test = {}; | |
| 2329 | - var setter; | |
| 2330 | - try { | |
| 2331 | - setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set'); | |
| 2332 | - setter(test, []); | |
| 2333 | - CORRECT_SETTER = test instanceof Array; | |
| 2334 | - } catch (error) { /* empty */ } | |
| 2335 | - return function setPrototypeOf(O, proto) { | |
| 2336 | - requireObjectCoercible(O); | |
| 2337 | - aPossiblePrototype(proto); | |
| 2338 | - if (!isObject(O)) return O; | |
| 2339 | - if (CORRECT_SETTER) setter(O, proto); | |
| 2340 | - else O.__proto__ = proto; | |
| 2341 | - return O; | |
| 2342 | - }; | |
| 2343 | -}() : undefined); | |
| 2344 | - | |
| 2345 | - | |
| 2346 | -/***/ }), | |
| 2347 | - | |
| 2348 | -/***/ "../node_modules/core-js/internals/to-string.js": | |
| 2349 | -/*!******************************************************!*\ | |
| 2350 | - !*** ../node_modules/core-js/internals/to-string.js ***! | |
| 2351 | - \******************************************************/ | |
| 2352 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2353 | - | |
| 2354 | - | |
| 2355 | -var classof = __webpack_require__(/*! ../internals/classof */ "../node_modules/core-js/internals/classof.js"); | |
| 2356 | - | |
| 2357 | -var $String = String; | |
| 2358 | - | |
| 2359 | -module.exports = function (argument) { | |
| 2360 | - if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string'); | |
| 2361 | - return $String(argument); | |
| 2362 | -}; | |
| 2363 | - | |
| 2364 | - | |
| 2365 | -/***/ }), | |
| 2366 | - | |
| 2367 | 2745 | /***/ "../node_modules/core-js/modules/web.dom-exception.stack.js": |
| 2368 | 2746 | /*!******************************************************************!*\ |
| 2369 | 2747 | !*** ../node_modules/core-js/modules/web.dom-exception.stack.js ***! |
| 2370 | 2748 | \******************************************************************/ |
| @@ -2371,9 +2749,9 @@ | ||
| 2371 | 2749 | /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { |
| 2372 | 2750 | |
| 2373 | 2751 | |
| 2374 | 2752 | var $ = __webpack_require__(/*! ../internals/export */ "../node_modules/core-js/internals/export.js"); |
| 2375 | -var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js"); | |
| 2753 | +var global = __webpack_require__(/*! ../internals/global */ "../node_modules/core-js/internals/global.js"); | |
| 2376 | 2754 | var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "../node_modules/core-js/internals/get-built-in.js"); |
| 2377 | 2755 | var createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ "../node_modules/core-js/internals/create-property-descriptor.js"); |
| 2378 | 2756 | var defineProperty = (__webpack_require__(/*! ../internals/object-define-property */ "../node_modules/core-js/internals/object-define-property.js").f); |
| 2379 | 2757 | var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "../node_modules/core-js/internals/has-own-property.js"); |
| @@ -2394,9 +2772,9 @@ | ||
| 2394 | 2772 | var argumentsLength = arguments.length; |
| 2395 | 2773 | var message = normalizeStringArgument(argumentsLength < 1 ? undefined : arguments[0]); |
| 2396 | 2774 | var name = normalizeStringArgument(argumentsLength < 2 ? undefined : arguments[1], 'Error'); |
| 2397 | 2775 | var that = new NativeDOMException(message, name); |
| 2398 | - var error = new Error(message); | |
| 2776 | + var error = Error(message); | |
| 2399 | 2777 | error.name = DOM_EXCEPTION; |
| 2400 | 2778 | defineProperty(that, 'stack', createPropertyDescriptor(1, clearErrorStack(error.stack, 1))); |
| 2401 | 2779 | inheritIfRequired(that, this, $DOMException); |
| 2402 | 2780 | return that; |
| @@ -2403,13 +2781,13 @@ | ||
| 2403 | 2781 | }; |
| 2404 | 2782 | |
| 2405 | 2783 | var DOMExceptionPrototype = $DOMException.prototype = NativeDOMException.prototype; |
| 2406 | 2784 | |
| 2407 | -var ERROR_HAS_STACK = 'stack' in new Error(DOM_EXCEPTION); | |
| 2785 | +var ERROR_HAS_STACK = 'stack' in Error(DOM_EXCEPTION); | |
| 2408 | 2786 | var DOM_EXCEPTION_HAS_STACK = 'stack' in new NativeDOMException(1, 2); |
| 2409 | 2787 | |
| 2410 | 2788 | // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe |
| 2411 | -var descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(globalThis, DOM_EXCEPTION); | |
| 2789 | +var descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(global, DOM_EXCEPTION); | |
| 2412 | 2790 | |
| 2413 | 2791 | // Bun ~ 0.1.1 DOMException have incorrect descriptor and we can't redefine it |
| 2414 | 2792 | // https://github.com/Jarred-Sumner/bun/issues/399 |
| 2415 | 2793 | var BUGGY_DESCRIPTOR = !!descriptor && !(descriptor.writable && descriptor.configurable); |