"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1760],{25338:function(e,n,t){t.d(n,{Z:function(){return D}}),t(67294);var r,i=t(12549),o=t(4730),a=t(99050),s=t(17811),l=t(63505),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(52974),x=t(29531),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,o,a,s,l,d,c,u,h,g,v,b;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.setStatus,i=n.email,o=n.required,a=n.role,s=n.receive_news,l=n.first,d=n.last,c=n.title,u=n.course,h=n.formName,g=n.leadSource,""!==o){e.next=20;break}return r("pending"),v="study_plan_download",(b=(0,m.Z)({},v,{}))[v].plan_id=u,b[v].plan_name=c,b[v].job_title=a,(0,y.w)(v,b),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:a,first_name:l,last_name:d,course:u,lead_source:g}});case 13:r("success"),(0,x.u)(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)})},b=t(87379),w=b.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=b.ZP.div.withConfig({displayName:"InputContainer",componentId:"sc-16au7r0-1"})(["padding:1rem 0;display:",";"],function(e){return e.honeypot?"none":"block"}),k=b.ZP.div.withConfig({displayName:"InputContainerFlex",componentId:"sc-16au7r0-2"})(["padding:2rem 0;display:flex;align-items:center;"]),C=b.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=b.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}),S=b.ZP.p.withConfig({displayName:"SuccessMessage",componentId:"sc-16au7r0-5"})(["font-size:2.4rem;font-weight:600;"]),I=t(85893),Z=["tag","submitButtonText","leadSource"],P=(0,a.j0)(v)(function(e){var n=e.tag,t=e.submitButtonText,r=e.leadSource,i=(0,o.Z)(e,Z),a=n.title,m=n.description,u=n.course,h=n.formName,p=n.successMessage;return"pending"===i.status?(0,I.jsx)(s.Z,{}):"error"===i.status?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("p",{children:"Uh oh!"}),(0,I.jsx)("p",{className:"lead",children:"There was an error submitting your email, please try again."})]}):"success"===i.status?(0,I.jsxs)(C,{children:[(0,I.jsx)("svg",{height:"35",viewBox:"0 0 35 35",width:"35",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,I.jsx)("circle",{cx:"17.5",cy:"17.5",fill:"#008558",r:"17.5"}),(0,I.jsxs)("g",{transform:"translate(5 6)",children:[(0,I.jsx)("path",{d:"m0 0h24v24h-24z"}),(0,I.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,I.jsx)(N,{children:"Success!"}),p&&(0,I.jsx)(S,{className:"lead",children:p}),(0,I.jsx)(S,{className:"lead",children:"Check your email."})]}):(0,I.jsxs)("form",{onSubmit:i.handleSubmit,children:[a&&(0,I.jsx)("h2",{children:a}),m&&(0,I.jsx)("p",{className:"description",children:m}),(0,I.jsx)("input",{name:"course",type:"hidden",value:u}),(0,I.jsx)("input",{name:"formName",type:"hidden",value:h}),(0,I.jsx)("input",{name:"leadSource",type:"hidden",value:r}),(0,I.jsxs)(j,{children:[(0,I.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,I.jsxs)("span",{className:"formError",children:[i.errors.first,(0,I.jsx)("br",{})]})]}),(0,I.jsx)(j,{honeypot:!0,children:(0,I.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,I.jsxs)(j,{children:[(0,I.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,I.jsxs)("span",{className:"formError",children:[i.errors.last,(0,I.jsx)("br",{})]})]}),(0,I.jsxs)(j,{children:[(0,I.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,I.jsxs)("span",{className:"formError",children:[i.errors.email,(0,I.jsx)("br",{})]})]}),(0,I.jsx)(j,{children:(0,I.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,I.jsx)("option",{value:"",children:"Select..."}),(0,I.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,I.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,I.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,I.jsx)("option",{value:"Other",children:"Other"})]})}),i.errors.role&&i.touched.role&&(0,I.jsxs)("span",{className:"formError",children:[i.errors.role,(0,I.jsx)("br",{})]}),(0,I.jsxs)(k,{children:[(0,I.jsx)(l.Z.Checkbox,{id:"receive_news",name:"receive_news",onChange:i.handleChange,onBlur:i.handleBlur,crossOrigin:""}),(0,I.jsx)(d.Z.Right,{htmlFor:"receive_news",children:"Send me CBT Nuggets IT training news and resources. (optional)"})]}),(0,I.jsx)(c.Z.Primary,{className:"logged-in",children:void 0===t?"Submit":t}),"CCNATraining"===n.course?(0,I.jsxs)("p",{className:"description agreement-text",children:["By submitting this form you agree to the ",(0,I.jsx)("a",{href:"/assets/pdf/CCNA-Coming-Soon-Social-Media-Contest-Rules.pdf",children:"contest rules"})," and"," ",(0,I.jsx)("a",{href:"/privacy",children:"privacy policy"})]}):(0,I.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,I.jsx)("a",{href:"/privacy",children:"privacy policy"}),"."]})]})}),D=function(e){var n=e.tag,t=e.submitButtonText,r=e.showDividers,o=e.leadSource,a="CertGuideDownload"===n.type;return(0,I.jsxs)(w,{showDividers:void 0===r||r,children:[a?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(i.Z,{src:"/assets/_next/static/0c249816739af145bb8a64634bfe464b.png",alt:"Download"}),(0,I.jsx)("p",{children:"Download"})]}):null,(0,I.jsx)(P,{tag:n,submitButtonText:t,leadSource:void 0===o?"blog":o})]})}},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 a}});var r=t(87379),i="https://assets.cbtnuggets.com",o="".concat(i,"/client/wedge.svg"),a=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(o,")")},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,{Pb:function(){return s},Q:function(){return l},bV:function(){return a}});var r=t(59499);function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function o(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:0,t=window;t&&e&&setTimeout(function(){t._klOnsite=t._klOnsite||[],t._klOnsite.push(["openForm",e])},n)},s=function(e,n,t){var r,i,a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},l=null==t||null===(r=t.attributes)||void 0===r?void 0:r.getNamedItem("aria-label");if((null==l?void 0:l.textContent)==="FLYOUT Form"&&!(null!=t&&null!==(i=t.dataset)&&void 0!==i&&i.ignore)&&(null==t||null===(a=t.querySelector("form"))||void 0===a||null===(a=a.dataset)||void 0===a?void 0:a.testid)==="klaviyo-form-".concat(n)){var d=t.parentElement.parentElement;t.dataset.ignore="true",e.current.appendChild(t);var c=t.querySelector("button.klaviyo-close-form"),m=t.querySelector("div");c.onclick=s,d.dataset.modalId=n,d.firstChild.fnFalses=o(o({},c.l),m.l)}},l=function(e){if(e){var n,t,r,i=null===(n=document)||void 0===n||null===(n=n.body)||void 0===n||null===(t=n.querySelector)||void 0===t?void 0:t.call(n,'div[data-modal-id="'.concat(e,'"]')),o=null==i||null===(r=i.firstChild)||void 0===r?void 0:r.fnFalses;o&&(o.clickfalse(),o.animationendfalse())}}},29531:function(e,n,t){t.d(n,{u:function(){return r}});var r=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}})}}}]);