PageSourceSearch

https://cinchcycling.cc/cdn/shop/t/6/assets/cart-notification.js?v=94189017443544257301693500738

js cinchcycling.cc collected 2026-10-09 22:16:07 UTC 2,732 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.notification.addEventListener("keyup",evt=>evt.code==="Escape"&&this.close()),this.querySelectorAll('button[type="button"]').forEach(closeButton=>closeButton.addEventListener("click",this.close.bind(this)))}open(){this.notification.classList.add("animate","active"),this.notification.addEventListener("transitionend",()=>{this.notification.focus(),trapFocus(this.notification)},{once:!0}),document.body.addEventListener("click",this.onBodyClick)}close(){this.notification.classList.remove("active"),document.body.removeEventListener("click",this.onBodyClick),removeTrapFocus(this.activeElement)}renderContents(parsedState,open=!0){this.productId=parsedState.id,this.getSectionsToRender().forEach((section=>{const html=new DOMParser().parseFromString(parsedState.sections[section.id],"text/html");(Array.isArray(section.selector)?section.selector:[section.selector]).forEach(selector=>{const elementToReplace=selector?document.getElementById(section.id).querySelector(selector):document.getElementById(section.id);elementToReplace&&(elementToReplace.innerHTML=this.getSectionInnerHTML(html,section.filter||selector))}),section.callback&&section.callback(html)})),this.header&&this.header.reveal(),open&&this.open()}getSectionsToRender(){let cartSettings=[];return window.enableMiniCart&&(cartSettings=[{id:"mini-cart",section:"mini-cart",selector:[".js-content-heading",".js-content-items",".js-content-footer-cart-notes",".js-content-footer-subtotal"],callback:html=>{const footerButtons=document.querySelector(".js-content-footer-buttons");if(!footerButtons)return;const isFooterButtonsHidden=html.querySelector(".js-content-footer-buttons").parentNode.classList.contains("hidden");footerButtons.parentNode.classList[isFooterButtonsHidden?"add":"remove"]("hidden")}}]),[{id:"cart-notification-product",filter:`#cart-notification-product-${this.productId}`},{id:"cart-notification-button"},{id:"cart-icon-bubble"},...cartSettings]}getSectionInnerHTML(html,selector=".shopify-section"){return 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/6/assets/cart-notification.js.map?v=94189017443544257301693500738

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.