PageSourceSearch

https://d67173-2b.myshopify.com/cdn/shop/t/68/assets/search-tab.js?v=148292504462363623931790283697

js d67173-2b.myshopify.com collected 2026-10-10 02:38:08 UTC 3,130 bytes, 2 lines download raw bytes

1requestAnimationFrame(()=>{document.addEventListener("alpine:init",()=>{Alpine.data("xSearchTab",sectionId=>({activeTab:"product",articleCount:0,pageCount:0,collectionCount:0,term:"",init(){this.term=this.$root.querySelector("#SearchTermContent")?.textContent,this.fetchArticlesResult(),this.fetchPagesResult(),this.fetchCollectionsResult()},getURL(term,sectionId2,param){return`${window.Shopify.routes.root}search?section_id=${sectionId2}&q=${term}&${param}`},fetchArticlesResult(){let url=this.getURL(this.term,sectionId,"type=article&options[prefix]=last&options[unavailable_products]=last");fetch(url).then(response=>response.text()).then(responseText=>{const html=new DOMParser().parseFromString(responseText,"text/html"),mainSearchResult=document.getElementById("MainSearchResult_Article"),productGridContainer=html.querySelector("#ProductGridContainer"),resultCountElement=html.getElementById("ResultCount");mainSearchResult&&productGridContainer&&(mainSearchResult.innerHTML=productGridContainer.innerHTML,typeof initializeScrollAnimationTrigger=="function"&&initializeScrollAnimationTrigger()),resultCountElement?this.articleCount=Number(resultCountElement.innerHTML):this.articleCount=0}).catch(error=>{console.error(error)})},fetchPagesResult(){let url=this.getURL(this.term,sectionId,"type=page&options[prefix]=last&options[unavailable_products]=last");fetch(url).then(response=>response.text()).then(responseText=>{const html=new DOMParser().parseFromString(responseText,"text/html"),mainSearchResult=document.getElementById("MainSearchResult_Page"),productGridContainer=html.querySelector("#ProductGridContainer"),resultCountElement=html.getElementById("ResultCount");mainSearchResult&&productGridContainer&&(mainSearchResult.innerHTML=productGridContainer.innerHTML),resultCountElement&&(this.pageCount=Number(resultCountElement.innerHTML))}).catch(error=>{console.error(error)})},fetchCollectionsResult(){const url=`${Shopify.routes.root}search/suggest?q=${encodeURIComponent(this.term)}&${encodeURIComponent("resources[type]")}=collection&${encodeURIComponent("resources[limit]")}=${encodeURIComponent(10)}&section_id=predictive-search-collection`;fetch(url).then(response=>{if(!response.ok)throw new Error(response.status);return response.text()}).then(responseText=>{const text=new DOMParser().parseFromString(responseText,"text/html"),collectionWrapper=document.getElementById("ItemsGrid-collection"),listCollections=text.querySelectorAll(".collection-item");if(listCollections.length>0)collectionWrapper&&(collectionWrapper.innerHTML="",listCollections.forEach(collection=>{collectionWrapper.insertAdjacentHTML("beforeend",collection.innerHTML)}),typeof initializeScrollAnimationTrigger=="function"&&initializeScrollAnimationTrigger());else{const msgNoResult=text.querySelector(".msg-no-result");collectionWrapper&&msgNoResult&&(collectionWrapper.style.display="block",collectionWrapper.innerHTML=msgNoResult.innerHTML)}this.collectionCount=listCollections.length||0}).catch(error=>{console.error(error)})}}))})});
2//# sourceMappingURL=/cdn/shop/t/68/assets/search-tab.js.map?v=148292504462363623931790283697

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.