import { r as registerInstance, h, g as getElement } from './chunk-82a2445c.js';
import './chunk-d7ac2f15.js';
import { C as Css } from './chunk-18ca1c85.js';
/** Class representing a card. */
var Card = /** @class */ (function () {
    function Card(hostRef) {
        registerInstance(this, hostRef);
    }
    // todo: ??
    // @Prop() collapsible: boolean = false;
    // @Prop() collapsed: boolean = false;
    // @Prop() transparent: boolean = false;
    /**
     * Renders the card.
     * @return {html} The rendered html.
     */
    Card.prototype.render = function () {
        return (h("div", null, h("slot", null)));
    };
    Object.defineProperty(Card, "style", {
        get: function () { return ":root{--ema-color:#343a40;--ema-primary:#007bff;--ema-secondary:#6c757d;--ema-success:#28a745;--ema-info:#17a2b8;--ema-warning:#ffc107;--ema-danger:#dc3545;--ema-light:#f8f9fa;--ema-dark:#343a40;--ema-background:#fff;--ema-background-diap:rgba(29,29,29,0.97);--ema-border-color:#c5c9cd;--ema-border:1px solid #c5c9cd;--ema-border-radius:3px 3px 3px 3px;--ema-box-shadow:1px 1px 10px 1px #ccc;--ema-margin:0.25rem;--ema-margin-sm:0.5rem;--ema-margin-md:1rem;--ema-margin-lg:1.5rem;--ema-margin-xl:2rem;--ema-padding:0.25rem;--ema-padding-sm:0.5rem;--ema-padding-md:1rem;--ema-padding-lg:1.5rem;--ema-padding-xl:2rem;--ema-gray-100:#f8f9fa;--ema-gray-200:#e9ecef;--ema-gray-300:#dee2e6;--ema-gray-400:#ced4da;--ema-gray-500:#adb5bd;--ema-gray-600:#868e96;--ema-gray-700:#495057;--ema-gray-800:#343a40;--ema-gray-900:#212529}ema-card{color:var(--ema-color);display:block;min-height:50px;min-width:230px;-webkit-box-shadow:var(--ema-box-shadow);box-shadow:var(--ema-box-shadow);border-radius:var(--ema-border-radius,3px);background:var(--ema-background,#fff)}"; },
        enumerable: true,
        configurable: true
    });
    return Card;
}());
var CardContent = /** @class */ (function () {
    function CardContent(hostRef) {
        registerInstance(this, hostRef);
        this.background = 'none';
        this.color = 'inherit';
        this.padding = '10px 20px';
    }
    CardContent.prototype.componentDidLoad = function () {
        this.postRender();
    };
    CardContent.prototype.componentDidUpdate = function () {
        this.postRender();
    };
    CardContent.prototype.postRender = function () {
        var _this = this;
        setTimeout(function () {
            Css.setVar('ema-card-content-background', _this.background, _this.el.querySelector('.ema-card-content'));
            Css.setVar('ema-card-content-color', _this.color, _this.el.querySelector('.ema-card-content'));
            Css.setVar('ema-card-content-padding', _this.padding, _this.el.querySelector('.ema-card-content'));
        });
    };
    CardContent.prototype.render = function () {
        return (h("div", { class: "ema-card-content" }, h("slot", null)));
    };
    Object.defineProperty(CardContent.prototype, "el", {
        get: function () { return getElement(this); },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(CardContent, "style", {
        get: function () { return ":root{--ema-color:#343a40;--ema-primary:#007bff;--ema-secondary:#6c757d;--ema-success:#28a745;--ema-info:#17a2b8;--ema-warning:#ffc107;--ema-danger:#dc3545;--ema-light:#f8f9fa;--ema-dark:#343a40;--ema-background:#fff;--ema-background-diap:rgba(29,29,29,0.97);--ema-border-color:#c5c9cd;--ema-border:1px solid #c5c9cd;--ema-border-radius:3px 3px 3px 3px;--ema-box-shadow:1px 1px 10px 1px #ccc;--ema-margin:0.25rem;--ema-margin-sm:0.5rem;--ema-margin-md:1rem;--ema-margin-lg:1.5rem;--ema-margin-xl:2rem;--ema-padding:0.25rem;--ema-padding-sm:0.5rem;--ema-padding-md:1rem;--ema-padding-lg:1.5rem;--ema-padding-xl:2rem;--ema-gray-100:#f8f9fa;--ema-gray-200:#e9ecef;--ema-gray-300:#dee2e6;--ema-gray-400:#ced4da;--ema-gray-500:#adb5bd;--ema-gray-600:#868e96;--ema-gray-700:#495057;--ema-gray-800:#343a40;--ema-gray-900:#212529}.ema-card-content{min-height:25px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background:var(--ema-card-content-background,inherit);color:var(--ema-card-content-color,inherit);padding:var(--ema-card-content-padding,inherit)}"; },
        enumerable: true,
        configurable: true
    });
    return CardContent;
}());
var CardHeader = /** @class */ (function () {
    function CardHeader(hostRef) {
        registerInstance(this, hostRef);
        this.background = 'none';
        this.color = 'inherit';
        this.padding = '10px 20px';
    }
    CardHeader.prototype.componentDidLoad = function () {
        this.postRender();
    };
    CardHeader.prototype.componentDidUpdate = function () {
        this.postRender();
    };
    CardHeader.prototype.postRender = function () {
        var _this = this;
        setTimeout(function () {
            Css.setVar('ema-card-header-background', _this.background, _this.el.querySelector('.ema-card-header'));
            Css.setVar('ema-card-header-color', _this.color, _this.el.querySelector('.ema-card-header'));
            Css.setVar('ema-card-header-padding', _this.padding, _this.el.querySelector('.ema-card-header'));
        });
    };
    CardHeader.prototype.render = function () {
        return (h("div", { class: "ema-card-header" }, h("slot", null)));
    };
    Object.defineProperty(CardHeader.prototype, "el", {
        get: function () { return getElement(this); },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(CardHeader, "style", {
        get: function () { return ":root{--ema-color:#343a40;--ema-primary:#007bff;--ema-secondary:#6c757d;--ema-success:#28a745;--ema-info:#17a2b8;--ema-warning:#ffc107;--ema-danger:#dc3545;--ema-light:#f8f9fa;--ema-dark:#343a40;--ema-background:#fff;--ema-background-diap:rgba(29,29,29,0.97);--ema-border-color:#c5c9cd;--ema-border:1px solid #c5c9cd;--ema-border-radius:3px 3px 3px 3px;--ema-box-shadow:1px 1px 10px 1px #ccc;--ema-margin:0.25rem;--ema-margin-sm:0.5rem;--ema-margin-md:1rem;--ema-margin-lg:1.5rem;--ema-margin-xl:2rem;--ema-padding:0.25rem;--ema-padding-sm:0.5rem;--ema-padding-md:1rem;--ema-padding-lg:1.5rem;--ema-padding-xl:2rem;--ema-gray-100:#f8f9fa;--ema-gray-200:#e9ecef;--ema-gray-300:#dee2e6;--ema-gray-400:#ced4da;--ema-gray-500:#adb5bd;--ema-gray-600:#868e96;--ema-gray-700:#495057;--ema-gray-800:#343a40;--ema-gray-900:#212529}.ema-card-header{min-height:25px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background:var(--ema-card-header-background,inherit);color:var(--ema-card-header-color,inherit);padding:var(--ema-card-header-padding,inherit)}.ema-card-header-title{margin:5px 0}.ema-card-header-subtitle{margin:5px 0;font-size:80%}"; },
        enumerable: true,
        configurable: true
    });
    return CardHeader;
}());
export { Card as ema_card, CardContent as ema_card_content, CardHeader as ema_card_header };
