PATH:
home
/
ajwellnessmassag
/
public_html
/
wp-content
/
plugins
/
elementor-pro
/
assets
/
js
/*! elementor-pro - v3.31.0 - 10-08-2025 */ "use strict"; (self["webpackChunkelementor_pro"] = self["webpackChunkelementor_pro"] || []).push([["woocommerce-menu-cart"],{ /***/ "../modules/woocommerce/assets/js/frontend/handlers/menu-cart.js": /*!***********************************************************************!*\ !*** ../modules/woocommerce/assets/js/frontend/handlers/menu-cart.js ***! \***********************************************************************/ /***/ ((__unused_webpack_module, exports) => { Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; class _default extends elementorModules.frontend.handlers.Base { getDefaultSettings() { return { selectors: { container: '.elementor-menu-cart__container', main: '.elementor-menu-cart__main', toggle: '.elementor-menu-cart__toggle', toggleButton: '#elementor-menu-cart__toggle_button', toggleWrapper: '.elementor-menu-cart__toggle_wrapper', closeButton: '.elementor-menu-cart__close-button, .elementor-menu-cart__close-button-custom', productList: '.elementor-menu-cart__products' }, classes: { isShown: 'elementor-menu-cart--shown' } }; } getDefaultElements() { const selectors = this.getSettings('selectors'); return { $container: this.$element.find(selectors.container), $main: this.$element.find(selectors.main), $toggleWrapper: this.$element.find(selectors.toggleWrapper), $closeButton: this.$element.find(selectors.closeButton) }; } toggleCart() { if (!this.isCartOpen) { this.showCart(); } else { this.hideCart(); } } showCart() { if (this.isCartOpen) { return; } const classes = this.getSettings('classes'), selectors = this.getSettings('selectors'); this.isCartOpen = true; this.$element.addClass(classes.isShown); this.$element.find(selectors.toggleButton).attr('aria-expanded', true); this.elements.$main.attr('aria-hidden', false); this.elements.$container.attr('aria-hidden', false); } hideCart() { if (!this.isCartOpen) { return; } const classes = this.getSettings('classes'), selectors = this.getSettings('selectors'); this.isCartOpen = false; this.$element.removeClass(classes.isShown); this.$element.find(selectors.toggleButton).attr('aria-expanded', false); this.elements.$main.attr('aria-hidden', true); this.elements.$container.attr('aria-hidden', true); } automaticallyOpenCart() { const settings = this.getElementSettings(); if ('yes' === settings.automatically_open_cart) { this.showCart(); } } refreshFragments(eventType) { let data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; if (elementorFrontend.isEditMode() && elementorPro.modules.woocommerce.didManuallyTriggerAddToCartEvent(data)) { return false; } const templatesInPage = []; jQuery.each(elementorFrontend.documentsManager.documents, index => { templatesInPage.push(index); }); jQuery.ajax({ type: 'POST', url: elementorProFrontend.config.ajaxurl, context: this, data: { action: 'elementor_menu_cart_fragments', templates: templatesInPage, _nonce: ElementorProFrontendConfig.woocommerce.menu_cart.fragments_nonce, is_editor: elementorFrontend.isEditMode() }, success(successData) { if (successData?.fragments) { jQuery.each(successData.fragments, (key, value) => { jQuery(key).replaceWith(value); }); } }, complete() { if ('added_to_cart' === eventType) { this.automaticallyOpenCart(); } } }); } bindEvents() { const menuCart = elementorProFrontend.config.woocommerce.menu_cart, noQueryParams = -1 === menuCart.cart_page_url.indexOf('?'), currentUrl = noQueryParams ? window.location.origin + window.location.pathname : window.location.href, cartUrl = menuCart.cart_page_url, isCart = menuCart.cart_page_url === currentUrl, isCheckout = menuCart.checkout_page_url === currentUrl, selectors = this.getSettings('selectors'); // If on cart page or checkout page don't open cart, rather stay on, or go to cart page, and bail from init. if (isCart && isCheckout) { this.$element.find(selectors.toggleButton).attr('href', cartUrl); return; } // Cache cart open state. const classes = this.getSettings('classes'); this.isCartOpen = this.$element.hasClass(classes.isShown); const settings = this.getElementSettings(); if ('mouseover' === settings.open_cart) { // Enable opening of mini-cart and side-cart by hover (include click so we can `preventDefault()` page-top jump on click). this.elements.$toggleWrapper.on('mouseover click', selectors.toggleButton, event => { event.preventDefault(); this.showCart(); }); // Close Cart on mouseleave. this.elements.$toggleWrapper.on('mouseleave', () => this.hideCart()); } else { // Enable opening of mini-cart and side-cart by click. this.elements.$toggleWrapper.on('click', selectors.toggleButton, event => { event.preventDefault(); this.toggleCart(); }); } // Listen for clicks outside to close any open cart. elementorFrontend.elements.$document.on('click', event => { if (!this.isCartOpen) { return; } const $target = jQuery(event.target); // Don't close if this is click on the main panel or toggle button. if ($target.closest(this.elements.$main).length || $target.closest(selectors.toggle).length) { return; } this.hideCart(); }); this.elements.$closeButton.on('click', event => { event.preventDefault(); this.hideCart(); }); elementorFrontend.elements.$document.on('keyup', event => { const ESC_KEY = 27; if (ESC_KEY === event.keyCode) { this.hideCart(); } }); elementorFrontend.elements.$body.on('wc_fragments_refreshed removed_from_cart added_to_cart', (event, data) => this.refreshFragments(event.type, data)); // Govern the height of the mini-cart dropdown. elementorFrontend.addListenerOnce(this.getUniqueHandlerID() + '_window_resize_dropdown', 'resize', () => this.governDropdownHeight()); elementorFrontend.elements.$body.on('wc_fragments_loaded wc_fragments_refreshed', () => this.governDropdownHeight()); } unbindEvents() { elementorFrontend.removeListeners(this.getUniqueHandlerID() + '_window_resize_dropdown', 'resize'); } onInit() { super.onInit(); /** * When the page is reloaded after an item is added to cart, and the user activated the * "Automatically Open Cart" option, the cart should open to show the updated contents. */ if (elementorProFrontend.config.woocommerce.productAddedToCart) { this.automaticallyOpenCart(); } // Govern the height of the mini-cart dropdown. this.governDropdownHeight(); } governDropdownHeight() { const settings = this.getElementSettings(); // Only do this for mini-cart. if ('mini-cart' !== settings.cart_type) { return; } // Elements need to be re-instantiated every time as WooCommerce reloads the toggle button // and cart contents in our widget when the cart changes e.g. adding products to the cart. const selectors = this.getSettings('selectors'); const $productList = this.$element.find(selectors.productList), $toggle = this.$element.find(selectors.toggle); // Make sure required elements exist. if (!$productList.length || !$toggle.length) { return; } // Remove max-height of productList so we can take new measurements. this.$element.find(selectors.productList).css('max-height', ''); // Calculate what the height of the productList should be based on elements above, below and it's vertical position. const windowHeight = document.documentElement.clientHeight, toggleHeight = $toggle.height() + parseInt(this.elements.$main.css('margin-top')), toggleTopPosition = $toggle[0].getBoundingClientRect().top, productListHeight = $productList.height(), dropdownWithoutViewportHeight = this.elements.$main.prop('scrollHeight') - productListHeight, extraBottomSpacing = 30, maxViewportHeight = windowHeight - toggleTopPosition - toggleHeight - dropdownWithoutViewportHeight - extraBottomSpacing, optimalViewportHeight = Math.max(120, maxViewportHeight); // Apply max-height to the productList. $productList.css('max-height', optimalViewportHeight); } } exports["default"] = _default; /***/ }) }]); //# sourceMappingURL=woocommerce-menu-cart.81f5bafc26b94cc86238.bundle.js.map
[+]
..
[-] screenshot.min.js
[edit]
[-] load-more.8b46f464e573feab5dd7.bundle.min.js
[edit]
[-] floating-bars-var-2.c6f25c32db86d04f5e8b.bundle.js
[edit]
[-] portfolio.4cd5da34009c30cb5d70.bundle.min.js
[edit]
[-] taxonomy-filter.ce05524d53c2d4c5aa24.bundle.js
[edit]
[-] load-more.f5ecc1c66872d0bd2d17.bundle.js
[edit]
[-] posts.aec59265318492b89cb5.bundle.min.js
[edit]
[-] floating-bars-var-3.acd1ad79ebb515e353c9.bundle.min.js
[edit]
[-] mega-menu-stretch-content.0d76e4a3b7bf65ff6f9b.bundle.js
[edit]
[-] contact-buttons-var-10.49a45dadc9c2facb4972.bundle.js
[edit]
[-] gallery.1628df47530ab42dafba.bundle.min.js
[edit]
[-] animated-headline.375998d4790797e91f21.bundle.js
[edit]
[-] posts.e99f84b83c36d4568ffe.bundle.js
[edit]
[-] stripe-button.49130d6eecb5ebc8afbd.bundle.min.js
[edit]
[-] woocommerce-notices.bcee9b5e1c8f65ac7927.bundle.min.js
[edit]
[-] hotspot.d513dd152bf605a2ffbf.bundle.js
[edit]
[-] off-canvas.41d355285c19e4440547.bundle.min.js
[edit]
[-] admin.min.js
[edit]
[-] elements-handlers.js
[edit]
[-] video-playlist.9e1bbc4fcb37864c89d6.bundle.js
[edit]
[-] share-buttons.63d984f8c96d1e053bc0.bundle.min.js
[edit]
[-] woocommerce-notices.ee407e8319d2ee060119.bundle.js
[edit]
[-] media-carousel.04412cb9b4479aa37408.bundle.js
[edit]
[-] archive-posts.6e398ddd4a81a78bcea3.bundle.js
[edit]
[-] video-playlist.af20fd9fd8778929829e.bundle.min.js
[edit]
[-] loop-filter-editor.67dfa5d044d7bd86bd6f.bundle.min.js
[edit]
[-] product-add-to-cart.51a22e1fbd8f914ab3d5.bundle.min.js
[edit]
[-] contact-buttons.6f0dc663eb685c187fea.bundle.js
[edit]
[-] taxonomy-filter.e839f2be32b7ea832b34.bundle.min.js
[edit]
[-] loop.da94e53412e56933f721.bundle.js
[edit]
[-] mega-menu-editor.a6e92bb2ec3d58f8438a.bundle.min.js
[edit]
[-] woocommerce-my-account.7a9d36b2c12b970c6616.bundle.js
[edit]
[-] form.5fb35271b8ba3fb1e7d6.bundle.min.js
[edit]
[-] search-form.8941aba5c12cdb05fb7c.bundle.js
[edit]
[-] frontend.js
[edit]
[-] 8b11be0d97d58e135d30.bundle.js
[edit]
[-] mega-menu.1344912ff0c40681bb13.bundle.js
[edit]
[-] display-conditions.js
[edit]
[-] editor.js
[edit]
[-] app.js
[edit]
[-] table-of-contents.430b97825da33e6685ed.bundle.js
[edit]
[-] contact-buttons-var-10.0dc9f4c9e85e7c4baa3a.bundle.min.js
[edit]
[-] search.3db30c59360e14bb4448.bundle.min.js
[edit]
[-] paypal-button.55ffb013a3fe565f55a5.bundle.js
[edit]
[-] off-canvas-editor.d20b8e528d36b21a024c.bundle.js
[edit]
[-] floating-bars-var-3.6cef001471f04cdb931e.bundle.js
[edit]
[-] loop-filter-editor.46a4c013b80a381a50c9.bundle.js
[edit]
[-] slides.bcd16bbde90338846bd7.bundle.js
[edit]
[-] editor.min.js
[edit]
[-] woocommerce-purchase-summary.3676ccd8c29ef0924b84.bundle.min.js
[edit]
[-] table-of-contents.339d2b8b27914b2a038a.bundle.min.js
[edit]
[-] display-conditions.min.js
[edit]
[-] floating-bars-var-2.1a487dc027431fb485cd.bundle.min.js
[edit]
[-] jszip.vendor.eba4ace24dcc63eadac0.bundle.min.js
[edit]
[-] ajax-pagination.2090b5f4906bcda1dcc2.bundle.min.js
[edit]
[-] nested-carousel-editor.6d7500036d0766bbe2fc.bundle.min.js
[edit]
[-] product-add-to-cart.d5883897e035f9c53c5e.bundle.js
[edit]
[-] animated-headline.588a0449647bd4f113f3.bundle.min.js
[edit]
[-] elements-handlers.min.js
[edit]
[-] 1644e3d37816d939acca.bundle.js
[edit]
[-] lottie.e74a53bfa4c0bd939250.bundle.min.js
[edit]
[-] menu-title-keyboard-handler.c3673f59d6c5e47d2431.bundle.js
[edit]
[-] off-canvas-editor.3bc6e394bd20d4fd64dc.bundle.min.js
[edit]
[-] page-transitions.js
[edit]
[-] 0726b2d81686a5392236.bundle.min.js
[edit]
[-] mega-menu.b9f434b612d371d24d50.bundle.min.js
[edit]
[-] nav-menu.e135a0d0f766c7f455ff.bundle.js
[edit]
[-] countdown.6e87ca40d36793d92aea.bundle.js
[edit]
[-] lottie.a02a01f29c0733918ac7.bundle.js
[edit]
[-] search-form.b7065999d77832a1b764.bundle.min.js
[edit]
[-] progress-tracker.8cccdda9737c272489fc.bundle.min.js
[edit]
[-] preview.min.js
[edit]
[-] progress-tracker.fd1d31a26340ed74e10a.bundle.js
[edit]
[-] woocommerce-purchase-summary.c8767542fa302a7f351f.bundle.js
[edit]
[-] page-transitions.min.js
[edit]
[-] carousel.298f1fc9c115422aad0e.bundle.js
[edit]
[-] e3f4acef69f217322320.bundle.min.js
[edit]
[-] woocommerce-menu-cart.81f5bafc26b94cc86238.bundle.js
[edit]
[-] nested-carousel-editor.0df35e0e1a284d4bd18b.bundle.js
[edit]
[-] form-submission-admin.js
[edit]
[-] preview.js
[edit]
[-] media-carousel.afbaabb756a7c18ddb09.bundle.min.js
[edit]
[-] nested-carousel.776ab95ca4daa003622e.bundle.min.js
[edit]
[-] share-buttons.fda49c1691f4a352c7ef.bundle.js
[edit]
[-] carousel.3620fca501cb18163600.bundle.min.js
[edit]
[-] search.5c7852be6fc67209b3a8.bundle.js
[edit]
[-] woocommerce-menu-cart.eb61fe086245485310a4.bundle.min.js
[edit]
[-] screenshot.js
[edit]
[-] code-highlight.d4867c919d0858f748df.bundle.js
[edit]
[-] nav-menu.a23fbd67486c5bedf26c.bundle.min.js
[edit]
[-] woocommerce-my-account.4e940a8b4a52d1c98c5c.bundle.min.js
[edit]
[-] code-highlight.d86022c8668c4b072592.bundle.min.js
[edit]
[-] popup.f7b15b2ca565b152bf98.bundle.min.js
[edit]
[-] admin.js
[edit]
[-] archive-posts.16a93245d08246e5e540.bundle.min.js
[edit]
[-] custom-code.js
[edit]
[-] slides.c0029640cbdb48199471.bundle.min.js
[edit]
[-] frontend.min.js
[edit]
[-] ajax-pagination.2390838f542f1a8d5ed4.bundle.js
[edit]
[-] countdown.0e9e688751d29d07a8d3.bundle.min.js
[edit]
[-] gallery.b7d55bc976e04f751975.bundle.js
[edit]
[-] custom-code.min.js
[edit]
[-] off-canvas.02e30e192bc782084e8a.bundle.js
[edit]
[-] webpack-pro.runtime.min.js
[edit]
[-] portfolio.5727b56368be256d0893.bundle.js
[edit]
[-] jszip.vendor.a3c65615c1de5560962d.bundle.js
[edit]
[-] jszip.vendor.eba4ace24dcc63eadac0.bundle.min.js.LICENSE.txt
[edit]
[-] woocommerce-cart.79b5dc500681930471c6.bundle.js
[edit]
[-] form.a7e78a23dbf43d6f2639.bundle.js
[edit]
[+]
notes
[-] form-submission-admin.min.js
[edit]
[-] e8eba20060a4b0fa29dc.bundle.js
[edit]
[-] nested-carousel.4d07ea83632034f2e72e.bundle.js
[edit]
[-] paypal-button.f4f64e46173f50701949.bundle.min.js
[edit]
[-] webpack-pro.runtime.js
[edit]
[-] loop-carousel.5108cb72ebb124297adb.bundle.js
[edit]
[-] hotspot.fa04300164c35a866a51.bundle.min.js
[edit]
[-] app.min.js
[edit]
[-] popup.996738ad83c089bcc0b9.bundle.js
[edit]
[-] menu-title-keyboard-handler.54fb596274a9cc06267d.bundle.min.js
[edit]
[+]
packages
[-] loop-carousel.f8067ec0c24b628c786e.bundle.min.js
[edit]
[-] stripe-button.cb4b1cf19f1c46430f76.bundle.js
[edit]
[-] mega-menu-editor.e043cd3d7fd180995eb9.bundle.js
[edit]
[-] mega-menu-stretch-content.480e081cebe071d683e8.bundle.min.js
[edit]
[-] woocommerce-cart.d0d01530f5be6736b5d2.bundle.min.js
[edit]
[-] woocommerce-checkout-page.470384546c61ebcaa89d.bundle.js
[edit]
[-] social.f215e8a3efafbdbeb7ef.bundle.min.js
[edit]
[-] social.ac16c075939dcb93f70c.bundle.js
[edit]
[-] woocommerce-checkout-page.943b06275712cd4b96a5.bundle.min.js
[edit]
[-] loop.4a16d82b8b5e3e00f25e.bundle.min.js
[edit]
[-] contact-buttons.33ec3b540b7caec4d0f5.bundle.min.js
[edit]
[-] 0726b2d81686a5392236.bundle.min.js.LICENSE.txt
[edit]