import{p as e,H as t,h as i,t as a}from"./p-CHfEnK-2.js";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}get el(){return this}direction;hasDesc;componentWillLoad(){const e=this.el.closest("ifx-card");if(e){const t=e.shadowRoot.querySelector(".card")?.className;t&&t.includes("horizontal")&&(this.direction="horizontal"),e.querySelector("ifx-card-text")&&(this.hasDesc=!0)}}render(){return i("div",{key:"256f7113bf55303b27dcb701371a6f794cbdb7d5",class:"card__headline-wrapper "+(this.hasDesc?"withDesc":"")},i("div",{key:"d5cdb2d7319b4dc35f4c07fa7f5c14c94da1f60c",class:"card-headline "+this.direction},i("slot",{key:"df29684c4e66bbfe0c5a0f85e4daec968199b77a"})))}static get style(){return":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}"}},[769,"ifx-card-headline",{direction:[32],hasDesc:[32]}]),d=n,r=function(){"undefined"!=typeof customElements&&["ifx-card-headline"].forEach((e=>{"ifx-card-headline"===e&&(customElements.get(a(e))||customElements.define(a(e),n))}))};export{d as IfxCardHeadline,r as defineCustomElement}