"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6779],{56779:function(e,r,t){t.r(r),t.d(r,{default:function(){return m}});var n=t(67294),o=n.createContext({});o.displayName="ServerContextContext",t(64687);var a=t(85893),i=t(87379),s=i.ZP.section.withConfig({displayName:"ErrorMain",componentId:"sc-1cyirqj-0"})(["display:flex;flex-direction:column;justify-content:center;background-color:white;max-width:50rem;margin:0 auto;padding:1rem;padding-top:8rem;text-align:center;height:50vh;min-height:50rem;p{text-align:center;font-size:",";font-weight:400;color:",";&.error-code{margin-top:30px;}}a{text-decoration:none;padding-bottom:1px;color:",";&:hover{text-decoration:underline;}}"],function(e){return e.theme.standardFont},function(e){return e.theme.secondary},function(e){return e.theme.blue}),c=i.ZP.div.withConfig({displayName:"ErrorSvgContainer",componentId:"sc-1cyirqj-1"})(["margin:auto;margin:0;"]),d=i.ZP.h1.withConfig({displayName:"Title",componentId:"sc-1cyirqj-2"})(["color:#000;text-align:center;font-family:",";font-size:4.8rem;margin:1rem 0 2rem;line-height:5rem;"],function(e){return e.theme.fontFamilyCursive}),h={error404:{image:"/assets/client/404-error.svg",title:"Oh, dang it!",message:'That page was moved or doesn\'t exist anymore. Head to our homepage or chat with Learner Support for help.'},error500:{image:"/assets/client/500-error.svg",title:"Well, that's not good",message:'Something went wrong with one of our servers. Try reloading the page or come back again later. If you need help right away, contact Learner Support.'}},l=function(e,r){return(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(c,{children:(0,a.jsx)("img",{src:e.image,alt:""})}),(0,a.jsx)(d,{children:e.title}),(0,a.jsx)("p",{dangerouslySetInnerHTML:{__html:e.message}}),(0,a.jsx)("p",{children:(0,a.jsxs)("strong",{children:["Error Code: ",r]})})]})},m=function(e){var r=e.code,t=n.useContext(o);return r&&t&&t.response&&(t.response.statusCode=r),(0,a.jsx)(s,{children:r&&r>399&&r<500?l(h.error404,r):l(h.error500,r)})}}}]);