1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[699,6067,4708],{66798:function(e,t,n){n.d(t,{u:function(){return v}});var o=n(57437),r=n(2265),l=n(78948),a=n(57099),i=n(29501),s=n(22577),c=n(33833),u=n(19643),d=n(67116),p=n(46387),h=n(50290),x=n(27050),m=n(12713),g=n(23996);let v=e=>{let{name:t,control:n,options:v=[],label:f,error:b=!1,placeholder:y,getOptionLabel:j,isOptionEqualToValue:k,onChange:w,showAvatar:Z=!1,showUserBalance:C=!1,avatarKey:I="logoUrl",value:P,sx:O,t:S,isDisableSearch:E,customStyle:F,selectDisabled:T}=e,[z,H]=(0,r.useState)({}),W=e=>{H(t=>({...t,[e]:!0}))};return(0,o.jsx)(i.Qr,{name:t,control:n,render:e=>{let{field:t}=e;return E?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.Z,{id:"network-label",sx:{textTransform:"capitalize",fontSize:"clamp(12px, 3.4vw, 0.875rem) !important",fontWeight:500,color:"#b2c0cc",mb:.5},children:S(f)}),(0,o.jsx)(c.Z,{labelId:"currency-label",variant:"outlined",disabled:T,id:"network-select",value:v.find(e=>k(e,P||t.value))||"",onChange:e=>{let n=e.target.value;w(n),t.onChange(n)},renderValue:e=>e?(0,o.jsxs)(u.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,o.jsx)(d.Z,{alt:e.symbol,src:z[e.symbol]?"".concat("https://img.xyes.com/","assets/fallback-2.png"):"".concat(e.logoUrl||e.cryptoIcon),sx:{height:20,width:20},onError:()=>W(e.symbol)}),(0,o.jsx)(p.Z,{sx:{fontSize:"0.875rem !important"},children:j(e)})]}):"",style:{backgroundColor:l.y0.selectBG,height:"40px"},sx:{"& .MuiOutlinedInput-root":{padding:"8px 12px"},"& .MuiSelect-select":{px:1.5},...F},MenuProps:{PaperProps:{style:{maxHeight:300,minHeight:100,overflow:"auto"}}},fullWidth:!0,children:v.map((e,t)=>(0,o.jsx)(h.Z,{value:e,children:(0,o.jsxs)(u.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,o.jsx)(d.Z,{alt:e.symbol,src:z[e.symbol]?"".concat("https://img.xyes.com/","assets/fallback-2.png"):"".concat(e.logoUrl||e.cryptoIcon),sx:{height:25,width:25},onError:()=>W(e.symbol)}),(0,o.jsx)(p.Z,{children:j(e)})]})},t))})]}):(0,o.jsx)(x.Z,{...t,options:v,getOptionLabel:e=>j(e),isOptionEqualToValue:(e,t)=>k(e,t),onChange:(e,n)=>{w(n),t.onChange(n)},value:v.find(e=>k(e,P||t.value))||null,noOptionsText:(0,o.jsx)(u.Z,{direction:"column",alignItems:"center",justifyContent:"center",width:"100%",children:(0,o.jsx)(p.Z,{variant:"h6",gutterBottom:!0,children:S("wallet.noResultsFunds")})}),renderInput:e=>{var n;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.Z,{id:"network-label",sx:{textTransform:"capitalize",fontSize:"clamp(12px, 3.4vw, 0.875rem) !important",fontWeight:500,color:"#b2c0cc",mb:.5},children:S(f)}),(0,o.jsx)(m.Z,{...e,error:b&&!t.value,helperText:b&&!t.value?S("validations.isRequired",{type:f}):"",InputLabelProps:{sx:{textTransform:"initial",color:"#fff !important"}},FormHelperTextProps:{sx:{textTransform:"initial"}},placeholder:y,InputProps:{...e.InputProps,startAdornment:(0,o.jsx)(g.Z,{position:"start",children:Z&&((null==P?void 0:P.logoUrl)||(null==P?void 0:P.cryptoIcon)||(null==P?void 0:P.symbol))&&((null==P?void 0:P.symbol)||"")&&(0,o.jsx)(d.Z,{alt:null==P?void 0:P.symbol,src:z[null!==(n=null==P?void 0:P.symbol)&&void 0!==n?n:"default"]?"".concat("https://img.xyes.com/","assets/fallback-2.png"):"".concat((null==P?void 0:P.logoUrl)||(null==P?void 0:P.cryptoIcon)||(null==P?void 0:P.symbol)),sx:{height:25,width:25},onError:()=>{var e;return W(null!==(e=null==P?void 0:P.symbol)&&void 0!==e?e:"default")}})}),sx:O},fullWidth:!0})]})},renderOption:(e,t,n)=>{let{index:l}=n;return(0,r.createElement)("li",{...e,key:l},(0,o.jsxs)(u.Z,{direction:"row",alignItems:"center",width:"100%",children:[Z&&(0,o.jsx)(d.Z,{src:z[t[I]]?"".concat("https://img.xyes.com/","assets/fallback-2.png"):t[I],sx:{height:24,width:24,mx:1},onError:()=>W(t[I])}),(0,o.jsx)(p.Z,{children:j(t)})]}))},ListboxProps:{sx:(0,a.Tw)("300px")},slotProps:{popper:{sx:{zIndex:10002}}}})}})}},33900:function(e,t,n){n.d(t,{K:function(){return i},m:function(){return a}});var o=n(16593),r=n(45345),l=n(55447);let a=e=>{let t="".concat(l.Hv.banks.banksByChannel).concat(e),n=async()=>(await l.ZP.get(t)).data;return(0,o.a)({queryKey:["GetBanksByChannel",t,e],queryFn:n,placeholderData:r.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:!1})},i=(e,t)=>{let{currency:n,code:a}=e,i="".concat(l.Hv.banks.banks,"?currencyCode=").concat(n,"&countryCode=").concat(a,"&limit=500"),s=async()=>(await l.ZP.get(i)).data;return(0,o.a)({queryKey:["GetBanks",i],queryFn:s,enabled:t,placeholderData:r.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0})}},36067:function(e,t,n){n.r(t),n.d(t,{SnackbarProvider:function(){return u},useSnackbar:function(){return d}});var o=n(57437),r=n(2265),l=n(60033),a=n(73986),i=n(73126);let s=r.createContext(void 0),c=r.forwardRef((e,t)=>
1(0,o.jsx)(i.Z,{elevation:6,ref:t,variant:"filled",...e})),u=e=>{let{children:t}=e,[n,i]=r.useState({open:!1,message:"",type:"success",position:{vertical:"top",horizontal:"center"},autoHideDuration:3e3}),{t:u}=(0,l.i)(),d=r.useCallback(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{vertical:"top",horizontal:"center"},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3e3;i({open:!0,message:e,type:t,position:n,autoHideDuration:o})},[]),p=()=>{i(e=>({...e,open:!1}))},h=r.useMemo(()=>({showMessage:d}),[d]);return(0,o.jsxs)(s.Provider,{value:h,children:[t,(0,o.jsx)(a.Z,{open:n.open,autoHideDuration:n.autoHideDuration,onClose:p,anchorOrigin:n.position,children:(0,o.jsx)(c,{onClose:p,severity:n.type,sx:{backgroundColor:"info"===n.type?"#2196F3":void 0},children:u(n.message)})})]})},d=()=>{let e=r.useContext(s);if(!e)throw Error("useSnackbar must be used within a SnackbarProvider");return e}}}]);
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.