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__["awards-index"]&&!Shopify.designMode))try{if(!window.__macaloneysAwardCountBound){let readAwards2=function(){for(var nodes=document.querySelectorAll("[data-awards-index]"),awards=[],seen={},n=0;n<nodes.length;n++){var parsed;try{parsed=JSON.parse((nodes[n].textContent||"").replace(/^\s+|\s+$/g,""))}catch{continue}if(!(!parsed||!parsed.length))for(var i=0;i<parsed.length;i++){var row=parsed[i];if(!(!row||typeof row!="object"||row.x===0)){var key=row.k||String(i);seen[key]||(seen[key]=!0,awards.push(row))}}}return awards},hasText2=function(value){return typeof value=="string"&&value.length>0},contains2=function(haystack,needle){return hasText2(haystack)&&hasText2(needle)&&haystack.indexOf(needle)!==-1},matches2=function(award,titleKey,handleKey){return!!(hasText2(award.p)&&hasText2(titleKey)&&award.p===titleKey||hasText2(award.p)&&hasText2(handleKey)&&award.p===handleKey||contains2(award.h,titleKey)||contains2(award.h,handleKey)||hasText2(award.p)&&(contains2(titleKey,award.p)||contains2(handleKey,award.p))||hasText2(award.s)&&(contains2(titleKey,award.s)||contains2(handleKey,award.s))||hasText2(award.a)&&(contains2(titleKey,award.a)||contains2(handleKey,award.a)||contains2(award.a,titleKey)||contains2(award.a,handleKey))||hasText2(award.l)&&(contains2(titleKey,award.l)||contains2(handleKey,award.l))||hasText2(award.u)&&(contains2(titleKey,award.u)||contains2(handleKey,award.u)||contains2(award.u,handleKey)))},countFor2=function(awards,titleKey,handleKey){for(var count=0,seen={},i=0;i<awards.length;i++){var award=awards[i],key=award.k||String(i);seen[key]||matches2(award,titleKey,handleKey)&&(seen[key]=!0,count+=1)}return count},hydrate2=function(){var awards=readAwards2();if(awards.length)for(var hosts=document.querySelectorAll("[data-award-count-host]"),i=0;i<hosts.length;i++){var el=hosts[i],count=countFor2(awards,el.getAttribute("data-title-key")||"",el.getAttribute("data-handle-key")||""),showZero=el.getAttribute("data-show-zero")==="true";if(el.setAttribute("data-award-resolved","1"),count<=0&&!showZero){el.setAttribute("hidden","");continue}var numberEl=el.querySelector(".award-count__number");numberEl||(numberEl=document.createElement("span"),numberEl.className="award-count__number",el.appendChild(numberEl)),numberEl.textContent=String(count);var showLabel=el.getAttribute("data-show-label")!=="false",labelEl=el.querySelector(".award-count__label");showLabel&&(labelEl||(labelEl=document.createElement("span"),labelEl.className="award-count__label",el.appendChild(labelEl)),labelEl.textContent=count===1?"award":"awards"),el.setAttribute("data-award-count",String(count)),el.removeAttribute("data-award-pending"),el.removeAttribute("hidden")}},scheduleHydrate2=function(){window.clearTimeout(hydrateTimer),hydrateTimer=window.setTimeout(hydrate2,50)},bindObserver2=function(){window.__macaloneysAwardCountObserver||typeof MutationObserver!="function"||!document.body||(window.__macaloneysAwardCountObserver=!0,new MutationObserver(scheduleHydrate2).observe(document.body,{childList:!0,subtree:!0}))};var readAwards=readAwards2,hasText=hasText2,contains=contains2,matches=matches2,countFor=countFor2,hydrate=hydrate2,scheduleHydrate=scheduleHydrate2,bindObserver=bindObserver2;window.__macaloneysAwardCountBound=!0;var hydrateTimer;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",function(){hydrate2(),bindObserver2()}):(hydrate2(),bindObserver2()),document.addEventListener("shopify:section:load",scheduleHydrate2),document.addEventListener("shopify:section:reorder",scheduleHydrate2)}}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(){const ageGate=document.querySelector("[data-age-gate]"),ageGateHeight=ageGate&&ageGate.offsetParent!==null?ageGate.offsetHeight:0,announcementBar=document.querySelector(".announcement-bar-section"),announcementBarHeight=announcementBar&&announcementBar.offsetParent!==null?announcementBar.offsetHeight:0,headerHeight=this.header.offsetHeight-ageGateHeight;document.documentElement.style.setProperty("--header-height",`${headerHeight+announcementBarHeight}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/36/compiled_assets/scripts.js.map?v=99510234592740944711790613842
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.