PageSourceSearch

https://mrcnoir.com/cdn/shop/t/78/assets/cart-notification.js?v=48719538341126453571781040452

js mrcnoir.com collected 2026-10-10 00:54:44 UTC 2,022 bytes, 2 lines download raw bytes

1class CartNotification extends HTMLElement{constructor(){super(),this.notification=document.getElementById("cart-notification"),this.header=document.querySelector("sticky-header"),this.onBodyClick=this.handleBodyClick.bind(this),this.miniCart=document.getElementById("mini-cart"),this.miniCartButton=document.getElementById("headerCartButton"),this.miniCart.addEventListener("keyup",evt=>evt.code==="Escape"&&this.close()),document.querySelectorAll("#miniCartCloseBtn").forEach(closeButton=>closeButton.addEventListener("click",this.close.bind(this)))}open(){this.notification.classList.add("animate","active"),this.miniCart.classList.add("animate","active"),document.body.addEventListener("click",this.onBodyClick)}close(){this.notification.classList.remove("animate","active"),this.miniCart.classList.remove("animate","active"),document.body.removeEventListener("click",this.onBodyClick),removeTrapFocus(this.activeElement)}renderContents(parsedState){this.cartItemKey=parsedState.key,parsedState.sections&&this.getSectionsToRender().forEach((section=>{document.getElementById(section.id).innerHTML=this.getSectionInnerHTML(parsedState.sections[section.id],section.selector)})),this.header?.reveal()}getSectionsToRender(){return[{id:"cart-notification-product",selector:`[id="cart-notification-product-${this.cartItemKey}"]`},{id:"cart-notification-button"},{id:"cart-icon-bubble"},{id:"main-cart-items",section:"main-cart-items",selector:".js-contents"},{id:"main-cart-footer",section:"main-cart-footer",selector:"#main-cart-footer"}]}getSectionInnerHTML(html,selector=".shopify-section"){return new DOMParser().parseFromString(html,"text/html").querySelector(selector).innerHTML}handleBodyClick(evt){const target=evt.target;target!==this.notification&&!target.closest("cart-notification")&&this.close()}setActiveElement(element){this.activeElement=element}}customElements.define("cart-notification",CartNotification);
2//# sourceMappingURL=/cdn/shop/t/78/assets/cart-notification.js.map?v=48719538341126453571781040452

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.