'use strict';

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

const EclCarouselItem = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
        this.styleClass = '';
        this.bannerTitle = '';
        this.image = '';
        this.size = 'm';
    }
    getClass() {
        return [
            `ecl-carousel__item`,
            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 (index.h("div", { key: 'b2c92f46d4a416c3be02d35a5f66ff327604794d', class: "ecl-carousel__slide", role: "group", "aria-label": this.ariaLabel }, index.h("ecl-banner", { key: '7878aa326631a323cc08ad68a46d8027d05a70d9', "banner-title": this.bannerTitle, image: this.image, theme: this.theme, "cta-link": this.ctaLink, "cta-label": this.ctaLabel, size: this.size, credit: this.credit }, index.h("slot", { key: 'b9a63f8979df37b428796f89d7e9542d50bc46be' }))));
    }
};

exports.ecl_carousel_item = EclCarouselItem;
