import { h } from "@stencil/core";
export class EclNewsTickerItem {
    constructor() {
        this.theme = 'ec';
        this.styleClass = undefined;
        this.path = undefined;
    }
    getClass() {
        return [
            `ecl-news-ticker__slide`,
            this.styleClass
        ].join(' ');
    }
    render() {
        return (h("li", { class: this.getClass() }, this.path ?
            h("ecl-link", { theme: this.theme, path: this.path, styleClass: `ecl-news-ticker__slide-text sc-ecl-news-ticker-${this.theme}` }, h("slot", null)) : h("slot", null)));
    }
    static get is() { return "ecl-news-ticker-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
            }
        };
    }
}
//# sourceMappingURL=ecl-news-ticker-item.js.map
