import{r as e,a as i,h as t}from"./p-Cby2wKoI.js";const a=()=>`:host{pointer-events:none}.card__headline-wrapper{padding-bottom:16px}.card__headline-wrapper.withDesc{padding-bottom:8px}.card-headline{margin-top:0;padding-top:0;font-family:var(--ifx-font-family);font-weight:600;font-size:1.5rem;line-height:2rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.card-headline.horizontal{font-size:1.25rem;line-height:28px}`;const o=class{constructor(i){e(this,i)}get el(){return i(this)}direction;hasDesc;componentWillLoad(){const e=this.el.closest("ifx-card");if(e){const i=e.shadowRoot.querySelector(".card")?.className;if(i&&i.includes("horizontal")){this.direction="horizontal"}const t=e.querySelector("ifx-card-text");if(t){this.hasDesc=true}}}render(){return t("div",{key:"256f7113bf55303b27dcb701371a6f794cbdb7d5",class:`card__headline-wrapper ${this.hasDesc?"withDesc":""}`},t("div",{key:"d5cdb2d7319b4dc35f4c07fa7f5c14c94da1f60c",class:`card-headline ${this.direction}`},t("slot",{key:"df29684c4e66bbfe0c5a0f85e4daec968199b77a"})))}};o.style=a();export{o as ifx_card_headline};
//# sourceMappingURL=p-be6b11d5.entry.js.map