import{r,u as f,j as e,C as n,a3 as g,R as N,a5 as c,m as S,bR as w}from"./index-gATdONBG.js";import{S as v}from"./sitemap-DfQUEcHk.js";const E=()=>{const[a,t]=r.useState(!1);return r.useEffect(()=>{const s=()=>{const l=document.documentElement.scrollHeight>window.innerHeight*1.5;t(l)};return window.addEventListener("resize",s),s(),()=>{window.removeEventListener("resize",s)}},[]),a},T=({id:a,heading:t,srHeading:s,description:l,children:i,linkBack:m,linkBackLabel:d,hideBackButton:x=!1,hideSitemap:b=!1,preventLinkBackScrollReset:p,contentClassName:j,...h})=>{const{t:o}=f("globals"),u=E();return e.jsxs(e.Fragment,{children:[s&&e.jsx("h1",{className:"sr-only",children:s}),e.jsxs("main",{id:a,className:"grow pb-8 pt-7 md:pb-16 md:pt-10",children:[e.jsxs(n,{children:[!x&&e.jsxs(g,{to:m||N.Home,className:"mb-1 inline-flex items-center text-base font-semibold text-sea-green md:text-base",preventScrollReset:p,children:[e.jsx("span",{children:e.jsx(c,{className:"rotate-90"})}),d||o("button.backToHome",{ns:"globals"})]}),!!t&&e.jsx("p",{className:"py-3.5 text-[32px] font-bold leading-title text-darthmouth-green md:mx-0",children:t}),!!l&&e.jsx("p",{className:"ont-semibold mt-6",children:l})]}),e.jsx(n,{...h,children:e.jsx("div",{id:"content",className:S("py-7 pb-10 md:pt-8",j),children:i})}),u&&e.jsx(n,{children:e.jsx("div",{className:"flex justify-end",children:e.jsxs("button",{onClick:w,"aria-label":"scroll-to-top-button",className:"flex items-center border-0 border-none p-0 text-xs font-semibold text-sea-green",children:[e.jsx("span",{children:e.jsx(c,{className:"rotate-180"})}),o("button.backToTop",{ns:"globals"})]})})})]}),!b&&e.jsx(v,{})]})},y=T;export{y as P};