PageSourceSearch

https://thebodyshop.ca/cdn/shop/t/243/assets/component-dynamic-pro…?v=135864243217251133771789578735

js thebodyshop.ca collected 2026-09-25 18:20:00 UTC 964 bytes, 2 lines download raw bytes

1class DynamicProductCard extends HTMLElement{constructor(){super()}setVariables(){this.handle=this.getAttribute("handle"),this.template="product-card-wide"}connectedCallback(){this.setVariables(),this.handle&&this.renderTemplate()}broadcastEvents(){const productsWrapper=this.closest("[dynamic-products-wrapper]");productsWrapper&&productsWrapper.dispatchEvent(new CustomEvent("CARD_LOADED",{bubbles:!0,composed:!0}))}async renderTemplate(){const html=await this.getTemplate();this.innerHTML=html,this.broadcastEvents()}async getTemplate(){try{const response=await fetch(`/products/${this.handle}?view=${this.template}`);if(!response.ok)throw new Error(`HTTP error! Status: ${response.status}`);return await response.text()}catch(error){console.error("Error fetching data:",error)}}}customElements.define("dynamic-product-card",DynamicProductCard);
2//# sourceMappingURL=/cdn/shop/t/243/assets/component-dynamic-product-card.js.map?v=135864243217251133771789578735

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.