1if(!customElements.get("collection-tabs")){class CollectionTabs extends HTMLElement{constructor(){super()}connectedCallback(){setTimeout(()=>{this.target=this.dataset.target,this.buttons=Array.from(this.querySelectorAll("button")),this.buttons.forEach((button,i)=>{button.addEventListener("click",event=>{let handle=button.dataset.collection;[].forEach.call(this.buttons,function(el){el.classList.remove("active")}),button.classList.add("active"),handle&&this.toggleCollection(handle),event.preventDefault()})})},20),Shopify.designMode&&this.addEventListener("shopify:block:select",event=>{let index=this.buttons.indexOf(event.target);this.buttons[index].dispatchEvent(new Event("click"))})}toggleCollection(handle){let slider=document.getElementById(this.target),products=slider.querySelectorAll(`.columns:not([data-collection*="${handle}"])`),active_products=slider.querySelectorAll(`[data-collection*="${handle}"]`),flkty=Flickity.data(slider);[].forEach.call(products,function(el){el.classList.remove("carousel__slide"),slider.append(el)}),[].forEach.call(active_products,function(el){el.dataset.collection===handle?el.classList.add("carousel__slide"):(el.classList.remove("carousel__slide"),slider.append(el))}),flkty.insert(active_products),flkty.reloadCells(),flkty.select(0,0,1)}}customElements.define("collection-tabs",CollectionTabs)} 2//# sourceMappingURL=/cdn/shop/t/133/assets/collection-tabs.js.map?v=18025430955250166891746056418
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.