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

const EclInpageNavigationItem = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
    }
    getClass() {
        return [
            `ecl-inpage-navigation__item`,
            `sc-ecl-inpage-navigation-${this.theme}`,
            this.styleClass
        ].join(' ');
    }
    componentWillLoad() {
        var _a;
        this.theme = (_a = document.documentElement.getAttribute('data-ecl-theme')) !== null && _a !== void 0 ? _a : (this.theme || 'ec');
    }
    render() {
        return (h("li", { key: '7a40f31ddf800643c3258c370d060eb7194291f0', class: this.getClass() }, h("ecl-link", { key: '3ef2efe9da38a325b6cb344d4f708f2519781258', theme: this.theme, path: this.path, "style-class": `ecl-inpage-navigation__link sc-ecl-inpage-navigation-${this.theme}`, "data-ecl-inpage-navigation-link": true }, h("slot", { key: '10a19d9cd2e5930a90e07ec4a6919ad16c82bc4c' }))));
    }
};

export { EclInpageNavigationItem as ecl_inpage_navigation_item };
