'use strict';

var index = require('./index-Bkm7eeWO.js');

const EclNavigationListItem = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
        this.theme = 'ec';
        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');
        }
        if (this.variant) {
            styleClasses.push(`ecl-navigation-list__item--${this.variant}`);
        }
        if (this.colorMode) {
            styleClasses.push(`ecl-color-mode--${this.colorMode}`);
        }
        return styleClasses.join(' ');
    }
    getImgClass() {
        const imgClasses = [
            `sc-ecl-navigation-list-${this.theme}`,
            `ecl-navigation-list__image`,
        ];
        return imgClasses.join(' ');
    }
    render() {
        return (index.h("div", { key: '787c18e9207527d9e8c939716b42630f9358fb73', class: this.getClass() }, this.image ?
            index.h("ecl-picture", { styleClass: `ecl-navigation-list__picture sc-ecl-navigation-list-${this.theme}`, image: this.image, imgClass: this.getImgClass(), imageAlt: this.imageAlt }, index.h("slot", { name: "sources" })) : '', index.h("slot", { key: '783e46298fe324204c441a4e4e7995b435669754' })));
    }
};

exports.ecl_navigation_list_item = EclNavigationListItem;
