!function(n){"use strict";window.jnews.ajax_cart_detail=window.jnews.ajax_cart_detail||{},window.jnews.cart=window.jnews.cart||{},window.jnews.ajax_cart_detail={init:function(){var a=this;n(document).on("added_to_cart removed_from_cart wc_fragments_refreshed",(function(){a.ajaxCart()}))},ajaxCart:function(){n.ajax({url:jnews_ajax_url,type:"post",dataType:"json",data:{action:"jnews_ajax_cart_detail"},success:function(a){n(".cartlink").html(a)}})}},window.jnews.cart={init:function(a){void 0===a&&(a=n("body")),a.find(".jeg_cart").each((function(){n(this).on("mouseenter",(function(){n(this).addClass("open")})).on("mouseleave",(function(){n(this).removeClass("open")}))}))}},n((function(){jnews.cart.init(),jnews.ajax_cart_detail.init()}))}(jQuery);