'use strict';

var index = require('./index-Bkm7eeWO.js');

const EclSplashPageLanguageItem = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
        this.active = false;
    }
    getClass() {
        const styleClasses = [
            `ecl-splash-page__language-item`,
            `sc-ecl-splash-page-${this.theme}`,
            this.styleClass
        ];
        return styleClasses.join(' ');
    }
    componentWillLoad() {
        var _a;
        this.theme = (_a = document.documentElement.getAttribute('data-ecl-theme')) !== null && _a !== void 0 ? _a : (this.theme || 'ec');
    }
    render() {
        return (index.h("li", { key: 'daf9f4642b4b1bbd3928dd0d566094ddac6884ee', class: this.getClass() }, index.h("a", { key: '10f9e759ec98366abf4144f59e3871d988bfc6d3', href: this.path, class: `ecl-link ecl-link--standalone ecl-splash-page__language-link sc-ecl-splash-page-${this.theme} ${this.active ? 'ecl-splash-page__language-link--active' : ''}` }, index.h("span", { key: 'ac5badb84b4f02f2d3abefb77c55664b8733be30', class: `ecl-splash-page__language-link-code sc-ecl-splash-page-${this.theme}` }, this.langCode), index.h("span", { key: 'd6a5f456274977711ca8edf4c6c136510b830c30', class: `ecl-splash-page__language-link-label sc-ecl-splash-page-${this.theme}` }, this.language))));
    }
    get el() { return index.getElement(this); }
};

exports.ecl_splash_page_language_item = EclSplashPageLanguageItem;
