1class Tab extends HTMLElement{constructor(){super(),this.tab_header=this.querySelector(".tab_header"),this.tab_content_wrapper=this.querySelector(".tab_content_wrapper")}connectedCallback(){window.addEventListener("shopify:section:load",event=>{event.detail.sectionId=="{{ id }}"&&initTabs()}),this.initTabs()}initTabs(){this.tab_header.addEventListener("click",event=>{this.classList.contains("open")?this.closeTab():this.openTab()})}openTab(){this.classList.remove("close"),this.classList.add("open");let tab_content=this.tab_content_wrapper.querySelector(".tab_content"),height=tab_content.getBoundingClientRect().height;this.tab_content_wrapper.style.height=height+"px",setTimeout(()=>{this.classList.contains("open")&&(tab_content.style.position="static",this.tab_content_wrapper.style.height="auto")},300)}closeTab(){this.classList.remove("open"),this.classList.add("close");let tab_content=this.tab_content_wrapper.querySelector(".tab_content"),height=tab_content.getBoundingClientRect().height;this.tab_content_wrapper.style.height=height+"px",window.requestAnimationFrame(()=>{tab_content.style="",this.tab_content_wrapper.style=""})}}customElements.define("custom-tab",Tab); 2//# sourceMappingURL=/cdn/shop/t/676/assets/tabs.js.map?v=76078396832077639691744795615
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.