import{r as n,h as t,F as r,H as e}from"./p-9f21f85f.js";const c=class{constructor(t){n(this,t),this.value=[]}render(){return t(e,null,t("div",{class:"separator"}),this.value.map((n=>{let e=null;switch(n.type){case"h1":e=t("h1",null,n.value.text);break;case"h2":e=t("h2",null,n.value.text);break;case"h3":e=t("h3",null,n.value.text);break;case"text":e=t("dvn-markdown",{content:n.value.text})}return t(r,null,e,t("div",{class:"separator"}))})))}};c.style="dvn-rich-content{--content-gap-size:24px}dvn-rich-content .separator{height:var(--content-gap-size)}dvn-rich-content h1{font-size:2rem;margin:0;display:block}dvn-rich-content h2{font-size:1.6rem;margin:0;display:block}dvn-rich-content h3{font-size:1.2rem;margin:0;display:block}dvn-rich-content dvn-markdown{line-height:24px}dvn-rich-content dvn-markdown *:first-child{margin-top:0}dvn-rich-content dvn-markdown *:last-child{margin-bottom:0}";export{c as dvn_rich_content}