import { h } from "@stencil/core";
export class Card {
    header;
    shadow = 'always';
    render() {
        return (h("div", { key: 'a6fda886ea3031b93b9f42b12053357b7a461fcf', class: { 'hb-card': true, [`hb-card--shadow-${this.shadow}`]: true } }, (this.header || this.elHasHeaderSlot) && (h("div", { key: 'fdc0b804aa88c0520bf855e1b870880d08da9dd4', class: "hb-card__header" }, h("slot", { key: 'e335dfcc2bc494a671123599657bdc7636a873b9', name: "header" }, h("span", { key: '3391493e5295f33fb4fe0d8de5fb03a69be077f3' }, this.header)))), h("div", { key: 'e3fe736ff66aec2a14d1c22f9356ddf6c069ec2a', class: "hb-card__body" }, h("slot", { key: 'd22bff61394ae6f20c0be991f87223ab34c765b2' }))));
    }
    get elHasHeaderSlot() {
        return !!document.querySelector('hb-card [slot="header"]');
    }
    static get is() { return "hb-card"; }
    static get encapsulation() { return "shadow"; }
    static get originalStyleUrls() {
        return {
            "$": ["card.css"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["card.css"]
        };
    }
    static get properties() {
        return {
            "header": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "attribute": "header",
                "reflect": false
            },
            "shadow": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "'always' | 'hover' | 'never'",
                    "resolved": "\"always\" | \"hover\" | \"never\"",
                    "references": {}
                },
                "required": false,
                "optional": false,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "attribute": "shadow",
                "reflect": false,
                "defaultValue": "'always'"
            }
        };
    }
}
//# sourceMappingURL=Card.js.map
