1if(!customElements.get("tabbed-content")){class TabbedContent extends HTMLElement{static get observedAttributes(){return["selected-index"]}constructor(){super()}connectedCallback(){this.selectedIndex=this.selectedIndex,this.animations_enabled=document.body.classList.contains("animations-true")&&typeof gsap<"u",this.scroller=this.querySelector(".tabbed-content--scroll"),this.buttons=Array.from(this.scroller.querySelectorAll("button")),this.panels=Array.from(this.querySelectorAll(".tabbed-content--content")),this.tl=!1,this.animations_enabled&&(this.tl=gsap.timeline({paused:!0})),this.buttons.forEach((button,index)=>{button.addEventListener("click",()=>{this.selectedIndex=index})}),Shopify.designMode&&(this.onBlockSelectBound=event=>{this.selectedIndex=this.buttons.indexOf(event.target)},this.addEventListener("shopify:block:select",this.onBlockSelectBound))}disconnectedCallback(){this.tl&&this.tl.kill(),this.onBlockSelectBound&&this.removeEventListener("shopify:block:select",this.onBlockSelectBound)}get selectedIndex(){return parseInt(this.getAttribute("selected-index"))||0}set selectedIndex(index){this.setAttribute("selected-index",index)}attributeChangedCallback(name,oldValue,newValue){name==="selected-index"&&oldValue!==null&&oldValue!==newValue&&(this.buttons[oldValue].classList.remove("active"),this.buttons[newValue].classList.add("active"),this.animations_enabled&&!this.tl.isActive()?this.transitionFromTo(this.panels[parseInt(oldValue)],this.panels[parseInt(newValue)]):(this.panels[parseInt(oldValue)].classList.remove("active"),this.panels[parseInt(newValue)].classList.add("active")))}transitionFromTo(oldPanel,newPanel){this.tl.clear().to(oldPanel,{autoAlpha:0,duration:.25}).set(oldPanel,{className:"-=active"}).set(newPanel,{className:"+=active"}).to(newPanel,{autoAlpha:1,duration:.25}),this.tl.play()}}customElements.define("tabbed-content",TabbedContent)} 2//# sourceMappingURL=/cdn/shop/t/31/assets/tabbed-content.js.map?v=11547092529280033151790337931
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.