import { h } from "@stencil/core";
export class EclFeaturedItem {
    constructor() {
        this.theme = 'ec';
        this.styleClass = undefined;
        this.variant = 'default';
        this.itemTitle = undefined;
        this.image = undefined;
        this.mediaCaption = undefined;
        this.position = 'left';
        this.eclScript = false;
        this.defaultContainerClass = 'ecl-featured-item__container';
    }
    getClass() {
        return [
            `ecl-featured-item`,
            `ecl-featured-item--${this.variant}`,
            this.styleClass
        ].join(' ');
    }
    render() {
        const containerClasses = this.position === 'right' ? `${this.defaultContainerClass} ecl-featured-item__container--right` : this.defaultContainerClass;
        return (h("article", { class: this.getClass() }, h("div", { class: containerClasses }, h("div", { class: "ecl-featured-item__item" }, h("ecl-media-container", { styleClass: "ecl-featured-item__media_container", image: this.image, hasCaption: this.mediaCaption !== '' }, this.mediaCaption)), h("div", { class: "ecl-featured-item__item" }, this.itemTitle ?
            h("div", { class: "ecl-featured-item__title" }, this.itemTitle) : '', h("div", { class: "ecl-featured-item__description" }, h("slot", null))))));
    }
    static get is() { return "ecl-featured-item"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "ec": ["./build/styles/ecl-featured-item-ec.css"],
            "eu": ["./build/styles/ecl-featured-item-eu.css"]
        };
    }
    static get styleUrls() {
        return {
            "ec": ["build/styles/ecl-featured-item-ec.css"],
            "eu": ["build/styles/ecl-featured-item-eu.css"]
        };
    }
    static get properties() {
        return {
            "theme": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "theme",
                "reflect": false,
                "defaultValue": "'ec'"
            },
            "styleClass": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "style-class",
                "reflect": false
            },
            "variant": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "variant",
                "reflect": false,
                "defaultValue": "'default'"
            },
            "itemTitle": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "item-title",
                "reflect": false
            },
            "image": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "image",
                "reflect": false
            },
            "mediaCaption": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "media-caption",
                "reflect": false
            },
            "position": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "position",
                "reflect": false,
                "defaultValue": "'left'"
            },
            "eclScript": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "ecl-script",
                "reflect": false,
                "defaultValue": "false"
            },
            "defaultContainerClass": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "default-container-class",
                "reflect": false,
                "defaultValue": "'ecl-featured-item__container'"
            }
        };
    }
}
//# sourceMappingURL=ecl-featured-item.js.map
