1import{S as u,T as s,Y as l,q as d}from"./BToLwQTB.js";import{t as i}from"./Bt81Nok92.js";var f=u({name:"ContentRenderer",props:{value:{type:Object,required:!1,default:()=>({})},excerpt:{type:Boolean,default:!1},tag:{type:String,default:"div"}},setup(e){l(()=>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=d(),{value:n,excerpt:r,tag:a}=e,o=r?n?.excerpt:n?.body;return!o?.children?.length&&t?.empty?t.empty({value:n,excerpt:r,tag:a,...this.$attrs}):t?.default?t.default({value:n,excerpt:r,tag:a,...this.$attrs}):o?.type==="root"&&o?.children?.length?s(i,{value:n,excerpt:r,tag:a,...this.$attrs}):s("pre",null,JSON.stringify({message:"You should use slots with <ContentRenderer>",value:n,excerpt:r,tag:a},null,2))}}),p=Object.assign(f,{__name:"ContentRenderer"});export{p 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.