PageSourceSearch

https://www.eurobike.at/.resources/eurofun-v2-module/webresources/dist/eurobike/assets/FeatureTabs-xZ5S0rJt.js

js eurobike.at collected 2026-10-02 07:37:46 UTC 1,587 bytes, 1 lines download raw bytes

1import{B as c}from"./BaseComponent-CLVtauQr.js";import{a as h}from"./globals-ClPx39Dv.js";class t extends c{static SELECTORS={switchTabButton:'[data-action="switch-tab"]',tab:'[data-role^="tab-"]'};static CLASSES={buttonActive:"features__tab-button--active",tabActive:"features__tab--active"};switchTabButtons;tabs;constructor(s,i={}){super(s,i)}run(){this.init()}init=()=>{h.FUNCTIONS.isEditMode()||(this.switchTabButtons=Array.from(this.element.querySelectorAll(t.SELECTORS.switchTabButton)),this.tabs=Array.from(this.element.querySelectorAll(t.SELECTORS.tab)),!(this.switchTabButtons.length===0||this.tabs.length===0)&&(this.initTabs(),this.initTabSwitch()))};initTabs=()=>{this.switchTabButtons?.length&&(this.switchTabButtons.forEach(s=>{s.classList.add("features__tab-button")}),this.switchTabButtons[0].classList.add(t.CLASSES.buttonActive)),this.tabs?.length&&(this.tabs?.forEach(s=>{s.classList.add("features__tab"),s.setAttribute("aria-hidden","true")}),this.tabs[0].classList.add(t.CLASSES.tabActive),this.tabs[0].setAttribute("aria-hidden","false"))};initTabSwitch=()=>{this.switchTabButtons?.forEach(s=>{s.addEventListener("click",i=>{const e=i.target.getAttribute("data-tab");!this.tabs||e===null||(this.switchTabButtons?.forEach(a=>{a.classList.remove(t.CLASSES.buttonActive)}),this.tabs?.forEach(a=>{a.classList.remove(t.CLASSES.tabActive),a.setAttribute("aria-hidden","true")}),i.target.classList.add(t.CLASSES.buttonActive),this.tabs[parseInt(e)].classList.add(t.CLASSES.tabActive),this.tabs[parseInt(e)].setAttribute("aria-hidden","false"))})})}}export{t as default};

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.