import { h } from '@stencil/core';
export class EclFileTranslationsItem {
  constructor() {
    this.theme = 'ec';
    this.styleClass = undefined;
    this.variant = 'default';
    this.meta = undefined;
    this.fileTitle = undefined;
    this.downloadLink = undefined;
    this.downloadLabel = undefined;
    this.language = undefined;
  }
  getClass() {
    const styleClasses = [
      `ecl-file__translation-item`,
      `sc-ecl-file-${this.theme}`,
      this.styleClass
    ];
    return styleClasses.join(' ');
  }
  getChildrenClass() {
    return `ecl-file__translation-${this.variant === 'default' ? 'info' : 'detail'}`;
  }
  getTitle() {
    return h("div", { class: `ecl-file__translation-title sc-ecl-file-${this.theme}`, lang: this.language }, this.fileTitle);
  }
  getMeta() {
    return h("div", { class: `ecl-file__translation-meta sc-ecl-file-${this.theme}` }, this.meta);
  }
  render() {
    return (h("li", { class: this.getClass() }, this.variant == 'thumbnail' ?
      h("div", { class: `ecl-file__translation-detail sc-ecl-file-${this.theme}` }, this.getTitle()) : '', this.variant == 'thumbnail' ?
      h("div", { class: `ecl-file__translation-info sc-ecl-file-${this.theme}` }, this.getMeta()) :
      h("div", { class: `ecl-file__translation-info sc-ecl-file-${this.theme}` }, this.getTitle(), this.getMeta()), h("ecl-link", { path: this.downloadLink, variant: "standalone", styleClass: `ecl-file__translation-download sc-ecl-file-${this.theme}`, theme: this.theme }, this.downloadLabel, h("ecl-icon", { slot: "icon-after", size: "fluid", icon: "download", theme: this.theme }))));
  }
  static get is() { return "ecl-file-translations-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
      },
      "variant": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "variant",
        "reflect": false,
        "defaultValue": "'default'"
      },
      "meta": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "meta",
        "reflect": false
      },
      "fileTitle": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "file-title",
        "reflect": false
      },
      "downloadLink": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "download-link",
        "reflect": false
      },
      "downloadLabel": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "download-label",
        "reflect": false
      },
      "language": {
        "type": "string",
        "mutable": false,
        "complexType": {
          "original": "string",
          "resolved": "string",
          "references": {}
        },
        "required": false,
        "optional": false,
        "docs": {
          "tags": [],
          "text": ""
        },
        "attribute": "language",
        "reflect": false
      }
    };
  }
}
//# sourceMappingURL=ecl-file-translation-item.js.map
