1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1625],{22695:(e,s,t)=>{t.d(s,{A:()=>n});var a=t(60982),r=t(14343);function n(e){let{allCookies:s,setCookie:t,removeCookie:n}=(0,a.$)();return[s[e],(0,r.useCallback)((s,a)=>{t(e,s,a)},[e,t]),(0,r.useCallback)(s=>{n(e,s)},[e,n])]}},42934:(e,s,t)=>{t.d(s,{Q:()=>a});let a=e=>{let s=document.createElement("form");for(let[t,a]of(s.method="POST",s.action="https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8&orgId=00D1t000000EXkF",s.target="salesforce",Object.entries(e)))if(Array.isArray(a))for(let e=0;e<a.length;e++)s.appendChild(r(t,a[e]));else s.appendChild(r(t,a));document.body.appendChild(s),s.submit()},r=(e,s)=>{let t=document.createElement("input");return t.name=e,t.value=s,t.setAttribute("type","hidden"),t}},51427:(e,s,t)=>{t.d(s,{A:()=>i,O:()=>n});var a=t(14343),r=t(22695);let n={sendingAmount:1e3,sendingCurrency:"USD",receivingAmount:0,receivingCurrency:"EUR",fixedField:"sending",destinationCountry:"US"};function i(){let[e,s]=(0,r.A)("lastQuote"),t=(0,a.useMemo)(()=>({sendingAmount:e?.sendingAmount??n.sendingAmount,sendingCurrency:e?.sendingCurrency??n.sendingCurrency,receivingAmount:e?.receivingAmount??n.receivingAmount,receivingCurrency:e?.receivingCurrency??n.receivingCurrency,fixedField:e?.fixedField??n.fixedField,destinationCountry:e?.destinationCountry??n.destinationCountry}),[e]),i=(0,a.useRef)(e);(0,a.useEffect)(()=>{i.current=e},[e]);let l=(0,a.useRef)(t);return(0,a.useEffect)(()=>{l.current=t},[t]),[t,(0,a.useCallback)((e,t)=>{let a="function"==typeof e?e(l.current):e;s({...i.current&&"object"==typeof i.current?i.current:{},...a},{expires:30,...t})},[s]),e]}},82104:(e,s,t)=>{t.d(s,{A:()=>h});var a=t(15383),r=t(14343),n=t(15211),i=t(54486),l=t(90307),o=t(95358);let c=({errors:e,register:s})=>(0,a.jsxs)("div",{id:"divRisk",className:"flex flex-col",children:[(0,a.jsxs)("label",{htmlFor:"solution1",className:"mb-4 font-medium",children:["ERP solution",(0,a.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("input",{id:"solution1",type:"checkbox",className:"size-5 cursor-pointer accent-black",...s("solution"),value:"MD365 F&O"}),(0,a.jsx)("label",{htmlFor:"solution1",className:"flex items-center gap-2",children:(0,a.jsx)("span",{children:"Microsoft Dynamics 365 Finance"})})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("input",{id:"solution2",type:"checkbox",className:"size-5 cursor-pointer accent-black",...s("solution"),value:"MD365 BC"}),(0,a.jsx)("label",{htmlFor:"solution2",className:"flex items-center gap-2",children:(0,a.jsx)("span",{children:" Microsoft Business Central"})})]}),(0,a.jsxs)("div",{className:"flex cursor-pointer items-center gap-2",children:[(0,a.jsx)("input",{id:"solution3",type:"checkbox",className:"size-5 cursor-pointer accent-black",...s("solution"),value:"Sage Intacct"}),(0,a.jsx)("label",{htmlFor:"solution3",className:"flex items-center gap-2",children:(0,a.jsx)("span",{children:" Sage Intacct"})})]})]}),e.solution&&(0,a.jsx)("span",{className:"text-red-500",children:e.solution.message})]}),m={title:"Book a demo",description:"Submit this form to book a demo with our team",submitButtonText:"Book a demo",successText:"Our team will reach out to schedule a demo shortly"};var u=t(42934),d=t(99104);let x=async({data:e,contactModalButton:s,currencyCodeValue:t,setShowForm:a,setErrorMessage:r})=>{let n={oid:"00D1t000000EXkF",lead_source:"Risk Assessment"===s?"Risk Assessment Form":"ERP Contact Form",company:e.firstName+e.lastName,first_name:e.firstName,last_name:e.lastName,email:e.businessEmail,"00NVh000000KUtC":"Risk Assessment"===s?"Risk Assessment":"Book a demo",recordType:"Risk Assessment"===s?"0124J000000Uop1":"0121t000000ZG0o","00N4L00000AefiB":"Risk Assessment"===s?"113142":"112,862",...["MD365 F&O","MD365 BC","Sage Intacct"].includes(s)?{"00N4L000008ge4J":s}:"Generic ERP Solutions"===s?{"00N4L000008ge4J":e.solution}:"Risk Assessment"===s?{currency:t}:{}},i={eventName:"Marketing Preference Updated",email:e.businessEmail,dataFields:{location:"ERPContactForm",emailMarketingAllowed:e.marketingConsent}};if(window?.dataLayer&&window?.dataLayer?.push({event:"ERPFormSubmitted",...n}),d.Ay.trackEvent("Button Clicked",{buttonName:"ERPContactFormSubmitted",url:window.location.href,path:window.location.pathname,onBusinessPage:!0}),(0,u.Q)(n),e.marketingConsent)try{switch((await fetch("/api/rate-alert-marketing/",{body:JSON.stringify(i),method:"POST",headers:{"Content-Type":"application/json"}})).status){case 200:a(!1);break;case 400:r("Sorry, unable to subscribe to Marketing updates. Please try again"),setTimeout(()=>{r(null)},2500);break;case 401:case 503:r("Sorry, unable to subscribe to Marketing updates. Please try again later"),setTimeout(()=>{r(null)},2500)}}catch(e){r("Sorry, unable to subscribe to Marketing updates. Please try again later"),setTimeout(()=>{r(null)},2500)}else a(!1)};var p=t(51427);let h=({contactModalButton:e})=>{let s=i.Ik({firstName:i.Yj().min(1,{message:"First name is required"}),lastName:i.Yj().min(1,{message:"Last name is required"}
1),businessEmail:i.Yj().email({message:"Email is required"}),solution:i.YO(i.KC([i.eu("MD365 F&O"),i.eu("MD365 BC"),i.eu("Sage Intacct")])).min(1,{message:"Please select a solution"}),currencyCode:i.Yj(),marketingConsent:i.zM()}).pick({firstName:!0,lastName:!0,businessEmail:!0,marketingConsent:!0,..."Generic ERP Solutions"===e&&{solution:!0},..."Risk Assessment"===e&&{currencyCode:!0}}),[t]=(0,p.A)(),u="Generic ERP Solutions"!==e&&"Risk Assessment"!==e?[e]:["MD365 F&O"],{register:d,handleSubmit:h,setValue:b,getValues:f,formState:{errors:g,isValid:y},trigger:N}=(0,n.mN)({resolver:(0,l.u)(s),defaultValues:{solution:u,currencyCode:t.sendingCurrency,marketingConsent:!1}}),[k,j]=(0,r.useState)(!0),[v,C]=(0,r.useState)(t.sendingCurrency),[A,E]=(0,r.useState)(null),F=h(async s=>{try{await x({data:s,contactModalButton:e,currencyCodeValue:v,setShowForm:j,setErrorMessage:E})}catch(e){E("Sorry, unable to submit. Please try again later.")}}),S={"Generic ERP Solutions":{...m,html:(0,a.jsx)(c,{errors:g,register:d})},"Risk Assessment":{title:"Book a risk assessment",description:"Submit this form to book a risk assessment with our team",submitButtonText:"Book a risk assessment",successText:"Our team will reach out to schedule a risk assesment shortly",html:(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"font-medium",htmlFor:"lastName",children:"Your local currency"}),(0,a.jsx)(o.A,{id:"currencyCode",name:"currencyCode",currentValue:v,$usedOn:"risk-erp-form",onSelect:C,className:"w-full",whitelist:void 0,blacklist:void 0})]})},"MD365 F&O":m,"MD365 BC":m,"Sage Intacct":m},w=S[e]?.title,R=S[e]?.description,M=S[e]?.submitButtonText;return k?A?(0,a.jsxs)("div",{className:"px-8 text-center",children:[(0,a.jsx)("h3",{className:"mb-4 text-[24px]",children:"Error"}),(0,a.jsx)("p",{children:A})]}):(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"mb-4 text-center text-[24px]",children:w}),(0,a.jsx)("p",{className:"mb-6 text-center",children:R}),(0,a.jsxs)("form",{onSubmit:F,children:[(0,a.jsxs)("div",{className:"mb-6 flex flex-col gap-4 sm:flex-row",children:[(0,a.jsxs)("div",{className:"relative flex flex-col",children:[(0,a.jsxs)("label",{className:"font-medium",htmlFor:"firstName",children:["First name",(0,a.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,a.jsx)("input",{className:"h-12.5 rounded-md border-2 px-3",...d("firstName"),id:"firstName",type:"text",placeholder:"First Name",onBlur:()=>N("firstName")}),g.firstName&&(0,a.jsx)("span",{className:"absolute top-18.5 text-red-600",children:g.firstName.message})]}),(0,a.jsxs)("div",{className:"relative flex flex-col",children:[(0,a.jsxs)("label",{className:"font-medium",htmlFor:"lastName",children:["Last name",(0,a.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,a.jsx)("input",{className:"h-12.5 rounded-md border-2 p-3",type:"text",id:"lastName",placeholder:"Last Name",...d("lastName"),onBlur:()=>N("lastName")}),g.lastName&&(0,a.jsx)("span",{className:"absolute top-18.5 text-red-600",children:g.lastName.message})]})]}),(0,a.jsxs)("div",{className:"relative mb-6 flex flex-col",children:[(0,a.jsxs)("label",{className:"font-medium",htmlFor:"businessEmail",children:["Business email",(0,a.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,a.jsx)("input",{className:"h-12.5 rounded-md border-2 p-3",...d("businessEmail"),type:"text",id:"businessEmail",placeholder:"[email protected]",onBlur:()=>N("businessEmail")}),g.businessEmail&&(0,a.jsx)("span",{className:"absolute top-18.5 text-red-600",children:g.businessEmail.message})]}),S[e]?.html,(0,a.jsx)("hr",{className:"my-6 h-px border-t-0 bg-neutral-100 opacity-100 dark:opacity-50"}),(0,a.jsxs)("label",{className:"mb-6 flex cursor-pointer items-center gap-2",children:[(0,a.jsx)("input",{id:"marketingConsent",className:"size-5 accent-black",type:"checkbox",...d("marketingConsent"),onChange:()=>{var e,s;let t;return s="marketingConsent",void("boolean"==typeof(t=f(e="marketingConsent"))?b(e,!t):t.includes(s)?b(e,t.filter(e=>e!==s)):b(e,[...t,s]))}}),(0,a.jsxs)("span",{children:[" ","Iâd like to receive emails about news & updates from Xe"]})]}),(0,a.jsx)("button",{disabled:!y,className:`flex w-full cursor-pointer items-center justify-center py-[13px] ${y?"bg-xe-primary-500 hover:bg-xe-primary-450 text-white":"cursor-not-allowed bg-gray-300 text-gray-500"} rounded-[6px] font-semibold`,type:"submit",children:M})," "]}),(0,a.jsxs)("div",{className:"mt-6 text-center text-[12px]",children:["By contacting Xe, you agree to our"," ",(0,a.jsx)("span",{className:"text-blue-500",children:(0,a.jsx)("a",{target:"_blank",href:"https://help.xe.com/hc/sections/360005694438-Terms-and-policies",children:"Privacy Policy"})})]})]}):(0,a.jsxs)("div",{className:"px-8 text-center",children:[(0,a.jsx)("h3",{className:"mb-4 text-[24px]",children:"Success!"}),(0,a.jsx)("p",{children:S[e]?.successText})]})}},87018:(e,s,t)=>{t.d(s,{A:()=>m});var a=t(15383),r=t(42096),n=t(78444),i=t(18534),l=t(20755),o=t(39370);let c={renderMark:o.fF.renderMark,renderNode:{[n.nA.EMBEDDED_ASSET]:()=>null,[n.nA.EMBEDDED_ENTRY]:()=>null,[n.XD.EMBEDDED_ENTRY]:()=>null,[n.nA.PARAGRAPH]:(e,s)=>{let{state:t}=(0,l.JP)(),a=Array.isArray(s)?[...s]:[s];return(0,o.$R)(a,t),a}}};function m({content:e,onDark:s=!1,className:t}){if(!e)return null;let n=(0,r.i)(e,c);return(0,a.jsx)("span",{className:(0,i.cn)("block text-sm leading-8 font-medium tracking-[0.7px] uppercase",s?"text-white/85":"text-gray-dark",t),children:n})}},95358:(e,s,t)=>{t.d(s,{A:()=>x});var a=t(15383),r=t(14343),n=t(50084),i=t.n(n),l=t(78090),o=t(47049),c=t(71130),m=t(60491),u=t(38804);let d=({whitelist:e,blacklist:s,...t})=>{let{currencyData:n}=(0,m.n)(),i=(0,l.ot)(),d=(0,o.c)(),x=(0,r.useMemo)(()=>{let t=[];for(let[e,{isObsolete:s}]of Object.entries(n)){let r=i.currencies[e].name,n=s?`${r} (${d("misc.obsoleteLabel")})`:r,l=i.currencies[e].relatedTerms;l=Array.isArray(l)?l:[];let o=s=>
1(0,a.jsx)(c.A,{currencyCode:e,...s});t.push({value:e,description:n,keywords:l,Icon:o})}return e&&(t=t.filter(s=>e.includes(s.value))),s&&(t=t.filter(e=>!s.includes(e.value))),t},[n,e,s,i,d]),p=(0,r.useCallback)((e,s)=>n[e.value]?.isObsolete&&!n[s.value]?.isObsolete?1:!n[e.value]?.isObsolete&&n[s.value]?.isObsolete?-1:0,[n]);return(0,a.jsx)(u.A,{searchPlaceholder:d("misc.searchPrompt"),options:x,finalSortFn:p,...t})};d.propTypes={whitelist:i().arrayOf(i().string),blacklist:i().arrayOf(i().string)};let x=d}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.