import{r as e,h as i,a}from"./p-PqnYwNKt.js";const t=':root{--ifx-font-family:"Source Sans 3", "Arial, 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.horizontal{font-size:1.25rem;line-height:28px}';const o=class{constructor(i){e(this,i)}componentWillLoad(){var e;const i=this.el.closest("ifx-card");if(i){const a=(e=i.shadowRoot.querySelector(".card"))===null||e===void 0?void 0:e.className;if(a&&a.includes("horizontal")){this.direction="horizontal"}const t=i.querySelector("ifx-card-text");if(t){this.hasDesc=true}}}render(){return i("div",{key:"46766a6fd8ea2e16ad47662ad5ad06d25359f5e0",class:`card__headline-wrapper ${this.hasDesc?"withDesc":""}`},i("div",{key:"2368c853f7f8ce565ab00628b925c86eae56eae1",class:`card-headline ${this.direction}`},i("slot",{key:"8c99851e5308f19672df8aa625ca428464fea515"})))}get el(){return a(this)}};o.style=t;export{o as ifx_card_headline};
//# sourceMappingURL=p-9ba730bb.entry.js.map