"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4951],{12549:function(e,t,r){var n=r(59499),a=r(4730);r(67294);var i=r(25675),s=r.n(i),l=r(85893),o=["src","alt","fill"];function c(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 u(e){for(var t=1;t=0,Firefox:e.isFirefox,Safari:e.isSafari,IE:e.isIE,MSEdge:"Edge"===e.browser||t.includes("Edg/")||t.includes("Edge/"),Chrome:e.isChrome},n=0,a=Object.entries(r);n0,dataAt:i,required:s})}})},Q=function(e){var t=e.name,r=e.label,n=e.items,a=e.required;return(0,z.jsx)(o.gN,{name:t,children:function(e){var i=e.field,s=e.meta,l=e.form.submitCount;return(0,z.jsx)(J,{name:t,label:r,field:i,items:n,error:s.error,hasSubmitted:l>0,required:a})}})},ee=function(e){var t=e.name,r=e.label,n=e.labelSpan,a=void 0===n?"":n,i=e.children,s=e.onChange,l=e.dataAt,c=e.required;return(0,z.jsx)(o.gN,{name:t,children:function(e){var t=e.field,n=e.meta;return(0,z.jsx)(K,{field:t,label:r,meta:n,labelSpan:a,onChange:s,dataAt:l,required:c,children:i})}})},et=r(26480),er=r(12093),en="Please enter a valid name",ea=er.Ry().shape({supportLevel:er.Z_().when("department",{is:"ls",then:er.Z_().required("This field is required.")}),licenseNumber:er.Z_().when("department",{is:"sales",then:er.Z_().required("This field is required.")}),company:er.Z_().when("department",{is:"sales",then:er.Z_().required("This field is required.")}),firstName:er.Z_().trim().matches(/^[\w'\-,.][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*(){}|~<>;:[\]]{1,50}$/,en).required("Please enter your first name."),lastName:er.Z_().trim().matches(/^[\w'\-,.][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*(){}|~<>;:[\]]{1,50}$/,en).required("Please enter your last name."),email:er.Z_().trim().matches(/^.{1,62}$/,"Please enter 62 characters or less.").matches(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,"Please enter a valid email address.").required("Please enter your email address."),phone:er.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."),message:er.Z_().trim().when("department",{is:"ls",then:er.Z_().max(1500,"Description cannot exceed ".concat(1500," characters."))}).when("department",{is:"sales",then:er.Z_().max(250,"Description cannot exceed ".concat(250," characters."))}).required("This field is required.")}),ei=r(97500),es=r(12549),el=function(){return(0,z.jsxs)($.sb,{children:[(0,z.jsx)($.vr,{children:"Other ways to reach us"}),(0,z.jsxs)($.mi,{children:[(0,z.jsxs)("div",{children:["US Sales & Support",(0,z.jsx)("p",{children:(0,z.jsx)($.xo,{"aria-label":"Contact Sales & Support",href:"tel:8885076283'",children:"888-507-6283"})})]}),(0,z.jsxs)("div",{children:["Non-US Sales & Support",(0,z.jsx)("p",{children:(0,z.jsx)($.xo,{"aria-label":"Contact Non-US Sales & Support",href:"tel:15412845522'",children:"+1 541-284-5522"})})]}),(0,z.jsxs)("div",{children:["Fax",(0,z.jsx)("p",{children:(0,z.jsx)($.xo,{"aria-label":"Fax",href:"tel:5412842050",children:"541-284-2050"})})]}),(0,z.jsxs)("div",{children:["Address",(0,z.jsxs)($.kL,{"aria-label":"Start Live Chat",className:"icon-links",children:["2850 Crescent Ave,",(0,z.jsx)("br",{}),"Eugene, OR 97408"]})]})]}),(0,z.jsxs)($.mi,{children:[(0,z.jsxs)($._u,{className:"contact-icon-text",children:[(0,z.jsx)(es.Z,{src:"/assets/client/chat.svg",alt:"Live Chat",width:38,height:24}),(0,z.jsx)($.xo,{"aria-label":"Start Live Chat",onClick:ei.B,className:"icon-links",children:"Start a live chat"})]}),(0,z.jsxs)($._u,{className:"contact-icon-text",children:[(0,z.jsx)(es.Z,{src:"/assets/client/email.svg",alt:"Email sales@cbtnuggets.com",width:38,height:24}),(0,z.jsx)($.xo,{"aria-label":"Email sales@cbtnuggets.com",href:"mailto:sales@cbtnuggets.com",className:"icon-links",children:"sales@cbtnuggets.com"})]})]})]})},eo=function(){return(0,z.jsxs)($.sb,{children:[(0,z.jsx)($.vr,{children:"Other ways to reach us"}),(0,z.jsxs)($.mi,{children:[(0,z.jsx)("h3",{children:"Phone"}),(0,z.jsxs)("div",{children:["EMEA Sales",(0,z.jsx)("p",{children:(0,z.jsx)($.xo,{"aria-label":"Contact Sales",href:"tel:442038236152",children:"+44203 8236152"})})]}),(0,z.jsxs)("div",{children:["Fax",(0,z.jsx)("p",{children:"541-284-2060"})]})]}),(0,z.jsxs)($.mi,{children:[(0,z.jsxs)($._u,{className:"contact-icon-text",children:[(0,z.jsx)(es.Z,{src:"/assets/client/chat.svg",alt:"Live Chat",width:38,height:24}),(0,z.jsx)($.xo,{"aria-label":"Start Live Chat",onClick:ei.B,className:"icon-links",children:"Start a live chat"})]}),(0,z.jsxs)($._u,{className:"contact-icon-text",children:[(0,z.jsx)(es.Z,{src:"/assets/client/email.svg",alt:"Email sales@cbtnuggets.com",width:38,height:24}),(0,z.jsx)($.xo,{"aria-label":"Email sales@cbtnuggets.com",href:"mailto:sales@cbtnuggets.com",className:"icon-links",children:"sales@cbtnuggets.com"})]})]})]})},ec=r(53964),eu=r(7013),ed=r(67686),em=r(67619),eh=r(41011),ep=r(96469),ef=r(11752),ex=r.n(ef),ev=r(6693);function eb(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 ej(e){for(var t=1;t20)){e.next=10;break}return e.abrupt("return",R(w));case 10:if(ex()().publicRuntimeConfig.accountAlias!==ed.N.LX_PROD){e.next=22;break}return e.prev=13,e.next=16,(0,f.od)({method:"POST",url:"".concat(ed.yh,"/contact_us"),headers:{"Content-Type":"applicationhttps://www.cbtnuggets.com/json"},data:W});case 16:e.next=22;break;case 18:return e.prev=18,e.t0=e.catch(13),console.error("Error submitting contact us form",e.t0),e.abrupt("return",R(O));case 22:return U={email:W.email,firstName:W.first_name,lastName:W.last_name,phone:W.phone,country:W.country,jobTitle:W.title,companyName:W.company,source:(null==I?void 0:I.gasource)||"contact_us_form",firstMedium:(null==I?void 0:I.gamedium)||"",firstCampaign:(null==I?void 0:I.gacampaign)||"",firstAdClickId:(null==I?void 0:I.gclid)||"",notes:W.message,context:{type:M?ev.KP.LEAD:ev.KP.CASE,details:M?"Number of Employees: ".concat(W.quantity):"Support Level: ".concat(W.support_level," - Order #: ").concat(null!==(D=W.order)&&void 0!==D?D:"N/A"," - OS: ").concat(null!==(T=W.os)&&void 0!==T?T:"N/A"," - Browser: ").concat(null!==(L=W.browser)&&void 0!==L?L:"N/A"),referrer:(null==I?void 0:I.referrer)||document.referrer,eventTitle:"Contact Us Form"}},e.prev=23,e.next=26,f.od.post("/api/crm/inbound-lead",U);case 26:R(w),e.next=32;break;case 29:e.prev=29,e.t1=e.catch(23),console.error("Error creating inbound lead",e.t1);case 32:return e.prev=32,e.next=35,f.od.post("/api/request-ip");case 35:return $=e.sent.data,e.next=39,(0,em.U)({email:W.email});case 39:if(z=e.sent.hashedEmail,V=(0,eh.i)(),!(W.department===g&&"1"!==W.quantity)){e.next=56;break}return window.dataLayer.push({event:"formSubmission",enhanced_conversion_data:{email:"".concat(W.email.trim())}}),X="contact_sales_form",H={},(0,n.Z)(H,X,{}),(0,n.Z)(H,"membership",{}),J=H,K=(0,eh.i)(),J.membership=ej(ej({},K),{},{email:z,ipaddress:$}),J[X].phone=W.phone,J[X].first_name=W.first_name,J[X].last_name=W.last_name,J[X].country=W.country,J[X].company=W.company,J[X].number_of_employees=W.quantity,(0,eu.w)(X,J),e.abrupt("return");case 56:(Y={contact_form:{},membership:{}}).contact_form.request_type=W.department,"ls"===W.department&&(Y.contact_form.level_of_support=W.support_level),Y.contact_form.operating_system=W.os,Y.contact_form.browser=W.browser,Y.contact_form.flash_installed=W.flash,Y.membership=ej({email:z},V),(0,eu.w)("contact_form",Y),e.next=70;break;case 67:e.prev=67,e.t2=e.catch(32),R(O);case 70:case"end":return e.stop()}},e,null,[[13,18],[23,29],[32,67]])})),b=function(e){if("ls"===X){if(!er)return(0,z.jsxs)("div",{children:[(0,z.jsx)(m.Z.Top,{changeCursorOnDisabled:!0,children:"System"}),(0,z.jsx)("br",{}),(0,z.jsxs)("p",{children:[U," / ",V]})," ",(0,z.jsxs)(h.Z.Standard,{id:"systemChange",onClick:function(){return en(!0)},children:[" ","change"]})]});var t=(0,z.jsx)($.th,{children:(0,z.jsx)($.xr,{children:"Supported versions: IE11, IE10, IE9"})}),r=L.map(function(e){return(0,z.jsx)("option",{value:e,children:e},e)}),n=R.map(function(e){return(0,z.jsx)("option",{value:e,children:e},e)});return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(ee,{name:"os",label:"Operating System",labelSpan:"- optional",onChange:function(t){e(t),ef(t.target.value===y)},children:r}),es&&(0,z.jsx)(G,{name:"other_os",label:y}),(0,z.jsx)(ee,{name:"browser",label:"Browser",labelSpan:"- optional",onChange:function(t){e(t),ey(t.target.value===y),eS(t.target.value===C||t.target.value===_)},children:n}),eO&&t,eg&&(0,z.jsx)(G,{name:"other_browser",label:y}),(0,z.jsx)(Q,{name:"flash",label:"Do you have flash installed?",items:[{value:"true",text:"Yes"},{value:"false",text:"No"}]})]})}return null},(0,z.jsx)(o.J9,{initialValues:{department:X,os:U,browser:V,flash:"true",firstName:"",lastName:"",email:"",phone:"",subject:" ",message:"",ext:""},validateOnChange:!0,validateOnBlur:!0,validationSchema:ea,onSubmit:function(e,t){return i.apply(this,arguments)},children:function(e){var r=e.values,n=e.handleChange,a=e.status,i=e.submitCount,s=I.map(function(e){return(0,z.jsx)("option",{value:e.value,children:e.label},e.value)}),l=t-r.message.length,u=(0,c.Z)(l,0,l),d=[{value:"Billing",text:"Billing"},{value:"Technical Support",text:"Technical Support"},{value:"Feedback",text:"Feedback"},{value:y,text:y}];return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)("input",{type:"hidden",name:"gaCid",id:"gaCid",ref:P}),(0,z.jsx)("input",{type:"hidden",name:"gaHid",id:"gaHid",ref:k}),(0,z.jsx)("input",{type:"hidden",name:"gaclientid",id:"gaclientid",ref:E}),(0,z.jsx)("input",{type:"hidden",name:"gacampaign",id:"gacampaign",ref:A}),(0,z.jsx)("input",{type:"hidden",name:"gamedium",id:"gamedium",ref:D}),(0,z.jsx)("input",{type:"hidden",name:"gasource",id:"gasource",ref:T}),(0,z.jsx)("input",{type:"hidden",name:"gatrackid",id:"gatrackid",ref:F}),(0,z.jsx)("input",{type:"hidden",name:"gauserid",id:"gauserid",ref:B}),(0,z.jsx)("input",{type:"hidden",name:"oid",value:"00D750000008g7b"}),(null==a?void 0:a.length)>0?eD(a):(0,z.jsxs)(o.l0,{id:"contact-form",children:[(0,z.jsxs)($.AM,{children:[(0,z.jsxs)("div",{children:[(0,z.jsx)(ee,{required:!0,name:"department",label:"Who would you like to speak to?",onChange:function(e){n(e),J(e.target.value!==g?"ls":g),en(!1)},dataAt:"department",children:s}),"ls"===X&&(0,z.jsx)(Q,{required:!0,name:"supportLevel",label:"What level of support is needed?",items:d}),(0,z.jsx)(G,{required:!0,name:"firstName",label:"First name",dataAt:"firstName"}),(0,z.jsx)(G,{required:!0,name:"lastName",label:"Last name",dataAt:"lastName"}),(0,z.jsx)(G,{required:!0,name:"email",label:"Work Email",dataAt:"email"}),"ls"===X&&(0,z.jsx)(G,{name:"order",label:"Order number",labelSpan:"- optional",dataAt:"order"}),X===g&&(0,z.jsx)(G,{required:!0,name:"company",label:"Company",dataAt:"company"}),(0,z.jsx)(ee,{required:!0,name:"country",label:"Country",dataAt:"country",children:ec.J.map(function(e){return(0,z.jsx)("option",{value:e,children:e},e)})}),(0,z.jsx)(G,{required:!0,name:"phone",label:"Phone",dataAt:"phone"}),(0,z.jsx)(G,{name:"ext",label:"Extension",labelSpan:"- optional",dataAt:"ext"}),X===g&&(0,z.jsx)(Q,{name:"licenseNumber",label:"How many employees would you like to train?",items:[{value:"1",text:"Individual"},{value:"2-4",text:"2-4"},{value:"5-20",text:"5-20"},{value:"20+",text:"20+"},{value:"100+",text:"100+"}]}),b(n)]}),(0,z.jsx)("div",{children:(0,z.jsx)(o.gN,{name:"message",children:function(e){var n,a=e.field,s=e.meta;return(0,z.jsx)(Y,{required:!0,field:a,meta:s,rows:"10",cols:"20",label:"How can we help?",labelSpan:"(Max ".concat(t," chars)"),maxLength:t,charLimitMsg:(null===(n=r.message)||void 0===n?void 0:n.length)>0&&"".concat(u," chars remaining"),hasSubmitted:i>0,dataAt:"message"})}})}),(0,z.jsx)($.R5,{tabIndex:-1,name:"honeypot",onChange:function(e){return eA(e.target.value)}})]}),(0,z.jsxs)($.Gx,{children:[(0,z.jsx)(p.Z.Primary,{className:"submit-button",as:"input",type:"submit",value:"Submit your request",onClick:function(){window.scrollTo(0,0)},"data-at":"submit"}),(0,z.jsxs)("p",{children:["I have read and understood the"," ",(0,z.jsx)(v.l7,{newWindow:!0,href:"/privacy",renderAs:"/privacy",children:"privacy policy"}),", and am able to consent to it."]})]})]})]})}})),(void 0===q||q)&&(Z?(0,z.jsx)(eo,{}):(0,z.jsx)(el,{}))]}):(0,z.jsx)(d.Z,{})}},97500:function(e,t,r){r.d(t,{B:function(){return n}});var n=function(e){e&&e.preventDefault();try{document.getElementById("embeddedMessagingConversationButton").click()}catch(e){console.warn(e,"Error starting chat, script possibly not loaded yet.")}}},26480:function(e,t,r){r.d(t,{A_:function(){return i},uF:function(){return a}});var n=r(33811),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e&&(0,n.Nq)()){var r=document.body.getBoundingClientRect().top,a=e.getBoundingClientRect().top;window.scrollTo({top:a-r-t,behavior:"smooth"})}},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"contact-form";e&&a(document.getElementById(e),50)};t.ZP=function(e){e&&e.scrollIntoView({behavior:"smooth",block:"center"})}}}]);