'use strict';

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

const cardTextCss = ":root{--ifx-font-family:\"Source Sans 3\", 'Arial, sans-serif'}: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);
    }
    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: '5a2aabfe888a3828a6017412ee91188efe4d64c2', class: `card__text-wrapper ${this.hasBtn ? 'hasBtn' : ""}` }, index.h("div", { key: '39aa1e521652e4b323dd571614e297a5a600cfa9', class: `card-text` }, index.h("slot", { key: 'b72bc79a33bb48e96ae9f825dd48ca9b9b44725f' }))));
    }
    get el() { return index.getElement(this); }
};
CardText.style = cardTextCss;

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

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