1window.bundleapp=window.bundleapp||{},window.bundleapp.settings=Object.assign({},window.bundleapp.settings||{},{bab:{productImage:600}});let total=0;window.selections={};function updateSelectionImages(selection){let imagesContainer=document.getElementById("awt-images-container");imagesContainer||(imagesContainer=document.createElement("div"),imagesContainer.id="awt-images-container",document.querySelector(".bundleapp-modal__container--complete-screen").appendChild(imagesContainer)),imagesContainer.innerHTML="",Object.entries(selection).forEach(([id,{quantity,img}])=>{if(!quantity)return;const imageContainer=document.createElement("div");imageContainer.classList.add("awt-custom-selection-container");const image=document.createElement("img");image.src=img,image.classList.add("awt-custom-selection"),image.alt="Selected product image";const badge=document.createElement("span");badge.classList.add("awt-custom-selection-badge"),badge.textContent=quantity,imageContainer.appendChild(image),imageContainer.appendChild(badge),imagesContainer.appendChild(imageContainer)})}const getTotals=()=>{setTimeout(()=>{const bundleProductCards=document.querySelectorAll(".bundle-product-card");let totalQuantity=0;bundleProductCards.forEach(card=>{const quantity=card?parseInt((card.className.match(/\bq_(\d+)/)||[])[1]):0;isNaN(quantity)||(quantity?window.selections[card.dataset.pid]={quantity,img:card.querySelectorAll("img")[1].src}:window.selections[card.dataset.pid]={quantity:0},totalQuantity+=quantity)}),updateSelectionImages(window.selections),console.log({totalQuantity,selections:window.selections})},10)};if(window.location.href.includes("/tools/bundle-subscriptions/bundle/8916944421077")){let addListeners2=function(){return document.querySelector(".bundle-product-card__quantity-button-container--button")?(document.querySelectorAll(".bundle-product-card__quantity-button-container--button").forEach(element=>{element.addEventListener("click",function(e){getTotals()})}),setTimeout(function(){getTotals()},500),!0):!1};var addListeners=addListeners2;document.body.classList.add("flex-wine-box");const intervalId=setInterval(()=>{addListeners2()&&clearInterval(intervalId)},50)} 2//# sourceMappingURL=/cdn/shop/t/7/assets/awtomic-theme-custom.js.map?v=171138715770291456491745178728
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.