1function postToWishlist(){$("#wish-list").submit(function(e){e.preventDefault();var postData=$(this).serializeArray(),formURL=$(this).attr("action");$.ajax({url:formURL,type:"POST",data:postData,success:function(data,textStatus){console.log(textStatus),$(".js-wish-list").empty().html('<p>This product is in your <a href="/pages/wish-list">wishlist</a></p>')},error:function(){$(this).append("<p>I'm afraid that didn't work.</p>")}})})}function removeFromWishlist($this){var $elem=$this.closest("li"),tagID=$elem.attr("id"),$form=$("#remove");$("#remove-value").attr("value",tagID);var postData=$form.serializeArray(),formURL=$form.attr("action");$.ajax({url:formURL,type:"POST",data:postData,success:function(data,textStatus){console.log(textStatus),$elem.remove(),$("ul.wishlist li").length==0?$("#wishlist-email-link").empty().html("<p>Your wish list is currently empty.</p>"):updateEmailList()},error:function(){$(this).append("<p>I'm afraid that didn't work.</p>")}})}function updateEmailList(){var currentURL=window.location.protocol+"//"+window.location.host+window.location.pathname;$.ajax({url:currentURL,type:"GET",success:function(data,textStatus){console.log(textStatus);var newEmailLink=$(data).find("#wishlist-email-link a");$("#wishlist-email-link").html(newEmailLink)}})}function selectCallback(variant,selector){var $wishList=$(".js-wish-list"),currentURL=window.location.protocol+"//"+window.location.host+window.location.pathname,newURL=currentURL+"?variant="+variant.id;$.ajax({type:"GET",url:newURL,success:function(data){$wishList.empty();var newData=$(data).find(".js-wish-list").html();$wishList.html(newData),postToWishlist()}})}$(".js-remove-button").on("click",function(e){e.preventDefault(),removeFromWishlist($(this))}),$(".js-add-to-cart").on("click",function(e){e.preventDefault(),variantID=$(this).attr("data-id"),$("#product-select").attr("value",variantID),$("#add-variant").submit()}); 2//# sourceMappingURL=/cdn/shop/t/15/assets/wish-list.js.map?v=155482163504671021941753348521
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.