import{r as i,h as e,g as t}from"./p-5308bbce.js";const o=':root{--ifx-font-family:"Source Sans 3";font-family:var(--ifx-font-family, sans-serif)}: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.isHovered{color:#0A8276}.card-headline.horizontal{font-size:1.25rem;line-height:28px}';const n=class{constructor(e){i(this,e);this.direction=undefined;this.hasDesc=undefined;this.isHovered=false}componentWillLoad(){var i;const e=this.el.closest("ifx-card");if(e){const t=(i=e.shadowRoot.querySelector(".card"))===null||i===void 0?void 0:i.className;if(t&&t.includes("horizontal")){this.direction="horizontal"}const o=e.querySelector("ifx-card-text");if(o){this.hasDesc=true}}}render(){return e("div",{class:`card__headline-wrapper ${this.hasDesc?"withDesc":""}`},e("div",{class:`card-headline ${this.direction} ${this.isHovered?"isHovered":""}`},e("slot",null)))}get el(){return t(this)}};n.style=o;export{n as ifx_card_headline}; //# sourceMappingURL=p-38dfaa49.entry.js.map