import{_ as p}from"./BxKtmmPD.js";import{u as l}from"./D_ZEyAD5.js";import{d as m,s as n,c as i,o as v,u as f}from"./DnBXlrVC.js";const x=m({__name:"ContentRendererMarkdown",props:{value:{type:Object,required:!0},excerpt:{type:Boolean,default:!1},tag:{type:String,default:"div"},components:{type:Object,default:()=>({})},data:{type:Object,default:()=>({})}},setup(a){const e=a,d=l().isEnabled(),r=n(()=>{let t=e.value.body||e.value;return e.excerpt&&e.value.excerpt&&(t=e.value.excerpt),t}),c=n(()=>{const{body:t,excerpt:s,...o}=e.value;return{...o,...e.data}}),u=n(()=>({...e.components,...c.value._components||{}}));return(t,s)=>{const o=p;return v(),i(o,{body:r.value,data:c.value,tag:a.tag,components:u.value,"data-content-id":f(d)?a.value._id:void 0},null,8,["body","data","tag","components","data-content-id"])}}});export{x as _};
