'use strict';

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

const EclFooterItem = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
    }
    getClass() {
        const styleClasses = [
            `ecl-site-footer__list-item`,
            `sc-ecl-footer-${this.theme}-${this.theme}`,
            this.styleClass
        ];
        return styleClasses.join(' ');
    }
    componentWillLoad() {
        var _a;
        this.theme = (_a = document.documentElement.getAttribute('data-ecl-theme')) !== null && _a !== void 0 ? _a : (this.theme || 'ec');
    }
    render() {
        return (index.h("li", { key: '3ac7b0c3a1946971ebf0a232f826fca9e83a76b0', class: this.getClass() }, index.h("ecl-link", Object.assign({ key: 'b601d7fbcac2da2509c59476d7b409364aaa58e8', path: this.link, variant: "standalone", styleClass: `ecl-site-footer__link sc-ecl-footer-${this.theme}-${this.theme}`, theme: this.theme, ariaLabel: this.ariaLabel }, (this.theme === 'ec' ? { inverted: true } : {})), index.h("slot", { key: '520e1ba8f054ddc0cdb29c1dfc795d7096b1d5cd', name: "icon-before" }), index.h("slot", { key: '1ba63a560ef6e7c382c6333051eb7c863c90fd61' }))));
    }
};

exports.ecl_footer_item = EclFooterItem;
