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

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

export { EclNavigationListItem as ecl_navigation_list_item };

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