PageSourceSearch

https://shop.xxxx.com.au/cdn/shop/t/3/assets/custom-cart-events.js?v=98296219619739207301693879039

js xxxx.com.au collected 2026-10-02 10:05:05 UTC 1,940 bytes, 2 lines download raw bytes

1(function(){if(!window||!window.Shopify)return;const CartEvents={add:"SCE:add",update:"SCE:update",change:"SCE:change",clear:"SCE:clear",mutate:"SCE:mutate"},ShopifyCartURLs=["/cart/add","/cart/update","/cart/change","/cart/clear","/cart/add.js","/cart/update.js","/cart/change.js","/cart/clear.js"];function isShopifyCartURL(url){if(!url)return!1;const path=url?.split?url.split("/").pop():"";return ShopifyCartURLs.includes(`/cart/${path}`)}function updateType(url){return url?url.includes("cart/add")?"add":url.includes("cart/update")?"update":url.includes("cart/change")?"change":url.includes("cart/clear")?"clear":!1:!1}function dispatchEvent(url,detail){if(typeof detail=="string")try{detail=JSON.parse(detail)}catch{}switch(window.dispatchEvent(new CustomEvent(CartEvents.mutate,{detail})),updateType(url)){case"add":window.dispatchEvent(new CustomEvent(CartEvents.add,{detail}));break;case"update":window.dispatchEvent(new CustomEvent(CartEvents.update,{detail}));break;case"change":window.dispatchEvent(new CustomEvent(CartEvents.change,{detail}));break;case"clear":window.dispatchEvent(new CustomEvent(CartEvents.clear,{detail}));break;default:break}}function XHROverride(){if(!window.XMLHttpRequest)return;const originalOpen=window.XMLHttpRequest.prototype.open;window.XMLHttpRequest.prototype.open=function(){const url=arguments[1];return this.addEventListener("load",function(){isShopifyCartURL(url)&&dispatchEvent(url,this.response)}),originalOpen.apply(this,arguments)}}function fetchOverride(){if(!window.fetch||typeof window.fetch!="function")return;const originalFetch=window.fetch;window.fetch=function(){const response=originalFetch.apply(this,arguments);return isShopifyCartURL(arguments[0])&&response.then(res=>{res.clone().json().then(data=>dispatchEvent(res.url,data))}),response}}fetchOverride(),XHROverride()})();
2//# sourceMappingURL=/cdn/shop/t/3/assets/custom-cart-events.js.map?v=98296219619739207301693879039

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.