import{d as v,ay as T,k as d,o as s,G as u,V as y,f as e,a6 as a,v as o,t as n,C as c,e as k,O as C,c as S,w as g,at as p,a9 as $}from"./llFuKhWI.js";const B={class:"is-relative headline--mobile-sizes"},V={key:0,class:"rooftitle mb-1"},N={key:0,class:"rooftitle mb-1"},w=v({__name:"Headline",props:{headlineType:{type:String,default:"h2"},rooftitle:{type:String,default:""},title:{type:String,default:""},subtitle:{type:String,default:""},titleClasses:{type:String,default:""}},setup(t){const r=t,f=T(),h=d(()=>!!r.rooftitle||!!f.rooftitle),m=d(()=>!!r.title||!!f.title),l=d(()=>!!r.subtitle||!!f.subtitle),b=d(()=>r.headlineType==="h1"?h.value&&m?"h3":"h4":r.headlineType==="h2"?h.value&&m?"h4":"h5":"p");return(i,z)=>(s(),u("div",B,[t.headlineType==="h1"?(s(),u(y,{key:0},[e(h)?(s(),u("h2",V,[a(i.$slots,"rooftitle",{},()=>[o(n(t.rooftitle),1)],!0)])):c("",!0),k("h1",{class:C(["title title--h1",[t.titleClasses,{"mb-0":!e(l),"mb-5":e(l)}]])},[a(i.$slots,"title",{},()=>[o(n(t.title),1)],!0)],2),e(l)?(s(),S(p(e(b)),{key:1,class:"subtitle title--h3 mb-5"},{default:g(()=>[a(i.$slots,"subtitle",{},()=>[o(n(t.subtitle),1)],!0)]),_:3})):c("",!0)],64)):t.headlineType==="h2"?(s(),u(y,{key:1},[e(h)?(s(),u("h3",N,[a(i.$slots,"rooftitle",{},()=>[o(n(t.rooftitle),1)],!0)])):c("",!0),k("h2",{class:C(["title title--h2",[t.titleClasses,{"mb-0":!e(l),"mb-5":e(l)}]])},[a(i.$slots,"title",{},()=>[o(n(t.title),1)],!0)],2),e(l)?(s(),S(p(e(b)),{key:1,class:"subtitle mb-0"},{default:g(()=>[a(i.$slots,"subtitle",{},()=>[o(n(t.subtitle),1)],!0)]),_:3})):c("",!0)],64)):c("",!0)]))}}),E=$(w,[["__scopeId","data-v-07b55510"]]);export{E as _};