/*! elementor-pro - v3.2.1 - 21-03-2021 */
(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[102],{9428:(e,t,n)=>{"use strict";n(7394)(t,"__esModule",{value:!0}),t.default=void 0,n(1954);var o=elementorModules.frontend.handlers.Base.extend({getDefaultSettings:function getDefaultSettings(){return{selectors:{container:".elementor-menu-cart__container",main:".elementor-menu-cart__main",toggle:".elementor-menu-cart__toggle .elementor-button",closeButton:".elementor-menu-cart__close-button",cartLink:"#elementor-menu-cart__toggle_button"},classes:{isShown:"elementor-menu-cart--shown",lightbox:"elementor-lightbox"}}},getDefaultElements:function getDefaultElements(){var e=this.getSettings("selectors"),t={};return t.$container=this.$element.find(e.container),t.$main=this.$element.find(e.main),t.$toggle=this.$element.find(e.toggle),t.$closeButton=this.$element.find(e.closeButton),t.$cartLink=this.$element.find(e.cartLink),t},toggleAriaExpanded:function toggleAriaExpanded(e){e.attr("aria-expanded",(function(e,t){return void 0===t||"true"!==t}))},removeAttributesOnHide:function removeAttributesOnHide(){var e=this.elements,t=e.$container,n=e.$main,o=this.getSettings("classes");t.removeClass(o.isShown).attr("aria-expanded",!1),n.attr("aria-expanded",!1)},bindEvents:function bindEvents(){var e=this,t=this.elements,n=t.$container,o=t.$main,r=t.$toggle,i=t.$closeButton,a=t.$cartLink,l=this.getSettings("classes");r.on("click",(function(t){var r=-1===ElementorProFrontendConfig.menu_cart.cart_page_url.indexOf("?")?window.location.origin+window.location.pathname:window.location.href,i=ElementorProFrontendConfig.menu_cart.cart_page_url===r,s=ElementorProFrontendConfig.menu_cart.checkout_page_url===r;if(i||s){var c=ElementorProFrontendConfig.menu_cart.cart_page_url;a.attr("href",c),e.removeAttributesOnHide()}else t.preventDefault(),n.toggleClass(l.isShown),e.toggleAriaExpanded(n),e.toggleAriaExpanded(o)})),n.on("click",(function(t){n.hasClass(l.isShown)&&n[0]===t.target&&e.removeAttributesOnHide()})),i.on("click",(function(){e.removeAttributesOnHide()})),elementorFrontend.elements.$document.on("keyup",(function(e){27===e.keyCode&&n.hasClass(l.isShown)&&n.trigger("click")}))}});t.default=o}}]);