import { h } from "@stencil/core";
export class CardText {
    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: '5a2aabfe888a3828a6017412ee91188efe4d64c2', class: `card__text-wrapper ${this.hasBtn ? 'hasBtn' : ""}` }, h("div", { key: '39aa1e521652e4b323dd571614e297a5a600cfa9', class: `card-text` }, h("slot", { key: 'b72bc79a33bb48e96ae9f825dd48ca9b9b44725f' }))));
    }
    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
