PageSourceSearch

https://crypto-rates.io/_next/static/chunks/pages/popular-conversions/%5B...slug%5D-10e09dbf0553156a.js

js crypto-rates.io collected 2026-10-02 01:57:52 UTC 16,357 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[447],{237:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/popular-conversions/[...slug]",function(){return a(4147)}])},4147:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return C},default:function(){return h}});var o=a(5893),r=a(5569),n=a(4640),l=a(1163),c=a(7294),s=a(6160),i=a(808),u=a.n(i),m=a(1664),d=a.n(m),p=a(5600),v=a.n(p),y=a(8809),b=a(738),_=a(8202);function f(e){var t,a;let{crypto:r,fiat:l,amount:i,rate:u,convertedAmount:m,cryptoDisplayName:d,fiatDisplayName:p,cryptoSymbol:f,fiatSymbol:C}=e,h=(0,n.useTranslations)(),[x,N]=(0,c.useState)(null),[j,S]=(0,c.useState)(i),[U,T]=(0,c.useState)(r),[w,g]=(0,c.useState)(l),[A,L]=(0,c.useState)("crypto"),[I,E]=(0,c.useState)(m),[B,k]=(0,c.useState)(null),[F,O]=(0,c.useState)(!1),D=async()=>{try{let[e,t]=await Promise.all([fetch("/api/crypto-rates"),fetch("/api/fiat-rates")]),a=await e.json(),o=await t.json();N({crypto:a,fiat:o.rates}),k(new Date)}catch(e){console.error("Error loading rates:",e)}};(0,c.useEffect)(()=>{D();let e=setInterval(D,3e5);return()=>clearInterval(e)},[]);let R=()=>{var e;if(!x||!j)return;let t=parseFloat(j);if(Number.isNaN(t))return;let a=null===(e=x.crypto[U])||void 0===e?void 0:e[w];a&&E("crypto"===A?t*a:t/a)},P=[{value:"bitcoin",label:"".concat(h("crypto.bitcoin")," (BTC)"),symbol:"BTC"},{value:"ethereum",label:"".concat(h("crypto.ethereum")," (ETH)"),symbol:"ETH"},{value:"binancecoin",label:"".concat(h("crypto.binancecoin")," (BNB)"),symbol:"BNB"},{value:"ripple",label:"".concat(h("crypto.ripple")," (XRP)"),symbol:"XRP"},{value:"cardano",label:"".concat(h("crypto.cardano")," (ADA)"),symbol:"ADA"},{value:"solana",label:"".concat(h("crypto.solana")," (SOL)"),symbol:"SOL"},{value:"polkadot",label:"".concat(h("crypto.polkadot")," (DOT)"),symbol:"DOT"},{value:"dogecoin",label:"".concat(h("crypto.dogecoin")," (DOGE)"),symbol:"DOGE"},{value:"avalanche-2",label:"".concat(h("crypto.avalanche-2")," (AVAX)"),symbol:"AVAX"},{value:"chainlink",label:"".concat(h("crypto.chainlink")," (LINK)"),symbol:"LINK"},{value:"cosmos",label:"".concat(h("crypto.cosmos")," (ATOM)"),symbol:"ATOM"},{value:"monero",label:"".concat(h("crypto.monero")," (XMR)"),symbol:"XMR"},{value:"litecoin",label:"".concat(h("crypto.litecoin")," (LTC)"),symbol:"LTC"},{value:"bitcoin-cash",label:"".concat(h("crypto.bitcoin-cash")," (BC
1H)"),symbol:"BCH"},{value:"tron",label:"".concat(h("crypto.tron")," (TRX)"),symbol:"TRX"},{value:"stellar",label:"".concat(h("crypto.stellar")," (XLM)"),symbol:"XLM"},{value:"wrapped-beacon-eth",label:"".concat(h("crypto.wrapped-beacon-eth")," (WBETH)"),symbol:"WBETH"},{value:"wrapped-bitcoin",label:"".concat(h("crypto.wrapped-bitcoin")," (WBTC)"),symbol:"WBTC"},{value:"sui",label:"".concat(h("crypto.sui")," (SUI)"),symbol:"SUI"},{value:"worldcoin-wld",label:"".concat(h("crypto.worldcoin-wld")," (WLD)"),symbol:"WLD"},{value:"arbitrum",label:"".concat(h("crypto.arbitrum")," (ARB)"),symbol:"ARB"},{value:"optimism",label:"".concat(h("crypto.optimism")," (OP)"),symbol:"OP"},{value:"ethereum-classic",label:"".concat(h("crypto.ethereum-classic")," (ETC)"),symbol:"ETC"},{value:"okb",label:"".concat(h("crypto.okb")," (OKB)"),symbol:"OKB"},{value:"pi-network",label:"".concat(h("crypto.pi-network")," (PI)"),symbol:"PI"},{value:"dash",label:"".concat(h("crypto.dash")," (DASH)"),symbol:"DASH"},{value:"stacks",label:"".concat(h("crypto.stacks")," (STX)"),symbol:"STX"},{value:"pancakeswap-token",label:"".concat(h("crypto.pancakeswap-token")," (CAKE)"),symbol:"CAKE"},{value:"raydium",label:"".concat(h("crypto.raydium")," (RAY)"),symbol:"RAY"},{value:"leo-token",label:"".concat(h("crypto.leo-token")," (LEO)"),symbol:"LEO"},{value:"hedera-hashgraph",label:"".concat(h("crypto.hedera-hashgraph")," (HBAR)"),symbol:"HBAR"},{value:"shiba-inu",label:"".concat(h("crypto.shiba-inu")," (SHIB)"),symbol:"SHIB"},{value:"dai",label:"".concat(h("crypto.dai")," (DAI)"),symbol:"DAI"},{value:"cronos",label:"".concat(h("crypto.cronos")," (CRO)"),symbol:"CRO"},{value:"mantle",label:"".concat(h("crypto.mantle")," (MNT)"),symbol:"MNT"},{value:"uniswap",label:"".concat(h("crypto.uniswap")," (UNI)"),symbol:"UNI"},{value:"aave",label:"".concat(h("crypto.aave")," (AAVE)"),symbol:"AAVE"},{value:"internet-computer",label:"".concat(h("crypto.internet-computer")," (ICP)"),symbol:"ICP"},{value:"aster-2",label:"".concat(h("crypto.aster-2")," (ASTER)"),symbol:"ASTER"},{value:"aptos",label:"".concat(h("crypto.aptos")," (APT)"),symbol:"APT"},{value:"vechain",label:"".concat(h("crypto.vechain")," (VET)"),symbol:"VET"},{value:"jupiter",label:"".concat(h("crypto.jupiter")," (JUP)"),symbol:"JUP"},{value:"quant-network",label:"".concat(h("crypto.quant-network")," (QNT)"),symbol:"QNT"},{value:"curve-dao-token",label:"".concat(h("crypto.curve-dao-token")," (CRV)"),symbol:"CRV"},{value:"tezos",label:"".concat(h("crypto.tezos")," (XTZ)"),symbol:"XTZ"},{value:"fetch-ai",label:"".concat(h("crypto.fetch-ai")," (FET)"),symbol:"FET"},{value:"pump-fun",label:"".concat(h("crypto.pump-fun")," (PUMP)"),symbol:"PUMP"}],X=[{value:"usd",label:h("Common.fiatCurrencies.usd"),symbol:"$"},{value:"cny",label:h("Common.fiatCurrencies.cny"),symbol:"\xa5"},{value:"eur",label:h("Common.fiatCurrencies.eur"),symbol:"€"},{value:"gbp",label:h("Common.fiatCurrencies.gbp"),symbol:"\xa3"},{value:"jpy",label:h("Common.fiatCurrencies.jpy"),symbol:"\xa5"},{value:"aud",label:h("Common.fiatCurrencies.aud"),symbol:"A$"},{value:"cad",label:h("Common.fiatCurrencies.cad"),symbol:"C$"},{value:"chf",label:h("Common.fiatCurrencies.chf"),symbol:"CHF"},{value:"inr",label:h("Common.fiatCurrencies.inr"),symbol:"₹"},{value:"krw",label:h("Common.fiatCurrencies.krw"),symbol:"₩"},{value:"rub",label:h("Common.fiatCurrencies.rub"),symbol:"₽"},{value:"sgd",label:h("Common.fiatCurrencies.sgd"),symbol:"S$"}];return(0,c.useEffect)(()=>{R()},[j,U,w,A,x]),(0,o.jsxs)("div",{className:v().unifiedConverter,children:[(0,o.jsxs)("div",{className:v().conversionDisplay,children:[(0,o.jsxs)("div",{className:v().displayHeader,children:[(0,o.jsx)("img",{src:"/coinicon/".concat(r,".png"),alt:"".concat(r," icon"),className:v().displayIcon,onError:e=>{e.currentTarget.src="https://bin.bnbstatic.com/static/assets/logos/".concat(f,".png")}}),(0,o.jsxs)("div",{className:v().displayInfo,children:[(0,o.jsx)("h2",{className:v().displayTitle,children:h("SEO.convertTitle",{amount:i,crypto:h("crypto.".concat(r)),fiat:h("Common.fiatCurrencies.".concat(l))})}),(0,o.jsx)("p",{className:v().displaySubtitle,children:h("Converter.conversionSubtext",{cryptoSymbol:f,rate:u.toFixed(6),fiatSymbol:C})})]}),(0,o.jsxs)("button",{className:v().editButton,onClick:()=>{O(!F)},"aria-label":h("Common.editConversion"),children:[(0,o.jsx)("svg",{viewBox:"0 0 24 24",width:"20",height:"20",children:(0,o.jsx)("path",{fill:"currentColor",d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"})}),h(F?"Common.done":"Common.edit")]})]}),(0,o.jsxs)("div",{className:v().conversionResult,children:[(0,o.jsxs)("div",{className:v().resultRow,children:[(0,o.jsx)("span",{className:v().amount,children:i}),(0,o.jsx)("span",{className:v().cryptoSymbol,children:f}),(0,o.jsx)("span",{className:v().equals,children:"="}),(0,o.jsx)("span",{className:v().resultAmount,children:m.toFixed(8)}),(0,o.jsx)("span",{className:v().fiatSymbol,children:C})]}),(0,o.jsx)("div",{className:v().rateInfo,children:h("Converter.conversionSubtext",{cryptoSymbol:f,rate:u.toFixed(6),fiatSymbol:C})})]}),(0,o.jsxs)("div",{className:v().rateUpdate,children:[h("Common.lastUpdated"),": ",new Date().toLocaleStr
1ing()]})]}),F&&(0,o.jsxs)("div",{className:v().editableForm,children:[(0,o.jsxs)("div",{className:v().formHeader,children:[(0,o.jsx)("h3",{className:v().formTitle,children:h("Converter.convertButton")}),(0,o.jsx)("p",{className:v().formSubtitle,children:h("Converter.inputLabel")})]}),(0,o.jsxs)("div",{className:v().formBody,children:[(0,o.jsxs)("div",{className:v().inputSection,children:[(0,o.jsxs)("div",{className:v().amountInputWrapper,children:[(0,o.jsx)("label",{className:v().inputLabel,children:h("Common.amount")}),(0,o.jsx)("input",{type:"number",step:"any",value:j,onChange:e=>S(e.target.value),placeholder:"0.00",min:"0",className:v().amountInput})]}),(0,o.jsxs)("div",{className:v().currencySelectorWrapper,children:[(0,o.jsx)("label",{className:v().inputLabel,children:h("crypto"===A?"Common.from":"Common.to")}),(0,o.jsx)(y.Z,{value:U,onChange:T,options:P,placeholder:h("Common.selectCrypto")})]}),(0,o.jsxs)("button",{type:"button",onClick:()=>{L(e=>"crypto"===e?"fiat":"crypto")},className:v().swapButton,"aria-label":h("Converter.swapButton"),children:[(0,o.jsx)(b.Z,{name:"swap",size:20})," "]}),(0,o.jsxs)("div",{className:v().currencySelectorWrapper,children:[(0,o.jsx)("label",{className:v().inputLabel,children:h("crypto"===A?"Common.to":"Common.from")}),(0,o.jsx)(_.Z,{value:w,onChange:g,options:X,placeholder:h("Common.selectFiat")})]})]}),null!==I&&(0,o.jsxs)("div",{className:v().resultSection,children:[(0,o.jsx)("div",{className:v().resultLabel,children:h("Converter.resultLabel")}),(0,o.jsxs)("div",{className:v().resultValue,children:[I.toFixed(8)," ",(0,s.t6)(w)]}),(0,o.jsxs)("div",{className:v().rateInfo,children:["1 ",(0,s.dd)(U)," = ",(null==x?void 0:null===(a=x.crypto[U])||void 0===a?void 0:null===(t=a[w])||void 0===t?void 0:t.toFixed(6))||"0.00"," ",(0,s.t6)(w)]})]}),(0,o.jsx)("div",{className:v().formFooter,children:B&&(0,o.jsxs)("div",{className:v().lastUpdated,children:[h("Common.lastUpdated"),": ",B.toLocaleString()]})})]})]})]})}var C=!0;function h(e){let{crypto:t,fiat:a,amount:i,amountType:m,rate:p,convertedAmount:v}=e,y=(0,n.useTranslations)(),b=(0,l.useRouter)(),[_,C]=(0,c.useState)(p),[h,x]=(0,c.useState)(v),N=y("crypto.".concat(t))||(0,s.OU)(t),j=y("Common.fiatCurrencies.".concat(a))||(0,s.Qy)(a),S=(0,s.dd)(t),U=(0,s.t6)(a),T=parseFloat(i);(0,c.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/crypto-rates"),o=await e.json();if(o&&o[t]&&o[t][a]){let e=o[t][a];C(e),x("crypto"===m?T*e:T/e)}}catch(e){console.error("Error updating rates:",e)}};e();let o=setInterval(e,6e4);return()=>clearInterval(o)},[t,a,i,m]);let w=y("SEO.convertTitle",{amount:i,crypto:N,fiat:j}),g=y("SEO.convertDescription",{amount:i,crypto:N,fiat:j,cryptoSymbol:S,fiatSymbol:U,rate:_.toFixed(2)}),A=y("SEO.convertKeywords",{amount:i,crypto:N,fiat:j,cryptoSymbol:S,fiatSymbol:U,rate:_.toFixed(2)}),L=[{label:y("Common.home"),href:"/"},{label:y("Home.popularConversions"),href:"/popular-conversions"},{label:w,href:b.asPath}];return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(r.Z,{page:null,content:null,title:w,description:g,keywords:A,structuredData:[{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:y("Common.home"),item:"".concat("https://crypto-rates.io").concat("en"===b.locale?"":"/".concat(b.locale),"/")},{"@type":"ListItem",position:2,name:y("Home.popularConversions"),item:"".concat("https://crypto-rates.io").concat("en"===b.locale?"":"/".concat(b.locale),"/popular-conversions")},{"@type":"ListItem",position:3,name:w,item:"".concat("https://crypto-rates.io").concat(b.asPath)}]}]}),(0,o.jsxs)("div",{className:u().container,children:[(0,o.jsx)("nav",{className:u().breadcrumbs,children:L.map((e,t)=>(0,o.jsxs)(c.Fragment,{children:[t>0&&(0,o.jsx)("span",{className:u().separator,children:">"}),(0,o.jsx)(d(),{href:e.href,className:u().breadcrumbLink,children:e.label})]},t))}),(0,o.jsxs)("div",{className:u().conversionLayout,children:[(0,o.jsxs)("div",{className:u().unifiedConverterSection,children:[(0,o.jsx)("h1",{children:w}),(0,o.jsx)(f,{crypto:t,fiat:a,amount:i,rate:_,convertedAmount:h,cryptoDisplayName:N,fiatDisplayName:j,cryptoSymbol:S,fiatSymbol:U})]}),(0,o.jsxs)("div",{className:u().relatedConversions,children:[(0,o.jsx)("h3",{children:y("Common.relatedConversions")}),(0,o.jsx)("div",{className:u().relatedGrid,children:[{amount:"0.01",crypto:t,fiat:a},{amount:"1",crypto:t,fiat:a},{amount:"100",crypto:t,fiat:a}].map((e,t)=>
1{let a="/popular-conversions/".concat(e.crypto).concat(e.amount.replace(".","x"),"to").concat(e.fiat),r=parseFloat(e.amount),n=Number.isNaN(r)?null:r*_;return(0,o.jsxs)(d(),{href:a,className:u().relatedLink,children:[(0,o.jsx)("img",{src:"/coinicon/".concat(e.crypto,".png"),alt:"".concat(e.crypto," icon"),className:u().relatedIcon,onError:t=>{t.currentTarget.src="https://bin.bnbstatic.com/static/assets/logos/".concat((0,s.dd)(e.crypto),".png")}}),(0,o.jsxs)("div",{className:u().relatedText,children:[y("SEO.convertTitle",{amount:e.amount,crypto:y("crypto.".concat(e.crypto))||(0,s.OU)(e.crypto),fiat:y("Common.fiatCurrencies.".concat(e.fiat))||(0,s.Qy)(e.fiat)}),(0,o.jsxs)("div",{className:u().relatedMeta,children:[(0,o.jsxs)("span",{className:u().amountBadge,children:[e.amount," ",(0,s.dd)(e.crypto)]}),null!==n&&(0,o.jsxs)("span",{className:u().rateMini,children:["≈ ",n.toFixed(2)," ",(0,s.t6)(e.fiat)]})]})]}),(0,o.jsx)("span",{className:u().relatedArrow,children:"›"})]},t)})})]})]})]})]})}},5600:function(e){e.exports={unifiedConverter:"UnifiedConverter_unifiedConverter__9G0rN",conversionDisplay:"UnifiedConverter_conversionDisplay__sL8vP",displayHeader:"UnifiedConverter_displayHeader__pW_Ar",displayIcon:"UnifiedConverter_displayIcon__mMw16",displayInfo:"UnifiedConverter_displayInfo__Nd2UI",displayTitle:"UnifiedConverter_displayTitle___S9mE",displaySubtitle:"UnifiedConverter_displaySubtitle__HQaXF",editButton:"UnifiedConverter_editButton___Al6G",conversionResult:"UnifiedConverter_conversionResult__Ksnci",resultRow:"UnifiedConverter_resultRow__SjY6j",amount:"UnifiedConverter_amount__jBjDF",cryptoSymbol:"UnifiedConverter_cryptoSymbol__tgov8",equals:"UnifiedConverter_equals__IDy4n",resultAmount:"UnifiedConverter_resultAmount__Wyixr",fiatSymbol:"UnifiedConverter_fiatSymbol__lJm9N",rateInfo:"UnifiedConverter_rateInfo__24vW9",rateUpdate:"UnifiedConverter_rateUpdate__lUd4T",editableForm:"UnifiedConverter_editableForm__jMc_M",formHeader:"UnifiedConverter_formHeader__NxTxZ",formTitle:"UnifiedConverter_formTitle__a68qz",formSubtitle:"UnifiedConverter_formSubtitle__UADlX",formBody:"UnifiedConverter_formBody__BNs34",inputSection:"UnifiedConverter_inputSection__GgF_h",amountInputWrapper:"UnifiedConverter_amountInputWrapper__i_tgn",currencySelectorWrapper:"UnifiedConverter_currencySelectorWrapper__UnBXt",inputLabel:"UnifiedConverter_inputLabel__RyAnU",amountInput:"UnifiedConverter_amountInput__ZUyYK",fiatSelect:"UnifiedConverter_fiatSelect__RsZ4O",swap
1Button:"UnifiedConverter_swapButton__7xIVX",resultSection:"UnifiedConverter_resultSection__Vqz4r",resultLabel:"UnifiedConverter_resultLabel__MPkYC",resultValue:"UnifiedConverter_resultValue__uhvuX",formFooter:"UnifiedConverter_formFooter__Xr34A",amountTypeToggle:"UnifiedConverter_amountTypeToggle___bp4c",toggleOption:"UnifiedConverter_toggleOption__Gn4E_",lastUpdated:"UnifiedConverter_lastUpdated__hHJ9v"}},808:function(e){e.exports={container:"convert_container__aD64a",conversionLayout:"convert_conversionLayout__DbfId",breadcrumbs:"convert_breadcrumbs__mXU9u",breadcrumbLink:"convert_breadcrumbLink__wTWpk",separator:"convert_separator__FDZRc",relatedConversions:"convert_relatedConversions__YzNNt",relatedGrid:"convert_relatedGrid__LpQgo",relatedLink:"convert_relatedLink__PiaUc",relatedIcon:"convert_relatedIcon__ud9Dw",relatedText:"convert_relatedText__QQY8D",relatedArrow:"convert_relatedArrow__N_Our",relatedMeta:"convert_relatedMeta__mZcX0",amountBadge:"convert_amountBadge__cmuJs",rateMini:"convert_rateMini__wh3YZ",conversionCard:"convert_conversionCard__8ToPs",amountSection:"convert_amountSection__rp6sO",inputAmount:"convert_inputAmount__6bfJ3",outputAmount:"convert_outputAmount__EI52y",equals:"convert_equals__UwYAa",currencyName:"convert_currencyName__FZfPt",converterSection:"convert_converterSection__SiM8Y",rateUpdate:"convert_rateUpdate__JFORN",rateLabel:"convert_rateLabel__uLL5l",rateValue:"convert_rateValue__FGd3i",unifiedConverterSection:"convert_unifiedConverterSection__VO2Px",editableFormWrapper:"convert_editableFormWrapper__6_VCY",editableFormDescription:"convert_editableFormDescription__rlXxW"}}},function(e){e.O(0,[45,245,888,774,179],function(){return e(e.s=237)}),_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.