"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3320],{67726:function(e,n,t){t.d(n,{Z:function(){return B}}),t(67294);var r,i=t(12549),a=t(4730),o=t(87103),s=t(66981),l=t(93706),d=t(7348),c=t(96018),m=t(59499),u=t(50029),h=t(64687),p=t.n(h);t(35666);var f=t(87066),g=t(12093),x=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success!",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;window.dataLayer.push({event:"page.formSubmit","page.formSubmit":{name:e,type:"ajax",valid:!0,message:n,data:t}})},y=t(7013),v={mapPropsToValues:function(e){var n=e.tag,t=n.title;return{email:"",first:"",last:"",required:"",role:"",course:n.course,title:t,formName:n.formName||"ultimate_cert_guide",receive_news:!1,leadSource:e.leadSource||"blog"}},validationSchema:g.Ry().shape({email:g.Z_().trim().email("Please enter a valid email address.").required("Please enter your email address."),first:g.Z_().required("Please enter your first name."),last:g.Z_().required("Please enter your last name."),role:g.Z_().required("Please choose your role.")}),handleSubmit:(r=(0,u.Z)(p().mark(function e(n,t){var r,i,a,o,s,l,d,c,u,h,g,v,w;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.setStatus,i=n.email,a=n.required,o=n.role,s=n.receive_news,l=n.first,d=n.last,c=n.title,u=n.course,h=n.formName,g=n.leadSource,""!==a){e.next=20;break}return r("pending"),v="study_plan_download",(w=(0,m.Z)({},v,{}))[v].plan_id=u,w[v].plan_name=c,w[v].job_title=o,(0,y.w)(v,w),e.prev=10,e.next=13,(0,f.Z)({method:"POST",url:"/api/site-gateway/v1/business/communique",headers:{"Content-Type":"applicationhttps://www.cbtnuggets.com/json"},data:{form_name:h,email:"".concat(i.trim()),optin:"".concat(s),best_describes:o,first_name:l,last_name:d,course:u,lead_source:g}});case 13:r("success"),x(h,"Success!"),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(10),r("error");case 20:case"end":return e.stop()}},e,null,[[10,17]])})),function(e,n){return r.apply(this,arguments)})},w=t(87379),b=w.ZP.section.withConfig({displayName:"Container",componentId:"sc-16au7r0-0"})(["&&{border-top:"," solid ",";border-bottom:"," solid ",";padding:",";img{height:58px;width:46px;}p.agreement-text{margin-bottom:0;color:",";}.formError{color:",";margin:0;font-size:",";}label{font-family:",";input,select{max-width:43rem;width:100%;}}.receive_news{max-width:3rem;}}"],function(e){return e.showDividers?"0.1rem":"0"},function(e){return e.theme.greyBorder},function(e){return e.showDividers?"0.1rem":"0"},function(e){return e.theme.greyBorder},function(e){return e.showDividers?"2.35rem 0":"0"},function(e){return e.theme.colors.tertiary},function(e){return e.theme.red},function(e){return e.theme.smallFont},function(e){return e.theme.fontFamily}),j=w.ZP.div.withConfig({displayName:"InputContainer",componentId:"sc-16au7r0-1"})(["padding:1rem 0;display:",";"],function(e){return e.honeypot?"none":"block"}),k=w.ZP.div.withConfig({displayName:"InputContainerFlex",componentId:"sc-16au7r0-2"})(["padding:2rem 0;display:flex;align-items:center;"]),C=w.ZP.div.withConfig({displayName:"SuccessContainer",componentId:"sc-16au7r0-3"})(["text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;overflow:hidden;"]),N=w.ZP.p.withConfig({displayName:"SuccessHeader",componentId:"sc-16au7r0-4"})(["text-transform:uppercase;letter-spacing:0.13rem;text-shadow:0 0.2rem 0.2rem 0 ",";margin-bottom:0;font-size:",";"],function(e){return e.theme.primary},function(e){return e.theme.smallFont}),I=w.ZP.p.withConfig({displayName:"SuccessMessage",componentId:"sc-16au7r0-5"})(["font-size:2.4rem;font-weight:600;"]),S=t(85893),_=["tag","submitButtonText","leadSource"],Z=(0,o.j0)(v)(function(e){var n=e.tag,t=e.submitButtonText,r=e.leadSource,i=(0,a.Z)(e,_),o=n.title,m=n.description,u=n.course,h=n.formName,p=n.successMessage;return"pending"===i.status?(0,S.jsx)(s.Z,{}):"error"===i.status?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("p",{children:"Uh oh!"}),(0,S.jsx)("p",{className:"lead",children:"There was an error submitting your email, please try again."})]}):"success"===i.status?(0,S.jsxs)(C,{children:[(0,S.jsx)("svg",{height:"35",viewBox:"0 0 35 35",width:"35",xmlns:"http://www.w3.org/2000/svg",children:(0,S.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,S.jsx)("circle",{cx:"17.5",cy:"17.5",fill:"#008558",r:"17.5"}),(0,S.jsxs)("g",{transform:"translate(5 6)",children:[(0,S.jsx)("path",{d:"m0 0h24v24h-24z"}),(0,S.jsx)("path",{d:"m10.9565217 18-6.4565217-6.4209275 2.02304348-2.01189057 4.43347822 4.39476817 8.0204348-7.9619501 2.0230435 2.01189061z",fill:"#fff"})]})]})}),(0,S.jsx)(N,{children:"Success!"}),p&&(0,S.jsx)(I,{className:"lead",children:p}),(0,S.jsx)(I,{className:"lead",children:"Check your email."})]}):(0,S.jsxs)("form",{onSubmit:i.handleSubmit,children:[o&&(0,S.jsx)("h2",{children:o}),m&&(0,S.jsx)("p",{className:"description",children:m}),(0,S.jsx)("input",{name:"course",type:"hidden",value:u}),(0,S.jsx)("input",{name:"formName",type:"hidden",value:h}),(0,S.jsx)("input",{name:"leadSource",type:"hidden",value:r}),(0,S.jsxs)(j,{children:[(0,S.jsx)(l.Z.Input,{label:"First Name",id:"first",className:"first",name:"first",type:"text",onChange:i.handleChange,onBlur:i.handleBlur,maxLength:50,crossOrigin:""}),i.errors.first&&i.touched.first&&(0,S.jsxs)("span",{className:"formError",children:[i.errors.first,(0,S.jsx)("br",{})]})]}),(0,S.jsx)(j,{honeypot:!0,children:(0,S.jsx)(l.Z.Input,{style:{display:"none"},label:"Required",id:"required",className:"required",name:"required",type:"text",onChange:i.handleChange,onBlur:i.handleBlur,crossOrigin:""})}),(0,S.jsxs)(j,{children:[(0,S.jsx)(l.Z.Input,{label:"Last Name",id:"last",className:"last",name:"last",type:"text",onChange:i.handleChange,onBlur:i.handleBlur,maxLength:50,crossOrigin:""}),i.errors.last&&i.touched.last&&(0,S.jsxs)("span",{className:"formError",children:[i.errors.last,(0,S.jsx)("br",{})]})]}),(0,S.jsxs)(j,{children:[(0,S.jsx)(l.Z.Input,{label:"Email",id:"email",className:"email",name:"email",type:"text",onChange:function(e){e.target.value=e.target.value.trim(),i.handleChange(e)},onBlur:i.handleBlur,maxLength:50,crossOrigin:""}),i.errors.email&&i.touched.email&&(0,S.jsxs)("span",{className:"formError",children:[i.errors.email,(0,S.jsx)("br",{})]})]}),(0,S.jsx)(j,{children:(0,S.jsxs)(l.Z.Select.Basic,{label:"What is your job role?",id:"role",className:"role",name:"role",onChange:i.handleChange,onBlur:i.handleBlur,children:[(0,S.jsx)("option",{value:"",children:"Select..."}),(0,S.jsx)("option",{value:"I'm an IT pro looking to sharpen my skills or earn a certification",children:"I'm an IT pro looking to sharpen my skills or earn a certification"}),(0,S.jsx)("option",{value:"I lead an IT team and am looking for training solutions",children:"I lead an IT team and am looking for training solutions"}),(0,S.jsx)("option",{value:"I'm not an IT pro, but interested in entering the field",children:"I'm not an IT pro, but interested in entering the field"}),(0,S.jsx)("option",{value:"Other",children:"Other"})]})}),i.errors.role&&i.touched.role&&(0,S.jsxs)("span",{className:"formError",children:[i.errors.role,(0,S.jsx)("br",{})]}),(0,S.jsxs)(k,{children:[(0,S.jsx)(l.Z.Checkbox,{id:"receive_news",name:"receive_news",onChange:i.handleChange,onBlur:i.handleBlur,crossOrigin:""}),(0,S.jsx)(d.Z.Right,{htmlFor:"receive_news",children:"Send me CBT Nuggets IT training news and resources. (optional)"})]}),(0,S.jsx)(c.Z.Primary,{className:"logged-in",children:void 0===t?"Submit":t}),"CCNATraining"===n.course?(0,S.jsxs)("p",{className:"description agreement-text",children:["By submitting this form you agree to the ",(0,S.jsx)("a",{href:"/assets/pdf/CCNA-Coming-Soon-Social-Media-Contest-Rules.pdf",children:"contest rules"})," and"," ",(0,S.jsx)("a",{href:"/privacy",children:"privacy policy"})]}):(0,S.jsxs)("p",{className:"description agreement-text",children:["By submitting this form you agree that you have read, understood, and are able to consent to our ",(0,S.jsx)("a",{href:"/privacy",children:"privacy policy"}),"."]})]})}),B=function(e){var n=e.tag,t=e.submitButtonText,r=e.showDividers,a=e.leadSource,o="CertGuideDownload"===n.type;return(0,S.jsxs)(b,{showDividers:void 0===r||r,children:[o?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(i.Z,{src:"/assets/_next/static/0c249816739af145bb8a64634bfe464b.png",alt:"Download"}),(0,S.jsx)("p",{children:"Download"})]}):null,(0,S.jsx)(Z,{tag:n,submitButtonText:t,leadSource:void 0===a?"blog":a})]})}},93053:function(e,n,t){t.d(n,{DF:function(){return s},Lu:function(){return l},N:function(){return p},_2:function(){return h},aL:function(){return u},eq:function(){return f},f6:function(){return c},nb:function(){return d},oO:function(){return g},sj:function(){return m},v4:function(){return o}});var r=t(87379),i="https://assets.cbtnuggets.com",a="".concat(i,"/client/wedge.svg"),o=r.ZP.div.withConfig({displayName:"DownloadTitleHeader",componentId:"sc-11zjmht-0"})(["margin:0;"]),s=r.ZP.label.withConfig({displayName:"DownloadLabel",componentId:"sc-11zjmht-1"})(["font-size:",";text-transform:uppercase;margin:0 0 0.8rem 0;letter-spacing:1.33px;&.small{font-size:",";}"],function(e){return e.theme.fonts.textStandard},function(e){return e.theme.fonts.textSmall}),l=r.ZP.div.withConfig({displayName:"DownloadCardStyle",componentId:"sc-11zjmht-2"})(["padding:2rem;margin:0 6.4rem;border:1px solid ",";flex:0 1 40%;background-color:",";@media only screen and (max-width:","){margin:0;padding:6.4rem;}@media only screen and (max-width:","){margin:0;padding:2rem;}"],function(e){return e.theme.colors.greyBorder},function(e){return e.theme.colors.white},function(e){return e.theme.breakpoints.mediaDesktopMin},function(e){return e.theme.breakpoints.tablet}),d=r.ZP.div.withConfig({displayName:"DownloadFormStyle",componentId:"sc-11zjmht-3"})(["padding:0 6.4rem;flex:0 1 40%;"]),c=r.ZP.div.withConfig({displayName:"DownloadDetail",componentId:"sc-11zjmht-4"})(["padding:0 6.4rem;flex:1 50%;color:",";h2{color:",";}p{font-size:",";margin:0 0 3.2rem 0;color:",";}ul{font-size:",";margin:0 0 3.2rem 0;padding:0;list-style:none;color:",";li{font-weight:600;padding:1rem 0 1rem 3.2rem;background-image:url(",");background-repeat:no-repeat;background-position:left center;background-size:2rem;p{margin:0;color:",";}}}@media only screen and (max-width:","){margin:0;}@media only screen and (max-width:","){padding:4.8rem;}@media only screen and (max-width:","){padding:2rem;}"],function(e){return e.isDarkBackground?e.theme.colors.white:e.theme.colors.primary},function(e){return e.isDarkBackground?e.theme.colors.white:e.theme.colors.primary},function(e){return e.theme.fonts.textLarge},function(e){return e.isDarkBackground?e.theme.colors.white:e.theme.colors.primary},function(e){return e.theme.fonts.textLarge},function(e){return e.isDarkBackground?e.theme.colors.white:e.theme.colors.primary},"".concat(i,"/assets/client/checkmark.svg"),function(e){return e.isDarkBackground?e.theme.colors.white:e.theme.colors.primary},function(e){return e.theme.breakpoints.mediaDesktopMin},function(e){return e.theme.breakpoints.tablet},function(e){return e.theme.breakpoints.smphone}),m=r.ZP.div.withConfig({displayName:"DownloadGuideLayout",componentId:"sc-11zjmht-5"})(["max-width:",";display:flex;justify-content:space-between;margin:0 auto;padding:0;@media only screen and (max-width:","){flex-direction:column;}"],function(e){return e.theme.breakpoints.desktop1200},function(e){return e.theme.breakpoints.mediaDesktopMin}),u=r.ZP.div.withConfig({displayName:"DownloadGuideContainer",componentId:"sc-11zjmht-6"})(["background-image:",";background-repeat:no-repeat;background-position:right bottom;background-size:140%;padding:4.8rem;background-color:",";@media only screen and (max-width:","){background-image:none;}@media only screen and (max-width:","){padding:2rem;background-image:none;}"],function(e){return e.useWedge&&"url(".concat(a,")")},function(e){var n;return null!==(n=e.backgroundColor)&&void 0!==n?n:"transparent"},function(e){return e.theme.breakpoints.mediaDesktopMin},function(e){return e.theme.breakpoints.phone}),h=r.ZP.div.withConfig({displayName:"StyledCertClassFormContainer",componentId:"sc-11zjmht-7"})(["position:relative;"]),p=r.ZP.div.withConfig({displayName:"StyledCertClassFormWrapper",componentId:"sc-11zjmht-8"})(["overflow:hidden;padding:2rem;flex:0 1 40%;max-width:800px;margin:0 auto;.klaviyo-close-form{display:none;}@media screen and (max-width:","){max-width:90vw;padding:2rem 0;.needsclick.kl-private-reset-css-Xuajs1:nth-child(2),.needsclick.kl-private-reset-css-Xuajs1:nth-child(7){> div{padding-inline:0.5rem !important;}}}"],function(e){return e.theme.breakpoints.phone}),f=r.ZP.div.withConfig({displayName:"StyledWrapperFormKlaviyoFlyout",componentId:"sc-11zjmht-9"})(["overflow:hidden;padding:2rem;flex:0 1 40%;max-width:800px;margin:0 auto;.klaviyo-close-form{display:none;}> div > div > div{animation-duration:1ms !important;form{width:unset !important;}}@media only screen and (max-width:","){margin:0;padding:6.4rem;}@media only screen and (max-width:","){margin:0;padding:2rem;}"],function(e){return e.theme.breakpoints.mediaDesktopMin},function(e){return e.theme.breakpoints.tablet}),g=r.ZP.div.withConfig({displayName:"StyledDownloadableGuide",componentId:"sc-11zjmht-10"})(["padding:2rem;flex:0 1 40%;max-width:800px;margin:0 auto;"])},28874:function(e,n,t){t.d(n,{bV:function(){return r}});var r=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=window;t&&e&&setTimeout(function(){t._klOnsite=t._klOnsite||[],t._klOnsite.push(["openForm",e])},n)}},48089:function(e,n,t){t.d(n,{Z:function(){return c}});var r=t(67294),i=t(87379),a=t(28874),o=t(7013),s=t(6693),l=t(85893),d=i.ZP.div.withConfig({displayName:"FormKlaviyoFlyoutContainer",componentId:"sc-92e138-0"})(["[aria-label='Close dialog']{display:",";}"],function(e){return e.$hideCloseButton?"none":"block"}),c=function(e){var n=e.formKlaviyoId,t=e.ga4EventName,i=(0,r.useRef)(null);return((0,r.useEffect)(function(){var e;if(i.current&&!(null!==(e=i.current)&&void 0!==e&&e.hasChildNodes())){if(document.querySelector('script[src*="klaviyo.js"]'))(0,a.bV)(n),s();else{var r=document.createElement("script");r.defer=!0,r.src="https://static.klaviyo.com/onsitehttps://www.cbtnuggets.com/js/klaviyo.js?company_id=UzuaHr",document.head.appendChild(r),r.onload=function(){(0,a.bV)(n),s()}}}function s(){var e=setInterval(function(){var r=document.querySelector('[data-testid="FLYOUT"]');if(r&&i.current){if(r.style.animation="none",r.style.transition="none",i.current.appendChild(r),!t){clearInterval(e);return}var a=document.querySelector('[data-testid="klaviyo-form-'.concat(n,'"]')),s=null==a?void 0:a.querySelectorAll("button.needsclick"),l=null==s?void 0:s.item(s.length-1);l&&l.addEventListener("click",function(){var e=null==a?void 0:a.querySelectorAll('[role="alert"]');e&&0!==e.length||(0,o.w)(t)}),clearInterval(e);return}},100)}},[n,t]),n)?(0,l.jsx)(d,{ref:i,className:"klaviyo-form-".concat(n),$hideCloseButton:!!t||s.hv.includes(n)}):null}},6693:function(e,n,t){t.d(n,{hv:function(){return a},ij:function(){return i},y$:function(){return o}}),t(83454).env.REVALIDATION_IN_SECONDS;var r,i=27,a=["SnwkFL","Sec5NV"],o=((r={}).UTM_FIRST="utm_first",r.UTM_LAST="utm_last",r.FIRST_PAGE_VIEW="first_page",r.REFERRER_FIRST="referrer",r)}}]);