{"version":3,"file":"static/chunks/pages/404-ab9c539712f6a6ae.js","mappings":"qFACA,CAAAA,OAAAC,QAAA,CAAAD,OAAAC,QAAA,MAAAC,IAAA,EACA,OACA,WACA,OAAeC,EAAQ,MACvB,EACA,2ICJA,IAAMC,EAAmBC,IACvB,IAAMF,EAAAG,CAAA,OAAAC,IAAA,CAAAJ,EAAAK,IAAA,CAAAL,EAAA,QAAO,2CAETM,EAAgBJ,IACpB,IAAMK,QAAAC,OAAA,GAAAJ,IAAA,CAAAJ,EAAAK,IAAA,CAAAL,EAAA,QAAO,mDAuCfS,CAAAA,EAAA,QAzB2C,OAAC,CAC1CC,MAAAA,CAAK,CACLC,YAAAA,CAAW,CACXC,UAAAA,CAAS,CACM,CAAAC,EACTC,EAASC,CAAAA,EAAAA,EAAAA,SAAAA,IACTC,EAAgBF,EAAOG,MAAM,QACnC,EAAkBC,UAAU,CAAC,QACpB,GAAAC,EAAAC,GAAA,EAACnB,EAAAA,CAAAA,GAGR,GAAAkB,EAAAE,IAAA,EAACC,UAAAA,WACC,GAAAH,EAAAC,GAAA,EAACG,EAAAA,CAAIA,CAAAA,CACHb,MAAM,YACNC,YAAY,kDAEd,GAAAQ,EAAAC,GAAA,EAACd,EAAAA,CACCI,MAAOA,EACPC,YAAaA,EACbC,UAAWA,MAInB","sources":["webpack://_N_E/?9cea","webpack://_N_E/./src/pages/404.tsx","webpack://_N_E/<anon>"],"sourcesContent":["\n    (window.__NEXT_P = window.__NEXT_P || []).push([\n      \"/404\",\n      function () {\n        return require(\"private-next-pages/404.tsx\");\n      }\n    ]);\n    if(module.hot) {\n      module.hot.dispose(function () {\n        window.__NEXT_P.push([\"/404\"])\n      });\n    }\n  ","import dynamic from 'next/dynamic';\n\nconst PetErrorTemplate = dynamic(\n  () => import('@/components/templates/PetErrorTemplate/PetErrorTemplate')\n);\nconst ErrorTemplate = dynamic(\n  () => import('@/components/templates/ErrorTemplate/ErrorTemplate')\n);\n\nimport { IErrorTemplate } from '@/components/templates/ErrorTemplate/ErrorTemplate';\nimport Head from '@/components/templates/Head/Head';\nimport { NextPage } from 'next';\nimport { useRouter } from 'next/router';\n\n/**\n * Error404 - The 404 page\n *\n * @param {IErrorTemplate} props - The props for the 404 page\n * @returns {Element<IErrorTemplate>} - The 404 Page\n */\nconst Error404: NextPage<IErrorTemplate> = ({\n  title,\n  description,\n  errorCode,\n}: IErrorTemplate) => {\n  const router = useRouter();\n  const attemptedPath = router.asPath;\n  if (attemptedPath.startsWith('/pet')) {\n    return <PetErrorTemplate />;\n  }\n  return (\n    <section data-testid=\"404Page\">\n      <Head\n        title=\"Not Found\"\n        description=\"Looks like we rolled right over on this page.\"\n      />\n      <ErrorTemplate\n        title={title}\n        description={description}\n        errorCode={errorCode}\n      />\n    </section>\n  );\n};\n\nexport default Error404;\n\n/**\n * GetStaticProps - Get the props for the 404 page\n *\n * @returns {object} - The props object\n */\nexport async function getStaticProps() {\n  return {\n    props: {\n      title: 'Ruh-roh',\n      description: 'Looks like we rolled right over on this page.',\n      errorCode: 404,\n    },\n  };\n}\n"],"names":["window","__NEXT_P","push","__webpack_require__","PetErrorTemplate","dynamic","e","then","bind","ErrorTemplate","Promise","resolve","__webpack_exports__","title","description","errorCode","param","router","useRouter","attemptedPath","asPath","startsWith","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","jsxs","section","Head"],"sourceRoot":""}