PageSourceSearch

https://www.lacrosseunlimited.com/cdn/shop/t/3/assets/predictive-search.js?v=22678871807725201991756497103

js lacrosseunlimited.com collected 2026-09-24 11:52:17 UTC 1,926 bytes, 2 lines download raw bytes

1customElements.get("predictive-search")||customElements.define("predictive-search",class extends HTMLElement{constructor(){super(),this.input=this.querySelector('input[type="search"]'),this.predictiveSearchResults=this.querySelector("[data-predictive-search]"),this.mobileViewAll=this.querySelector("[data-mobile-search-view-all]")}connectedCallback(){this.input.addEventListener("input",this.debounce(event=>{this.onChange(event)},300).bind(this))}onChange(){const searchTerm=this.input.value.trim();if(!searchTerm.length){this.predictiveSearchResults.style.display="none",this.mobileViewAll&&this.mobileViewAll.classList.add("hidden");return}this.getSearchResults(searchTerm)}getSearchResults(searchTerm){fetch(`/search/suggest?q=${searchTerm}&section_id=predictive-search&resources[type]=product,page,collection,query`).then(response=>{if(!response.ok){var error=new Error(response.status);throw this.close(),error}return response.text()}).then(text=>{const resultsMarkup=new DOMParser().parseFromString(text,"text/html").querySelector("#shopify-section-predictive-search").innerHTML;this.predictiveSearchResults.innerHTML=resultsMarkup,this.open()}).catch(error=>{throw this.close(),error})}open(){this.predictiveSearchResults.style.display="block";const viewAllButton=this.predictiveSearchResults.querySelector("[data-predictive-search-view-all]");this.mobileViewAll&&(viewAllButton?this.mobileViewAll.classList.remove("hidden"):this.mobileViewAll.classList.add("hidden"))}close(){const headerSearchClose=document.querySelector("[data-header-search-close]");headerSearchClose&&headerSearchClose.click(),this.predictiveSearchResults.style.display="none",this.mobileViewAll&&this.mobileViewAll.classList.add("hidden")}debounce(fn,wait){let t;return(...args)=>{clearTimeout(t),t=setTimeout(()=>fn.apply(this,args),wait)}}});
2//# sourceMappingURL=/cdn/shop/t/3/assets/predictive-search.js.map?v=22678871807725201991756497103

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.