(function(n){n.widget("memo.ShoppingCartOverview",{options:{UrlBasket:null,UrlInitShoppingCart:null},_create:function(){var t=this;n(this.element).on("mouseenter",function(){t._initShoppingCartPreview(!0)});n(".basketlink",this.element).click(function(){t._showBasketPage()})},UpdateInfo:function(){n(".shopping-cart-preview").remove();this._initShoppingCartPreview(!1)},_initShoppingCartPreview:function(t){n(this.element).off("mouseenter");var i=this;n.ajax({type:"GET",url:this.options.UrlInitShoppingCart,success:function(r){n(i.element).append(r);t&&n(".shopping-cart-preview",i.element).show()},error:function(){n(i.element).on("mouseenter",function(){i._initShoppingCartPreview()})}})},destroy:function(){n(this.element).off("hover");n(this.element).off("mouseleave");n(".basketlink",this.element).off("click");n.Widget.prototype.destroy.apply(this,arguments)}})})(jQuery)