import{r as registerInstance,h,F as Fragment,H as Host}from"./index-ecdfb761.js";var dvnRichContentCss="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}";var DvnRichContent=function(){function n(n){registerInstance(this,n);this.value=[]}n.prototype.render=function(){return h(Host,null,h("div",{class:"separator"}),this.value.map((function(n){var t=null;switch(n.type){case"h1":t=h("h1",null,n.value.text);break;case"h2":t=h("h2",null,n.value.text);break;case"h3":t=h("h3",null,n.value.text);break;case"text":t=h("dvn-markdown",{content:n.value.text});break}return h(Fragment,null,t,h("div",{class:"separator"}))})))};return n}();DvnRichContent.style=dvnRichContentCss;export{DvnRichContent as dvn_rich_content};