{"version":3,"sources":["webpack://elevations-credit-union/./src/containers/404.js","webpack://elevations-credit-union/./src/containers/404.module.scss","webpack://elevations-credit-union/./src/pages/404.en-US.js","webpack://elevations-credit-union/./src/templates/staticTemplate.js"],"names":["NotFoundPage","location","pageContext","t","useTranslation","navMenus","pathname","menu","language","langKey","title","defaultValue","xs","lg","className","Eyebrow","Heading","element","size","vertical","not_found","map","navItem","Link","to","urlPath","StaticTemplate","children","i18n","useStaticQuery","allContentfulNavigationMenu","edges","reduce","acc","edge","node","type","node_locale","content","navigationItems","internal","JSON","parse","items","propTypes","PropTypes"],"mappings":"2RAYMA,EAAe,SAAC,GAA+B,IAA7BC,EAA4B,EAA5BA,SAAUC,EAAkB,EAAlBA,YACzBC,GAAKC,SAAZ,GACA,OACE,SAAC,IAAD,CAAgBF,YAAaA,EAA7B,SACG,gBAAGG,EAAH,EAAGA,SAAH,OACC,UAAC,IAAD,CACEJ,SAAUA,EACVC,YAAW,iBAAOA,EAAP,CAAoBI,SAAU,SACzCC,KAAMF,EAHR,WAKE,SAAC,IAAD,CACEG,SAAUN,EAAYO,QACtBC,MAAOP,EAAE,yBAA0B,CAAEQ,aAAc,0BACnDL,SAAS,UAGX,SAAC,KAAD,WACE,UAAC,KAAD,YACE,SAAC,KAAD,CAAKM,GAAI,GAAIC,GAAI,EAAjB,UACE,iBAAKC,UC9BE,gCD8BP,WACE,SAACC,EAAA,EAAD,CAASD,UC7BE,sCD6BX,SACGX,EAAE,uBAAwB,CAAEQ,aAAc,iBAE7C,SAACK,EAAA,EAAD,CAASC,QAAQ,KAAKC,KAAM,EAAGJ,UC/BnB,uCD+BZ,SACGX,EAAE,wBAAyB,CAC1BQ,aACE,0FAMV,SAAC,KAAD,CAAKC,GAAI,GAAIC,GAAI,EAAjB,UACE,iBAAKC,UC3CG,iCD2CR,WACE,SAACE,EAAA,EAAD,CAASC,QAAQ,KAAKC,KAAM,EAAGJ,UCzCtB,oCDyCT,SACGX,EAAE,2BAA4B,CAC7BQ,aACE,uFAIN,UAACK,EAAA,EAAD,CAASC,QAAQ,KAAKC,KAAM,EAAGJ,UC/CnB,uCD+CZ,UACGX,EAAE,6BAA8B,CAC/BQ,aAAc,iCAFlB,QAOA,SAAC,IAAD,CAAOQ,UAAQ,EAAf,SACGd,EAASe,UAAUC,KAAI,SAAAC,GAAO,OAC7B,SAACC,EAAA,EAAD,CAA0BC,GAAIF,EAAQG,QAASX,UCvD5C,kCDuDH,SACGQ,EAAQZ,OADAY,EAAQZ,8B,wDE5DzC,UAAeV,EAAf,G,iHCoBM0B,EAAiB,SAAC,GAAkB,IAAhBC,EAAe,EAAfA,SACxB,GAAmBvB,SAARwB,GAAX,WA2BA,OAAOD,EAAS,CAAEtB,UA1BDwB,QApBR,cAuBPC,4BAA+BC,MAGVC,QAAO,SAACC,EAAKC,GAClC,MASIA,EARFC,KACEC,EAFJ,EAEIA,KAEAC,EAJJ,EAIIA,YAEcC,EANlB,EAKIC,gBACEC,SAAYF,QAMZ/B,EAAOkC,KAAKC,MAAMJ,GAIxB,OAHAL,EAAII,GAAeJ,EAAII,IAAgB,GACvCJ,EAAII,GAAaD,GAAQ7B,EAAKoC,MAEvBV,IACN,IAEkCL,EAAKpB,aAG5CkB,EAAekB,UAAY,CACzBjB,SAAUkB,SACV5C,SAAU4C","file":"component---src-pages-404-en-us-js-9b061215376674bffa80.js","sourcesContent":["import PropTypes from 'prop-types'\nimport { useTranslation } from 'react-i18next'\nimport { Heading } from '../components/typography/Heading'\nimport { Layout } from '../components/layouts/layout'\nimport { Container, Row, Col } from '../components/grid'\nimport { Eyebrow } from '../components/typography/Eyebrow'\nimport { Link } from '../components/typography/Link'\nimport { Stack } from '../components/stack'\nimport { PageMeta } from '../components/page-meta'\nimport { StaticTemplate } from '../templates/staticTemplate'\nimport * as styles from './404.module.scss'\n\nconst NotFoundPage = ({ location, pageContext }) => {\n const [t] = useTranslation()\n return (\n <StaticTemplate pageContext={pageContext}>\n {({ navMenus }) => (\n <Layout\n location={location}\n pageContext={{ ...pageContext, pathname: '/404' }}\n menu={navMenus}\n >\n <PageMeta\n language={pageContext.langKey}\n title={t('NotFoundPage.pageTitle', { defaultValue: '404 Error (Not Found)' })}\n pathname=\"/404\"\n />\n\n <Container>\n <Row>\n <Col xs={12} lg={6}>\n <div className={styles.LeftBlock}>\n <Eyebrow className={styles.NotFoundEyebrow}>\n {t('NotFoundPage.tagline', { defaultValue: '404 Error' })}\n </Eyebrow>\n <Heading element=\"h1\" size={2} className={styles.NotFoundHeadline}>\n {t('NotFoundPage.headline', {\n defaultValue:\n \"We're sorry — you've reached a page that has moved or is no longer available.\",\n })}\n </Heading>\n </div>\n </Col>\n\n <Col xs={12} lg={6}>\n <div className={styles.RightBlock}>\n <Heading element=\"h2\" size={4} className={styles.LinksHeadline}>\n {t('NotFoundPage.doubleCheck', {\n defaultValue:\n 'Please double-check the URL, otherwise this page was probably moved or removed.',\n })}\n </Heading>\n\n <Heading element=\"h3\" size={6} className={styles.LinksSubheadline}>\n {t('NotFoundPage.tryingToReach', {\n defaultValue: 'You might be trying to reach',\n })}\n :\n </Heading>\n\n <Stack vertical>\n {navMenus.not_found.map(navItem => (\n <Link key={navItem.title} to={navItem.urlPath} className={styles.HelpfulLink}>\n {navItem.title}\n </Link>\n ))}\n </Stack>\n </div>\n </Col>\n </Row>\n </Container>\n </Layout>\n )}\n </StaticTemplate>\n )\n}\n\nNotFoundPage.propTypes = {\n children: PropTypes.node,\n location: PropTypes.object,\n pageContext: PropTypes.object,\n}\n\nexport { NotFoundPage }\nexport default NotFoundPage\n","// extracted by mini-css-extract-plugin\nexport var LeftBlock = \"_404-module--LeftBlock--18hK3\";\nexport var RightBlock = \"_404-module--RightBlock--17uNE\";\nexport var NotFoundEyebrow = \"_404-module--NotFoundEyebrow--2te5h\";\nexport var NotFoundHeadline = \"_404-module--NotFoundHeadline--3wTq1\";\nexport var LinksHeadline = \"_404-module--LinksHeadline--3bxye\";\nexport var LinksSubheadline = \"_404-module--LinksSubheadline--tlr4p\";\nexport var HelpfulLink = \"_404-module--HelpfulLink--1Li-S\";","import { NotFoundPage } from '../containers/404'\n\nexport default NotFoundPage\n\n// This should work but doesn't in prod build\n// https://github.com/gatsbyjs/gatsby/issues/12384\n// export { default } from '../containers/404'\n","import PropTypes from 'prop-types'\nimport { useTranslation } from 'react-i18next'\nimport { useStaticQuery, graphql } from 'gatsby'\n\nconst query = graphql`\n query StaticTemplateQuery {\n allContentfulNavigationMenu {\n edges {\n node {\n type\n node_locale\n navigationItems {\n internal {\n content\n }\n }\n }\n }\n }\n }\n`\n\nconst StaticTemplate = ({ children }) => {\n const [_t, i18n] = useTranslation()\n const allMenus = useStaticQuery(query)\n\n const {\n allContentfulNavigationMenu: { edges },\n } = allMenus\n\n const navMenus = edges.reduce((acc, edge) => {\n const {\n node: {\n type,\n // eslint-disable-next-line camelcase\n node_locale,\n navigationItems: {\n internal: { content },\n },\n },\n } = edge\n\n // Since the content is received as a json string, we need to parse it\n const menu = JSON.parse(content)\n acc[node_locale] = acc[node_locale] || {}\n acc[node_locale][type] = menu.items\n\n return acc\n }, {})\n\n return children({ navMenus: navMenus[i18n.language] })\n}\n\nStaticTemplate.propTypes = {\n children: PropTypes.func,\n location: PropTypes.object,\n}\n\nexport { StaticTemplate }\nexport default StaticTemplate\n"],"sourceRoot":""}