1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{8312:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return o(5566)}])},5566:function(e,t,o){"use strict";o.r(t),o.d(t,{__N_SSG:function(){return f},default:function(){return C}});var a=o(5893),r=o(4640),c=o(5569),n=o(1664),l=o.n(n),s=o(1163),i=o(7294),u=o(4262),m=o.n(u),_=o(738),d=o(6160),p=o(8991),y=o.n(p),v=o(8809),b=o(8202);function h(e){let{className:t="",defaultAmount:o="1",defaultCrypto:c="bitcoin",defaultFiat:n="usd"}=e,l=(0,r.useTranslations)(),[s,u]=(0,i.useState)(null),[m,p]=(0,i.useState)(o),[h,f]=(0,i.useState)(c),[C,N]=(0,i.useState)(n),[S,H]=(0,i.useState)("crypto"),[x,T]=(0,i.useState)(null),[j,g]=(0,i.useState)(!1),[w,B]=(0,i.useState)(null),A=async()=>{try{let[e,t]=await Promise.all([fetch("/api/crypto-rates"),fetch("/api/fiat-rates")]),o=await e.json(),a=await t.json();u({crypto:o,fiat:a.rates}),B(new Date)}catch(e){console.error("Error loading rates:",e)}};(0,i.useEffect)(()=>{A();let e=setInterval(A,3e5);return()=>clearInterval(e)},[]),(0,i.useEffect)(()=>{var e;if(!x||!s||!m)return;let t=parseFloat(m);if(Number.isNaN(t))return;let o=null===(e=s.crypto[h])||void 0===e?void 0:e[C];if(!o)return;let a="crypto"===S?t*o:t/o;T({amount:t,crypto:h,fiat:C,rate:o,result:a,amountType:S})},[m,h,C,S,s]);let R=async()=>{if(x){let e="".concat(x.result.toFixed(8)," ").concat((0,d.t6)(x.fiat));await navigator.clipboard.writeText(e)}},k=[{value:"bitcoin",label:"".concat(l("crypto.bitcoin")," (BTC)"),symbol:"BTC"},{value:"ethereum",label:"".concat(l("crypto.ethereum")," (ETH)"),symbol:"ETH"},{value:"binancecoin",label:"".concat(l("crypto.binancecoin")," (BNB)"),symbol:"BNB"},{value:"ripple",label:"".concat(l("crypto.ripple")," (XRP)"),symbol:"XRP"},{value:"cardano",label:"".concat(l("crypto.cardano")," (ADA)"),symbol:"ADA"},{value:"solana",label:"".concat(l("crypto.solana")," (SOL)"),symbol:"SOL"},{value:"polkadot",label:"".concat(l("crypto.polkadot")," (DOT)"),symbol:"DOT"},{value:"dogecoin",label:"".concat(l("crypto.dogecoin")," (DOGE)"),symbol:"DOGE"},{value:"avalanche-2",label:"".concat(l("crypto.avalanche-2")," (AVAX)"),symbol:"AVAX"},{value:"chainlink",label:"".concat(l("crypto.chainlink")," (LINK)"),symbol:"LINK"},{value:"cosmos",label:"".concat(l("crypto.cosmos")," (ATOM)"),symbol:"ATOM"},{value:"monero",label:"".concat(l("crypto.monero")," (XMR)"),symbol:"XMR"},{value:"litecoin",label:"".concat(l("crypto.litecoin")," (LTC)"),symbol:"LTC"},{value:"bitcoin-cash",label:"".concat(l("crypto.bitcoin-cash")," (BC
1H)"),symbol:"BCH"},{value:"tron",label:"".concat(l("crypto.tron")," (TRX)"),symbol:"TRX"},{value:"stellar",label:"".concat(l("crypto.stellar")," (XLM)"),symbol:"XLM"},{value:"wrapped-beacon-eth",label:"".concat(l("crypto.wrapped-beacon-eth")," (WBETH)"),symbol:"WBETH"},{value:"wrapped-bitcoin",label:"".concat(l("crypto.wrapped-bitcoin")," (WBTC)"),symbol:"WBTC"},{value:"sui",label:"".concat(l("crypto.sui")," (SUI)"),symbol:"SUI"},{value:"worldcoin-wld",label:"".concat(l("crypto.worldcoin-wld")," (WLD)"),symbol:"WLD"},{value:"arbitrum",label:"".concat(l("crypto.arbitrum")," (ARB)"),symbol:"ARB"},{value:"optimism",label:"".concat(l("crypto.optimism")," (OP)"),symbol:"OP"},{value:"ethereum-classic",label:"".concat(l("crypto.ethereum-classic")," (ETC)"),symbol:"ETC"},{value:"okb",label:"".concat(l("crypto.okb")," (OKB)"),symbol:"OKB"},{value:"pi-network",label:"".concat(l("crypto.pi-network")," (PI)"),symbol:"PI"},{value:"dash",label:"".concat(l("crypto.dash")," (DASH)"),symbol:"DASH"},{value:"stacks",label:"".concat(l("crypto.stacks")," (STX)"),symbol:"STX"},{value:"pancakeswap-token",label:"".concat(l("crypto.pancakeswap-token")," (CAKE)"),symbol:"CAKE"},{value:"raydium",label:"".concat(l("crypto.raydium")," (RAY)"),symbol:"RAY"},{value:"leo-token",label:"".concat(l("crypto.leo-token")," (LEO)"),symbol:"LEO"},{value:"hedera-hashgraph",label:"".concat(l("crypto.hedera-hashgraph")," (HBAR)"),symbol:"HBAR"},{value:"shiba-inu",label:"".concat(l("crypto.shiba-inu")," (SHIB)"),symbol:"SHIB"},{value:"dai",label:"".concat(l("crypto.dai")," (DAI)"),symbol:"DAI"},{value:"cronos",label:"".concat(l("crypto.cronos")," (CRO)"),symbol:"CRO"},{value:"mantle",label:"".concat(l("crypto.mantle")," (MNT)"),symbol:"MNT"},{value:"uniswap",label:"".concat(l("crypto.uniswap")," (UNI)"),symbol:"UNI"},{value:"aave",label:"".concat(l("crypto.aave")," (AAVE)"),symbol:"AAVE"},{value:"internet-computer",label:"".concat(l("crypto.internet-computer")," (ICP)"),symbol:"ICP"},{value:"aster-2",label:"".concat(l("crypto.aster-2")," (ASTER)"),symbol:"ASTER"},{value:"aptos",label:"".concat(l("crypto.aptos")," (APT)"),symbol:"APT"},{value:"vechain",label:"".concat(l("crypto.vechain")," (VET)"),symbol:"VET"},{value:"jupiter",label:"".concat(l("crypto.jupiter")," (JUP)"),symbol:"JUP"},{value:"quant-network",label:"".concat(l("crypto.quant-network")," (QNT)"),symbol:"QNT"},{value:"curve-dao-token",label:"".concat(l("crypto.curve-dao-token")," (CRV)"),symbol:"CRV"},{value:"tezos",label:"".concat(l("crypto.tezos")," (XTZ)"),symbol:"XTZ"},{value:"fetch-ai",label:"".concat(l("crypto.fetch-ai")," (FET)"),symbol:"FET"},{value:"pump-fun",label:"".concat(l("crypto.pump-fun")," (PUMP)"),symbol:"PUMP"}],E=[{value:"usd",label:l("Common.fiatCurrencies.usd"),symbol:"$"},{value:"cny",label:l("Common.fiatCurrencies.cny"),symbol:"\xa5"},{value:"eur",label:l("Common.fiatCurrencies.eur"),symbol:"â¬"},{value:"gbp",label:l("Common.fiatCurrencies.gbp"),symbol:"\xa3"},{value:"jpy",label:l("Common.fiatCurrencies.jpy"),symbol:"\xa5"},{value:"aud",label:l("Common.fiatCurrencies.aud"),symbol:"A$"},{value:"cad",label:l("Common.fiatCurrencies.cad"),symbol:"C$"},{value:"chf",label:l("Common.fiatCurrencies.chf"),symbol:"CHF"},{value:"inr",label:l("Common.fiatCurrencies.inr"),symbol:"â¹"},{value:"krw",label:l("Common.fiatCurrencies.krw"),symbol:"â©"},{value:"rub",label:l("Common.fiatCurrencies.rub"),symbol:"â½"},{value:"sgd",label:l("Common.fiatCurrencies.sgd"),symbol:"S$"}];return(0,a.jsxs)("div",{className:"".concat(y().converterCard," ").concat(t),children:[(0,a.jsxs)("div",{className:y().converterForm,children:[(0,a.jsxs)("div",{className:y().inputGroup,style:{gridColumn:"1 / -1"},children:[(0,a.jsx)("label",{children:l("Converter.inputLabel")}),(0,a.jsx)("input",{type:"number",step:"any",value:m,onChange:e=>p(e.target.value),placeholder:"0.00",min:"0",className:y().amountInput})]}),(0,a.jsxs)("div",{className:y().currencyGroup,style:{gridColumn:"1 / -1"},children:[(0,a.jsxs)("div",{className:y().currencySelect,children:[(0,a.jsx)("label",{children:l("crypto"===S?"Common.from":"Common.to")}),(0,a.jsx)(v.Z,{value:h,onChange:f,options:k,placeholder:l("Common.selectCrypto")})]}),(0,a.jsx)("button",{type:"button",onClick:()=>
1{if(H(e=>"crypto"===e?"fiat":"crypto"),s&&m&&x){let t=parseFloat(m);if(!Number.isNaN(t)){var e;let o=null===(e=s.crypto[h])||void 0===e?void 0:e[C];if(o){let e="crypto"===x.amountType?"fiat":"crypto";T({amount:t,crypto:h,fiat:C,rate:o,result:"crypto"===e?t*o:t/o,amountType:e})}}}},className:y().swapButton,"aria-label":l("Converter.swapButton"),children:(0,a.jsx)(_.Z,{name:"swap",size:20})}),(0,a.jsxs)("div",{className:y().currencySelect,children:[(0,a.jsx)("label",{children:l("crypto"===S?"Common.to":"Common.from")}),(0,a.jsx)(b.Z,{value:C,onChange:N,options:E,placeholder:l("Common.selectFiat")})]})]}),(0,a.jsx)("button",{onClick:()=>{var e;let t;if(!s||!m)return;let o=parseFloat(m);if(Number.isNaN(o))return;g(!0);let a=null===(e=s.crypto[h])||void 0===e?void 0:e[C];if(!a){g(!1);return}t="crypto"===S?o*a:o/a,T({amount:o,crypto:h,fiat:C,rate:a,result:t,amountType:S}),g(!1)},disabled:!m||j,className:y().convertButton,children:l(j?"Common.loading":"Converter.convertButton")})]}),w&&(0,a.jsxs)("div",{className:y().lastUpdated,children:[l("Common.lastUpdated"),": ",w.toLocaleString()]}),x&&(0,a.jsxs)("div",{className:y().resultCard,children:[(0,a.jsx)("h3",{children:l("Converter.resultLabel")}),(0,a.jsxs)("div",{className:y().resultAmount,children:[x.result.toFixed(8)," ",(0,d.t6)(x.fiat)]}),(0,a.jsxs)("div",{className:y().rateInfo,children:[l("Converter.rateInfo"),": 1 ",(0,d.dd)(x.crypto)," = ",x.rate.toFixed(2)," ",(0,d.t6)(x.fiat)]}),(0,a.jsx)("button",{onClick:R,className:y().copyButton,children:l("Common.copyResult")})]})]})}var f=!0;function C(){let e=(0,r.useTranslations)();(0,s.useRouter)();let[t,o]=(0,i.useState)(null),[n,u]=(0,i.useState)(!0);(0,i.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/crypto-rates"),t=await e.json();o(t)}catch(e){console.error("Error loading rates:",e)}finally{u(!1)}})()},[]);let d=[{icon:"realtime",title:e("Home.features.realTime"),description:e("Home.features.descriptions.realTime")},{icon:"multicurrency",title:e("Home.features.multiCurrency"),description:e("Home.features.descriptions.multiCurrency")},{icon:"exchange",title:e("Home.features.multiFiat"),description:e("Home.features.descriptions.multiFiat")},{icon:"globe",title:e("Home.features.multiLanguage"),description:e("Home.features.descriptions.multiLanguage")}];return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.Z,{page:null,content:null}),(0,a.jsxs)("div",{className:m().heroSection,children:[(0,a.jsx)("h1",{className:m().heroTitle,children:e("Home.title")}),(0,a.jsx)("p",{className:m().heroDescription,children:e("Home.description")}),(0,a.jsx)("div",{className:m().converterSection,children:(0,a.jsx)(h,{})})]}),(0,a.jsxs)("div",{className:m().container,children:[(0,a.jsxs)("div",{className:m().featuresSection,children:[(0,a.jsx)("h2",{children:e("Home.features.title")}),(0,a.jsx)("div",{className:m().featuresGrid,children:d.map((e,t)=>(0,a.jsxs)("div",{className:m().featureCard,children:[(0,a.jsx)(_.Z,{name:e.icon,size:48,className:m().featureIcon}),(0,a.jsx)("h3",{children:e.title}),(0,a.jsx)("p",{children:e.description})]},t))})]}),(0,a.jsxs)("div",{className:m().popularSection,children:[(0,a.jsx)("h2",{children:e("Home.popularConversions")}),(0,a.jsx)("div",{className:m().tradingTablesGrid,children:[{crypto:"bitcoin",cryptoName:"Bitcoin",cryptoSymbol:"BTC",fiatCurrencies:["usd","eur","cny","gbp","jpy"]},{crypto:"ethereum",cryptoName:"Ethereum",cryptoSymbol:"ETH",fiatCurrencies:["usd","eur","cny","gbp","aud"]},{crypto:"solana",cryptoName:"Solana",cryptoSymbol:"SOL",fiatCurrencies:["usd","eur","cny","gbp","cad"]},{crypto:"binancecoin",cryptoName:"BNB",cryptoSymbol:"BNB",fiatCurrencies:["usd","eur","cny","gbp","chf"]},{crypto:"cardano",cryptoName:"Cardano",cryptoSymbol:"ADA",fiatCurrencies:["usd","eur","cny","gbp","aud"]},{crypto:"ripple",cryptoName:"XRP",cryptoSymbol:"XRP",fiatCurrencies:["usd","eur","cny","gbp","jpy"]}].map((o,r)=>(0,a.jsxs)("div",{className:m().tradingTableCard,children:[(0,a.jsx)("div",{className:m().tableHeader,children:(0,a.jsxs)("div",{className:m().cryptoHeader,children:[(0,a.jsx)("img",{src:"/coinicon/".concat(o.crypto,".png"),alt:"".concat(o.crypto,"-logo"),className:m().cryptoIcon,onError:e=>{e.currentTarget.src="https://bin.bnbstatic.com/static/assets/logos/".concat(o.cryptoSymbol,".png")}}),(0,a.jsxs)("div",{className:m().cryptoInfo,children:[(0,a.jsx)("h3",{className:m().cryptoName,children:e("crypto.".concat(o.crypto))}),(0,a.jsx)("span",{className:m().cryptoSymbol,children:o.cryptoSymbol})]})]})}
1),(0,a.jsx)("div",{className:m().tableBody,children:n?(0,a.jsx)("div",{className:m().loadingRow,children:e("Common.loading")}):o.fiatCurrencies.map((r,c)=>{var n;let s=null==t?void 0:null===(n=t[o.crypto])||void 0===n?void 0:n[r];return s?(0,a.jsxs)(l(),{href:"/popular-conversions/".concat(o.crypto,"1to").concat(r),className:m().fiatRow,children:[(0,a.jsx)("div",{className:m().fiatName,children:e("Common.fiatCurrencies.".concat(r))}),(0,a.jsx)("div",{className:m().fiatRate,children:Number(s).toFixed(2)})]},c):null})})]},r))})]}),(0,a.jsx)("div",{className:m().statsSection,children:(0,a.jsxs)("div",{className:m().statsGrid,children:[(0,a.jsxs)("div",{className:m().statCard,children:[(0,a.jsx)("div",{className:m().statNumber,children:"47+"}),(0,a.jsx)("div",{className:m().statLabel,children:e("Home.stats.cryptocurrencies")})]}),(0,a.jsxs)("div",{className:m().statCard,children:[(0,a.jsx)("div",{className:m().statNumber,children:"12+"}),(0,a.jsx)("div",{className:m().statLabel,children:e("Home.stats.fiatCurrencies")})]}),(0,a.jsxs)("div",{className:m().statCard,children:[(0,a.jsx)("div",{className:m().statNumber,children:"14"}),(0,a.jsx)("div",{className:m().statLabel,children:e("Home.stats.languages")})]}),(0,a.jsxs)("div",{className:m().statCard,children:[(0,a.jsx)("div",{className:m().statNumber,children:"56K+"}),(0,a.jsx)("div",{className:m().statLabel,children:e("Home.stats.totalCalculations")})]})]})})]})]})}},4262:function(e){e.exports={container:"Home_container__tlJEC",heroSection:"Home_heroSection__x6WS9",heroTitle:"Home_heroTitle__O24D1",heroDescription:"Home_heroDescription__fymkB",ctaSection:"Home_ctaSection__VRWjz",converterSection:"Home_converterSection__aGmDe",ctaButton:"Home_ctaButton___wYNu",featuresSection:"Home_featuresSection__t1P1Q",featuresGrid:"Home_featuresGrid___Phlh",featureCard:"Home_featureCard__t4Dy3",featureIcon:"Home_featureIcon__s_Vcs",popularSection:"Home_popularSection__v_W6s",conversionsGrid:"Home_conversionsGrid__v5Vew",conversionCard:"Home_conversionCard__SW_x_",conversionTitle:"Home_conversionTitle__O7SSI",conversionRate:"Home_conversionRate__wPFOO",statsSection:"Home_statsSection__Hire_",statsGrid:"Home_statsGrid__60T42",statCard:"Home_statCard__QAqt8",statNumber:"Home_statNumber__TWrUU",statLabel:"Home_statLabel__rLp4G",loading:"Home_loading___XSYu",spin:"Home_spin__k60m6",tradingTablesGrid:"Home_tradingTablesGrid__XLOo_",tradingTableCard:"Home_tradingTableCard__kH8e6",tableHeader:"Home_tableHeader__kAT6e",cryptoHeader:"Home_cryptoHeader__atRBX",cryptoIcon:"Home_cryptoIcon__X9uoT",cryptoInfo:"Home_cryptoInfo__MEoSi",cryptoName:"Home_cryptoName__DRw6A",cryptoSymbol:"Home_cryptoSymbol__AkjoF",tableBody:"Home_tableBody__NTN6W",fiatRow:"Home_fiatRow__8wzhQ",fiatName:"Home_fiatName__UskeS",fiatRate:"Home_fiatRate__KNtaq",fiatSymbol:"Home_fiatSymbol__Cvy41",loadingRow:"Home_loadingRow__7Mz14"}},8991:function(e){e.exports={container:"converter_container__yRihW",converterCard:"converter_converterCard__XVGAg",title:"converter_title__RVUBq",converterForm:"converter_converterForm__qtmPW",inputGroup:"converter_inputGroup__FbJl3",currencyGroup:"converter_currencyGroup__TVZlB",amountInput:"converter_amountInput__ZFb4n",select:"converter_select__pGYuC",currencySelect:"converter_currencySelect__Ut6_Z",swapButton:"converter_swapButton__ZabQS",convertButton:"converter_convertButton__42elK",lastUpdated:"converter_lastUpdated__xbzig",resultCard:"converter_resultCard__krahQ",resultAmount:"converter_resultAmount__lcbQN",rateInfo:"converter_rateInfo__kXDvx",copyButton:"converter_copyButton__uVa4d",heroSection:"converter_heroSection__rJVp6",heroContent:"converter_heroContent__AJGKx",heroTitle:"converter_heroTitle__DmUNE",heroSubtitle:"converter_heroSubtitle__NZ47N",converterMainSection:"converter_converterMainSection__D49Dp",sectionHeader:"converter_sectionHeader__o2fvH",sectionTitle:"converter_sectionTitle__ay2dc",sectionSubtitle:"converter_sectionSubtitle__GR4Y_",popularConversions:"converter_popularConversions__qCovV",conversionsGrid:"converter_conversionsGrid__pNi4P",conversionCard:"converter_conversionCard__m06f7",conversionHeader:"converter_conversionHeader__zG4uM",cryptoIcon:"converter_cryptoIcon__mYkMx",conversionTitle:"converter_conversionTitle__GVWkJ",conversionRate:"converter_conversionRate__d4hFy",amount:"converter_amount__i_XZ_",cryptoSymbol:"converter_cryptoSymbol__I9J6O",equals:"converter_equals__FuLVI",fiatAmount:"converter_fiatAmount__PeiFv",fiatSymbol:"converter_fiatSymbol__VaBii",conversionSubtext:"converter_conversionSubtext__Dl_kT",longTailSection:"converter_longTailSection__EwrUj",longTailGrid:"c
1onverter_longTailGrid__cMnJ2",longTailCard:"converter_longTailCard__mkn_X",cardHeader:"converter_cardHeader__boqGb",cardTitle:"converter_cardTitle__NHT4q",cardRate:"converter_cardRate__ObHNs",rateValue:"converter_rateValue__nw5Wz",loading:"converter_loading__0fjWh",spin:"converter_spin__JHGqv",converterDemoSection:"converter_converterDemoSection___z1qh"}}},function(e){e.O(0,[45,245,888,774,179],function(){return e(e.s=8312)}),_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.