"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4321,6779],{56779:function(e,n,t){t.r(n),t.d(n,{default:function(){return u}});var r=t(67294),i=r.createContext({});i.displayName="ServerContextContext",t(64687);var o=t(85893),a=t(87379),c=a.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}),d=a.ZP.div.withConfig({displayName:"ErrorSvgContainer",componentId:"sc-1cyirqj-1"})(["margin:auto;margin:0;"]),s=a.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,n){return(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(d,{children:(0,o.jsx)("img",{src:e.image,alt:""})}),(0,o.jsx)(s,{children:e.title}),(0,o.jsx)("p",{dangerouslySetInnerHTML:{__html:e.message}}),(0,o.jsx)("p",{children:(0,o.jsxs)("strong",{children:["Error Code: ",n]})})]})},u=function(e){var n=e.code,t=r.useContext(i);return n&&t&&t.response&&(t.response.statusCode=n),(0,o.jsx)(c,{children:n&&n>399&&n<500?l(h.error404,n):l(h.error500,n)})}},19265:function(e,n,t){t.d(n,{O:function(){return s},P5:function(){return l},dK:function(){return h}}),t(67294);var r=t(87379),i=t(88611),o=t(85893),a=function(e){var n=e.fontSize,t=e.rowSpacing;return t?t+"rem":n?.67*n+"rem":"1rem"},c=function(e){var n=e.maxWidth,t=e.short;return n&&t?.7*n+"rem":t?"70%":"100%"},d=r.ZP.div.withConfig({displayName:"Row",componentId:"sc-1kbgh0y-0"})(["width:",";height:",";",";margin-bottom:",";max-width:",";"],function(e){return c({short:e.short,maxWidth:e.maxWidth})},function(e){return e.fontSize?e.fontSize+"rem":"1.2rem"},i.f,function(e){return a({fontSize:e.fontSize,rowSpacing:e.rowSpacing})},function(e){return e.maxWidth?e.maxWidth+"rem":"none"}),s=r.ZP.div.withConfig({displayName:"RectanglePlaceholder",componentId:"sc-1kbgh0y-1"})(["width:",";height:",";",";margin-bottom:",";max-width:",";"],function(e){return e.width?e.width+"rem":0},function(e){return e.height+"rem"},i.f,function(e){return e.marginBottom?e.marginBottom+"rem":0},function(e){return e.maxWidth?e.maxWidth:"100%"}),h=r.ZP.div.withConfig({displayName:"ButtonPlaceholder",componentId:"sc-1kbgh0y-2"})(["width:",";height:",";",";margin-bottom:",";border-radius:",";"],function(e){return e.width?e.width+"rem":0},function(e){return e.height+"rem"},i.f,function(e){return e.marginBottom?e.marginBottom+"rem":0},function(e){return e.height+"rem"}),l=function(e){for(var n=e.rows,t=void 0===n?1:n,r=e.fontSize,i=e.maxWidth,a=e.rowSpacing,c=[],s=0;s