{"version":3,"sources":["webpack://_N_E/./node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?081d","webpack://_N_E/./src/components/rich-text/rich-text.styles.ts","webpack://_N_E/./src/pages/sitemap.tsx","webpack://_N_E/./src/components/ui/content-section.tsx","webpack://_N_E/./src/pages/404.tsx"],"names":["window","__NEXT_P","push","StyledBlockContent","styled","BlockContent","rem","theme","components","text","Text","PAGE_TITLE","getSitemap","a","fetch","process","then","res","ok","getUrlsFromXMLString","Promise","resolve","undefined","Sitemap","props","useQuery","initialData","sitemap","enabled","data","isFetching","error","errorCode","title","mainBackground","backgroundImages","treesBurn","as","map","url","parts","split","key","slugify","href","reduce","path","part","i","length","titleize","StyledSection","Section","wrapperBg","StyledSectionWrapper","SectionWrapper","colors","palette","white","borderRadius","medium","BackLinkWrapper","ContentSection","children","textAlign","className","backLink","to","ReminderContent","black","Custom404","siteSettings","useSiteSettings","description","APP_ROUTES","home"],"mappings":"iJACOA,OAAOC,SAAWD,OAAOC,UAAY,IAAIC,KAAK,CAC7C,WACA,WACE,OAAO,EAAQ,Y,oCCJzB,+FAKaC,EAAqBC,YAAOC,KAAV,0FAAGD,CAAH,gYACfE,YAAI,KACT,qBAAGC,MAAkBC,WAAWC,KAAKA,OAQ9BH,YAAI,IAcdI,IACYJ,YAAI,IAMJA,YAAI,IAGJA,YAAI,M,wRC1BlBK,EAAa,U,SAoEJC,I,2EAAf,sBAAAC,EAAA,+EACSC,MAAM,GAAD,OAAIC,mCAAJ,iBAAmDC,MAAK,SAACC,GACnE,OAAIA,EAAIC,GACCD,EAAIR,OAAOO,KAAKG,KAEhBC,QAAQC,aAAQC,OAL7B,4C,+BAmCeC,UAhGkB,SAACC,GAAU,MACNC,YAAS,CAAC,WAAYb,EAAY,CACpEc,YAAaF,EAAMG,QACnBC,SAAUJ,EAAMG,UAFVE,EADkC,EAClCA,KAAMC,EAD4B,EAC5BA,WAAYC,EADgB,EAChBA,MAK1B,OAAIP,EAAMQ,WAAcH,GAASC,EA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a,UAAWA,EACXC,UAAWA,EACXZ,UAAWA,EAHb,UAKGa,GACC,cAACL,EAAD,UACE,cAAC,IAAD,CAAUjB,KAAMsB,EAAhB,oBAGJ,cAACZ,EAAD,CAAsBD,UAAWA,EAAjC,SACGU,UAOID,MAER,IAAMM,EAAkBhE,YAAO0D,GAAV,uFAAG1D,CAAH,uFAEVE,YAAI,GACLA,YAAI,IAGjBgD,GACS,qBAAG/C,MAAkBiD,OAAOC,QAAQY,U,qQC5DlC,SAASC,IAAY,IAC1BC,EAAiBC,cAAjBD,aAER,OACE,eAAC,IAAD,CAAQrC,eAAgBC,IAAiBC,UAAzC,UACE,cAAC,IAAD,CACEH,MAAK,2BAAsBsC,EAAatC,OACxCwC,YAAaF,EAAaE,cAE5B,eAAC,IAAD,WACE,cAAC,IAAD,CAAIpC,GAAG,KAAP,kCACA,cAAC,IAAD,oKAKA,eAAC,IAAD,uBACY,IACV,cAAC,IAAD,CAAMO,KAAM8B,IAAWC,KAAvB,SACE,uCAHJ,gB","file":"static/chunks/pages/sitemap-c0bbfb7163128255936f.js","sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/sitemap\",\n function () {\n return require(\"private-next-pages/sitemap.tsx\");\n }\n ]);\n ","import BlockContent from '@sanity/block-content-to-react';\nimport { Text } from 'components/ui/text';\nimport { rem } from 'polished';\nimport styled from 'styled-components';\n\nexport const StyledBlockContent = styled(BlockContent)`\n margin-top: ${rem(20)};\n color: ${({ theme }) => theme.components.text.text};\n line-height: 1.4;\n\n > * {\n margin: 0;\n }\n\n > * + * {\n margin-top: ${rem(20)};\n }\n\n p {\n line-height: inherit;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n + p,\n + ${Text} {\n margin-top: ${rem(10)};\n }\n }\n\n ul,\n ol {\n padding-left: ${rem(30)};\n\n * + * {\n margin-top: ${rem(10)};\n }\n }\n\n /* stylelint-disable -- Disabled so we can use specific order of properties\n Source: https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/\n */\n a {\n /* These are technically the same, but use both */\n overflow-wrap: break-word;\n word-wrap: break-word;\n\n -ms-word-break: break-all;\n /* This is the dangerous one in WebKit, as it breaks things wherever */\n word-break: break-all;\n /* Instead use this non-standard one: */\n word-break: break-word;\n\n /* Adds a hyphen where the word breaks, if supported (No Blink) */\n -ms-hyphens: auto;\n -moz-hyphens: auto;\n -webkit-hyphens: auto;\n hyphens: auto;\n }\n /* stylelint-enable */\n`;\n","import { H4 } from 'components/headings';\nimport Layout from 'components/layout';\nimport { StyledBlockContent } from 'components/rich-text/rich-text.styles';\nimport SEO from 'components/seo';\nimport ContentSection from 'components/ui/content-section';\nimport { GetStaticProps, NextPage } from 'next';\nimport Link from 'next/link';\nimport { useQuery } from 'react-query';\nimport slugify from 'slugify';\nimport { backgroundImages } from 'utils/config';\nimport { getUrlsFromXMLString, titleize } from 'utils/helpers';\nimport Custom404 from './404';\n\nconst PAGE_TITLE = 'Sitemap';\n\ninterface Props {\n sitemap?: string[];\n errorCode?: number;\n}\n\nconst Sitemap: NextPage = (props) => {\n const { data, isFetching, error } = useQuery(['sitemap'], getSitemap, {\n initialData: props.sitemap,\n enabled: !props.sitemap,\n });\n\n if (props.errorCode && !data && !isFetching) {\n return ;\n }\n\n return (\n <>\n \n \n \n

{PAGE_TITLE}

\n \n {isFetching &&

Loading...

}\n\n {!isFetching && error && !props.sitemap && (\n

An error has occurred.

\n )}\n\n {data && (\n \n )}\n
\n
\n
\n \n );\n};\n\nasync function getSitemap() {\n return fetch(`${process.env.NEXT_PUBLIC_APP_URL}/sitemap.xml`).then((res) => {\n if (res.ok) {\n return res.text().then(getUrlsFromXMLString);\n } else {\n return Promise.resolve(undefined);\n }\n });\n}\n\nexport const getStaticProps: GetStaticProps = async () => {\n const errorProps = {\n errorCode: 404,\n sitemap: null,\n };\n\n try {\n const sitemap = await getSitemap();\n\n if (!sitemap?.length) {\n return {\n props: errorProps,\n };\n }\n\n return {\n props: { sitemap },\n };\n } catch (error) {\n return {\n props: errorProps,\n };\n }\n};\n\nexport default Sitemap;\n","import BackLink from 'components/back-link';\nimport SwitchTheme from 'components/switch-theme';\nimport { rem } from 'polished';\nimport { FC } from 'react';\nimport styled from 'styled-components';\nimport { Section, SectionProps } from './section';\nimport { SectionWrapper } from './section-wrapper';\n\nconst StyledSection = styled(Section)<{ wrapperBg?: boolean }>`\n position: relative;\n margin-top: var(--header-height);\n padding: ${({ wrapperBg }) => (wrapperBg ? `${rem(10)} ${rem(30)}` : 0)};\n background: none;\n`;\n\nconst StyledSectionWrapper = styled(SectionWrapper)`\n background-color: ${({ wrapperBg, theme }) =>\n wrapperBg ? theme.colors.palette.white : 'transparent'};\n border-radius: ${({ theme }) => theme.borderRadius.medium};\n box-shadow: ${({ wrapperBg }) =>\n wrapperBg ? '0 4px 45px rgba(0, 0, 0, 0.8)' : 'none'};\n`;\n\nconst BackLinkWrapper = styled(SectionWrapper)`\n padding: 0 ${rem(10)} ${rem(20)};\n\n a {\n margin-bottom: 0;\n }\n`;\n\ninterface Props extends SectionProps {\n wrapperBg?: boolean;\n className?: string;\n backLink?: string;\n}\n\nconst ContentSection: FC = ({\n children,\n wrapperBg,\n textAlign,\n className,\n backLink,\n}) => {\n return (\n \n \n {backLink && (\n \n Back\n \n )}\n \n {children}\n \n \n \n );\n};\n\nexport default ContentSection;\n\nexport const ReminderContent = styled(ContentSection)`\n time {\n margin: 0 0 ${rem(5)};\n font-size: ${rem(14)};\n }\n\n ${StyledSectionWrapper} {\n color: ${({ theme }) => theme.colors.palette.black};\n\n > *:last-child {\n margin-bottom: 0;\n }\n }\n`;\n","import { H4 } from 'components/headings';\nimport Layout from 'components/layout';\nimport SEO from 'components/seo';\nimport ContentSection from 'components/ui/content-section';\nimport { Text } from 'components/ui/text';\nimport { useSiteSettings } from 'hooks/use-siteSettings';\nimport { GetStaticProps } from 'next';\nimport Link from 'next/link';\nimport { backgroundImages } from 'utils/config';\nimport APP_ROUTES from 'utils/routes';\n\n// Reference: https://nextjs.org/docs/advanced-features/custom-error-page\n\nexport default function Custom404() {\n const { siteSettings } = useSiteSettings();\n\n return (\n \n \n \n

404 - Page Not Found

\n \n We can't seem to find the page you're looking for. It may be because\n we have recently updated our website and some content has been moved\n or deleted.\n \n \n Return to{' '}\n \n Home\n \n .\n \n
\n
\n );\n}\n\nexport const getStaticProps: GetStaticProps = async () => {\n return {\n props: {},\n };\n};\n"],"sourceRoot":""}