PageSourceSearch

https://rate-api.com/build/assets/currency-DMcSRJl7.js

js rate-api.com collected 2026-09-26 07:17:07 UTC 3,176 bytes, 1 lines download raw bytes

1import{j as e,L as N,$ as m}from"./app-BesBXCyQ.js";import{f as h,A as b,l as v}from"./api-section-ShdsCx5X.js";import{M as _}from"./marketing-shell-BovsSmYd.js";import{C as y,a as C,d as k}from"./card-BKJOgkFs.js";import{a as w,u as L,l as R}from"./site-footer-sMpmVF6U.js";import{A}from"./arrow-right-Cl8LuTmi.js";/* empty css            */import"./button-Dl8JXZqZ.js";import"./check-BdOAMceG.js";import"./createLucideIcon-BwblJRoD.js";import"./copy-D9A_HDgv.js";import"./key-round-D6aswuo_.js";import"./select-JpoGDfbE.js";import"./index-CFnm1g4f.js";import"./index-CTIxSFhd.js";import"./trending-up-KidW6CJm.js";import"./index-Cl3brmDB.js";import"./globe-CKa1B-Gk.js";import"./trending-down-CdGuuMtB.js";const p=(a,n)=>`/convert/${a.toLowerCase()}-to-${n.toLowerCase()}`;function V({currency:a,rates:n,convert_to:o=[],usd_value:c,date:f,api:l,free_requests:g=2500,seo:j}){var x;const{t:r}=w(),d=L(),i=s=>R(s,d),t=a.code;return e.jsxs(_,{ticker:!0,children:[e.jsx(N,{title:j.title}),e.jsxs("section",{className:"mx-auto max-w-4xl px-4 py-12",children:[e.jsxs("nav",{"aria-label":"Breadcrumb",className:"text-muted-foreground text-sm",children:[e.jsx(m,{href:i("/"),className:"hover:text-foreground",children:r("converter_page.home")})," / ",e.jsx(m,{href:i("/currencies"),className:"hover:text-foreground",children:r("converter_page.all_currencies")})," / ",t]}),e.jsxs("h1",{className:"mt-2 text-3xl font-bold tracking-tight",children:[a.name," (",t,") ",e.jsx("span",{className:"text-muted-foreground font-normal",children:a.symbol})]}),e.jsx("p",{className:"text-muted-foreground mt-2",children:r("currency.intro",{name:a.name,code:t})}),c!=null&&t!=="USD"&&e.jsx("p",{className:"mt-4 text-lg",dir:"ltr",children:e.jsxs("span",{className:"font-semibold",children:["1 ",t," = ",h(c,!0)," USD"]})}),e.jsxs("div",{className:"mt-8 grid gap-6 md:grid-cols-2",children:[e.jsx(u,{title:r("currency.table_title",{code:t}),rows:n.map(s=>({...s,href:i(p(t,s.code)),label:r("converter_page.pair_link",{from:t,to:s.code})}))}),e.jsx(u,{title:r("currency.convert_to_title",{code:t}),rows:o.map(s=>({...s,href:i(p(s.code,t)),label:r("converter_page.pair_link",{from:s.code,to:t})}))})]}),(x=l==null?void 0:l.snippets)!=null&&x.length?e.jsx(b,{title:r("currency.api_title",{code:t}),intro:r("currency.api_intro",{code:t}),api:l,freeRequests:g}):null,e.jsx("p",{className:"text-muted-foreground mt-10 text-xs",children:r("currency.updated",{date:v(f,d)})})]})]})}function u({title:a,rows:n}){return n.length===0?null:e.jsxs(y,{children:[e.jsx(C,{children:e.jsx("h2",{className:"text-lg leading-none font-semibold tracking-tight",children:a})}),e.jsx(k,{children:e.jsx("div",{className:"divide-y",children:n.map(o=>e.jsxs(m,{href:o.href,className:"hover:bg-muted/50 flex items-center justify-between gap-3 py-3",children:[e.jsxs("span",{children:[e.jsx("span",{className:"font-medium",children:o.label}),e.jsx("span",{className:"text-muted-foreground ms-2 text-xs",children:o.name})]}),e.jsxs("span",{className:"flex items-center gap-2 font-medium tabular-nums",dir:"ltr",children:[h(o.rate),e.jsx(A,{className:"text-muted-foreground size-4"})]})]},o.code))})})]})}export{V as default};

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.