1class CartCount extends window.BAO.CustomElement(){setupListeners(){super.setupListeners(),this.onCartChanged=this.onCartChanged.bind(this),this.onPageShow=this.onPageShow.bind(this),window.BAO.eventBus.addEventListener(window.BAO.EVENTS.PUSH_CART.CHANGED,this.onCartChanged),this.listeners.add(window,"pageshow",this.onPageShow)}onCartChanged(e){const{state}=e.detail;state&&state.sections&&"push-cart-count"in state.sections&&(this.textContent=this.getCount(state.sections["push-cart-count"]))}async onPageShow(e){if(e.persisted)try{const cart=await(await fetch("/cart.js")).json();this.textContent=cart.item_count}catch(err){console.error("CartCount: failed to refresh on pageshow",err)}}getCount(html){return window.BAO.sectionRenderer.convertToDOM(html).querySelector("#push-cart-count").textContent}}customElements.get("cart-count")||customElements.define("cart-count",CartCount); 2//# sourceMappingURL=/cdn/shop/t/726/assets/cart-count.js.map?v=144532161275688892881790251817
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.