import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
import { d as defineCustomElement$2 } from './ecl-picture2.js';

const eclCardEcCss = ".ecl-card.sc-ecl-card-ec{background-color:#f5f5f5;border:1px solid #cfcfcf;border-radius:0;box-shadow:none;box-sizing:border-box;margin:0;overflow:hidden;overflow-wrap:break-word;width:100%}.ecl-card__image.sc-ecl-card-ec{aspect-ratio:3/2;border:1px solid #cfcfcf;display:block;height:auto;margin-inline-end:1rem;margin-inline-start:1rem;margin-top:1rem;-o-object-fit:cover;object-fit:cover;width:calc(100% - 2rem - 2px)}.ecl-card__body.sc-ecl-card-ec{padding:1rem;position:relative}";

const eclCardEuCss = ".ecl-card.sc-ecl-card-eu{background-color:#fff;border:0;border-radius:8px;box-shadow:0 2px 4px rgba(9,49,142,.08),0 0 10px rgba(9,49,142,.04),0 4px 5px rgba(9,49,142,.04),0 -4px 4px rgba(9,49,142,.04);box-sizing:border-box;margin:0;overflow:hidden;overflow-wrap:break-word;width:100%}.ecl-card__image.sc-ecl-card-eu{aspect-ratio:3/2;border:0 solid #cfdaf5;display:block;height:auto;margin-inline-end:0;margin-inline-start:0;margin-top:0;-o-object-fit:cover;object-fit:cover;width:100%}.ecl-card__body.sc-ecl-card-eu{padding:1.5rem;position:relative}.ecl-card__body.sc-ecl-card-eu:before{background-color:#fc0;border-bottom-left-radius:2px;border-bottom-right-radius:2px;content:\"\";height:4px;left:1.5rem;position:absolute;top:0;width:32px}";

const EclCard$1 = /*@__PURE__*/ proxyCustomElement(class EclCard extends HTMLElement {
    constructor() {
        super();
        this.__registerHost();
        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 style() { return {
        ec: eclCardEcCss,
        eu: eclCardEuCss
    }; }
}, [38, "ecl-card", {
        "styleClass": [1, "style-class"],
        "theme": [1],
        "image": [1],
        "imageAlt": [1, "image-alt"]
    }]);
function defineCustomElement$1() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["ecl-card", "ecl-picture"];
    components.forEach(tagName => { switch (tagName) {
        case "ecl-card":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, EclCard$1);
            }
            break;
        case "ecl-picture":
            if (!customElements.get(tagName)) {
                defineCustomElement$2();
            }
            break;
    } });
}

const EclCard = EclCard$1;
const defineCustomElement = defineCustomElement$1;

export { EclCard, defineCustomElement };

//# sourceMappingURL=ecl-card.js.map