1import{_ as u}from"./CHh372fn.js";import{l,ao as i,m as s,p as c}from"./D18vniqq.js";import"./CjLVFfhE.js";import"./B8IaAclc.js";const h=l({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 <!--more--> in your content if you want to use excerpt feature."))},{immediate:!0})},render(e){const t=i(),{value:r,excerpt:n,tag:o}=e,a=n?r?.excerpt:r?.body;return!a?.children?.length&&t?.empty?t.empty({value:r,excerpt:n,tag:o,...this.$attrs}):t?.default?t.default({value:r,excerpt:n,tag:o,...this.$attrs}):a?.type==="root"&&a?.children?.length?s(u,{value:r,excerpt:n,tag:o,...this.$attrs}):s("pre",null,JSON.stringify({message:"You should use slots with <ContentRenderer>",value:r,excerpt:n,tag:o},null,2))}});export{h as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.