1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6770,7871,9392,8954,2230,4984,4738,2159,9931],{57871:function(e,t,r){r.d(t,{lR:function(){return l},Es:function(){return d},ht:function(){return u}});var n=r(57437),a=r(18848),o=r(68575),i=r(48116);let c=["First.Name","Email","USD.Exchange.nextValue"],l=e=>{let{content:t,mergeTags:r}=e,i=u(t,r||{},(0,o.v9)(e=>e.userCurrencies));return i?(0,n.jsx)("div",{style:{overflowWrap:"break-word",wordBreak:"break-word",whiteSpace:"pre-wrap",width:"100%",maxWidth:"100%",boxSizing:"border-box",display:"block"},className:"notification-content",dangerouslySetInnerHTML:{__html:a.Z.sanitize(i,{ADD_ATTR:["target","rel"]})}}):(0,n.jsx)("div",{children:"No hay contenido disponible."})},u=(e,t,r)=>{let n=Object.entries(t).reduce((e,t)=>{let[r,n]=t;return e[r]=n,e},{});return(e||"").replace(RegExp(c.map(e=>e.includes("nextValue")?"{{".concat(e,"}}(.+?)(?=\\s|<)"):"{{".concat(e,"}}")).join("|"),"g"),e=>{let t=e.replace(/{{|}}/g,"");if(t.includes("nextValue")){let e=t.split("nextValue")[1],c=t.split(e)[0],l=n[c];if("USD.Exchange.nextValue"===c){var a,o;let t=(null===(a=r.fiats.find(e=>e.symbol===l))||void 0===a?void 0:a.usdRate)||1,n=(null===(o=r.fiats.find(e=>e.symbol===l))||void 0===o?void 0:o.symbol)||"USD",c=(Number(e)*Number(t)).toString();return"".concat(n," ").concat((0,i.dN)(Number(c),"fiat")," ")}return e}return n[t]||""})},s=(e,t)=>{if(null!=e&&"object"==typeof e)return t.split(".").reduce((e,t)=>null!=e&&"object"==typeof e&&t in e?e[t]:void 0,e)},d=(e,t)=>{let{templateProperties:r,transaction:n,mergeTags:a,currencyList:o,userData:c}=t;if(!e)return e;let l=null!=c?c:null;if(null==l){let e=window.sessionStorage;if(e)try{let t=e.getItem("persist:user");if(t){let e=JSON.parse(t);null!=e.data&&"object"==typeof e.data&&(l=e.data)}}catch(e){}}return e.replace(/\{\{([^}]+)\}\}([\d.]+)?/g,(e,t,c)=>{var u,d,f,p,y;let h=t.trim();if(h.startsWith("user.")){let e=h.slice(5).trim(),t=l?s(l,e):void 0;return null==t?"":String(t)}if(h.startsWith("transaction.")){if(!n)return e;let t=h.slice(12).trim();if(!t)return e;let r=s(n,t);return null==r?"":String(r)}if(r&&h in r)return String(r[h]);if("First.Name"===h||"Email"===h)return null!==(u=a[h])&&void 0!==u?u:"";if("USD.Exchange.nextValue"===h&&null!=c){let e=a["USD.Exchange.nextValue"],t=null!==(p=null===(d=o.fiats.find(t=>t.symbol===e))||void 0===d?void 0:d.usdRate)&&void 0!==p?p:1,r=null!==(y=null===(f=o.fiats.find(t=>t.symbol===e))||void 0===f?void 0:f.symbol)&&void 0!==y?y:"USD",n=Number(c)*Number(t);return"".concat(r," ").concat((0,i.dN)(n,"fiat")," ")}return e})}},2230:function(e,t,r){var n=r(57437),a=r(2265),o=r(1899);let i=(0,a.forwardRef)((e,t)=>{let{src:r,width:a=20,height:i=20,sx:c,...l}=e;return(0,n.jsx)(o.Z,{ref:t,component:"div",className:"component-imagify",sx:{width:a,height:i,backgroundImage:"url(".concat(r,")"),backgroundSize:"cover",backgroundPosition:"center",borderRadius:"5.2px",...c},...l})});t.Z=i},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 l}});var n=r(43577),a=r(2265),o=r(55447),i=r(16593),c=r(45345);let l=(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(o.Hv.wallet.currencyList).concat(e):o.Hv.wallet.currencyList,[e]),l=(0,a.useMemo)(()=>t?"?countryOrRegion=".concat(t):"",[t]),u=(0,a.useMemo)(()=>"".concat(r).concat(l),[r,l]),s=(0,a.useCallback)(async()=>{try{return(await o.ZP.get(u)).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}},[u]);return(0,i.a)({queryKey:["currencies",u,e,t],queryFn:s,placeholderData:c.Wk,refetchOnMount:!0,retry:2,staleTime:3e5})}},3801:function(e,t,r){r.d(t,{r:function(){return c}});var n=r(2265),a=r(16593),o=r(45345),i=r(55447);let c=e=>{let{authenticated:t}=e,r=(0,n.useMemo)(()=>new URL("".concat("https://api.xyes.com/api/v1").concat(i.Hv.wallet.depositCurrencies)),[]),c=(0,n.useMemo)(()=>r.toString(),[r]),l=(0,n.useCallback)(async()=>(await i.ZP.get(c)).data,[c]);return(0,a.a)({queryKey:["getDepositCurrencies",c,t],queryFn:l,placeholderData:o.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:t})}},82877:function(e,t,r){r.d(t,{SG:function(){return c},Xn:function(){return u},aE:function(){return l}});var n=r(16593),a=r(45345),o=r(20418),i=r(55447);let c=function(){let{all:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{authenticated:t}=(0,o.E)();return(0,n.a)({queryKey:["useGetAllCurrencies",e],queryFn:async()=>{let t=e?i.Hv.wallet.getAllCurrenciesList:i.Hv.wallet.currencyList;return(await i.ZP.get(t)).data},placeholderData:a.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:t,staleTime:3e5,gcTime:6e5})},l=()=>{let{authenticated:e}=(0,o.E)();return(0,n.a)({queryKey:["useGetUserBalance"],queryFn:async()=>(await i.ZP.get(i.Hv.wallet.getUserBalances)).data,placeholderData:a.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:e,staleTime:3e4,gcTime:3e5})},u=e=>{let{currencyCode:t}=e,{authenticated:r}=(0,o.E)();return(0,n.a)({queryKey:["useGetFiatExchangeRates",t],queryFn:async()=>(await i.ZP.get("".concat(i.Hv.wallet.fiatExchangeRates).concat(t))).data,placeholderData:a.Wk,refetchOnMount:!0,refetchOnWindowFocus:!0,enabled:r&&!!t,staleTime:3e5,gcTime:6e5})}},29267:function(e,t,r){r.d(t,{Z:function(){return s}});var n=r(57437),a=r(43949),o=r(16210),i=r(28548),c=r(1899),l=r(46387);let u=(0,o.ZP)(i.ZP)(e=>{let{theme:t}=e;
1return{color:"#FF7901",height:8,padding:"15px 0","& .MuiSlider-track":{border:"none",backgroundColor:"#FF7901",borderRadius:"4px"},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:"transparent",border:"none",transform:"translateY(-50%)","&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:"none"},"&:before":{display:"none"},"&:after":{content:'""',position:"absolute",top:"50%",left:"0",transform:"translate(-50%, -50%)",width:"100%",height:"100%",backgroundImage:"url(/assets/icons/bonus/X.svg)",backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"center"}},"& .MuiSlider-rail":{opacity:.32,backgroundColor:"#263238",borderRadius:"4px"}}});function s(e){let{currentWager:t,targetWager:r}=e,{t:o}=(0,a.$G)();return(0,n.jsxs)(c.Z,{sx:{width:"100%",bgcolor:"#18202f",p:2,mb:1,borderRadius:1},children:[(0,n.jsxs)(c.Z,{sx:{display:"flex",justifyContent:"space-between",mb:0},children:[(0,n.jsxs)(l.Z,{variant:"body2",color:"text.secondary",children:[o("bonus.currentWager")," ",t.toLocaleString()]}),(0,n.jsxs)(l.Z,{variant:"body2",color:"text.secondary",children:[o("bonus.targetWager")," ",r.toLocaleString()]})]}),(0,n.jsx)(u,{value:t/r*100,disabled:!0,sx:{mb:0}}),(0,n.jsxs)(c.Z,{sx:{display:"flex",justifyContent:"space-between"},children:[(0,n.jsxs)(l.Z,{variant:"body2",color:"text.secondary",children:["\xd7 ",(t/500).toFixed(1)," XCD"]}),(0,n.jsxs)(l.Z,{variant:"body2",color:"text.secondary",children:["\xd7 ",(r/500).toFixed(1)," XCD"]})]})]})}},49931:function(e,t,r){r.d(t,{Aj:function(){return s},DQ:function(){return c},hl:function(){return o},p0:function(){return l},p5:function(){return u}});var n=r(55447);let a={page:1,pageSize:0,pageCount:0,total:0};function o(){return{data:[],meta:{pagination:{...a}}}}function i(){return{data:null,meta:{}}}async function c(e,t){try{var r;let t=await n.ZP.get(e);return null!==(r=t.data)&&void 0!==r?r:o()}catch(e){return o()}}async function l(e,t){try{var r;let t=await n.ZP.get(e);return null!==(r=t.data)&&void 0!==r?r:i()}catch(e){return i()}}async function u(e,t,r,a){try{var o;let r=await n.ZP.get(e,{params:t});return null!==(o=r.data)&&void 0!==o?o:a}catch(e){return a}}function s(e){let{filter:t,populate:r,locale:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=new URL("".concat("https://api.xyes.com/api/v1").concat(e));return Array.isArray(r)&&r.forEach(e=>{a.searchParams.append(e.key,e.value)}),t&&a.searchParams.append(t.key,t.value),n&&a.searchParams.append(n.key,n.value),a}},48116:function(e,t,r){r.d(t,{TQ:function(){return c},dN:function(){return a},ft:function(){return l},jr:function(){return i},lb:function(){return u},rN:function(){return s},x3:function(){return o}});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("."),o=r.replace(/\B(?=(\d{3})+(?!\d))/g,",");return a?"".concat(o,".").concat(a):o};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")},o=(e,t)=>{let r=t.startsWith("crypto/"),a=new n.Z(e),o=(e,t)=>e.decimalPlaces(t,n.Z.ROUND_DOWN),i=(e,t)=>{if(e.isZero())return"0";let[r,n=""]=o(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":i(a,6).replace(/(\.\d*?[1-9])0+$/,"$1"):a.abs().isLessThan("0.01")?"0":i(a,2).replace(/(\.\d*?[1-9])0+$/,"$1")},i=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$/,""))},c=(e,t)=>(null==t?void 0:t.cryptos.some(t=>t.symbol===e))?"crypto/".concat(e):"fiat/".concat(e),l=(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}},u=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.