import{aY as p,u as g,_ as m}from"./BEHLK9AZ.js";import{d as h,g as u}from"./CQs3f_ly.js";import{T as l,a as d}from"./Bm8NRSKZ.js";import{k as y,l as T,eR as a,eV as s,eT as o,f5 as f,eX as n,O as c,P as i}from"./CvwUa3EE.js";var t=(e=>(e.default="default",e.pageTitle="pageTitle",e))(t||{});const H=y({name:"EmmaSectionHeading",mixins:[p()],props:{alignment:{type:String,validator:e=>Object.keys(l).includes(e),default:l.left},heading:{type:String,default:void 0},subHeadline:{type:String,default:void 0},tagType:{type:String,validator:e=>Object.keys(d).includes(e),default:d.h2},displayMode:h,variant:{type:String,default:t.default},theme:String},setup(e){const r=T(()=>e.theme);return g(r)},computed:{headingProps(){return{class:[this.alignmentClasses,this.typographyHeadlineClasses,"section-heading"],"data-test":"section-heading"}},alignmentClasses(){return`align--${this.alignment}`},displayClasses(){return u("section-heading",this.displayMode)},isPagetitle(){return this.variant===t.pageTitle},typographyHeadlineClasses(){return this.variant===t.pageTitle?"display-s-normal sm-display-m-normal md-display-l-normal":"display-xs-normal sm-display-s-normal md-display-m-normal"}}}),C=["innerHTML"],M=["innerHTML"],k=["innerHTML"],b=["innerHTML"];function v(e,r,P,L,S,$){return a(),s("div",{class:o([[e.displayClasses,e.alignmentClasses],"section-heading-wrapper"])},[e.subHeadline&&!e.isPagetitle&&e.heading?(a(),s("p",{key:0,class:o(["section-subheadline body-s-400 md-body-m-400",[e.alignmentClasses]]),"data-test":"section-subheadline"},f(e.subHeadline),3)):n("",!0),e.heading?(a(),s(c,{key:1},[e.tagType==="h1"?(a(),s("h1",i({key:0,innerHTML:e.heading},e.headingProps),null,16,C)):n("",!0),e.tagType==="h2"?(a(),s("h2",i({key:1,innerHTML:e.heading},e.headingProps),null,16,M)):n("",!0),e.tagType==="h3"?(a(),s("h3",i({key:2,innerHTML:e.heading},e.headingProps),null,16,k)):n("",!0),e.tagType==="h4"?(a(),s("h4",i({key:3,innerHTML:e.heading},e.headingProps),null,16,b)):n("",!0)],64)):n("",!0)],2)}const D=m(H,[["render",v],["__scopeId","data-v-56fb5d37"]]);export{D as E,t as a};