import{d as y,P as C,ar as g,R as v,an as D,I as n}from"./Bxv1kRJt.js";import q from"./C6KK1e8t.js";import w from"./CVnciSnK.js";import{u}from"./DGvwwwot.js";import"./BQlbyX0m.js";import"./Y8sfbbmi.js";import"./CJ5NhiWv.js";import"./Dv7rEyVi.js";import"./Dwvp_P-r.js";import"./Fma_4dAm.js";const _=y({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(p){const{contentHead:l}=C().public.content,e=g(),{tag:d,excerpt:s,path:f,query:r,head:i}=p,a=i===void 0?l:i,m={...r||{},path:f||r?.path||v(D().path),find:"one"},c=(t,o)=>n("pre",null,JSON.stringify({message:"You should use slots with <ContentDoc>",slot:t,data:o},null,2));return n(w,m,{default:e?.default?({data:t,refresh:o,isPartial:h})=>(a&&u(t),e.default?.({doc:t,refresh:o,isPartial:h,excerpt:s,...this.$attrs})):({data:t})=>(a&&u(t),n(q,{value:t,excerpt:s,tag:d,...this.$attrs},{empty:o=>e?.empty?e.empty(o):c("default",t)})),empty:t=>e?.empty?.(t)||n("p",null,"Document is empty, overwrite this content with #empty slot in <ContentDoc>."),"not-found":t=>e?.["not-found"]?.(t)||n("p",null,"Document not found, overwrite this content with #not-found slot in <ContentDoc>.")})}}),O=_;export{O as default};
