import{C,q as p,u as e,x as D,aw as S,a8 as E,cd as I,N as w,D as d,a3 as g,E as r,K as f,O as N,S as A,R as K,F as x,J as F,L,M}from"./vendor-BGtMsOoo.js";import{f as R,i as q}from"./index-CRze-aDK.js";import{u as H}from"./useBreadcrumbs-DdGLvHNR.js";const J={key:0,class:"mx-auto mt-7 w-full max-w-screen-2xl px-5 pb-5 md:px-12 lg:pb-10"},G=C({__name:"static-page",setup(O){const{staticPage:t}=R(),B=p(()=>{var s,c,n,o;return((c=(s=e(t))==null?void 0:s.settings)==null?void 0:c.name)||((o=(n=e(t))==null?void 0:n.settings)==null?void 0:o.header)||""}),T=H(()=>[{title:B.value}]),h=D(null),V=S(h);E(()=>{var s,c,n,o,i,l,m,u,a,y,_;if(V.value){const b=((n=(c=(s=e(t))==null?void 0:s.settings)==null?void 0:c.seoInfo)==null?void 0:n.pageTitle)||((i=(o=e(t))==null?void 0:o.settings)==null?void 0:i.name),k=(u=(m=(l=e(t))==null?void 0:l.settings)==null?void 0:m.seoInfo)==null?void 0:u.metaDescription,v=(_=(y=(a=e(t))==null?void 0:a.settings)==null?void 0:y.seoInfo)==null?void 0:_.metaKeywords;q({title:p(()=>b),meta:{keywords:p(()=>v),description:p(()=>k)}}),I({ogUrl:window.location.toString(),ogTitle:b,ogDescription:k,ogType:"website"})}});function P(s){switch(s){case"text":return"text-block";case"image":return"image-block";case"title":return"title-block";default:return s}}return(s,c)=>{var i,l,m,u;const n=w("VcBreadcrumbs"),o=w("VcTypography");return e(t)?(r(),d("div",{key:0,ref_key:"staticPageAnchor",ref:h},[!((i=e(t).settings)!=null&&i.hideBreadcrumbs)||(l=e(t).settings)!=null&&l.header?(r(),d("div",J,[(m=e(t).settings)!=null&&m.hideBreadcrumbs?g("",!0):(r(),f(n,{key:0,class:"mb-3",items:e(T)},null,8,["items"])),(u=e(t).settings)!=null&&u.header?(r(),f(o,{key:1,tag:"h1"},{default:N(()=>[A(K(e(t).settings.header),1)]),_:1})):g("",!0)])):g("",!0),(r(!0),d(x,null,F(e(t).content,a=>(r(),d(x,null,[a.hidden?g("",!0):(r(),f(M(P(a.type)),L({key:a.id,ref_for:!0},a,{model:a,settings:e(t).settings}),null,16,["model","settings"]))],64))),256))],512)):g("",!0)}}});export{G as _};
//# sourceMappingURL=static-page.vue_vue_type_script_setup_true_lang-C5kP1FvF.js.map
