import { h } from '@stencil/core';
export class EclLanguageItem {
  constructor() {
    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))));
  }
  static get is() { return "ecl-language-item"; }
  static get properties() {
    return {
      "theme": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "theme",
        "reflect": false,
        "defaultValue": "'ec'"
      },
      "styleClass": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "style-class",
        "reflect": false
      },
      "path": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "path",
        "reflect": false
      },
      "langCode": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "lang-code",
        "reflect": false
      },
      "language": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "language",
        "reflect": false
      },
      "active": {
        "type": "boolean",
        "mutable": false,
        "complexType": {
          "original": "boolean",
          "resolved": "boolean",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "active",
        "reflect": false,
        "defaultValue": "false"
      }
    };
  }
  static get elementRef() { return "el"; }
}
//# sourceMappingURL=ecl-language-item.js.map
