import { r as registerInstance, h } from './index-e78ba223.js';

const EclNewsTickerItem = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
        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)));
    }
};

export { EclNewsTickerItem as ecl_news_ticker_item };

//# sourceMappingURL=ecl-news-ticker-item.entry.js.map