"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4951],{12549:function(e,n,t){var a=t(59499),r=t(4730);t(67294);var i=t(25675),o=t.n(i),s=t(85893),l=["src","alt","fill"];function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function d(e){for(var n=1;n=0,Firefox:e.isFirefox,Safari:e.isSafari,IE:e.isIE,MSEdge:"Edge"===e.browser||n.includes("Edg/")||n.includes("Edge/"),Chrome:e.isChrome},a=0,r=Object.entries(t);a0,dataAt:i})}})},ee=function(e){var n=e.name,t=e.label,a=e.items;return(0,V.jsx)(l.gN,{name:n,children:function(e){var r=e.field,i=e.meta,o=e.form.submitCount;return(0,V.jsx)($,{name:n,label:t,field:r,items:a,error:i.error,hasSubmitted:o>0})}})},en=function(e){var n=e.name,t=e.label,a=e.labelSpan,r=void 0===a?"":a,i=e.children,o=e.onChange,s=e.dataAt;return(0,V.jsx)(l.gN,{name:n,children:function(e){var n=e.field,a=e.meta;return(0,V.jsx)(Y,{field:n,label:t,meta:a,labelSpan:r,onChange:o,dataAt:s,children:i})}})},et=t(26480),ea=t(96827),er="Please enter a valid name",ei=ea.Ry().shape({supportLevel:ea.Z_().when("department",{is:"ls",then:ea.Z_().required("This field is required.")}),licenseNumber:ea.Z_().when("department",{is:"sales",then:ea.Z_().required("This field is required.")}),company:ea.Z_().when("department",{is:"sales",then:ea.Z_().required("This field is required.")}),firstName:ea.Z_().trim().matches(/^[\w'\-,.][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*(){}|~<>;:[\]]{1,50}$/,er).required("Please enter your first name."),lastName:ea.Z_().trim().matches(/^[\w'\-,.][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*(){}|~<>;:[\]]{1,50}$/,er).required("Please enter your last name."),email:ea.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:ea.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:ea.Z_().trim().when("department",{is:"ls",then:ea.Z_().max(1500,"Description cannot exceed ".concat(1500," characters."))}).when("department",{is:"sales",then:ea.Z_().max(250,"Description cannot exceed ".concat(250," characters."))}).required("This field is required.")}),eo=t(97500),es=t(12549),el=function(){return(0,V.jsxs)(U.sb,{children:[(0,V.jsx)(U.vr,{children:"Other ways to reach us"}),(0,V.jsxs)(U.mi,{children:[(0,V.jsxs)("div",{children:["US Sales & Support",(0,V.jsx)("p",{children:(0,V.jsx)(U.xo,{"aria-label":"Contact Sales & Support",href:"tel:8885076283'",children:"888-507-6283"})})]}),(0,V.jsxs)("div",{children:["Non-US Sales & Support",(0,V.jsx)("p",{children:(0,V.jsx)(U.xo,{"aria-label":"Contact Non-US Sales & Support",href:"tel:15412845522'",children:"+1 541-284-5522"})})]}),(0,V.jsxs)("div",{children:["Fax",(0,V.jsx)("p",{children:(0,V.jsx)(U.xo,{"aria-label":"Fax",href:"tel:5412842050",children:"541-284-2050"})})]}),(0,V.jsxs)("div",{children:["Address",(0,V.jsxs)(U.kL,{"aria-label":"Start Live Chat",className:"icon-links",children:["2850 Crescent Ave,",(0,V.jsx)("br",{}),"Eugene, OR 97408"]})]})]}),(0,V.jsxs)(U.mi,{children:[(0,V.jsxs)(U._u,{className:"contact-icon-text",children:[(0,V.jsx)(es.Z,{src:"/assets/client/chat.svg",alt:"Live Chat",width:38,height:24}),(0,V.jsx)(U.xo,{"aria-label":"Start Live Chat",onClick:eo.B,className:"icon-links",children:"Start a live chat"})]}),(0,V.jsxs)(U._u,{className:"contact-icon-text",children:[(0,V.jsx)(es.Z,{src:"/assets/client/email.svg",alt:"Email sales@cbtnuggets.com",width:38,height:24}),(0,V.jsx)(U.xo,{"aria-label":"Email sales@cbtnuggets.com",href:"mailto:sales@cbtnuggets.com",className:"icon-links",children:"sales@cbtnuggets.com"})]})]})]})},ec=function(){return(0,V.jsxs)(U.sb,{children:[(0,V.jsx)(U.vr,{children:"Other ways to reach us"}),(0,V.jsxs)(U.mi,{children:[(0,V.jsx)("h3",{children:"Phone"}),(0,V.jsxs)("div",{children:["EMEA Sales",(0,V.jsx)("p",{children:(0,V.jsx)(U.xo,{"aria-label":"Contact Sales",href:"tel:442038236152",children:"+44203 8236152"})})]}),(0,V.jsxs)("div",{children:["Fax",(0,V.jsx)("p",{children:"541-284-2060"})]})]}),(0,V.jsxs)(U.mi,{children:[(0,V.jsxs)(U._u,{className:"contact-icon-text",children:[(0,V.jsx)(es.Z,{src:"/assets/client/chat.svg",alt:"Live Chat",width:38,height:24}),(0,V.jsx)(U.xo,{"aria-label":"Start Live Chat",onClick:eo.B,className:"icon-links",children:"Start a live chat"})]}),(0,V.jsxs)(U._u,{className:"contact-icon-text",children:[(0,V.jsx)(es.Z,{src:"/assets/client/email.svg",alt:"Email sales@cbtnuggets.com",width:38,height:24}),(0,V.jsx)(U.xo,{"aria-label":"Email sales@cbtnuggets.com",href:"mailto:sales@cbtnuggets.com",className:"icon-links",children:"sales@cbtnuggets.com"})]})]})]})},ed=t(53964),eu=t(7013),em=t(67686),eh=t(67619),ep=t(41011),ef=t(3510);function eg(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function eb(e){for(var n=1;n20)){e.next=9;break}return e.abrupt("return",A(S));case 9:return e.prev=9,e.next=12,(0,f.od)({method:"POST",url:"".concat(em.yh,"/contact_us"),headers:{"Content-Type":"applicationhttps://www.cbtnuggets.com/json"},data:M});case 12:if(200!==e.sent.status){e.next=50;break}return e.next=16,f.od.post("/api/request-ip");case 16:return z=e.sent.data,e.next=20,(0,eh.R)({email:M.email});case 20:if(L=e.sent.unsaltedEmail,D=(0,ep.i)(),!(M.department===j&&"1"!==M.quantity)){e.next=40;break}return window.dataLayer.push({event:"formSubmission",enhanced_conversion_data:{email:"".concat(M.email.trim())}}),G="contact_sales_form",q={},(0,a.Z)(q,G,{}),(0,a.Z)(q,"membership",{}),W=q,e.next=29,(0,eh.R)({email:M.email});case 29:U=e.sent.unsaltedEmail,V=(0,ep.i)(),W.membership=eb(eb({},V),{},{email:U,ipaddress:z}),W[G].phone=M.phone,W[G].first_name=M.first_name,W[G].last_name=M.last_name,W[G].country=M.country,W[G].company=M.company,W[G].number_of_employees=M.quantity,(0,eu.w)(G,W);case 40:(H={contact_form:{},membership:{}}).contact_form.request_type=M.department,"ls"===M.department&&(H.contact_form.level_of_support=M.support_level),H.contact_form.operating_system=M.os,H.contact_form.browser=M.browser,H.contact_form.flash_installed=M.flash,H.membership=eb({email:L},D),(0,eu.w)("contact_form",H),A(S);case 50:e.next=55;break;case 52:e.prev=52,e.t0=e.catch(9),A(C);case 55:case"end":return e.stop()}},e,null,[[9,52]])})),v=function(e){if("ls"===ea){if(!es)return(0,V.jsxs)("div",{children:[(0,V.jsx)(m.Z.Top,{changeCursorOnDisabled:!0,children:"System"}),(0,V.jsx)("br",{}),(0,V.jsxs)("p",{children:[W," / ",H]})," ",(0,V.jsxs)(h.Z.Standard,{id:"systemChange",onClick:function(){return eg(!0)},children:[" ","change"]})]});var n=(0,V.jsx)(U.th,{children:(0,V.jsx)(U.xr,{children:"Supported versions: IE11, IE10, IE9"})}),t=z.map(function(e){return(0,V.jsx)("option",{value:e,children:e},e)}),a=L.map(function(e){return(0,V.jsx)("option",{value:e,children:e},e)});return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(en,{name:"os",label:"Operating System",labelSpan:"- optional",onChange:function(n){e(n),ey(n.target.value===w)},children:t}),ev&&(0,V.jsx)(X,{name:"other_os",label:w}),(0,V.jsx)(en,{name:"browser",label:"Browser",labelSpan:"- optional",onChange:function(n){e(n),eS(n.target.value===w),eN(n.target.value===P||n.target.value===N)},children:a}),eO&&n,ew&&(0,V.jsx)(X,{name:"other_browser",label:w}),(0,V.jsx)(ee,{name:"flash",label:"Do you have flash installed?",items:[{value:"true",text:"Yes"},{value:"false",text:"No"}]})]})}return null},(0,V.jsx)(l.J9,{initialValues:{department:ea,os:W,browser:H,flash:"true",firstName:"",lastName:"",email:"",phone:"",subject:" ",message:"",ext:""},validateOnChange:!0,validateOnBlur:!0,validationSchema:ei,onSubmit:function(e,n){return i.apply(this,arguments)},children:function(e){var t=e.values,a=e.handleChange,r=e.status,i=e.submitCount,o=D.map(function(e){return(0,V.jsx)("option",{value:e.value,children:e.label},e.value)}),s=n-t.message.length,d=(0,c.Z)(s,0,s),u=[{value:"Billing",text:"Billing"},{value:"Technical Support",text:"Technical Support"},{value:"Feedback",text:"Feedback"},{value:w,text:w}];return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("input",{type:"hidden",name:"gaCid",id:"gaCid",ref:I}),(0,V.jsx)("input",{type:"hidden",name:"gaHid",id:"gaHid",ref:A}),(0,V.jsx)("input",{type:"hidden",name:"gaclientid",id:"gaclientid",ref:B}),(0,V.jsx)("input",{type:"hidden",name:"gacampaign",id:"gacampaign",ref:E}),(0,V.jsx)("input",{type:"hidden",name:"gamedium",id:"gamedium",ref:T}),(0,V.jsx)("input",{type:"hidden",name:"gasource",id:"gasource",ref:M}),(0,V.jsx)("input",{type:"hidden",name:"gatrackid",id:"gatrackid",ref:F}),(0,V.jsx)("input",{type:"hidden",name:"gauserid",id:"gauserid",ref:R}),(0,V.jsx)("input",{type:"hidden",name:"oid",value:"00D750000008g7b"}),(null==r?void 0:r.length)>0?eM(r):(0,V.jsxs)(l.l0,{id:"contact-form",children:[(0,V.jsxs)(U.AM,{children:[(0,V.jsxs)("div",{children:[(0,V.jsx)(en,{name:"department",label:"Who would you like to speak to?",onChange:function(e){a(e),er(e.target.value!==j?"ls":j),eg(!1)},dataAt:"department",children:o}),"ls"===ea&&(0,V.jsx)(ee,{name:"supportLevel",label:"What level of support is needed?",items:u}),(0,V.jsx)(X,{name:"firstName",label:"First name",dataAt:"firstName"}),(0,V.jsx)(X,{name:"lastName",label:"Last name",dataAt:"lastName"}),(0,V.jsx)(X,{name:"email",label:"Work Email",dataAt:"email"}),"ls"===ea&&(0,V.jsx)(X,{name:"order",label:"Order number",labelSpan:"- optional",dataAt:"order"}),ea===j&&(0,V.jsx)(X,{name:"company",label:"Company",dataAt:"company"}),(0,V.jsx)(en,{name:"country",label:"Country",dataAt:"country",children:ed.J.map(function(e){return(0,V.jsx)("option",{value:e,children:e},e)})}),(0,V.jsx)(X,{name:"phone",label:"Phone",dataAt:"phone"}),(0,V.jsx)(X,{name:"ext",label:"Extension",labelSpan:"- optional",dataAt:"ext"}),ea===j&&(0,V.jsx)(ee,{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+"}]}),v(a)]}),(0,V.jsx)("div",{children:(0,V.jsx)(l.gN,{name:"message",children:function(e){var a,r=e.field,o=e.meta;return(0,V.jsx)(Q,{field:r,meta:o,rows:"10",cols:"20",label:"How can we help?",labelSpan:"(Max ".concat(n," chars)"),maxLength:n,charLimitMsg:(null===(a=t.message)||void 0===a?void 0:a.length)>0&&"".concat(d," chars remaining"),hasSubmitted:i>0,dataAt:"message"})}})}),(0,V.jsx)(U.R5,{tabIndex:-1,name:"honeypot",onChange:function(e){return eT(e.target.value)}})]}),(0,V.jsxs)(U.Gx,{children:[(0,V.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,V.jsxs)("p",{children:["I have read and understood the"," ",(0,V.jsx)(x.l7,{newWindow:!0,href:"/privacy",renderAs:"/privacy",children:"privacy policy"}),", and am able to consent to it."]})]})]})]})}})),(void 0===k||k)&&(_?(0,V.jsx)(ec,{}):(0,V.jsx)(el,{}))]}):(0,V.jsx)(u.Z,{})}},53964:function(e,n,t){t.d(n,{J:function(){return a}});var a=["United States","Afghanistan","Albania","Algeria","American Samoa","Andorra Principality of","Angola","Anguilla","Antarctica","Antigua and Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaidjan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia-Herzegovina","Botswana","Bouvet Island","Brazil","British Indian Ocean Territory","Brunei Darussalam","Bulgaria","Burkina Faso","Burundi","Cambodia Kingdom of","Cameroon","Canada","Cape Verde","Cayman Islands","Central African Republic","Chad","Chile","China","Christmas Island","Cocos (Keeling) Islands","Colombia","Comoros","Congo The Democratic Republic of the","Congo","Cook Islands","Costa Rica","Croatia","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","Timor-Leste","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Falkland Islands","Faroe Islands","Fiji","Finland","Former Czechoslovakia","Former USSR","France (European Territory)","France","French Guyana","French Southern Territories","Gabon","Gambia","Georgia","Germany","Ghana","Gibraltar","Great Britain","Greece","Greenland","Grenada","Guadeloupe (French)","Guam (USA)","Guatemala","Guinea Bissau","Guinea","Guyana","Haiti","Heard and McDonald Islands","Holy See (Vatican City State)","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Ivory Coast (Cote DIvoire)","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyz Republic (Kyrgyzstan)","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macau","Macedonia","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Martinique (French)","Mauritania","Mauritius","Mayotte","Mexico","Micronesia","Moldavia","Monaco","Mongolia","Montserrat","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands Antilles","Netherlands","Neutral Zone","New Caledonia (French)","New Zealand","Nicaragua","Nigeria","Niger","Niue","Norfolk Island","North Korea","Northern Mariana Islands","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Pitcairn Island","Poland","Polynesia (French)","Portugal","Puerto Rico","Qatar","Reunion (French)","Romania","Russian Federation","Rwanda","S. Georgia & S. Sandwich Isls.","Saint Helena","Saint Kitts & Nevis Anguilla","Saint Lucia","Saint Pierre and Miquelon","Saint Tome (Sao Tome) and Principe","Saint Vincent & Grenadines","Samoa","San Marino","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovak Republic","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","Spain","Sri Lanka","Sudan","Suriname","Svalbard and Jan Mayen Islands","Swaziland","Sweden","Switzerland","Syria","Tadjikistan","Taiwan","Tanzania","Thailand","Togo","Tokelau","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Turks and Caicos Islands","Tuvalu","USA Minor Outlying Islands","Uganda","Ukraine","United Arab Emirates","United Kingdom","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Virgin Islands (British)","Virgin Islands (USA)","Wallis and Futuna Islands","Western Sahara","Yemen","Yugoslavia","Zaire","Zambia","Zimbabwe"]},41011:function(e,n,t){t.d(n,{i:function(){return a}});var a=function(){var e,n,t,a,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!==(a=null==r?void 0:r.userId)&&void 0!==a?a:""}}},3510:function(e,n,t){t.d(n,{W:function(){return l}});var a,r=t(50029),i=t(64687),o=t.n(i),s=t(87066),l=(a=(0,r.Z)(o().mark(function e(){var n,t,a,r,i,l,c,d,u,m,h,p,f,g,b,x,v,y;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.Z.get("/api/ga");case 2:return u=e.sent.data,h=null!==(n=(m=new URLSearchParams(window.location.search)).get("utm_source"))&&void 0!==n?n:"",p=null!==(t=m.get("utm_medium"))&&void 0!==t?t:"",f=null!==(a=m.get("utm_campaign"))&&void 0!==a?a:"",g=null!==(r=m.get("utm_content"))&&void 0!==r?r:"",b=null!==(i=m.get("utm_term"))&&void 0!==i?i:"",x=null!==(l=m.get("gclid"))&&void 0!==l?l:"",v=null!==(c=m.get("fbclid"))&&void 0!==c?c:"",y=null!==(d=m.get("MSCLKID"))&&void 0!==d?d:"",e.abrupt("return",{gasource:h,gamedium:p,gacampaign:f,gacontent:g,gaterm:b,gclid:x,fbclid:v,msclkid:y,ga_session_ids:"".concat(u)});case 14:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},97500:function(e,n,t){t.d(n,{B:function(){return a}});var a=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,n,t){t.d(n,{A_:function(){return i},uF:function(){return r}});var a=t(33811),r=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e&&(0,a.Nq)()){var t=document.body.getBoundingClientRect().top,r=e.getBoundingClientRect().top;window.scrollTo({top:r-t-n,behavior:"smooth"})}},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"contact-form";e&&r(document.getElementById(e),50)};n.ZP=function(e){e&&e.scrollIntoView({behavior:"smooth",block:"center"})}}}]);