'use strict';

var index = require('./index-CpWVsZ_u.js');

const cardTextCss = () => `:host{pointer-events:none}.card__text-wrapper{padding-bottom:0px}.card__text-wrapper.hasBtn{padding-bottom:16px}.card-text{line-height:1.5rem;font-size:1rem;font-weight:400;white-space:wrap;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}`;

const CardText = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
    }
    get el() { return index.getElement(this); }
    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 (index.h("div", { key: '894ce1856db3241d6103d5b98689acd25a270b88', class: `card__text-wrapper ${this.hasBtn ? "hasBtn" : ""}` }, index.h("div", { key: 'ef9965d519cab72697ed3ca47656fb056887bdb0', class: `card-text` }, index.h("slot", { key: '5c935938f2431e4bfdf1045d3f9c71a2cdc83ab8' }))));
    }
};
CardText.style = cardTextCss();

exports.ifx_card_text = CardText;
//# sourceMappingURL=ifx-card-text.entry.cjs.js.map

//# sourceMappingURL=ifx-card-text.cjs.entry.js.map