"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 d(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})}})},K=function(e){var t=e.name,r=e.label,n=e.items,a=e.required;return(0,U.jsx)(o.gN,{name:t,children:function(e){var i=e.field,s=e.meta,l=e.form.submitCount;return(0,U.jsx)(X,{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,U.jsx)(o.gN,{name:t,children:function(e){var t=e.field,n=e.meta;return(0,U.jsx)(Y,{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,U.jsxs)(z.sb,{children:[(0,U.jsx)(z.vr,{children:"Other ways to reach us"}),(0,U.jsxs)(z.mi,{children:[(0,U.jsxs)("div",{children:["US Sales & Support",(0,U.jsx)("p",{children:(0,U.jsx)(z.xo,{"aria-label":"Contact Sales & Support",href:"tel:8885076283'",children:"888-507-6283"})})]}),(0,U.jsxs)("div",{children:["Non-US Sales & Support",(0,U.jsx)("p",{children:(0,U.jsx)(z.xo,{"aria-label":"Contact Non-US Sales & Support",href:"tel:15412845522'",children:"+1 541-284-5522"})})]}),(0,U.jsxs)("div",{children:["Fax",(0,U.jsx)("p",{children:(0,U.jsx)(z.xo,{"aria-label":"Fax",href:"tel:5412842050",children:"541-284-2050"})})]}),(0,U.jsxs)("div",{children:["Address",(0,U.jsxs)(z.kL,{"aria-label":"Start Live Chat",className:"icon-links",children:["2850 Crescent Ave,",(0,U.jsx)("br",{}),"Eugene, OR 97408"]})]})]}),(0,U.jsxs)(z.mi,{children:[(0,U.jsxs)(z._u,{className:"contact-icon-text",children:[(0,U.jsx)(es.Z,{src:"/assets/client/chat.svg",alt:"Live Chat",width:38,height:24}),(0,U.jsx)(z.xo,{"aria-label":"Start Live Chat",onClick:ei.B,className:"icon-links",children:"Start a live chat"})]}),(0,U.jsxs)(z._u,{className:"contact-icon-text",children:[(0,U.jsx)(es.Z,{src:"/assets/client/email.svg",alt:"Email sales@cbtnuggets.com",width:38,height:24}),(0,U.jsx)(z.xo,{"aria-label":"Email sales@cbtnuggets.com",href:"mailto:sales@cbtnuggets.com",className:"icon-links",children:"sales@cbtnuggets.com"})]})]})]})},eo=function(){return(0,U.jsxs)(z.sb,{children:[(0,U.jsx)(z.vr,{children:"Other ways to reach us"}),(0,U.jsxs)(z.mi,{children:[(0,U.jsx)("h3",{children:"Phone"}),(0,U.jsxs)("div",{children:["EMEA Sales",(0,U.jsx)("p",{children:(0,U.jsx)(z.xo,{"aria-label":"Contact Sales",href:"tel:442038236152",children:"+44203 8236152"})})]}),(0,U.jsxs)("div",{children:["Fax",(0,U.jsx)("p",{children:"541-284-2060"})]})]}),(0,U.jsxs)(z.mi,{children:[(0,U.jsxs)(z._u,{className:"contact-icon-text",children:[(0,U.jsx)(es.Z,{src:"/assets/client/chat.svg",alt:"Live Chat",width:38,height:24}),(0,U.jsx)(z.xo,{"aria-label":"Start Live Chat",onClick:ei.B,className:"icon-links",children:"Start a live chat"})]}),(0,U.jsxs)(z._u,{className:"contact-icon-text",children:[(0,U.jsx)(es.Z,{src:"/assets/client/email.svg",alt:"Email sales@cbtnuggets.com",width:38,height:24}),(0,U.jsx)(z.xo,{"aria-label":"Email sales@cbtnuggets.com",href:"mailto:sales@cbtnuggets.com",className:"icon-links",children:"sales@cbtnuggets.com"})]})]})]})},ec=r(53964),ed=r(7013),eu=r(67686),eh=r(67619),em=r(41011),ep=r(83029);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 ef(e){for(var t=1;t20)){e.next=9;break}return e.abrupt("return",D(w));case 9:return e.prev=9,e.next=12,(0,x.od)({method:"POST",url:"".concat(eu.yh,"/contact_us"),headers:{"Content-Type":"applicationhttps://www.cbtnuggets.com/json"},data:L});case 12:if(200!==e.sent.status){e.next=34;break}return e.next=16,x.od.post("/api/request-ip");case 16:return R=e.sent.data,e.next=20,(0,eh.U)({email:L.email});case 20:I=e.sent.hashedEmail,W=(0,em.i)(),L.department===g&&"1"!==L.quantity&&(window.dataLayer.push({event:"formSubmission",enhanced_conversion_data:{email:"".concat(L.email.trim())}}),$="contact_sales_form",M={},(0,n.Z)(M,$,{}),(0,n.Z)(M,"membership",{}),z=M,U=(0,em.i)(),z.membership=ef(ef({},U),{},{email:I,ipaddress:R}),z[$].phone=L.phone,z[$].first_name=L.first_name,z[$].last_name=L.last_name,z[$].country=L.country,z[$].company=L.company,z[$].number_of_employees=L.quantity,(0,ed.w)($,z)),(V={contact_form:{},membership:{}}).contact_form.request_type=L.department,"ls"===L.department&&(V.contact_form.level_of_support=L.support_level),V.contact_form.operating_system=L.os,V.contact_form.browser=L.browser,V.contact_form.flash_installed=L.flash,V.membership=ef({email:I},W),(0,ed.w)("contact_form",V),D(w);case 34:e.next=39;break;case 36:e.prev=36,e.t0=e.catch(9),D(O);case 39:case"end":return e.stop()}},e,null,[[9,36]])})),b=function(e){if("ls"===J){if(!er)return(0,U.jsxs)("div",{children:[(0,U.jsx)(h.Z.Top,{changeCursorOnDisabled:!0,children:"System"}),(0,U.jsx)("br",{}),(0,U.jsxs)("p",{children:[$," / ",V]})," ",(0,U.jsxs)(m.Z.Standard,{id:"systemChange",onClick:function(){return en(!0)},children:[" ","change"]})]});var t=(0,U.jsx)(z.th,{children:(0,U.jsx)(z.xr,{children:"Supported versions: IE11, IE10, IE9"})}),r=L.map(function(e){return(0,U.jsx)("option",{value:e,children:e},e)}),n=R.map(function(e){return(0,U.jsx)("option",{value:e,children:e},e)});return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(ee,{name:"os",label:"Operating System",labelSpan:"- optional",onChange:function(t){e(t),ex(t.target.value===y)},children:r}),es&&(0,U.jsx)(Q,{name:"other_os",label:y}),(0,U.jsx)(ee,{name:"browser",label:"Browser",labelSpan:"- optional",onChange:function(t){e(t),ej(t.target.value===y),ew(t.target.value===C||t.target.value===_)},children:n}),ey&&t,eb&&(0,U.jsx)(Q,{name:"other_browser",label:y}),(0,U.jsx)(K,{name:"flash",label:"Do you have flash installed?",items:[{value:"true",text:"Yes"},{value:"false",text:"No"}]})]})}return null},(0,U.jsx)(o.J9,{initialValues:{department:J,os:$,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,U.jsx)("option",{value:e.value,children:e.label},e.value)}),l=t-r.message.length,d=(0,c.Z)(l,0,l),u=[{value:"Billing",text:"Billing"},{value:"Technical Support",text:"Technical Support"},{value:"Feedback",text:"Feedback"},{value:y,text:y}];return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("input",{type:"hidden",name:"gaCid",id:"gaCid",ref:P}),(0,U.jsx)("input",{type:"hidden",name:"gaHid",id:"gaHid",ref:k}),(0,U.jsx)("input",{type:"hidden",name:"gaclientid",id:"gaclientid",ref:E}),(0,U.jsx)("input",{type:"hidden",name:"gacampaign",id:"gacampaign",ref:A}),(0,U.jsx)("input",{type:"hidden",name:"gamedium",id:"gamedium",ref:D}),(0,U.jsx)("input",{type:"hidden",name:"gasource",id:"gasource",ref:T}),(0,U.jsx)("input",{type:"hidden",name:"gatrackid",id:"gatrackid",ref:F}),(0,U.jsx)("input",{type:"hidden",name:"gauserid",id:"gauserid",ref:B}),(0,U.jsx)("input",{type:"hidden",name:"oid",value:"00D750000008g7b"}),(null==a?void 0:a.length)>0?eE(a):(0,U.jsxs)(o.l0,{id:"contact-form",children:[(0,U.jsxs)(z.AM,{children:[(0,U.jsxs)("div",{children:[(0,U.jsx)(ee,{required:!0,name:"department",label:"Who would you like to speak to?",onChange:function(e){n(e),X(e.target.value!==g?"ls":g),en(!1)},dataAt:"department",children:s}),"ls"===J&&(0,U.jsx)(K,{required:!0,name:"supportLevel",label:"What level of support is needed?",items:u}),(0,U.jsx)(Q,{required:!0,name:"firstName",label:"First name",dataAt:"firstName"}),(0,U.jsx)(Q,{required:!0,name:"lastName",label:"Last name",dataAt:"lastName"}),(0,U.jsx)(Q,{required:!0,name:"email",label:"Work Email",dataAt:"email"}),"ls"===J&&(0,U.jsx)(Q,{name:"order",label:"Order number",labelSpan:"- optional",dataAt:"order"}),J===g&&(0,U.jsx)(Q,{required:!0,name:"company",label:"Company",dataAt:"company"}),(0,U.jsx)(ee,{required:!0,name:"country",label:"Country",dataAt:"country",children:ec.J.map(function(e){return(0,U.jsx)("option",{value:e,children:e},e)})}),(0,U.jsx)(Q,{required:!0,name:"phone",label:"Phone",dataAt:"phone"}),(0,U.jsx)(Q,{name:"ext",label:"Extension",labelSpan:"- optional",dataAt:"ext"}),J===g&&(0,U.jsx)(K,{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,U.jsx)("div",{children:(0,U.jsx)(o.gN,{name:"message",children:function(e){var n,a=e.field,s=e.meta;return(0,U.jsx)(G,{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(d," chars remaining"),hasSubmitted:i>0,dataAt:"message"})}})}),(0,U.jsx)(z.R5,{tabIndex:-1,name:"honeypot",onChange:function(e){return ek(e.target.value)}})]}),(0,U.jsxs)(z.Gx,{children:[(0,U.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,U.jsxs)("p",{children:["I have read and understood the"," ",(0,U.jsx)(v.l7,{newWindow:!0,href:"/privacy",renderAs:"/privacy",children:"privacy policy"}),", and am able to consent to it."]})]})]})]})}})),(void 0===N||N)&&(q?(0,U.jsx)(eo,{}):(0,U.jsx)(el,{}))]}):(0,U.jsx)(u.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"})}}}]);