1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9392,8954,2230,4984],{2230:function(e,t,r){var n=r(57437),a=r(2265),c=r(1899);let o=(0,a.forwardRef)((e,t)=>{let{src:r,width:a=20,height:o=20,sx:l,...u}=e;return(0,n.jsx)(c.Z,{ref:t,component:"div",className:"component-imagify",sx:{width:a,height:o,backgroundImage:"url(".concat(r,")"),backgroundSize:"cover",backgroundPosition:"center",borderRadius:"5.2px",...l},...u})});t.Z=o},38954:function(e,t,r){r.d(t,{Z:function(){return n.Z}});var n=r(2230)},66393:function(e,t,r){r.d(t,{s:function(){return u}});var n=r(43577),a=r(2265),c=r(55447),o=r(16593),l=r(45345);let u=(e,t)=>{if(!(0,a.useCallback)(e=>["fiats","cryptos",""].includes(e),[])(e))throw Error('Invalid currency type. Must be "fiats", "cryptos" or empty string');let r=(0,a.useMemo)(()=>e?"".concat(c.Hv.wallet.currencyList).concat(e):c.Hv.wallet.currencyList,[e]),u=(0,a.useMemo)(()=>t?"?countryOrRegion=".concat(t):"",[t]),i=(0,a.useMemo)(()=>"".concat(r).concat(u),[r,u]),s=(0,a.useCallback)(async()=>{try{return(await c.ZP.get(i)).data}catch(r){if(r instanceof n.d7){var e,t;throw Error((null===(t=r.response)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.message)||"Failed to fetch currency data")}throw r}},[i]);return(0,o.a)({queryKey:["currencies",i,e,t],queryFn:s,placeholderData:l.Wk,refetchOnMount:!0,retry:2,staleTime:3e5})}},3801:function(e,t,r){r.d(t,{r:function(){return l}});var n=r(2265),a=r(16593),c=r(45345),o=r(55447);let l=e=>{let{authenticated:t}=e,r=(0,n.useMemo)(()=>new URL("".concat("https://api.xyes.com/api/v1").concat(o.Hv.wallet.depositCurrencies)),[]),l=(0,n.useMemo)(()=>r.toString(),[r]),u=(0,n.useCallback)(async()=>(await o.ZP.get(l)).data,[l]);return(0,a.a)({queryKey:["getDepositCurrencies",l,t],queryFn:u,placeholderData:c.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:t})}},82877:function(e,t,r){r.d(t,{SG:function(){return l},Xn:function(){return i},aE:function(){return u}});var n=r(16593),a=r(45345),c=r(20418),o=r(55447);let l=function(){let{all:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{authenticated:t}=(0,c.E)();return(0,n.a)({queryKey:["useGetAllCurrencies",e],queryFn:async()=>{let t=e?o.Hv.wallet.getAllCurrenciesList:o.Hv.wallet.currencyList;return(await o.ZP.get(t)).data},placeholderData:a.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:t,staleTime:3e5,gcTime:6e5})},u=()=>{let{authenticated:e}=(0,c.E)();return(0,n.a)({queryKey:["useGetUserBalance"],queryFn:async()=>(await o.ZP.get(o.Hv.wallet.getUserBalances)).data,placeholderData:a.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:e,staleTime:3e4,gcTime:3e5})},i=e=>{let{currencyCode:t}=e,{authenticated:r}=(0,c.E)();return(0,n.a)({queryKey:["useGetFiatExchangeRates",t],queryFn:async()=>(await o.ZP.get("".concat(o.Hv.wallet.fiatExchangeRates).concat(t))).data,placeholderData:a.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:r&&!!t,staleTime:3e5,gcTime:6e5})}},48116:function(e,t,r){r.d(t,{TQ:function(){return l},dN:function(){return a},ft:function(){return u},jr:function(){return o},lb:function(){return i},rN:function(){return s},x3:function(){return c}});var n=r(68651);let a=(e,t)=>{let r=t.startsWith("crypto/"),n=(e,t)=>{let r=10**t;return Math.trunc(e*r)/r},a=(e,t)=>{if(0===e)return"0";let[r,a]=n(e,t).toString().split("."),c=r.replace(/\B(?=(\d{3})+(?!\d))/g,",");return a?"".concat(c,".").concat(a):c};return r?1e-8>Math.abs(e)?"0":a(e,6).replace(/(\.\d*?[1-9])0+$/,"$1"):.01>Math.abs(e)?"0":a(e,2).replace(/(\.\d*?[1-9])0+$/,"$1")},c=(e,t)=>{let r=t.startsWith("crypto/"),a=new n.Z(e),c=(e,t)=>e.decimalPlaces(t,n.Z.ROUND_DOWN),o=(e,t)=>{if(e.isZero())return"0";let[r,n=""]=c(e,t).toFixed().split("."),a=r.replace(/\B(?=(\d{3})+(?!\d))/g,",");return n?"".concat(a,".").concat(n):a};return r?a.abs().isLessThan("0.00000001")?"0":o(a,6).replace(/(\.\d*?[1-9])0+$/,"$1"):a.abs().isLessThan("0.01")?"0":o(a,2).replace(/(\.\d*?[1-9])0+$/,"$1")},o=e=>{let t=Math.abs(e),r=e<0?"-":"";if(t>=1e6){let e=(Math.floor(t/1e4)/100).toFixed(2).replace(/\.00$/,"");return"".concat(r).concat(e,"M")}if(t>=1e3){let e=(Math.floor(t/10)/100).toFixed(2).replace(/\.00$/,"");return"".concat(r).concat(e,"k")}return"".concat(r).concat((Math.floor(100*t)/100).toFixed(2).replace(/\.00$/,""))},l=(e,t)=>
1(null==t?void 0:t.cryptos.some(t=>t.symbol===e))?"crypto/".concat(e):"fiat/".concat(e),u=(e,t)=>{let r=null==t?void 0:t.cryptos.find(t=>t.symbol===e),n=null==t?void 0:t.fiats.find(t=>t.symbol===e);return r?{type:"crypto/".concat(e),logoUrl:r.logoUrl}:n?{type:"fiat/".concat(e),logoUrl:n.logoUrl}:{type:"unknown",logoUrl:void 0}},i=e=>new n.Z(e).toFormat(2,n.Z.ROUND_DOWN,{decimalSeparator:".",groupSeparator:",",groupSize:3}),s=(e,t,r)=>{let a=new n.Z(e).dividedBy(new n.Z(t)).multipliedBy(r);return a.isNaN()?0:a.toNumber()}}}]);
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.