!function(e,t){"use strict";ElementsKit_Helper.registerWidget("elementskit-woo-mini-cart.default",(function(t){var i=t.find(".ekit-dropdown-back");e(document.body).data("ekitMiniCartFragmentsBound")||(e(document.body).data("ekitMiniCartFragmentsBound",!0),e(document.body).on("updated_wc_div updated_cart_totals wc_cart_emptied",(function(){e(document.body).trigger("wc_fragment_refresh")})),e(document.body).on("wc_fragments_refreshed wc_fragments_loaded added_to_cart removed_from_cart",(function(){e(document.body).trigger("wc_fragment_refresh")}))),i.on("click mouseenter mouseleave",(function(t){var i=e(this),n=i.hasClass("ekit-mini-cart-visibility-click"),o=i.hasClass("ekit-mini-cart-visibility-hover"),a=i.find(".ekit-mini-cart-container");"click"===t.type&&n&&!e(t.target).parents("div").hasClass("ekit-mini-cart-container")?a.fadeToggle():"mouseenter"===t.type&&o?a.fadeIn():"mouseleave"===t.type&&o&&a.fadeOut()})),t.find(".ekit-mini-cart--backdrop, .ekit-dropdown-back .ekit-svg-icon, .ekit-dropdown-back > i, .ekit-dropdown-back .ekit-mini-cart-text, .ekit-dropdown-back > .ekit-basket-item-count").on("click",(function(){i.toggleClass("is--active")}))}))}(jQuery,window.elementorFrontend);