PageSourceSearch

https://xyes.ai/_next/static/chunks/modals.188d56218bd28bb1.js

js xyes.ai collected 2026-10-05 14:49:43 UTC 96,041 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2156],{28331:function(e,t,a){a.r(t);var r=a(57437);a(2265);var n=a(60033),i=a(58208),o=a(1899),s=a(46387),l=a(31691),c=a(76975);let d=e=>{let{regions:t,title:a,icon:i,color:l}=e,{t:d}=(0,n.i)();return(0,r.jsxs)(o.Z,{style:{width:"100%",textAlign:"center"},children:[(0,r.jsx)(o.Z,{sx:{textAlign:"center",width:"100%"},children:(0,r.jsxs)(s.Z,{variant:"h6",display:"flex",alignItems:"center",justifyContent:"center",gap:1,mb:1,children:[(0,r.jsx)(c.Z,{color:l,icon:i})," ",d(a)]})}),(0,r.jsx)(o.Z,{sx:{maxHeight:"300px",overflowY:"auto","&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"#888",borderRadius:"4px"},"&::-webkit-scrollbar-thumb:hover":{background:"#555"}},children:t.map(e=>(0,r.jsx)(s.Z,{variant:"body2",children:e.countryOrRegion},e.regionCode))})]})};t.default=e=>{let{gameName:t,gameId:a}=e,c=(0,l.Z)(),{t:u}=(0,n.i)(),{data:x}=(0,i.O0)(a);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Z,{variant:"paragraph",children:u("availableRegions.gameNotAvailable",{gameName:t})}),(0,r.jsx)(o.Z,{m:2,display:"flex",flexDirection:"column",alignItems:"center",children:(0,r.jsx)(d,{regions:(null==x?void 0:x.data)||[],title:"availableRegions.blocked",icon:"tabler:map-cancel",color:c.palette.error.main})})]})}},69261:function(e,t,a){a.r(t);var r=a(57437);a(2265);var n=a(1899),i=a(46387);t.default=e=>{let{content:t,component:a}=e;return(0,r.jsx)(n.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,r.jsx)(n.Z,{sx:{display:"flex",alignItems:"center",flexDirection:"column",width:"100%",padding:2},children:a||(0,r.jsx)(i.Z,{variant:"body1",sx:{textAlign:"center",mb:2},children:t})})})}},55754:function(e,t,a){a.r(t),a.d(t,{default:function(){return Z}});var r=a(57437),n=a(2265),i=a(29827),o=a(55447),s=a(89011),l=a(36067),c=a(61622),d=a(82156),u=a(1899),x=a(46387),h=a(44811),p=a(68720),m=a(89002),g=
1a(58004),f=a(95576),b=a(1869);function y(e){let{day:t,hasBonus:a,isToday:n,onClick:i,disabled:o,bonusData:s}=e,l=s&&s.claimAttempts?(0,b.bw)(s.claimAttempts):null;return(0,r.jsx)(u.Z,{onClick:o?void 0:i,sx:{width:"100%",aspectRatio:"1",border:"2px solid",borderColor:n?"secondary.main":"grey.700",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",cursor:a?"pointer":"default",opacity:o?.3:1,mb:1,"&:hover":a?{bgcolor:"warning.darker"}:{}},children:l?(0,r.jsx)(p.JO,{icon:l.icon,color:l.color,height:"auto !important",width:"4vw",style:{minHeight:"24px !important",minWidth:"24px !important"}}):(0,r.jsx)(x.Z,{variant:"body2",sx:{fontSize:"clamp(10px, 2vw, 16px) !important"},children:t})})}function v(e){let{month:t,year:a,manualBonusCalendar:i,isCalendar:o}=e,s=(0,d.Z)("(max-width:1024px)"),[l,c]=(0,n.useState)(null),[h,b]=(0,n.useState)(!1),v=new Date(a,t,0).getDate(),j=new Date(a,t-1,1).getDay(),w=[...Array.from({length:j},(e,r)=>({date:new Date(a,t-1,-r).getDate(),month:1===t?12:t-1,year:1===t?a-1:a,isPreviousMonth:!0,isNextMonth:!1})).reverse(),...Array.from({length:v},(e,r)=>({date:r+1,month:t,year:a,isPreviousMonth:!1,isNextMonth:!1})),...Array.from({length:(7-(j+v)%7)%7},(e,r)=>({date:r+1,month:12===t?1:t+1,year:12===t?a+1:a,isPreviousMonth:!1,isNextMonth:!0}))].map(e=>{let t=new Date(e.year,e.month-1,e.date),a=null==i?void 0:i.find(e=>{let a=new Date(e.day),r=new Date(t);return r.setDate(r.getDate()-1),a.getDate()===r.getDate()&&a.getMonth()===r.getMonth()&&a.getFullYear()===r.getFullYear()});return{...e,bonusData:a}}),Z=[];for(let e=0;e<w.length;e+=7)Z.push(w.slice(e,e+7));let C=(0,n.useMemo)(()=>{let e=new Date,t=6e4*e.getTimezoneOffset();return new Date(e.getTime()+t)},[]),k=(e,r,n)=>{let i=C.getDate(),o=C.getMonth()+1,s=C.getFullYear();return i===e&&o===t&&s===a&&!r&&!n},S=e=>{e.bonusData&&(c(e),b(!0))};return(0,r.jsxs)(u.Z,{children:[(0,r.jsx)(u.Z,{sx:{display:"flex",flexWrap:"wrap",mb:1,mt:1,justifyContent:"space-between"},children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map(e=>(0,r.jsx)(u.Z,{sx:{p:1,textAlign:"center",border:"2px solid #9CA3AF",borderRadius:1,fontWeight:"bold",bgcolor:"#4b5262",width:"14%"},children:(0,r.jsx)(x.Z,{variant:"subtitle2",children:s?e[0]:e})},e))}),s?(0,r.jsxs)(r.Fragment,{children:[Z.map((e,t)=>(0,r.jsx)(u.Z,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:e.map((e,t)=>(0,r.jsx)(u.Z,{sx:{flex:"1 0 calc(14.28% - 8px)"},children:(0,r.jsx)(y,{day:e.date,hasBonus:!!e.bonusData,isToday:k(e.date,e.isPreviousMonth,e.isNextMonth),onClick:()=>S(e),disabled:e.isPreviousMonth||e.isNextMonth,bonusData:e.bonusData})},t))},t)),(0,r.jsx)(g.Z,{open:h,onClose:()=>b(!1),sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsxs)(u.Z,{sx:{width:"90%",maxWidth:400,bgcolor:"background.paper",p:2,borderRadius:1,position:"relative"},children:[(0,r.jsx)(f.Z,{onClick:()=>b(!1),sx:{position:"absolute",right:0,top:-40,color:"grey.500",bgcolor:"background.paper",borderRadius:"50%",width:32,height:32,"&:hover":{bgcolor:"grey.800"}},children:(0,r.jsx)(p.JO,{icon:"ph:x-circle-fill",width:24})}),l&&(0,r.jsx)(m.Z,{day:l.date,dayName:"",isCalendar:!0,isToday:k(l.date,l.isPreviousMonth,l.isNextMonth),bonusData:l.bonusData,styles:{maxHeight:"none",height:"auto"},closeModal:()=>b(!1)})]})})]}):Z.map((e,t)=>(0,r.jsx)(u.Z,{sx:{display:"flex",flexWrap:"wrap",mb:0,justifyContent:"space-between"},children:e.map((e,t)=>(0,r.jsx)(u.Z,{sx:{width:"100%",flexBasis:"14%",justifyItems:"center"},children:(0,r.jsx)(m.Z,{day:e.date,dayName:"",isCalendar:!0,isToday:k(e.date,e.isPreviousMonth,e.isNextMonth),bonusData:e.bonusData,styles:{opacity:e.isPreviousMonth||e.isNextMonth?.3:1,maxHeight:o?"96%":"",height:o?"100%":""}})},t))},t))]})}let j=["January","February","March","April","May","June","July","August","September","October","November","December"];function w(e){let{currentMonth:t,currentYear:a,handlePrevMonth:n,handleNextMonth:i,sx:o}=e;return(0,r.jsxs)(u.Z,{display:"flex",justifyContent:"space-between",alignItems:"center",gap:1,minWidth:240,sx:o,children:[(0,r.jsx)(f.Z,{onClick:n,sx:{p:0},children:(0,r.jsx)(p.JO,{icon:"gg:arrow-left-o",width:28,style:{color:"orange"}})}),(0,r.jsxs)(x.Z,{variant:"h2",align:"center",children:[j[t-1]," ",a]}),(0,r.jsx)(f.Z,{onClick:i,sx:{p:0},children:(0,r.jsx)(p.JO,{icon:"gg:arrow-right-o",width:28,style:{color:"orange"}})})]})}var Z=e=>{let{manualBonusCalendar:t}=e,a=(0,i.NL)(),{fetchBalance:p}=(0,s.E)(),{showMessage:m}
1=(0,l.useSnackbar)(),[g,f]=(0,n.useState)(!1),[b,y]=(0,n.useState)(),j=(0,d.Z)("(min-width:1025px)"),Z=()=>f(!1),C=async()=>{if(!b)return;let e={currency:b.symbol,coinId:"coinId"in b?b.coinId.toString():b.fiatId.toString(),currencyType:"type"in b?b.type:void 0};try{await o.ZP.post(o.Hv.promotions.claimAll,e),await a.invalidateQueries({queryKey:["getBonusCalendar"]}),p(),m("Bonus claimed successfully","success")}catch(e){m("Error claiming bonus","error")}finally{Z()}},[k,S]=(0,n.useState)(new Date().getUTCMonth()+1),[I,M]=(0,n.useState)(new Date().getUTCFullYear()),D=t&&Array.isArray(t)?t.reduce((e,t)=>t.isClaimable?e+t.claimAttempts.reduce((e,t)=>!t.claimable||t.claimed||t.expired?e:e+(t.claimableAmount||0),0):e,0):0,W=[{month:k-1||12,year:1===k?I-1:I},{month:k,year:I},{month:12===k?1:k+1,year:12===k?I+1:I}];return(0,r.jsxs)(u.Z,{sx:{mx:"auto",width:j?"800px":"80vw !important",height:"auto",aspectRatio:"1/1",p:0},children:[(0,r.jsxs)(u.Z,{display:"flex",flexDirection:{xs:"column-reverse",sm:"row"},justifyContent:"space-between",alignItems:"center",gap:2,mb:1,children:[(0,r.jsx)(w,{currentMonth:k,currentYear:I,handlePrevMonth:()=>{1===k?(S(12),M(I-1)):S(k-1)},handleNextMonth:()=>{12===k?(S(1),M(I+1)):S(k+1)}}),(0,r.jsxs)(u.Z,{sx:{display:"flex",alignItems:"center",gap:2},children:[(0,r.jsxs)(x.Z,{variant:"h2",children:["Pending rewards:"," ",(0,r.jsxs)(u.Z,{component:"span",fontWeight:"bold",sx:{color:"warning.main"},children:["$",D.toFixed(2)]})]}),(0,r.jsx)(h.Z,{size:"small",onClick:()=>f(!0),variant:"headerSecondary",disabled:D<=0,children:"Claim All"})]})]}),(0,r.jsx)(u.Z,{children:W.map((e,a)=>{let{month:n,year:i}=e;return(0,r.jsx)(u.Z,{sx:{display:1===a?"block":"none",transition:"opacity 0.5s ease-in-out"},children:(0,r.jsx)(v,{month:n,year:i,manualBonusCalendar:t,isCalendar:!0})},"".concat(n,"-").concat(i))})}),(0,r.jsx)(c.Z,{open:g,onClose:Z,handleClaim:C,setSelectedCurrency:y,selectedCurrency:b,totalUnclaimedAmount:D})]})}},29303:function(e,t,a){a.r(t);var r=a(57437),n=a(68575),i=a(43949),o=a(57871),s=a(1899);t.default=e=>{let{open:t,onClose:a,bonusDetail:l}=e,{t:c}=(0,i.$G)(),d=(null==l?void 0:l.attributes.content)||c("bonus.noData"),u=(0,n.v9)(e=>e.user.data),x={"First.Name":(null==u?void 0:u.name)||"",Email:(null==u?void 0:u.email)||"","USD.Exchange.nextValue":(null==u?void 0:u.settings.view_in_fiat_object.currency)||"USD"};return(0,r.jsx)(s.Z,{sx:{padding:1},children:(0,r.jsx)(o.lR,{content:d,mergeTags:x})})}},7599:function(e,t,a){a.r(t);var r=a(57437),n=a(33145),i=a(68651),o=a(2265),s=a(43949),l=a(48116),c=a(1899),d=a(19643),u=a(46387),x=a(89414),h=a(33833),p=a(50290),m=a(22095),g=a(19902),f=a(70208),b=a(32281),y=a(28314),v=a(52988),j=a(59469),w=a(27970),Z=a(17230);let C=e=>{let{icon:t,title:a,amount:i}=e;return(0,r.jsx)(c.Z,{sx:{border:"1px solid #808080",borderRadius:"4px",bgcolor:"#0A0F18",mb:1},children:(0,r.jsxs)(d.Z,{direction:"row",alignItems:"center",spacing:1,sx:{width:"100%",py:1,px:2},children:[(0,r.jsx)(n.default,{alt:"title-icon",height:24,width:24,src:"".concat("https://img.xyes.com/").concat(t),style:{marginRight:"8px"}}),(0,r.jsx)(u.Z,{children:a}),(0,r.jsxs)(u.Z,{sx:{ml:"auto"},children:["$",i]})]})})};t.default=e=>{let{categories:t}=e,{t:a}=(0,s.$G)(),[n,k]=(0,o.useState)({page:1,limit:5}),[S,I]=(0,o.useState)([]),[M,D]=(0,o.useState)([]),{data:W}=(0,Z.$)(n);return(0,o.useEffect)(()=>{(null==W?void 0:W.data.details)&&I(W.data.details.map(e=>{let{activityName:t,amount:a,claimedDate:r,currency:n}=e,o="".concat(n.split("/")[0],"/");return{type:t,amount:(0,l.dN)(new i.Z(a).toNumber(),o),time:new Date(r).toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZone:"UTC"})}}))},[W]),(0,o.useEffect)(()=>{t&&D(t.filter(e=>(null==e?void 0:e.category)!=="undefined").map(e=>({panel:e.category.split(" ").map((e,t)=>0===t?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1)).join(""),icon:e.icon||"assets/icons/bonus/general-bonus/ic_gift.svg",title:e.category,amount:e.totalClaimed||"$0.00",description:e.description||""})))},[t]),(0,r.jsxs)(c.Z,{maxWidth:"md",sx:{flexGrow:1,bgcolor:"background.paper",height:"auto"},children:[(0,r.jsxs)(x.ZP,{container:!0,component:"main",children:[(0,r.jsx)(u.Z,{mb:2,children:a("bonus.bonusCategories")}),(0,r.jsx)(c.Z,{sx:{width:"100%"},children:M.map(e=>(0,r.jsx)(C,{icon:e.icon,title:e.title,amount:e.amount},e.panel))})]}),(0,r.jsxs)(c.Z,{sx:{my:2},children:[(0,r.jsxs)(d.Z,{direction:{xs:"column",md:"row"},justifyContent:"space-between",mb:2,children:[(0,r.jsxs)(c.Z,{sx:{width:"100%"},children:[(0,r.jsx)(u.Z,{fontWeight:"bold",children:a("bonus.bonusTransactions")}),(0,r.jsx)(u.Z,{children:a("bonus.onlyLatest60DaysTransactionsWillBeDisplayedBelow")})]}),(0,r.jsxs)(h.Z,{defaultValue:"General Bonus",size:"small",sx:{width:"160px",border:"1px solid #808080"},children:[(0,r.jsx)(p.Z,{value:"Regular",children:"Regular"}),(0,r.jsx)(p.Z,{value:"General Bonus",children:"General Bonus"}),(0,r.jsx)(p.Z,{value:"VIP Bonus",children:"VIP Bonus"}),(0,r.jsx)(p.Z,{value:"Super VIP Bonus",children:"Super VIP Bonus"})]})]}),(0,r.jsxs)(m.Z,{component:g.Z,sx:{bgcolor:"#0A0F18",mt:2},children:[(0,r.jsxs)(f.Z,{children:[(0,r.jsx)(b.Z,{children:(0,r.jsxs)(y.Z,{children:[(0,r.jsx)(v.Z,{sx:{color:"text.primary",fontWeight:"bold",bgcolor:"#374151",textAlign:"center"},children:a("bonus.bonusType")}),(0,r.jsx)(v.Z,{sx:{color:"text.primary",fontWeight:"bold",bgcolor:"#374151",textAlign:"center"},children:a("bonus.amountClaimed")}),(0,r.jsx)(v.Z,{sx:{color:"text.primary",fontWeight:"bold",bgcolor:"#374151",textAlign:"center"},children:a("bonus.time")}
1)]})}),(0,r.jsx)(j.Z,{children:S.map((e,t)=>(0,r.jsxs)(y.Z,{children:[(0,r.jsx)(v.Z,{sx:{color:"grey.500"},children:e.type}),(0,r.jsx)(v.Z,{sx:{color:"grey.500",textAlign:"center"},children:e.amount}),(0,r.jsx)(v.Z,{sx:{color:"grey.500",textAlign:"center"},children:e.time})]},t))})]}),(0,r.jsx)(w.Z,{component:"div",count:(null==W?void 0:W.totalDocuments)||0,page:n.page-1,onPageChange:(e,t)=>{k(e=>({...e,page:t+1}))},rowsPerPage:n.limit,rowsPerPageOptions:[]})]})]})]})}},38267:function(e,t,a){a.r(t),a.d(t,{default:function(){return l}});var r=a(57437),n=a(1899),i=a(46387),o=a(44811),s=a(8350);function l(e){let{cb:t}=e;return(0,r.jsxs)(n.Z,{sx:{maxWidth:500},children:[(0,r.jsx)(i.Z,{variant:"subtitle1",sx:{mb:1},children:"Bonus Calendar"}),(0,r.jsxs)(n.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,r.jsx)(i.Z,{variant:"body2",sx:{color:"grey.400",mb:2},children:"Get three bonuses daily."}),(0,r.jsx)(o.Z,{variant:"contained",onClick:t,sx:{bgcolor:"#ff7901",width:"180px",mb:2,height:"40px",color:"white","&:hover":{bgcolor:"#ff8a1f"}},children:"View full calendar"})]}),(0,r.jsxs)(n.Z,{sx:{display:"flex",gap:2,mb:3,justifyContent:"center",alignItems:"center",textAlign:"center",height:60},children:[(0,r.jsxs)(n.Z,{sx:{flex:1},children:[(0,r.jsx)(i.Z,{variant:"h6",children:"VIP"}),(0,r.jsx)(i.Z,{variant:"body2",sx:{color:"grey.400"},children:"Calendar distribution 5 days"})]}),(0,r.jsx)(s.Z,{orientation:"vertical",flexItem:!0,sx:{borderColor:"rgba(255,255,255,0.1)",borderRightWidth:2}}),(0,r.jsxs)(n.Z,{sx:{flex:1},children:[(0,r.jsx)(i.Z,{variant:"h6",children:"SVIP"}),(0,r.jsx)(i.Z,{variant:"body2",sx:{color:"grey.400"},children:"Calendar distribution 3 days"})]})]}),(0,r.jsxs)(n.Z,{sx:{display:"flex",gap:2,mb:3,justifyContent:"center",alignItems:"center",textAlign:"center",height:60},children:[(0,r.jsxs)(n.Z,{sx:{flex:1},children:[(0,r.jsx)(i.Z,{variant:"h6",children:"Frequency of unlocking:"}),(0,r.jsx)(i.Z,{variant:"body2",sx:{color:"grey.400"},children:"Every 8 hours"})]}),(0,r.jsx)(s.Z,{orientation:"vertical",flexItem:!0,sx:{borderColor:"rgba(255,255,255,0.1)",borderRightWidth:2}}),(0,r.jsxs)(n.Z,{sx:{flex:1},children:[(0,r.jsx)(i.Z,{variant:"h6",children:"Next bonus part in:"}),(0,r.jsx)(i.Z,{variant:"body2",sx:{color:"grey.400"},children:"03:02:13"})]})]}),(0,r.jsx)(n.Z,{sx:{width:"100%",p:1,my:1,border:"2px solid #4b5262",backgroundColor:"#1f2a37",borderRadius:1},children:(0,r.jsx)(i.Z,{variant:"body2",children:"\uD83D\uDC51 For VIP and SVIP users the unlocked bonus part expires after 96 hours if it is not claimed."})}),(0,r.jsx)(n.Z,{sx:{width:"100%",p:1,my:1,border:"2px solid #4b5262",backgroundColor:"#1f2a37",borderRadius:1},children:(0,r.jsx)(i.Z,{variant:"body2",children:"Rewards are automatically credited to calendar, no requiring manual intervention. Minimum reward can be credited to calendar is 0.03 USD per day"})}),(0,r.jsx)(s.Z,{sx:{borderColor:"rgba(255,255,255,0.1)",my:2}}),(0,r.jsx)(i.Z,{variant:"subtitle2",sx:{mb:1,textAlign:"center"},children:"What is the bonus calculated for?"}),(0,r.jsx)(i.Z,{variant:"body2",sx:{color:"grey.400",textAlign:"center"},children:"Claim your regular bonuses (Cashback, Rakeback, Monthly and Weekly bonus) to get a calendar bonuses."})]})}},23248:function(e,t,a){a.r(t),a.d(t,{default:function(){return M}});var r=a(57437),n=a(34422),i=a(60033),o=a(29501),s=a(68575),l=a(66274),c=a(20418),d=a(2265),u=a(73842),x=a(78292),h=a(55447),p=a(85637),m=a(51786),g=a(36067),f=a(6809),b=a(1899),y=a(46387),v=a(24021),j=a(19643),w=a(98107),Z=a(11417),C=a(33145),k=a(10764),S=e=>{let{icon:t,label:a,labelInfo:n}=e;return(0,r.jsxs)(j.Z,{direction:"row",sx:{width:"100%"},children:[(0,r.jsx)(b.Z,{sx:{width:"25%"},children:(0,r.jsx)(C.default,{alt:"icon",height:74,width:84,src:"".concat("https://img.xyes.com/","assets/images/security/").concat(t)})}),(a||n)&&(0,r.jsxs)(j.Z,{direction:"column",spacing:1,sx:{width:"75%"},children:[a&&(0,r.jsx)(y.Z,{variant:"h6",sx:{fontWeight:"bold",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},children:a}),n&&(0,r.jsx)(b.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:(0,r.jsx)(y.Z,{fontWeight:"500",sx:{color:k.Z[300],whiteSpace:"normal",overflow:"visible"},children:n})})]})]})},I=a(77690),M=e=>{let t,{handleModal:a}=e,C=(0,w.k)(),k=(0,w.k)(),M=(0,w.k)(),{t:D}=(0,i.i)(),{showMessage:W}=(0,g.useSnackbar)(),P=(0,s.v9)(e=>e.user.data),[R,_]=(0,d.useState)(!1),[F,T]=(0,d.useState)(!1),[A,N]=(0,d.useState)(""),[E,O]=(0,d.useState)("info"),[B,L]=(0,d.useState)(!0),[z,U]=(0,d.useState)(!0),[V,H]=(0,d.useState)(600),{initialize:q}=(0,c.E)(),[Y,G]=(0,d.useState)((null==P?void 0:P.has_password)?1:0),[$,K]=(0,d.useState)(!1),X=(0,l.tv)(),J={currentPassword:"",password:"",repeatPassword:""},Q=n.Ry().shape({currentPassword:n.Z_().test("currentPasswordRequired",D("validators.currentPasswordRequired"),function(e){let{step:t}=this.options.context||{};return null==P||!P.has_password||1!==t||!!e}),password:n.Z_().test("passwordValidation",D("validators.passwordIsRequired"),function(e){let{step:t}=this.options.context||{};return 1===t||(e?/.*[a-z].*/.test(e)?/.*\d.*/.test(e)?!(e.length<8)||this.createError({message:D("validators.minimumCharacter",{minimum:8})}):this.createError({message:D("validators.atLeastOneDigit")}):this.createError({message:D("validators.atLeastOneLowerCaseCharacter")}):this.createError({message:D("validators.passwordIsRequired")}))}),repeatPassword:n.Z_().oneOf([n.iH("password"),void 0],D("validators.passwordsMustMatch")).test("repeatPasswordValidation",D("validators.confirmPasswordIsRequired"),function(e){let{step:t}=this.options.context||{};return 1===t||e===this.parent.password})}),ee=(0,o.cI)({resolver:(0,u.X)(Q),defaultValues:J,mode:"onChange",context:{step:Y}}),{handleSubmit:et,formState:{isSubmitting:ea,isValid:er},watch:en,reset:ei}=ee,eo=en("currentPassword"),es=en("password"),el=en("repeatPassword");(0,d.useEffect)(()=>{let e;return V>0?e=setInterval(()=>{H(e=>e-1)},1e3):0===V&&a(!1),()=>clearInterval(e)}
1,[V,a]),(0,d.useEffect)(()=>{1===Y&&eo&&P&&P.has_password?U(!1):1===Y&&!eo&&P&&P.has_password?U(!0):U(!er||es!==el)},[Y,eo,er,es,el,P]);let[,ec]=(0,d.useState)(!1),ed=async e=>{let t=h.Hv.auth.setPassword,r={newPassword:e.password},n={confirmPassword:e.repeatPassword},i={...r,...n};try{let e=await h.ZP.post("https://api.xyes.com/api/v1"+t,i);200===e.status&&(W(D("auth.reset.changeSuccess"),"success"),a(!1)),H(600)}catch(e){401===e.status&&(L(!0),L(!0),_(!1),ei(J),N(D("auth.invalidCredentials"))),N(e.message||D("errors.anErrorOccurred")),O("error"),T(!0)}},eu=async e=>{let t=1===Y,r=t?h.Hv.auth.verifyCurrentPassword:h.Hv.auth.resetPasswordAuthenthicated,n={...t?{currentPassword:e.currentPassword}:{password:e.password,repeatPassword:e.repeatPassword}};try{let e=await h.ZP.post("https://api.xyes.com/api/v1"+r,n);200===e.status&&(ei(J),t?(ei(J),G(2)):(ei(J),a(!1)))}catch(e){401===e.status&&(_(!1),ei(J),N(D("auth.invalidCredentials"))),N(e.message||D("errors.anErrorOccurred")),O("error"),T(!0)}},ex=et(async e=>{P&&P.has_password?await eu(e):await ed(e),q()}),eh=()=>{a(!1),X.replace("?modal=security-verification&type=contact-us")},ep=en("password",""),em=(0,p.u)(ep),eg=()=>(0,r.jsxs)(b.Z,{sx:{mt:1,textAlign:"left"},children:[(0,r.jsxs)(y.Z,{component:"div",variant:"subtitle2",color:em.hasLowerCase?"#20B83F":"text.secondary",children:[em.hasLowerCase?"✓":"✗"," ",D("validators.atLeastOneLowerCaseCharacter")]}),(0,r.jsxs)(y.Z,{component:"div",variant:"subtitle2",color:em.hasDigit?"#20B83F":"text.secondary",children:[em.hasDigit?"✓":"✗"," ",D("validators.atLeastOneDigit")]}),(0,r.jsxs)(y.Z,{component:"div",variant:"subtitle2",color:em.hasMinLength?"#20B83F":"text.secondary",children:[em.hasMinLength?"✓":"✗"," ",D("validators.minimumCharacter",{minimum:8})]})]}),ef=()=>{K(!1)},eb=()=>{K(!0)},ey=()=>(0,r.jsxs)(r.Fragment,{children:[(null==P?void 0:P.has_password)&&(0,r.jsx)(S,{labelInfo:D("accountManagement.security.enterAndConfirm",{time:(0,x.vA)(V)}),icon:"password-icon.svg"}),(0,r.jsx)(v.d,{onClickAway:ef,children:(0,r.jsx)("div",{children:(0,r.jsx)(I.Z,{name:"password",label:D("accountManagement.security.newPassword"),tooltip:eg(),passwordVisible:k.value,onToggleVisibility:k.onToggle,onFocus:()=>ec(!0),onBlur:()=>ec(!1),open:$,handleTooltipClose:ef,handleTooltipOpen:eb,sx:{mt:"30px"}})})}),(0,r.jsx)(I.Z,{name:"repeatPassword",label:D("accountManagement.security.confirmNewPassword"),passwordVisible:M.value,onToggleVisibility:M.onToggle,handleTooltipClose:ef})]});return(0,r.jsxs)(Z.Z,{methods:ee,onSubmit:ex,children:[(0,r.jsx)(m.Z,{message:A,open:F,setOpen:T,severity:E}),(t=B?(null==P?void 0:P.has_password)?1===Y?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(S,{labelInfo:D("accountManagement.security.security"),icon:"password-icon.svg"}),(0,r.jsx)(I.Z,{name:"currentPassword",label:D("accountManagement.security.currentPassword"),passwordVisible:C.value,onToggleVisibility:C.onToggle})]}):ey():(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(S,{labelInfo:D("accountManagement.security.message"),icon:"password-icon.svg"}),ey()]}):null,(0,r.jsxs)(j.Z,{spacing:2.5,sx:{display:"flex",width:"100%"},children:[t,(0,r.jsx)(f.Z,{fullWidth:!0,color:"inherit",size:"large",type:"submit",variant:"header",loading:ea,disabled:z,children:R?D("auth.reset.verify"):D("accountManagement.security.confirm")}),(0,r.jsx)(y.Z,{variant:"body1",sx:{color:"#00C6FF",textAlign:"center",marginTop:"15px",cursor:"pointer"},onClick:()=>eh(),children:D("accountManagement.security.noLongerWorks",{type:D("accountManagement.security.changePassword")})})]}))]})}},48354:function(e,t,a){a.r(t);var r=a(57437),n=a(33145),i=a(68651),o=a(60033),s=a(68575),l=a(20418),c=a(48116),d=a(27349),u=a(55447),x=a(2265),h=a(57952),p=a(92772),m=a(82877),g=a(31691),f=a(1899),b=a(46387),y=a(70203),v=a(22577),j=a(44811),w=a(51786);t.default=e=>{let{handleModal:t}=e,a=(0,g.Z)(),{t:Z}=(0,o.i)(),{authenticated:C,fetchBalance:k}=(0,l.E)(),{data:S,error:I}=(0,m.SG)(),{data:M,error:D,refetch:W}=(0,m.aE)(),[P,R]=(0,x.useState)(""),[_,F]=(0,x.useState)(!1),[T,A]=(0,x.useState)("info"),{data:N,refetch:E}=(0,h.s)({authenticated:C}),[O,B]=(0,x.useState)(0),[L,z]=(0,x.useState)(!1),U=(0,s.v9)(e=>e.user.data),V=M&&M.data.fiat.find(e=>"USD"===e.symbol)||null,[H,q]=(0,x.useState)(null),[,Y]=(0,x.useState)(0),[G,$]=(0,x.useState)(),K=(0,x.useCallback)(e=>{var t;let a=null==S?void 0:S.data.fiats.concat(S.data.cryptos);if(!a)return 0;let r=(null==M?void 0:M.data.fiat).some(t=>t.coinId===e.coinId),n=parseFloat((null===(t=a.find(t=>t.symbol===e.symbol))||void 0===t?void 0:t.usdRate)||"0"),o=r?new i.Z(O).multipliedBy(n):new i.Z(O).dividedBy(n);return(0,c.dN)(Number(o.toString()),r?"fiat/":"crypto/")},[null==S?void 0:S.data.fiats,null==S?void 0:S.data.cryptos,O,M]);(0,x.useEffect)(()=>
1{if(null==M?void 0:M.data){let e=M.data.fiat.find(e=>"USD"===e.symbol&&parseFloat(e.amount)>0);e||(e=M.data.fiat.find(e=>parseFloat(e.amount)>0)),e||(e=M.data.crypto.find(e=>"USDT"===e.symbol&&parseFloat(e.amount)>0)),!e&&M.data.crypto.length>0&&(e=M.data.crypto[0]),e&&(q(e),Y(Number(K(e))),$(M.data.fiat.some(t=>t.coinId===e.coinId)?1:0))}},[K,M,L]),(0,x.useEffect)(()=>{(D||I)&&(R(Z("error.somethingWentWrong")),A("error"),F(!0))},[Z,D,I]),(0,x.useEffect)(()=>{B((null==N?void 0:N.data.ComissionReward)||0),z(!1)},[N,L]);let X=async()=>{var e,t,a,r;let n=(null==S?void 0:null===(e=S.data.fiats.concat(S.data.cryptos).find(e=>e.symbol===(null==H?void 0:H.symbol)))||void 0===e?void 0:e.usdRate)||"1";try{let e=await u.ZP.post(u.Hv.promotions.createClaim,{userId:null==U?void 0:U._id,memberId:null==U?void 0:U.memberId,amountToClaim:O,currency:null==H?void 0:H.symbol,exchangeRate:parseFloat(n),coinId:null==H?void 0:H.coinId,type_currency:G?"fiat":"crypto"});e.data&&(R(e.data.message),A("success"),k(),W())}catch(e){R("".concat(Z("referralCampaign.createModal.error_occurred")," ").concat((null===(a=e.response)||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.message)||(null===(r=e.data)||void 0===r?void 0:r.message)||e.message)),A("error")}finally{E(),z(!0),F(!0)}},J=(0,x.useCallback)(e=>{let t=d.M.find(t=>t.symbol===e);return(null==t?void 0:t.mark)||""},[]);return(0,r.jsxs)(f.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",justifyContent:"space-around",backgroundColor:a.palette.background.default,borderRadius:2},children:[(0,r.jsx)(w.Z,{message:P,open:_,setOpen:F,severity:T}),(0,r.jsxs)(f.Z,{sx:{mb:3,justifyContent:"space-around"},children:[(0,r.jsx)(b.Z,{color:a.palette.grey[400],textAlign:"left",sx:{fontWeight:"medium"},children:Z("referralCampaign.claimModal.instructions")}),(0,r.jsx)(b.Z,{color:a.palette.grey[400],textAlign:"left",sx:{fontWeight:"medium",alignSelf:"flex-start"},children:Z("referralCampaign.claimModal.instructions2")})]}),(0,r.jsxs)(f.Z,{sx:{display:"flex",justifyContent:"space-around",alignItems:"stretch",width:"100%",flexDirection:"column",gap:4},children:[(0,r.jsxs)(f.Z,{display:"flex",flexDirection:"row",sx:{backgroundColor:"rgba(0, 0, 0, 0.4)",border:"2px solid #6B7280",borderRadius:"12px",padding:"16px",width:"100%",justifyContent:"space-evenly",alignItems:"center",minHeight:{xs:"100px"}},children:[V&&V.logoUrl&&(0,r.jsx)(n.default,{alt:"USD icon",height:30,width:40,src:V.logoUrl}),(0,r.jsxs)(f.Z,{display:"flex",flexDirection:"column",children:[(0,r.jsx)(b.Z,{color:a.palette.grey[400],sx:{fontWeight:"medium"},children:Z("referralCampaign.claimModal.usd")}),(0,r.jsx)(b.Z,{color:a.palette.common.white,sx:{fontWeight:"medium"},children:(0,c.dN)(O,"fiat/")})]})]}),(0,r.jsx)(f.Z,{sx:{transform:"rotate(90deg)",display:"flex",justifyContent:"center",alignItems:"center",width:"50%",alignSelf:"center"},children:(0,r.jsx)(n.default,{alt:"forward arrows",height:62,width:62,src:"".concat("https://img.xyes.com/","assets/images/account-management/referral/forward_arrows.svg")})}),(0,r.jsxs)(f.Z,{display:"flex",flexDirection:"row",sx:{backgroundColor:"rgba(0, 0, 0, 0.4)",border:"2px solid #6B7280",borderRadius:"12px",padding:"16px",width:"100%",maxWidth:"100%",alignItems:"center",overflow:"hidden",gap:1,justifyContent:"space-evenly",minHeight:{xs:"100px"}},children:[H&&(0,r.jsx)(n.default,{alt:"selected currency icon",height:H.logoUrl?30:40,width:40,src:H.logoUrl||H.cryptoIcon}),(0,r.jsx)(f.Z,{display:"flex",flexDirection:"column",pt:3,children:(0,r.jsxs)(y.Z,{fullWidth:!0,sx:{maxWidth:"99%",minWidth:"100%"},children:[(0,r.jsx)(v.Z,{variant:"standard",htmlFor:"currency-select",children:Z("referralCampaign.claimModal.currency")}),(null==H?void 0:H.coinId)?(0,r.jsx)(p.Z,{name:"currency",label:"Currency",value:(H.coinId,H.coinId.toString()),defaultValue:H.coinId.toString(),options:(null==M?void 0:M.data.fiat.concat(M.data.crypto))?M.data.fiat.concat(M.data.crypto).filter(e=>parseFloat(e.amount)>0&&(null==S?void 0:S.data.fiats.concat(S.data.cryptos).find(t=>t.symbol===e.symbol))).map(e=>({key:e.coinId.toString(),value:e.coinId.toString(),label:"".concat(e.symbol," -  ").concat(J(e.symbol)," ").concat((0,c.dN)(Number(e.amount.toString()),M.data.fiat.some(t=>t.coinId===e.coinId)?"fiat/":"crypto/")),icon:e.logoUrl})).concat({key:H.coinId.toString(),value:H.symbol,label:"".concat(H.symbol," -  ").concat(J(H.symbol)," ").concat((0,c.dN)(Number(H.amount.toString()),M.data.fiat.some(e=>e.coinId===H.coinId)?"fiat/":"crypto/")),icon:H.logoUrl}).filter((e,t,a)=>t===a.findIndex(t=>t.key===e.key)):[],disabled:!1,handleSelect:e=>{let t=parseInt(e.target.value,10),a=(null==M?void 0:M.data.fiat.concat(M.data.crypto)).find(e=>e.coinId===t);a&&(q(a),Y(Number(K(a))),$((null==M?void 0:M.data.fiat).some(e=>e.coinId===t)?1:0))},iconType:"img",static:"icon"}):null]})})]})]}
1),H&&V&&(0,r.jsx)(b.Z,{variant:"h6",alignSelf:"flex-start",color:a.palette.grey[400],sx:{mt:2,textAlign:"left",paddingBottom:2},children:"".concat((0,c.dN)(O,"fiat/")," USD ≈ ").concat(K(H)," ").concat(H.symbol)}),(0,r.jsx)(j.Z,{onClick:X,disabled:0===O||L,sx:{fontWeight:"medium",color:a.palette.common.white,backgroundColor:a.palette.primary.main,mt:4,mb:3,width:"50%","&:hover":{backgroundColor:a.palette.primary.light}},children:Z("referralCampaign.claimModal.claimButton")})]})}},79773:function(e,t,a){a.r(t),a.d(t,{default:function(){return E}});var r=a(57437),n=a(33145),i=a(68651),o=a(68720),s=a(68575),l=a(2265),c=a(76975),d=a(43949),u=a(48116),x=a(89011),h=a(1869),p=a(82877),m=a(29267),g=a(3801),f=a(47101),b=a(66393),y=a(16210),v=a(1899),j=a(46387),w=a(33833),Z=a(50290),C=a(44811),k=a(38954),S=a(60033),I=a(78948),M=a(30166),D=a(35791),W=a(77468),P=a(95576),R=a(57871);function _(e){var t;let{open:a,onClose:i,size:o}=e,{t:l}=(0,d.$G)(),{getLang:u}=(0,S.i)(),x=u(),{data:h,isLoading:p,error:m}=(0,M.Q)({populate:[{key:"populate",value:"*"}],locale:{key:"locale",value:x},filters:[{key:"slug",value:"How to claim"}]}),g=(0,s.v9)(e=>e.user.data),f={"First.Name":(null==g?void 0:g.name)||"",Email:(null==g?void 0:g.email)||"","USD.Exchange.nextValue":(null==g?void 0:g.settings.view_in_fiat_object.currency)||"USD"};if(p)return(0,r.jsx)(D.Z,{open:a,onClose:i,maxWidth:"sm",fullWidth:!0,children:(0,r.jsx)(W.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"200px"},children:(0,r.jsx)(j.Z,{variant:"body1",children:l("common.loading")})})});if(m)return(0,r.jsx)(D.Z,{open:a,onClose:i,maxWidth:"sm",fullWidth:!0,children:(0,r.jsx)(W.Z,{children:(0,r.jsx)(j.Z,{color:"error",children:l("error.failedToLoad")})})});let b=null==h?void 0:null===(t=h.data.find(e=>"How to claim"===e.attributes.slug))||void 0===t?void 0:t.attributes;return(0,r.jsxs)(D.Z,{fullWidth:!o,open:a,onClose:i,maxWidth:"sm",sx:{"& .MuiDialog-paper":{height:"auto",width:o||"auto",maxWidth:o||"none",boxShadow:I.y0.boxShadow,overflowY:"auto"}},children:[(0,r.jsxs)(v.Z,{sx:{position:"sticky",top:0,left:0,width:"100%",backgroundColor:"background.default",zIndex:1100,display:"flex",justifyContent:"space-between",alignItems:"center",padding:"10px"},children:[(0,r.jsxs)(j.Z,{variant:"h3",sx:{display:"flex",alignItems:"start",gap:1},children:[(0,r.jsx)(n.default,{alt:"modal-icon",src:"".concat("https://img.xyes.com/","assets/icons/logos/xyes-favicon-dark-mode.svg"),width:24,height:24}),(null==b?void 0:b.heading)||l("bonus.howToClaim")]}),(0,r.jsx)(P.Z,{"aria-label":"close",onClick:i,sx:{zIndex:10,alignSelf:"end",pt:0,px:0},children:(0,r.jsx)(c.Z,{icon:"solar:close-circle-linear",sx:{height:24,width:24}})})]}),(0,r.jsx)(W.Z,{children:b?(0,r.jsx)(R.lR,{content:b.content||"",mergeTags:f}):(0,r.jsx)(j.Z,{variant:"body1",children:l("bonus.noData")})})]})}let F=(0,y.ZP)(v.Z)(e=>{let{theme:t}=e;return{position:"relative",overflow:"hidden",height:60,[t.breakpoints.up("md")]:{height:120}}}),T=(0,y.ZP)(v.Z)({backgroundColor:"#111928",padding:"5px",borderRadius:"8px",marginBottom:"16px",display:"flex"});function A(e){let{lockedXcdAmount:t,xcdAmount:a}=e,{t:i}=(0,d.$G)();return(0,r.jsxs)(F,{children:[(0,r.jsx)(n.default,{src:"/assets/background/img-background-design.webp",alt:"Background",layout:"fill",objectFit:"cover",quality:100}),(0,r.jsxs)(v.Z,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.5)",gap:1},children:[(0,r.jsx)(j.Z,{variant:"h4",sx:{color:"white",opacity:.7,fontSize:"0.875rem"},children:i("bonus.lockedXCD")}),(0,r.jsxs)(j.Z,{variant:"h2",sx:{color:"white",display:"flex",alignItems:"center",gap:1,fontWeight:"bold",textShadow:"0 0 10px #007bff, 0 0 10px #007bff, 0 0 20px #007bff"},children:[(0,r.jsx)(n.default,{src:"".concat("https://img.xyes.com/","assets/icons/logos/xyes-favicon-dark-mode.svg"),alt:"XCD",width:24,height:24}),(0,u.dN)(t,"fiat/")," XCD"]})]})]})}let N=(e,t,a)=>{let r;return r="crypto"===a?new i.Z(e).dividedBy(new i.Z(t.usdRate)):new i.Z(e).multipliedBy(new i.Z(t.usdRate)),(0,u.dN)(r.toNumber(),"crypto"===a?"crypto/":"fiat/")};function E(e){let{handleClaim:t,setIsModalOpen:a,lockedXcdAmount:i,claimAmount:y,setSelectedCurrency:S,selectedCurrency:I,isClaimable:M}=e,{t:D}=(0,d.$G)(),[W,P]=(0,l.useState)(""),{data:R}=(0,b.s)(""),[,F]=(0,l.useState)(!1),{authenticated:E}=(0,x.E)(),[O,B]=(0,l.useState)([]),{data:L}=(0,g.r)({authenticated:E}),z=(0,s.v9)(e=>e.user.data),U=(0,s.v9)(e=>e.userBalance),{data:V}=(0,f.i)({authenticated:E,userId:(null==z?void 0:z._id)||""}),{data:H}=(0,p.Xn)({currencyCode:"USD"}),[q,Y]=(0,l.useState)(!1),G=e=>{let t=O.find(t=>t.symbol===e);t&&S(t)};return((0,l.useEffect)(()=>
1{if(!(null==L?void 0:L.data)||!(null==R?void 0:R.data)||!(null==V?void 0:V.data))return;let e=L.data.cryptos.map(e=>e),t=L.data.fiats.map(e=>e);B((0,h.re)(R,{message:"success",data:{cryptos:e,fiats:t}}).map(e=>{var t,a;let r=null===(t=U.crypto)||void 0===t?void 0:t.find(t=>t.symbol===e.symbol),n=null===(a=U.fiat)||void 0===a?void 0:a.find(t=>t.symbol===e.symbol),i=r||n;return{...e,amount:(null==i?void 0:i.amount)||"0",type:r?"crypto":"fiat"}}))},[L,R,U.crypto,U.fiat,V]),(0,l.useEffect)(()=>{O.length>0&&S(O[0])},[O,S]),(0,l.useEffect)(()=>{I&&H&&P(H[I.symbol]||"0")},[H,I]),(0,l.useEffect)(()=>{F(!M)},[M]),I)?(0,r.jsxs)(v.Z,{children:[(0,r.jsxs)(v.Z,{sx:{borderRadius:2,overflow:"hidden"},children:[(0,r.jsx)(A,{lockedXcdAmount:i,xcdAmount:y}),(0,r.jsxs)(v.Z,{sx:{borderRadius:"4px",py:1.5,display:"flex",flexDirection:"column",m:0},children:[(0,r.jsxs)(v.Z,{sx:{display:"flex",margin:{xs:"5px",md:"30px"}},children:[(0,r.jsx)(j.Z,{variant:"h4",color:"white",marginRight:"10px",children:D("bonus.howToClaim")}),(0,r.jsx)(c.Z,{"margin-":"2px",color:"primary.main",icon:"jam:alert",width:24,height:24,onClick:()=>Y(!0),sx:{cursor:"pointer"}})]}),(0,r.jsx)(v.Z,{sx:{alignItems:"center",gap:1,display:"flex",justifyContent:"center",bgcolor:"rgba(255, 255, 255, 0.03)",width:"100%",py:2},children:(0,r.jsx)(T,{sx:{width:"100%",maxWidth:"100%",margin:"10px",justifyContent:"center",borderRadius:"4px"},children:(0,r.jsxs)(j.Z,{variant:"h3",sx:{color:"#4caf50",fontSize:"1rem",justifyContent:"center"},children:[D("bonus.unlockAmount")," = ",D("bonus.validWager")," * 1% * 20%"]})})})]}),(0,r.jsx)(m.Z,{currentWager:Math.min(500*y,2500),targetWager:2500}),(0,r.jsxs)(v.Z,{sx:{p:2,display:"flex",justifyContent:"space-between",borderRadius:"4px",alignItems:"center",bgcolor:"rgba(255, 255, 255, 0.03)",pb:{xs:"15px"}},children:[(0,r.jsx)(v.Z,{sx:{display:"flex",alignItems:"center",height:"34px",width:"110px",borderRadius:"4px",padding:"0 8px",bgcolor:"#1F2A37"},children:(0,r.jsxs)(j.Z,{variant:"h4",children:[(0,r.jsx)(n.default,{src:"".concat("https://img.xyes.com/","assets/icons/logos/xyes-favicon-dark-mode.svg"),alt:"XCD",width:24,height:24,style:{marginRight:"8px"}})," ","XCD"]})}),(0,r.jsxs)(v.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[(0,r.jsx)(j.Z,{color:"grey.400",variant:"caption",children:D("bonus.unlocked")}),(0,r.jsxs)(j.Z,{variant:"h2",color:"#FF7901",children:[(0,u.dN)(Number(y),"fiat/")," XCD"]})]})]}),(0,r.jsx)(v.Z,{sx:{position:"relative",height:0,display:"flex",justifyContent:"center",my:.5},children:(0,r.jsxs)(v.Z,{sx:{width:40,height:40,bgcolor:"#1a1f2e",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",position:"relative",top:"-25px",border:"6px solid #111928"},children:[(0,r.jsx)(o.JO,{icon:"teenyicons:arrow-down-solid",color:"#ff9800",width:20}),(0,r.jsx)(o.JO,{icon:"teenyicons:arrow-down-solid",color:"#ff9800",width:20})]})}),(0,r.jsxs)(v.Z,{sx:{p:2,display:"flex",justifyContent:"space-between",borderRadius:"4px",alignItems:"center",bgcolor:"rgba(255, 255, 255, 0.03)",pt:{xs:"15px",md:"20px"}},children:[(0,r.jsx)(w.Z,{value:I.symbol,onChange:e=>G(e.target.value),variant:"standard",sx:{display:"flex",alignItems:"center",height:"34px",width:{xs:"170px",sm:"190px"},borderRadius:"4px",padding:"0 8px",bgcolor:"#1F2A37","& .MuiSelect-select:focus":{bgcolor:"transparent"},"&:before":{display:"none"},"&:after":{display:"none"}},children:O.map(e=>(0,r.jsx)(Z.Z,{value:e.symbol,children:(0,r.jsxs)(v.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,r.jsx)(k.Z,{alt:e.symbol,width:"crypto"===e.type?20:25,src:e.logoUrl,borderRadius:.1}),(0,r.jsxs)(j.Z,{children:[e.symbol," - ",(0,u.dN)(Number(e.amount),e.type||"")]})]})},e.symbol))}),(0,r.jsxs)(v.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[(0,r.jsx)(j.Z,{color:"grey.400",variant:"caption",children:D("bonus.currency")}),(0,r.jsx)(j.Z,{variant:"h2",align:"right",color:"#FF7901",children:N(y,I,I.type||"")})]})]}),(0,r.jsxs)(j.Z,{variant:"caption",color:"grey.500",align:"right",display:"block",sx:{mt:1,mb:1},children:["1 ","XCD"," ≈ ",(0,u.dN)(Number(W),"crypto/")," ",I.symbol]}),(0,r.jsx)(C.Z,{fullWidth:!0,variant:"contained",sx:{bgcolor:"#f57c00","&:hover":{bgcolor:"#fb8c00"},borderRadius:2,py:1.5,fontSize:"1.1rem",color:"white"},onClick:t,disabled:!M,children:D("bonus.claimNow")})]}
1),(0,r.jsx)(_,{size:"550px",open:q,onClose:()=>Y(!1)})]}):null}},27412:function(e,t,a){a.r(t);var r=a(57437),n=a(34422),i=a(60033),o=a(3164),s=a(73842),l=a(29501),c=a(55447),d=a(2265),u=a(31691),x=a(1899),h=a(46387),p=a(8350),m=a(85860),g=a(92566),f=a(19643),b=a(44811),y=a(35036),v=a(51786);t.default=e=>{var t,a,j;let{handleModal:w,isOpenModal:Z,refetch:C}=e,k=(0,u.Z)(),{t:S}=(0,i.i)(),[I,M]=(0,d.useState)(!1),[D,W]=(0,d.useState)(!1),[P,R]=(0,d.useState)(""),[_,F]=(0,d.useState)("info"),{data:T,error:A,isError:N,refetch:E}=(0,o.f)(),[O,B]=(0,d.useState)(!1),[L,z]=(0,d.useState)({name:"",default:!1,code:null!==(j=null==T?void 0:null===(t=T.data)||void 0===t?void 0:t.referralCode)&&void 0!==j?j:""}),U=n.Ry().shape({name:n.Z_().max(100,S("referralCampaign.createModal.max_characters",{max:100})).required(S("referralCampaign.createModal.name_required",{field:S("fields.name")})),default:n.O7().required(S("referralCampaign.createModal.default_required")),code:n.Z_().required(S("referralCampaign.createModal.referral_code_required"))}),V=(0,l.cI)({resolver:(0,s.X)(U),defaultValues:L||void 0,mode:"onTouched"}),{reset:H}=V;(0,d.useEffect)(()=>{var e;Z&&(null==T?void 0:null===(e=T.data)||void 0===e?void 0:e.referralCode)&&z({name:"",default:!1,code:T.data.referralCode})},[Z,T]),(0,d.useEffect)(()=>{L&&H(L)},[L,H]);let{handleSubmit:q,formState:Y,setValue:G,watch:$}=V,K=q(async e=>{if(Object.keys(Y.errors).length>0&&Y.isValid){R(S("referralCampaign.createModal.please_fill_fields")),F("error"),W(!0);return}M(!0);try{(await c.ZP.post(c.Hv.campaigns.createReferralCampaign,{...e,myComission:100,sharedComission:0})).data&&(R(S("referralCampaign.createModal.campaign_created")),F("success"),C(),w(!1))}catch(e){var t,a,r;R("".concat(S("referralCampaign.createModal.error_occurred")," ").concat((null===(a=e.response)||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.message)||(null===(r=e.data)||void 0===r?void 0:r.message)||e.message)),F("error")}finally{M(!1),W(!0)}});(0,d.useEffect)(()=>{O&&(E(),B(!1))},[E,O]),(0,d.useEffect)(()=>{Z&&B(!0)},[Z,N]),(0,d.useEffect)(()=>{N&&(R((null==A?void 0:A.message)||S("referralCampaign.createModal.referral_code_error")),F("error"),W(!0))},[N,A,S]);let X=(e,t)=>{let{name:a,value:r}=e.target;G(a,r.replace(/[!@#$%^&()\-_=+{}[\]|\\:;"<>,.?/~`*]/g,"").substring(0,t))};return(0,r.jsx)(x.Z,{position:"relative",sx:{maxHeight:"80vh",overflowY:"auto"},children:(0,r.jsxs)(l.RV,{...V,children:[(0,r.jsx)(v.Z,{message:P,open:D,setOpen:W,severity:_}),(0,r.jsxs)(x.Z,{paddingInline:1,component:"form",onSubmit:K,children:[(0,r.jsx)(h.Z,{variant:"body2",sx:{mb:6,textAlign:"left",color:k.palette.grey[300]},children:S("referralCampaign.createModal.invite_friends")}),(0,r.jsx)(p.Z,{sx:{color:k.palette.grey[300],fontSize:16},children:S("referralCampaign.createModal.set_up_company")}),(0,r.jsx)(x.Z,{sx:{width:"100%",my:2},children:(0,r.jsx)(y.Z,{name:"name",fullWidth:!0,maxLength:255,required:!0,borderColor:"#9B9B9B",label:S("referralCampaign.createModal.enter_campaign_name"),usePlaceholder:!0,onChange:e=>X(e,100),error:!!Y.errors.name,helperText:null===(a=Y.errors.name)||void 0===a?void 0:a.message})}),(0,r.jsx)(m.Z,{control:(0,r.jsx)(g.Z,{checked:$("default")}),label:S("referralCampaign.createModal.set_default_campaign"),onChange:e=>G("default",e.target.checked),sx:{color:k.palette.grey[300]}}),(0,r.jsx)(f.Z,{marginTop:3,spacing:2,width:"100%",children:(0,r.jsx)(b.Z,{variant:"contained",type:"submit",sx:{backgroundColor:k.palette.primary.main,":hover":{backgroundColor:k.palette.secondary.dark},justifyContent:"center",alignItems:"center",alignContent:"center",color:"#ffffff"},children:I?S("referralCampaign.createModal.creating_campaign"):S("referralCampaign.createModal.create_campaign")})})]})]})})}},92435:function(e,t,a){a.d(t,{Z:function(){return u}});var r=a(57437),n=a(2265),i=a(68575),o=a(31691),s=a(82156),l=a(44811),c=a(38954),d=a(67972);function u(e){let{styleButton:t,showIcon:a=!0}=e,[u,x]=(0,n.useState)(!1),h=()=>x(!1),p=(0,i.v9)(e=>e.user.data),m=(0,o.Z)(),g=(0,s.Z)(m.breakpoints.between("sm","lg"));return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l.Z,{onClick:()=>x(!0),sx:{...t,md:{pd:0}},variant:"outlined",children:[(null==p?void 0:p.settings.view_in_fiat_object.icon)&&a&&!g&&(0,r.jsx)(c.Z,{alt:"currency",width:25,src:p.settings.view_in_fiat_object.icon}
1),(null==p?void 0:p.settings.view_in_fiat_object.to_show)?p.settings.view_in_fiat_object.currency:"USD"]}),(0,r.jsx)(d.A,{title:"",showModal:u,handleModal:h,type:"updateLanguage",modalProps:{handleClose:h,defaultTab:1},hasIcon:!0})]})}},42995:function(e,t,a){a.r(t),a.d(t,{default:function(){return p}});var r=a(57437),n=a(60033),i=a(31691),o=a(82156),s=a(1899),l=a(89414),c=a(46387),d=a(44811),u=a(2230);let x={display:"flex",flexDirection:"column",alignItems:"start",justifyContent:"start",gap:2},h={display:"flex",alignItems:"center",gap:1,background:"#23282f",fontSize:"14px !important"};function p(e){let{data:t,handleClick:a}=e,p=(0,i.Z)(),{t:m}=(0,n.i)(),g=(0,o.Z)(p.breakpoints.down("sm"));return(0,r.jsx)(s.Z,{maxWidth:"sm",sx:{height:"70vh",width:g?"300px":"400px"},children:(0,r.jsx)(l.ZP,{container:!0,component:"main",children:(0,r.jsxs)(s.Z,{sx:x,borderRadius:2,children:[(0,r.jsx)(c.Z,{mt:1,children:m("navigation.header.settings.note")}),(0,r.jsxs)(l.ZP,{container:!0,spacing:2,justifyContent:"center",children:[(0,r.jsx)(l.ZP,{item:!0,xs:6,sm:6,md:6,children:(0,r.jsx)(d.Z,{sx:h,fullWidth:!0,onClick:()=>a({show:!1,isNone:!1}),children:m("navigation.header.settings.none")})},0),t&&t.data.fiats.map((e,t)=>(0,r.jsx)(l.ZP,{item:!0,xs:6,sm:6,md:6,children:(0,r.jsxs)(d.Z,{sx:h,fullWidth:!0,onClick:()=>a({show:!0,currencySelected:e}),children:[(0,r.jsx)(u.Z,{alt:"currency",width:25,src:e.logoUrl}),e.symbol]})},t+1))]})]})})})}},98951:function(e,t,a){a.r(t),a.d(t,{default:function(){return D}});var r=a(57437),n=a(34422),i=a(27648),o=a(2265),s=a(60033),l=a(83464),c=a(43577),d=a(55447),u=a(76975),x=a(66274),h=a(73842),p=a(29501),m=a(56982),g=a(36067),f=a(6809),b=a(16210),y=a(73904),v=a(10207),j=a(31691),w=a(1899),Z=a(46387),C=a(97312),k=a(11417);let S=(0,b.ZP)(y.Z)(e=>{let{theme:t}=e;return{minHeight:"48px","& .MuiTabs-indicator":{display:"none"}}}),I=(0,b.ZP)(v.Z)(e=>{let{theme:t}=e;return{flex:1,minHeight:"36px",color:t.palette.common.white,backgroundColor:"transparent",border:"1px solid",borderColor:t.palette.grey[600],margin:"0px !important",padding:"8px 16px","&.Mui-selected":{color:t.palette.common.white,backgroundColor:t.palette.secondary.main},"&:not(.Mui-selected)":{backgroundColor:"transparent"},"&:first-of-type":{borderRadius:"8px 0 0 8px"},"&:last-of-type":{borderRadius:"0 8px 8px 0"}}}),M={emailOrPhone:""};function D(e){let{setEmailOrPhone:t,setIsEmailOrPhone:a}=e,[b,y]=(0,o.useState)("email"),[v,D]=(0,o.useState)(!1),[W,P]=(0,o.useState)(""),{t:R}=(0,s.i)(),{showMessage:_}=(0,g.useSnackbar)(),F=(0,j.Z)(),T=(0,x.tv)(),A=F.palette.primary.light,N=n.Ry().shape({emailOrPhone:n.Z_().required(R("auth.validation.emailOrPhoneRequire")).test("emailOrPhone",R("auth.validation.emailOrPhoneInvalid"),e=>n.Z_().email().isValidSync(e)||(0,m.Cs)(e))}),E=e=>{let t=e.replace(/^\+\s?/,"");/^\d[\d\s]*$/.test(t.trim())?(P("+ ".concat(t.trim())),D(!0),a(!0)):(P(e),D(!1),a(!1))},O=(0,p.cI)({resolver:(0,h.X)(N),defaultValues:M,shouldUnregister:!0}),{handleSubmit:B,formState:{isSubmitting:L}}=O,z=B(async e=>{let a={[v?"phone":"email"]:e.emailOrPhone};try{let r=await l.default.post("https://api.xyes.com/api/v1"+d.Hv.auth.recovery,a);204===r.status&&(t(e.emailOrPhone),T.replace("?modal=reset-password&step=code"))}catch(e){if(e instanceof c.d7){var r,n;_((null===(n=e.response)||void 0===n?void 0:null===(r=n.data)||void 0===r?void 0:r.message)||e.message,"error")}else _(e.message||R("errors.anErrorOccurred"),"error")}});return(0,r.jsx)(k.Z,{methods:O,children:(0,r.jsxs)(w.Z,{sx:{maxWidth:400,mx:"auto",borderRadius:2,bgcolor:"background.paper"},children:[(0,r.jsx)(Z.Z,{variant:"body2",sx:{mb:3,color:"text.secondary"},children:R("auth.reset.description")}),(0,r.jsxs)(S,{value:b,onChange:(e,t)=>
1{y(t),O.resetField("emailOrPhone"),O.clearErrors("emailOrPhone")},variant:"fullWidth",sx:{mb:3},children:[(0,r.jsx)(I,{label:(0,r.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,r.jsx)(u.Z,{icon:"system-uicons:mail"}),"Email"]}),value:"email"}),(0,r.jsx)(I,{label:(0,r.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,r.jsx)(u.Z,{icon:"ph:phone-call-light"}),"Phone Number"]}),value:"phone"})]}),(0,r.jsxs)(k.Z,{methods:O,onSubmit:z,children:[(0,r.jsx)(p.Qr,{name:"emailOrPhone",control:O.control,render:e=>{let{field:t,fieldState:a}=e;return(0,r.jsx)(w.Z,{sx:{mb:3},children:"phone"===b?(0,r.jsx)(m.Kr,{...t,value:W,defaultCountry:"CR",fullWidth:!0,label:(0,r.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,r.jsx)(u.Z,{icon:"ph:phone-call-light",color:A}),"\xa0",(0,r.jsx)("span",{children:"Phone Number"})]}),helperText:a.invalid?"Invalid phone number":"",error:a.invalid,onChange:e=>{t.onChange(e),E(e)},sx:{"& .MuiOutlinedInput-root":{color:"common.white","& fieldset":{borderColor:"grey.600"}},"& .MuiInputLabel-root":{color:"grey.400"}}}):(0,r.jsx)(k.a,{...t,fullWidth:!0,label:(0,r.jsxs)(w.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,r.jsx)(u.Z,{icon:"system-uicons:mail",color:A}),"\xa0",(0,r.jsx)("span",{children:"Email address"})]}),helperText:a.invalid?"Invalid email address":"",error:a.invalid,sx:{"& .MuiOutlinedInput-root":{color:"common.white","& fieldset":{borderColor:"grey.600"}},"& .MuiInputLabel-root":{color:"grey.400"}}})})}}),(0,r.jsx)(f.Z,{loading:L,size:"large",fullWidth:!0,type:"submit",variant:"contained",sx:{bgcolor:"primary.main",color:"common.white",p:1.5,borderRadius:1,"&:hover":{bgcolor:"warning.dark"}},children:R("auth.reset.sendMessage")})]}),(0,r.jsx)(w.Z,{sx:{mt:3,textAlign:"center"},children:(0,r.jsxs)(Z.Z,{variant:"body2",sx:{color:"text.secondary"},children:[R("auth.reset.haveAccount")," ",(0,r.jsx)(C.Z,{component:i.default,href:"?modal=auth&tab=1",sx:{color:"primary.main",textDecoration:"none","&:hover":{textDecoration:"underline"}},children:R("auth.reset.login")})]})})]})})}},44825:function(e,t,a){a.r(t);var r=a(57437),n=a(18848),i=a(68575),o=a(57871);t.default=e=>{let{content:t,className:a=""}=e,s=(0,i.v9)(e=>e.userCurrencies),l=(0,i.v9)(e=>e.user.data),c={"USD.Exchange.nextValue":(null==l?void 0:l.settings.view_in_fiat_object.currency)||"USD"};if(!(t&&""!==t.trim()))return(0,r.jsx)("div",{className:"bg-slate-800 text-white p-6 rounded-lg max-w-2xl mx-auto ".concat(a),children:(0,r.jsxs)("div",{className:"text-center py-8",children:[(0,r.jsx)("h3",{className:"text-gray-300 text-lg font-medium mb-2",children:"No Content Available"}),(0,r.jsx)("p",{className:"text-gray-500 text-sm",children:"Content is currently unavailable or loading."})]})});let d=t;try{d=(0,o.ht)(t,c,s)}catch(e){d=t}let u=d&&""!==d.trim()?d:t,x=u.replace(/USD NaN\s*/g,"USD [Amount] "),h=u.includes("NaN");return(0,r.jsxs)("div",{className:"bg-slate-800 text-white p-6 rounded-lg max-w-2xl mx-auto ".concat(a),children:[h&&(0,r.jsx)("div",{className:"bg-yellow-600 bg-opacity-20 border border-yellow-500 rounded p-3 mb-4",children:(0,r.jsx)("p",{className:"text-yellow-200 text-sm",children:"⚠️ Some currency values could not be calculated. Please check your currency settings."})}),(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:n.Z.sanitize(x)},className:"html-content-wrapper"}),(0,r.jsx)("style",{children:'\n        .html-content-wrapper p {\n          margin-bottom: 1rem;\n          line-height: 1.6;\n          color: white;\n        }\n        \n        .html-content-wrapper table {\n          width: 100%;\n          border-collapse: collapse;\n          margin: 1.5rem 0;\n          background-color: transparent;\n        }\n        \n        .html-content-wrapper table td {\n          padding: 0.75rem;\n          border: 1px solid #e67e23;\n          color: white !important;\n          font-weight: 500;\n        }\n        \n        .html-content-wrapper table tr:first-child td {\n          background-color: rgba(230, 126, 35, 0.1) !important;\n          font-weight: 600;\n          font-size: 1.1rem;\n        }\n        \n        .html-content-wrapper strong {\n          color: #e67e23 !important;\n        }\n        \n        .html-content-wrapper br {\n          margin-bottom: 0.5rem;\n        }\n\n        /* Override any default text colors */\n        .html-content-wrapper * {\n          color: inherit;\n        }\n\n        .html-content-wrapper span[style*="color"] {\n          /* Preserve inline color styles from CMS */\n        }\n      '})]})}},65606:function(e,t,a){a.r(t);var r=a(57437);a(2265);var n=a(60033),i=a(31691),o=a(82156),s=a(1899),l=a(46387),c=a(44811),d=a(38954);t.default=e=>{let{action:t}=e,a=(0,i.Z)(),{t:u}=(0,n.i)(),x=(0,o.Z)(a.breakpoints.down("md"));return(0,r.jsx)(s.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,r.jsxs)(s.Z,{sx:{display:"flex",alignItems:"center",flexDirection:"column",maxWidth:"400px",
1width:"100%",padding:2},children:[(0,r.jsx)(s.Z,{sx:{width:"100%",maxWidth:200,mb:2},children:(0,r.jsx)(d.Z,{src:"".concat("https://img.xyes.com/","assets/not-found.png"),width:x?"100%":"200px",height:169})}),(0,r.jsx)(l.Z,{variant:"paragraph",sx:{textAlign:"center",mb:2},children:u("accountManagement.verification.kycLevelNotMet")}),(0,r.jsx)(c.Z,{sx:{maxWidth:"300px"},fullWidth:!0,color:"inherit",size:"large",type:"submit",variant:"header",onClick:t,children:u("accountManagement.verification.goToVerification")})]})})}},54670:function(e,t,a){a.d(t,{Z:function(){return m}});var r=a(57437),n=a(2265),i=a(60033),o=a(68575),s=a(55447),l=a(43426),c=a(31691),d=a(82156),u=a(44811),x=a(38954),h=a(59062),p=a(67972);function m(e){var t,a,m;let{styleButton:g}=e,f="".concat("https://api.xyes.com/api/v1"+s.Hv.configs.languages),{data:b}=(0,l.d)({fetchURL:f},!0),y=(0,h.K$)(),{getLang:v}=(0,i.i)(),j=(0,o.v9)(e=>e.user.data),w=v()||(null==j?void 0:j.settings.language),[Z,C]=(0,n.useState)(w),[k,S]=(0,n.useState)(!1),I=(0,c.Z)(),M=(0,d.Z)(I.breakpoints.up("lg")),D=(0,d.Z)("(min-width:640px)"),W="mini"===y.themeLayout,P=()=>S(!1),R=null==b?void 0:null===(t=b.find(e=>e.abbreviatedCode===w))||void 0===t?void 0:t.flag;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(u.Z,{onClick:()=>S(!0),sx:{...g,mt:"vertical"!==y.themeLayout?.5:0},variant:"outlined",children:[Z&&(0,r.jsx)(x.Z,{alt:"language",width:25,src:R||(null==b?void 0:null===(a=b[0])||void 0===a?void 0:a.flag)}),"80px"!=(M?W?"80px":"280px":D?"80px":"0px")&&(0,r.jsx)(r.Fragment,{children:Z&&(null==b?void 0:null===(m=b.find(e=>e.abbreviatedCode===w))||void 0===m?void 0:m.nameOfTheLanguage)||"Select Language"})]}),(0,r.jsx)(p.A,{title:"",showModal:k,handleModal:P,type:"updateLanguage",modalProps:{setLanguage:C,handleClose:P},hasIcon:!0})]})}},81610:function(e,t,a){a.r(t),a.d(t,{default:function(){return D}});var r=a(57437),n=a(2265),i=a(60033),o=a(68575),s=a(20418),l=a(43161),c=a(91055),d=a(55447),u=a(43426),x=a(66274),h=a(36067),p=a(1899),m=a(10207),g=a(73904),f=a(31691),b=a(82156),y=a(71495),v=a(89414),j=a(44811),w=a(46387),Z=a(2230),C=a(59062);let k={display:"flex",flexDirection:"column",alignItems:"start",justifyContent:"start",gap:2},S={display:"flex",alignItems:"center",justifyContent:"start",gap:1};function I(e){let{children:t,value:a,index:n,...i}=e;return(0,r.jsx)("div",{role:"tabpanel",hidden:a!==n,id:"simple-tabpanel-".concat(n),"aria-labelledby":"simple-tab-".concat(n),...i,children:a===n&&(0,r.jsx)(p.Z,{sx:{py:2},children:t})})}function M(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}function D(e){let{setLanguage:t,handleClose:a,defaultTab:D=0}=e,{initialize:W,authenticated:P}=(0,s.E)(),{showMessage:R}=(0,h.useSnackbar)(),{getLang:_,t:F}=(0,i.i)(),T=(0,f.Z)(),A=(0,b.Z)(T.breakpoints.down("sm")),N=(0,o.v9)(e=>e.user.data),E=_(),[O,B]=n.useState(P?D:0),L=(0,x.tv)(),z=(0,x.jD)(),U=(0,x.lr)(),{getLink:V}=(0,l.m)(),{changeLanguage:H}=(0,i.i)(),q="".concat("https://api.xyes.com/api/v1"+d.Hv.configs.languages),{data:Y}=(0,u.d)({fetchURL:q},!0),G=(0,o.v9)(e=>e.userCurrencies),{onUpdate:$}=(0,C.K$)(),K=async e=>{"function"==typeof t&&t(e),document.documentElement.lang=e,H(e),$("language",e);let r=z.split("/"),n=U.toString();if((0,c.L_)(r[1])?L.replace(V("".concat(r.slice(2).join("/"),"?").concat(n))):L.replace(V("".concat(r.slice(1).join("/"),"?").concat(n))),P)try{let t=new URL("".concat("https://api.xyes.com/api/v1").concat(d.Hv.configs.updateProfileSettings));await d.ZP.put(t.href,{settings:{language:e}})}catch(e){}finally{W()}a()},X=async e=>{let{show:t,currencySelected:r,isNone:n=!1}=e,i=new URL("".concat("https://api.xyes.com/api/v1"+d.Hv.configs.updateProfileSettings)),o=!1===n?{settings:{view_in_fiat:null==r?void 0:r.symbol,to_show_in_fiat:t}}:{settings:{to_show_in_fiat:t}};try{await d.ZP.put(i.href,o)}catch(e){R(e.message||F("errors.selectFiatCurrencyFunctionality"),"error")}finally{W(),a()}};return(0,r.jsx)(p.Z,{maxWidth:"sm",sx:{height:"70vh",width:A?"300px":"400px"},children:(0,r.jsxs)(p.Z,{children:[(0,r.jsx)(p.Z,{sx:{borderBottom:1,borderColor:"divider"},children:(0,r.jsx)(y.Z,{position:"static",children:(0,r.jsxs)(g.Z,{value:O,onChange:(e,t)=>
1{B(t)},"aria-label":"Tabs-Fiat-and-Language",variant:"fullWidth",children:[(0,r.jsx)(m.Z,{label:F("accountManagement.settings.chooseLanguage"),...M(0)}),P&&(0,r.jsx)(m.Z,{label:F("navigation.header.settings.displayInFiat"),...M(1)})]})})}),(0,r.jsx)(I,{value:O,index:0,children:(0,r.jsx)(v.ZP,{container:!0,spacing:2,justifyContent:"center",children:Y&&Y.map((e,t)=>(0,r.jsx)(v.ZP,{item:!0,xs:6,sm:6,md:6,children:(0,r.jsxs)(j.Z,{variant:"headerSecondary",onClick:()=>K(e.abbreviatedCode),sx:{...S,background:e.abbreviatedCode===E?"#1F272D":"#23282f",color:e.abbreviatedCode===E?"#F5620A":"inherit",border:e.abbreviatedCode===E?"1px solid #F5620A":"none","&:hover":{background:"#2a3139"}},fullWidth:!0,children:[(0,r.jsx)(Z.Z,{alt:"currency",width:25,src:e.flag}),e.nameOfTheLanguage]})},t))})}),P&&(0,r.jsx)(I,{value:O,index:1,children:(0,r.jsxs)(p.Z,{sx:k,borderRadius:2,children:[(0,r.jsx)(w.Z,{mt:1,children:F("navigation.header.settings.note")}),(0,r.jsx)(v.ZP,{container:!0,spacing:2,justifyContent:"center",children:G&&G.fiats.map((e,t)=>(0,r.jsx)(v.ZP,{item:!0,xs:6,sm:6,md:6,children:(0,r.jsxs)(j.Z,{sx:{...S,background:e.symbol===(null==N?void 0:N.settings.view_in_fiat_object.currency)&&(null==N?void 0:N.settings.view_in_fiat_object.to_show)===!0?"#1f272d":"#23282f",color:e.symbol===(null==N?void 0:N.settings.view_in_fiat_object.currency)&&(null==N?void 0:N.settings.view_in_fiat_object.to_show)===!0?"#F5620A":"inherit",border:e.symbol===(null==N?void 0:N.settings.view_in_fiat_object.currency)&&(null==N?void 0:N.settings.view_in_fiat_object.to_show)===!0?"1px solid #F5620A":"none","&:hover":{background:"#2a3139"}},fullWidth:!0,onClick:()=>X({show:!0,currencySelected:e}),children:[(0,r.jsx)(Z.Z,{alt:"currency",width:25,src:e.logoUrl}),e.symbol]})},t))})]})})]})})}},5192:function(e,t,a){a.r(t);var r=a(57437),n=a(2265),i=a(60033),o=a(84534),s=a(31691),l=a(1899),c=a(46387),d=a(82156),u=a(19643),x=a(44811),h=a(76975),p=a(38954);let m=e=>{let{icon:t,description:a}=e,n=(0,s.Z)();return(0,r.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"start",background:n.palette.grey[700],borderRadius:1,marginY:4,padding:4},children:[(0,r.jsx)(h.Z,{icon:t,width:28,height:28,style:{marginRight:"8px",color:n.palette.common.white}}),(0,r.jsx)(c.Z,{children:a})]})};t.default=e=>{let{open:t,onClose:a,selection:g}=e,{t:f}=(0,i.i)(),b=(0,s.Z)(),{browser:y,os:v}=(0,o.i)(),j=(0,d.Z)(b.breakpoints.down("md")),[w,Z]=(0,n.useState)(j?"mobile":"desktop"),C=e=>{Z(e)},k=()=>{switch(y){case"chrome":switch(v){case"android":return"https://play.google.com/store/apps/details?id=io.metamask";case"ios":return"https://apps.apple.com/us/app/metamask-crypto-wallet/id1438144202";default:return"https://chromewebstore.google.com/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn"}case"firefox":return"https://addons.mozilla.org/en-US/firefox/addon/ether-metamask/";case"safari":return"ios"===v?"https://apps.apple.com/us/app/metamask-crypto-wallet/id1438144202":"https://metamask.io/";default:return"https://metamask.io/"}};return(0,r.jsx)(u.Z,{sx:{height:"100%",p:6},children:(0,r.jsxs)(l.Z,{sx:{mt:6,mb:4},children:[(0,r.jsxs)(u.Z,{direction:"row",spacing:2,alignItems:"center",justifyContent:"center",sx:{mb:3},children:[(0,r.jsx)(p.Z,{src:"".concat("https://img.xyes.com/","assets/icons/platforms/ic_metamask.svg"),alt:"MetaMask",width:60,height:60}),(0,r.jsx)(c.Z,{variant:"h2",component:"h2",sx:{fontWeight:"bold",letterSpacing:1},children:"METAMASK"})]}),(0,r.jsx)(l.Z,{width:"100%",sx:{display:"flex",justifyContent:"center",gap:4,my:5},children:(0,r.jsxs)(u.Z,{direction:"row",spacing:2,sx:{width:"100%"},children:[(0,r.jsx)(x.Z,{variant:"desktop"===w?"contained":"outlined",fullWidth:!0,onClick:()=>C("desktop"),sx:{color:"desktop"===w?"white":b.palette.grey[700],bgcolor:"desktop"===w?"#f5841f":"transparent","&:hover":{bgcolor:"desktop"===w?"#e67e17":b.palette.grey[300]}},children:f("auth.metamaskModal.desktop")}),(0,r.jsx)(x.Z,{variant:"mobile"===w?"contained":"outlined",fullWidth:!0,onClick:()=>C("mobile"),sx:{color:"mobile"===w?"white":b.palette.grey[700],bgcolor:"mobile"===w?"#f5841f":"transparent","&:hover":{bgcolor:"mobile"===w?"#e67e17":b.palette.grey[300]}},children:f("auth.metamaskModal.mobile")})]})}),"desktop"===w&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m,{icon:"solar:heart-bold",description:f("auth.metamaskModal.desktopBenefit1")}),(0,r.jsx)(m,{icon:"solar:wallet-bold",description:f("auth.metamaskModal.mobileBenefit2")}),(0,r.jsx)(m,{icon:"solar:lock-bold",description:f("auth.metamaskModal.mobileBenefit3")}),(0,r.jsxs)(x.Z,{variant:"contained",fullWidth:!0,sx:{bgcolor:"#f5841f",color:"white",py:1.5,fontSize:"16px",fontWeight:"bold","&:hover":{bgcolor:"#e67e17"},mb:3},onClick:()=>{window.open(k(),"_blank")},children:[(0,r.jsx)(h.Z,{icon:"solar:download-bold",width:24,height:24,style:{marginRight:"8px",color:b.palette.common.white}})," ",f("auth.metamaskModal.installMetamask")]})]}),"mobile"===w&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m,{icon:"solar:smartphone-bold",description:f("auth.metamaskModal.mobileBenefit1")}),(0,r.jsx)(m,{icon:"solar:wallet-bold",description:f("auth.metamaskModal.mobileBenefit2")}),(0,r.jsx)(m,{icon:"solar:server-square-cloud-bold",description:f("auth.metamaskModal.mobileBenefit3")}),(0,r.jsxs)(x.Z,{variant:"contained",fullWidth:!0,sx:{bgcolor:"#f5841f",color:"white",py:1.5,fontSize:"16px",fontWeight:"bold","&:hover":{bgcolor:"#e67e17"},mb:3},onClick:()=>{window.open(k(),"_blank")},children:[(0,r.jsx)(h.Z,{icon:"solar:download-bold",width:24,height:24,style:{marginRight:"8px",color:b.palette.common.white}})," ",f("auth.metamaskModal.installMetamask")]})]})]})})}},79371:function(e,t,a){a.r(t);var r=a(57437);a(2265);var n=a(60033),i=a(31691),o=a(82156),s=a(1899),l=a(46387),c=a(44811),d=a(38954);t.default=e=>{let{gameName:t,gameId:a,action:u}=e,x=(0,i.Z)(),{t:h}=(0,n.i)(),p=(0,o.Z)(x.breakpoints.down("md"));return(0,r.jsx)(s.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,r.jsxs)(s.Z,{sx:{display:"flex",alignItems:"center",flexDirection:"column",maxWidth:"400px",
1width:"100%",padding:2},children:[(0,r.jsx)(s.Z,{sx:{width:"100%",maxWidth:200,mb:2},children:(0,r.jsx)(d.Z,{src:"".concat("https://img.xyes.com/","assets/not-found.png"),width:p?"100%":"200px",height:169})}),(0,r.jsx)(l.Z,{variant:"paragraph",sx:{textAlign:"center",mb:2},children:h("availableRegions.gameNotAccessibleInRegion",{gameName:t})}),(0,r.jsx)(c.Z,{sx:{maxWidth:"300px"},fullWidth:!0,color:"inherit",size:"large",type:"submit",variant:"header",onClick:u,children:h("games.backToLobby")})]})})}},45396:function(e,t,a){a.r(t);var r=a(57437);a(2265);var n=a(33145),i=a(66274),o=a(43161),s=a(1899),l=a(19902),c=a(46387),d=a(44811);t.default=e=>{let{handleModal:t}=e,a=(0,i.tv)(),{getLink:u}=(0,o.m)();return(0,r.jsx)(s.Z,{sx:{width:"100%",height:"100%",maxWidth:"800px",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsxs)(l.Z,{elevation:0,sx:{position:"relative",width:"100%",borderRadius:2,overflow:"hidden",bgcolor:"rgba(0, 0, 0, 0.9)",backdropFilter:"blur(8px)"},children:[(0,r.jsx)(s.Z,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,opacity:.5},children:(0,r.jsx)(n.default,{alt:"background",layout:"fill",objectFit:"cover",src:"".concat("https://img.xyes.com/","assets/background/modal-verify.webp")})}),(0,r.jsxs)(s.Z,{sx:{position:"relative",display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:"center",gap:4,p:4},children:[(0,r.jsx)(s.Z,{sx:{flex:"1 1 50%",display:"flex",justifyContent:"center",position:"relative",minHeight:{xs:"200px",md:"200px"},width:{xs:"100%",md:"275px"}},children:(0,r.jsx)(s.Z,{sx:{position:"relative",width:"275px",height:"200px",maxWidth:"100%"},children:(0,r.jsx)(n.default,{alt:"verificationInfo",src:"".concat("https://img.xyes.com/","assets/images/account-management/verification/verification-info-01.png"),layout:"fill",objectFit:"contain",priority:!0,quality:100})})}),(0,r.jsxs)(s.Z,{sx:{flex:"1 1 50%",display:"flex",flexDirection:"column",gap:1,textAlign:{xs:"center",md:"left"}},children:[(0,r.jsx)(s.Z,{sx:{p:2,borderRadius:2,backgroundColor:"rgba(255, 255, 255, 0.1)",backdropFilter:"blur(10px)",border:"1px solid rgba(255, 255, 255, 0.1)"},children:(0,r.jsx)(c.Z,{variant:"paragraph",sx:{color:"white"},children:"To keep your account secure, please complete the KYC verification process. Verification is required to continue accessing all features."})}),(0,r.jsx)(d.Z,{fullWidth:!0,variant:"header",onClick:()=>{t(!1),a.push(u("/account-management/verification/"))},sx:{mt:2,py:1.5},children:"Start Verification"})]})]})]})})}},76134:function(e,t,a){a.r(t);var r=a(57437),n=a(33145),i=a(820),o=a(43949),s=a(57099),l=a(43161),c=a(2265),d=a(31691),u=a(1899),x=a(46387),h=a(97312),p=a(85860),m=a(92566),g=a(44811),f=a(76975);t.default=e=>{let{showModal:t,handleModal:a,authenticated:b,pathname:y,router:v,searchParams:j,isMobile:w}=e,{t:Z}=(0,o.$G)(),{getLink:C}=(0,l.m)(),k=(0,d.Z)(),[S,I]=(0,c.useState)(!1),M="https://t.me/XYes_Star",D=(0,c.useCallback)(()=>{if(S){let e=new Date(new Date().getTime()+432e5);new i.Z().set("hideAdModalUntil",e.toISOString(),{path:"/"})}},[S]);return(0,c.useEffect)(()=>{t||D()},[t,D]),(0,r.jsxs)(u.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%"},children:[(0,r.jsx)(n.default,{className:"promotion-ad-background",src:"".concat("https://img.xyes.com/","/assets/images/home/promotionalAdModal/special_telegram_bonus.png"),alt:"bonus icon",fill:!0,style:{objectFit:"contain",transformOrigin:"center",zIndex:0}}),(0,r.jsxs)(u.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"space-between",height:w?"320px":"450px",width:w?"320px":"450px",transform:"translateY(-55px)",zIndex:1},children:[(0,r.jsx)(u.Z,{sx:{display:"flex",width:w?"170px":"250px",height:w?"40px":"50px",px:1,textAlign:"center",justifyContent:"center",alignItems:"center",transform:w?"translateY(-2.5px)":"translateY(0px)"},children:(0,r.jsx)(x.Z,{sx:{fontSize:w?"12px !important":"16px !important",fontWeight:"bold"},children:Z("verifyContact.modal.contactButton")})}),(0,r.jsxs)(u.Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"center",width:w?"180px":"250px",height:w?"60px":"70px",transform:w?"translateY(-10px)":"translateY(-25px)"},children:[(0,r.jsx)(x.Z,{sx:{color:k.palette.grey[300],width:w?"180px":"250px",fontSize:w?"10px !important":"15px !important",fontWeight:"bold",textAlign:"center"},children:Z("bonus.promotionalAdModal.specialTelegramBonus").toUpperCase()}),(0,r.jsx)(h.Z,{onClick:()=>(0,s.nG)(M),type:"submit",sx:{cursor:"pointer"},children:(0,r.jsx)(u.Z,{sx:{display:"flex",flexDirection:"row",alignItems:"center",width:w?"140px":"190px"},children:(0,r.jsxs)(x.Z,{width:w?"150px":"200px",sx:{color:k.palette.grey[300],fontSize:w?"8px !important":"13px !important",fontWeight:"bold",textAlign:"center",wordBreak:"break-word",overflowWrap:"break-word"},children:["".concat(Z("bonus.promotionalAdModal.clickForMoreDetails")),(0,r.jsx)(f.Z,{icon:"solar:square-share-line-broken",sx:{height:w?12:14,width:w?12:14,color:k.palette.primary.main,ml:1}})]})})})]}),(0,r.jsxs)(u.Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",mb:w?1:3},children:[(0,r.jsx)(p.Z,{control:(0,r.jsx)(m.Z,{name:"disableModal",checked:S,onChange:()=>{I(e=>!e)},color:"primary"}),label:Z("bonus.promotionalAdModal.doNotShowForTheNext12Hours"),sx:{height:"28px"}}),(0,r.jsx)(g.Z,{type:"submit",onClick:()=>(0,s.nG)(M),sx:{mb:w?"4px":0,backgroundColor:k.palette.primary.main,"&:hover":{backgroundColor:k.palette.primary.main}},children:Z("bonus.promotionalAdModal.claim")})]})]})]})}},90591:function(e,t,a){a.r(t);var r=a(57437),n=a(34422),i=a(60033),o=a(83464),s=a(43577),l=a(29501),c=a(2265),d=a(55447),u=a(76975),x=a(20418),h=a(73842),p=a(66274),m=a(36067),g=a(6809),f=a(1899),b=a(19643),y=a(46387),v=a(23996),j=a(95576),w=a(17162),Z=a(73126),C=a(98107),k=a(11417);let S={password:"",repeatPassword:""};t.default=()=>{let e=(0,C.k)(),t=(0,C.k)(),a=(0,C.k)(!1),{t:I}=(0,i.i)(),M=(0,p.lr)().get("token")||"",{authenticated:D}
1=(0,x.E)(),W=(0,p.jD)(),[P,R]=(0,c.useState)(""),{showMessage:_}=(0,m.useSnackbar)();(0,c.useEffect)(()=>{R(D?W:"?modal=auth&tab=1")},[D,W]);let F=n.Ry().shape({password:n.Z_().matches(/.*[A-Za-z].*/,I("validators.atLeastOneCharacter")).matches(/.*\d.*/,I("auth.validation.oneDigit")).min(8,I("auth.validation.minEightChar")).required(I("auth.validation.passwordRequire")),repeatPassword:n.Z_().oneOf([n.iH("password"),void 0],I("auth.validation.passwordMustMatch")).required(I("auth.validation.confirmPasswordRequire"))}),T=(0,l.cI)({resolver:(0,h.X)(F),defaultValues:S,shouldUnregister:!0}),{handleSubmit:A,formState:{isSubmitting:N}}=T,E=A(async e=>{let t={password:e.password,repeatPassword:e.repeatPassword};try{let e=await o.default.post("https://api.xyes.com/api/v1"+d.Hv.auth.resetPassword,t,{headers:{Authorization:"Bearer ".concat(M)}});200===e.status&&a.onTrue()}catch(e){var r,n;_(e instanceof s.d7?(null===(n=e.response)||void 0===n?void 0:null===(r=n.data)||void 0===r?void 0:r.message)||e.message:e.message||I("errors.anErrorOccurred"),"error")}});return(0,r.jsx)(f.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:(0,r.jsxs)(f.Z,{children:[!a.value&&(0,r.jsx)(k.Z,{methods:T,onSubmit:E,children:(0,r.jsxs)(b.Z,{direction:"column",gap:2,children:[(0,r.jsx)(y.Z,{color:"grey.400",fontWeight:700,variant:"subtitle1",children:I("auth.reset.enterNewPassword")}),(0,r.jsx)(k.a,{autoComplete:"off",disabled:N||a.value,name:"password",label:(0,r.jsxs)(b.Z,{direction:"row",justifyContent:"left",children:[(0,r.jsx)(u.Z,{icon:"solar:lock-password-linear",color:"primary.light"}),"\xa0",(0,r.jsxs)("span",{children:[" ",I("register.password")," "]})]}),type:e.value?"text":"password",InputProps:{endAdornment:(0,r.jsx)(v.Z,{position:"end",children:(0,r.jsx)(j.Z,{onClick:e.onToggle,edge:"end",children:(0,r.jsx)(u.Z,{icon:e.value?"solar:eye-bold":"solar:eye-closed-bold"})})})}}),(0,r.jsx)(k.a,{autoComplete:"off",disabled:N||a.value,name:"repeatPassword",label:(0,r.jsxs)(b.Z,{direction:"row",justifyContent:"left",children:[(0,r.jsx)(u.Z,{icon:"solar:lock-password-linear",color:"primary.light"}),"\xa0",(0,r.jsxs)("span",{children:[" ",I("register.confirmPassword")," "]})]}),type:t.value?"text":"password",InputProps:{endAdornment:(0,r.jsx)(v.Z,{position:"end",children:(0,r.jsx)(j.Z,{onClick:t.onToggle,edge:"end",children:(0,r.jsx)(u.Z,{icon:t.value?"solar:eye-bold":"solar:eye-closed-bold"})})})}}),(0,r.jsx)(g.Z,{loading:N,size:"large",sx:{alignSelf:"center",width:"100%"},type:"submit",variant:"header",children:I("auth.reset.confirm")})]})}),(0,r.jsxs)(w.Z,{in:a.value,children:[(0,r.jsx)(Z.Z,{icon:(0,r.jsx)(u.Z,{icon:"simple-line-icons:check",sx:{color:"success.main",fontSize:"inherit"}}),severity:"success",sx:{alignItems:"center",backgroundColor:"grey.900",border:2,borderColor:"success.main",borderRadius:2,color:"white",fontSize:16,fontWeight:500,justifyContent:"center",padding:e=>"".concat(e.spacing(2)," ").concat(e.spacing(3)),mt:3},children:(0,r.jsx)(y.Z,{variant:"inherit",children:I("auth.reset.changeSuccess")})}),(0,r.jsxs)(f.Z,{sx:{mt:3,gap:2,display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,r.jsx)(y.Z,{variant:"body2",sx:{color:"text.secondary"},children:I("auth.reset.successMessage")}),(0,r.jsx)(g.Z,{variant:"header",size:"large",sx:{color:"white",width:"100%"},onClick:()=>{window.location.href=P},children:I("auth.reset.backToSignIn")})]})]})]})})}},25042:function(e,t,a){a.r(t);var r=a(57437),n=a(34422),i=a(27648),o=a(2265),s=a(60033),l=a(76975),c=a(73842),d=a(29501),u=a(56982),x=a(79953),h=a(25805),p=a(6809),m=a(16210),g=a(73904),f=a(10207),b=a(31691),y=a(19643),v=a(46387),j=a(1899),w=a(97312),Z=a(11417);let C={emailOrPhone:""},k=(0,m.ZP)(g.Z)(e=>{let{theme:t}=e;return{minHeight:"48px","& .MuiTabs-indicator":{display:"none"}}}),S=(0,m.ZP)(f.Z)(e=>{let{theme:t}=e;return{flex:1,minHeight:"36px",color:t.palette.common.white,backgroundColor:"transparent",border:"1px solid",borderColor:t.palette.grey[600],margin:"0px !important",padding:"8px 16px","&.Mui-selected":{color:t.palette.common.white,backgroundColor:t.palette.secondary.main},"&:not(.Mui-selected)":{backgroundColor:"transparent"},"&:first-of-type":{borderRadius:"8px 0 0 8px"},"&:last-of-type":{borderRadius:"0 8px 8px 0"}}});t.default=e=>{let{setEmailOrPhone:t,setIsEmailOrPhone:a}=e,[m,g]=(0,o.useState)(!1),[f,I]=(0,o.useState)(""),{t:M}=(0,s.i)(),D=(0,b.Z)(),[W,P]=(0,o.useState)("email"),[R,_]=(0,o.useState)(!1),[F,T]=(0,o.useState)(!1),[A,N]=(0,o.useState)(""),{handleSubmit:E}=(0,x.H)({setRecoveryContact:t,setIsPhoneNumber:a}),O=D.palette.primary.light,B=n.Ry().shape({emailOrPhone:n.Z_().required(M("auth.validation.emailOrPhoneRequire")).test("emailOrPhone",M("auth.validation.emailOrPhoneInvalid"),e=>n.Z_().email().isValidSync(e)||(0,u.Cs)(e))}),L=(0,d.cI)({resolver:(0,c.X)(B),defaultValues:C,shouldUnregister:!0}),z=e=>{let r=e.replace(/^\+\s?/,"");/^\d[\d\s]*$/.test(r.trim())?(I("+ ".concat(r.trim())),g(!0),a(!0)):(I(e),g(!1),a(!1)),t(e)},{formState:{isSubmitting:U}}=L,V=async(e,t)=>{try{await E({contact:e.emailOrPhone,isPhone:m,captcha:t})}catch(e){}},H=async e=>{let{emailOrPhone:t}=e;if(!A){T(!0);return}await V({emailOrPhone:t},A)},q=async e=>{N(e),T(!1),_(!0);let t=L.getValues();await V(t,e)};return(0,r.jsx)(Z.Z,{methods:L,onSubmit:L.handleSubmit(H),children:(0,r.jsxs)(y.Z,{direction:"column",gap:1,children:[(0,r.jsx)(v.Z,{variant:"body2",sx:{mb:3,color:"text.secondary"},children:M("auth.reset.description")}),(0,r.jsxs)(k,{value:W,onChange:(e,t)=>
1{P(t),L.resetField("emailOrPhone"),L.clearErrors("emailOrPhone"),g("phone"===t),a("phone"===t),T(!1),_(!1),N("")},variant:"fullWidth",sx:{mb:1},children:[(0,r.jsx)(S,{label:(0,r.jsxs)(j.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,r.jsx)(l.Z,{icon:"system-uicons:mail"}),M("register.email")]}),value:"email"}),(0,r.jsx)(S,{label:(0,r.jsxs)(j.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,r.jsx)(l.Z,{icon:"ph:phone-call-light"}),M("login.phoneNumber")]}),value:"phone"})]}),(0,r.jsx)(d.Qr,{name:"emailOrPhone",control:L.control,render:e=>{let{field:t,fieldState:a}=e;return(0,r.jsx)(j.Z,{sx:{mb:3},children:"phone"===W?(0,r.jsx)(u.Kr,{...t,value:f,defaultCountry:"CR",fullWidth:!0,label:(0,r.jsxs)(j.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,r.jsx)(l.Z,{icon:"ph:phone-call-light",color:O}),"\xa0",(0,r.jsx)("span",{children:M("login.phoneNumber")})]}),helperText:a.invalid?"Invalid phone number":"",error:a.invalid,onChange:e=>{t.onChange(e),z(e)},sx:{"& .MuiOutlinedInput-root":{color:"common.white","& fieldset":{borderColor:"grey.600"}},"& .MuiInputLabel-root":{color:"grey.400"}}}):(0,r.jsx)(Z.a,{...t,fullWidth:!0,label:(0,r.jsxs)(j.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,r.jsx)(l.Z,{icon:"system-uicons:mail",color:O}),"\xa0",(0,r.jsx)("span",{children:M("register.email")})]}),helperText:a.invalid?"Invalid email address":"",error:a.invalid,sx:{"& .MuiOutlinedInput-root":{color:"common.white","& fieldset":{borderColor:"grey.600"}},"& .MuiInputLabel-root":{color:"grey.400"}}})})}}),F&&(0,r.jsx)(j.Z,{sx:{mb:3},children:(0,r.jsx)(h.Z,{onVerify:q,onError:e=>{},title:M("register.verifyHuman"),buttonText:M("register.verify")})}),(0,r.jsx)(p.Z,{loading:U,size:"large",type:"submit",variant:"header",fullWidth:!0,disabled:F&&!R,sx:{cursor:F&&!R?"not-allowed":"pointer",opacity:F&&!R?.7:1,"&.Mui-disabled":{backgroundColor:"rgba(255, 255, 255, 0.12)",color:"rgba(255, 255, 255, 0.3)"}},children:M("auth.reset.sendMessage")}),(0,r.jsx)(j.Z,{sx:{mt:3,textAlign:"center"},children:(0,r.jsxs)(v.Z,{variant:"body2",sx:{color:"text.secondary"},children:[M("auth.reset.haveAccount")," ",(0,r.jsx)(w.Z,{component:i.default,href:"?modal=auth&tab=1",sx:{color:"primary.main",textDecoration:"none","&:hover":{textDecoration:"underline"}},children:M("auth.reset.login")})]})})]})})}},27667:function(e,t,a){a.r(t);var r=a(57437),n=a(27648),i=a(60033),o=a(2265),s=a(24298),l=a(62891),c=a(28761),d=a(66274),u=a(19643),x=a(46387),h=a(97312);let p=(0,s.Z)(new Date,5),m=e=>"".concat(Math.floor(e/60).toString().padStart(2,"0"),":").concat((e%60).toString().padStart(2,"0"));t.default=()=>{let e=(0,d.tv)(),t=(0,d.lr)(),{t:a}=(0,i.i)(),[s,g]=(0,o.useState)((0,l.Z)(p,new Date)),f=t.get("phone-number")||"";(0,o.useEffect)(()=>{let e=setInterval(()=>{let t=new Date,a=(0,l.Z)(p,t);a<=0&&clearInterval(e),g(a)},1e3);return()=>clearInterval(e)},[]);let b=async()=>{e.replace("?modal=reset-password&step=confirm")};return(0,r.jsxs)(u.Z,{gap:2,children:[(0,r.jsx)(x.Z,{color:"grey.400",fontWeight:700,variant:"subtitle1",children:a("auth.reset.verification")}),(0,r.jsx)(x.Z,{color:"grey.300",fontWeight:700,variant:"subtitle1",children:a("auth.reset.enterCode",{phoneNumber:f})}),(0,r.jsx)(h.Z,{component:n.default,href:"",sx:{color:"#00C6FF",fontWeight:500},variant:"body2",children:a("auth.reset.wrongNumber")}),(0,r.jsx)(c.Z,{defaultButtonText:a("auth.reset.verify"),footer:(0,r.jsxs)(u.Z,{direction:"row",justifyContent:"space-between",children:[(0,r.jsx)(h.Z,{component:n.default,href:"",sx:{color:"#00C6FF",fontWeight:500},variant:"body2",children:a("auth.reset.resendSMS")}),(0,r.jsx)(x.Z,{color:"grey.300",fontWeight:700,variant:"subtitle1",children:m(s)})]}),loadingButtonText:a("auth.verifying"),handleSubmit:b})]})}},64802:function(e,t,a){a.r(t);var r=a(57437),n=a(60033),i=a(83464),o=a(43577),s=a(2265),l=a(55447),c=a(66274),d=a(28761),u=a(79953),x=a(36067),h=a(6809),p=a(1899),m=a(46387),g=a(98107);t.default=e=>{let{emailOrPhone:t,isPhone:a}=e,[f,b]=(0,s.useState)(()=>{let e=localStorage.getItem("recoveryContact"),a=sessionStorage.getItem("recoveryContact");return t||a||e||""}
1),[y,v]=(0,s.useState)(a),j=(0,g.k)(!1),{t:w}=(0,n.i)(),{showMessage:Z}=(0,x.useSnackbar)(),C=(0,c.tv)(),[k,S]=(0,s.useState)(()=>"true"===localStorage.getItem("isButtonDisabled")),[I,M]=(0,s.useState)(()=>{let e=Date.now(),t=localStorage.getItem("expiryTime");return t&&e<Number.parseInt(t,10)?Math.ceil((Number.parseInt(t,10)-e)/1e3):0});(0,s.useEffect)(()=>{let e=localStorage.getItem("expiryTime");if(e){let t=Date.now(),a=Number.parseInt(e,10);t<a?(M(Math.ceil((a-t)/1e3)),S(!0)):(localStorage.removeItem("expiryTime"),localStorage.removeItem("countdown"),localStorage.setItem("isButtonDisabled","false"),S(!1))}},[]),(0,s.useEffect)(()=>{t&&(b(t),v(a),localStorage.setItem("recoveryContact",t),sessionStorage.setItem("recoveryContact",t))},[t,a]),(0,s.useEffect)(()=>{localStorage.setItem("recoveryContact",f)},[f]),(0,s.useEffect)(()=>{f&&(localStorage.setItem("recoveryContact",f),sessionStorage.setItem("recoveryContact",f))},[f]),(0,s.useEffect)(()=>{if(I>0){let e=setInterval(()=>{M(t=>{if(t<=1)return clearInterval(e),S(!1),localStorage.setItem("isButtonDisabled","false"),localStorage.removeItem("expiryTime"),localStorage.removeItem("countdown"),0;let a=t-1;return localStorage.setItem("countdown",a.toString()),a})},1e3);return()=>clearInterval(e)}},[I]);let{handleSubmit:D}=(0,u.H)({setRecoveryContact:b,setIsPhoneNumber:v}),W=async e=>{let t=y?"phone":"email",a={loginCode:e.join(""),[t]:f};try{let e=await i.default.post("https://api.xyes.com/api/v1"+l.Hv.auth.verifyCode,a);200===e.status&&(j.onTrue(),setTimeout(()=>{let t="?modal=reset-password&step=confirm&token=".concat(e.data.token);C.replace(t)},1500))}catch(e){if(e instanceof o.d7){var r,n;Z((null===(n=e.response)||void 0===n?void 0:null===(r=n.data)||void 0===r?void 0:r.message)||e.message,"error")}else Z(e.message||w("errors.anErrorOccurred"),"error")}};return(0,r.jsxs)(p.Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%"},children:[(0,r.jsxs)(p.Z,{width:"100%",sx:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[(0,r.jsx)(m.Z,{color:"grey.400",fontWeight:700,variant:"subtitle1",children:"".concat(w("auth.reset.enterSentCodeType"))}),(0,r.jsxs)(p.Z,{sx:{display:"flex",alignItems:"flex-start",flexDirection:f.length>30?"column":"row"},children:[(0,r.jsx)(p.Z,{sx:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsx)(m.Z,{color:"grey.400",fontWeight:700,variant:"subtitle1",sx:{wordBreak:"break-word",overflowWrap:"break-word",maxWidth:"100%",justifyContent:"center"},children:"".concat(f)})}),(0,r.jsx)(h.Z,{onClick:()=>{localStorage.removeItem("recoveryContact"),sessionStorage.removeItem("recoveryContact");let e=new URLSearchParams(window.location.search);e.delete("contact"),window.history.replaceState({},"","?".concat(e)),C.replace("?modal=reset-password&step=send-message")},variant:"text",sx:{pl:f.length>30?0:1,color:"secondary.main","&:hover":{backgroundColor:"transparent"}},children:y?w("auth.reset.wrongNumber"):w("auth.reset.wrongEmail")})]})]}),(0,r.jsxs)(p.Z,{sx:{display:"flex",width:"100%",alignItems:"flex-start",justifyContent:"space-between"},children:[(0,r.jsx)(h.Z,{onClick:()=>{D({contact:f,isPhone:y}),S(!0),M(300),localStorage.setItem("isButtonDisabled","true"),localStorage.setItem("expiryTime",(Date.now()+3e5).toString()),localStorage.setItem("countdown","300")},variant:"text",sx:{pl:0,color:"secondary.main","&:hover":{backgroundColor:"transparent"}},disabled:k,children:y?w("auth.reset.resendSMS"):w("auth.reset.resendEmail")}),k&&I>0&&(0,r.jsx)(m.Z,{variant:"body2",sx:{ml:2,mt:1},children:"".concat(Math.floor(I/60),":").concat(String(I%60).padStart(2,"0"))})]}),(0,r.jsx)(d.Z,{buttonMarginTop:2,handleSubmit:W,defaultButtonText:w("auth.reset.confirm"),fullWidthButton:!0})]})}},12656:function(e,t,a){a.r(t),a.d(t,{default:function(){return b}});var r=a(57437),n=a(2265),i=a(33145),o=a(60033),s=a(68575),l=a(76975),c=a(57871),d=a(1899),u=a(19643),x=a(46387),h=a(29233),p=a.n(h),m=a(288),g=a(36067);let f=e=>{let{sharedText:t,url:a,imageUrl:s}
1=e,[c,x]=(0,n.useState)({copied:!1,value:""}),{t:h}=(0,o.i)(),{showMessage:f}=(0,g.useSnackbar)(),b=e=>{x({copied:!0,value:e})};return(0,n.useEffect)(()=>{!0===c.copied&&(f(h("general.textCopied"),"success"),setTimeout(()=>{x({copied:!1,value:""})},2500))},[c.copied,f,h]),(0,r.jsxs)(u.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{background:"#252C42",height:"50px",borderRadius:"8px",padding:"5px"},children:[(0,r.jsx)(d.Z,{sx:{margin:"5px 0"},children:m.U.map(e=>(0,r.jsx)("a",{href:(0,m.J)(e.socialNetworkKey,t,a),target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(i.default,{src:"".concat("https://img.xyes.com/","assets/icons/social-share/").concat(e.iconName),alt:h("socialNetworks.".concat(e.socialNetworkKey)),style:{cursor:"pointer",margin:"0 5px"},width:34,height:34})},e.socialNetworkKey))}),(0,r.jsx)(p(),{text:t,onCopy:()=>b(t),children:(0,r.jsx)(l.Z,{width:34,height:34,icon:"solar:copy-linear",sx:{cursor:"pointer"}})})]})};var b=e=>{var t;let{promotionBanner:a,promotionDetail:n,mergeTags:h}=e,{t:p}=(0,o.i)(),m=(0,s.v9)(e=>e.userCurrencies),g="https://xyes.com",b="".concat(g,"/promotions/").concat(a.attributes.slug),y="".concat(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;if(!e)return"";let a=document.createElement("div");a.innerHTML=(0,c.ht)(e,h||{},m);let r=a.textContent||a.innerText||"";return r.length>t?"".concat(r.substring(0,t),"..."):r}(n||"")," \n\n ").concat(p("promotionsCampaigns.showMore"),": ").concat(b),v="".concat(null===(t=a.attributes.image.data)||void 0===t?void 0:t.attributes.url);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(d.Z,{sx:{background:"#FFFFFF",borderRadius:"6px",margin:"15px 0"},children:[(0,r.jsxs)(u.Z,{direction:"row",width:"100%",sx:{padding:"10px 0 0 10px",width:"100%"},children:[(0,r.jsx)(i.default,{width:29,height:29,style:{margin:"10px"},alt:a.attributes.name,src:"".concat("https://img.xyes.com/","assets/images/account-management/share-via-social/giant-chimp.png")}),(0,r.jsxs)(u.Z,{direction:"column",width:"90%",children:[(0,r.jsx)(x.Z,{sx:{fontWeight:700,fontSize:"18px",color:"#000000"},children:a.attributes.name}),(0,r.jsx)(x.Z,{sx:{fontWeight:400,fontSize:"12px",color:"#9E9D9D"},children:p("accountManagement.referral.shareViaSocial.now")})]}),(0,r.jsx)(l.Z,{sx:{marginRight:"25px",marginTop:"3px",color:"#000000",width:"24px",height:"24px"},icon:"solar:question-circle-linear"})]}),(0,r.jsx)(x.Z,{sx:{width:"100%",color:"#000000",padding:"0 10px 10px 10px"},children:y}),(0,r.jsxs)(d.Z,{sx:{backgroundColor:"#f5f5f5",padding:"12px",margin:"0 10px",borderRadius:"4px",border:"1px solid #e0e0e0",cursor:"pointer"},children:[(0,r.jsx)(x.Z,{sx:{color:"#000000",fontSize:"14px",fontWeight:500,marginBottom:"4px"},children:a.attributes.heading}),(0,r.jsx)(x.Z,{sx:{color:"#666666",fontSize:"12px"},children:g})]}),(0,r.jsxs)(u.Z,{direction:"row",sx:{background:"#FFFFFF",borderBottomLeftRadius:"6px",borderBottomRightRadius:"6px",margin:"15px 0",padding:"10px 20px"},children:[(0,r.jsx)(i.default,{width:32,height:20,alt:"",src:"".concat("https://img.xyes.com/","assets/icons/social-share/ic-lots-of-love.svg")}),(0,r.jsx)(x.Z,{sx:{color:"#9E9D9D",fontWeight:400,fontSize:"12px",marginLeft:"10px"},children:p("accountManagement.referral.shareViaSocial.lotsOfLove")})]})]}),(0,r.jsx)(f,{sharedText:y,url:b,imageUrl:v})]})}},6477:function(e,t,a){a.r(t),a.d(t,{default:function(){return w}});var r=a(57437),n=a(2265),i=a(60033),o=a(5222),s=a(70278),l=a(31691),c=a(46387),d=a(19643),u=a(76975),x=a(29233),h=a.n(x),p=a(36067),m=a(82156);let g=e=>{let{referralCode:t,referralLink:a}=e,[o,s]=(0,n.useState)({value:"",copied:!1}),{t:x}=(0,i.i)(),g=(0,l.Z)(),f=(0,m.Z)(g.breakpoints.down("md")),b={cursor:"pointer",color:"#9CA3AF",width:"24px",height:"24px"},y=e=>{s({copied:!0,value:e}),setTimeout(()=>{s({copied:!1,value:""})},2500)},{showMessage:v}=(0,p.useSnackbar)();return(0,n.useEffect)(()=>{!0===o.copied&&v(x("general.textCopied"),"success")},[v,x,o.copied]),(0,r.jsxs)(d.Z,{children:[(0,r.jsxs)(d.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:2},children:[(0,r.jsxs)(d.Z,{direction:"row",alignItems:"center",children:[(0,r.jsxs)(c.Z,{sx:{fontSize:f?"13px":"16px",color:g.palette.grey[400],fontWeight:700,textTransform:"capitalize"},children:[x("accountManagement.referral.campaings.table.referralCode"),":"]}),(0,r.jsx)(c.Z,{sx:{fontWeight:500,fontSize:"14px",color:"#FFFFFF",marginLeft:"10px",backgroundColor:"#0A0F18",padding:"4px 8px",borderRadius:"4px"},children:t})]}),(0,r.jsx)(h(),{text:String(t),onCopy:()=>y(String(t)),children:(0,r.jsx)(u.Z,{icon:"solar:copy-outline",sx:b})})]}),(0,r.jsxs)(d.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mb:2},children:[(0,r.jsxs)(d.Z,{direction:"row",alignItems:"center",children:[(0,r.jsxs)(c.Z,{sx:{fontSize:f?"13px":"16px",color:g.palette.grey[400],fontWeight:700,textTransform:"capitalize"},children:[x("accountManagement.referral.campaings.table.referralLink"),":"]}),(0,r.jsx)(c.Z,{sx:{fontWeight:500,fontSize:"14px",color:"#FFFFFF",marginLeft:"10px",backgroundColor:"#0A0F18",padding:"4px 8px",borderRadius:"4px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:f?"185px":"100%"},children:a})]}),(0,r.jsx)(h(),{text:String(a),onCopy:()=>y(String(a)),children:(0,r.jsx)(u.Z,{icon:"solar:copy-outline",sx:b})})]})]})};var f=a(33145),b=a(288),y=a(1899);let v=e=>{let{sharedText:t,url:a,imageUrl:o}
1=e,[s,l]=(0,n.useState)({copied:!1,value:""}),{t:c}=(0,i.i)(),{showMessage:x}=(0,p.useSnackbar)(),m=e=>{l({copied:!0,value:e})};return(0,n.useEffect)(()=>{!0===s.copied&&(x(c("general.textCopied"),"success"),setTimeout(()=>{l({copied:!1,value:""})},2500))},[s.copied,x,c]),(0,r.jsxs)(d.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{background:"#252C42",height:"50px",borderRadius:"8px",padding:"5px"},children:[(0,r.jsx)(y.Z,{sx:{margin:"5px 0"},children:b.U.map(e=>(0,r.jsx)("a",{href:(0,b.J)(e.socialNetworkKey,t,"facebook"===e.socialNetworkKey?o:a),target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(f.default,{src:"".concat("https://img.xyes.com/","assets/icons/social-share/").concat(e.iconName),alt:c("socialNetworks.".concat(e.socialNetworkKey)),style:{cursor:"pointer",margin:"0 5px"},width:34,height:34})},e.socialNetworkKey))}),(0,r.jsx)(h(),{text:t,onCopy:()=>m(t),children:(0,r.jsx)(u.Z,{width:34,height:34,icon:"solar:copy-linear",sx:{cursor:"pointer"}})})]})},j=e=>{var t,a,n,o;let{seo:s}=e,{t:l}=(0,i.i)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(y.Z,{sx:{background:"#FFFFFF",borderTopLeftRadius:"6px",borderTopRightRadius:"6px",margin:"15px 0"},children:[(0,r.jsxs)(d.Z,{direction:"row",width:"100%",sx:{padding:"10px 0 0 10px",width:"100%"},children:[(0,r.jsx)(f.default,{width:29,height:29,style:{margin:"10px"},alt:l("accountManagement.referral.shareViaSocial.giantChimp"),src:"".concat("https://img.xyes.com/","assets/images/account-management/share-via-social/giant-chimp.png")}),(0,r.jsxs)(d.Z,{direction:"column",width:"90%",children:[(0,r.jsx)(c.Z,{sx:{fontWeight:700,fontSize:"18px",color:"#000000"},children:l("accountManagement.referral.shareViaSocial.giantChimp")}),(0,r.jsx)(c.Z,{sx:{fontWeight:400,fontSize:"12px",color:"#9E9D9D"},children:l("accountManagement.referral.shareViaSocial.now")})]}),(0,r.jsx)(u.Z,{sx:{marginRight:"25px",marginTop:"3px",color:"#000000",width:"24px",height:"24px"},icon:"solar:question-circle-linear"})]}),(0,r.jsx)(c.Z,{sx:{width:"100%",color:"#000000",padding:"0 10px 10px 10px"},children:null==s?void 0:s.metaDescription})]}),(0,r.jsx)(f.default,{layout:"responsive",width:452,height:212,alt:null==s?void 0:null===(a=s.metaImage)||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.attributes.name,src:null==s?void 0:null===(o=s.metaImage)||void 0===o?void 0:null===(n=o.data)||void 0===n?void 0:n.attributes.url}),(0,r.jsxs)(d.Z,{direction:"row",sx:{background:"#FFFFFF",borderBottomLeftRadius:"6px",borderBottomRightRadius:"6px",margin:"15px 0",padding:"10px 20px"},children:[(0,r.jsx)(f.default,{width:32,height:20,alt:"",src:"".concat("https://img.xyes.com/","assets/icons/social-share/ic-lots-of-love.svg")}),(0,r.jsx)(c.Z,{sx:{color:"#9E9D9D",fontWeight:400,fontSize:"12px",marginLeft:"10px"},children:l("accountManagement.referral.shareViaSocial.lotsOfLove")})]})]})};var w=e=>{var t,a,n,u,x,h;let{referralCode:p,referralLink:m,campaignName:f}=e,b=(0,l.Z)(),{t:y}=(0,i.i)(),{getLang:w}=(0,i.i)(),Z=w(),{data:C}=(0,o.Y)({filter:{key:"filters[slug][$eq]",value:"/account-management/referral/"},populate:{key:"populate[seo][populate]",value:"*"},locale:{key:"locale",value:Z}}),{data:k}=(0,s.H)({populate:[{key:"populate[seo][populate]",value:"*"}],locale:{key:"locale",value:Z}}),S=(null==C?void 0:null===(a=C.data[0])||void 0===a?void 0:null===(t=a.attributes)||void 0===t?void 0:t.seo)||(null==k?void 0:null===(u=k.data)||void 0===u?void 0:null===(n=u.attributes)||void 0===n?void 0:n.seo),I="".concat((null==S?void 0:S.metaDescription)||""," \n          ").concat(y("accountManagement.referral.campaings.table.referralCode"),": ").concat(p,"\n          ").concat(y("accountManagement.referral.campaings.table.referralLink"),": ").concat(m,"\n  ");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.Z,{width:"100%",sx:{fontSize:"14px",color:b.palette.grey[400],fontWeight:700,my:2,textTransform:"capitalize"},children:f}),(0,r.jsx)(d.Z,{direction:"row",width:"100%",marginTop:"10px",children:(0,r.jsx)(c.Z,{width:"100%",sx:{fontSize:"14px",color:b.palette.grey[400]},children:y("accountManagement.referral.shareViaSocial.promoteTheCampaign")})}),(0,r.jsx)(j,{seo:S}),(0,r.jsx)(g,{referralCode:String(p),referralLink:String(m)}),(0,r.jsx)(v,{sharedText:I||"",url:String(m),imageUrl:null==S?void 0:null===(h=S.metaImage)||void 0===h?void 0:null===(x=h.data)||void 0===x?void 0:x.attributes.url})]})}},49927:function(e,t,a){a.r(t);var r=a(57437);a(2265);var n=a(33145),i=a(60033),o=a(76975),s=a(4277),l=a(31691),c=a(1899),d=a(95576),u=a(46387),x=a(44811);t.default=e=>{let{handleModal:t}=e,a=(0,l.Z)(),{t:h}=(0,i.i)(),{openIntercom:p}=(0,s.Z)();return(0,r.jsxs)(c.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",backgroundColor:a.palette.background.default,borderRadius:2},children:[(0,r.jsx)(d.Z,{"aria-label":"close",onClick:()=>t(!1),sx:{position:"absolute",right:8,top:4,color:a.palette.grey[500]},children:(0,r.jsx)(o.Z,{icon:"solar:close-circle-linear",sx:{height:24,width:24}})}),(0,r.jsx)(c.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",m:3},children:(0,r.jsx)(n.default,{alt:"verifyContactIcon",height:125,width:125,src:"".concat("https://img.xyes.com/","assets/images/contact/verify-contact.svg")})}),(0,r.jsx)(u.Z,{sx:{mb:3},children:h("verifyContact.modal.message")}),(0,r.jsx)(x.Z,{variant:"contained",color:"secondary",onClick:()=>{p(),t(!1)},sx:{backgroundColor:a.palette.primary.main,":hover":{backgroundColor:a.palette.secondary.dark}},children:h("verifyContact.modal.contactButton")})]})}},75366:function(e,t,a){a.r(t);var r=a(57437),n=a(2265),i=a(78948),o=a(66274),s=a(77456),l=a(82354),c=a(31691),d=a(82156),u=a(1899);t.default=e=>{let{loading:t=!1,handleRedeem:a=()=>{}}=e,x=(0,o.lr)(),h=x.get("tab")||"deposit",p=Number(x.get("currency"))||1,[m,g]=(0,n.use
1State)(h),f=(0,o.tv)(),b=(0,c.Z)(),y=(0,d.Z)(b.breakpoints.down("sm"));return(0,s.Z)(),(0,r.jsxs)(u.Z,{children:[(0,r.jsx)(l.ZP,{tabSelected:m,onTabChange:e=>{let t=new URLSearchParams(x);t.set("tab",e),f.push("".concat(window.location.pathname,"?").concat(t.toString())),g(e)}}),(0,r.jsxs)(u.Z,{sx:{background:i.y0.buttonOutlinedBG,mt:1,borderRadius:"6px",minHeight:y?"auto":"700px",width:"100%",pb:1},children:["deposit"===m&&(0,r.jsx)(l.z5,{currencyType:p}),"withdraw"===m&&(0,r.jsx)(l.ed,{}),"promo-code"===m&&(0,r.jsx)(l.FG,{loading:t,handleRedeem:a})]})]})}},17319:function(e,t,a){a.r(t);var r=a(57437);a(2265);var n=a(1899),i=a(46387);t.default=()=>(0,r.jsxs)(n.Z,{sx:{borderRadius:1,height:"100%"},children:[(0,r.jsx)(i.Z,{variant:"body1",paragraph:!0,sx:{whiteSpace:"pre-line"},children:"The website is under upgrade maintenance and is scheduled to resume service in mid-March.\n      We apologize for the inconvenience and appreciate your understanding."}),(0,r.jsx)(i.Z,{variant:"body1",sx:{whiteSpace:"pre-line"},children:"El sitio web est\xe1 en mantenimiento de actualizaci\xf3n y se espera que el servicio se reanude a\n      mediados de febrero. Lamentamos los inconvenientes y agradecemos su comprensi\xf3n."})]})},67972:function(e,t,a){a.d(t,{A:function(){return b}});var r=a(57437),n=a(60033),i=a(78948),o=a(76975),s=a(2265),l=a(66274),c=a(31691),d=a(82156),u=a(35791),x=a(1899),h=a(95576),p=a(46387),m=a(73053),g=a(73992);let f=a(87256).nK,b=e=>{let{type:t,title:a,modalProps:b={},requireAuth:y=!1,showModal:v,handleModal:j,size:w,fullScreenOnMobile:Z=!0,hasIcon:C=!1,showCloseButton:k=!0,allowScroll:S=!0,height:I,showTitle:M=!0,disablePadding:D=!1,customIcon:W,dialogSx:P,sx:R,transparentBackground:_=!1,overflowVisible:F=!1,stickyHeader:T=!1,closeBtnStyle:A}=e,{t:N}=(0,n.i)(),E=(0,c.Z)(),O=(0,d.Z)(E.breakpoints.down("sm")),B=(0,l.jD)(),L=(0,l.tv)(),z=(0,l.lr)(),[U,V]=(0,s.useState)(!1),H=(0,s.useCallback)(()=>{let e=z.get("modal")===t;V(void 0!==v?v:e)},[z,t,v]);(0,s.useEffect)(()=>{H()},[H]),(0,s.useEffect)(()=>{let e=()=>{H()};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[H]);let q=f[t],Y=(0,s.useCallback)(e=>{let t="".concat(B,"?").concat(e.toString());L.replace(t)},[L,B]),G=(0,s.useCallback)(()=>{j?j(!1):Y(new URLSearchParams)},[j,Y]),$=(0,s.useCallback)(e=>{if(j)j(e);else if(e){let e=new URLSearchParams(z);e.set("modal",t),Y(e)}else G()},[j,G,z,Y,t]);return(0,r.jsx)(u.Z,{fullWidth:!w,maxWidth:!1,fullScreen:O&&Z,open:U,onClose:G,sx:{"& .MuiDialog-paper":{margin:O&&!Z?E.spacing(2):O?0:E.spacing(2),maxHeight:"100%",height:I||"auto",display:"flex",flexDirection:"column",overflow:F?"visible":S?"auto":"hidden",width:w||"auto",maxWidth:w||"none",borderRadius:O&&Z?0:void 0,boxShadow:_?"none":i.y0.boxShadow,backgroundColor:_?"transparent":E.palette.background.default,...P}},children:(0,r.jsxs)(x.Z,{sx:{position:"relative",pt:D?0:3,px:D?0:3,pb:D?0:2,display:"flex",flexDirection:"column",height:"100%",...R},children:[(0,r.jsxs)(x.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",position:T?"sticky":"relative",top:T?0:"auto",left:T?0:"auto",width:"100%",mb:M?2:0,backgroundColor:T?"background.default":"transparent",zIndex:T?1100:"auto"},children:[k&&(0,r.jsx)(h.Z,{"aria-label":"close",onClick:G,sx:{position:"absolute",right:-19,top:"4%",transform:"translateY(-50%)",color:E.palette.grey[500],zIndex:10,...A},children:(0,r.jsx)(o.Z,{icon:"solar:close-circle-linear",sx:{height:24,width:24}})}),M&&(0,r.jsxs)(x.Z,{sx:{display:"flex",alignItems:"center"},children:[C&&(0,r.jsx)(g.d3,{iconUrl:W||"".concat("https://img.xyes.com/","assets/icons/logos/xyes-favicon-dark-mode.svg"),style:{flexShrink:0,width:{xs:"clamp(24px, 3.5vw, 18px)",sm:"18px",md:"20px",lg:"22px"},height:{xs:"clamp(24px, 3.5vw, 18px)",sm:"18px",md:"20px",lg:"22px"},color:E.palette.orange[900],marginRight:"8px"}}),(0,r.jsx)(p.Z,{variant:"h2",sx:{textAlign:"center"},children:N(a)})]})]}),(0,r.jsx)(x.Z,{sx:{flexGrow:1,overflow:F?"visible":"auto",pt:D?0:2,pb:D?0:2,"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},children:(0,r.jsx)(s.Suspense,{fallback:(0,r.jsx)(x.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"200px"},children:(0,r.jsx)(m.Z,{})}),children:(0,r.jsx)(q,{showModal:U,handleModal:$,...b})})})]})})}}}]);

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.