"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6223],{98083:function(e,n,t){t.d(n,{Z:function(){return u}}),t(67294);var i=t(97500),r=t(27717),a=t(53418),o=t(85893),l=function(){return(0,o.jsx)("svg",{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"m17 12v-9a1 1 0 0 0 -1-1h-13a1 1 0 0 0 -1 1v14l4-4h10a1 1 0 0 0 1-1m4-6h-2v9h-13v2a1 1 0 0 0 1 1h11l4 4v-15a1 1 0 0 0 -1-1z",fill:"#0f62fa"})})},s=function(){return(0,o.jsx)("svg",{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"m6.62 10.79c1.44 2.83 3.76 5.15 6.59 6.59l2.2-2.2c.28-.28.67-.36 1.02-.25 1.12.37 2.32.57 3.57.57a1 1 0 0 1 1 1v3.5a1 1 0 0 1 -1 1 17 17 0 0 1 -17-17 1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02z",fill:"#0f62fa"})})},c=t(15410),u=function(e){var n=e.phone,t=e.heading,u=e.extraText;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(c.MZ,{children:[t&&(0,o.jsx)("h3",{children:t}),u&&(0,o.jsx)("p",{children:u})]}),(0,o.jsxs)(c.qk,{children:[(0,o.jsxs)(c.BE,{"aria-label":"Start a live chat",children:[(0,o.jsx)(l,{"aria-hidden":!0}),(0,o.jsx)(r.Z.Standard,{onClick:i.B,"data-at":"liveChatButton",children:"Start a live chat"})]}),(0,o.jsxs)(c.BE,{"aria-label":"Call our US phone number",children:[(0,o.jsx)(s,{"aria-hidden":!0}),n?(0,o.jsx)(a.l7,{"aria-label":"Contact Learner Support",href:"tel:".concat(n),"data-at":"cbtPhoneNumber",children:n}):(0,o.jsx)(c.v5,{children:(0,o.jsx)(a.l7,{"aria-label":"Contact Learner Support",href:"tel:+15412845522","data-at":"cbtPhoneNumber",children:"US: +1-541-284-5522"})})]})]})]})}},15410:function(e,n,t){t.d(n,{BE:function(){return s},MZ:function(){return o},pf:function(){return a},qR:function(){return r},qk:function(){return l},v5:function(){return c}});var i=t(87379),r=i.ZP.article.withConfig({displayName:"ContactFormContainer",componentId:"sc-ts6mof-0"})(["display:flex;flex-direction:column;align-items:center;width:100%;"]),a=i.ZP.p.withConfig({displayName:"FormDescription",componentId:"sc-ts6mof-1"})(["font-size:",";max-width:66.7rem;text-align:center;"],function(e){return e.theme.fonts.textStandard}),o=i.ZP.div.withConfig({displayName:"IconHeader",componentId:"sc-ts6mof-2"})(["margin:0 auto;text-align:center;h2,h3{margin-bottom:0;}p{margin:0;}"]),l=i.ZP.div.withConfig({displayName:"IconContainer",componentId:"sc-ts6mof-3"})(["display:flex;align-items:flex-start;justify-content:center;gap:20px;width:100%;max-width:63.7rem;margin:2rem auto 0 auto;@media only screen and (max-width:","){flex-direction:column;}"],function(e){return e.theme.tablet}),s=i.ZP.div.withConfig({displayName:"IconElement",componentId:"sc-ts6mof-4"})(["display:flex;flex-direction:column;align-items:center;font-size:",";font-weight:",";img{margin-bottom:1rem;}button{font-family:",";font-weight:",";font-size:",";}@media only screen and (max-width:","){margin:3rem auto;}"],function(e){return e.theme.fonts.textLarge},function(e){return e.theme.fonts.boldWeight},function(e){return e.theme.fontFamily},function(e){return e.theme.fonts.boldWeight},function(e){return e.theme.fonts.textLarge},function(e){return e.theme.breakpoints.tablet}),c=i.ZP.div.withConfig({displayName:"PhoneNumberContainer",componentId:"sc-ts6mof-5"})(["display:flex;flex-direction:column;align-items:center;a{margin-bottom:0.3rem;}"])},76223:function(e,n,t){t.r(n),t.d(n,{default:function(){return _}});var i=t(67294),r=t(39412),a=t(98083),o=t(15410),l=t(75077),s=t(50029),c=t(64687),u=t.n(c),d=t(6154),m=t(99050),h=t(52974),f=t(53418),g=t(67686),p=t(87379),x=(0,p.ZP)(m.l0).withConfig({displayName:"FormLayout",componentId:"sc-cx0j12-0"})(["text-align:left;width:100%;display:flex;flex-direction:column;@media only screen and (max-width:","){padding:0 2rem;}@media only screen and (max-width:","){grid-template-columns:1fr;display:grid;grid-gap:1rem 2rem;padding:0 0;}"],function(e){return e.theme.breakpoints.desktop960},function(e){return e.theme.breakpoints.smtablet}),j=p.ZP.div.withConfig({displayName:"InputSectionWrapper",componentId:"sc-cx0j12-1"})(["display:flex;align-items:center;gap:2rem;@media only screen and (max-width:","){display:grid;grid-template-columns:1fr 1fr;}"],function(e){return e.theme.breakpoints.desktop960}),v=p.ZP.div.withConfig({displayName:"NotificationBox",componentId:"sc-cx0j12-2"})(["margin-top:3rem;text-align:left;"]),y=p.ZP.div.withConfig({displayName:"InputContainer",componentId:"sc-cx0j12-3"})(["padding:1rem 0;width:-webkit-fill-available;label{text-align:left;font-size:",";}input,select{width:100%;padding-bottom:1rem;&:focus{border:1px solid #0f62fa;}}input[type='checkbox'],input[type='radio']{margin-right:1.5rem;width:auto;}"],function(e){return e.theme.fonts.textSmall}),b=p.ZP.label.withConfig({displayName:"OptInContainer",componentId:"sc-cx0j12-4"})(["grid-column:1 / 3;display:flex;align-items:center;font-size:",";margin-top:2rem;input[type='checkbox']{margin-right:1rem;min-width:3rem;}@media only screen and (max-width:","){grid-column:1 / 1;}"],function(e){return e.theme.fonts.textSmall},function(e){return e.theme.breakpoints.smtablet}),w=p.ZP.div.withConfig({displayName:"SubmitContainer",componentId:"sc-cx0j12-5"})(["grid-column:1 / 3;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0 auto 2rem auto;max-width:36rem;p{font-size:",";text-align:center;}@media only screen and (max-width:","){grid-column:1 / 1;}"],function(e){return e.theme.fonts.textSmall},function(e){return e.theme.breakpoints.smtablet}),C=p.ZP.span.withConfig({displayName:"ErrorMessage",componentId:"sc-cx0j12-6"})(["display:inline-block;color:",";font-size:",";padding-top:1rem;"],function(e){return e.theme.colors.red},function(e){return e.theme.fonts.textSmall}),N=p.ZP.div.withConfig({displayName:"PhoneExtensionContainer",componentId:"sc-cx0j12-7"})(["display:flex;.mod-phone{flex:6.3;}.mod-extension{padding-left:1.2rem;flex:4;}"]),Z=t(17811),k=t(76351),I=t(63505),P=t(96018),S=t(63570),B=t(85893),O=h.Ry().shape({firstName:h.Z_().test("is-special-character","Names cannot contain numbers or special characters.",function(e){return/^[a-zA-Z*\s]+$/.test(e)}).required("Please enter your first name."),lastName:h.Z_().test("is-special-character","Names cannot contain numbers or special characters.",function(e){return/^[a-zA-Z*\s]+$/.test(e)}).required("Please enter your last name."),email:h.Z_().email("Please enter a valid email address.").required("Please enter your email address."),phone:h.Z_().test("is-number-phone","The phone number is not valid. +1 (123)456-7890",function(e){return/^[-+() 0-9]+$/.test(e)}).required("Please enter your phone number.")}),L=function(e){var n=e.formTitle,t=e.pageLocation,r=e.formName,a=e.submitButtonLarge,o=e.dataAt,l=(0,i.useState)("inital"),c=l[0],h=l[1],p=(0,i.useRef)(null),L=(0,i.useRef)(null),_=(0,i.useRef)(null),T=(0,i.useRef)(null),z=(0,i.useRef)(null),E=(0,i.useRef)(null),R=(0,i.useRef)(null),F=(0,i.useRef)(null),q=(0,i.useState)(),A=q[0],M=q[1];return"complete"===c?null:"pending"===c?(0,B.jsx)(v,{children:(0,B.jsx)(Z.Z,{})}):"success"===c?(0,B.jsx)(v,{children:(0,B.jsxs)(k.Z.Success,{visible:!0,onClose:function(){return h("inital")},children:[(0,B.jsxs)(k.Z.Body,{children:[(0,B.jsx)("p",{children:(0,B.jsx)("strong",{children:"Thank you for contacting us."})}),(0,B.jsx)("p",{children:"A member of our team will get back to you as soon as possible."})]}),(0,B.jsx)(k.Z.CloseButton,{onClick:function(){return h("complete")}})]})}):"error"===c?(0,B.jsx)(v,{children:(0,B.jsxs)(k.Z.Error,{visible:!0,onClose:function(){return h("inital")},children:[(0,B.jsx)(k.Z.Body,{children:(0,B.jsxs)("p",{children:[(0,B.jsx)("strong",{children:"There was an error submitting the form"}),", please refresh the page to try again."]})}),(0,B.jsx)(k.Z.CloseButton,{onClick:function(){return h("initial")}})]})}):(0,B.jsx)(m.J9,{initialValues:{firstName:"",lastName:"",email:"",phone:"",course:"",department:"sales",gatrackid:"",gaclientid:"",gacampaign:"",gamedium:"",gasource:"",gauserid:"",optin:!1,formName:"",ext:""},validationSchema:O,onSubmit:function(e){var i=e.email,a=e.firstName,o=e.lastName,l=e.phone,c=e.course,m=e.gatrackid,f=e.gaclientid,p=e.gacampaign,x=e.gamedium,j=e.gasource,v=e.gauserid,y=e.optin,b=e.ext;if(h("pending"),A||(null==b?void 0:b.length)>20)return h("success");(0,d.Z)({method:"POST",url:"".concat(g.yh,"/contact_us"),headers:{"Content-Type":"applicationhttps://www.cbtnuggets.com/json"},data:{email:"".concat(i.trim()),phone:"".concat(l.trim()),quantity:"1",first_name:"".concat(a.trim()),last_name:"".concat(o.trim()),form_name:r,location:t,department:"sales",gatrackid:m,gaclientid:f,gacampaign:p,gamedium:x,gasource:j,gauserid:v,optin:"".concat(y),subject:"".concat(n),ext:"".concat(b),referrer:document.referrer,formName:"Active Military Contact Form",company:"Active Military",message:"Course interest: ".concat(c,"\n"),campaignIds:p}}).then(function(){return h("success")}).then((0,s.Z)(u().mark(function e(){return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:window.dataLayer.push({event:"formSubmission",enhanced_conversion_data:{email:"".concat(i.trim())}});case 1:case"end":return e.stop()}},e)}))).catch(function(){return h("error")})},children:function(e){var n=e.errors,t=e.touched,i=e.handleBlur,r=e.values,l=e.handleChange,s=e.setFieldValue,c=e.isSubmitting,u=function(){if(null!==_.current&&null!==T.current&&null!==z.current&&null!==E.current&&null!==F.current&&null!==R.current){var e="undefined"!==_.current.value?_.current.value:null,n="undefined"!==T.current.value?T.current.value:null,t="undefined"!==z.current.value?z.current.value:null,i="undefined"!==E.current.value?E.current.value:null,r="undefined"!==F.current.value?F.current.value:null,a="undefined"!==R.current.value?R.current.value:null;s("gaclientid",e),s("gacampaign",n),s("gamedium",t),s("gasource",i),s("gauserid",r),s("gatrackid",a)}},d=function(e,n){s(e,n.target.checked),u()};return(0,B.jsxs)(x,{children:[(0,B.jsx)("input",{type:"hidden",name:"gaCid",id:"gaCid",ref:p}),(0,B.jsx)("input",{type:"hidden",name:"gaHid",id:"gaHid",ref:L}),(0,B.jsx)("input",{type:"hidden",name:"gaclientid",id:"gaclientid",ref:_}),(0,B.jsx)("input",{type:"hidden",name:"gacampaign",id:"gacampaign",ref:T}),(0,B.jsx)("input",{type:"hidden",name:"gamedium",id:"gamedium",ref:z}),(0,B.jsx)("input",{type:"hidden",name:"gasource",id:"gasource",ref:E}),(0,B.jsx)("input",{type:"hidden",name:"gatrackid",id:"gatrackid",ref:R}),(0,B.jsx)("input",{type:"hidden",name:"gauserid",id:"gauserid",ref:F}),(0,B.jsxs)(j,{children:[(0,B.jsxs)(y,{children:[(0,B.jsx)(I.Z.Input,{label:"First name",id:"firstName",name:"firstName",type:"text",maxLength:50,onBlur:i,value:r.firstName,onChange:l,crossOrigin:""}),t.firstName&&n.firstName&&(0,B.jsxs)(C,{children:[" ",n.firstName," "]})]}),(0,B.jsxs)(y,{children:[(0,B.jsx)(I.Z.Input,{label:"Last name",id:"lastName",name:"lastName",type:"text",maxLength:50,onBlur:i,value:r.lastName,onChange:l,crossOrigin:""}),t.lastName&&n.lastName&&(0,B.jsxs)(C,{children:[" ",n.lastName," "]})]})]}),(0,B.jsxs)(y,{children:[(0,B.jsx)(I.Z.Input,{label:"Email",name:"email",type:"email",maxLength:50,onChange:l,onBlur:i,value:r.email,crossOrigin:""}),t.email&&n.email&&(0,B.jsxs)(C,{children:[" ",n.email," "]})]}),(0,B.jsxs)(N,{children:[(0,B.jsxs)(y,{className:"mod-phone",children:[(0,B.jsx)(I.Z.Input,{label:"Phone",name:"phone",type:"phone",maxLength:70,onChange:l,onBlur:i,value:r.phone,crossOrigin:""}),t.phone&&n.phone&&(0,B.jsxs)(C,{children:[" ",n.phone," "]})]}),(0,B.jsx)(y,{className:"mod-extension",children:(0,B.jsx)(I.Z.Input,{label:"Ext. (opt)",name:"ext",type:"text",maxLength:30,onChange:l,onBlur:i,value:r.ext,crossOrigin:""})})]}),(0,B.jsxs)(y,{children:[(0,B.jsx)(I.Z.Input,{label:"Which course are you interested in?",name:"course",type:"text",onChange:l,onBlur:i,value:r.course,crossOrigin:""}),t.course&&n.course&&(0,B.jsxs)(C,{children:[" ",n.course," "]})]}),(0,B.jsxs)(b,{children:[(0,B.jsx)(I.Z.Checkbox,{name:"optIn",id:"optIn",onChange:function(e){return d("optin",e)},"aria-label":"Opt into CBT Nuggets news and resources emailer.",crossOrigin:""}),"Send me CBT Nuggets IT training news and resources. (optional)"]}),(0,B.jsx)(S.R5,{tabIndex:-1,onChange:function(e){return M(e.target.value)}}),(0,B.jsxs)(w,{children:[(0,B.jsxs)("p",{children:["By submitting this form you agree that you have read, understood, and are able to consent to our"," ",(0,B.jsx)(f.l7,{href:"/privacy",children:"privacy policy"}),"."]}),a?(0,B.jsx)(P.Z.PrimaryLarge,{"aria-label":"Submit form",type:"submit","data-at":null!=o?o:"signup-form-submit",disabled:c,children:"Submit"}):(0,B.jsx)(P.Z.Primary,{"aria-label":"Submit form",type:"submit","data-at":null!=o?o:"signup-form-submit",disabled:c,children:"Submit"})]})]})}})},_=function(e){var n=e.formTitle,t=e.copy,s=e.phone,c=e.pageLocation,u=e.salesforceFormName,d=e.showContactIcons,m=u&&u.length>0?u:"business_lander",h=(0,i.useMemo)(function(){return l.h.includes(m)?(0,B.jsx)(L,{formTitle:n,pageLocation:c,formName:m}):(0,B.jsx)(r.default,{formTitle:n,pageLocation:c,formName:m})},[m]);return(0,B.jsxs)(o.qR,{id:"contact-form",children:[(0,B.jsx)("h2",{className:"underline",children:n}),t&&(0,B.jsx)(o.pf,{children:t}),h,(void 0===d||d)&&(0,B.jsx)(a.Z,{phone:s})]})}},75077:function(e,n,t){t.d(n,{h:function(){return h}});var i=t(59499),r=t(67294),a=t(47578),o=t(12549),l=t(74129),s=t(17643),c=t(17037),u=t(53418),d=t(85893);function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}var h=["active-military-contact-form"];n.Z=function(e){var n,t,f,g=e.lcrAlignment,p=e.bgColor,x=e.bgImage,j=e.image,v=e.richText,y=e.textColor,b=e.ctaButtons,w=e.stackCtas,C=null!==(n=null==j?void 0:j.fields)&&void 0!==n?n:{},N=C.title,Z=C.file,k=C.description,I=null==x||null===(t=x.fields)||void 0===t||null===(t=t.file)||void 0===t?void 0:t.url,P=null==v||null===(f=v.content)||void 0===f?void 0:f.find(function(e){var n;return h.includes(null==e||null===(n=e.data)||void 0===n||null===(n=n.target)||void 0===n||null===(n=n.fields)||void 0===n?void 0:n.slug)}),S=(0,r.useMemo)(function(){var e;return P?function(e){for(var n=1;n0&&(0,d.jsx)(s.o3,{stackButtons:w?1:0,children:b.map(function(e){var n=e.sys.id;return(0,d.jsx)(c.default,{fields:e.fields},n)})})]})}},17643:function(e,n,t){t.d(n,{Lr:function(){return s},c_:function(){return c},o3:function(){return u},sV:function(){return l}});var i,r=t(87379),a=((i=a||{}).center="Center",i.right="Right",i.left="Left",i),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(e){case a.center:return(0,r.iv)(["text-align:center;margin-left:auto;margin-right:auto;justify-content:center;"]);case a.right:return(0,r.iv)(["text-align:right;margin-left:auto;margin-right:0;justify-content:end;"]);case a.left:default:return(0,r.iv)(["text-align:left;margin-left:0;margin-right:auto;justify-content:start;"])}},l=r.ZP.div.withConfig({displayName:"StyledLanderColumnInner",componentId:"sc-1j3athg-0"})(["display:flex;flex-direction:column;border-radius:10px;background-color:",";"," > *{margin-bottom:10px;",";&:last-child{margin-bottom:0;}}"],function(e){return(null==e?void 0:e.bgColor)||"transparent"},function(e){return e.bgImage&&(0,r.iv)(["background-image:url(",");background-position:center;background-size:cover;@media (max-width:","){min-height:400px;}@media (max-width:","){min-height:300px;}"],e.bgImage,function(e){return e.theme.desktop990},function(e){return e.theme.phone})},function(e){return o(null==e?void 0:e.lcrAlignment)}),s=r.ZP.section.withConfig({displayName:"StyledLanderColumnWrapperImage",componentId:"sc-1j3athg-1"})(["img{max-width:100%;}"]),c=r.ZP.section.withConfig({displayName:"StyledLanderColumnText",componentId:"sc-1j3athg-2"})(["color:",";max-width:100%;width:100%;white-space:pre-wrap;> *{max-width:100%;color:inherit;margin:15px 0;}h2{font-size:32px;line-height:36px;}h1,h2,h3,h4,h5,h6{margin-top:1rem;}p{margin-top:0;}"],function(e){return(null==e?void 0:e.textColor)||"black"}),u=r.ZP.section.withConfig({displayName:"StyledLanderColumnStackButtons",componentId:"sc-1j3athg-3"})(["display:flex;flex-direction:",";width:fit-content;flex-wrap:wrap;gap:2rem;> *{width:fit-content;text-align:center;}"],function(e){return null!=e&&e.stackButtons?"column":"unset"})}}]);