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__["bump-cart"])try{let updateTimer2=function(){const formattedMinutes=minutes.toString().padStart(2,"0"),formattedSeconds=seconds.toString().padStart(2,"0");countdownTimer&&(countdownTimer.textContent=`${formattedMinutes}:${formattedSeconds}`),seconds--,seconds===-1&&(seconds=59,minutes--),minutes===0&&seconds===0&&(minutes=2)},startTimer2=function(){minutes=2,secionds=0};var updateTimer=updateTimer2,startTimer=startTimer2;document.querySelectorAll("[id^='BumpDrawer-']").forEach(element=>{const msDelay=Number(element.dataset.delay)*1e3;if(!document.querySelector("[id^='BumpDrawer-']").classList.contains("toCart")){if(window.cart_bump_ab===!0)return;msDelay>=0&&setTimeout(()=>{element.show()},msDelay)}});const countdownTimer=document.getElementById("offer-timer-countdown");let minutes=2,seconds=0;const intervalId=setInterval(updateTimer2,1e3);updateTimer2()}catch(e){console.error(e)}})(),(function(){if(__sections__.header)try{class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.getElementById("shopify-section-header"),this.body=document.querySelector("body"),this.mql=window.matchMedia(`(min-width: ${window.breakpoints.lg}px)`),this.headerBounds={},this.currentScrollTop=0,this.preventReveal=!1,this.onScrollHandler=this.onScroll.bind(this),this.onMediaMatchHandler=this.createObserver.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.mql.addListener(this.onMediaMatchHandler),this.createObserver()}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler),this.mql.removeListener(this.onMediaMatchHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const raw=window.pageYOffset||document.documentElement.scrollTop,maxScroll=Math.max(0,document.documentElement.scrollHeight-window.innerHeight);if(raw>=maxScroll-4){this.currentScrollTop=maxScroll;return}const scrollTop=Math.max(0,raw);scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom?requestAnimationFrame(this.hide.bind(this)):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)),this.currentScrollTop=scrollTop}hide(){this.body.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.body.classList.remove("shopify-header-revealed")}reveal(){this.body.classList.add("shopify-section-header-sticky","animate","shopify-header-revealed"),this.body.classList.remove("shopify-section-header-hidden")}reset(){this.body.classList.remove("shopify-section-header-hidden","shopify-section-header-sticky","animate")}}customElements.define("sticky-header",StickyHeader)}catch(e){console.error(e)}})(),(function(){if(__sections__["main-product"])try{document.querySelectorAll('product-form button[type="submit"]').forEach(element=>{element.addEventListener("click",event=>{const selector=document.querySelector(".product__info-wrapper");if(!selector)return;const matches=window.matchMedia("(max-width: 767px)").matches,form=element.form||element.closest("form"),willSubmit=!element.disabled&&(!form||form.checkValidity());matches&&willSubmit&&selector.scrollIntoView({behavior:"smooth"})})});class ProductModal extends ModalDialog{constructor(){super()}hide(){super.hide()}show(opener){super.show(opener),this.showActiveMedia()}showActiveMedia(){this.querySelectorAll(`[data-image-id]:not([data-image-id="${this.openedBy.getAttribute("data-image-id")}"])`).forEach(element=>{element.classList.remove("active")});const activeMedia=this.querySelector(`[data-image-id="${this.openedBy.getAttribute("data-image-id")}"]`),activeMediaTemplate=activeMedia.querySelector("template"),activeMediaContent=activeMediaTemplate?activeMediaTemplate.content:null;activeMedia.classList.add("active"),activeMedia.scrollIntoView();const container=this.querySelector('[role="document"]');container&&(container.scrollLeft=(activeMedia.width-container.clientWidth)/2),activeMedia.nodeName=="DEFERRED-MEDIA"&&activeMediaContent&&activeMediaContent.querySelector(".js-youtube")&&activeMedia.loadContent()}}customElements.define("product-modal",ProductModal);class ImageNavigation extends HTMLElement{constructor(){super(),this.bindEvents()}bindEvents(){const root=document.querySelector(this.querySelector("a").getAttribute("href")).parentElement,observer=new IntersectionObserver(entries=>
1{entries.forEach(entry=>{const element=this.querySelector(`[href='#${entry.target.id}']`);entry.isIntersecting?(element.setAttribute("aria-current","location"),element.classList.add("active")):(element.removeAttribute("aria-current"),element.classList.remove("active"))})},{root,threshold:.5});[...this.querySelectorAll("a")].forEach(element=>{const image=document.querySelector(element.getAttribute("href"));observer.observe(image),element.addEventListener("click",this.onClick.bind(this))})}onClick(event){event.preventDefault();const image=document.querySelector(event.currentTarget.getAttribute("href"));document.querySelector("sticky-header").dispatchEvent(new CustomEvent("preventHeaderReveal"));const container=image.parentElement;container&&container.scrollTo({left:image.offsetLeft,behavior:"smooth"})}}customElements.define("image-navigation",ImageNavigation)}catch(e){console.error(e)}})(),(function(){!__sections__["scrolling-announcement-bar"]&&Shopify.designMode})(),(function(){if(!(!__sections__["wished-product-recommendations"]&&!Shopify.designMode))try{document.querySelectorAll(".wished-product-recommendations").forEach(section=>{const onReady=async swat=>{const[wishedItems,cart]=await Promise.all([new Promise(resolve=>swat.fetch(resolve)),fetch(`${window.routes.cart_url}.js`).then(response=>response.json())]),items=wishedItems.filter(wishedItem=>cart.items.every(lineItem=>lineItem.product_id!==wishedItem.empi));if(items.length<2)return;const sectionToRender="wished-product-recommendation",sectionToFill=section.querySelector(".grid");(await Promise.all(items.slice(0,2).map(async({du,epi,empi},index)=>fetch(`${du}?sections=${sectionToRender}&variant=${epi}`).then(response=>response.json()).then(json=>{const listItemElement=document.createElement("li");return listItemElement.dataset.productId=empi,listItemElement.dataset.variantId=epi,listItemElement.dataset.productUrl=du,listItemElement.classList.add("grid__item"),listItemElement.innerHTML=json[sectionToRender],listItemElement})))).forEach(element=>{sectionToFill.appendChild(element);const onSubmit=async()=>{"_swat"in window&&await new Promise(resolve=>{window._swat.addToCart({epi:element.dataset.variantId,empi:element.dataset.productId,du:element.dataset.productUrl},resolve)})};element.addEventListener("submit",onSubmit)}),section.classList.remove("hidden"),window.lazyloadPolyfill(section),window.convertCurrency(section)};"_swat"in window?this.onReady(window._swat):(window.SwymCallbacks=window.SwymCallbacks||[],window.SwymCallbacks.push(onReady))})}catch(e){console.error(e)}})()})(); 2//# sourceMappingURL=/cdn/shop/t/1005/compiled_assets/scripts.js.map?v=135003534702280834901787273400
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.