import{p as t,H as e,h as s,t as i}from"./p-Bpcl2TqF.js";const c=()=>`: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 r=t(class t extends e{constructor(t){super();if(t!==false){this.__registerHost()}this.__attachShadow()}get el(){return this}hasBtn;componentWillLoad(){const t=this.el.closest("ifx-card").querySelector("ifx-link");const e=this.el.closest("ifx-card").querySelector("ifx-button");if(t||e){this.hasBtn=true}}render(){return s("div",{key:"894ce1856db3241d6103d5b98689acd25a270b88",class:`card__text-wrapper ${this.hasBtn?"hasBtn":""}`},s("div",{key:"ef9965d519cab72697ed3ca47656fb056887bdb0",class:`card-text`},s("slot",{key:"5c935938f2431e4bfdf1045d3f9c71a2cdc83ab8"})))}static get style(){return c()}},[769,"ifx-card-text",{hasBtn:[32]}]);function n(){if(typeof customElements==="undefined"){return}const t=["ifx-card-text"];t.forEach((t=>{switch(t){case"ifx-card-text":if(!customElements.get(i(t))){customElements.define(i(t),r)}break}}))}const a=r;const o=n;export{a as IfxCardText,o as defineCustomElement};
//# sourceMappingURL=ifx-card-text.js.map