PageSourceSearch

https://www.grays-hockey.com/cdn/shop/t/35/assets/blogPosts-Dt0k9FRF.js

js grays-hockey.com collected 2026-09-28 23:57:53 UTC 1,221 bytes, 1 lines download raw bytes

1import{f as o}from"./utils-oHofwCfm.js";const r=(l={})=>({section_id:"main-blog-2",full_page_load:!0,selector:"",scrollTo:"",...l,loading:!1,content:null,init(){this.content=this.$root.querySelector("[data-content]"),this.full_page_load==!1&&(this.addPaginationHandlers(),this.addFilterHandlers())},addFilterHandlers(){this.$root.querySelectorAll("[data-filter-link]").forEach(t=>{t.addEventListener("click",i=>{i.preventDefault(),this.fetchContent(t.href)})})},addPaginationHandlers(){this.$root.querySelectorAll("[data-pagination-link]").forEach(t=>{t.addEventListener("click",i=>{i.preventDefault(),this.fetchContent(t.href).then(()=>{this.scrollTo&&document.body.querySelector(this.scrollTo)?.scrollIntoView()})})})},fetchContent(e){e=e||this.$root.dataset.blogUrl,e=e.split("#")[0],this.loading=!0;const t=`${e}${e.includes("?")?"&":"?"}section_id=${this.section_id}`;return o(t).then(i=>{if(this.selector){const n=i.querySelector(this.selector);n&&(this.content.innerHTML=n.innerHTML)}else this.content.innerHTML=i.innerHTML;this.addPaginationHandlers(),this.addFilterHandlers(),window.history.replaceState(null,"",t.substring(0,t.indexOf("section_id")-1))}).finally(()=>{this.loading=!1})}});export{r as default};

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.