import { h } from "@stencil/core";
export class EclSplashPageLanguageItem {
    constructor() {
        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 (h("li", { key: 'daf9f4642b4b1bbd3928dd0d566094ddac6884ee', class: this.getClass() }, 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' : ''}` }, h("span", { key: 'ac5badb84b4f02f2d3abefb77c55664b8733be30', class: `ecl-splash-page__language-link-code sc-ecl-splash-page-${this.theme}` }, this.langCode), h("span", { key: 'd6a5f456274977711ca8edf4c6c136510b830c30', class: `ecl-splash-page__language-link-label sc-ecl-splash-page-${this.theme}` }, this.language))));
    }
    static get is() { return "ecl-splash-page-language-item"; }
    static get properties() {
        return {
            "theme": {
                "type": "string",
                "mutable": true,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "theme"
            },
            "styleClass": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "style-class"
            },
            "path": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "path"
            },
            "langCode": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "lang-code"
            },
            "language": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "language"
            },
            "active": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "active",
                "defaultValue": "false"
            }
        };
    }
    static get elementRef() { return "el"; }
}
