1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1001],{21001:(e,t,l)=>{l.r(t),l.d(t,{default:()=>p});var r=l(15383),i=l(33318),s=l.n(i),a=l(62530),d=l(60178),c=l(35494),n=l(95868),x=l(22582),o=l(86723);let m=new Set(["GET"]);function h({code:e}){let t=(0,o.Zt)(e,{keywords:m});return(0,r.jsx)("div",{className:"min-h-84 overflow-x-auto",children:(0,r.jsx)("pre",{children:(0,r.jsx)("code",{className:"font-mono",dangerouslySetInnerHTML:{__html:t}})})})}var f=l(3077);let g=[{label:"API 01",code:` 2GET https://xecdapi.xe.com/v1/convert_from 3 4{ 5 "from": USD, 6 "to": { 7 "CAD": 1.260046, 8 "CHF": 0.933058, 9 "EUR": 0.806942, 10 "GBP": 0.719154, 11 [170 world currencies] 12 } 13} 14 15`},{label:"API 02",code:` 16GET https://xecdapi.xe.com/v1/historic_rate 17 18{ 19 "from": USD, 20 "date": "2018-02-13", 21 "to": { 22 "CAD": 1.260046, 23 "CHF": 0.933058, 24 "EUR": 0.806942, 25 "GBP": 0.719154, 26 [170 world currencies] 27 } 28} 29`},{label:"API 03",code:` 30GET https://xecdapi.com/v1/central_bank_rate 31 32{ 33 "central_bank": CAN, 34 "amount": "100", 35 "decimal_places": 2, 36 "to": { 37 "USD": 74.42, 38 "EUR": 67.98, 39 "GBP": 53.25 40 } 41} 42 43`},{label:"API 04",code:` 44GET https://xecdapi.xe.com/v1/convert_from 45 46{ 47 "from": USD, 48 "amount": "100" 49 "crypto": true, 50} 51 52 53 54 55 56 57`}];function p({title:e,subtitle:t,body:l,texts:i,images:o}){let m,u,b;l?.[0]&&"newCard"===l[0].sys.contentType.sys.id&&(m=l[0].fields?.heading,u=l[0].fields?.body,b=l[0].fields?.cta);let j=i?.[0];return(0,r.jsxs)("section",{"data-testid":"currency-conversion-currency-data-api",className:"flex flex-col items-center justify-center gap-14 bg-white py-20",children:[(0,r.jsx)("div",{className:"flex w-full max-w-(--breakpoint-xl) flex-col gap-16 px-4 md:px-10",children:(0,r.jsxs)("div",{className:"grid gap-3",children:[!!e&&(0,r.jsx)("h2",{className:"section-heading heading-mixed-font text-center text-gray-900",children:(0,r.jsx)(x.A,{text:e})}),!!t&&(0,r.jsx)("h3",{className:"text-greyblue-300 heading-mixed-font text-center font-normal md:text-xl",children:(0,r.jsx)(x.A,{text:t})})]})}),(0,r.jsx)("div",{className:"flex w-full max-w-(--breakpoint-xl) flex-col gap-16 md:px-10",children:(0,r.jsx)("div",{className:"w-full bg-linear-to-bl from-blue-900 to-blue-700 px-8 py-10 md:rounded-4xl md:px-16 md:py-20",children:(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-16 lg:grid-cols-2",children:[(0,r.jsxs)("div",{className:"flex flex-col items-start justify-center gap-4 md:gap-6",children:[!!m&&(0,r.jsx)("h4",{className:"section-heading text-white",children:(0,r.jsx)(x.A,{text:m,renderDocumentAsPlainText:!0})}),!!u&&(0,r.jsx)("div",{className:"text-greyblue-100 text-[0.95rem] [&_p]:leading-7",children:(0,r.jsx)(x.A,{text:u,renderDocumentAsPlainText:!0})}),b&&(0,r.jsx)(f.default,{variant:"primary",size:"medium",...b.fields})]}),(0,r.jsx)("div",{className:"border-greyblue-300 overflow-hidden rounded-2xl border border-solid bg-white/5",children:(0,r.jsxs)(a.p,{defaultValue:"tab1",children:[(0,r.jsx)(d.j,{className:"divide-greyblue-300 border-b-greyblue-300 grid h-12 grid-cols-4 divide-x border-b border-solid text-center",children:g.map((e,t)=>(0,r.jsx)(c.M,{className:"TabsTrigger text-greyblue-200 hover:text-white data-active:bg-white/10 data-active:font-medium data-active:text-white",value:`tab${t+1}`,children:e.label},e.label))}),g.map((e,t)=>(0,r.jsx)(n.R,{value:`tab${t+1}`,children:(0,r.jsx)(h,{code:e.code})},e.label))]})})]})})}),(0,r.jsx)("div",{"data-testid":"trusted-by",className:"flex w-full max-w-(--breakpoint-xl) flex-col gap-16 px-4 md:px-10",children:!!(j&&o)&&(0,r.jsx)("div",{className:"bg-gray-150 rounded-3xl p-8 md:px-20",children:(0,r.jsxs)("div",{className:"h-min-20 grid grid-cols-1 items-center gap-8 divide-x lg:grid-cols-[auto_1fr]",children:[(0,r.jsx)("div",{className:"mx-auto inline-flex w-fit border-b-2 border-solid border-gray-300 p-4 text-center text-2xl font-medium text-gray-900 lg:border-r-2 lg:border-b-0 lg:pr-10",children:(0,r.jsx)(x.A,{text:j.fields.value})}),(0,r.jsx)("div",{className:"grid grid-cols-1 place-items-center gap-10 md:grid-cols-4",children:o?.map((e,t)=>(0,r.jsx)("figure",{className:"relative flex w-auto max-w-35 justify-center",children:(0,r.jsx)(s(),{src:`https:${e?.fields.file?.url}`,width:e?.fields.file?.details.image?.width,height:e?.fields.file?.details.image?.height,alt:e?.fields.description||e?.fields.title||""})},t))})]})})})]})}},22582:(e,t,l)=>{l.d(t,{A:()=>n});var r=l(15383),i=l(74253),s=l(20755),a=l(39370),d=l(12909);let c=e=>"object"==typeof e&&null!==e&&"document"===e.nodeType,n=({text:e,className:t="",renderDocumentAsPlainText:l=!1})=>{let{state:n}=(0,s.JP)();if(l&&("string"==typeof e||c(e))){let t="string"==typeof e?e:(0,i.l)(e);return(0,r.jsx)(r.Fragment,{children:(0,d.G)(t,n)})}return"string"==typeof e?(0,r.jsx)("div",{className:t,children:(0,d.G)(e,n)}):c(e)?(0,r.jsx)("div",{className:t,children:(0,a.Ay)(e)}):(0,r.jsx)("div",{className:t,children:e})}}}]);
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.