1customElements.get("collection-selector")||customElements.define("collection-selector",class extends HTMLElement{constructor(){super(),this.activeCollection="all",this.collectionContainers=this.querySelectorAll(".collection-selector__collection"),this.collectionButtons=this.querySelectorAll(".collection-list a"),this.setEventListeners(),this.setActiveButtons()}filterCollections(collectionName){if(this.activeCollection=collectionName,this.setActiveButtons(),this.activeCollection==="all"){this.collectionContainers.forEach(element=>{element.classList.remove("collection-selector__collection--hidden")});return}this.collectionContainers.forEach(element=>{element.classList.toggle("collection-selector__collection--hidden",element.getAttribute("data-collection-id")!==this.activeCollection)})}setActiveButtons(){this.collectionButtons.forEach(thisButton=>{thisButton.classList.toggle("button--selected",thisButton.getAttribute("data-collection-id")===this.activeCollection)})}setEventListeners(){this.collectionButtons.forEach(thisButton=>{thisButton.addEventListener("click",e=>{e.preventDefault();const parent=e.currentTarget.closest("[data-collection-id]");this.filterCollections(parent.getAttribute("data-collection-id"))})})}}); 2//# sourceMappingURL=/cdn/shop/t/3/assets/collection-selector.js.map?v=94296691335894338721751483672
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.