"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
(() => {
    const los = exports.los;
    const menuTabElements = document.querySelectorAll(".menu a");
    const tabContainerElements = document.querySelectorAll(".tabs-container > div");
    const selectTab = (clickEvent) => {
        clickEvent.preventDefault();
        for (const menuTabElement of menuTabElements) {
            menuTabElement.classList.remove("is-active");
        }
        const selectedTabElement = clickEvent.currentTarget;
        selectedTabElement.classList.add("is-active");
        const selectedTabContainerId = selectedTabElement.href.slice(Math.max(0, selectedTabElement.href.indexOf("#") + 1));
        for (const tabContainerElement of tabContainerElements) {
            if (tabContainerElement.id === selectedTabContainerId) {
                tabContainerElement.classList.remove("is-hidden");
            }
            else {
                tabContainerElement.classList.add("is-hidden");
            }
        }
    };
    for (const menuTabElement of menuTabElements) {
        menuTabElement.addEventListener("click", selectTab);
    }
})();
