import{d as r,t as h,o as u,c as l,w as i,a as C,u as s,_ as x,b as k,e as w,f as y,g as P,h as B,i as R,j as b,k as A}from"./T-Ya1GIG.js";const S=r({__name:"PagesCms",props:{page:{},template:{}},setup(m){const e=m,{page:t}=h(e);return(n,a)=>{const o=x,c=k;return u(),l(c,{class:"cms-page"},{default:i(()=>[C(o,{template:n.template,page:s(t)},null,8,["template","page"])]),_:1})}}}),j=w(S,[["__scopeId","data-v-1d4555b1"]]),D=r({__name:"[...path]",async setup(m){let e,t;const{getPageAndCache:n}=y(),{page:a,meta:o}=([e,t]=P(()=>n()),e=await e,t(),e);B(o);const c=R(),g=b(),d=A(()=>{var p,_;if(a.template)return(_=(p=g.page(a.template))==null?void 0:p.md)==null?void 0:_.md});return(p,_)=>{const f=j;return u(),l(f,{key:s(c).path,page:s(a),template:s(d)},null,8,["page","template"])}}});export{D as default};