1import{_ as B}from"./DTO1UeUx.js";import{aF as x,b6 as E,b7 as S,bC as $,by as w,aE as F,bD as P,bE as T,bz as D,bF as L,bG as z,bH as M,aH as C,b8 as k,aK as f,bi as W,b9 as q,ba as A,bv as N,aI as g,bb as O}from"./DxhTx155.js";try{(function(){var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new a.Error().stack;i&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[i]="df9e2e04-f629-4bb0-9ab9-3a3089a382f4",a._sentryDebugIdIdentifier="sentry-dbid-df9e2e04-f629-4bb0-9ab9-3a3089a382f4")})()}catch{}const R=x({__name:"cmsPage",props:{fullPath:{},throwFatal:{type:Boolean}},async setup(a){var _;let i,p;const h=a,y=()=>{var e,o,s;const t=((s=(o=(e=n.value)==null?void 0:e.layout)==null?void 0:o[0])==null?void 0:s.blockType)||"";document!=null&&document.body&&(t==="HeroSection"||t==="ContactFormSection"?document.body.classList.add("has-hero"):document.body.classList.remove("has-hero"))},I=F(),{fetchPage:H}=E(),c=([i,p]=S(()=>H(h.fullPath)),i=await i,p(),i);if(c!=null&&c.redirection){const t=c.redirection,e=t.url;$(e,{redirectCode:t.code})}const n=w((c==null?void 0:c.page)||null);if(n!=null&&n.value){const t=I.public.payload.url,e=n.value.meta,o={};if(e!=null&&e.title&&(o.title=e.title,o.ogTitle=e.title),e!=null&&e.description&&(o.description=e.description,o.ogDescription=e.description),(_=e==null?void 0:e.image)!=null&&_.url){const s=`${t}${e.image.url}`;o.ogImage=s,o.twitterImage=s}y(),P(o)}else if(h.throwFatal)throw T({statusCode:404,statusMessage:"Page Not Found",fatal:!0});D(()=>n.value,()=>y(),{deep:!0});const b=L(),r=w(null),v=()=>{const t=document.querySelector("header"),e=(t==null?void 0:t.offsetHeight)||0,s=`${window.innerHeight-e}px`,l=new IntersectionObserver(m=>{m.forEach(d=>{d.isIntersecting?b.isWhiteBackground=!1:b.isWhiteBackground=!0})},{root:null,rootMargin:`0px 0px -${s} 0px`,threshold:0}),u=document.querySelector(".section-bg");return u?(l.observe(u),l):null};return z(()=>{r.value=v(),r.value||(b.isWhiteBackground=!0),document.addEventListener("resize",()=>{r.value&&(r.value.disconnect(),r.value=v())})}),M(()=>{r.value&&r.value.disconnect(),document.removeEventListener("resize",()=>{r.value&&r.value.disconnect()})}),(t,e)=>{var s,l,u;const o=B;return f(n)?(g(),C("div",{key:0,class:N(`cms-page theme-${((s=f(n))==null?void 0:s.pageTheme)||"primary"}`)},[(u=(l=f(n))==null?void 0:l.layout)!=null&&u.length?(g(!0),C(q,{key:0},A(f(n).layout,(m,d)=>(g(),O(o,{key:`key-${d}`,index:d,"initial-data":m,preview:!1},null,8,["index","initial-data"]))),128)):k("",!0),W(t.$slots,"default")],2)):k("",!0)}}});export{R as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.