1window.theme=window.theme||{},theme.getCart=async()=>await(await fetch("/cart.json",{method:"GET",headers:{"content-type":"application/json"}})).json(),theme.addFreeGiftInToCart=async()=>{let formData={items:[{id:freeGiftAvailableProductId,quantity:1}]};return await(await fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(formData)})).json()},theme.removeFreeGiftFromCart=async()=>{let formData={updates:{}};return formData.updates[freeGiftAvailableProductId]=0,await(await fetch("/cart/update.json",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(formData)})).json()},theme.findFreeGiftInCart=async(check=!1)=>{if(freeGiftProductId!=null){const{items}=await theme.getCart();if(!items.some(e=>e.product_id===freeGiftProductId))return check&&await theme.addFreeGiftInToCart()}},theme.updateDiscountCode=async(threshold,check)=>{if(console.info(check,threshold),threshold<1){await theme.findFreeGiftInCart(check);const af_custom_coupon_texts=document.querySelectorAll(".af_custom_coupon_text");Array.from(af_custom_coupon_texts).forEach(function(af_custom_coupon_text){af_custom_coupon_text.value="DR708EJP53VF",af_custom_coupon_text.closest(".af_cd_setup").querySelector("button").click()})}else{await theme.removeFreeGiftFromCart();const removeAfTags=document.querySelectorAll(".removeAfTag");Array.from(removeAfTags).forEach(function(removeAfTag){removeAfTag.click()})}},theme.updateProgressBar=async(check=!1)=>{const{total_price}=await theme.getCart(),progressBarThreshold=7900,threshold=progressBarThreshold-total_price,thresholdMoney=theme.Currency.formatMoney(threshold,theme.settings.moneyFormat),progress=(progressBarThreshold-threshold)*100/progressBarThreshold,progressBarText=threshold<1?"You are eligible for Free shipping + Free Sticker Pack":"($) left for Free shipping + Free Sticker Pack",progressBars=document.querySelectorAll(".progressBar");progressBars&&Array.from(progressBars).forEach(function(progressBar){progressBar.querySelector(".progressBarInner").style.width=progress+"%",progressBar.querySelector(".progressBarText").innerHTML=progressBarText.replace("($)",thresholdMoney)})}; 2//# sourceMappingURL=/cdn/shop/t/23/assets/app.js.map?v=66961150823033414611643846500
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.