(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8546],{41011:function(e,n,t){"use strict";t.d(n,{i:function(){return i}});var i=function(){var e,n,t,i,r=null!==(e=JSON.parse(localStorage.getItem("cbtauth")))&&void 0!==e?e:null;return{logged_in:null!==(n=null==r?void 0:r.loggedIn)&&void 0!==n&&n,user_id:null!==(t=null==r?void 0:r.userId)&&void 0!==t?t:"",member_id:null!==(i=null==r?void 0:r.userId)&&void 0!==i?i:""}}},67619:function(e,n,t){"use strict";t.d(n,{U:function(){return l}});var i,r=t(50029),a=t(64687),o=t.n(a),s=t(87066),l=(i=(0,r.Z)(o().mark(function e(n){var t,i;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.email,e.next=3,s.Z.post("/api/ga/hash-form-values",{email:t});case 3:return i=e.sent.data.hashedEmail,e.abrupt("return",{hashedEmail:i});case 6:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)})},83029:function(e,n,t){"use strict";t.d(n,{W:function(){return b}});var i,r,a=t(50029),o=t(59499),s=t(64687),l=t.n(s),c=t(87066);t(83454).env.REVALIDATION_IN_SECONDS;var d=((i={}).UTM_FIRST="utm_first",i.UTM_LAST="utm_last",i.FIRST_PAGE_VIEW="first_page",i.REFERRER_FIRST="referrer",i),u=t(17674),m=t(83618),p=function(e){var n=document.cookie.split("; ").find(function(n){return n.startsWith(e+"=")});return n?n.split("=").slice(1).join("="):null};function f(e){if(!e)return null;try{return JSON.parse(decodeURIComponent(e))}catch(e){return null}}var h=function(){var e={},n=document.cookie.split("; "),t=Object.values(d);return n.forEach(function(n){var i=n.split("="),r=(0,m.Z)(i),a=r[0],o=r.slice(1);t.includes(a.trim())&&(e[a]=decodeURIComponent(o.join("=")))}),e},g=function(e){var n={};if(!e)return n;var t=function(e){try{var n=JSON.parse(e);return"object"==typeof n&&null!==n?n:null}catch(e){return null}},i=function(e,n){for(var t={},i=0,r=Object.entries(e);i0&&Object.assign(n,i(m,d.UTM_LAST))}}else a&&!r&&Object.assign(n,i(a,d.UTM_LAST));for(var y=[d.FIRST_PAGE_VIEW,d.REFERRER_FIRST],b=0;b;:[\]]{1,50}$/.test(e)}).required("Please enter your first name."),lastName:q.Z_().test("is-special-character","Please enter a valid name",function(e){return/^[\w'\-,.][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*(){}|~<>;:[\]]{1,50}$/.test(e)}).required("Please enter your last name."),title:q.Z_().required("Please select a title."),email:q.Z_().email("Please enter a valid email address.").required("Please enter your email address."),phone:q.Z_().test("is-number-phone","The phone number is not valid. +1 (123)456-7890",function(e){return!e||/^[-+() 0-9]+$/.test(e)}),company:q.Z_(),country:q.Z_().required("Please select your country."),quantity:q.Z_().required("Please select an option.")}),ee=i.ZP.div.withConfig({displayName:"RightSection",componentId:"sc-1ccpni0-0"})(["flex:1;padding:6rem 4rem;background:#d9ebf5;display:flex;flex-direction:column;justify-content:flex-start;padding-top:4rem;@media (max-width:820px){padding:4rem 0rem;}"]),en=i.ZP.div.withConfig({displayName:"FormContainer",componentId:"sc-1ccpni0-1"})(["@media (max-width:820px){max-width:80%;margin:0 auto;}"]),et=i.ZP.label.withConfig({displayName:"Label",componentId:"sc-1ccpni0-2"})(["display:block;margin-bottom:0.5rem;color:#374151;font-weight:",";"],function(e){return e.$bold?"600":"500"}),ei=i.ZP.div.withConfig({displayName:"RadioGroup",componentId:"sc-1ccpni0-3"})(["display:flex;flex-direction:column;margin-top:2rem;@media (max-width:480px){flex-direction:column;gap:0.5rem;}"]),er=i.ZP.div.withConfig({displayName:"RadioOptions",componentId:"sc-1ccpni0-4"})(["display:flex;gap:1rem;align-items:center;gap:4rem;"]),ea=i.ZP.label.withConfig({displayName:"RadioOption",componentId:"sc-1ccpni0-5"})(["display:flex;align-items:center;gap:0.5rem;cursor:pointer;color:#4a5568;"]),eo=(0,i.ZP)(U.Z.Primary).withConfig({displayName:"SubmitButton",componentId:"sc-1ccpni0-6"})(["width:100%;padding:12px;font-weight:600;margin-top:1rem;max-width:200px;@media (max-width:820px){align-self:center;}"]),es=(0,i.ZP)(F.l0).withConfig({displayName:"FormWrapper",componentId:"sc-1ccpni0-7"})(["display:flex;flex-direction:column;gap:2rem 10px;"]),el=i.ZP.input.withConfig({displayName:"HoneypotInput",componentId:"sc-1ccpni0-8"})(["opacity:0;position:absolute;top:0;left:0;height:0;width:0;z-index:-1;"]),ec=i.ZP.p.withConfig({displayName:"PrivacyPolicy",componentId:"sc-1ccpni0-9"})(["font-size:1.2rem;line-height:1.67;"]),ed={firstName:"",lastName:"",email:"",title:"",company:"",country:"United States",phone:"",quantity:"",department:"sales",gatrackid:"",gaclientid:"",gacampaign:"",gamedium:"",gasource:"",gauserid:"",optin:!1,formName:"",ext:""},eu=function(){var e,n=(0,L.useState)("none"),t=n[0],i=n[1],r=(0,L.useState)(null),a=r[0],o=r[1],s=(0,L.useRef)(null),l=(0,L.useRef)(null),c=(0,L.useRef)(null),d=(0,L.useRef)(null),u=(0,L.useRef)(null),p=(0,L.useRef)(null),f=(0,L.useRef)(null),h=(0,L.useRef)(null),g=(e=(0,T.Z)(E().mark(function e(n){var t,r,o,s,l,c,d,u,m,p,f,h,g,x,y,b,v,w,j,I,C,P,N;return E().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i("submitting"),!a){e.next=3;break}return e.abrupt("return",i("success"));case 3:return e.prev=3,r=n.company,o=n.email,s=n.firstName,l=n.lastName,c=n.phone,d=n.quantity,u=n.title,m=n.department,p=n.gatrackid,f=n.gaclientid,h=n.gacampaign,g=n.gamedium,x=n.gasource,y=n.gauserid,b=n.optin,e.next=7,(0,M.W)();case 7:return v=e.sent,e.next=10,(0,A.od)("/api/ga/geo");case 10:return w=e.sent.data.country,e.next=14,(0,A.od)({method:"POST",url:"".concat(G.yh,"/contact_us"),headers:{"Content-Type":"applicationhttps://www.cbtnuggets.com/json"},data:Y({title:u,company:"".concat(null==r?void 0:r.trim()),country:"".concat(null==w?void 0:w.trim()),email:"".concat(null==o?void 0:o.trim()),phone:"".concat(null==c?void 0:c.trim()),quantity:d,first_name:"".concat(null==s?void 0:s.trim()),last_name:"".concat(null==l?void 0:l.trim()),form_name:"contact_sales",location:"features-lander",department:m,gatrackid:p,gaclientid:f,gacampaign:h,gamedium:g,gasource:x,gauserid:y,optin:"".concat(b),subject:"Talk to Sales",referrer:document.referrer,formName:"Contact Sales",campaignIds:h,page_url:window.location.href},v)});case 14:return i("success"),window.dataLayer.push({event:"formSubmission",enhanced_conversion_data:{email:"".concat(o.trim())}}),j="contact_sales_form",t={},(0,S.Z)(t,j,{}),(0,S.Z)(t,"membership",{}),I=t,C=(0,z.i)(),e.next=21,A.od.post("/api/request-ip");case 21:return P=e.sent.data,e.next=25,(0,W.U)({email:o});case 25:if(N=e.sent.hashedEmail,I.membership=Y(Y({},C),{},{email:N,ipaddress:P}),I[j].phone=c,I[j].email=N,I[j].first_name=s,I[j].last_name=l,I[j].country=w,I[j].job_title=u,I[j].company=r,I[j].number_of_employees=d,(0,D.w)(j,I),!b){e.next=40;break}return e.next=40,A.od.post("/api/klaviyo/create-profile",{email:o,firstName:s,lastName:l,metadata:Y(Y(Y(Y(Y({source:"contact_sales_form",referrer:document.referrer},h&&{campaignIds:h}),f&&{clientId:f}),g&&{medium:g}),y&&{userId:y}),p&&{trackId:p})},{headers:{"Content-Type":"applicationhttps://www.cbtnuggets.com/json","klaviyo-profile-key":"c2985f7b-09db-4d47-8e05-70e23e32d662"}});case 40:e.next=48;break;case 42:return e.prev=42,e.t0=e.catch(3),console.error("Error submitting form:",e.t0),console.log("Form values were:",e.t0),i("error"),e.abrupt("return");case 48:case"end":return e.stop()}},e,null,[[3,42]])})),function(n){return e.apply(this,arguments)}),x=(0,L.useMemo)(function(){return"submitting"===t},[t]);return(0,m.jsx)(ee,{children:(0,m.jsxs)(en,{children:[(0,m.jsx)("input",{type:"hidden",name:"gaCid",id:"gaCid",ref:s}),(0,m.jsx)("input",{type:"hidden",name:"gaHid",id:"gaHid",ref:l}),(0,m.jsx)("input",{type:"hidden",name:"gaclientid",id:"gaclientid",ref:c}),(0,m.jsx)("input",{type:"hidden",name:"gacampaign",id:"gacampaign",ref:d}),(0,m.jsx)("input",{type:"hidden",name:"gamedium",id:"gamedium",ref:u}),(0,m.jsx)("input",{type:"hidden",name:"gasource",id:"gasource",ref:p}),(0,m.jsx)("input",{type:"hidden",name:"gatrackid",id:"gatrackid",ref:f}),(0,m.jsx)("input",{type:"hidden",name:"gauserid",id:"gauserid",ref:h}),(0,m.jsx)(F.J9,{initialValues:ed,validationSchema:Q,onSubmit:g,children:function(e){var n=e.values,i=e.handleChange,r=e.handleBlur,a=e.setFieldValue,s=e.errors,l=e.touched,g=function(){if(null!==c.current&&null!==d.current&&null!==u.current&&null!==p.current&&null!==h.current&&null!==f.current){var e="undefined"!==c.current.value?c.current.value:null,n="undefined"!==d.current.value?d.current.value:null,t="undefined"!==u.current.value?u.current.value:null,i="undefined"!==p.current.value?p.current.value:null,r="undefined"!==h.current.value?h.current.value:null,o="undefined"!==f.current.value?f.current.value:null;a("gaclientid",e),a("gacampaign",n),a("gamedium",t),a("gasource",i),a("gauserid",r),a("gatrackid",o)}},y=function(e,n){a(e,n.target.checked),g()};return(0,m.jsxs)(es,{children:[(0,m.jsxs)($,{children:[(0,m.jsxs)(V,{required:!0,flex:!0,children:[(0,m.jsx)(et,{children:"First Name"}),(0,m.jsx)(B.Z.Input,{name:"firstName",disabled:"success"===t,onChange:i,onBlur:r,crossOrigin:"",required:!0}),l.firstName&&s.firstName&&(0,m.jsx)(J,{children:s.firstName})]}),(0,m.jsxs)(V,{required:!0,flex:!0,children:[(0,m.jsx)(et,{children:"Last Name"}),(0,m.jsx)(B.Z.Input,{name:"lastName",value:n.lastName,disabled:"success"===t,onChange:i,onBlur:r,crossOrigin:""}),l.lastName&&s.lastName&&(0,m.jsx)(J,{children:s.lastName})]})]}),(0,m.jsxs)($,{children:[(0,m.jsxs)(V,{required:!0,flex:!0,children:[(0,m.jsx)(et,{children:"Work Email"}),(0,m.jsx)(B.Z.Input,{name:"email",type:"email",value:n.email,disabled:"success"===t,onChange:i,onBlur:r,crossOrigin:""}),l.email&&s.email&&(0,m.jsx)(J,{children:s.email})]}),(0,m.jsxs)(V,{flex:!0,children:[(0,m.jsx)(et,{children:"Phone Number"}),(0,m.jsx)(B.Z.Input,{name:"phone",type:"tel",value:n.phone,disabled:"success"===t,onChange:i,onBlur:r,crossOrigin:""}),l.phone&&s.phone&&(0,m.jsx)(J,{children:s.phone})]})]}),(0,m.jsxs)(V,{children:[(0,m.jsx)(et,{children:"Company"}),(0,m.jsx)(B.Z.Input,{name:"company",value:n.company,disabled:"success"===t,onChange:i,onBlur:r,crossOrigin:""}),l.company&&s.company&&(0,m.jsx)(J,{children:s.company})]}),(0,m.jsxs)(V,{required:!0,children:[(0,m.jsx)(et,{children:"Job Title"}),(0,m.jsx)(B.Z.Input,{name:"title",value:n.title,disabled:"success"===t,onChange:i,onBlur:r,crossOrigin:""}),l.title&&s.title&&(0,m.jsx)(J,{children:s.title})]}),(0,m.jsx)(ei,{children:(0,m.jsxs)(ea,{children:[(0,m.jsx)(B.Z.Checkbox,{name:"optIn",id:"optIn",onChange:function(e){return y("optin",e)},"aria-label":"Opt into CBT Nuggets news and resources emailer.",crossOrigin:"",disabled:"success"===t}),"Send me CBT Nuggets IT training news and resources. (optional)"]})}),(0,m.jsxs)(ei,{children:[(0,m.jsx)(et,{$bold:!0,children:"How many employees would you like to train?"}),(0,m.jsxs)(er,{children:[(0,m.jsxs)(ea,{children:[(0,m.jsx)("input",{type:"radio",name:"quantity",value:"2-4",checked:"2-4"===n.quantity,disabled:"success"===t,onChange:i}),"2-4"]}),(0,m.jsxs)(ea,{children:[(0,m.jsx)("input",{type:"radio",name:"quantity",value:"5-20",checked:"5-20"===n.quantity,disabled:"success"===t,onChange:i}),"5-20"]}),(0,m.jsxs)(ea,{children:[(0,m.jsx)("input",{type:"radio",name:"quantity",value:"20+",checked:"20+"===n.quantity,disabled:"success"===t,onChange:i}),"20+"]})]})]}),(0,m.jsx)(el,{tabIndex:-1,onChange:function(e){return o(e.target.value)}}),l.quantity&&s.quantity&&(0,m.jsx)(J,{children:s.quantity}),(0,m.jsxs)(ec,{children:["By submitting this form you agree that you have read, understood, and are able to consent to our"," ",(0,m.jsx)(X.l7,{href:"/privacy",children:"privacy policy"}),"."]}),(0,m.jsx)(eo,{type:"submit",disabled:x||"success"===t,children:x?"Sending...":"success"===t?"Sent!":"Get in touch"}),"error"===t&&(0,m.jsx)(J,{children:"There was an error submitting the form. Please try again."}),"success"===t&&(0,m.jsx)("p",{children:"Thank you for contacting us! We will get back to you shortly."})]})}})]})})},em=i.ZP.div.withConfig({displayName:"TestimonialsSection",componentId:"sc-1u3fen9-0"})(["border-top:1px solid #e5e7eb;"]),ep=i.ZP.div.withConfig({displayName:"TestimonialGrid",componentId:"sc-1u3fen9-1"})(["display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-top:2rem;margin-inline:10rem;@media (max-width:820px){grid-template-columns:1fr;gap:1.5rem;margin-inline:2rem;}"]),ef=i.ZP.div.withConfig({displayName:"TestimonialCard",componentId:"sc-1u3fen9-2"})(["padding:1.5rem;border-radius:8px;max-width:80%;"]),eh=i.ZP.div.withConfig({displayName:"StarRating",componentId:"sc-1u3fen9-3"})(["color:#fbbf24;margin-bottom:1rem;"]),eg=i.ZP.p.withConfig({displayName:"TestimonialText",componentId:"sc-1u3fen9-4"})(["font-style:italic;margin-bottom:2rem;line-height:1.5;"]),ex=i.ZP.div.withConfig({displayName:"TestimonialAuthor",componentId:"sc-1u3fen9-5"})(["font-weight:600;"]),ey=i.ZP.div.withConfig({displayName:"TestimonialRole",componentId:"sc-1u3fen9-6"})(["font-size:1.2rem;"]),eb=[{rating:5,text:"“The trainers explain things in such a brilliant way, the videos are bite-sized and the quiz questions are great. I use it daily and it's well worth the money.”",author:"Ashley C.",role:"Network Security Engineer"},{rating:5,text:"“I've used a variety of IT training platforms, but none have come close to the quality and real-world impact of CBT Nuggets.”",author:"Mark R.",role:"Network Administrator"}],ev=function(){return(0,m.jsx)(em,{children:(0,m.jsx)(ep,{children:eb.map(function(e,n){return(0,m.jsxs)(ef,{children:[(0,m.jsx)(eh,{children:"★".repeat(e.rating)}),(0,m.jsx)(eg,{children:e.text}),(0,m.jsx)(ex,{children:e.author}),(0,m.jsx)(ey,{children:e.role})]},n)})})})},ew=i.ZP.div.withConfig({displayName:"CompanyLogos",componentId:"sc-6t5oul-0"})(["margin-top:3rem;text-align:center;padding:3rem 2rem;background:rgba(239,242,247,1);width:100%;display:flex;flex-direction:column;justify-content:center;padding-bottom:6rem;"]),ej=i.ZP.h4.withConfig({displayName:"CompanyLogosTitle",componentId:"sc-6t5oul-1"})(["margin-bottom:1.5rem;font-weight:600;"]),eI=i.ZP.div.withConfig({displayName:"LogosContainer",componentId:"sc-6t5oul-2"})(["display:flex;justify-content:center;align-items:center;gap:7rem;margin-top:2rem;flex-wrap:wrap;@media (max-width:820px){flex-direction:column;gap:4rem;}"]),eC=function(){return(0,m.jsxs)(ew,{children:[(0,m.jsx)(ej,{children:"Incredible companies trust CBT Nuggets training"}),(0,m.jsxs)(eI,{children:[(0,m.jsx)(d.Google,{}),(0,m.jsx)(d.Amazon,{}),(0,m.jsx)(d.Salesforce,{}),(0,m.jsx)(d.Verizon,{}),(0,m.jsx)(d.Facebook,{})]})]})},eP=i.ZP.section.withConfig({displayName:"PageWrapper",componentId:"sc-1sxhisi-0"})(["margin:0 auto;"]),eN=i.ZP.div.withConfig({displayName:"ContactSalesWrapper",componentId:"sc-1sxhisi-1"})(["display:grid;grid-template-columns:2fr 1.5fr;min-height:100vh;@media (max-width:820px){display:flex;flex-direction:column-reverse;}"]),e_=i.ZP.div.withConfig({displayName:"BottomSection",componentId:"sc-1sxhisi-2"})(["display:flex;flex-direction:column;align-items:center;"]),eZ=function(){return(0,m.jsxs)(eP,{children:[(0,m.jsxs)(eN,{children:[(0,m.jsx)(O,{}),(0,m.jsx)(eu,{})]}),(0,m.jsxs)(e_,{children:[(0,m.jsx)(ev,{}),(0,m.jsx)(eC,{})]})]})},ek=!0,eO=function(){return(0,m.jsx)(eZ,{})}},37761:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact-sales",function(){return t(50942)}])},28811:function(e,n,t){"use strict";function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}t.d(n,{Z:function(){return i}})},83618:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var i=t(14666),r=t(28811),a=t(2937),o=t(14882);function s(e){return(0,i.Z)(e)||(0,r.Z)(e)||(0,a.Z)(e)||(0,o.Z)()}}},function(e){e.O(0,[3148,6018,1664,9471,9894,8764,7066,8967,3706,1345,2093,7103,3418,2888,9774,179],function(){return e(e.s=37761)}),_N_E=e.O()}]);