import u from"./CKqR_IZT.js";import{h as i,y as l,A as s,s as c}from"#entry";import"./BSZFgSs5.js";import"./B8IaAclc.js";import"./0273L7R-.js";const d=i({name:"ContentRenderer",props:{value:{type:Object,required:!1,default:()=>({})},excerpt:{type:Boolean,default:!1},tag:{type:String,default:"div"}},setup(e){c(()=>e.excerpt,t=>{t&&!e.value?.excerpt&&(console.warn(`No excerpt found for document content/${e?.value?._path}.${e?.value?._extension}!`),console.warn("Make sure to use in your content if you want to use excerpt feature."))},{immediate:!0})},render(e){const t=l(),{value:n,excerpt:r,tag:o}=e,a=r?n?.excerpt:n?.body;return!a?.children?.length&&t?.empty?t.empty({value:n,excerpt:r,tag:o,...this.$attrs}):t?.default?t.default({value:n,excerpt:r,tag:o,...this.$attrs}):a?.type==="root"&&a?.children?.length?s(u,{value:n,excerpt:r,tag:o,...this.$attrs}):s("pre",null,JSON.stringify({message:"You should use slots with ",value:n,excerpt:r,tag:o},null,2))}}),x=Object.assign(d,{__name:"ContentRenderer"});export{x as default};

AltStyle によって変換されたページ (->オリジナル) /