PageSourceSearch

https://www.freshpair.com/cdn/shop/t/674/compiled_assets/scripts.js?v=122013191903243747511778106638

js freshpair.com collected 2026-09-24 18:32:39 UTC 6,983 bytes, 2 lines download raw bytes

1(function(){var __sections__={};(function(){for(var i=0,s=document.getElementById("sections-script").getAttribute("data-sections").split(",");i<s.length;i++)__sections__[s[i]]=!0})(),(function(){if(!(!__sections__["dami-banner-v2"]&&!Shopify.designMode))try{let docReady2=function(fn){document.readyState==="complete"||document.readyState==="interactive"?setTimeout(fn,1):document.addEventListener("DOMContentLoaded",fn)};var docReady=docReady2;docReady2(function(){window.matchMedia("(max-width: 768px)").matches?(document.querySelector("#desktopvideo").style.display="none",document.querySelector("#mobilevideo").style.display="block"):(document.querySelector("#mobilevideo").style.display="none",document.querySelector("#desktopvideo").style.display="block"),window.addEventListener("resize",function(event){window.matchMedia("(max-width: 768px)").matches?(document.querySelector("#desktopvideo").style.display="none",document.querySelector("#mobilevideo").style.display="block"):(document.querySelector("#mobilevideo").style.display="none",document.querySelector("#desktopvideo").style.display="block")})})}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["dami-reel"]&&!Shopify.designMode))try{document.addEventListener("DOMContentLoaded",event=>{const mireel=document.querySelector("#reel--homebrands"),paso=parseInt(mireel.firstElementChild.offsetWidth,10);let pausame=!1;const miSeccionid=document.querySelector("#reelbrands-section").dataset.id,miwrap=document.querySelector(".wrap-"+miSeccionid),btnPrev=document.querySelector("#prev-"+miSeccionid),btnNext=document.querySelector("#next-"+miSeccionid),fantasma=document.querySelector("#yurei-"+miSeccionid);miwrap.addEventListener("mouseover",()=>{pausame=!0},!1),miwrap.addEventListener("mouseout",()=>{pausame=!1},!1),btnPrev.addEventListener("click",()=>{mireel.scrollLeft-=paso},!1),btnNext.addEventListener("click",()=>{mireel.scrollLeft+=paso},!1);function autoscrollBrands(){pausame||(mireel.scrollLeft+=paso),mireel.scrollLeft+mireel.clientWidth>=mireel.scrollWidth&&(mireel.scrollLeft=0)}let autoBrands=setInterval(autoscrollBrands,2e3);fantasma.addEventListener("touchend",e=>{clearInterval(autoBrands),e.target.style.display="none"})})}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["dami-reelstyles"]&&!Shopify.designMode))try{document.addEventListener("DOMContentLoaded",event=>{const mireel=document.querySelector("#reel--homestilos"),paso=parseInt(mireel.firstElementChild.offsetWidth,10);let pausame=!1;const miSeccionid=document.querySelector("#reelstyles-section").dataset.id,miwrap=document.querySelector(".wrap-"+miSeccionid),btnPrev=document.querySelector("#prev-"+miSeccionid),btnNext=document.querySelector("#next-"+miSeccionid),fantasma=document.querySelector("#yurei-"+miSeccionid);miwrap.addEventListener("mouseover",()=>{pausame=!0},!1),miwrap.addEventListener("mouseout",()=>{pausame=!1},!1),btnPrev.addEventListener("click",()=>{mireel.scrollLeft-=paso},!1),btnNext.addEventListener("click",()=>{mireel.scrollLeft+=paso},!1);function autoscrollStyles(){pausame||(mireel.scrollLeft+=paso),mireel.scrollLeft+mireel.clientWidth>=mireel.scrollWidth&&(mireel.scrollLeft=0)}let autoStyles=setInterval(autoscrollStyles,2e3);fantasma.addEventListener("touchend",e=>{clearInterval(autoStyles),e.target.style.display="none"})})}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["dami-slider"]&&!Shopify.designMode))try{document.addEventListener("DOMContentLoaded",event=>{let slideIndex=0;showSlides();function showSlides(){const slides=document.getElementsByClassName("dslide");for(let i=0;i<slides.length;i++)slides[i].style.display="none";slideIndex++,slideIndex>slides.length&&(slideIndex=1),slides[slideIndex-1].style.display="block",setTimeout(showSlides,3e3)}function changeSlide(n){slideIndex+=n-1,showSlides()}})}catch(e){console.error(e)}})(),(function(){if(__sections__.header)try{class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".section-header"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type")==="always"||this.getAttribute("data-sticky-type")==="reduce-logo-size",this.headerBounds={},this.setHeaderHeight(),window.matchMedia("(max-width: 990px)").addEventListener("change",this.setHeaderHeight.bind(this)),this.headerIsAlwaysSticky&&this.header.classList.add("shopify-section-header-sticky"),this.currentScrollTop=0,this.preventReveal=!1,this.predictiveSearch=this.querySelector("predictive-search"),this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}setHeaderHeight(){document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight}px`)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(!(this.predictiveSearch&&this.predictiveSearch.isOpen)){if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.header.classList.add("scrolled-past-header"),this.preventHide)return;requestAnimationFrame(this.hide.bind(this))}else scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?(this.header.classList.add("scrolled-past-header"),this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this))):scrollTop<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),requestAnimationFrame(this.reset.bind(this)));this.currentScrollTop=scrollTop}}hide(){this.headerIsAlwaysSticky||(this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.closeMenuDisclosure(),this.closeSearchModal())}reveal(){this.headerIsAlwaysSticky||(this.header.classList.add("shopify-section-header-sticky","animate"),this.header.classList.remove("shopify-section-header-hidden"))}reset(){this.headerIsAlwaysSticky||this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-sticky","animate")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("header-menu"),this.disclosures.forEac
1h(disclosure=>disclosure.close())}closeSearchModal(){this.searchModal=this.searchModal||this.header.querySelector("details-modal"),this.searchModal.close(!1)}}customElements.define("sticky-header",StickyHeader)}catch(e){console.error(e)}})()})();
2//# sourceMappingURL=/cdn/shop/t/674/compiled_assets/scripts.js.map?v=122013191903243747511778106638

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.