1const getCart=async()=>{try{return await(await fetch("/cart.js")).json()}catch(error){return console.log(error),!1}},checkForConversion=async evt=>{evt.preventDefault();const{items,item_count,currency:cartCurrency}=await getCart();if(item_count===0)return;const bundleItems=items.filter(({properties})=>properties._bundleItemType==="parent"&&properties._bundlePriceCurrency!==cartCurrency);bundleItems.length||(window.location.href="/checkout");for(const obj of bundleItems){const{key,properties}=obj,priceEl=document.querySelector(`.cart--item[data-item-key="${key}"] .cart--item--price .money`);if(priceEl){Object.assign(properties,{_bundlePrice:priceEl.innerText,_bundlePriceCurrency:cartCurrency,_bundleDineroAmount:priceEl.dataset.dineroAmout??0});try{const data=await(await fetch("/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({properties,id:key})})).json();console.log({data})}catch(err){console.log(err)}}}window.location.href="/checkout"},init=()=>{document.querySelectorAll('button[name="checkout"]').forEach(btn=>{btn.addEventListener("click",checkForConversion)})};["DOMContentLoaded","cart:updated"].forEach(evt=>{document.addEventListener(evt,init)}); 2//# sourceMappingURL=/cdn/shop/t/269/assets/arkhi-main.js.map?v=172086559658910423071790735200
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.