PageSourceSearch

https://www.grays-hockey.com/cdn/shop/t/35/assets/pdp-page-you-may-also-like-te8j6Kfo.js

js grays-hockey.com collected 2026-09-28 23:56:36 UTC 1,319 bytes, 1 lines download raw bytes

1import{S as r}from"./core-yLxMmMVl.js";import{N as o}from"./navigation-DeDrypyO.js";import{f as a}from"./utils-oHofwCfm.js";import"./create-element-if-not-defined-Ck3fV3vE.js";class n extends HTMLElement{constructor(){super(),this.swiper=!1,this.id=this.dataset.id,this.url=this.dataset.url,this.api=this.dataset.api,this.productContainer=this.querySelector("[data-product-container]"),this.onLoad()}async onLoad(){this.api==="true"&&await this.getRecommendations(),this.createCarousel(),this.classList.add("active")}getRecommendations(){return console.log("getting recs"),new Promise((t,i)=>{a(`${this.url}?section_id=you-may-also-like-pdp&product_id=${this.id}&limit=20&intent=related`).then(e=>{this.productContainer&&(this.productContainer.innerHTML=e.innerHTML);try{window.shopifyWishlist?.initButtons(this.productContainer)}catch(s){console.error(s)}this.classList.add("active"),t()}).catch(e=>{console.error(e),i(e)})})}createCarousel(){this.swiper=new r(this.productContainer.querySelector(".swiper"),{slidesPerView:1.95,spaceBetween:18,navigation:{nextEl:this.querySelector("[data-carousel-next]"),prevEl:this.querySelector("[data-carousel-prev]")},modules:[o],breakpoints:{768:{slidesPerView:3,spaceBetween:18},1024:{slidesPerView:4,spaceBetween:18}}})}}customElements.define("pdp-page-you-may-also-like",n);

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.