'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-420e0ca1.js');

const EclFileTranslationsItem = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
        this.theme = 'ec';
        this.styleClass = undefined;
        this.variant = 'default';
        this.meta = undefined;
        this.fileTitle = undefined;
        this.downloadLink = undefined;
        this.downloadLabel = undefined;
        this.language = undefined;
        this.ariaLabel = 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 index.h("div", { class: `ecl-file__translation-title sc-ecl-file-${this.theme}`, lang: this.language }, this.fileTitle);
    }
    getMeta() {
        return index.h("div", { class: `ecl-file__translation-meta sc-ecl-file-${this.theme}` }, this.meta);
    }
    render() {
        return (index.h("li", { class: this.getClass() }, this.variant == 'thumbnail' ?
            index.h("div", { class: `ecl-file__translation-detail sc-ecl-file-${this.theme}` }, this.getTitle()) : '', this.variant == 'thumbnail' ?
            index.h("div", { class: `ecl-file__translation-info sc-ecl-file-${this.theme}` }, this.getMeta()) :
            index.h("div", { class: `ecl-file__translation-info sc-ecl-file-${this.theme}` }, this.getTitle(), this.getMeta()), index.h("ecl-link", { path: this.downloadLink, variant: "standalone", styleClass: `ecl-file__translation-download sc-ecl-file-${this.theme}`, theme: this.theme, "aria-label": this.ariaLabel }, this.downloadLabel, index.h("ecl-icon", { slot: "icon-after", size: "fluid", icon: "download", theme: this.theme }))));
    }
};

exports.ecl_file_translations_item = EclFileTranslationsItem;

//# sourceMappingURL=ecl-file-translations-item.cjs.entry.js.map