(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3179],{26654:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var i=n(67294),r=n(5152),o=n.n(r),a=n(32767),c=n(9008),s=n.n(c),u=n(9714),l=n(85893),d=function(e){var t,n,r,o,a,c=e.entry,d=e.injectKlaviyoScript,p=e.noIndex,g=c.fields,f=g.canonicalUrl,m=g.openGraphTitle,w=g.openGraphImage,y=g.openGraphDescription,h=g.twitterTitle,b=g.twitterDescription,j=g.twitterImage,x=g.path,v=g.slug,C=g.title,P=g.pageDescription,k=g.pageTitle,T=g.noIndex,I=g.ogImageLocation,_=(0,i.useCallback)(function(){return w||I?w?"https:".concat(w.fields.file.url,"?fm=jpg&w=1024"):"https://www.cbtnuggets.com".concat(I):"http://www.canuseducation.com/?cert=assetshttps://www.cbtnuggets.com/images/OG_default.png"},[I,w]),O=(0,i.useCallback)(function(){var e;return f&&(null==f?void 0:f.trim())!==""?f:(null==c||null===(e=c.sys)||void 0===e||null===(e=e.contentType)||void 0===e||null===(e=e.sys)||void 0===e?void 0:e.id)==="topic"?"http://www.canuseducation.com/?cert=it-training/".concat(v):"".concat(null!=v?v:x)},[f,c,x,v]),D={slug:null!=v?v:x,ogImage:_(),pageUrl:O(),title:null!==(t=null!==(n=null!=m?m:k)&&void 0!==n?n:C)&&void 0!==t?t:"CBT Nuggets",description:null!=y?y:P,twitterTitle:null!==(r=null!==(o=null!=h?h:m)&&void 0!==o?o:k)&&void 0!==r?r:C,twitterImage:j?"https:".concat(j.fields.file.url,"?fm=jpg&w=1024"):_(),twitterDescription:null!==(a=null!=b?b:y)&&void 0!==a?a:P},N=(0,i.useMemo)(function(){return["how-long-to-study","cert-guides","resource","configuration-guides","cert-class","events"].some(function(e){return D.slug.split("/").includes(e)})},[D.slug]),S=(0,i.useState)(!1),E=S[0],G=S[1];return(0,i.useEffect)(function(){G((0,u.gs)("marketing"));var e=function(e){G(!0===e.detail.marketing)};return window.addEventListener("cbt_consent_update",e),function(){window.removeEventListener("cbt_consent_update",e)}},[]),(0,l.jsxs)(s(),{children:[(0,l.jsx)("title",{children:D.title},"title"),(0,l.jsx)("meta",{name:"description",content:D.description},"description"),(0,l.jsx)("link",{rel:"canonical",href:D.pageUrl},"canonical"),(0,l.jsx)("meta",{property:"og:title",content:D.title},"ogTitle"),(0,l.jsx)("meta",{property:"og:url",content:D.pageUrl},"ogUrl"),(0,l.jsx)("meta",{property:"og:image",content:D.ogImage},"ogImage"),(0,l.jsx)("meta",{property:"og:description",content:D.description},"ogDescription"),(0,l.jsx)("meta",{property:"og:type",content:"website"},"ogType"),(0,l.jsx)("meta",{name:"twitter:site",content:"@CBTNuggets"},"twitterSite"),(0,l.jsx)("meta",{name:"twitter:title",content:D.twitterTitle},"twitterTitle"),(0,l.jsx)("meta",{name:"twitter:description",content:D.twitterDescription},"twitterDescription"),(0,l.jsx)("meta",{name:"twitter:creator",content:"@CBTNuggets"},"twitterCreator"),(0,l.jsx)("meta",{name:"twitter:image",content:D.twitterImage},"twitterImage"),(0,l.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"twitterCard"),(void 0!==p&&p||void 0!==T&&T)&&(0,l.jsx)("meta",{name:"robots",content:"noindex, nofollow"},"robots"),E&&(N||void 0!==d&&d)&&(0,l.jsx)("script",{defer:!0,src:"https://static.klaviyo.com/onsitehttps://www.cbtnuggets.com/js/klaviyo.js?company_id=UzuaHr"})]})},p=o()(function(){return Promise.all([n.e(3148),n.e(9471),n.e(5675),n.e(7265),n.e(1345),n.e(2679),n.e(9789),n.e(5680),n.e(1953),n.e(6835),n.e(3418),n.e(3594),n.e(2746)]).then(n.bind(n,62746))},{loadableGenerated:{webpack:function(){return[62746]}}}),g=o()(function(){return Promise.all([n.e(3148),n.e(9471),n.e(5675),n.e(1345),n.e(2679),n.e(9789),n.e(5680),n.e(3418),n.e(3594),n.e(5043)]).then(n.bind(n,75043))},{loadableGenerated:{webpack:function(){return[75043]}}}),f=o()(function(){return Promise.all([n.e(3148),n.e(9471),n.e(5675),n.e(1345),n.e(2679),n.e(9789),n.e(5680),n.e(3418),n.e(3594),n.e(4859)]).then(n.bind(n,84859))},{loadableGenerated:{webpack:function(){return[84859]}}}),m=o()(function(){return Promise.all([n.e(3148),n.e(9471),n.e(5675),n.e(1345),n.e(2679),n.e(9789),n.e(5680),n.e(3418),n.e(3594),n.e(8292)]).then(n.bind(n,78292))},{loadableGenerated:{webpack:function(){return[78292]}}}),w=function(e){var t=e.entry,n=e.injectKlaviyoScript,r=e.noIndex,o=t.sys.contentType.sys.id,c=(0,i.useMemo)(function(){switch(o){case a.L.DirectoryPage:return(0,l.jsx)(p,{entry:t});case a.L.TopicPage:return(0,l.jsx)(f,{entry:t});case a.L.CourseCategoryPage:return(0,l.jsx)(m,{entry:t});case a.L.SectionBasedPage:default:return(0,l.jsx)(g,{entry:t})}},[o,t]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d,{entry:t,injectKlaviyoScript:void 0!==n&&n,noIndex:void 0!==r&&r}),c]})}},32767:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var i,r=((i={}).DirectoryPage="directoryPage",i.SectionBasedPage="sectionBasedPage",i.CourseCategoryPage="courseCategoryPage",i.TopicPage="topic",i)},52857:function(e,t,n){"use strict";n.d(t,{Pk:function(){return o},ck:function(){return r}});var i=n(19521),r=i.ZP.section.withConfig({displayName:"CourseContainer",componentId:"sc-f0ygok-0"})(["display:flex;justify-content:space-between;margin:5.7rem auto;max-width:132rem;padding:0 1.6rem;@media (max-width:960px){flex-wrap:wrap;margin:0;padding:5.6rem 2.4rem;}"]);i.ZP.div.withConfig({displayName:"LoadingWrapper",componentId:"sc-f0ygok-1"})(["align-items:center;display:flex;justify-content:center;min-height:20rem;padding:2rem;"]);var o=i.ZP.div.withConfig({displayName:"BreadCrumbsContainer",componentId:"sc-f0ygok-2"})(["margin-bottom:20px;display:block;padding-left:2.5rem;@media (min-width:1400px){width:1400px;margin:0px auto 20px auto;}"])},41481:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var i=n(72198),r=n(32393),o=n(23221),a=n(77243),c=n(63144),s=n.n(c),u=n(33811);function l(){var e=new i.u({uri:"https://api.cbtnuggets.com/catalog/v1/graphql",credentials:"same-origin",fetch:s()}),t=new r.h;if((0,u.Nq)()){var n=[e];return new o.f({link:(0,a.D)(n),cache:t,ssrMode:!0})}return new o.f({link:e,cache:t,ssrMode:!0})}},88395:function(e,t,n){"use strict";n.d(t,{C:function(){return s}});var i=n(59499);n(67294);var r=n(53768),o=n(41481),a=n(85893);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}var s=function(e){return function(t){return(0,a.jsx)(r.e,{client:(0,o.s)(),children:(0,a.jsx)(e,function(e){for(var t=1;t