1import{R as h,l as f,n as v,U as y,Z as w,E as D,d as q,aT as H,ac as S,a4 as a}from"./oLhGnyaS.js";import _ from"./dVbO-p-z.js";import b from"./BqJcEbfK.js";import"./DBCBTsHE.js";import"./BSZFgSs5.js";import"./BN_7HF1G.js";import"./DO9j4ENN.js";const m=(c,u=h())=>{const n=f(c),l=y();v(()=>f(c),(o=n)=>{if(!u.path||!o)return;const t=Object.assign({},o?.head||{});t.meta=[...t.meta||[]],t.link=[...t.link||[]];const i=t.title||o?.title;i&&(t.title=i),l.public.content.host;const s=t?.description||o?.description;s&&t.meta.filter(d=>d.name==="description").length===0&&t.meta.push({name:"description",content:s}),t?.image||o?.image,w(()=>D(t))},{immediate:!0})},x=q({name:"ContentDoc",props:{tag:{type:String,required:!1,default:"div"},excerpt:{type:Boolean,default:!1},path:{type:String,required:!1,default:void 0},query:{type:Object,required:!1,default:void 0},head:{type:Boolean,required:!1,default:void 0}},render(c){const{contentHead:u}=y().public.content,n=H(),{tag:l,excerpt:p,path:o,query:t,head:i}=c,s=i===void 0?u:i,d={...t||{},path:o||t?.path||S(h().path),find:"one"},g=(e,r)=>a("pre",null,JSON.stringify({message:"You should use slots with <ContentDoc>",slot:e,data:r},null,2));return a(b,d,{default:n?.default?({data:e,refresh:r,isPartial:C})=>(s&&m(e),n.default?.({doc:e,refresh:r,isPartial:C,excerpt:p,...this.$attrs})):({data:e})=>(s&&m(e),a(_,{value:e,excerpt:p,tag:l,...this.$attrs},{empty:r=>n?.empty?n.empty(r):g("default",e)})),empty:e=>n?.empty?.(e)||a("p",null,"Document is empty, overwrite this content with #empty slot in <ContentDoc>."),"not-found":e=>n?.["not-found"]?.(e)||a("p",null,"Document not found, overwrite this content with #not-found slot in <ContentDoc>.")})}}),N=x;export{N 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.