1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9791],{51786:function(e,t,r){var a=r(57437);r(2265);var n=r(76975),l=r(17162),o=r(73126),s=r(95576);t.Z=e=>{let{message:t,open:r,setOpen:i,severity:c,renderHTML:u}=e;return(0,a.jsx)(l.Z,{in:r,children:(0,a.jsxs)(o.Z,{severity:c,action:(0,a.jsx)(s.Z,{"aria-label":"close",color:"inherit",size:"small",onClick:()=>i(!1),children:(0,a.jsx)(n.Z,{icon:"solar:close-circle-bold"})}),sx:{mt:3,mb:3,alignItems:"center"},children:[t,u]})})}},92772:function(e,t,r){var a=r(57437),n=r(2265),l=r(76975),o=r(29501),s=r(31691),i=r(50290),c=r(33833),u=r(23996),d=r(53024),m=r(46387),p=r(2323),y=r(1899),h=r(70203),f=r(22577),x=r(69459);t.Z=e=>{let{name:t,label:r,icon:b,iconType:g="iconify",options:k,disabled:Z,required:v=!1,error:w,helperText:j,searchText:F,setSearchText:R,handleSelect:A,value:M,onChange:$,defaultValue:D,usePlaceholder:N=!1,placeholder:C,static:S=!1,removeIconMenu:W=!1,chevronIcon:P}=e,E=(0,s.Z)(),I=(0,o.Gc)(),[O,T]=n.useState(!1),[U,B]=n.useState(""),G=I&&t?!!I.getValues(t):!!M||!!D,L=()=>Array.isArray(k)?"string"==typeof k[0]?k.map(e=>(0,a.jsxs)(i.Z,{value:e,sx:{display:"flex",alignItems:"center",gap:"8px"},children:[W?"":b&&z(),e]},e)):Array.isArray(k[0])?k.map(e=>{let[t,r]=e;
1return(0,a.jsxs)(i.Z,{value:t,sx:{display:"flex",alignItems:"center",gap:"8px"},children:[W?"":b&&z(),r]},t)}):k.map(e=>(0,a.jsxs)(i.Z,{value:e.key,sx:{display:"flex",alignItems:"center",gap:"8px"},children:[W?"":b&&z(),e.label]},e.key)):null,q=e=>{if(Array.isArray(k)){if("string"==typeof k[0])return e;if(Array.isArray(k[0])){let t=k.find(t=>{let[r]=t;return r===e});return t?t[1]:e}let t=k.find(t=>t.key===e);return t?t.label:e}return e},H=e=>{let t=e.target.value;R?R(t):B(t)},K=!0===S||"icon"===S,_=!0===S||"label"===S,z=()=>b?"iconify"===g?(0,a.jsx)(l.Z,{icon:b,sx:{color:E.palette.primary.light,width:24,height:24}}):(0,a.jsx)("img",{src:b,alt:"icon",style:{width:"24px",height:"24px"}}):null,V=e=>(0,a.jsxs)(c.Z,{...e||{},id:t,labelId:t?"".concat(t,"-label"):void 0,onChange:$||A||(null==e?void 0:e.onChange),value:M||(null==e?void 0:e.value),defaultValue:D,fullWidth:!0,displayEmpty:!0,disabled:Z,IconComponent:P?e=>(0,a.jsx)(u.Z,{position:"end",sx:{pointerEvents:"none",mr:1},children:(0,a.jsx)(l.Z,{icon:P,sx:{color:E.palette.primary.light,width:24,height:24}})}):void 0,input:(0,a.jsx)(d.Z,{label:r,notched:!0,sx:{"& .MuiSelect-select":{paddingTop:"16.5px",paddingBottom:"16.5px"},...K&&b&&{paddingLeft:"40px"},...P&&{"& .MuiSelect-select":{paddingRight:"14px"}}}}),renderValue:e=>e||_?q(e):(0,a.jsx)(m.Z,{color:"textSecondary",children:C||(N?r:"")}),MenuProps:{PaperProps:{sx:{maxHeight:{xs:263,sm:326},width:250}},autoFocus:!1},onFocus:()=>T(!0),onBlur:()=>T(!1),startAdornment:b&&K&&(0,a.jsx)(u.Z,{position:"start",sx:{position:"absolute",left:"10px"},children:z()}),children:[(void 0!==F||R)&&(0,a.jsx)(p.Z,{children:(0,a.jsx)(d.Z,{size:"small",autoFocus:!0,placeholder:"Search ".concat(r||""),fullWidth:!0,startAdornment:(0,a.jsx)(u.Z,{position:"start",children:(0,a.jsx)(l.Z,{icon:"eva:search-fill",width:24,sx:{color:"text.disabled"}})}),value:void 0!==F?F:U,onChange:H,onKeyDown:e=>{"Escape"!==e.key&&e.stopPropagation()},sx:{"&::placeholder":{color:E.palette.text.disabled}}})}),L()]});return(0,a.jsx)(y.Z,{children:(0,a.jsxs)(h.Z,{variant:"outlined",fullWidth:!0,sx:{background:"#0A0F18",borderRadius:1,"& .MuiOutlinedInput-root":{borderRadius:1,"& fieldset":{borderColor:O?"white":"transparent"},"&:hover fieldset":{borderColor:O?"white":"transparent"},"&.Mui-focused fieldset":{borderColor:"white"}}},error:!!w,children:[r&&(0,a.jsxs)(f.Z,{id:t?"".concat(t,"-label"):void 0,htmlFor:t,shrink:_||O||G,sx:{color:G||O?"#FFFFFF":"#9CA3AF",display:"flex",alignItems:"center",zIndex:1,transition:"all 0.2s ease-out",..._&&{transform:"translate(14px, -9px) scale(0.75)","&.MuiInputLabel-shrink":{transform:"translate(14px, -9px) scale(0.75)"},"&::before":{content:'""',display:"block",position:"absolute",top:"0",right:"-0.2em",left:"-0.2em",height:"100%",backgroundColor:"transparent",zIndex:-1}}},children:[!O&&!G&&!K&&z(),r,v&&(0,a.jsx)(m.Z,{component:"span",variant:"inherit",sx:{color:"#ed4263",marginLeft:"2px",verticalAlign:"top"},children:"*"})]}),t&&I?(0,a.jsx)(o.Qr,{name:t,control:I.control,defaultValue:D,render:e=>{let{field:t}=e;return V(t)}}):V(),w&&(0,a.jsx)(x.Z,{sx:{color:"#ba3619"},children:j})]})})}},27349:function(e,t,r){r.d(t,{M:function(){return a}});let a=[{symbol:"USD",mark:"$"},{symbol:"EUR",mark:"â¬"},{symbol:"JPY",mark:"\xa5"},{symbol:"INR",mark:"â¹"},{symbol:"GBP",mark:"\xa3"},{symbol:"CAD",mark:"$"},{symbol:"RUB",mark:"â½"},{symbol:"BRL",mark:"R$"},{symbol:"KRW",mark:"â©"},{symbol:"AUD",mark:"$"},{symbol:"MXN",mark:"$"},{symbol:"IDR",mark:"Rp"},{symbol:"SAR",mark:"ï·¼"},{symbol:"TRY",mark:"âº"},{symbol:"ARS",mark:"$"},{symbol:"THB",mark:"฿"},{symbol:"NGN",mark:"â¦"},{symbol:"AED",mark:"د.Ø¥"},{symbol:"VND",mark:"â«"},{symbol:"SGD",mark:"$"},{symbol:"MYR",mark:"RM"},{symbol:"ZAR",mark:"R"},{symbol:"PKR",mark:"â¨"},{symbol:"HKD",mark:"$"},{symbol:"COP",mark:"$"},{symbol:"CLP",mark:"$"},{symbol:"NZD",mark:"$"},{symbol:"PEN",mark:"S/"}]},82877:function(e,t,r){r.d(t,{SG:function(){return s},Xn:function(){return c},aE:function(){return i}});var a=r(16593),n=r(45345),l=r(20418),o=r(55447);let s=function(){let{all:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{authenticated:t}=(0,l.E)();return(0,a.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:n.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:t,staleTime:3e5,gcTime:6e5})},i=()=>{let{authenticated:e}=(0,l.E)();return(0,a.a)({queryKey:["useGetUserBalance"],queryFn:async()=>(await o.ZP.get(o.Hv.wallet.getUserBalances)).data,placeholderData:n.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:e,staleTime:3e4,gcTime:3e5})},c=e=>{let{currencyCode:t}=e,{authenticated:r}=(0,l.E)();return(0,a.a)({queryKey:["useGetFiatExchangeRates",t],queryFn:async()=>(await o.ZP.get("".concat(o.Hv.wallet.fiatExchangeRates).concat(t))).data,placeholderData:n.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:r&&!!t,staleTime:3e5,gcTime:6e5})}},57952:function(e,t,r){r.d(t,{s:function(){return o}});var a=r(16593),n=r(45345),l=r(55447);let o=e=>{let{authenticated:t}=e;return(0,a.a)({queryKey:["useGetReferralInfo"],queryFn:async()=>(await l.ZP.get(l.Hv.auth.userReferralSummary)).data,placeholderData:n.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:t,staleTime:3e4})}},48116:function(e,t,r){r.d(t,{TQ:function(){return s},dN:function(){return n},ft:function(){return i},jr:function(){return o},lb:function(){return c},rN:function(){return u},x3:function(){return l}});var a=r(68651);let n=(e,t)=>{let r=t.startsWith("crypto/"),a=(e,t)=>{let r=10**t;return Math.trunc(e*r)/r},n=(e,t)=>{if(0===e)return"0";let[r,n]=a(e,t).toString().split("."),l=r.replace(/\B(?=(\d{3})+(?!\d))/g,",");return n?"".concat(l,".").concat(n):l};return r?1e-8>Math.abs(e)?"0":n(e,6).replace(/(\.\d*?[1-9])0+$/,"$1"):.01>Math.abs(e)?"0":n(e,2).replace(/(\.\d*?[1-9])0+$/,"$1")},l=(e,t)=>
1{let r=t.startsWith("crypto/"),n=new a.Z(e),l=(e,t)=>e.decimalPlaces(t,a.Z.ROUND_DOWN),o=(e,t)=>{if(e.isZero())return"0";let[r,a=""]=l(e,t).toFixed().split("."),n=r.replace(/\B(?=(\d{3})+(?!\d))/g,",");return a?"".concat(n,".").concat(a):n};return r?n.abs().isLessThan("0.00000001")?"0":o(n,6).replace(/(\.\d*?[1-9])0+$/,"$1"):n.abs().isLessThan("0.01")?"0":o(n,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$/,""))},s=(e,t)=>(null==t?void 0:t.cryptos.some(t=>t.symbol===e))?"crypto/".concat(e):"fiat/".concat(e),i=(e,t)=>{let r=null==t?void 0:t.cryptos.find(t=>t.symbol===e),a=null==t?void 0:t.fiats.find(t=>t.symbol===e);return r?{type:"crypto/".concat(e),logoUrl:r.logoUrl}:a?{type:"fiat/".concat(e),logoUrl:a.logoUrl}:{type:"unknown",logoUrl:void 0}},c=e=>new a.Z(e).toFormat(2,a.Z.ROUND_DOWN,{decimalSeparator:".",groupSeparator:",",groupSize:3}),u=(e,t,r)=>{let n=new a.Z(e).dividedBy(new a.Z(t)).multipliedBy(r);return n.isNaN()?0:n.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.