1window.Eurus.loadedScript.has("share-cart.js")||(window.Eurus.loadedScript.add("share-cart.js"),requestAnimationFrame(()=>{document.addEventListener("alpine:init",()=>{Alpine.store("xCartShare",{openShareCart:!1,cartShareUrl:"",shared:!1,copySuccess:!1,generateUrl(){fetch(Shopify.routes.root+"cart.js",{headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(response=>response.json()).then(response=>{const cartParams=response.items.slice().reverse().map(item=>`id:${item.variant_id},q:${item.quantity}`).join("&")+"&share_cart:true";this.cartShareUrl=`${window.location.origin}?${cartParams}`})},copyURL(){const cartShareInput=document.getElementById("x-share-cart-field");cartShareInput&&navigator.clipboard.writeText(cartShareInput.value).then(()=>{this.copySuccess=!0,setTimeout(()=>{this.copySuccess=!1},2e3)},()=>{alert("Copy fail")})},handleShareCart(){const queryString=window.location.search;if(queryString.includes("share_cart:true")){const items=queryString.substring(1).split("&").reduce((listItem,param)=>{if(param.startsWith("id:")){const[idPart,quantityPart]=param.split(","),id=parseInt(idPart.slice(3)),quantity=parseInt(quantityPart.slice(2));listItem.push({id,quantity})}return listItem},[]);items.length>0&&this.addCartItems(items)}},addCartItems(items){const formData={items,sections:Alpine.store("xCartHelper").getSectionsToRender().map(s=>s.id)};fetch(Shopify.routes.root+"cart/add.js",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(formData)}).then(response=>response.json()).then(response=>{Alpine.store("xCartHelper").reRenderSections(response.sections),Alpine.store("xMiniCart").openCart(),Alpine.store("xCartHelper").currentItemCount=parseInt(document.querySelector("#cart-icon-bubble span").innerHTML),document.dispatchEvent(new CustomEvent("eurus:cart:items-changed")),this.shared=!0}).catch(error=>{console.error(error)})}})})})); 2//# sourceMappingURL=/cdn/shop/t/24/assets/share-cart.js.map?v=151997444280177564901776847244
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.