{"version":3,"file":"servererror.app.js","sources":["../../UDIR.Prover.Frontend/apps/elev/errors/ServerError.tsx"],"sourcesContent":["import { Link } from \"@utdanningsdirektoratet/lisa\";\r\nimport React from \"react\";\r\nimport { ErrorLayout } from \"./ErrorLayout\";\r\nimport { RenderApp } from \"../common/components/RenderApp\";\r\nimport { P } from \"../common/components/p\";\r\n\r\nconst clearCookies = () => {\r\n\tconst cookies = document.cookie.split(/;\\s*/);\r\n\ttry {\r\n\t\tfor (let i = 0; i < cookies.length; i++) {\r\n\t\t\tconst key = cookies[i].split(\"=\")[0];\r\n\t\t\tif (!/_ga/.test(key)) {\r\n\t\t\t\tdocument.cookie = key + \"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t// eslint-disable-next-line no-empty\r\n\t} catch (e) {}\r\n};\r\n\r\nconst logout = () => {\r\n\twindow.location.href = \"/\";\r\n};\r\n\r\nconst reset = () => {\r\n\tclearCookies();\r\n\tlogout();\r\n};\r\n\r\nRenderApp(\r\n\t\r\n\t\t

Dette skyldes en intern feil hos Utdanningsdirektoratet.

\r\n\t\t

\r\n\t\t\tDu kan forsøke å starte økten på nytt, prøve igjen senere, eller kontakte\r\n\t\t\tbrukerstøtte. Brukerstøtte går tjenestevei.\r\n\t\t

\r\n\t
\r\n);\r\n"],"names":["clearCookies","cookies","i","key","logout","reset","RenderApp","jsxs","ErrorLayout","jsx","P","Link"],"mappings":"8VAMA,MAAMA,EAAe,IAAM,CAC1B,MAAMC,EAAU,SAAS,OAAO,MAAM,MAAM,EACxC,GAAA,CACH,QAASC,EAAI,EAAGA,EAAID,EAAQ,OAAQC,IAAK,CACxC,MAAMC,EAAMF,EAAQC,CAAC,EAAE,MAAM,GAAG,EAAE,CAAC,EAC9B,MAAM,KAAKC,CAAG,IAClB,SAAS,OAASA,EAAM,mDACzB,OAGU,CAAA,CACb,EAEMC,EAAS,IAAM,CACpB,OAAO,SAAS,KAAO,GACxB,EAEMC,EAAQ,IAAM,CACNL,EAAA,EACNI,EAAA,CACR,EAEAE,EACCC,EAAAA,KAACC,EAAY,CAAA,OAAO,mEACnB,SAAA,CAAAC,EAAAA,IAACC,GAAE,SAAwD,0DAAA,CAAA,SAC1DA,EAAE,CAAA,SAAA,CAAA,kBACcD,EAAA,IAAAE,EAAA,CAAK,QAASN,EAAO,SAAsB,yBAAA,EAAO,kFAAA,CAEnE,CAAA,CAAA,CACD,CAAA,CACD"}