import { r as registerInstance, h, g as getElement } from './index-e78ba223.js';

const EclLanguageItem = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
        this.theme = 'ec';
        this.styleClass = undefined;
        this.path = undefined;
        this.langCode = undefined;
        this.language = undefined;
        this.active = false;
    }
    getClass() {
        const styleClasses = [
            `ecl-site-header__language-item`,
            `sc-ecl-site-header-${this.theme}`,
            this.styleClass
        ];
        return styleClasses.join(' ');
    }
    render() {
        return (h("li", { class: this.getClass() }, h("a", { href: this.path, class: `ecl-link ecl-link--standalone ecl-site-header__language-link sc-ecl-site-header-${this.theme} ${this.active ? 'ecl-site-header__language-link--active' : ''}` }, h("span", { class: `ecl-site-header__language-link-code sc-ecl-site-header-${this.theme}` }, this.langCode), h("span", { class: `ecl-site-header__language-link-label sc-ecl-site-header-${this.theme}` }, this.language))));
    }
    get el() { return getElement(this); }
};

export { EclLanguageItem as ecl_language_item };

//# sourceMappingURL=ecl-language-item.entry.js.map