PageSourceSearch

https://www.moia.io/cache-buster-1790599900/bundles/website2024/di…/tab-navigation.ad3822288020c859.js

js moia.io collected 2026-10-01 10:15:07 UTC 1,484 bytes, 2 lines download raw bytes

1!function(){"use strict";class t{constructor(t,i){this.settings=Object.assign({},{initAttr:"data-tabnavigation",pathAttr:"data-tabnavigation-path",tabValue:"tab"},i),this.$root=t,this.$$tabs=this.$root.querySelectorAll(`[${this.settings.initAttr}="${this.settings.tabValue}"]`),this.$activeTab=Array.from(this.$$tabs).find(t=>"true"===t.getAttribute("aria-selected"))}initialize(){this.setEvents()}updateState(){this.$$tabs?.forEach(t=>{t.setAttribute("aria-selected",t===this.$activeTab)}),this.$root.dispatchEvent(new CustomEvent("tab_navigation.change",{detail:{$tab:this.$activeTab,id:this.$activeTab.getAttribute("aria-controls"),url:this.$activeTab.getAttribute(this.settings.pathAttr)},bubbles:!0}))}setEvents(){this.$$tabs?.forEach(t=>{t.addEventListener("click",()=>{"false"===t.getAttribute("aria-selected")&&(this.$activeTab=t,this.updateState())})}),this.$activeTab&&this.$root.dispatchEvent(new CustomEvent("tab_navigation.initialized",{detail:{$tab:this.$activeTab,id:this.$activeTab.getAttribute("aria-controls"),url:this.$activeTab.getAttribute(this.settings.pathAttr)},bubbles:!0})),window.addEventListener("siteheader.visibility",t=>{let{visible:i,height:e}=t.detail;this.$root.style.setProperty("--tab-navigation-offset",i?`${e}px`:"0px")})}}window.addEventListener("content.loaded",i=>{let e=i.detail.$context;e&&e.querySelectorAll('[data-tabnavigation="root"]').forEach(i=>{new t(i).initialize()})})}();
2//# sourceMappingURL=tab-navigation.ad3822288020c859.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.