import{p as e,H as t,h as i,t as n}from"./p-Bpcl2TqF.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 c=e(class e extends t{constructor(e){super();if(e!==false){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;if(t&&t.includes("horizontal")){this.direction="horizontal"}const i=e.querySelector("ifx-card-text");if(i){this.hasDesc=true}}}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 a()}},[769,"ifx-card-headline",{direction:[32],hasDesc:[32]}]);function s(){if(typeof customElements==="undefined"){return}const e=["ifx-card-headline"];e.forEach((e=>{switch(e){case"ifx-card-headline":if(!customElements.get(n(e))){customElements.define(n(e),c)}break}}))}const o=c;const r=s;export{o as IfxCardHeadline,r as defineCustomElement};
//# sourceMappingURL=ifx-card-headline.js.map