1$(".buy-section .addToCart").on("click",function(){var btn=$(this),variant_id=btn.data("variant"),productTitle=btn.data("product-title"),is_bundle=btn.data("bundle"),discountProperty=btn.data("discount-property");if(is_bundle==!0){var bundleItemsData=btn.data("bundle-items"),bundleItems=[];if(typeof bundleItemsData=="string")try{bundleItemsData=JSON.parse(bundleItemsData)}catch(e){console.error("Error parsing bundle items:",e);return}bundleItemsData&&bundleItemsData.items&&bundleItemsData.items[0]&&(bundleItems=bundleItemsData.items[0]);for(var items=[],i=0;i<bundleItems.length;i++)items.push({quantity:bundleItems[i].quantity,id:bundleItems[i].variant_id,properties:{Bundle:productTitle}});$.ajax({url:"/cart/add.js",type:"post",dataType:"json",data:JSON.stringify({items:items}),contentType:"application/json",success:function(response){console.log("Added bundle to cart with =>",items),setTimeout(function(){typeof showVueCart!="undefined"&&showVueCart==!0&&window.miniCart.refreshCart()},2e3)},error:function(xhr,status,error){console.error("Error adding bundle to cart:",error)}})}else $.ajax({url:"/cart/add.json",type:"post",dataType:"json",data:{quantity:1,id:variant_id,properties:{Discount:discountProperty}},success:function(response){console.log(""),console.log("%c"+response.title+"%c was added to cart.","color: green","color: black"),typeof showVueCart!="undefined"&&showVueCart==!0&&window.miniCart.refreshCart();var originalHtml=btn.html();btn.addClass("added"),btn.html("added to cart!"),btn.attr("disabled",!0),setTimeout(function(){btn.removeClass("added"),btn.html(originalHtml),btn.attr("disabled",!1)},4e3)},error:function(response){var errors=JSON.parse(response.responseText);console.log(errors.errors)}})}); 2//# sourceMappingURL=/cdn/shop/t/1099/assets/global--quick-buy-single-grid-slider.js.map?v=47735435661997364931790876152
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.