1if(!customElements.get("wls-collection-tier")){class WlsCollectionTier extends HTMLElement{constructor(){super(),this.classes={grid:"wls-collection-tier__grid",product:"wls-collection-tier__product",productHidden:"hidden",expandButton:"js-collection-tier-expand",expanded:"is-expanded"},this.bind={onExpandClick:this._onExpandClick.bind(this)}}get elements(){return{expandButton:this.querySelectorAll(`.${this.classes.expandButton}`),hiddenProducts:this.querySelectorAll(`.${this.classes.product}.${this.classes.productHidden}`)}}connectedCallback(){this.dataset.viewAllStyle==="expand"&&this._setupExpand()}disconnectedCallback(){const{expandButton}=this.elements;expandButton.forEach(el=>el.removeEventListener("click",this.bind.onExpandClick))}_setupExpand(){const{expandButton,hiddenProducts}=this.elements;if(expandButton.length){if(!hiddenProducts.length){expandButton.forEach(el=>el.hidden=!0);return}this._overflowProducts=Array.from(hiddenProducts),expandButton.forEach(el=>el.addEventListener("click",this.bind.onExpandClick))}}_onExpandClick(){this.classList.contains(this.classes.expanded)?(this._overflowProducts.forEach(el=>el.classList.add(this.classes.productHidden)),this.classList.remove(this.classes.expanded)):(this._overflowProducts.forEach(el=>el.classList.remove(this.classes.productHidden)),this.classList.add(this.classes.expanded))}}customElements.define("wls-collection-tier",WlsCollectionTier)} 2//# sourceMappingURL=/cdn/shop/t/5/assets/wls-collection-tier.js.map?v=54894518181326587281781272171
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.