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

const EclNavigationListItem$1 = /*@__PURE__*/ proxyCustomElement(class EclNavigationListItem extends HTMLElement {
    constructor() {
        super();
        this.__registerHost();
        this.theme = 'ec';
        this.image = undefined;
        this.imageAlt = undefined;
        this.styleClass = undefined;
        this.border = true;
    }
    getClass() {
        const styleClasses = [
            `sc-ecl-navigation-list-${this.theme}`,
            `ecl-navigation-list__item`,
            this.styleClass
        ];
        if (!this.border) {
            styleClasses.push('ecl-navigation-list__item--no-border');
        }
        return styleClasses.join(' ');
    }
    getImgClass() {
        const imgClasses = [
            `sc-ecl-navigation-list-${this.theme}`,
            `ecl-navigation-list__image`,
        ];
        return imgClasses.join(' ');
    }
    render() {
        return (h("div", { class: this.getClass() }, this.image ?
            h("ecl-picture", { styleClass: `ecl-navigation-list__picture sc-ecl-navigation-list-${this.theme}`, image: this.image, imgClass: this.getImgClass(), imageAlt: this.imageAlt }, h("slot", { name: "sources" })) : '', h("slot", null)));
    }
}, [6, "ecl-navigation-list-item", {
        "theme": [1],
        "image": [1],
        "imageAlt": [1, "image-alt"],
        "styleClass": [1, "style-class"],
        "border": [4]
    }]);
function defineCustomElement$1() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["ecl-navigation-list-item", "ecl-picture"];
    components.forEach(tagName => { switch (tagName) {
        case "ecl-navigation-list-item":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, EclNavigationListItem$1);
            }
            break;
        case "ecl-picture":
            if (!customElements.get(tagName)) {
                defineCustomElement$2();
            }
            break;
    } });
}

const EclNavigationListItem = EclNavigationListItem$1;
const defineCustomElement = defineCustomElement$1;

export { EclNavigationListItem, defineCustomElement };

//# sourceMappingURL=ecl-navigation-list-item.js.map