1const fetchData=(URL,params,method="GET")=>{const options={method,headers:{"Content-Type":"application/json"}};return params&&method!=="GET"&&(options.body=JSON.stringify(params)),fetch(URL,options).then(res=>res.json())},addGiftToCart=id=>{fetchData("/cart/add.js",{items:[{id,quantity:1}]},"POST").then(item=>{item.statue||document.dispatchEvent(new CustomEvent("cart:build"))})},removeGiftFromCart=id=>{fetchData("/cart/change.js",{id,quantity:0},"POST").then(item=>{item.statue||document.dispatchEvent(new CustomEvent("cart:build"))})};window.addEventListener("DOMContentLoaded",function(){document.getElementById("hc-checkbox").addEventListener("change",function(){if(this.checked){addGiftToCart(this.value);return}removeGiftFromCart(this.value)})}); 2//# sourceMappingURL=/cdn/shop/t/127/assets/gift_box.js.map?v=90626012903613642911789490466
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.