(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4820,6779],{56779:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return h}});var n=t(67294),o=n.createContext({});o.displayName="ServerContextContext",t(64687);var i=t(85893),a=t(87379),s=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}),c=a.ZP.div.withConfig({displayName:"ErrorSvgContainer",componentId:"sc-1cyirqj-1"})(["margin:auto;margin:0;img{max-width:150px;}"]),u=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}),d={error404:{image:"/assetshttps://www.cbtnuggets.com/images/errors/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:"/assetshttps://www.cbtnuggets.com/images/errors/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.'}},m=function(e,r){return(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(c,{children:(0,i.jsx)("img",{src:e.image,alt:""})}),(0,i.jsx)(u,{children:e.title}),(0,i.jsx)("p",{dangerouslySetInnerHTML:{__html:e.message}}),(0,i.jsx)("p",{children:(0,i.jsxs)("strong",{children:["Error Code: ",r]})})]})},h=function(e){var r=e.code,t=n.useContext(o);return r&&t&&t.response&&(t.response.statusCode=r),(0,i.jsx)(s,{children:r&&r>399&&r<500?m(d.error404,r):m(d.error500,r)})}},26520:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSP:function(){return i}}),t(67294);var n=t(56779),o=t(85893),i=!0;r.default=function(e){var r=e.statusCode;return(0,o.jsx)(n.default,{code:r})}},5353:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return t(26520)}])}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=5353)}),_N_E=e.O()}]);