PageSourceSearch

https://bbqland.co.uk/cdn/shop/t/15/assets/cart-notification.compiled.js?v=96816604969907956241777544163

js bbqland.co.uk collected 2026-10-08 15:02:02 UTC 2,301 bytes, 1 lines download raw bytes

1!function(){"use strict";class t extends HTMLElement{constructor(){super(),this.cartIcon=document.getElementById("cart-icon-bubble"),this.cartIcon.addEventListener("click",(e=>{e.preventDefault(),window.Rebuy&&window.Rebuy.SmartCart&&"function"==typeof window.Rebuy.SmartCart.show?window.Rebuy.SmartCart.show():window.location.href=window.routes&&window.routes.cart_url?window.routes.cart_url:"/cart"})),this.notification=document.getElementById("cart-notification"),this.header=document.querySelector("sticky-header"),this.onBodyClick=this.handleBodyClick.bind(this),this.notification.addEventListener("keyup",(t=>"Escape"===t.code&&this.close())),this.querySelectorAll('button[type="button"]').forEach((t=>t.addEventListener("click",this.close.bind(this)))),this.loadCart()}loadCart(){fetch("?section_id=cart-notification-product").then((t=>t.text())).then((t=>{document.getElementById("cart-notification-product").innerHTML=t})).catch((t=>{console.error(t)}))}open(){if(window.Rebuy&&window.Rebuy.SmartCart&&"function"==typeof window.Rebuy.SmartCart.show)return void window.Rebuy.SmartCart.show();window.location.href=window.routes&&window.routes.cart_url?window.routes.cart_url:"/cart"}close(){document.body.classList.remove("overflow-hidden-mobile"),this.notification.classList.remove("active"),document.body.removeEventListener("click",this.onBodyClick),window.removeTrapFocus(this.activeElement)}renderContents(t){this.productId=t.id,this.getSectionsToRender().forEach((e=>{document.getElementById(e.id).innerHTML=this.getSectionInnerHTML(t.sections[e.id],e.selector)})),this.header&&this.header.reveal(),this.open()}getSectionsToRender(){return[{id:"cart-notification-product"},{id:"cart-notification-button"},{id:"cart-icon-bubble"},{id:"cart-notification-subtotal"}]}getSectionInnerHTML(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".shopify-section";return(new DOMParser).parseFromString(t,"text/html").querySelector(e).innerHTML}handleBodyClick(t){var e=t.target;if(e!==this.notification&&!e.closest("cart-notification")&&e!==this.cartIcon&&!e.closest("#cart-icon-bubble")){var i=e.closest("details-disclosure");this.activeElement=i?i.querySelector("summary"):null,this.close()}}setActiveElement(t){this.activeElement=t}}customElements.define("cart-notification",t)}();

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.