PageSourceSearch

https://www.shopcatbox.com/cdn/shop/t/18/assets/cart-notification.js?v=21061313859377538241715993842

js shopcatbox.com collected 2026-10-04 23:42:18 UTC 1,574 bytes, 2 lines download raw bytes

1class CartNotification extends ModalDialog{constructor(){super(),this.notification=document.getElementById("cart-notification"),this.onBodyClick=this.handleBodyClick.bind(this),this.querySelectorAll('button[type="button"]').forEach(closeButton=>closeButton.addEventListener("click",this.close.bind(this)))}open(){document.body.addEventListener("click",this.onBodyClick),this.show(null)}close(){document.body.removeEventListener("click",this.onBodyClick),removeTrapFocus(this.activeElement),this.hide()}renderContents(parsedState){this.cartItemKey=parsedState.key,this.getSectionsToRender().forEach((section=>{document.getElementById(section.id).innerHTML=this.getSectionInnerHTML(parsedState.sections[section.id],section.selector)})),this.open()}getSectionsToRender(){return[{id:"cart-notification-product",selector:`[id="cart-notification-product-${this.cartItemKey}"]`},{id:"cart-notification-button"},{id:"cart-icon-bubble"},{id:"cart-icon-bubble--mobile"}]}getSectionInnerHTML(html,selector=".shopify-section"){return new DOMParser().parseFromString(html,"text/html").querySelector(selector).innerHTML}handleBodyClick(evt){const target=evt.target;if(target!==this.notification&&!target.closest("cart-notification")){const disclosure=target.closest("details-disclosure");this.activeElement=disclosure?disclosure.querySelector("summary"):null,this.close()}}setActiveElement(element){this.activeElement=element}}customElements.define("cart-notification",CartNotification);
2//# sourceMappingURL=/cdn/shop/t/18/assets/cart-notification.js.map?v=21061313859377538241715993842

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.