1customElements.get("collection-banner-wrapper")||(customElements.define("collection-banner-wrapper",class extends HTMLElement{connectedCallback(){setTimeout(()=>{this.init()},0)}init(){if(this.desc=this.querySelector(".collection-hero__description"),this.btn=this.querySelector(".readmore-link"),!this.desc||!this.btn){setTimeout(()=>this.init(),50);return}this.checkHeight=this.checkHeight.bind(this),this.checkHeight(),setTimeout(this.checkHeight,100),setTimeout(this.checkHeight,500),typeof ResizeObserver<"u"&&(this.ro=new ResizeObserver(this.checkHeight),this.ro.observe(this.desc)),window.addEventListener("load",this.checkHeight),window.addEventListener("resize",this.checkHeight)}disconnectedCallback(){this.ro&&this.ro.disconnect(),window.removeEventListener("load",this.checkHeight),window.removeEventListener("resize",this.checkHeight)}checkHeight(){this.offsetParent&&(this.desc.scrollHeight>76?this.btn.style.display="inline-block":(this.btn.style.display="none",this.desc.classList.remove("expanded")))}}),document.addEventListener("click",function(event){if(event.target.matches(".readmore-link")){const wrapper=event.target.closest("collection-banner-wrapper");if(!wrapper)return;const description=wrapper.querySelector(".collection-hero__description");description&&(description.classList.contains("expanded")?(description.classList.remove("expanded"),event.target.textContent="Read More \u25BC"):(description.classList.add("expanded"),event.target.textContent="Read Less \u25B2"))}})),customElements.get("sub-category-wrapper")||customElements.define("sub-category-wrapper",class extends HTMLElement{connectedCallback(){setTimeout(()=>{this.init()},0)}init(){if(window.location.search.includes("filter")){this.style.display="none";return}if(this.block=this.querySelector(".sub-cat-block"),this.tabs=this.block?this.block.querySelectorAll(".sub-cat-tab"):[],!this.block||this.tabs.length===0){setTimeout(()=>this.init(),50);return}this.calculateRows=this.calculateRows.bind(this),this.checkMobileScroll=this.checkMobileScroll.bind(this),this.calculateRows(),setTimeout(this.calculateRows,100),setTimeout(this.calculateRows,500),window.addEventListener("load",this.calculateRows),this.block.addEventListener("scroll",this.checkMobileScroll,{passive:!0}),typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(()=>{requestAnimationFrame(this.calculateRows)}),this.resizeObserver.observe(this.block))}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect(),this.block&&this.block.removeEventListener("scroll",this.checkMobileScroll),window.removeEventListener("load",this.calculateRows)}checkMobileScroll(){if(!this.offsetParent)return;if(window.innerWidth>=750){this.classList.remove("has-right-fade");return}if(this.block.scrollWidth>this.block.clientWidth){const isAtEnd=Math.ceil(this.block.scrollLeft+this.block.clientWidth)>=this.block.scrollWidth-1;this.classList.toggle("has-right-fade",!isAtEnd)}else this.classList.remove("has-right-fade")}calculateRows(){if(!this.offsetParent)return;if(window.innerWidth<750){this.classList.remove("is-collapsable"),this.checkMobileScroll();return}const blockRect=this.block.getBoundingClientRect(),rowTops=new Set;
1this.tabs.forEach(tab=>{const topRel=tab.getBoundingClientRect().top-blockRect.top;rowTops.add(Math.round(topRel/5)*5)});const uniqueTops=Array.from(rowTops).sort((a,b)=>a-b);if(uniqueTops.length>2){if(this.classList.add("is-collapsable"),this.block.style.setProperty("--collapsed-height",uniqueTops[2]+"px"),!this.querySelector(".sub-cat-toggle")){const toggleBtn=document.createElement("button");toggleBtn.className="sub-cat-toggle",toggleBtn.setAttribute("aria-label","Toggle subcategories"),toggleBtn.innerHTML='<svg viewBox="0 0 14 10" fill="none" aria-hidden="true" focusable="false"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.53033 9.53033L0.46967 3.46967L1.53033 2.40901L7 7.87868L12.4697 2.40901L13.5303 3.46967L7.46967 9.53033C7.17678 9.82322 6.82322 9.82322 6.53033 9.53033Z" fill="currentColor"></path></svg>',this.appendChild(toggleBtn),toggleBtn.addEventListener("click",()=>{this.classList.toggle("is-expanded")})}}else{this.classList.remove("is-collapsable");const btn=this.querySelector(".sub-cat-toggle");btn&&btn.remove()}}}),customElements.get("sidebar-subcategories")||customElements.define("sidebar-subcategories",class extends HTMLElement{connectedCallback(){setTimeout(()=>{this.init()},0)}init(){if(window.location.search.includes("filter")){this.style.display="none";return}this.wrapper=this.querySelector(".sidebar-subcategories__list-wrapper"),this.items=this.querySelectorAll(".sidebar-subcategories__item"),this.toggleBtn=this.querySelector(".sub-cat-toggle"),this.items.length>8&&this.toggleBtn&&(this.calculateHeight=this.calculateHeight.bind(this),this.calculateHeight(),window.addEventListener("load",this.calculateHeight),window.addEventListener("resize",this.calculateHeight),this.toggleBtn.addEventListener("click",()=>{this.classList.toggle("is-expanded")}))}disconnectedCallback(){window.removeEventListener("load",this.calculateHeight),window.removeEventListener("resize",this.calculateHeight)}calculateHeight(){if(!this.offsetParent)return;const wrapperTop=this.wrapper.getBoundingClientRect().top,collapsedHeight=this.items[7].getBoundingClientRect().bottom-wrapperTop;this.style.setProperty("--sidebar-collapsed-height",collapsedHeight+"px")}}); 2//# sourceMappingURL=/cdn/shop/t/190/assets/collection.js.map?v=154898614412033483821782321209
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.