PageSourceSearch

https://www.kukoonrugs.com/cdn/shop/t/41/assets/cart-notification.js?v=30636309820436292331790242872

js kukoonrugs.com collected 2026-10-04 14:14:30 UTC 2,049 bytes, 2 lines download raw bytes

1class CartNotification extends HTMLElement{get notification(){return document.getElementById("cart-notification")}get header(){return document.querySelector("sticky-header")}connectedCallback(){this._bound||(this._bound=!0,this.onBodyClick=this.handleBodyClick.bind(this),this.addEventListener("keyup",evt=>evt.code==="Escape"&&this.close()),ThemeBind.delegate(this,"click",'button[type="button"]',()=>this.close()))}open(){const notification=this.notification;notification&&(notification.setAttribute("data-active",""),notification.addEventListener("transitionend",()=>{notification.focus(),trapFocus(notification)},{once:!0}),document.body.addEventListener("click",this.onBodyClick))}close(){const notification=this.notification;notification&&notification.removeAttribute("data-active"),document.body.removeEventListener("click",this.onBodyClick),removeTrapFocus(this.activeElement)}renderContents(parsedState){this.cartItemKey=parsedState.key,this.getSectionsToRender().forEach(section=>{const target=document.getElementById(section.id);target&&(target.innerHTML=this.getSectionInnerHTML(parsedState.sections[section.id],section.selector))});const header=this.header;header&&typeof header.reveal=="function"&&header.reveal(),this.open()}getSectionsToRender(){return[{id:"cart-notification-product",selector:`[id="cart-notification-product-${this.cartItemKey}"]`},{id:"cart-notification-button"},{id:"cart-icon-bubble"}]}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, header-menu");this.activeElement=disclosure?disclosure.querySelector("summary"):null,this.close()}}setActiveElement(element){this.activeElement=element}}customElements.define("cart-notification",CartNotification);
2//# sourceMappingURL=/cdn/shop/t/41/assets/cart-notification.js.map?v=30636309820436292331790242872

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.