import{d as y,P as C,ax as g,R as v,af as D,I as n}from"./Dih1Xbo1.js";import q from"./C864TgAQ.js";import w from"./r5GV0_WY.js";import{u}from"./BHy2SBEm.js";import"./D-IzPQvT.js";import"./Dlwt_Ktx.js";import"./Y8sfbbmi.js";import"./CJ5NhiWv.js";import"./CzKwzGAK.js";import"./BLTKKlVT.js";import"./DuwiEx1X.js";import"./BDn_2gCt.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: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>.")})}}),J=_;export{J as default};
