1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1847],{9251:(e,t,r)=>{"use strict";r.d(t,{w:()=>a});let n=["FR","CH","IT","ES","GB","AT","PT","PL","NL","BE","SE","DK","NO","FI","IE","CZ","EE","HU","SK","SI","GR","LU","IS","LI","DE"];function a(e){return n.includes(e)}},9710:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/currencycharts",function(){return r(89118)}])},18351:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n,a,s,i,o=r(75038),l=r(7456),c=r(76430);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var m=(0,c.forwardRef)(function(e,t){return c.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",ref:t},e),n||(n=c.createElement("path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"})),a||(a=c.createElement("path",{d:"M21 3v5h-5"})),s||(s=c.createElement("path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"})),i||(i=c.createElement("path",{d:"M8 16H3v5"})))}),u=(0,c.memo)(m);function p({onClick:e,ariaLabel:t,className:r}){return(0,o.jsx)("button",{type:"button",onClick:e,"aria-label":t,className:(0,l.cn)("border-surface-level-02 flex h-11 w-11 cursor-pointer items-center justify-center rounded-full border-2 bg-white transition-colors hover:bg-[#F0F3F8] sm:h-12 sm:w-12",r),children:(0,o.jsx)(u,{className:"text-surface-brand size-5"})})}},23244:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(88469),a=r(99173);let s=n.Ay.label.withConfig({componentId:"sc-ff19726b-0"})(["display:inline-block;color:",";"," ","{font-size:16px;}font-size:",";font-weight:",";"],({theme:e,$usedOn:t})=>"high-value-lead-form"===t?"black":e.paragraph.color,({$required:e})=>e?` 2 ::after { 3 content: "*"; 4 } 5 `:"",a.Wi.minWidthSm,({$usedOn:e})=>"rate-alert-modal"===e||"high-value-lead-form"===e?"14px":"16px",({$usedOn:e})=>"rate-alert-modal"===e||"high-value-lead-form"===e?"400":"550")},24101:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(75038),a=r(76430),s=r(16020),i=r(70744),o=r(7456),l=r(26310),c=r(62861),d=r(85369),m=r(83975),u=r(85687),p=r(18569);function h({className:e}){let t=(0,i.c)(),[r]=(0,d.A)(),[,x]=(0,m.A)(),{currencyData:f,countryCode:g}=(0,u.n)(),y=(0,p.e)(g),b=(0,a.useMemo)(()=>[{pathname:"/currencyconverter/",text:t("misc.convertTabLabel"),icon:"Coins",buttonName:"CurrencyConverterWidget Convert",isActiveCallback:e=>"/"===e||"/currencyconverter/"===e||"/currencyconverter/convert/"===e},{pathname:"/send-money/",text:t("misc.sendTabLabel"),icon:"PaperPlaneTilt",buttonName:"CurrencyConverterWidget Send",onClick:e=>{if("/currencycharts/"===e||"/currencyconverter/"===e){let e=!!f[r.toCurrency
5]?.isBuyable;x({sendingCurrency:r.fromCurrency,receivingCurrency:e?r.toCurrency:void 0,destinationCountry:e?r.destinationCountry:void 0},{persist:!1})}}},{pathname:"/currencycharts/",text:t("misc.chartsTabLabel"),icon:"ChartLine",buttonName:"CurrencyConverterWidget Charts"},{pathname:"/ratealerts/",text:t("misc.alertsTabLabel"),icon:"Bell",buttonName:"CurrencyConverterWidget Alerts"}].filter(e=>!y||"/currencyconverter/"!==e.pathname),[t,x,r,f,y]),w=(0,s.a8)(),{pathname:v}=b.find(({pathname:e,isActiveCallback:t})=>t?t(w):w===e)??{};return(0,n.jsx)("div",{className:(0,o.cn)("border-gray-250 grid gap-1 rounded-full border border-solid p-2 md:gap-2",3===b.length?"grid-cols-3":"grid-cols-4",e),children:b.map(e=>{let{pathname:t,text:r,icon:a}=e;return(0,n.jsxs)(s.N_,{prefetch:!1,href:t,className:(0,o.cn)(t===v?"bg-greyblue-400 hover:bg-greyblue-300 text-white [&_svg]:fill-white":"text-greyblue-300 [&_svg]:fill-greyblue-300 bg-transparent hover:bg-gray-200","flex h-9 items-center justify-center gap-2 rounded-full text-center text-[13px] font-semibold transition-colors duration-200"),onClick:()=>(({buttonName:e,onClick:t})=>{e&&l.Ay.trackEvent("Button Clicked",{buttonName:e,url:window.location.href,path:window.location.pathname,isBusinessPage:!1}),t?.(v)})(e),children:[(0,n.jsx)(c.M,{iconName:a,className:"hidden w-5 md:block"}),(0,n.jsx)("span",{className:"overflow-x-hidden text-ellipsis whitespace-nowrap",children:r})]},t)})})}},41496:(e,t,r)=>{"use strict";r.d(t,{CD:()=>v,UX:()=>b,dY:()=>w});var n=r(75038),a=r(16020),s=r(91551),i=r(56626),o=r(7456),l=r(63840),c=r(67132),d=r(14803),m=r(54583),u=r(99639),p=r(35037),h=r(54259),x=r(56058),f=r(76430),g=r(70744);let y={link:e=>(0,n.jsx)(w,{href:"/faq/article/what-is-the-mid-market-rate/",children:e})},b=(0,f.memo)(function({className:e}){let t=(0,g.c)();return(0,n.jsxs)("div",{className:(0,o.cn)("midmarket-tooltip flex items-center text-sm",e),children:[t("currency-chart.midmarketTooltipPrompt"),(0,n.jsxs)(l.y,{children:[(0,n.jsx)(c.W,{openOnHover:!0,children:(0,n.jsx)(s.A,{style:{color:"var(--color-gray-750)",width:"16px",height:"16px",marginLeft:"4px"}})}),(0,n.jsx)(d.i,{children:(0,n.jsx)(m.U,{className:"z-50",side:"right",sideOffset:8,children:(0,n.jsxs)(u.i,{className:"bg-xe-primary-700 max-w-64 rounded-lg p-3 text-white shadow-lg",children:[(0,n.jsx)(p.R,{className:"flex data-[side=bottom]:-top-3 data-[side=bottom]:-rotate-90 data-[side=left]:-right-3 data-[side=right]:-left-3 data-[side=right]:rotate-180 data-[side=top]:-bottom-3 data-[side=top]:rotate-90",children:(0,n.jsx)(x.J,{size:20,weight:"fill",className:"fill-xe-primary-700"})}),(0,n.jsx)(h.u,{className:"text-sm",children:t.rich("quoter.midmarketRatesTooltip",y)})]})})})]})]})}),w=({children:e,href:t})=>t?(0,n.jsx)(a.N_,{className:"text-xe-primary-400 underline",prefetch:!1,href:t,children:e}):e,v=e=>(0,n.jsx)("button",{className:"inline-flex rounded-full border border-gray-300 p-4",...e,children:(0,n.jsx)(i.A,{className:"text-xe-primary-500 size-4 rotate-90 md:rotate-0"})})},48651:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(51460),a=r(85687),s=r(85369);let i=()=>{let[e,t]=(0,s.A)(),{currencyData:r}=(0,a.n)(),i=e.toCurrency,o=r[i]?.isBuyable??!1;(0,n.u)(o?`/api/get-country-from-currency/?currency=${i}`:null,{revalidateOnMount:!0,revalidateOnFocus:!1,onSuccess:({country:e})=>{e&&t({destinationCountry:e},{persist:!1})}})}},56626:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n,a=r(76430);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var i=(0,a.forwardRef)(function(e,t){return a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 17 17","aria-hidden":"true",ref:t},e),n||(n=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m11.726 1.273 2.387 2.394H.667V5h13.446l-2.386 2.393.94.94 4-4-4-4-.94.94zM.666 12.333l4 4 .94-.94L3.22 13h13.447v-1.333H3.22l2.386-2.394-.94-.94-4 4z",clipRule:"evenodd"})))});let o=(0,a.memo)(i)},63477:(e,t,r)=>{"use strict";r.d(t,{A:()=>
5o,Q:()=>i});var n=r(76430),a=r(78732),s=r(82641);let i=({from:e,to:t})=>{let r=(0,s.A)(),[i,o,l]=(0,a.Fo)("recentFrom",null),[c,d,m]=(0,a.Fo)("recentTo",null);return(0,n.useEffect)(()=>{r||o(t=>{if(null===t)return[e];let r=t.indexOf(e);return -1!==r&&t.splice(r,1),t.unshift(e),t.length>5&&t.pop(),t})},[e]),(0,n.useEffect)(()=>{r||d(e=>{if(null===e)return[t];let r=e.indexOf(t);return -1!==r&&e.splice(r,1),e.unshift(t),e.length>5&&e.pop(),e})},[t]),{recentFrom:i,recentTo:c}},o=i},64191:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(75038),a=r(16020),s=r(28608),i=r(70203),o=r(70744),l=r(37018);function c({heading:e,subheading:t,children:r,hideDisclaimer:d}){let m=(0,o.c)();return(0,n.jsxs)("div",{className:"from-blue-850 relative bg-linear-to-l to-blue-700 pt-8",children:[(0,n.jsx)("div",{className:"m-auto grid max-w-(--breakpoint-xl) gap-6 px-4 md:gap-12 md:px-10",children:(0,n.jsxs)("div",{className:"z-10 flex flex-col gap-8",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-3 text-center md:p-6",children:[(0,l.fO)(e)&&(0,n.jsx)("h1",{className:"xs:text-[34px] text-center text-[24px] font-semibold text-white md:text-[40px]",children:(0,n.jsx)(l.Ay,{heading:e})}),t&&(0,n.jsx)("p",{className:"text-greyblue-100 text-base leading-[1.8rem] font-normal md:text-xl",children:t})]}),(0,n.jsx)("div",{children:r}),!d&&(0,n.jsx)("div",{className:"px-6 md:px-10",children:(0,n.jsxs)("p",{className:"text-greyblue-300 text-center text-xs font-normal",children:[(0,n.jsx)("span",{className:"mr-2 inline-block",children:(0,n.jsx)(i.m,{className:"text-greyblue-300 w-3"})}),m.rich("converter.fcatooltip",{span:e=>(0,n.jsx)(a.N_,{prefetch:!1,href:s.x$+"?icid=XECOM:Home:LoginBut:Login:Glob:HPXEMTLogin",className:"text-blue-400 underline",children:e})})]})})]})}),(0,n.jsx)("div",{className:"absolute bottom-0 z-auto h-50 w-full overflow-hidden before:absolute before:top-0 before:-right-50 before:-bottom-25 before:-left-50 before:rounded-[100%] before:bg-white"})]})}},71321:(e,t,r)=>{"use strict";r.d(t,{A:()=>u,N:()=>d});var n=r(75038),a=r(76430),s=r(50084),i=r.n(s);let o=(0,a.createContext)(),l={fromCurrency:"USD",toCurrency:"USD"},c={state:l},d=()=>(0,a.useContext)(o)??c,m=({children:e})=>{let[t,r]=(0,a.useState)(l),s=(0,a.useMemo)(()=>({state:t,setState:r}),[t]);return(0,n.jsx)(o.Provider,{value:s,children:e})},u=m;m.propTypes={children:i().node}},82641:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(76430);let a=function(){let e=(0,n.useRef)(!0);return e.current?(e.current=!1,!0):e.current}},84368:(e,t,r)=>{"use strict";r.d(t,{br:()=>m,fh:()=>u,ks:()=>p});var n=r(75038),a=r(76430),s=r(50084),i=r.n(s),o=r(88469),l=r(99173),c=r(23244);let d="1.5em",m=({initialValue:e="",validator:t,errorDelay:r=1e3}={})=>{let n=(0,a.useCallback)(e=>t?t(e):[!0],[t]),[s,i]=(0,a.useState)(e),[o,l]=(0,a.useState)(n(s)[0]),[c,d]=(0,a.useState)(!1),m=(0,a.useRef)(),[u,p]=(0,a.useState)();return(0,a.useEffect)(()=>{let[e,t]=n(s);l(e),p(t),e&&(m.current&&clearTimeout(m.current),d(!1))},[s,n]),{value:s,isValid:o,isErrorDelayOver:c,errorMessage:u,onChange:e=>{i(e.target.value),d(!1),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{d(!0)},r)},onBlur:()=>{m.current&&clearTimeout(m.current),d(!0)}}},u=(0,a.forwardRef)(function(e,t){let{label:r,helperText:a,Icon:s,name:i,value:o,required:l,disabled:d,isValid:m,errorMessage:u,isErrorDelayOver:y,className:b,style:w,as:v,$usedOn:j,hideTopHelperTextPadding:C,topInputText:N,inputTextColor:k="black",...A}=e,T=i?.replace(/[\W]/g,"")??null,$=!m&&y;return(0,n.jsxs)(g,{$disabled:d,className:b,style:w,$usedOn:j,children:[r&&(0,n.jsx)(c.A,{htmlFor:T,$required:l,style:{marginBottom:"4px"},$usedOn:j,children:r}),(0,n.jsxs)(h,{children:[N&&(0,n.jsx)(x,{children:N}),s&&(0,n.jsx)(s,{className:"text-input-icon"}),(0,n.jsx)(p,{id:T,name:i,value:o,required:l,disabled:d,$usedOn:j,isError:$,hasIcon:!!s,"aria-invalid":$,as:v,ref:t,style:{background:"white"},inputTextColor:k,...A})]}),(0,n.jsx)(f,{"aria-live":"assertive",isError:$,style:C?{marginTop:"0px"}:{marginTop:"4px"},children:$?u:a||"\xa0"})]})});u.propTypes={as:i().oneOf(["input","textarea"]),className:i().string,disabled:i().bool,errorMessage:i().string,isErrorDelayOver:i().bool,isValid:i().bool,label:i().string,name:i().string,Icon:i().elementType,required:i().bool,style:i().object,value:i().string,helperText:i().string,$usedOn:i().string,hideTopHelperTextPadding:i().bool,topInputText:i().string,inputTextColor:i().string};let p=o.Ay.input.withConfig({componentId:"sc-2e817aad-0"})(["width:100%;border-width:",";border-style:solid;border-color:",";border-radius:6px;box-shadow:",";padding:",";",'{padding:"12px";}height:',";color:",';&::placeholder{color:var(--color-gray-750);opacity:0.3;}background:none;&&:focus,&&:focus-within{border-color:var(--color-xe-primary-500);box-shadow:0px 3px 15px rgba(0,17,51,0.05);}:-webkit-autofill{box-shadow:0 0 0px 1000px #fffde8 inset;}input&[type="number"]::-webkit-inner-spin-button,input&[type="number"]::-webkit-outer-spin-button{appearance:none;margin:0;}input&[type="number"]{appearance:textfield;}'],"1px",({isError:e,highValueLeadErrorMessage:t})=>e?t?"var(--color-xe-primary-600)":"#ed5f74":"#ddd",({$usedOn:e})=>"rate-alert-modal"===e||"high-value-lead-form"===e?"none":"0px 3px 15px rgba(0, 17, 51, 0.05)",({hasIcon:e,$usedOn:t})=>e?`12px 12px 12px calc(12px + ${d} + 12px)`:"rate-alert-modal"===t||"high-value-lead-form"===t?"8px":"12px",l.Wi.minWidthSm,({$usedOn:e})=>e&&"50px",({theme:e,inputTextColor:t})=>t||e.paragraph.color),h=o.Ay.div.withConfig({componentId:"sc-2e817aad-1"})(["display:flex;align-items:center;position:relative;.text-input-icon{position:absolute;
5left:calc(12px + ",");width:",";height:",";}"],"1px",d,d),x=o.Ay.div.withConfig({componentId:"sc-2e817aad-2"})(["position:absolute;top:0px;left:6px;font-size:10px;opacity:0.4;"]),f=o.Ay.div.withConfig({componentId:"sc-2e817aad-3"})(["color:",";font-size:12px;"],({isError:e})=>e?"var(--color-red-400)":"var(--color-gray-750)"),g=o.Ay.div.withConfig({componentId:"sc-2e817aad-4"})(["opacity:",";margin-bottom:",";","{margin-bottom:",";}"],({$disabled:e})=>e?.38:1,({$usedOn:e})=>e&&"0px",l.Wi.minWidthSm,({$usedOn:e})=>e&&"8px")},87377:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(75038),a=r(16020),s=r(85687),i=r(18569),o=r(85443),l=r.n(o),c=r(35808),d=r(70744),m=r(88469),u=r(15439),p=r(64191),h=r(66743),x=r(58799),f=r(24101),g=r(58853),y=r(98993),b=r(37018);let w=e=>Array.isArray(e)?e[0]:e,v=({heading:e,richHeading:t,subheading:r,sections:s,themePattern:i=["light1","light2","dark1"],children:o,pageTitle:v,metaDescription:j})=>{let C=(0,x.gq)(),N=(0,d.c)(),{query:{Amount:k,From:A,from:T,To:$,to:E}}=(0,c.useRouter)(),_=(0,a.a8)(),O=w(A)??w(T),L=w($)??w(E),S={nsSeparator:"^",amount:C.format(Number(w(k))),from:O,fromName:N.has(`currencies.${O}.name`)?N(`currencies.${O}.name`):O,fromPlural:N.has(`currencies.${O}.name_plural`)?N(`currencies.${O}.name_plural`):O,to:L,toName:N.has(`currencies.${L}.name`)?N(`currencies.${L}.name`):L,toPlural:N.has(`currencies.${L}.name_plural`)?N(`currencies.${L}.name_plural`):L},P=e=>void 0===e?void 0:(0,y.G)(e,S);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l(),{children:[(0,n.jsx)("title",{children:P(v)}),(0,n.jsx)("meta",{name:"description",content:P(j)},"description")]}),(0,n.jsx)(p.A,{heading:(0,b.HE)(t,e,{text:e=>(0,y.G)(e,S),doc:e=>(0,y.$)(e,S)}),subheading:P(r),hideDisclaimer:"/ratealerts"===_||"/currencycharts"===_,children:(0,n.jsxs)("div",{className:"shadow-3xl flex flex-col gap-6 rounded-3xl bg-white p-6 md:p-8",children:[(0,n.jsx)(f.A,{}),o]})}),s?.map((e,t)=>{let r=t%i.length;return(0,n.jsx)(u.A,{children:(0,n.jsx)(m.NP,{theme:h[i[r]],children:(0,n.jsx)(g.A,{index:t+1,contentfulEntry:e,sectionTheme:i[r]})})},`${t} ${e.sys.id}`)})]})};var j=r(79940);let C=e=>Array.isArray(e)?e[0]:e,N=({heading:e,richHeading:t,subheading:r,sections:a,themePattern:s=["light1","light2","dark1"],children:i,pageTitle:o,metaDescription:p,appRankings:f,showTabs:w})=>{let v=(0,x.gq)(),N=(0,d.c)(),{query:{Amount:k,From:A,from:T,To:$,to:E}}=(0,c.useRouter)(),_=C(A)??C(T),O=C($)??C(E),L={nsSeparator:"^",amount:v.format(Number(C(k))),from:_,fromName:N.has(`currencies.${_}.name`)?N(`currencies.${_}.name`):_,fromPlural:N.has(`currencies.${_}.name_plural`)?N(`currencies.${_}.name_plural`):_,to:O,toName:N.has(`currencies.${O}.name`)?N(`currencies.${O}.name`):O,toPlural:N.has(`currencies.${O}.name_plural`)?N(`currencies.${O}.name_plural`):O},S=e=>void 0===e?void 0:(0,y.G)(e,L);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l(),{children:[(0,n.jsx)("title",{children:S(o)}),(0,n.jsx)("meta",{name:"description",content:S(p)},"description")]}),(0,n.jsx)(j.A,{heading:(0,b.HE)(t,e,{text:e=>(0,y.G)(e,L),doc:e=>(0,y.$)(e,L)}),subheading:S(r),appRankings:f,showTabs:w,children:i}),a?.map((e,t)=>{let r=t%s.length;return(0,n.jsx)(u.A,{children:(0,n.jsx)(m.NP,{theme:h[s[r]],children:(0,n.jsx)(g.A,{index:t+1,contentfulEntry:e,sectionTheme:s[r]})})},`${t} ${e.sys.id}`)})]})},k=new Set(["/","/currencyconverter/","/send-money/"]);function A({children:e,...t}){let{countryCode:r}=(0,s.n)(),o=(0,a.a8)();return(0,i.e)(r)?(0,n.jsx)(N,{...t,children:e}):k.has(o)?e:(0,n.jsx)(v,{...t,children:e})}},89118:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>X,default:()=>H});var n=r(75038),a=r(76430),s=r(15082),i=r.n(s),o=r(85443),l=r.n(o),c=r(16020),d=r(45615),m=r(70744),u=r(48651),p=r(15439),h=r(17859),x=r(63477),f=r(71321),g=r(87377),y=r(26310),b=r(9251),w=r(85687),v=r(7456);function j({className:e,children:t}){return(0,n.jsx)("div",{className:(0,v.cn)("shadow-3xl flex w-full flex-col rounded-3xl bg-[rgba(9,16,78,0.1)] p-5.5 backdrop-blur-2xl md:p-8 lg:min-w-4xl xl:min-w-5xl",e),children:t})}var C=r(18569),N=r(84379),k=r(41496),A=r(20626),T=r(82129),$=r(83975),E=r(85369),_=r(86518),O=r(71503),L=r(18351),S=r(40513),P=r(2272);let B=i()(()=>Promise.all([r.e(1778),r.e(3300),r.e(853),r.e(9917),r.e(469)]).then(r.bind(r,94252)),{loadableGenerated:{webpack:()=>[94252]}}),I=({fromCurrency:e,toCurrency:t,isEnglishLanguage:r,showBitPandaLink:a,isBusinessPage:s,handleCryptoModalOpen:i,t:o})=>{let{currencyData:l}=(0,w.n)(),d=l[e].isCrypto||l[t].isCrypto,m=a?"https://bitpanda.pxf.io/VmaYk
5M":"https://kraken.pxf.io/c/3482333/687155/10583",u=a?"BitPanda":"Kraken",[,p]=(0,$.A)(),[h]=(0,E.A)(),x=()=>{y.Ay.trackEvent("Button Clicked",{buttonName:"Crypto Affiliate",url:window.location.href,path:window.location.pathname,onBusinessPage:s})},f=()=>{y.Ay.trackEvent("Button Clicked",{buttonName:"XecomChartsOutput ViewTransferQuote",url:window.location.href,path:window.location.pathname,onBusinessPage:s});let r=!!l[t]?.isBuyable;p({sendingCurrency:e,receivingCurrency:r?t:void 0,destinationCountry:r?h.destinationCountry:void 0},{persist:!1})};return d&&r?(0,n.jsxs)(F,{children:[(0,n.jsx)(M,{from:e,to:t}),(0,n.jsx)("button",{className:"transfer-cta bg-xe-primary-500 hover:bg-xe-primary-600 rounded-full px-5 py-2.5 font-semibold text-white",type:"button",onClick:()=>{x(),i(m)},children:`${o("cryptoTransferCtaText")}${u}`})]}):d?(0,n.jsx)(c.N_,{href:m,prefetch:!1,className:"transfer-cta border-xe-primary-500 text-xe-primary-500 rounded-full border-2 px-5 py-2.5 text-center font-semibold",target:"_blank",onClick:x,children:`${o("cryptoTransferCtaText")} ${u}`}):r?(0,n.jsxs)(F,{children:[(0,n.jsx)(M,{from:e,to:t}),(0,n.jsx)(c.N_,{className:"bg-xe-primary-500 flex items-center justify-center rounded-full px-5 py-2.5 font-semibold text-white",onClick:f,href:"/send-money/",prefetch:!1,children:o("transferCtaText")})]}):(0,n.jsx)(c.N_,{className:"bg-xe-primary-500 flex items-center justify-center rounded-full px-5 py-2.5 font-semibold text-white",prefetch:!1,href:"/send-money/",onClick:f,children:o("transferCtaText")})},R=()=>{let[e,t]=(0,E.A)(),{countryCode:r}=(0,w.n)(),s=(0,O.useSearchParams)(),i=s.get("from"),o=s.get("to"),g=s.get("view")??"1Y",{push:v}=(0,c.rd)(),j=(0,d.Ym)();(0,u.A)();let A=!!i&&!!o,$=i??e.fromCurrency,S=o??e.toCurrency,{setState:R}=(0,f.N)(),M=(0,b.w)(r),F=j.startsWith("en"),z=(0,C.e)(r),[X,H]=(0,a.useState)(!1),[W,U]=(0,a.useState)(""),D=e=>{H(!0),U(e)},G=()=>{H(!1)};(0,a.useEffect)(()=>{A&&y.Ay.trackEvent("Currency Chart Triggered",{fromCurrency:$,toCurrency:S})},[A,$,S]);let q=(0,m.c)("currency-chart"),V=(0,m.c)("misc"),Y=()=>{Q(S,$)},K=e=>{y.Ay.trackEvent("Button Clicked",{buttonName:`NewHeroCharts ${e}`,url:window.location.href,path:window.location.pathname,onBusinessPage:!1})},Q=(0,a.useCallback)((e,r,n)=>{let s=n&&"1Y"!==n?`/currencycharts/?from=${e}&to=${r}&view=${n}`:`/currencycharts/?from=${e}&to=${r}`;window.location.href.endsWith(s)||(0,a.startTransition)(()=>{v(s),(0,a.startTransition)(()=>{t(t=>({...t,fromCurrency:e,toCurrency:r}),{persist:!1}),R({fromCurrency:e,toCurrency:r})})})},[v,R,t]),J=(0,a.useCallback)(e=>{Q(e,S)},[Q,S]),Z=(0,a.useCallback)(e=>{Q($,e)},[Q,$]),ee=(0,a.useCallback)((e,t,r)=>Q(e,t,r),[Q]),et=(0,a.useRef)(null);(0,N.A)({elementRef:et,isExpanded:A});let er=(({showFullList:e,toCurrency:t,fromCurrency:r,t:n})=>e?{"@context":"https://schema.org/","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:n("home"),item:"https://www.xe.com/"},{"@type":"ListItem",position:2,name:n("currencyCharts"),item:"https://www.xe.com/currencycharts/"},{"@type":"ListItem",position:3,name:n("fromAndToChart",{from:r,to:t})}]}:{"@context":"https://schema.org/","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:n("home"),item:"https://www.xe.com/"},{"@type":"ListItem",position:2,name:n("currencyCharts")}]})({showFullList:A,fromCurrency:$,toCurrency:S,t:q});(0,x.Q)({from:i,to:o});let en="USD"===$&&"CAD"===S||"CAD"===$&&"USD"===S,ea=A&&en?`${P.env.NEXT_PUBLIC_SITE_URL||"https://xe.com"}/api/og/currency-chart?from=${$}&to=${S}`:null,es=A?`${$} to ${S} Exchange Rate Chart | Xe`:"Currency Charts | Xe",ei=A?`View live ${$}/${S} exchange rates and 30-day trend chart. Get real-time currency data from Xe.com`:"View live exchange rates and currency charts for all major currencies on Xe.com";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l(),{children:[(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(er)}}),ea&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("meta",{property:"og:title",content:es},"og:title"),(0,n.jsx)("meta",{property:"og:description",content:ei},"og:description"),(0,n.jsx)("meta",{property:"og:image",content:ea},"og:image"),(0,n.jsx)("meta",{property:"og:image:width",content:"12
500"},"og:image:width"),(0,n.jsx)("meta",{property:"og:image:height",content:"630"},"og:image:height"),(0,n.jsx)("meta",{property:"og:image:type",content:"image/png"},"og:image:type"),(0,n.jsx)("meta",{property:"og:image:alt",content:`${$} to ${S} exchange rate chart showing 30-day trend`},"og:image:alt"),(0,n.jsx)("meta",{property:"og:type",content:"website"},"og:type"),(0,n.jsx)("meta",{property:"og:site_name",content:"Xe.com"},"og:site_name"),(0,n.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"twitter:card"),(0,n.jsx)("meta",{name:"twitter:title",content:es},"twitter:title"),(0,n.jsx)("meta",{name:"twitter:description",content:ei},"twitter:description"),(0,n.jsx)("meta",{name:"twitter:image",content:ea},"twitter:image"),(0,n.jsx)("meta",{name:"twitter:image:alt",content:`${$}/${S} rate chart`},"twitter:image:alt")]})]}),(0,n.jsxs)("form",{onSubmit:e=>{e.preventDefault(),v(g&&"1Y"!==g?`/currencycharts/?from=${$}&to=${S}&view=${g}`:`/currencycharts/?from=${$}&to=${S}`)},children:[z?(0,n.jsxs)("div",{className:"relative flex flex-col gap-4 md:flex-row md:items-center",children:[(0,n.jsx)("div",{className:"flex flex-1 flex-col",children:(0,n.jsx)(_.A,{className:"h-16 rounded-2xl border bg-white p-3 [&_svg]:ml-auto",showCurrencyName:!0,id:"midmarketFromCurrency",selectedCurrency:$,onSelect:J,popoverProps:{align:"start",alignOffset:2,sideOffset:4,className:"p-0 w-(--anchor-width)"}})}),(0,n.jsx)(L.A,{className:"absolute top-12.5 left-36 border bg-white md:static md:border-none lg:bg-transparent/15",onClick:()=>{K("Swap"),(0,a.startTransition)(()=>Y())},ariaLabel:"Swap currencies"}),(0,n.jsx)("div",{className:"flex flex-1 flex-col",children:(0,n.jsx)(_.A,{className:"h-16 rounded-2xl border bg-white p-3 [&_svg]:ml-auto",showCurrencyName:!0,id:"midmarketToCurrency",selectedCurrency:S,onSelect:Z,popoverProps:{align:"start",alignOffset:2,sideOffset:4,className:"p-0 w-(--anchor-width)"}})})]}):(0,n.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-center",children:[(0,n.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,n.jsx)("label",{className:"font-semibold",htmlFor:"midmarketFromCurrency",children:q("fromLabel")}),(0,n.jsx)(_.A,{className:"border-xe-neutral-500 rounded-full border p-3 [&_svg]:ml-auto",showCurrencyName:!0,id:"midmarketFromCurrency",selectedCurrency:$,onSelect:J,popoverProps:{align:"start",alignOffset:2,sideOffset:4,className:"p-0 w-(--anchor-width)"}})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between md:self-end md:[&_.midmarket-tooltip]:hidden!",children:[(0,n.jsx)(k.CD,{onClick:()=>(0,a.startTransition)(()=>Y()),"aria-label":"Swap currencies",type:"button"}),(0,n.jsx)(k.UX,{})]}),(0,n.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,n.jsx)("label",{className:"font-semibold",htmlFor:"midmarketToCurrency",children:q("toLabel")}),(0,n.jsx)(_.A,{className:"border-xe-neutral-500 rounded-full border p-3 [&_svg]:ml-auto",showCurrencyName:!0,id:"midmarketToCurrency",selectedCurrency:S,onSelect:Z,popoverProps:{align:"start",alignOffset:2,sideOffset:4,className:"p-0 w-(--anchor-width)"}})]})]}),z?(0,n.jsxs)("div",{className:"mt-6 flex flex-col justify-between gap-3 md:flex-row",children:[(0,n.jsx)(k.UX,{className:"flex"}),A?(0,n.jsx)(I,{fromCurrency:$,toCurrency:S,isEnglishLanguage:F,showBitPandaLink:M,isBusinessPage:!1,handleCryptoModalOpen:D,t:q}):(0,n.jsx)("button",{className:"bg-xe-primary-500 hover:bg-xe-primary-500/85 rounded-4xl px-7 py-3.5 text-lg font-medium text-white transition-colors",type:"submit",onClick:()=>K("ViewChart"),children:q("viewChartCtaText")})]}):(0,n.jsxs)("div",{className:"mt-6 flex flex-col justify-between md:flex-row",children:[(0,n.jsx)(k.UX,{className:"hidden md:flex"}),A?(0,n.jsx)(I,{fromCurrency:$,toCurrency:S,isEnglishLanguage:F,showBitPandaLink:M,isBusinessPage:!1,handleCryptoModalOpen:D,t:q}):(0,n.jsx)("button",{className:"bg-xe-primary-500 hover:bg-xe-primary-500/85 rounded-full px-5 py-2.5 font-medium text-white transition-colors",type:"submit",children:q("viewChartCtaText")})]})]}),(0,n.jsx)("div",{ref:et,children:A&&(0,n.jsxs)(p.A,{children:[(0,n.jsx)("div",{className:"mt-6"}),(0,n.jsx)(B,{fromCurrencyCode:$,toCurrencyCode:S,initialTimeframe:g,isRefresh:z,withGradient:z,onChangeTimeframe:ee})]})}),(0,n.jsx)(T.lG,{open:X,onOpenChange:e=>!e&&G(),children:(0,n.jsxs)(T.Cf,{className:"w-auto max-w-[calc(100dvw-32px)] rounded-3xl p-10 sm:rounded-3xl",children:[(0,n.jsx)(T.L3,{className:"sr-only",children:V("leaveXeModal.title")}),(0,n.jsx)(h.Q,{cryptoText:M?"BitPanda":"Kraken",currentURL:W,handleModalClose:G})]})})]})},M=({from:e,to:t})=>{let[r,s]=(0,a.useState)(!1),i=(0,m.c)("currency-chart");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S.$,{variant:"tertiary",size:"large",className:"order-1 rounded-full px-5 py-2.5 text-center font-semibold md:order-0",onClick:()=>{s(!0),y.Ay.trackEvent("Button Clicked",{buttonName:"XecomChartsOutput TrackCurrency",url:window.location.href,path:window.location.pathname,onBusinessPage:!1})},children:i("trackCurrency")}),(0,n.jsx)(A.A,{isOpen:r,onClose:()=>s(!1),fromCurrency:e,toCurrency:t})]})},F=({children:e})=>(0,n.jsx)("div",{className:"grid gap-2 md:grid-cols-2",children:e});function z(){let{countryCode:e}=(0,w.n)(),t=(0,n.jsx)(f.A,{children:(0,n.jsx)(R,{})});return(0,C.e)(e)?(0,n.jsx)(j,{children:t}):t}z.Template=g.A;var X=!0;let H=z},91551:(e,t,r)=>{"use strict";r.d(t,{A:()=>
5o});var n,a=r(76430);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var i=(0,a.forwardRef)(function(e,t){return a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16","aria-hidden":"true",ref:t},e),n||(n=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.571 11.429V6.286H6.286v1.143h1.143v4H5.714v1.142h4.572V11.43H8.57zM8 2.857a.857.857 0 1 0 0 1.714.857.857 0 0 0 0-1.714zM8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zM8 1.143a6.857 6.857 0 1 0 0 13.714A6.857 6.857 0 0 0 8 1.143z",clipRule:"evenodd"})))});let o=(0,a.memo)(i)}},e=>{e.O(0,[7976,2977,6011,1505,1444,4193,7755,9423,626,3322,636,6593,8792],()=>e(e.s=9710)),_N_E=e.O()}]);
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.