PageSourceSearch

https://cheekymonkey.com.au/cdn/shop/t/6/assets/theme-events.js?v=43673835181282354261791169713

js cheekymonkey.com.au collected 2026-10-09 22:41:14 UTC 2,762 bytes, 2 lines download raw bytes

1window.theme=window.theme||{},window.theme.events={version:"1.0"},document.addEventListener("theme:update:cart",async()=>{document.dispatchEvent(new CustomEvent("shapes:cart:lock"));try{const sections=getCartSectionRequestIds().join(","),data=await(await fetch(`${window.location.pathname}?sections=${sections}`)).json();data.status||document.dispatchEvent(new CustomEvent("shapes:cart:update",{bubbles:!0,detail:{response:{sections:{...data}}}}))}catch(e){console.error(e),document.getElementById("cart-errors").textContent=theme.strings.cartError,document.dispatchEvent(new CustomEvent("theme:cart:error:other",{detail:{message:theme.strings.cartError,error:e}}))}finally{document.dispatchEvent(new CustomEvent("shapes:cart:unlock"))}});const getCartDrawerEl=()=>document.querySelector("[data-cart-drawer]");document.addEventListener("cart-will-open",async()=>{const detail={cartDrawerEl:getCartDrawerEl()};document.dispatchEvent(new CustomEvent("theme:cart-drawer:opening",{detail}))}),document.addEventListener("cart-is-open",async()=>{const detail={cartDrawerEl:getCartDrawerEl()};document.dispatchEvent(new CustomEvent("theme:cart-drawer:open",{detail}))}),document.addEventListener("cart-will-close",()=>{document.dispatchEvent(new CustomEvent("theme:cart-drawer:closing",{detail:{cartDrawerEl:getCartDrawerEl()}}))}),document.addEventListener("cart-is-closed",()=>{document.dispatchEvent(new CustomEvent("theme:cart-drawer:closed",{detail:{cartDrawerEl:getCartDrawerEl()}}))}),document.addEventListener("theme:open:cart-drawer",()=>{window.theme.settings.cartType==="modal"&&Alpine.store("modals").modals.cart&&(Alpine.store("modals").closeAll(),Alpine.store("modals").open("cart"))}),document.addEventListener("theme:close:cart-drawer",()=>{window.theme.settings.cartType==="modal"&&Alpine.store("modals").modals.cart&&Alpine.store("modals").close("cart")});const cartChangeEventHandler=e=>{const{cartItemCount,itemsRootEl,lineItemEl,variantId,key}=e.detail;document.dispatchEvent(new CustomEvent("theme:cart:change",{detail:{type:e.type,cartItemCount,itemsRootEl,lineItemEl,variantId,key,originalDetail:e.detail}}))};document.addEventListener("theme:product:add",cartChangeEventHandler),document.addEventListener("theme:line-item:change",cartChangeEventHandler);const cartErrorEventHandler=e=>{document.dispatchEvent(new CustomEvent("theme:cart:error",{detail:{type:e.type,message:e.detail.message,originalDetail:e.detail}}))};document.addEventListener("theme:product:error:add-to-cart",cartErrorEventHandler),document.addEventListener("theme:line-item:error",cartErrorEventHandler),document.addEventListener("theme:cart:error:other",cartErrorEventHandler);
2//# sourceMappingURL=/cdn/shop/t/6/assets/theme-events.js.map?v=43673835181282354261791169713

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.