PageSourceSearch

https://hickmet.com/cdn/shop/t/98/assets/cart-notification.js?v=6558809016176608711777295896

js hickmet.com collected 2026-10-02 18:28:15 UTC 2,156 bytes, 2 lines download raw bytes

1import{c as createFocusTrap}from"vendors/focus-trap.esm";class CartNotification extends HTMLElement{constructor(){super(),this.cartButton=document.getElementById("cart-button"),this.notification=this,this.sectionId=this.dataset.sectionId,this.continueButton=this.querySelector(".cart-notification__continue"),this.onBodyClick=this.handleBodyClick.bind(this),this.focusTrap=createFocusTrap(this.notification,{allowOutsideClick:!0}),this.bindEvents()}bindEvents(){this.addEventListener("keyup",event=>{event.code.toUpperCase()==="ESCAPE"&&this.close()}),this.querySelectorAll('button[type="button"]').forEach(closeButton=>{closeButton.addEventListener("click",event=>{this.close()})})}open(){this.notification.classList.add("cart-notification--active"),this.notification.focus(),this.focusTrap.activate(),document.body.addEventListener("click",this.onBodyClick),this.querySelector(".cart-notification__continue").addEventListener("click",event=>{event.preventDefault(),this.close()})}close(){this.notification.classList.remove("cart-notification--active"),document.body.removeEventListener("click",this.onBodyClick),this.focusTrap.deactivate(),this.activeElement.focus()}handleBodyClick(event){const target=event.target;target!==this.notification&&!target.closest("cart-notification")&&this.close()}setActiveElement(element){this.activeElement=element}getSectionsToRender(){return[{id:"cart-notification-product",selector:`#cart-notification-product-${this.productId}`},{id:"cart-notification-links"},{id:"cart-button"},{id:"cart-icon-button"}]}renderContents(response){this.productId=response.id,this.getSectionsToRender().forEach(section=>{const elements=document.querySelectorAll(`#${section.id}`);elements.length&&elements.forEach(element=>{element.innerHTML=this.getSectionInnerHTML(response.sections[section.id],section.selector)})}),this.open()}getSectionInnerHTML(html,selector=".shopify-section"){return new DOMParser().parseFromString(html,"text/html").querySelector(selector).innerHTML}}customElements.define("cart-notification",CartNotification);
2//# sourceMappingURL=/cdn/shop/t/98/assets/cart-notification.js.map?v=6558809016176608711777295896

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.