1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[511,1007,1091],{6729:(e,t,r)=>{"use strict";r.d(t,{F:()=>s,K:()=>i});let a=/^#[\da-f]{3}(?:[\da-f]{3})?$/i;function n(e){if(!a.test(e))throw RangeError(`Expected a 3-digit or 6-digit hex number prefixed with #. Got: ${e}`);let t=e.substring(1);return 3===t.length&&(t=t.split("").map(e=>e+e).join("")),[parseInt(t.substring(0,2),16),parseInt(t.substring(2,4),16),parseInt(t.substring(4,6),16)]}function i(e,t){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw RangeError(`Expect opacity to be a number between 0 and 1 (inclusive). Received: ${t}`);let[r,a,i]=n(e);return`rgba(${r}, ${a}, ${i}, ${t})`}function s(e,t){if("number"!=typeof t||isNaN(t)||t<-100||t>100)throw RangeError(`Expected percentage to be a number between -100 and 100. Received: ${t}`);let r=Math.round(2.55*t);return n(e).map(e=>Math.max(Math.min(e+r,255),0)).reduce((e,t)=>e+t.toString(16).padStart(2,"0"),"#")}},21312:(e,t,r)=>{"use strict";r.d(t,{AM:()=>u,Rp:()=>h,Wv:()=>m,hl:()=>p});var a=r(15383),n=r(18505),i=r(1765),s=r(72258),l=r(4648),c=r(27580),o=r(3026),d=r(18534);function u({...e}){return(0,a.jsx)(n.y,{"data-slot":"popover",...e})}function m({...e}){return(0,a.jsx)(i.W,{"data-slot":"popover-trigger",...e})}function h({className:e,...t}){return(0,a.jsx)(s.R,{"data-slot":"popover-arrow",className:(0,d.cn)("text-popover data-[side=bottom]:-top-2 data-[side=left]:-right-3.25 data-[side=left]:rotate-90 data-[side=right]:-left-3.25 data-[side=right]:-rotate-90 data-[side=top]:-bottom-2 data-[side=top]:rotate-180",e),...t,children:(0,a.jsx)("svg",{width:"16",height:"8",viewBox:"0 0 16 8",fill:"none",children:(0,a.jsx)("path",{d:"M8 0 16 8H0L8 0Z",className:"fill-current"})})})}let p=({className:e,align:t="center",alignOffset:r=0,side:n="bottom",sideOffset:i=4,...s})=>(0,a.jsx)(l.i,{children:(0,a.jsx)(c.U,{align:t,alignOffset:r,side:n,sideOffset:i,className:"isolate z-50",children:(0,a.jsx)(o.i,{"data-slot":"popover-content",className:(0,d.cn)("bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg border p-2.5 text-sm shadow-md outline-hidden duration-100",e),...s})})})},28878:(e,t,r)=>{"use strict";r.d(t,{M:()=>s});var a=r(14343),n=r(58102);let i=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),a.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"}))]]),s=a.forwardRef((e,t)=>
1a.createElement(n.A,{ref:t,...e,weights:i}));s.displayName="WarningCircleIcon"},39730:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(15383),n=r(50084),i=r.n(n);let s=({headings:e,rows:t})=>(0,a.jsxs)("table",{className:"w-full border-collapse border-spacing-0",children:[(0,a.jsx)("thead",{children:(0,a.jsx)("tr",{children:e.map(e=>(0,a.jsx)("th",{className:"border-b border-gray-500 p-2 font-semibold",scope:"col",children:e},e))})}),(0,a.jsx)("tbody",{children:t.map((e,t)=>(0,a.jsx)("tr",{children:e.map((e,r)=>(0,a.jsx)("td",{className:"border-b border-gray-500 p-2 text-center",children:e},`${t} ${r}`))},t))})]});s.propTypes={headings:i().arrayOf(i().node),rows:i().arrayOf(i().arrayOf(i().node))};let l=s},40511:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>p});var a=r(15383),n=r(18079),i=r(50084),s=r.n(i),l=r(47049),c=r(46683),o=r(28878),d=r(39730),u=r(84163);let m=({trend:e})=>e?(0,a.jsx)("span",{style:{color:"up"===e?"#338800":"#b30021"},children:"up"===e?"â²":"â¼"}):null;m.propTypes={trend:s().string};let h=({initialData:e})=>{let t=(0,l.c)(),r=(0,u.gq)({minimumSignificantDigits:6,maximumSignificantDigits:6}),i=new URLSearchParams;["EUR/USD","GBP/EUR","USD/JPY","GBP/USD","USD/CHF","USD/CAD","EUR/JPY","AUD/USD"].forEach(e=>i.append("currencyPairs",e));let{data:s,error:h}=(0,c.u)(`/api/protected/live-currency-rates/?${i.toString()}`,{fallbackData:e,revalidateOnMount:!0}),p=s.map(({from:e,to:t,rate:i,trend:s},l)=>[(0,a.jsx)(n.N_,{className:"text-xe-primary-500 hover:underline",prefetch:!1,href:`/currencycharts/?from=${e}&to=${t}`,children:`${e} / ${t}`},l),r.format(i),(0,a.jsx)(m,{trend:s},l)]);return(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-xe-primary-700 mb-4 text-center",children:t("live-currency-rates.heading")}),(0,a.jsx)(d.A,{headings:[t("live-currency-rates.currencyPairColumnHeading"),t("live-currency-rates.rateColumnHeading"),t("live-currency-rates.changeColumnHeading")],rows:p}),h&&(0,a.jsxs)("p",{className:"flex items-center",style:{marginTop:"12px",color:"var(--color-red-400)",margin:"8px 8px 0"},children:[(0,a.jsx)(o.M,{style:{width:"16px",height:"16px",marginRight:"8px"}}),t("misc.ratesFreshnessMessage")]})]})};h.propTypes={initialData:s().arrayOf(s().shape({rate:s().number,from:s().string,to:s().string,trend:s().string}))};let p=h},55888:(e,t,r)=>{"use strict";r.d(t,{H:()=>s});var a=r(6645),n=r(91121),i=r(19117);function s(e,t){let r,s,f=()=>(0,n.w)(t?.in,NaN),y=t?.additionalDigits??2,b=function(e){let t,r={},a=e.split(l);if(a.length>2)return r;if(/:/.test(a[0])?t=a[0]:(r.date=a[0],t=a[1],c.test(r.date)&&(r.date=e.split(c)[0],t=e.substr(r.date.length,e.length))),t){let e=o.exec(t);e?(r.time=t.replace(e[1],""),r.timezone=e[1]):r.time=t}return r}(e);if(b.date){let e=function(e,t){let r=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),a=e.match(r);if(!a)return{year:NaN,restDateString:""};let n=a[1]?parseInt(a[1]):null,i=a[2]?parseInt(a[2]):null;return{year:null===i?n:100*i,restDateString:e.slice((a[1]||a[2]).length)}}(b.date,y);r=function(e,t){var r,a,n,i,s,l,c,o,u,m;if(null===t)return new Date(NaN);let p=e.match(d);if(!p)return new Date(NaN);let f=!!p[4],y=h(p[1]),b=h(p[2])-1,v=h(p[3]),N=h(p[4]),w=h(p[5])-1;if(f){let e,l;return(r=N,a=w,r>=1&&r<=53&&a>=0&&a<=6)?(n=t,i=N,s=w,(e=new Date(0)).setUTCFullYear(n,0,4),l=e.getUTCDay()||7,e.setUTCDate(e.getUTCDate()+((i-1)*7+s+1-l)),e):new Date(NaN)}{let e=new Date(0);return(l=t,c=b,o=v,c>=0&&c<=11&&o>=1&&o<=(x[c]||(g(l)?29:28))&&(u=t,(m=y)>=1&&m<=(g(u)?366:365)))?(e.setUTCFullYear(t,b,Math.max(y,v)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!r||isNaN(+r))return f();let v=+r,N=0;if(b.time&&isNaN(N=function(e){var t,r,n;let i=e.match(u);if(!i)return NaN;let s=p(i[1]),l=p(i[2]),c=p(i[3]);return(t=s,r=l,n=c,24===t?0===r&&0===n:n>=0&&n<60&&r>=0&&r<60&&t>=0&&t<25)?s*a.s0+l*a.Cg+1e3*c:NaN}(b.time)))return f();if(b.timezone){if(isNaN(s=function(e){var t;if("Z"===e)return 0;let r=e.match(m);if(!r)return 0;let n="+"===r[1]?-1:1,i=parseInt(r[2]),s=r[3]&&parseInt(r[3])||0;return(t=s)>=0&&t<=59?n*(i*a.s0+s*a.Cg):NaN}(b.timezone)))return f()}else{let e=new Date(v+N),r=(0,i.a)(0,t?.in);return r.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),r.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),r}return(0,i.a)(v+N+s,t?.in)}let l=/[T ]/,c=/[Z ]/i,o=/([Z+-].*)$/,d=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,m=/^([+-])(\d{2})(?::?(\d{2}))?$/;function h(e){return e?parseInt(e):1}function p(e){return e&&parseFloat(e.replace(",","."))||0}let x=[31,null,31,30,31,30,31,31,30,31,30,31];function g(e){return e%400==0||e%4==0&&e%100!=0}},71506:(e,t,r)=>{"use strict";r.d(t,{V:()=>c});var a=r(15383),n=r(41453),i=r(85341),s=r(23956),l=r(18534);function c({className:e,numberOfMonths:t,components:r,...o}
1){let d=(0,l.cn)("relative flex border border-xe-blue-500",o.monthsClassName),u=(0,l.cn)("relative mx-10 flex h-7 items-center justify-center",o.monthCaptionClassName),m=(0,l.cn)("flex flex-row",o.weekdaysClassName),h=(0,l.cn)("w-8 text-sm font-normal text-muted-foreground",o.weekdayClassName),p=(0,l.cn)("w-full",o.monthClassName),x=(0,l.cn)("relative flex items-center justify-center pt-1",o.captionClassName),g=(0,l.cn)("truncate text-sm font-medium hidden",o.captionLabelClassName),f=(0,l.cn)("absolute size-7 bg-transparent p-0 opacity-80 hover:opacity-100 right-0",o.buttonNextClassName),y=(0,l.cn)("absolute size-7 bg-transparent p-0 opacity-80 hover:opacity-100 left-0",o.buttonPreviousClassName),b=(0,l.cn)("flex items-start",o.navClassName),v=(0,l.cn)("mx-auto mt-4",o.monthGridClassName),N=(0,l.cn)("mt-2 flex w-max items-start",o.weekClassName),w=(0,l.cn)("flex size-8 flex-1 items-center justify-center rounded-md p-0",o.dayClassName),j=(0,l.cn)("size-8 cursor-pointer rounded-md p-0 font-normal text-xe-neutral-1000 hover:bg-xe-primary-200 hover:text-black! transition-none aria-selected:opacity-100 disabled:cursor-default",o.dayButtonClassName),C="bg-accent [&>button]:bg-primary [&>button]:text-primary-foreground hover:[&>button]:bg-xe-primary-500 [&>button]:hover:text-xe-white",V=(0,l.cn)(C,"day-range-start rounded-s-md",o.rangeStartClassName),A=(0,l.cn)(C,"day-range-end rounded-e-md",o.rangeEndClassName),H=(0,l.cn)("bg-accent !text-foreground [&>button]:bg-transparent [&>button]:!text-foreground hover:[&>button]:bg-transparent [&>button]:hover:!text-foreground",o.rangeMiddleClassName),D=(0,l.cn)("[&>button]:bg-xe-primary-500 [&>button]:text-white!",o.selectedClassName),M=(0,l.cn)("day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",o.outsideClassName),E=(0,l.cn)("text-muted-foreground opacity-50",o.disabledClassName),Z=(0,l.cn)("invisible flex-1",o.hiddenClassName);return(0,a.jsx)(n.h,{mode:"single",captionLayout:"dropdown",className:(0,l.cn)("p-3",e),style:{width:280*(t??1)+"px"},classNames:{dropdowns:"inline-flex gap-1",dropdown:"border border-blue-500 rounded-sm",today:o.todayClassName,months:d,month_caption:u,weekdays:m,weekday:h,month:p,caption:x,caption_label:g,button_next:f,button_previous:y,nav:b,month_grid:v,week:N,day:w,day_button:j,range_start:V,range_middle:H,range_end:A,selected:D,outside:M,disabled:E,hidden:Z},components:{Chevron:({orientation:e})=>{let t="left"===e?i.e:s.J;return(0,a.jsx)(t,{weight:"bold",className:"text-xe-primary-500 m-auto size-5 font-bold"})},...r},numberOfMonths:t,...o})}c.displayName="DatePicker"},81007:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var a=r(15383),n=r(18079),i=r(50084),s=r.n(i),l=r(47049),c=r(39730),o=r(84163);let d=({bankRates:e=[]})=>{let t=(0,l.c)("central-bank-rates"),r=(0,o.gq)({style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}),i=e.map(({currency:e,rate:t,profileSlug:i})=>[(0,a.jsx)(n.N_,{className:"text-xe-primary-500 hover:underline",prefetch:!1,href:`/currency/${i}/`,children:e},e),r.format(t/100)]);return(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-xe-primary-700",style:{textAlign:"center",marginBottom:"16px"},children:t("heading")}),(0,a.jsx)(c.A,{headings:[t("currencyColumnHeading"),t("interestRateColumnHeading")],rows:i})]})};d.propTypes={bankRates:s().arrayOf(s().shape({currency:s().string,rate:s().number,profileSlug:s().string}))};let u=d},83141:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>_,default:()=>O});var a=r(15383),n=r(14343),i=r(21494),s=r.n(i),l=r(64863),c=r.n(l),o=r(18079),d=r(55888),u=r(91121),m=r(74779),h=r(19117),p=r(28536),x=r(70720),g=r(50084),f=r.n(g),y=r(71705),b=r(19024),v=r(2348),N=r(95358),w=r(13127),j=r(77255),C=r(52368),V=r(77016),A=r(95497),H=r(24556),D=r(20263),M=r(98755),E=r(84163),Z=r(81007),k=r(40511),S=r(47049),$=r(45771);let F=(0,d.H)("1995-11-16"),U=s()(()=>r.e(356).then(r.bind(r,10356)),{loadableGenerated:{webpack:()=>[10356]},ssr:!1}),T=({historicRates:e,timestamp:t,isError:r,lcrData:i,cbrData:s})=>{var l,g,f;let D,T=(0,S.c)(),_=(0,o.rd)(),O=(0,$.useSearchParams)(),z=O.get("from"),G=O.get("date"),[W,X]=(0,n.use
1State)(z??"USD"),J=(f=new b.BB((l=new Date,g={hours:12,minutes:0,seconds:0,milliseconds:0},isNaN(+(D=(0,h.a)(l,void 0)))?(0,u.w)(l,NaN):(null!=g.year&&D.setFullYear(g.year),null!=g.month&&(D=(0,m.Z)(D,g.month)),null!=g.date&&D.setDate(g.date),null!=g.hours&&D.setHours(g.hours),null!=g.minutes&&D.setMinutes(g.minutes),null!=g.seconds&&D.setSeconds(g.seconds),null!=g.milliseconds&&D.setMilliseconds(g.milliseconds),D)),"UTC"),(0,p.f)(f,-1,void 0)),[q,K]=(0,n.useState)(G?(0,d.H)(G):J),[Q,ee]=(0,n.useState)(["unsorted",null]),[et,er]=Q,ea=(0,E.ix)({year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hourCycle:"h23",timeZone:"UTC",timeZoneName:"short"}),en=e=>{if(e===et)switch(er){case"asc":ee([e,"desc"]);break;case"desc":ee(["unsorted",null]);break;default:ee([e,"asc"])}else ee([e,"asc"])},ei=e?[...e]:[];switch(et){case"currencyCode":ei.sort((e,t)=>e.currency.localeCompare(t.currency));break;case"currencyName":ei.sort((e,t)=>{let r=T(`currencies.${e.currency}.name`,e.currency),a=T(`currencies.${t.currency}.name`,t.currency);return r.localeCompare(a)});break;case"rate":ei.sort((e,t)=>e.rate-t.rate);break;case"inverseRate":ei.sort((e,t)=>e.inverse-t.inverse)}"desc"===er&&ei.reverse();let es=z&&ei.length>0&&t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(c(),{children:[(0,a.jsx)("title",{children:es?T("currencytables.titleOutput",{currency:z}):T("currencytables.title")}),(0,a.jsx)("meta",{name:"description",content:es?T("currencytables.metaDescriptionOutput",{currencyCode:z,currencyName:T(`currencies.${z}.name`)}):T("currencytables.metaDescription")})]}),(0,a.jsx)(w.G5,{style:{background:"linear-gradient(to left, var(--color-blue-850) 0%, var(--color-blue-700) 100%)"},firstChild:(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"mb-8 text-2xl text-white md:text-4xl",children:T("currencytables.heading")}),(0,a.jsx)("p",{className:"mb-8 text-white",children:T("currencytables.subheading")})]}),secondChild:(0,a.jsx)(y.NP,{theme:M.light2,children:(0,a.jsxs)(L,{onSubmit:e=>{e.preventDefault();let t=(0,x.GP)(q,"yyyy-MM-dd");_.push(`/currencytables/?from=${W}&date=${t}#table-section`)},children:[(0,a.jsx)(C._B,{style:{textAlign:"center"},children:T("currencytables.form.heading")}),(0,a.jsx)(V.A,{htmlFor:"currency",style:{marginBottom:"4px"},children:T("currencytables.form.currencyLabel")}),(0,a.jsx)(N.A,{id:"currency",currentValue:W,onSelect:X,style:{marginBottom:"24px"}}),(0,a.jsx)("label",{htmlFor:"date",className:"text-xe-neutral-1000 mb-1 font-semibold",children:T("currencytables.form.dateLabel")}),(0,a.jsx)(A.A,{name:"date",id:"date",value:q,onChange:K,disabled:{before:F,after:J}}),r&&(0,a.jsx)("p",{style:{color:"var(--color-red-400)",marginBottom:"12px"},children:T("currencytables.form.error")}),(0,a.jsx)(v.A,{type:"submit",children:T("currencytables.form.submitLabel")}),(0,a.jsx)("span",{style:{textAlign:"center",color:"rgba(0, 17, 51, 0.3)",margin:"12px",textTransform:"uppercase"},children:T("currencytables.form.or")}),(0,a.jsx)(o.N_,{className:"border-xe-primary-500 text-xe-primary-500 hover:bg-xe-primary-500/15 rounded-lg border-2 border-solid bg-white px-5 py-2.5 text-center font-semibold",prefetch:!1,href:"/xecurrencydata/",children:T("currencytables.form.xecdLinkLabel")})]})})}),es&&(0,a.jsx)(w.Mw,{id:"table-section",children:(0,a.jsxs)(w.v6,{children:[(0,a.jsxs)("div",{style:{textAlign:"center"},children:[(0,a.jsx)(C.fV,{children:T("currencytables.table.heading",{currencyCode:z,currencyName:T(`currencies.${z}.name`)})}),(0,a.jsx)(H.A,{style:{maxWidth:"550px",margin:"0 auto 32px"},children:T.rich("currencytables.table.subheading",{link:e=>(0,a.jsx)(Y,{href:"/faq/article/what-is-the-mid-market-rate/",children:e})})})]}),(0,a.jsx)(H.A,{style:{textAlign:"right",marginBottom:"12px"},children:ea.format((0,d.H)(t))}),(0,a.jsx)(I,{children:(0,a.jsx)(R,{children:(0,a.jsxs)(B,{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:(0,a.jsx)(P,{onClick:()=>en("currencyCode"),sortingOrder:"currencyCode"===et?er:null,children:T("currencytables.table.currencyCodeHeading")})}),(0,a.jsx)("th",{children:(0,a.jsx)(P,{onClick:()=>en("currencyName"),sortingOrder:"currencyName"===et?er:null,children:T("currencytables.table.currencyNameHeading")})}),(0,a.jsx)("th",{children:(0,a.jsx)(P,{onClick:()=>en("rate"),sortingOrder:"rate"===et?er:null,children:T("currencytables.table.rateHeading",{currency:z})})}),(0,a.jsx)("th",{children:(0,a.jsx)(P,{onClick:()=>en("inverseRate"),sortingOrder:"inverseRate"===et?er:null,children:T("currencytables.table.inverseHeading",{currency:z})})})]})}),(0,a.jsx)("tbody",{children:ei.map(({currency:e,rate:t,inverse:r,encyclopediaSlug:n})=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{scope:"row",children:n?(0,a.jsx)(o.N_,{prefetch:!1,className:"text-xe-primary-500 font-semibold hover:underline",href:`/currency/${n}/`,children:e}):e},`${e}-code`),(0,a.jsx)("td",{children:T.has(`currencies.${e}.name`)?T(`currencies.${e}.name`):e}),(0,a.jsx)("td",{children:t},`${e}-rate`),(0,a.jsx)("td",{children:r})]},`${e}-row`))})]})})})]})}),(0,a.jsxs)(j.HorizontalLayout,{children:[(0,a.jsx)(k.default,{initialData:i}),(0,a.jsx)(Z.default,{bankRates:s})]}),(0,a.jsx)(U,{hideSectionForSupportedCountries:!0})]})};T.propTypes={historicRates:f().arrayOf(f().shape({currency:f().str
1ing,rate:f().number,encyclopediaSlug:f().string})),timestamp:f().string,isError:f().bool,lcrData:f().array,cbrData:f().array};var _=!0;let O=T,I=y.Ay.div.withConfig({componentId:"sc-9d50435a-0"})(["padding:24px;border-radius:16px;box-shadow:0px 2px 2px 2px rgba(0,0,0,0.1);"]),R=y.Ay.div.withConfig({componentId:"sc-9d50435a-1"})(["overflow:auto;max-height:500px;"]),P=y.Ay.button.withConfig({componentId:"sc-9d50435a-2"})(["color:inherit;text-align:inherit;text-transform:inherit;appearance:none;background:none;padding:8px 12px;border:none;border-radius:8px;:hover{background:#eee;}",""],({sortingOrder:e})=>null===e?"":` 2 ::after { 3 content: ${"asc"===e?'"â²"':'"â¼"'}; 4 padding-left: 4px; 5 } 6 `),z="linear-gradient(to right, white 0%, 99%, rgba(255, 255, 255, 0) 100%)",B=y.Ay.table.withConfig({componentId:"sc-9d50435a-3"})(["min-width:100%;white-space:nowrap;text-align:center;td,th{padding:24px;}thead{th{background:#fff;padding:8px 12px;font-weight:550;text-transform:uppercase;position:sticky;top:0;z-index:1;:first-child{text-align:left;background:",";left:0;z-index:2;}:last-child{text-align:right;}}}tbody{tr{border-bottom:1px solid var(--color-xe-neutral-300);td:last-child{text-align:right;}}th{text-align:left;background:",";position:sticky;left:0;z-index:1;}}"],z,z),L=y.Ay.form.withConfig({componentId:"sc-9d50435a-4"})(["display:flex;flex-direction:column;background:",";width:100%;max-width:450px;padding:24px;","{padding:48px;}border-radius:8px;box-shadow:0px 3px 15px rgba(0,17,51,0.1);"],({theme:e})=>e.fluidContainer.backgroundColor,D.Wi.minWidthLg),Y=({children:e,href:t})=>t?(0,a.jsx)(o.N_,{prefetch:!1,href:t,className:"text-xe-primary-500 underline hover:no-underline",children:e}):e},84163:(e,t,r)=>{"use strict";r.d(t,{VU:()=>c,gq:()=>l,ix:()=>o});var a=r(14343),n=r(78090);let i=new Set(["BTC","XAU","XAG","XPT","XPD","DOGE","LUNA","ETH","ADA","XLM","BCH","DOT","LINK","LTC","UNI"]),s=new Set(["XCD","HKD","CAD","NZD","AUD"]),l=(e={})=>{let t=(0,n.Ym)(),r=JSON.stringify(e);return(0,a.useMemo)(()=>{let e=JSON.parse(r);return"currency"===e.style&&i.has(e.currency)&&(e.maximumFractionDigits=15),"currency"===e.style&&s.has(e.currency)&&(e.currencyDisplay="code"),e.currency?.length>3&&(e.currency="BTC"),new Intl.NumberFormat(t,e)},[t,r])},c=()=>{let e=(0,n.Ym)();return(t,r="USD")=>{if(null==t)return"";let a=Math.abs(t),n="",i="",s=new Intl.NumberFormat(e,{currencyDisplay:"narrowSymbol",style:"currency",currency:r,minimumFractionDigits:0,maximumFractionDigits:0});if(a>=1e9)n=(t/1e9).toFixed(2).replace(/\.00$/,""),i="Bn";else{if(!(a>=1e6))return s.format(t);n=(t/1e6).toFixed(2).replace(/\.00$/,""),i="M"}let l=s.formatToParts(t),c=l.find(e=>"currency"===e.type)?.value||"";return l.findIndex(e=>"currency"===e.type)<l.findIndex(e=>"integer"===e.type)?`${c}${n}${i}`:`${n}${i}${c}`}},o=(e={})=>{let t=(0,n.Ym)(),r=JSON.stringify(e);return(0,a.useMemo)(()=>new Intl.DateTimeFormat(t,JSON.parse(r)),[t,r])}},86400:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/currencytables",function(){return r(83141)}])},95383:function(e){!function(t){var r,a,n=!1;function i(e){if("u">typeof document&&!n){var t=document.documentElement;a=window.pageYOffset,document.documentElement.scrollHeight>window.innerHeight?t.style.width="calc(100% - "+function(){if(void 0!==r)return r;var e=document.documentElement,t=document.createElement("div");return t.setAttribute("style","width:99px;height:99px;position:absolute;top:-9999px;overflow:scroll;"),e.appendChild(t),r=t.offsetWidth-t.clientWidth,e.removeChild(t),r}()+"px)":t.style.width="100%",t.style.position="fixed",t.style.top=-a+"px",t.style.overflow="hidden",n=!0}}function s(){if("u">typeof document&&n){var e=document.documentElement;e.style.width="",e.style.position="",e.style.top="",e.style.overflow="",window.scroll(0,a),n=!1}}var l={on:i,off:s,toggle:function(){n?s():i()}};void 0!==e.exports?e.exports=l:t.noScroll=l}(this)},95497:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var a=r(15383),n=r(14343),i=r(70720),s=r(97722),l=r(71506),c=r(18534),o=r(21312);function d({placeholder:e,className:t,value:r,onChange:u,disabled:m,calendarProps:h}
6){let[p,x]=(0,n.useState)(!1);return(0,a.jsxs)(o.AM,{open:p,onOpenChange:x,children:[(0,a.jsxs)(o.Wv,{className:(0,c.cn)("mb-6 flex items-center rounded-lg border border-gray-300 p-3 text-left font-normal text-black",t,!r&&"text-muted-foreground"),children:[(0,a.jsx)(s.m,{className:"mr-2 size-6"}),r?(0,i.GP)(r,"yyyy-MM-dd"):(0,a.jsx)("span",{className:"text-xe-neutral-700",children:e??"Pick a date"})]}),(0,a.jsx)(o.hl,{className:"w-auto bg-white p-0",align:"start",children:(0,a.jsx)(l.V,{mode:"single",selected:r,onSelect:e=>{u(e),x(!1)},autoFocus:!0,disabled:m,...h})})]})}},97722:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});var a=r(14343),n=r(58102);let i=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),a.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,48H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212Z"}))]]),s=a.forwardRef((e,t)=>a.createElement(n.A,{ref:t,...e,weights:i}));s.displayName="CalendarBlankIcon"}},e=>{e.O(0,[4715,5150,1505,395,1985,5961,8804,5340,636,6593,8792],()=>e(e.s=86400)),_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.