import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
import { d as defineCustomElement$3 } from './ecl-icon2.js';
import { d as defineCustomElement$2 } from './ecl-link2.js';

const EclNewsTickerItem$1 = /*@__PURE__*/ proxyCustomElement(class EclNewsTickerItem extends HTMLElement {
    constructor() {
        super();
        this.__registerHost();
        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)));
    }
}, [4, "ecl-news-ticker-item", {
        "theme": [1],
        "styleClass": [1, "style-class"],
        "path": [1]
    }]);
function defineCustomElement$1() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["ecl-news-ticker-item", "ecl-icon", "ecl-link"];
    components.forEach(tagName => { switch (tagName) {
        case "ecl-news-ticker-item":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, EclNewsTickerItem$1);
            }
            break;
        case "ecl-icon":
            if (!customElements.get(tagName)) {
                defineCustomElement$3();
            }
            break;
        case "ecl-link":
            if (!customElements.get(tagName)) {
                defineCustomElement$2();
            }
            break;
    } });
}

const EclNewsTickerItem = EclNewsTickerItem$1;
const defineCustomElement = defineCustomElement$1;

export { EclNewsTickerItem, defineCustomElement };

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