"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7394],{21662:function(e,t,r){r.d(t,{A:function(){return n}});var n="Y4CHJp"},83714:function(e,t,r){r.d(t,{M:function(){return i}});var n=r(21662),o=r(89543),i=[{id:o.Im.FOOTER,formType:o.rF.EMBED,formId:"R5ecEm",listId:n.A,source:"Footer Email Sign-Up Form",versionKey:8019139}]},89543:function(e,t,r){r.d(t,{Im:function(){return s},T1:function(){return l},oM:function(){return a},rF:function(){return c}});var n,o,i,a="UzuaHr",s=((n={}).FOOTER="FOOTER",n.BLOG="BLOG",n.BLOG_EMBED="BLOG_EMBED",n.CERT_GUIDE_CLOUD="CERT_GUIDE_CLOUD",n.CERT_GUIDE_DEVOPS="CERT_GUIDE_DEVOPS",n.CERT_GUIDE_VIRTUALIZATION="CERT_GUIDE_VIRTUALIZATION",n.CERT_GUIDE_PROJECT_MANAGEMENT="CERT_GUIDE_PROJECT_MANAGEMENT",n.CERT_GUIDE_TECH_SUPPORT="CERT_GUIDE_TECH_SUPPORT",n.CERT_GUIDE_SYS_ADMIN="CERT_GUIDE_SYS_ADMIN",n.CERT_GUIDE_SECURITY="CERT_GUIDE_SECURITY",n.CERT_GUIDE_NETWORKING="CERT_GUIDE_NETWORKING",n.STUDY_PLAN_CCNP_300="STUDY_PLAN_CCNP_300",n.STUDY_PLAN_COMPTIA_CORE_ONE="STUDY_PLAN_COMPTIA_CORE_ONE",n.STUDY_PLAN_COMPTIA_CORE_TWO="STUDY_PLAN_COMPTIA_CORE_TWO",n.STUDY_PLAN_LINUX_PLUS="STUDY_PLAN_LINUX_PLUS",n.STUDY_PLAN_MD_100="STUDY_PLAN_MD_100",n.STUDY_PLAN_CCNA_200_301="STUDY_PLAN_CCNA_200_301",n.STUDY_PLAN_DEV_NET_ASSOCIATE="STUDY_PLAN_DEV_NET_ASSOCIATE",n.STUDY_PLAN_CCNP_ENTERPRISE_CORE="STUDY_PLAN_CCNP_ENTERPRISE_CORE",n.STUDY_PLAN_CCNP_SECURITY_CORE="STUDY_PLAN_CCNP_SECURITY_CORE",n.CONFIGURATION_GUIDE_LINUX="CONFIGURATION_GUIDE_LINUX",n),l=((o={}).VIEW_FORM="loadedEmbed",o.VIEW_FLYOUT="openModal",o.SUBMIT_FORM="submitModal",o.CLOSED_MODAL="closedModal",o),c=((i={}).EMBED="EMBED",i.FLYOUT="FLYOUT",i.POPUP="POPUP",i)},97394:function(e,t,r){r.d(t,{D:function(){return e8}});var n,o,i,a=r(67294),s=r(34515),l=r(63505),c=r(21642),m=r(96018),d=r(97683),u=r(50029),p=r(64687),f=r.n(p),h=r(6154),g=r(89543),b=r(31698),_=r(41785),w=(n=(0,u.Z)(f().mark(function e(t){var r,n;return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.formId,e.next=3,(0,b.M)({formId:r});case 3:if(null!=(n=e.sent)&&n.formId){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,h.Z.post("https://telemetrics.klaviyo.com/v1/metric",{metricGroup:"signup-forms",events:[{formVersionCId:"1",isClient:!0,metric:g.T1.VIEW_FORM,form_id:null==n?void 0:n.formId,form_version_id:null==n?void 0:n.versionKey,company_id:g.oM,form_type:null==n?void 0:n.formType,device_type:(0,_.l)(),hostname:window.location.hostname,href:window.location.href,page_url:window.location.href,first_referrer:window.location.href,referrer:document.referrer}]}).catch(function(e){return console.error(e)});case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)}),y=r(85893),v=r(83454),C=function(e){var t=e.formId,r=(0,a.useState)(!1),n=r[0],o=r[1],i=(0,a.useState)(!1),s=i[0],l=i[1],c=(0,a.useRef)(null),m=(0,d.R)(c);return(0,a.useEffect)(function(){!n&&t&&"production"===v.env.NODE&&o(!0)},[t]),(0,a.useEffect)(function(){m&&!s&&(l(!0),w({formId:t}))},[m]),(0,y.jsx)("div",{ref:c})},x=r(83714),I=r(87379),O=I.ZP.div.withConfig({displayName:"SubmissionMessageContainer",componentId:"sc-1b1vu2i-0"})(["display:flex;flex-direction:column;align-items:center;text-align:center;"]),T=I.ZP.h4.withConfig({displayName:"SubmissionTitle",componentId:"sc-1b1vu2i-1"})(["font-weight:bold;margin-bottom:1.5rem;"]),j=I.ZP.span.withConfig({displayName:"ConfirmationMessage",componentId:"sc-1b1vu2i-2"})(["margin-bottom:2.5rem;font-size:1.6rem;opacity:0.6;"]),P=I.ZP.span.withConfig({displayName:"PartingMessage",componentId:"sc-1b1vu2i-3"})(["font-size:1.6rem;opacity:0.6;"]),E=function(){return(0,y.jsxs)(O,{children:[(0,y.jsx)(T,{children:"Thanks for subscribing!"}),(0,y.jsx)(j,{children:"Check your email for a confirmation message."}),(0,y.jsx)(P,{children:"PS: We're so glad you're here!"})]})},U=r(83868),N=r.n(U),D=r(84057),S=r(90027),k=I.ZP.div.withConfig({displayName:"FormWrapper",componentId:"sc-nplyln-0"})(["position:absolute;top:0;left:770px;height:100%;@media (max-width:","){left:652px;}@media (max-width:","){margin-top:2rem;position:static;width:100%;}"],function(e){return e.theme.desktop1300},function(e){return e.theme.desktop1200}),Z=(0,I.iv)(["position:fixed;top:85px;bottom:unset;"]),F=(0,I.iv)(["top:unset;bottom:60px;"]),G=(0,I.iv)(["top:0;bottom:unset;"]),R=I.ZP.div.withConfig({displayName:"FormContainer",componentId:"sc-nplyln-1"})(["position:absolute;background-color:#f0f1f6;width:224px;transition:position 0.3s;border-radius:10px;",";@media screen and (max-width:","){display:none;}"],function(e){return e.$isInStickyRange?Z:e.$isFixedPosition?F:G},function(e){return e.theme.breakpoints.desktop1200}),A=I.ZP.div.withConfig({displayName:"FormInnerContainer",componentId:"sc-nplyln-2"})(["padding:2rem 3rem 1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;"]),M=I.ZP.div.withConfig({displayName:"CloseFormContainer",componentId:"sc-nplyln-3"})(["display:flex;justify-content:flex-end;margin-top:0.2rem;margin-bottom:1rem;position:absolute;right:2rem;top:1rem;align-items:center;"]),L=(0,I.ZP)(S.Z).withConfig({displayName:"CloseFormButton",componentId:"sc-nplyln-4"})(["display:flex;align-items:center;border:1px solid ",";background-color:",";svg{left:0;path{fill:",";}}"],function(e){return e.theme.colors.white},function(e){return e.theme.colors.staticGrey},function(e){return e.theme.colors.white}),$=I.ZP.div.withConfig({displayName:"FormContent",componentId:"sc-nplyln-5"})(["display:flex;margin-top:4.5rem;min-height:400px;flex-direction:column;text-align:",";"],function(e){return e.$submitted?"center":"initial"}),Y=I.ZP.span.withConfig({displayName:"FormTitle",componentId:"sc-nplyln-6"})(["margin-top:4.5rem;margin-bottom:1.5rem;font-weight:bold;font-size:2rem;"]),z=I.ZP.span.withConfig({displayName:"FormCTA",componentId:"sc-nplyln-7"})(["font-weight:400;font-size:1.3rem;line-height:1.7;"]),B=I.ZP.div.withConfig({displayName:"InputWrapper",componentId:"sc-nplyln-8"})(["margin-top:3rem;margin-bottom:1rem;"]),W=(0,I.ZP)(l.Z.Input).withConfig({displayName:"FormInput",componentId:"sc-nplyln-9"})(["border-radius:10px;font-size:1.3rem;"]),q=(0,I.ZP)(m.Z.PrimaryLarge).withConfig({displayName:"SubmitButton",componentId:"sc-nplyln-10"})(["font-size:1.7rem;padding:1.3rem 4rem;margin:2rem 0;"]),V=I.ZP.p.withConfig({displayName:"ErrorMessage",componentId:"sc-nplyln-11"})(["font-weight:bold;font-size:1.2rem;margin:0.5rem;color:",";"],function(e){return e.theme.red}),K=I.ZP.p.withConfig({displayName:"PrivacyPolicyNotice",componentId:"sc-cj9kqa-0"})(["font-weight:400;font-size:1.3rem;a{text-decoration:underline;}"]),X=function(){return(0,y.jsxs)(K,{children:["By submitting this form you agree to receive marketing emails from CBT Nuggets and that you have read, understood and are able to consent to our"," ",(0,y.jsx)("a",{href:"/privacy",children:"privacy policy"}),"."]})},H=r(27812),J=r(21662),Q=[{id:g.Im.BLOG,formType:g.rF.FLYOUT,formId:"V4BsJg",listId:J.A,source:"Blog Form",versionKey:8123530}],ee=[{id:g.Im.CERT_GUIDE_CLOUD,formType:g.rF.FLYOUT,formId:"SGaht7",listId:J.A,name:"Ultimate Cloud Cert Guide",courseName:" Take me to Cloud training",source:"Ultimate Cloud Cert Guide Download Form (Embed)",downloadUrl:"http://www.canuseducation.com/?cert=blog/wp-content/uploads/2022/12/Cloud-Cert-Guide.pdf",promptUrl:"/certification-playlist/cloud",downloadButtonText:"Download Cert Guide",requiresOptIn:!0},{id:g.Im.CERT_GUIDE_DEVOPS,formType:g.rF.FLYOUT,formId:"YcyGxm",listId:J.A,name:"Ultimate DevOps Cert Guide",courseName:" Take me to DevOps training",source:"Ultimate DevOps Cert Guide Download Form (Embed)",downloadUrl:"http://www.canuseducation.com/?cert=blog/wp-content/uploads/2022/08/DevOps_Cert_Guide_CBT_Nuggets.pdf",promptUrl:"/it-training/devops",downloadButtonText:"Download Cert Guide",requiresOptIn:!0},{id:g.Im.CERT_GUIDE_VIRTUALIZATION,formType:g.rF.FLYOUT,formId:"RtbWj7",listId:J.A,name:"Ultimate Virtualization Cert Guide",courseName:" Take me to Virtualization training",source:"Ultimate Virtualization Cert Guide Download Form (Embed)",downloadUrl:"http://www.canuseducation.com/?cert=blog/wp-content/uploads/2022/12/Virtualization-Certification-Guide.pdf",promptUrl:"/it-training/it-paths",downloadButtonText:"Download Cert Guide",requiresOptIn:!0},{id:g.Im.CERT_GUIDE_PROJECT_MANAGEMENT,formType:g.rF.FLYOUT,formId:"TDkmsp",listId:J.A,name:"Ultimate Project Management Cert Guide",courseName:" Take me to Project Management training",source:"Ultimate Project Management Cert Guide Download Form (Embed)",downloadUrl:"http://www.canuseducation.com/?cert=blog/wp-content/uploads/2022/12/Project-Management-Certification-Guide-1.pdf",promptUrl:"/it-training/project-management",downloadButtonText:"Download Cert Guide",requiresOptIn:!0},{id:g.Im.CERT_GUIDE_TECH_SUPPORT,formType:g.rF.FLYOUT,formId:"TgNjUi",listId:J.A,name:"Ultimate Tech Support Cert Guide",courseName:" Take me to Tech Support training",source:"Ultimate Tech Support Cert Guide Download Form (Embed)",downloadUrl:"http://www.canuseducation.com/?cert=blog/wp-content/uploads/2022/12/Tech-Support-Certification-Guide.pdf",promptUrl:"/it-training/it-paths",downloadButtonText:"Download Cert Guide",requiresOptIn:!0},{id:g.Im.CERT_GUIDE_SYS_ADMIN,formType:g.rF.FLYOUT,formId:"UT2sEJ",listId:J.A,name:"Ultimate SysAdmin Cert Guide",courseName:" Take me to Systems Administration training",source:"Ultimate Systems Administration Cert Guide Download Form (Embed)",downloadUrl:"http://www.canuseducation.com/?cert=blog/wp-content/uploads/2022/12/Systems-Administration-Certification-Guide.pdf",promptUrl:"/it-training/it-paths",downloadButtonText:"Download Cert Guide",requiresOptIn:!0},{id:g.Im.CERT_GUIDE_SECURITY,formType:g.rF.FLYOUT,formId:"XeMnvH",listId:J.A,name:"Ultimate Security Cert Guide",courseName:" Take me to Security training",source:"Ultimate Security Cert Guide Download Form (Embed)",downloadUrl:"http://www.canuseducation.com/?cert=blog/wp-content/uploads/2022/09/Security-Certification-Guide.pdf",promptUrl:"/it-training/cyber-security",downloadButtonText:"Download Cert Guide",requiresOptIn:!0},{id:g.Im.CERT_GUIDE_NETWORKING,formType:g.rF.FLYOUT,formId:"YsNtAs",listId:J.A,name:"Ultimate Networking Cert Guide",courseName:" Take me to Networking training",source:"Ultimate Networking Cert Guide Download Form (Embed)",downloadUrl:"http://www.canuseducation.com/?cert=blog/wp-content/uploads/2022/12/Networking-Certification-Guide.pdf",promptUrl:"/it-training/networking",downloadButtonText:"Download Cert Guide",requiresOptIn:!0}],et=[{id:g.Im.CERT_GUIDE_CLOUD,formType:g.rF.POPUP,formId:"YbxEjz",listId:J.A,name:"Ultimate Cloud Cert Guide",courseName:"Take me to Cloud training",source:"Ultimate Cloud Cert Guide Download Form (Pop-Up)",downloadUrl:"http://www.canuseducation.com/?cert=blog/wp-content/uploads/2022/12/Cloud-Cert-Guide.pdf",promptUrl:"/certification-playlist/cloud",requiresOptIn:!0},{id:g.Im.CERT_GUIDE_DEVOPS,formType:g.rF.POPUP,formId:"R6UrMj",listId:J.A,name:"Ultimate DevOps Cert Guide",courseName:"Take me to DevOps training",source:"Ultimate DevOps Cert Guide Download Form (Pop-Up)",downloadUrl:"http://www.canuseducation.com/?cert=blog/wp-content/uploads/2022/08/DevOps_Cert_Guide_CBT_Nuggets.pdf",promptUrl:"/it-training/devops",requiresOptIn:!0},{id:g.Im.CERT_GUIDE_VIRTUALIZATION,formType:g.rF.POPUP,formId:"RZeZyh",listId:J.A,name:"Ultimate Virtualization Cert Guide",courseName:"Take me to Virtualization training",source:"Ultimate Virtualization Cert Guide Download Form (Pop-Up)",downloadUrl:"http://www.canuseducation.com/?cert=blog/wp-content/uploads/2022/12/Virtualization-Certification-Guide.pdf",promptUrl:"/it-training/it-paths",requiresOptIn:!0},{id:g.Im.CERT_GUIDE_PROJECT_MANAGEMENT,formType:g.rF.POPUP,formId:"W2ENqn",listId:J.A,name:"Ultimate Project Management Cert Guide",courseName:"Take me to Project Management training",source:"Ultimate Project Management Cert Guide Download Form (Pop-Up)",downloadUrl:"http://www.canuseducation.com/?cert=blog/wp-content/uploads/2022/12/Project-Management-Certification-Guide-1.pdf",promptUrl:"/it-training/project-management",requiresOptIn:!0},{id:g.Im.CERT_GUIDE_TECH_SUPPORT,formType:g.rF.POPUP,formId:"TeV6LC",listId:J.A,name:"Ultimate Tech Support Cert Guide",courseName:"Take me to Tech Support training",source:"Ultimate Tech Support Cert Guide Download Form (Pop-Up)",downloadUrl:"http://www.canuseducation.com/?cert=blog/wp-content/uploads/2022/12/Tech-Support-Certification-Guide.pdf",promptUrl:"/it-training/it-paths",requiresOptIn:!0},{id:g.Im.CERT_GUIDE_SYS_ADMIN,formType:g.rF.POPUP,formId:"W4Nyym",listId:J.A,name:"Ultimate SysAdmin Cert Guide",courseName:"Take me to Systems Administration training",source:"Ultimate Systems Administration Cert Guide Download Form (Pop-Up)",downloadUrl:"http://www.canuseducation.com/?cert=blog/wp-content/uploads/2022/12/Systems-Administration-Certification-Guide.pdf",promptUrl:"/it-training/it-paths",requiresOptIn:!0},{id:g.Im.CERT_GUIDE_SECURITY,formType:g.rF.POPUP,formId:"Sw6hHT",listId:J.A,name:"Ultimate Security Cert Guide",courseName:"Take me to Security training",source:"Ultimate Security Cert Guide Download Form (Pop-Up)",downloadUrl:"http://www.canuseducation.com/?cert=blog/wp-content/uploads/2022/09/Security-Certification-Guide.pdf",promptUrl:"/it-training/cyber-security",requiresOptIn:!0},{id:g.Im.CERT_GUIDE_NETWORKING,formType:g.rF.POPUP,formId:"Y3rWRq",listId:J.A,name:"Ultimate Networking Cert Guide",courseName:"Take me to Networking training",source:"Ultimate Networking Cert Guide Download Form (Pop-Up)",downloadUrl:"http://www.canuseducation.com/?cert=blog/wp-content/uploads/2022/12/Networking-Certification-Guide.pdf",promptUrl:"/it-training/networking",requiresOptIn:!0}];(0,H.Z)(ee);var er=[].concat((0,H.Z)(Q),(0,H.Z)(x.M),(0,H.Z)(ee),(0,H.Z)(et)),en=function(){return(0,y.jsxs)("div",{children:[(0,y.jsx)("h4",{children:"You are now subscribed!"}),(0,y.jsx)("p",{children:"Thank you and stay tuned for some cool emails! "})]})},eo=r(59499),ei=I.ZP.img.withConfig({displayName:"Logo",componentId:"sc-w36bue-0"})(["width:","px;"],function(e){var t;return null!==(t=e.$width)&&void 0!==t?t:100}),ea=function(e){var t=e.width;return(0,y.jsx)(ei,{src:"/assetshttps://www.cbtnuggets.com/images/klaviyo/klaviyo-form-logo.png",$width:t})},es=I.ZP.div.withConfig({displayName:"PostSubmissionContainer",componentId:"sc-x75u16-0"})(["text-align:center;min-height:285px;display:flex;flex-direction:column;align-items:center;justify-content:center;&&&{margin:3rem 0;}"]),el=I.ZP.div.withConfig({displayName:"DownloadButtonWrapper",componentId:"sc-x75u16-1"})(["margin:2rem 0;"]),ec=I.ZP.div.withConfig({displayName:"SubmissionInfoContainer",componentId:"sc-x75u16-2"})(["margin:2rem 0;p{margin:0.4rem 0;}"]),em=function(e){var t=e.downloadUrl,r=e.promptUrl,n=e.courseName,o=e.downloadButtonText;return(0,y.jsxs)(es,{children:[(0,y.jsx)(ea,{}),(0,y.jsxs)("div",{children:[(0,y.jsx)(el,{children:(0,y.jsx)("a",{href:t,target:"_blank",rel:"noreferrer",children:(0,y.jsx)(m.Z.Primary,{children:o})})}),(0,y.jsxs)(ec,{children:[(0,y.jsx)("p",{children:"We'll send a copy to your email shortly."}),(0,y.jsxs)("p",{children:["Ready to learn? ",(0,y.jsx)("a",{href:r,children:n}),"."," "]})]})]})]})},ed=I.ZP.form.withConfig({displayName:"FormInputWrapper",componentId:"sc-1dfmnai-0"})(["padding-inline:0.4rem;"]),eu=I.ZP.p.withConfig({displayName:"ErrorMessage",componentId:"sc-1dfmnai-1"})(["font-weight:bold;font-size:1.2rem;margin:0.5rem;color:",";"],function(e){return e.theme.red}),ep=(0,I.iv)(["margin-bottom:2rem;border-radius:5px;font-size:1.5rem;"]),ef=(0,I.ZP)(l.Z.Input).withConfig({displayName:"StyledInputField",componentId:"sc-1dfmnai-2"})(["",";"],ep),eh=(0,I.ZP)(l.Z.Select.Basic).withConfig({displayName:"StyledSelectField",componentId:"sc-1dfmnai-3"})(["",";cursor:pointer;color:",";"],ep,function(e){return e.$hasValue?e.theme.colors.primary:"rgba(0,0,0,0.5)"}),eg=(0,I.iv)(["flex-direction:column;width:100%;p{margin-bottom:2rem;max-width:unset;}"]),eb=(0,I.iv)(["flex-direction:row;p{margin-bottom:2rem;max-width:45%;}"]),e_=I.ZP.div.withConfig({displayName:"SubmitFormContainer",componentId:"sc-1dfmnai-4"})(["display:flex;align-items:center;margin-top:1.5rem;",";"],function(e){return e.$flexColumn?eg:eb}),ew=I.ZP.div.withConfig({displayName:"SubmitButtonWrapper",componentId:"sc-1dfmnai-5"})(["flex:1 0 0px;padding-left:3rem;display:flex;align-items:end;width:",";padding-left:","rem;button{width:100%;}"],function(e){return e.$flexColumn?"100%":"unset"},function(e){return e.$flexColumn?0:3}),ey=[{value:"I'm an IT pro looking to sharpen my skills or earn a certificate."},{value:"I lead an IT team and am looking for training resources."},{value:"I'm not an IT pro, but interested in entering the field."},{value:"Other"}],ev=function(e){var t=e.bestDescribes,r=e.error,n=e.flexColumn,o=e.submitButtonText,i=e.dropdownLabel,a=e.dropdownPlaceholderText,s=e.handleChange,l=e.handleSubmit;return(0,y.jsxs)(ed,{onSubmit:l,children:[(0,y.jsx)(ef,{required:!0,placeholder:"First name",name:"firstName",onChange:s,crossOrigin:""}),(0,y.jsx)(ef,{required:!0,placeholder:"Last name",name:"lastName",onChange:s,crossOrigin:""}),(0,y.jsx)(ef,{required:!0,placeholder:"Email",name:"email",type:"email",onChange:s,crossOrigin:""}),(0,y.jsxs)(eh,{label:i,$hasValue:!!t,name:"bestDescribes",onChange:s,children:[(0,y.jsx)("option",{children:null!=a?a:"What is your job role?"}),ey.map(function(e){return(0,y.jsx)("option",{value:e.value,children:e.value},e.value)})]}),r?(0,y.jsx)(eu,{children:r}):null,(0,y.jsxs)(e_,{$flexColumn:n,children:[(0,y.jsx)(X,{}),(0,y.jsx)(ew,{$flexColumn:n,children:(0,y.jsx)(m.Z.PrimaryLarge,{type:"submit",children:null!=o?o:"Submit"})})]})]})},eC=r(7013);function ex(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eI(e){for(var t=1;t630),O((null==r?void 0:r.bottom)<630)}},[]);return((0,a.useEffect)(function(){n(er.find(function(e){return e.id===g.Im.BLOG}))},[]),(0,a.useEffect)(function(){return window.addEventListener("scroll",T,!1),function(){window.removeEventListener("scroll",T)}},[T]),h)?null:(0,y.jsxs)(k,{ref:e,children:[(0,y.jsx)(C,{formId:null==r?void 0:r.formId}),(0,y.jsx)(R,{$isInStickyRange:w,$isFixedPosition:I,children:(0,y.jsxs)(A,{children:[(0,y.jsx)(M,{children:(0,y.jsx)(L,{onClick:function(){b(!0)}})}),(0,y.jsx)($,{$submitted:u,children:u?(0,y.jsx)(en,{}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Y,{children:"Don't miss out!"}),(0,y.jsxs)(z,{children:["Get great content ",(0,y.jsx)("br",{})," delivered to your inbox."]}),(0,y.jsxs)(B,{children:[(0,y.jsx)(W,{placeholder:"Email",type:"email",onChange:function(e){s(e.target.value)},crossOrigin:""}),c?(0,y.jsx)(V,{children:c}):null]}),(0,y.jsx)(X,{}),(0,y.jsx)(q,{onClick:function(){if(!N()(i))return m("Please enter a valid email address");(0,D.X)({formId:r.formId,email:i}).then(function(){p(!0),m(null)}).catch(function(){p(!0),m(null)})},children:"Subscribe"})]})})]})})]})},BlogEmbed:function(e){var t,r=e.formId,n=(0,a.useState)(),o=n[0],i=n[1],s=(0,a.useState)({email:"",firstName:"",lastName:"",bestDescribes:""}),l=s[0],c=s[1],m=(0,a.useState)(!1),d=m[0],p=m[1],h=(0,a.useState)(null),g=h[0],_=h[1];(0,a.useEffect)(function(){r&&w()},[r]);var w=(t=(0,u.Z)(f().mark(function e(){return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.M)({formId:r});case 2:i(e.sent);case 4:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)});return d?(0,y.jsx)(em,eI({},o)):(0,y.jsxs)(eO,{children:[(0,y.jsx)(C,{formId:null==o?void 0:o.formId}),(0,y.jsxs)(eT,{children:[null!=o&&o.formDescription?null:(0,y.jsx)(ej,{children:"Download"}),(0,y.jsx)(eP,{children:null==o?void 0:o.formName}),null!=o&&o.formDescription?(0,y.jsx)("p",{children:o.formDescription}):null]}),(0,y.jsx)(ev,{bestDescribes:l.bestDescribes,error:g,submitButtonText:null==o?void 0:o.submitButtonText,handleChange:function(e){c(function(t){return eI(eI({},t),{},(0,eo.Z)({},e.target.name,e.target.value))})},handleSubmit:function(e){if(e.preventDefault(),!(null!=l&&l.bestDescribes)){_("Please select an option");return}(0,D.X)(eI({formId:o.formId},l)).then(function(){var e="ultimate_cert_guide_download",t=(0,eo.Z)({},e,{});t[e].guide_id=null==o?void 0:o.id,t[e].guide_name=null==o?void 0:o.formName,t[e].job_title=null==l?void 0:l.bestDescribes,(0,eC.w)(e,t),_(null),p(!0)}).catch(function(){var e="ultimate_cert_guide_download",t=(0,eo.Z)({},e,{});t[e].guide_id=null==o?void 0:o.id,t[e].guide_name=null==o?void 0:o.formName,t[e].job_title=null==l?void 0:l.bestDescribes,(0,eC.w)(e,t),_(null),p(!0)})}})]})},StudyPlan:function(e){var t,r=e.formId,n=(0,a.useState)(),o=n[0],i=n[1],s=(0,a.useState)(!1),l=s[0],c=s[1],m=(0,a.useState)(null),d=m[0],p=m[1],h=(0,a.useState)({email:"",firstName:"",lastName:"",bestDescribes:""}),g=h[0],_=h[1];(0,a.useEffect)(function(){r&&w()},[r]);var w=(t=(0,u.Z)(f().mark(function e(){return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.M)({formId:r});case 2:i(e.sent);case 4:case"end":return e.stop()}},e)})),function(){return t.apply(this,arguments)}),v=function(e){_(function(t){return eG(eG({},t),{},(0,eo.Z)({},e.target.name,e.target.value))})},x=function(e){if(e.preventDefault(),!(null!=g&&g.bestDescribes)){p("Please select an option");return}(0,D.X)(eG({formId:o.formId},g)).finally(function(){p(null),c(!0)})};if(l){var I=eG(eG({},o),{},{onClickDownload:function(){var e="study_plan_download",t=(0,eo.Z)({},e,{});t[e].plan_id=null==o?void 0:o.courseName,t[e].plan_name=null==o?void 0:o.name,t[e].job_title=null==g?void 0:g.bestDescribes,(0,eC.w)(e,t)}});return(null==o?void 0:o.formId)===e$.SPEAK_IT?(0,y.jsx)(eZ,{}):(0,y.jsx)(eD,eG({},I))}return(null==o?void 0:o.formId)===e$.SPEAK_IT?(0,y.jsxs)(eR,{children:[(0,y.jsx)(C,{formId:null==o?void 0:o.formId}),(0,y.jsxs)(eA,{children:[(0,y.jsx)(eL,{children:null==o?void 0:o.name}),(0,y.jsx)("p",{children:null==o?void 0:o.formDescription})]}),(0,y.jsx)(ev,{flexColumn:!0,dropdownLabel:"Tell us about yourself",dropdownPlaceholderText:"Which of these sounds most like you?",bestDescribes:g.bestDescribes,error:d,handleChange:v,handleSubmit:x})]}):(0,y.jsxs)(eR,{children:[(0,y.jsx)(C,{formId:null==o?void 0:o.formId}),(0,y.jsxs)(eA,{children:[null!=o&&o.formDescription?null:(0,y.jsx)(eM,{children:"Download"}),(0,y.jsx)(eL,{children:null==o?void 0:o.name}),(0,y.jsx)("p",{children:null==o?void 0:o.formDescription})]}),(0,y.jsx)(ev,{flexColumn:!0,bestDescribes:g.bestDescribes,error:d,handleChange:v,handleSubmit:x})]})},CertClass:function(e){var t=e.formId,r=(0,a.useState)(e9),n=r[0],o=r[1],i=(0,a.useState)(""),s=i[0],l=i[1],c=(0,a.useState)(!1),d=c[0],u=c[1],p=(0,a.useState)(null),f=p[0],h=p[1],g=(0,a.useState)(!1),b=g[0],_=g[1],w=function(e){var t=e.target.name;o(function(r){return e6(e6({},r),{},(0,eo.Z)({},t,e.target.value))})},v=function(){return u(!d)};return b?(0,y.jsxs)(ez,{children:[(0,y.jsxs)(eB,{children:[(0,y.jsx)("h3",{children:"Congrats on making the commitment!"}),(0,y.jsx)("p",{children:"Check your email for a confirmation message."})]}),(0,y.jsx)(e0,{children:(0,y.jsx)(e1,{href:"/certification-playlist",children:"Explore certifications"})})]}):(0,y.jsx)(ez,{children:(0,y.jsxs)(eB,{children:[(0,y.jsx)("h2",{children:"Commit to train"}),(0,y.jsxs)(eW,{onSubmit:function(e){if(e.preventDefault(),!s)return h("Please select an option");e5(e6(e6({},n),{},{optIn:d,bestDescribes:s,formId:t})),_(!0)},children:[(0,y.jsxs)(eq,{children:[(0,y.jsx)(eV,{required:!0,placeholder:"First name",type:"text","aria-label":"First name",name:"firstName",onChange:w}),(0,y.jsx)(eV,{required:!0,placeholder:"Last name",type:"text","aria-label":"First name",name:"lastName",onChange:w})]}),(0,y.jsx)(eq,{children:(0,y.jsx)(eV,{required:!0,placeholder:"Enter your email address",type:"email",autoComplete:"email",name:"email",onChange:w})}),(0,y.jsxs)(eq,{children:[(0,y.jsxs)(eK,{required:!0,$hasValue:!!s,name:"bestDescribes",onChange:function(e){f&&h(null),l(e.target.value)},children:[(0,y.jsx)("option",{children:"Which of these sound most like you?"}),eY.map(function(e){return(0,y.jsx)("option",{value:e.value,children:e.value},e.value)})]}),f?(0,y.jsx)(eX,{children:f}):null]}),(0,y.jsxs)(eH,{children:[(0,y.jsx)(eJ,{type:"checkbox",checked:d,onClick:v}),(0,y.jsx)("div",{onClick:v,role:"button",children:"I agree to have my name added to the CBT Nuggets Cert Class of 2024 list. (optional)"})]}),(0,y.jsxs)(eQ,{children:[(0,y.jsx)("p",{children:"We use email and targeted online advertising to send you product and services updates, promotional offers and other marketing communications based on the information we collect about you, such as your email address, general location, and purchase and website browsing history."}),(0,y.jsxs)("p",{children:["We process your personal data as stated in our ",(0,y.jsx)("a",{href:"/privacy",children:"Privacy Policy"}),". You may withdraw your consent or manage your preferences at any time by clicking the unsubscribe link at the bottom of any of our marketing emails, or by emailing us at"," ",(0,y.jsx)("a",{href:"mailto:support@cbtnuggets.com",children:"support@cbtnuggets.com"}),"."]})]}),(0,y.jsx)("div",{children:(0,y.jsx)(m.Z.PrimaryLarge,{type:"submit",children:"Submit"})})]})]})})}}},84057:function(e,t,r){r.d(t,{X:function(){return x}});var n,o,i,a=r(59499),s=r(50029),l=r(64687),c=r.n(l),m=r(6154),d=r(89543),u=function(e){var t=e.firstName,r=e.lastName,n=e.bestDescribes;return t?{$first_name:t,$last_name:r,best_describes:n}:null},p=r(31698);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t