"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})}})},J=function(e){var t=e.name,r=e.label,n=e.items,a=e.required;return(0,W.jsx)(o.gN,{name:t,children:function(e){var i=e.field,s=e.meta,l=e.form.submitCount;return(0,W.jsx)($,{name:t,label:r,field:i,items:n,error:s.error,hasSubmitted:l>0,required:a})}})},K=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,W.jsx)(o.gN,{name:t,children:function(e){var t=e.field,n=e.meta;return(0,W.jsx)(z,{field:t,label:r,meta:n,labelSpan:a,onChange:s,dataAt:l,required:c,children:i})}})},X=r(26480),Y=r(96827),G="Please enter a valid name",Q=Y.Ry().shape({supportLevel:Y.Z_().when("department",{is:"ls",then:Y.Z_().required("This field is required.")}),licenseNumber:Y.Z_().when("department",{is:"sales",then:Y.Z_().required("This field is required.")}),company:Y.Z_().when("department",{is:"sales",then:Y.Z_().required("This field is required.")}),firstName:Y.Z_().trim().matches(/^[\w'\-,.][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*(){}|~<>;:[\]]{1,50}$/,G).required("Please enter your first name."),lastName:Y.Z_().trim().matches(/^[\w'\-,.][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*(){}|~<>;:[\]]{1,50}$/,G).required("Please enter your last name."),email:Y.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:Y.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:Y.Z_().trim().when("department",{is:"ls",then:Y.Z_().max(1500,"Description cannot exceed ".concat(1500," characters."))}).when("department",{is:"sales",then:Y.Z_().max(250,"Description cannot exceed ".concat(250," characters."))}).required("This field is required.")}),ee=r(97500),et=r(12549),er=function(){return(0,W.jsxs)(R.sb,{children:[(0,W.jsx)(R.vr,{children:"Other ways to reach us"}),(0,W.jsxs)(R.mi,{children:[(0,W.jsxs)("div",{children:["US Sales & Support",(0,W.jsx)("p",{children:(0,W.jsx)(R.xo,{"aria-label":"Contact Sales & Support",href:"tel:8885076283'",children:"888-507-6283"})})]}),(0,W.jsxs)("div",{children:["Non-US Sales & Support",(0,W.jsx)("p",{children:(0,W.jsx)(R.xo,{"aria-label":"Contact Non-US Sales & Support",href:"tel:15412845522'",children:"+1 541-284-5522"})})]}),(0,W.jsxs)("div",{children:["Fax",(0,W.jsx)("p",{children:(0,W.jsx)(R.xo,{"aria-label":"Fax",href:"tel:5412842050",children:"541-284-2050"})})]}),(0,W.jsxs)("div",{children:["Address",(0,W.jsxs)(R.kL,{"aria-label":"Start Live Chat",className:"icon-links",children:["2850 Crescent Ave,",(0,W.jsx)("br",{}),"Eugene, OR 97408"]})]})]}),(0,W.jsxs)(R.mi,{children:[(0,W.jsxs)(R._u,{className:"contact-icon-text",children:[(0,W.jsx)(et.Z,{src:"/assets/client/chat.svg",alt:"Live Chat",width:38,height:24}),(0,W.jsx)(R.xo,{"aria-label":"Start Live Chat",onClick:ee.B,className:"icon-links",children:"Start a live chat"})]}),(0,W.jsxs)(R._u,{className:"contact-icon-text",children:[(0,W.jsx)(et.Z,{src:"/assets/client/email.svg",alt:"Email sales@cbtnuggets.com",width:38,height:24}),(0,W.jsx)(R.xo,{"aria-label":"Email sales@cbtnuggets.com",href:"mailto:sales@cbtnuggets.com",className:"icon-links",children:"sales@cbtnuggets.com"})]})]})]})},en=function(){return(0,W.jsxs)(R.sb,{children:[(0,W.jsx)(R.vr,{children:"Other ways to reach us"}),(0,W.jsxs)(R.mi,{children:[(0,W.jsx)("h3",{children:"Phone"}),(0,W.jsxs)("div",{children:["EMEA Sales",(0,W.jsx)("p",{children:(0,W.jsx)(R.xo,{"aria-label":"Contact Sales",href:"tel:442038236152",children:"+44203 8236152"})})]}),(0,W.jsxs)("div",{children:["Fax",(0,W.jsx)("p",{children:"541-284-2060"})]})]}),(0,W.jsxs)(R.mi,{children:[(0,W.jsxs)(R._u,{className:"contact-icon-text",children:[(0,W.jsx)(et.Z,{src:"/assets/client/chat.svg",alt:"Live Chat",width:38,height:24}),(0,W.jsx)(R.xo,{"aria-label":"Start Live Chat",onClick:ee.B,className:"icon-links",children:"Start a live chat"})]}),(0,W.jsxs)(R._u,{className:"contact-icon-text",children:[(0,W.jsx)(et.Z,{src:"/assets/client/email.svg",alt:"Email sales@cbtnuggets.com",width:38,height:24}),(0,W.jsx)(R.xo,{"aria-label":"Email sales@cbtnuggets.com",href:"mailto:sales@cbtnuggets.com",className:"icon-links",children:"sales@cbtnuggets.com"})]})]})]})},ea=r(53964),ei=r(7013),es=r(67619),el=r(41011),eo=r(96469),ec=r(6693);function eu(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 ed(e){for(var t=1;t20)){e.next=10;break}return e.abrupt("return",R(b));case 10:return U={email:I.email,firstName:I.first_name,lastName:I.last_name,phone:I.phone,country:I.country,companyName:I.company,source:(null==W?void 0:W.gasource)||"contact_us_form",firstMedium:(null==W?void 0:W.gamedium)||"",firstCampaign:(null==W?void 0:W.gacampaign)||"",firstAdClickId:(null==W?void 0:W.gclid)||"",notes:I.message,context:{type:M?ec.KP.LEAD:ec.KP.CASE,details:M?"Number of Employees: ".concat(I.quantity):"Support Level: ".concat(I.support_level," - Order #: ").concat(null!==(B=I.order)&&void 0!==B?B:"N/A"," - OS: ").concat(null!==(F=I.os)&&void 0!==F?F:"N/A"," - Browser: ").concat(null!==(T=I.browser)&&void 0!==T?T:"N/A"),referrer:(null==W?void 0:W.referrer)||document.referrer,eventTitle:"Contact Us Form"}},e.prev=11,e.next=14,d.od.post("/api/crm/inbound-lead",U);case 14:R(b),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(11),console.error("Error creating inbound lead",e.t0);case 20:return e.prev=20,e.next=23,d.od.post("/api/request-ip");case 23:return $=e.sent.data,e.next=27,(0,es.U)({email:I.email});case 27:if(z=e.sent.hashedEmail,V=(0,el.i)(),!(I.department===x&&"1"!==I.quantity)){e.next=44;break}return window.dataLayer.push({event:"formSubmission",enhanced_conversion_data:{email:"".concat(I.email.trim())}}),J="contact_sales_form",H={},(0,n.Z)(H,J,{}),(0,n.Z)(H,"membership",{}),K=H,X=(0,el.i)(),K.membership=ed(ed({},X),{},{email:z,ipaddress:$}),K[J].phone=I.phone,K[J].first_name=I.first_name,K[J].last_name=I.last_name,K[J].country=I.country,K[J].company=I.company,K[J].number_of_employees=I.quantity,(0,ei.w)(J,K),e.abrupt("return");case 44:(Y={contact_form:{},membership:{}}).contact_form.request_type=I.department,"ls"===I.department&&(Y.contact_form.level_of_support=I.support_level),Y.contact_form.operating_system=I.os,Y.contact_form.browser=I.browser,Y.contact_form.flash_installed=I.flash,Y.membership=ed({email:z},V),(0,ei.w)("contact_form",Y),e.next=58;break;case 55:e.prev=55,e.t1=e.catch(20),R(j);case 58:case"end":return e.stop()}},e,null,[[11,17],[20,55]])})),p=function(e){if("ls"===$){if(!G)return(0,W.jsxs)("div",{children:[(0,W.jsx)(u.StyledLabel.Top,{changeCursorOnDisabled:!0,children:"System"}),(0,W.jsx)("br",{}),(0,W.jsxs)("p",{children:[I," / ",M]})," ",(0,W.jsxs)(u.ButtonAsLink.Standard,{id:"systemChange",onClick:function(){return ee(!0)},children:[" ","change"]})]});var t=(0,W.jsx)(R.th,{children:(0,W.jsx)(R.xr,{children:"Supported versions: IE11, IE10, IE9"})}),r=L.map(function(e){return(0,W.jsx)("option",{value:e,children:e},e)}),n=D.map(function(e){return(0,W.jsx)("option",{value:e,children:e},e)});return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(K,{name:"os",label:"Operating System",labelSpan:"- optional",onChange:function(t){e(t),em(t.target.value===v)},children:r}),eu&&(0,W.jsx)(H,{name:"other_os",label:v}),(0,W.jsx)(K,{name:"browser",label:"Browser",labelSpan:"- optional",onChange:function(t){e(t),ef(t.target.value===v),eb(t.target.value===w||t.target.value===y)},children:n}),ev&&t,ep&&(0,W.jsx)(H,{name:"other_browser",label:v}),(0,W.jsx)(J,{name:"flash",label:"Do you have flash installed?",items:[{value:"true",text:"Yes"},{value:"false",text:"No"}]})]})}return null},(0,W.jsx)(o.J9,{initialValues:{department:$,os:I,browser:M,flash:"true",firstName:"",lastName:"",email:"",phone:"",subject:" ",message:"",ext:""},validateOnChange:!0,validateOnBlur:!0,validationSchema:Q,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=B.map(function(e){return(0,W.jsx)("option",{value:e.value,children:e.label},e.value)}),l=t-r.message.length,d=(0,c.Z)(l,0,l),m=[{value:"Billing",text:"Billing"},{value:"Technical Support",text:"Technical Support"},{value:"Feedback",text:"Feedback"},{value:v,text:v}];return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("input",{type:"hidden",name:"gaCid",id:"gaCid",ref:C}),(0,W.jsx)("input",{type:"hidden",name:"gaHid",id:"gaHid",ref:N}),(0,W.jsx)("input",{type:"hidden",name:"gaclientid",id:"gaclientid",ref:q}),(0,W.jsx)("input",{type:"hidden",name:"gacampaign",id:"gacampaign",ref:P}),(0,W.jsx)("input",{type:"hidden",name:"gamedium",id:"gamedium",ref:k}),(0,W.jsx)("input",{type:"hidden",name:"gasource",id:"gasource",ref:E}),(0,W.jsx)("input",{type:"hidden",name:"gatrackid",id:"gatrackid",ref:A}),(0,W.jsx)("input",{type:"hidden",name:"gauserid",id:"gauserid",ref:Z}),(0,W.jsx)("input",{type:"hidden",name:"oid",value:"00D750000008g7b"}),(null==a?void 0:a.length)>0?eq(a):(0,W.jsxs)(o.l0,{id:"contact-form",children:[(0,W.jsxs)(R.AM,{children:[(0,W.jsxs)("div",{children:[(0,W.jsx)(K,{required:!0,name:"department",label:"Who would you like to speak to?",onChange:function(e){n(e),z(e.target.value!==x?"ls":x),ee(!1)},dataAt:"department",children:s}),"ls"===$&&(0,W.jsx)(J,{required:!0,name:"supportLevel",label:"What level of support is needed?",items:m}),(0,W.jsx)(H,{required:!0,name:"firstName",label:"First name",dataAt:"firstName"}),(0,W.jsx)(H,{required:!0,name:"lastName",label:"Last name",dataAt:"lastName"}),(0,W.jsx)(H,{required:!0,name:"email",label:"Work Email",dataAt:"email"}),"ls"===$&&(0,W.jsx)(H,{name:"order",label:"Order number",labelSpan:"- optional",dataAt:"order"}),$===x&&(0,W.jsx)(H,{required:!0,name:"company",label:"Company",dataAt:"company"}),(0,W.jsx)(K,{required:!0,name:"country",label:"Country",dataAt:"country",children:ea.J.map(function(e){return(0,W.jsx)("option",{value:e,children:e},e)})}),(0,W.jsx)(H,{required:!0,name:"phone",label:"Phone",dataAt:"phone"}),(0,W.jsx)(H,{name:"ext",label:"Extension",labelSpan:"- optional",dataAt:"ext"}),$===x&&(0,W.jsx)(J,{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+"}]}),p(n)]}),(0,W.jsx)("div",{children:(0,W.jsx)(o.gN,{name:"message",children:function(e){var n,a=e.field,s=e.meta;return(0,W.jsx)(V,{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,W.jsx)(R.R5,{tabIndex:-1,name:"honeypot",onChange:function(e){return eN(e.target.value)}})]}),(0,W.jsxs)(R.Gx,{children:[(0,W.jsx)(u.ButtonBrand.Primary,{className:"submit-button",as:"input",type:"submit",value:"Submit your request",onClick:function(){window.scrollTo(0,0)},"data-at":"submit"}),(0,W.jsxs)("p",{children:["I have read and understood the"," ",(0,W.jsx)(h.l7,{newWindow:!0,href:"/privacy",renderAs:"/privacy",children:"privacy policy"}),", and am able to consent to it."]})]})]})]})}})),(void 0===_||_)&&(O?(0,W.jsx)(en,{}):(0,W.jsx)(er,{}))]}):(0,W.jsx)(u.LoadingBubbles,{})}},97500:function(e,t,r){r.d(t,{B:function(){return n}});var n=function(e){e&&e.preventDefault();try{window.CBTSuperWidget.open()}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"})}}}]);