1function LoadCartFunctions(){fetch(window.Shopify.routes.root+"cart.js",{method:"GET",headers:{"Content-Type":"application/json"}}).then(response=>response.json()).then(data=>{let itemsVariantId=[],donationProductId=7847246954711;for(item of data.items)itemsVariantId.push(item.product_id);itemsVariantId.indexOf(donationProductId)==-1&&document.querySelector(".donation_product_main").classList.remove("hide")}).catch(error=>{console.error("Error:",error)});let customCartSelects=document.querySelectorAll("input.custom__radio"),customCartQuantity=document.querySelector(".custom-amount-quantity").querySelector("#cartCustomQuantity");customCartQuantity.addEventListener("click",function(e){document.querySelector("input.custom__radio").click()},!0),customCartQuantity.addEventListener("input",function(e){let newValue=parseInt(e.currentTarget.value);document.querySelector(".custom_product-form__quantity").querySelector("input[name='quantity']").value=newValue,document.querySelector("input.custom__radio").click()},!1),customCartSelects.forEach(function(inputRadio){inputRadio.addEventListener("change",_handleCustomVariantChange.bind(this),!0)});function _handleCustomVariantChange(e){let value=e.srcElement.value;console.log(value),e.currentTarget.setAttribute("checked","checked"),e.currentTarget.value!=="1"&&(customCartQuantity.value="1",document.querySelector(".custom_product-form__quantity").querySelector("input[name='quantity']").value=1);for(let option of document.querySelector(".custom-product-form").querySelector("[name='id']").options)if(option.getAttribute("data-variant-title")===value){document.querySelector(".custom-product-form").querySelector("[name='id']").value=option.value,document.querySelector(".custom-product-form").querySelector("[name='id']").dispatchEvent(new Event("change"));break}}} 2//# sourceMappingURL=/cdn/shop/t/56/assets/custom.js.map?v=120585985319864635381788198122
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.