"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1760],{25338:function(e,n,r){r.d(n,{Z:function(){return B}}),r(67294);var t,i=r(12549),a=r(4730),o=r(87103),s=r(17811),l=r(63505),d=r(7348),c=r(96018),m=r(59499),u=r(50029),h=r(64687),p=r.n(h);r(35666);var g=r(87066),f=r(96827),x=r(29531),y=r(7013),w={mapPropsToValues:function(e){var n=e.tag,r=n.title;return{email:"",first:"",last:"",required:"",role:"",course:n.course,title:r,formName:n.formName||"ultimate_cert_guide",receive_news:!1,leadSource:e.leadSource||"blog"}},validationSchema:f.Ry().shape({email:f.Z_().trim().email("Please enter a valid email address.").required("Please enter your email address."),first:f.Z_().required("Please enter your first name."),last:f.Z_().required("Please enter your last name."),role:f.Z_().required("Please choose your role.")}),handleSubmit:(t=(0,u.Z)(p().mark(function e(n,r){var t,i,a,o,s,l,d,c,u,h,f,w,v;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.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,f=n.leadSource,""!==a){e.next=20;break}return t("pending"),w="study_plan_download",(v=(0,m.Z)({},w,{}))[w].plan_id=u,v[w].plan_name=c,v[w].job_title=o,(0,y.w)(w,v),e.prev=10,e.next=13,(0,g.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:f}});case 13:t("success"),(0,x.u)(h,"Success!"),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(10),t("error");case 20:case"end":return e.stop()}},e,null,[[10,17]])})),function(e,n){return t.apply(this,arguments)})},v=r(87379),b=v.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=v.ZP.div.withConfig({displayName:"InputContainer",componentId:"sc-16au7r0-1"})(["padding:1rem 0;display:",";"],function(e){return e.honeypot?"none":"block"}),k=v.ZP.div.withConfig({displayName:"InputContainerFlex",componentId:"sc-16au7r0-2"})(["padding:2rem 0;display:flex;align-items:center;"]),C=v.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=v.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=v.ZP.p.withConfig({displayName:"SuccessMessage",componentId:"sc-16au7r0-5"})(["font-size:2.4rem;font-weight:600;"]),Z=r(85893),S=["tag","submitButtonText","leadSource"],_=(0,o.j0)(w)(function(e){var n=e.tag,r=e.submitButtonText,t=e.leadSource,i=(0,a.Z)(e,S),o=n.title,m=n.description,u=n.course,h=n.formName,p=n.successMessage;return"pending"===i.status?(0,Z.jsx)(s.Z,{}):"error"===i.status?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("p",{children:"Uh oh!"}),(0,Z.jsx)("p",{className:"lead",children:"There was an error submitting your email, please try again."})]}):"success"===i.status?(0,Z.jsxs)(C,{children:[(0,Z.jsx)("svg",{height:"35",viewBox:"0 0 35 35",width:"35",xmlns:"http://www.w3.org/2000/svg",children:(0,Z.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,Z.jsx)("circle",{cx:"17.5",cy:"17.5",fill:"#008558",r:"17.5"}),(0,Z.jsxs)("g",{transform:"translate(5 6)",children:[(0,Z.jsx)("path",{d:"m0 0h24v24h-24z"}),(0,Z.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,Z.jsx)(N,{children:"Success!"}),p&&(0,Z.jsx)(I,{className:"lead",children:p}),(0,Z.jsx)(I,{className:"lead",children:"Check your email."})]}):(0,Z.jsxs)("form",{onSubmit:i.handleSubmit,children:[o&&(0,Z.jsx)("h2",{children:o}),m&&(0,Z.jsx)("p",{className:"description",children:m}),(0,Z.jsx)("input",{name:"course",type:"hidden",value:u}),(0,Z.jsx)("input",{name:"formName",type:"hidden",value:h}),(0,Z.jsx)("input",{name:"leadSource",type:"hidden",value:t}),(0,Z.jsxs)(j,{children:[(0,Z.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,Z.jsxs)("span",{className:"formError",children:[i.errors.first,(0,Z.jsx)("br",{})]})]}),(0,Z.jsx)(j,{honeypot:!0,children:(0,Z.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,Z.jsxs)(j,{children:[(0,Z.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,Z.jsxs)("span",{className:"formError",children:[i.errors.last,(0,Z.jsx)("br",{})]})]}),(0,Z.jsxs)(j,{children:[(0,Z.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,Z.jsxs)("span",{className:"formError",children:[i.errors.email,(0,Z.jsx)("br",{})]})]}),(0,Z.jsx)(j,{children:(0,Z.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,Z.jsx)("option",{value:"",children:"Select..."}),(0,Z.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,Z.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,Z.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,Z.jsx)("option",{value:"Other",children:"Other"})]})}),i.errors.role&&i.touched.role&&(0,Z.jsxs)("span",{className:"formError",children:[i.errors.role,(0,Z.jsx)("br",{})]}),(0,Z.jsxs)(k,{children:[(0,Z.jsx)(l.Z.Checkbox,{id:"receive_news",name:"receive_news",onChange:i.handleChange,onBlur:i.handleBlur,crossOrigin:""}),(0,Z.jsx)(d.Z.Right,{htmlFor:"receive_news",children:"Send me CBT Nuggets IT training news and resources. (optional)"})]}),(0,Z.jsx)(c.Z.Primary,{className:"logged-in",children:void 0===r?"Submit":r}),"CCNATraining"===n.course?(0,Z.jsxs)("p",{className:"description agreement-text",children:["By submitting this form you agree to the ",(0,Z.jsx)("a",{href:"/assets/pdf/CCNA-Coming-Soon-Social-Media-Contest-Rules.pdf",children:"contest rules"})," and"," ",(0,Z.jsx)("a",{href:"/privacy",children:"privacy policy"})]}):(0,Z.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,Z.jsx)("a",{href:"/privacy",children:"privacy policy"}),"."]})]})}),B=function(e){var n=e.tag,r=e.submitButtonText,t=e.showDividers,a=e.leadSource,o="CertGuideDownload"===n.type;return(0,Z.jsxs)(b,{showDividers:void 0===t||t,children:[o?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(i.Z,{src:"/assets/_next/static/0c249816739af145bb8a64634bfe464b.png",alt:"Download"}),(0,Z.jsx)("p",{children:"Download"})]}):null,(0,Z.jsx)(_,{tag:n,submitButtonText:r,leadSource:void 0===a?"blog":a})]})}},93053:function(e,n,r){r.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 g},f6:function(){return c},nb:function(){return d},oO:function(){return f},sj:function(){return m},v4:function(){return o}});var t=r(87379),i="https://assets.cbtnuggets.com",a="".concat(i,"/client/wedge.svg"),o=t.ZP.div.withConfig({displayName:"DownloadTitleHeader",componentId:"sc-11zjmht-0"})(["margin:0;"]),s=t.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=t.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=t.ZP.div.withConfig({displayName:"DownloadFormStyle",componentId:"sc-11zjmht-3"})(["padding:0 6.4rem;flex:0 1 40%;"]),c=t.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=t.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=t.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=t.ZP.div.withConfig({displayName:"StyledCertClassFormContainer",componentId:"sc-11zjmht-7"})(["position:relative;"]),p=t.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}),g=t.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}),f=t.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,r){r.d(n,{bV:function(){return t}});var t=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=window;r&&e&&setTimeout(function(){r._klOnsite=r._klOnsite||[],r._klOnsite.push(["openForm",e])},n)}},29531:function(e,n,r){r.d(n,{u:function(){return t}});var t=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success!",r=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:r}})}}}]);