1(()=>{const e=document.body.classList.contains("product-template"),t=customElements.get("predictive-search-drawer");function r(){fetch(`${window.location.origin}/cart.js`).then((e=>e.clone().json().then((e=>{var t={total_price:e.total_price/100,$value:e.total_price/100,total_discount:e.total_discount,original_total_price:e.original_total_price/100,items:e.items};"undefined"!=typeof item&&(t=Object.assign(t,item)),klaviyo.track("Added to Cart",t)}))))}t&&customElements.define("blog-predictive-search-drawer",class extends t{constructor(){super()}async _doPredictiveSearch(e){const t=await fetch(`${window.themeVariables.routes.predictiveSearchUrl}?q=${encodeURIComponent(e)}&resources[type]=article§ion_id=predictive-search`,{signal:this.abortController.signal}),r=document.createElement("div");return r.innerHTML=await t.text(),{hasResults:null!==r.querySelector(".predictive-search__results-categories"),html:r.firstElementChild.innerHTML}}}),e&&(document.addEventListener("openable-element:close",(e=>{"PRODUCT-IMAGE-ZOOM"==e.target.nodeName&&e.target.closest(".product__media").removeAttribute("data-stack-context")})),document.addEventListener("openable-element:open",(e=>{"PRODUCT-IMAGE-ZOOM"==e.target.nodeName&&e.target.closest(".product__media").setAttribute("data-stack-context","")}))),document.addEventListener("cart:updated",(e=>{MaxDesign?.header&&(MaxDesign.header.cartCount=e.detail.item_count)})),function(e,t){e.fetch=function(){const e=t.apply(this,arguments);return e.then((e=>{const t=window.location.origin.replace(/\/+$/,"")===e.url.replace(/\/+$/,"");`${window.location.origin}/cart/add.js`.includes(e.url)&&!t&&r()})),e}}(window,window.fetch);class s extends HTMLElement{connectedCallback(){this.scrolledElement.addEventListener("scroll",this._throttle(this._updateScrollProgress.bind(this))),new ResizeObserver(this._updateScrollProgress.bind(this)).observe(this.scrolledElement)}_updateScrollProgress(){const e=undefined,t=(this.scrolledElement.scrollLeft+this.scrolledElement.clientWidth)/this.scrolledElement.scrollWidth;this.style.setProperty("--scroll-progress",Math.max(0,Math.min(t,1)).toFixed(6))}_throttle(e){return(...t)=>requestAnimationFrame((()=>e(...t)))}get scrolledElement(){return this._scrolledElement=this._scrolledElement||document.getElementById(this.getAttribute("observes"))}}customElements.get("scroll-progress")||customElements.define("scroll-progress",s)})();
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.