import { h } from "@stencil/core";
export class CardText {
    el;
    hasBtn;
    componentWillLoad() {
        const link = this.el.closest("ifx-card").querySelector("ifx-link");
        const button = this.el.closest("ifx-card").querySelector("ifx-button");
        if (link || button) {
            this.hasBtn = true;
        }
    }
    render() {
        return (h("div", { key: '894ce1856db3241d6103d5b98689acd25a270b88', class: `card__text-wrapper ${this.hasBtn ? "hasBtn" : ""}` }, h("div", { key: 'ef9965d519cab72697ed3ca47656fb056887bdb0', class: `card-text` }, h("slot", { key: '5c935938f2431e4bfdf1045d3f9c71a2cdc83ab8' }))));
    }
    static get is() { return "ifx-card-text"; }
    static get encapsulation() { return "shadow"; }
    static get originalStyleUrls() {
        return {
            "$": ["./card-text.scss"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["card-text.css"]
        };
    }
    static get states() {
        return {
            "hasBtn": {}
        };
    }
    static get elementRef() { return "el"; }
}
//# sourceMappingURL=card-text.js.map
