PageSourceSearch

https://countrysidebooks.co.uk/cdn/shop/t/5/assets/cart.js?v=54753151225433299441742543986

js countrysidebooks.co.uk collected 2026-10-02 13:17:30 UTC 1,169 bytes, 2 lines download raw bytes

1(async()=>{const{Core}=await importModule("Core"),{$replaceContent,$toggleDisplay}=await importModule("Utils");customElements.define("x-cart",class extends Core{elements={itemsContainer:"[data-cart-items-container]",emptyMsg:"[data-cart-empty]",items:"[data-cart-items]",subtotalBlock:"[data-cart-subtotal-block]",freeShippingBlock:"[data-cart-free-shipping-block]"};subscriptions={"cart:update":"_onUpdate"};async render(){await customElements.whenDefined("cart-provider"),this.publish("cart:add-feature",{feature:"cart"}),this.subscribe("cart:update",{global:!0})}_onUpdate({cart}){if(!cart)return;const hasCartItems=cart.getCount()>0;this._toggleView(hasCartItems),hasCartItems&&this._updateItems(cart)}_toggleView(state){$toggleDisplay(this.$emptyMsg,!state),$toggleDisplay(this.$itemsContainer,state)}_updateItems({getItems,getSubtotalBlock,getFreeShippingBlock}){this.$subtotalBlock&&$replaceContent(this.$subtotalBlock,getSubtotalBlock()),this.$freeShippingBlock&&$replaceContent(this.$freeShippingBlock,getFreeShippingBlock()),$replaceContent(this.$items,getItems())}})})();
2//# sourceMappingURL=/cdn/shop/t/5/assets/cart.js.map?v=54753151225433299441742543986

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.