import { h } from "@stencil/core";
export class EclCard {
    constructor() {
        this.styleClass = '';
        this.imageZoom = false;
    }
    getClass() {
        return [
            `ecl-card`,
            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("article", { key: '5329eccffc6ab1b2844ec40317272e45b649c2e5', class: this.getClass() }, h("ecl-picture", { key: 'edbf68ca427dbdf7357f7eec626ed1a6d324381c', image: this.image, imageAlt: this.imageAlt, imgClass: `ecl-card__image sc-ecl-card-${this.theme}`, styleClass: `ecl-card__picture sc-ecl-picture-${this.theme}`, zoom: this.imageZoom, "data-ecl-picture-link": true }, h("slot", { key: '5654ee78297946b4449d78b908b3bcad29fd58dd', name: "sources" })), h("div", { key: '42b278097ac655c6c547e31e5682337b4eec2ff5', class: "ecl-card__body" }, h("slot", { key: 'a571a5a2f26d7b2ca4b23d2f3a08b55b645c806c' }))));
    }
    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": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "style-class",
                "defaultValue": "''"
            },
            "theme": {
                "type": "string",
                "mutable": true,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "theme"
            },
            "image": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "image"
            },
            "imageAlt": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "image-alt"
            },
            "imageZoom": {
                "type": "boolean",
                "mutable": false,
                "complexType": {
                    "original": "boolean",
                    "resolved": "boolean",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "image-zoom",
                "defaultValue": "false"
            }
        };
    }
}
