PageSourceSearch

https://stevemadden.co.uk/cdn/shop/t/961/assets/alp-cart.js?v=85786252445276562861786360325

js stevemadden.co.uk collected 2026-09-28 05:51:24 UTC 2,116 bytes, 2 lines download raw bytes

1(function(){"use strict";if(window.alpAddToCart)return;function pushViewedSideCartDL(){try{typeof window.getEnrichedCart=="function"&&window.getEnrichedCart(),(window.dataLayer=window.dataLayer||[]).push({event:"viewedSideCart",_clear:!0})}catch(e){console.warn("[alp-cart] viewedSideCart dataLayer push failed",e)}}async function alpAddToCart(item,opts){opts=opts||{};var addUrl=window.routes&&window.routes.cart_add_url||"/cart/add",res=await fetch(addUrl+".js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(item)});if(!res.ok)throw new Error("cart/add "+res.status);var data=await res.json();if(window.updateminicart?await window.updateminicart():window.updatecart&&await window.updatecart(),document.dispatchEvent(new CustomEvent("cart:added",{detail:{item,cart:data}})),opts.openDrawer!==!1){var bubble=document.getElementById("cart-icon-bubble");bubble&&bubble.click(),pushViewedSideCartDL()}return data}window.alpAddToCart=alpAddToCart;async function alpAddBundle(items,opts){opts=opts||{};var addUrl=window.routes&&window.routes.cart_add_url||"/cart/add",updateUrl=window.routes&&window.routes.cart_update_url||"/cart/update",addedKeys=[];try{for(var i=0;i<items.length;i++){await new Promise(function(r){setTimeout(r,60)});var res=await fetch(addUrl+".js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(items[i])});if(!res.ok)throw new Error("cart/add "+res.status);var data=await res.json();data&&data.key&&addedKeys.push(data.key)}}catch(e){if(addedKeys.length){var updates={};addedKeys.forEach(function(k){updates[k]=0}),await fetch(updateUrl+".js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({updates})}).catch(function(){})}throw e}if(window.updateminicart?await window.updateminicart():window.updatecart&&await window.updatecart(),opts.openDrawer!==!1){var bubble=document.getElementById("cart-icon-bubble");bubble&&bubble.click(),pushViewedSideCartDL()}return addedKeys}window.alpAddBundle=alpAddBundle})();
2//# sourceMappingURL=/cdn/shop/t/961/assets/alp-cart.js.map?v=85786252445276562861786360325

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.