import{d as y,a7 as C,ad as g,ai as v,a9 as D,ae as n}from"./BvNnk7SS.js";import{u}from"./D79LvSVF.js";import q from"./DPZI2Lq5.js";import w from"./DAkOAVP6.js";import"./BWgwykTL.js";import"./Bp47c7wY.js";import"./BXBHssRj.js";import"./DGhmaXto.js";import"./BJLPbHX2.js";import"./DQ_4YmnO.js";const S=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:r,path:f,query:s,head:i}=p,a=i===void 0?l:i,m={...s||{},path:f||s?.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:r,...this.$attrs})):({data:t})=>(a&&u(t),n(q,{value:t,excerpt:r,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>.")})}}),I=S;export{I as default};
