1"use strict";(self.webpackChunk_mvps_genesis_quickstart_theme=self.webpackChunk_mvps_genesis_quickstart_theme||[]).push([[1409],{1409:(t,s,e)=>{e.d(s,{default:()=>r});var a=e(1559),i=e(5069),l=e(7889);class n{#t;#s;containerElement;activeClass;tabOverflowClass;constructor(t){let{activeClass:s="g-tabbed-carousel__tab--active",autoActivatePanels:e=!0,tabOverflowClass:l="has-overflow"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.#t=new a.A(this),this.containerElement=this.#t.isElement("containerElement",t),this.#s=new i.tU(this.containerElement,{autoActivate:e}),this.activeClass=this.#t.isString("activeClass",s),this.tabOverflowClass=this.#t.isString("tabOverflowClass",l),this.observeTabList(),this.bindEvents()}observeTabList(){new ResizeObserver((t=>{let[s]=t;this.setTabListOverflow(s.target)})).observe(this.#s.tabListElement)}bindEvents(){l.default.addEventListener("MVPS:activeTab",this.onActiveTab.bind(this))}onActiveTab(t){if(t.detail.tabListElement!==this.#s.tabListElement)return;const s=t.detail.tabElement;for(const t of this.#s.tabItems)t.tab.classList.toggle(this.activeClass,t.tab===s);const e=t.detail.tabPanelElement.getElementsByClassName("js-carousel");for(const t of e)if(t.data&&t.data.carousel)t.data.carousel.refresh();else{new MutationObserver(((s,e)=>{t.data&&t.data.carousel&&(e.disconnect(),t.data.carousel.refresh())})).observe(t,{childList:!0})}}setTabListOverflow(t){this.#s.tabListElement.classList.toggle(this.tabOverflowClass,t.scrollWidth>t.clientWidth)}getTabsInstance(){return this.#s}}const r=class{#t;constructor(t){this.#t=new a.A(this),this.elements=this.#t.isElementList("element",t),this.index=0,this.init()}init(){for(const t of this.elements)new n(t)}}}}]); 2//# sourceMappingURL=1409.755d02870d07a2eff645.chunk.js.map
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.