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__.header)try{class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.getElementById("header-announcement-container"),this.headerBounds={},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()}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,headerheight=this.headerBounds.bottom;if(scrollTop>headerheight&&this.reveal(),!(this.predictiveSearch&&this.predictiveSearch.isOpen)){if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.preventHide)return;requestAnimationFrame(this.hide.bind(this))}else scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?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&&requestAnimationFrame(this.reset.bind(this));if(this.currentScrollTop=scrollTop,window.innerWidth<660){const sortBySelector=document.querySelector(".stickyheader--active .facets-container"),filterSelector=document.querySelector(".select");if(sortBySelector&&filterSelector){const stickyFiltersHeight=window.getComputedStyle(filterSelector).getPropertyValue("height");sortBySelector.style.height=stickyFiltersHeight}}}}hide(){this.closeSearchModal()}reveal(){document.body.classList.add("stickyheader--active"),this.header.classList.add("shopify-section-header-sticky","animate"),this.header.classList.remove("shopify-section-header-hidden")}reset(){this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-sticky","animate"),document.body.classList.remove("stickyheader--active")}closeSearchModal(){this.searchModal=this.searchModal||this.header.querySelector("details-modal"),this.searchModal.close(!1)}}customElements.define("sticky-header",StickyHeader)}catch(e){console.error(e)}})(),(function(){if(__sections__["main-cart-footer"])try{class CartNote extends HTMLElement{constructor(){super(),this.addEventListener("change",debounce(event=>{const body=JSON.stringify({note:event.target.value});fetch(`${routes.cart_update_url}`,{...fetchConfig(),body})},300))}}customElements.define("cart-note",CartNote)}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["product-recommendations"]&&!Shopify.designMode))try{class ProductRecommendations extends HTMLElement{constructor(){super();const handleIntersection=async(entries,observer)=>{if(entries[0].isIntersecting){console.log("ProductRecommendations: IntersectionObserver triggered"),observer.unobserve(this),console.log("AAA",this.dataset.url);try{const text=await(await fetch(this.dataset.url)).text(),html=document.createElement("div");html.innerHTML=text;const recommendations=html.querySelector(".product-recommendations-section");if(recommendations&&recommendations.innerHTML.trim().length){if(this.classList.contains("cart-recommendations"))return;console.log("I am called",recommendations),this.innerHTML=recommendations.innerHTML}html.querySelector(".grid__item")&&this.classList.add("product-recommendations--loaded")}catch(e){console.error(e)}}};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 200px 0px"}).observe(this)}}customElements.define("product-recommendations",ProductRecommendations)}catch(e){console.error(e)}})()})(); 2//# sourceMappingURL=/cdn/shop/t/204/compiled_assets/scripts.js.map?v=173499121378222713341788231499
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.