PATH:
home
/
centosnipponia
/
public_html
/
downloads
/
wp-content
/
plugins
/
elementor-pro
/
assets
/
js
/*! elementor-pro - v4.0.0 - 28-04-2026 */ "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, data = 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.d64f5409c5ae5e079f89.bundle.js.map
[+]
..
[+]
notes
[+]
packages
[-] search-form.9abeafeecde90cf7e0f4.bundle.min.js
[edit]
[-] progress-tracker.7b160888e308c5f64701.bundle.min.js
[edit]
[-] woocommerce-checkout-page.8391e03a51a57a42528a.bundle.min.js
[edit]
[-] woocommerce-menu-cart.d64f5409c5ae5e079f89.bundle.js
[edit]
[-] ajax-pagination.dfa3a82618d618a6a6bf.bundle.js
[edit]
[-] table-of-contents.485ffc086d8923139868.bundle.min.js
[edit]
[-] nested-carousel-editor.30f07a4ca0162c2af3fb.bundle.min.js
[edit]
[-] display-conditions.min.js
[edit]
[-] page-transitions.min.js
[edit]
[-] load-more.862f17c31e360ff1934e.bundle.js
[edit]
[-] floating-bars-var-2.a7a076850ecbe78bb8c7.bundle.js
[edit]
[-] page-transitions.js
[edit]
[-] hotspot.1555f80c1d14215e6b69.bundle.js
[edit]
[-] gallery.cca2358f59857ce6f62f.bundle.min.js
[edit]
[-] b07282a36331e8a0c35e.bundle.js
[edit]
[-] form-submission-admin.min.js
[edit]
[-] jszip.vendor.ee0ba61191fa34e6bbe2.bundle.min.js
[edit]
[-] frontend.min.js
[edit]
[-] preview.js
[edit]
[-] lottie.4cf7a751c39c2d5e59f3.bundle.js
[edit]
[-] woocommerce-my-account.9a2312ed0688c67a0cb5.bundle.js
[edit]
[-] search.eb99cbb2b336e50a443a.bundle.js
[edit]
[-] taxonomy-filter.77f346809c2657dd250a.bundle.js
[edit]
[-] share-buttons.b99b5ff11c944a3a8ea9.bundle.min.js
[edit]
[-] contact-buttons.e1605c5cfaccbff3c14b.bundle.min.js
[edit]
[-] off-canvas-editor.9a4eb354fc664c85a496.bundle.js
[edit]
[-] jszip.vendor.4627e880b5d487f49e7a.bundle.js
[edit]
[-] gallery.1f2d6260aa05f94aca68.bundle.js
[edit]
[-] loop-carousel.5eddbaa4e0c79c44c5c1.bundle.js
[edit]
[-] carousel.f93681c60a8355c99044.bundle.js
[edit]
[-] mega-menu.857df1cf3198ae47b617.bundle.min.js
[edit]
[-] nested-carousel-editor.d0c65ae2ec3f418e3b3f.bundle.js
[edit]
[-] admin.min.js
[edit]
[-] product-add-to-cart.7dd001c520feddf0ce5a.bundle.js
[edit]
[-] elements-handlers.js
[edit]
[-] interactions-pro.min.js
[edit]
[-] woocommerce-purchase-summary.f27e4afffb08961d9bd6.bundle.js
[edit]
[-] popup.467433314d83de8c86ec.bundle.js
[edit]
[-] code-highlight.872070dcb83100cdc6a7.bundle.js
[edit]
[-] bd4b7d0b3467c3b749da.bundle.min.js.LICENSE.txt
[edit]
[-] custom-code.js
[edit]
[-] posts.844727d8428792223d2f.bundle.min.js
[edit]
[-] media-carousel.1eb08e97c13152575144.bundle.js
[edit]
[-] off-canvas.82d118980fb5aa03c82b.bundle.min.js
[edit]
[-] contact-buttons-var-10.11bf4233106e1245bd61.bundle.min.js
[edit]
[-] popup.61d4fcab8891b2e07802.bundle.min.js
[edit]
[-] video-playlist.d7d184236c3e54fc0c27.bundle.js
[edit]
[-] portfolio.d389311c484631ccbb99.bundle.js
[edit]
[-] loop-carousel.881847b13e8fe1f8bfc2.bundle.min.js
[edit]
[-] animated-headline.248bbeadaf74dd446e7d.bundle.js
[edit]
[-] e8fec410b4ec8b8ad5e5.bundle.js
[edit]
[-] interactions-pro.js
[edit]
[-] nav-menu.393f7e8d1eb984d695bc.bundle.js
[edit]
[-] countdown.05b148ca20af32fc8e9f.bundle.min.js
[edit]
[-] editor-interactions-pro.js
[edit]
[-] off-canvas.c6c9ad84eff54adcd9f3.bundle.js
[edit]
[-] paypal-button.5c63e4c8f36fb06aff31.bundle.min.js
[edit]
[-] archive-posts.0b71f7023819e3872142.bundle.min.js
[edit]
[-] ajax-pagination.505018eb312c83998279.bundle.min.js
[edit]
[-] webpack-pro.runtime.js
[edit]
[-] custom-code.min.js
[edit]
[-] form.cfd61a9174be80f835c6.bundle.min.js
[edit]
[-] menu-title-keyboard-handler.b3891112675eb0b0c4d5.bundle.min.js
[edit]
[-] stripe-button.ff670b274b64f1097386.bundle.js
[edit]
[-] bd4b7d0b3467c3b749da.bundle.min.js
[edit]
[-] floating-bars-var-3.c5d9c759b0475977fd76.bundle.js
[edit]
[-] woocommerce-notices.181b8701c45ec5374829.bundle.min.js
[edit]
[-] table-of-contents.8496840ef16d1ad4138f.bundle.js
[edit]
[-] nested-carousel.659b0373371215e60dab.bundle.min.js
[edit]
[-] slides.8e9b74f1b31471377df8.bundle.min.js
[edit]
[-] app.js
[edit]
[-] share-buttons.c76474949213ab8d37c0.bundle.js
[edit]
[-] woocommerce-my-account.ab469f426496c628ac6c.bundle.min.js
[edit]
[-] woocommerce-checkout-page.1e854a92527f7870a712.bundle.js
[edit]
[-] slides.aefbc8effd03bc1b7881.bundle.js
[edit]
[-] animated-headline.bc08854fb1e1a80434b2.bundle.min.js
[edit]
[-] search.f239247b514b4d0e8743.bundle.min.js
[edit]
[-] loop-filter-editor.e5be4d8fdcb9e22b57f7.bundle.js
[edit]
[-] webpack-pro.runtime.min.js
[edit]
[-] mega-menu-editor.7a18763e360ce7e0eacc.bundle.js
[edit]
[-] 38a015cfd4402fcba18c.bundle.js
[edit]
[-] code-highlight.38ec4828db8d33cccbe9.bundle.min.js
[edit]
[-] video-playlist.d48e1a11007fe8c248f8.bundle.min.js
[edit]
[-] posts.b01cefd7be5b5933ef48.bundle.js
[edit]
[-] media-carousel.87c2cf115553a2c4f709.bundle.min.js
[edit]
[-] editor.min.js
[edit]
[-] floating-bars-var-3.e9e9c0ea3c6fb0e51c58.bundle.min.js
[edit]
[-] stripe-button.b7e32b5d713d60752c7e.bundle.min.js
[edit]
[-] product-add-to-cart.a4f88a0c19e95b3912b6.bundle.min.js
[edit]
[-] display-conditions.js
[edit]
[-] mega-menu-stretch-content.65ac3ff61cbda73d513e.bundle.js
[edit]
[-] archive-posts.d82fc1f6376a91acb912.bundle.js
[edit]
[-] frontend.js
[edit]
[-] jszip.vendor.ee0ba61191fa34e6bbe2.bundle.min.js.LICENSE.txt
[edit]
[-] woocommerce-cart.9131ef5e40333f8066dd.bundle.min.js
[edit]
[-] paypal-button.557bf338d556d8411f0e.bundle.js
[edit]
[-] mega-menu-editor.2c998fb188047136dde3.bundle.min.js
[edit]
[-] lottie.55ad84218daed1323133.bundle.min.js
[edit]
[-] elements-handlers.min.js
[edit]
[-] form.333cc493ca6159f7ee0e.bundle.js
[edit]
[-] admin.js
[edit]
[-] woocommerce-menu-cart.33fbf47b819947e7a2a7.bundle.min.js
[edit]
[-] menu-title-keyboard-handler.000fb4658b703c6ebe56.bundle.js
[edit]
[-] social.de5cec83bf689b2f1f01.bundle.min.js
[edit]
[-] loop-filter-editor.66aa1bfab17d9f314834.bundle.min.js
[edit]
[-] screenshot.js
[edit]
[-] taxonomy-filter.6526351a1205655def47.bundle.min.js
[edit]
[-] contact-buttons.0f9a28de84eecdb341e1.bundle.js
[edit]
[-] editor-interactions-pro.min.js
[edit]
[-] load-more.7c4417f8a727b79f546f.bundle.min.js
[edit]
[-] mega-menu-stretch-content.7ed04741ba7d5a80c556.bundle.min.js
[edit]
[-] screenshot.min.js
[edit]
[-] nested-carousel.925fbc1c35869d1767d5.bundle.js
[edit]
[-] woocommerce-purchase-summary.118e54b95a68f0ad8c09.bundle.min.js
[edit]
[-] carousel.e2af910b095554625156.bundle.min.js
[edit]
[-] off-canvas-editor.ff99e117444b8e4b9d09.bundle.min.js
[edit]
[-] preview.min.js
[edit]
[-] countdown.7bd51efbed8eaac97b16.bundle.js
[edit]
[-] b24baa04ab276a4dc8a2.bundle.min.js
[edit]
[-] woocommerce-notices.a2feb6e26254257dbe93.bundle.js
[edit]
[-] hotspot.737497535441dc0bc037.bundle.min.js
[edit]
[-] woocommerce-cart.b85d04bc7b7a472432cf.bundle.js
[edit]
[-] form-submission-admin.js
[edit]
[-] loop.8f668e18a5d491cc01b7.bundle.js
[edit]
[-] progress-tracker.26b12b208974a26b52d0.bundle.js
[edit]
[-] floating-bars-var-2.5287acd8570f1ce2dde3.bundle.min.js
[edit]
[-] loop.1594a1df76e87a11eda2.bundle.min.js
[edit]
[-] mega-menu.9c175c27b10a1a51ffad.bundle.js
[edit]
[-] nav-menu.3afa8f5eb1fef7c22561.bundle.min.js
[edit]
[-] editor.js
[edit]
[-] app.min.js
[edit]
[-] contact-buttons-var-10.6caef1cb29200dd63f5a.bundle.js
[edit]
[-] social.b8ce24160d1e761ca0a6.bundle.js
[edit]
[-] search-form.2fe57bcace4909ad8f6a.bundle.js
[edit]
[-] portfolio.3d0e387cc28c07bae511.bundle.min.js
[edit]
[-] .htaccess.disabled
[edit]