import { h } from "@stencil/core";
export class EclCard {
    constructor() {
        this.styleClass = '';
        this.theme = 'ec';
        this.image = undefined;
        this.imageAlt = undefined;
    }
    getClass() {
        return [
            `ecl-card`,
            this.styleClass
        ].join(' ');
    }
    render() {
        return (h("article", { class: this.getClass() }, h("ecl-picture", { image: this.image, imageAlt: this.imageAlt, imgClass: `ecl-card__image sc-ecl-card-${this.theme}`, styleClass: `ecl-card__picture sc-ecl-picture-${this.theme}`, "data-ecl-picture-link": true }, h("slot", { name: "sources" })), h("div", { class: "ecl-card__body" }, h("slot", null))));
    }
    static get is() { return "ecl-card"; }
    static get encapsulation() { return "scoped"; }
    static get originalStyleUrls() {
        return {
            "ec": ["./build/styles/ecl-card-ec.css"],
            "eu": ["./build/styles/ecl-card-eu.css"]
        };
    }
    static get styleUrls() {
        return {
            "ec": ["build/styles/ecl-card-ec.css"],
            "eu": ["build/styles/ecl-card-eu.css"]
        };
    }
    static get properties() {
        return {
            "styleClass": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "style-class",
                "reflect": false,
                "defaultValue": "''"
            },
            "theme": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "theme",
                "reflect": false,
                "defaultValue": "'ec'"
            },
            "image": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "image",
                "reflect": false
            },
            "imageAlt": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "attribute": "image-alt",
                "reflect": false
            }
        };
    }
}
//# sourceMappingURL=ecl-card.js.map
