import{u as f,h as _,R as m,w,i as v,g as D,S,by as y,o as C,c as A,d as b,k as e,aE as x,c2 as P,e as k}from"./CmnEfQIC.js";const T={class:"ebm-content-page"},q={__name:"ContentPage",async setup(E){let a,n;const{$page:g,$gql:r}=f(),{fullPath:h,query:t,path:c}=_(),p=x(),s=m({}),{data:o}=([a,n]=w(()=>P("page",()=>g.getPage())),a=await a,n(),a);if(!o.value)throw v({statusCode:404,statusMessage:"Page Not Found",fatal:!0});s.value={...o.value,pageData:{...o.value.pageData,route:{fullPath:h,query:t,path:c}}};const l=D("cacheAge",()=>new Date().getTime());return S(async()=>{await y.getUserInfo(),p.public.isDev||(console.log("🚀 cacheAge:",(new Date().getTime()-l.value)/1e3),console.log("clear Cache?: ",new Date().getTime()-l.value>6e5),new Date().getTime()-l.value>6e5&&r.mutate("crawlWebsiteLayoutCacheLock",{input:{aliases:[c],host:window.location.hostname}}))}),(N,R)=>{var u,i;const d=k;return C(),A("div",T,[b(d,{page:e(s),"include-shell":e(t).includeShell!=="false"&&((u=e(s))==null?void 0:u.hideSiteShell)!==!0,"full-height":e(t).fullHeight!=="false","full-width":e(t).fullWidth==="true"||((i=e(s))==null?void 0:i.hideSiteShell),"preview-mode":e(t)["preview-mode"]},null,8,["page","include-shell","full-height","full-width","preview-mode"])])}}};export{q as default};