(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[330,5043,6779,4597],{56779:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(67294),o=r.createContext({});o.displayName="ServerContextContext",n(64687);var i=n(85893),a=n(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}),s=a.ZP.div.withConfig({displayName:"ErrorSvgContainer",componentId:"sc-1cyirqj-1"})(["margin:auto;margin:0;"]),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}),l={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.'}},g=function(e,t){return(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)(s,{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: ",t]})})]})},d=function(e){var t=e.code,n=r.useContext(o);return t&&n&&n.response&&(n.response.statusCode=t),(0,i.jsx)(c,{children:t&&t>399&&t<500?g(l.error404,t):g(l.error500,t)})}},75043:function(e,t,n){"use strict";n.r(t),n.d(t,{SectionBasedPage:function(){return l}});var r=n(67294),o=n(9008),i=n.n(o),a=n(81612),c=n(88305),s=n(88801),u=n(85893),l=function(e){var t=e.entry,n=e.injectKlaviyoScript,o=e.noIndex,l=(0,c.u)(s.y).updateContentfulPageEntry,g=t.fields,d=g.pageTitle,m=void 0===d?"":d,p=g.pageDescription,f=void 0===p?"":p,h=g.slug,w=void 0===h?"":h,x=g.sections,j=g.openGraphImage,y=g.openGraphDescription,v=g.openGraphTitle,b=g.twitterTitle,C=g.twitterDescription,_=g.twitterImage,O=g.canonicalUrl,P=g.noIndex,I=g.ogImageLocation,S="".concat(w);O&&""!==O&&(S=O);var N=function(e){var t=e.openGraphImage,n=e.ogImageLocation;return t||n?t?"https:".concat(t.fields.file.url,"?fm=jpg&w=1024"):"https://www.cbtnuggets.com".concat(n):"http://www.canuseducation.com/?cert=assetshttps://www.cbtnuggets.com/images/OG_default.png"},T=_?"https:".concat(_.fields.file.url,"?fm=jpg&w=1024"):"",E=["how-long-to-study","cert-guides","resource","configuration-guides","cert-class"],k=(0,r.useMemo)(function(){return E.some(function(e){return w.split("/").includes(e)})},[w]),D=""!==T?T:N({openGraphImage:j,ogImageLocation:I});return(0,r.useEffect)(function(){l("Section Based Page",t)},[t.sys.id]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(i(),{children:[(0,u.jsx)("title",{children:m},"title"),(0,u.jsx)("meta",{name:"description",content:f},"description"),(0,u.jsx)("link",{rel:"canonical",href:S},"canonical"),(0,u.jsx)("meta",{property:"og:title",content:null!=v?v:m},"ogTitle"),(0,u.jsx)("meta",{property:"og:url",content:S},"ogUrl"),(0,u.jsx)("meta",{property:"og:image",content:N({openGraphImage:j,ogImageLocation:I})},"ogImage"),(0,u.jsx)("meta",{property:"og:description",content:null!=y?y:f},"ogDescription"),(0,u.jsx)("meta",{property:"og:type",content:"website"},"ogType"),(0,u.jsx)("meta",{name:"twitter:site",content:"@CBTNuggets"},"twitterSite"),(0,u.jsx)("meta",{name:"twitter:title",content:null!=b?b:m},"twitterTitle"),(0,u.jsx)("meta",{name:"twitter:description",content:null!=C?C:f},"twitterDescription"),(0,u.jsx)("meta",{name:"twitter:creator",content:"@CBTNuggets"},"twitterCreator"),(0,u.jsx)("meta",{name:"twitter:image",content:D},"twitterImage"),(0,u.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"twitterCard"),(void 0!==o&&o||void 0!==P&&P)&&(0,u.jsx)("meta",{name:"robots",content:"noindex, nofollow"},"robots"),(k||void 0!==n&&n)&&(0,u.jsx)("script",{src:"https://static.klaviyo.com/onsitehttps://www.cbtnuggets.com/js/klaviyo.js?company_id=UzuaHr"})]}),(0,u.jsx)(u.Fragment,{children:(void 0===x?[]:x).map(function(e){return(0,u.jsx)(a.g,{entry:e},e.sys.id)})})]})};t.default=l},64597:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}}),n(67294);var r=n(87379).ZP.section.withConfig({displayName:"StyledPageLayout",componentId:"sc-nf0hrl-0"})(["max-width:",";margin:0 auto;padding:2rem 2.4rem 2rem 2.4rem;"],function(e){return e.theme.siteContentReducedWidth}),o=n(85893),i=function(e){var t=e.children;return(0,o.jsx)(r,{children:t})}},41481:function(e,t,n){"use strict";n.d(t,{s:function(){return p}});var r=n(72198),o=n(32393),i=n(23221),a=n(77243),c=n(11752),s=n.n(c),u=n(63144),l=n.n(u),g=n(33811),d=n(67686),m=function(){var e=s()().publicRuntimeConfig.accountAlias!==d.N.LX_PROD?"qanuggets":"cbtnuggets";return"https://api.".concat(e,".com/catalog/v1/graphql")};function p(){var e=new r.u({uri:m(),credentials:"same-origin",fetch:l()}),t=new o.h;if((0,g.Nq)()){var n=[e];return new i.f({link:(0,a.D)(n),cache:t,ssrMode:!0})}return new i.f({link:e,cache:t,ssrMode:!0})}},88395:function(e,t,n){"use strict";n.d(t,{C:function(){return s}});var r=n(59499);n(67294);var o=n(53768),i=n(41481),a=n(85893);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var s=function(e){return function(t){return(0,a.jsx)(o.e,{client:(0,i.s)(),children:(0,a.jsx)(e,function(e){for(var t=1;t