'use strict';

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

const EclTabsItem = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
        this.styleClass = '';
        this.path = '';
        this.elId = `ecl-tabs-item-${Math.random().toString(36).substr(2, 9)}}`;
        this.isCurrent = false;
    }
    getClass() {
        const classes = [
            `ecl-tabs__item`,
            `sc-ecl-tabs-${this.theme}`,
            this.styleClass
        ];
        return classes.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("div", { key: '86d3d8ef9e32fda300450c408bad01eee101ff63', class: this.getClass() }, index.h("ecl-link", { key: '87c36a37735f0478c559d8482c998ac32f78e289', "style-class": `ecl-tabs__link ${this.isCurrent ? 'ecl-tabs__link--active' : ''} sc-ecl-tabs-${this.theme}`, "el-id": this.elId, path: this.path, "aria-selected": this.isCurrent }, index.h("slot", { key: '4f6cc4c7a2fc06723f44c1b50239d0138ed64866' }))));
    }
};

exports.ecl_tabs_item = EclTabsItem;
