{"version":3,"file":"static/chunks/pages/_error-ed5f55752c330ee5.js","mappings":"uFACA,CAAAA,OAAAC,QAAA,CAAAD,OAAAC,QAAA,MAAAC,IAAA,EACA,UACA,WACA,OAAeC,EAAQ,MACvB,EACA,0ICAe,SAASC,EAAcC,CAEjB,KAFiB,CACpCC,kBAAAA,CAAiB,CACE,CAFiBD,EAG9B,CAAEE,EAAAA,CAAC,CAAE,CAAGC,CAAAA,EAAAA,EAAAA,CAAAA,EAAe,UACvB,CAAEC,OAAAA,CAAM,CAAE,CAAGC,CAAAA,EAAAA,EAAAA,SAAAA,IAWnB,MACE,GAAAC,EAAAC,IAAA,EAACC,MAAAA,CACCC,UAAW,GAAuBR,MAAAA,CAApBS,IAAAA,SAAAA,CAAiB,KAAqDC,MAAA,CAAlDV,EAAoBS,GAAAA,CAAAA,iBAAAA,CAA2B,cAEjF,GAAAJ,EAAAM,GAAA,EAACC,IAAAA,CAAEJ,UAAW,GAA0BE,MAAA,CAAvBD,IAAAA,eAAAA,CAAuB,kCACxC,GAAAJ,EAAAM,GAAA,EAACE,KAAAA,CAAGL,UAAWC,IAAAA,gBAAAA,UAA0BR,EAAE,0BAC3C,GAAAI,EAAAM,GAAA,EAACG,IAAAA,CAAEN,UAAWC,IAAAA,sBAAAA,UACXR,EAAE,gCAEL,GAAAI,EAAAM,GAAA,EAACI,EAAAA,CAAMA,CAAAA,CAACC,QAlBZ,WAMEC,SAASd,MAAM,EACjB,WAWoCF,EAAE,6BAGxC,wHC9Be,SAASiB,IACtB,MACE,GAAAb,EAAAM,GAAA,EAACQ,EAAAA,CAAMA,CAAAA,UACL,GAAAd,EAAAM,GAAA,EAACb,EAAAA,CAAaA,CAAAA,CAAAA,IAGpB,qBCRAsB,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/?cf31","webpack://_N_E/./src/components/core/MainLayout/ErrorBoundary/index.tsx","webpack://_N_E/./src/pages/_error.tsx","webpack://_N_E/./src/components/core/MainLayout/ErrorBoundary/styles.module.scss"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/_error\",\n function () {\n return require(\"private-next-pages/_error.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/_error\"])\n });\n }\n ","import useTranslation from 'next-translate/useTranslation';\nimport styles from './styles.module.scss';\nimport { useRouter } from 'next/router';\nimport { ErrorBoundaryProps } from './props';\nimport { Button } from '@starsoft/common/components';\n\nexport default function ErrorBoundary({\n isServerSideError,\n}: ErrorBoundaryProps) {\n const { t } = useTranslation('common');\n const { reload } = useRouter();\n\n function handleReload() {\n if (typeof window === 'undefined') {\n reload();\n return;\n }\n\n location.reload();\n }\n\n return (\n
\n {t('error_boundary_description')}\n
\n \n