1$(document).ready(function(){if($(window).width()<=768){$(".account-dashboard").hide(),$(".account-dashboard:first").show(),$("ul.account-main-links li").click(function(){$("ul.account-main-links").toggleClass("active")}),$("ul.account-main-links").on("click",".init",function(){$(this).closest("ul.account-main-links").children("li:not(.init)").toggle()});var allOptions=$(".account-main-links").children("li:not(.init)");$("ul.account-main-links").on("click","li:not(.init)",function(){allOptions.removeClass("selected"),$(this).addClass("selected"),$("ul.account-main-links").children(".init").html($(this).children("a").text()),allOptions.toggle(),$(".account-dashboard").hide();var activeTab=$(this).find("a").attr("href");return $(activeTab).fadeIn(),!1})}else $(".my-account-options li:first-child").addClass("active"),$(".account-dashboard").hide(),$(".account-dashboard:first").show(),$(".my-account-options li").click(function(){$(".my-account-options li").removeClass("active"),$(this).addClass("active"),$(".account-dashboard").hide();var activeTab=$(this).find("a").attr("href");return $(activeTab).fadeIn(),!1});var productCardMarkup=`<div class="swym-wishlist-detail-content"> 2 <div class="header-title">Wishlist</div> 3 <div class="swym-wishlist-grid"> 4 {{#products}} 5 <a href="{{du}}"aria-label="{{dt}}" data-id="{{empi}}" class="swym-wishlist-item swym-is-anchor" data-variant="{{variantinfo}}"><button id="swym-remove-productBtn" aria-label="Delete" data-variant-id="{{epi}}" data-product-id="{{empi}}" class="swym-delete-btn swym-nav swym-nav-1 swym-is-button"><span class="swym-icon"></span></button> 6 <div class="swym-wishlist-image-wrapper"><img alt="" class="swym-wishlist-image" onerror="imgError(this);" src="{{iu}}"></div><button class="swym-is-button"> 7 <div class="swym-title swym-title-1"> 8 {{dt}}{{hashtags}} 9 </div></button> 10 <div class="swym-variant-title swym-text swym-title-2 swym-variant-title-spacer"> 11 {{variantinfo}} 12 </div> 13 <div class="swym-product-price swym-text swym-text-1"> 14 <div class="swym-product-final-price swym-value"> 15 {{pr}} 16 </div> 17 </div> 18 <button id="swym-custom-add-toCartBtn" data-state-cart="{{#isInCart}}swym-added{{/isInCart}}"data-product-url="{{du}}" data-variant-id="{{epi}}" data-product-id="{{empi}}"class="swym-add-to-cart-btn swym-button swym-button-1 swym-is-button swym-is-button"> 19 Add to bag 20 </button> 21 </a> 22 {{/products}} 23 </div> 24 </div>`;function imgError(image){return image.onerror="",image.src="https://cdn.shopify.com/s/files/1/0610/5687/6767/files/placeholder-img.png?v=1639596430",!0}function getVariantInfo(variants){try{let variantKeys=variants&&variants!="[]"?Object.keys(JSON.parse(variants)[0]):[],variantinfo;return variantKeys.length>0?(variantinfo=variantKeys[0],variantinfo=="Default Title"&&(variantinfo="")):variantinfo="",variantinfo}catch{return variants}}window.SwymCallbacks||(window.SwymCallbacks=[]),window.SwymCallbacks.push(swymRenderWishlist);function swymRenderWishlist(swat){swat.fetch(function(products){var wishlistContentsContainer=document.getElementById("account-wishlist-container");if(!products.length){var emptyTemplate=`<div class="swym-wishlist-detail-content"> 25 <div class="swym-empty-wishlist-container"> 26 <h3 class="swym-empty-wishlist-title swym-heading swym-heading-1">Love It? Add to My Wishlist</h3> 27 <p class="swym-empty-wishlist-text swym-text swym-text-1">My Wishlist allows you to keep track of all of your favorites and shopping activity whether you're on your computer, phone, or tablet. You won't have to waste time searching all over again for that item you loved on your phone the other day - it's all here in one place!</p> 28 <a href="/" class="swym-empty-wishlist-continue-btn swym-button swym-button-1 swym-is-button swym-bg-2 swym-color-4">Continue shopping</a> 29 </div> 30 </div>`;$("body").find("#account-wishlist-container").html(emptyTemplate);return}var ids="",formattedWishlistedProducts=products.map(function(p,i){theme.Currency&&p.pr&&(p.pr=theme.Currency.formatMoney(p.pr*100*Shopify.currency.rate,"${{amount}} "+Shopify.currency.active)),p=SwymUtils.formatProductPrice(p),p.isInCart=_swat.platform.isInDeviceCart(p.epi)||p.et==_swat.EventTypes.addToCart,p.variantinfo=p.vi?getVariantInfo(p.vi):"";const convertedID=btoa(`gid://shopify/Product/${p.empi}`);return ids+=`"${convertedID}",`,p}),productCardsMarkup=SwymUtils.renderTemplateString(productCardMarkup,{products:formattedWishlistedProducts});wishlistContentsContainer?(wishlistContentsContainer.innerHTML=productCardsMarkup,attachClickListeners()):console.log("Container not found, Wishlist Page element not found")})}function getQuery(ids){return ids=ids.length>0?ids.slice(0,-1):"",` 31 query getProducts { 32 nodes(ids: [${ids}]) { 33 ... on Product { 34 id 35 handle 36 variants(first: 50) { 37 edges { 38 node { 39 id 40 title 41 availableForSale 42 } 43 } 44 } 45 images(first: 2) { 46 edges { 47 node { 48 src 49 } 50 } 51 } 52 } 53 } 54 } 55 `}function onAddToCartClick(e){e.preventDefault();var productId=e.currentTarget.getAttribute("data-product-id"),variantId=e.currentTarget.getAttribute("data-variant-id"),du=e.target.getAttribute("data-product-url");e.target.innerHTML="Adding..",window._swat.replayAddToCart({empi:productId,du},variantId,function(c){e.target.innerHTML="Add to Bag",e.target.setAttribute("data-state-cart","swym-added"),$(".load-updated-minicart-btn").trigger("click")},function(e2){console.log(e2)})}function attachClickListeners(){for(var addToCartButtons=document.querySelectorAll("#swym-custom-add-toCartBtn"),removeBtns=document.querySelectorAll(".swym-delete-btn"),i=0;i<addToCartButtons.length;i++)addToCartButtons[i].addEventListener("click",onAddToCartClick,!1);for(var k=0;k<removeBtns.length;k++)removeBtns[k].addEventListener("click",onRemoveBtnClick,!1)}function onRemoveBtnClick(e){e.preventDefault();var epi=+e.currentTarget.getAttribute("data-variant-id"),empi=+e.currentTarget.getAttribute("data-product-id");epi&&empi&&window._swat.removeFromWishList({epi,empi},function(r){window.SwymCallbacks||(window.SwymCallbacks=[]),window.SwymCallbacks.push(swymRenderWishlist)})}}); 56//# sourceMappingURL=/cdn/shop/t/93/assets/account.js.map?v=49745809439322825251789535117
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.