PageSourceSearch

https://www.nexgami.com/_next/static/chunks/app/(withNav)/layout-9bd95e25d4af3533.js

js nexgami.com collected 2026-10-09 00:45:52 UTC 29,318 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[783],{20672:function(e,t,a){Promise.resolve().then(a.bind(a,77830))},77830:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return eD}});var n=a(57437),s=a(2265),r=a(65994);let{Network:i,Wallet:l}=r.Constants,{ChainId:o}=r.Constants;a(55999),a(84840);let{ChainId:d}=r.Constants,{ChainId:c}=r.Constants,{Network:u,Wallet:h}=r.Constants;var g=a(55698);a(20703);let{Wallet:x}=r.Constants,{Network:m}=r.Constants;var f=a(31159),p=a(60304),j=a(21316),v=a(9011),w=a(65658),C=a(25571),b=a(18087),S=a(82573);function y(){let[e,t]=(0,s.useState)(""),[a,r]=(0,s.useState)(!1),[i,l]=(0,s.useState)(!1),o=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,d=async()=>{if(o.test(e)){l(""),r(!0);try{await S.default.Inst.validateEmailHandler(e)}catch(e){}r(!1)}else l("Please input correct email address!")};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.Z,{variant:"h6",sx:{textAlign:"center",fontWeight:"bold"},children:"Email Signup/Login"}),(0,n.jsx)(b.Z,{variant:"body1",sx:{mt:2},children:"Please input your email address"}),(0,n.jsx)(C.Z,{margin:"normal",required:!0,fullWidth:!0,id:"email",label:"Email Address",name:"email",autoComplete:"email",autoFocus:!0,onChange:e=>t(e.target.value),value:e,error:!!i,helperText:i||"",FormHelperTextProps:{style:{fontSize:16}}}),(0,n.jsx)(v.Z,{onClick:d,variant:"contained",fullWidth:!0,sx:{mt:1,fontSize:18},disabled:!e,loading:a,children:"Verify"})]})}var Z=a(88069),I=a(15556),N=a(44777),L=a(38930),E=a(56167);let z=e=>{let{title:t,children:a}=e,s=async()=>{switch(t){case"Email":Z.Z.emit(I.z.LoginSignup.Open_LoginSignupModal,r.Constants.ModalType.EmailValidate);break;case"Google":await S.default.Inst.signInWithGoogle();break;case"Twitter":await S.default.Inst.signInWithTwitter()}};return(0,n.jsx)(N.Z,{variant:"outlined",size:"large",sx:{color:"black",borderColor:"black",textTransform:"none",fontSize:"1.1rem",p:"15px"},startIcon:a,disableRipple:!0,onClick:s,children:t})};function k(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.Z,{variant:"h6",sx:{textAlign:"center",fontWeight:"bold"},children:"Sign up/Login"}),(0,n.jsx)(b.Z,{variant:"body1",sx:{mt:2},children:"Via email or social account"}),(0,n.jsxs)(E.Z,{spacing:2,children:[(0,n.jsx)(z,{title:"Email",children:(0,n.jsx)(L.Z,{style:{fontSize:30}})}),(0,n.jsx)(z,{title:"Google",children:(0,n.jsx)("img",{src:"/img/google.png",alt:"google",width:25})}),(0,n.jsx)(z,{title:"Twitter",children:(0,n.jsx)("img",{src:"/img/twitter.png",alt:"twitter",width:25})})]})]})}let _=e=>{switch(e){case"auth/user-disabled":return"This user has been disabled.";case"auth/user-not-found":return"User not found.";case"auth/wrong-password":return"The password is not correct.";case"auth/email-already-in-use":return"The email address is already in use by another account.";case"auth/invalid-email":return"The email address is not valid.";case"auth/operation-not-allowed":return"Email/password accounts are not enabled. Enable email/password in Firebase Console.";case"auth/weak-password":return"The password is too weak.";default:return"Login failed, please try again later."}};function M(){var e;
1let[t,a]=(0,s.useState)(""),[i,l]=(0,s.useState)(!1),[o,d]=(0,s.useState)(""),{email:c}=null===(e=S.default.Inst)||void 0===e?void 0:e.getLoginData,u=async()=>{l(!0);try{await S.default.Inst.signInWithEmailAndPassword(c,t)}catch(e){throw d(_(e.code)),e}l(!1)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.Z,{variant:"h6",sx:{textAlign:"center",fontWeight:"bold"},children:"Email Login"}),(0,n.jsx)(C.Z,{margin:"normal",required:!0,fullWidth:!0,id:"email",label:"Email Address",name:"email",value:c,disabled:!0}),(0,n.jsx)(C.Z,{margin:"normal",required:!0,fullWidth:!0,name:"password",label:"Password",type:"password",id:"password",autoComplete:"current-password",autoFocus:!0,value:t,onChange:e=>a(e.target.value),error:!!o,helperText:o||"",FormHelperTextProps:{style:{fontSize:16}}}),(0,n.jsx)("div",{className:"flex justify-end my-2",children:(0,n.jsx)(N.Z,{onClick:()=>{Z.Z.emit(I.z.LoginSignup.Open_LoginSignupModal,r.Constants.ModalType.RecoverPassword)},variant:"text",children:"Forgot password?"})}),(0,n.jsx)(v.Z,{onClick:u,variant:"contained",fullWidth:!0,sx:{mt:1,fontSize:18},loading:i,disabled:!t,children:"Login"})]})}var U=a(29069);function T(){var e;let t=(0,s.useRef)(null),[a,r]=(0,s.useState)(""),[i,l]=(0,s.useState)(),[o,d]=(0,s.useState)(null===(e=S.default.Inst)||void 0===e?void 0:e.getLoginData.email),[c,u]=(0,s.useState)(""),[h,g]=(0,s.useState)(""),[x,m]=(0,s.useState)(!1),[f,p]=(0,s.useState)({}),[w,y]=(0,s.useState)(),Z=async()=>{try{let{data:e}=await U.$u.requestCaptcha();if(0===e.code){let{captchaImg:a,text:n}=e.retObject;t.current=n,l(a)}}catch(e){console.log("get captcha error: ",e)}};(0,s.useEffect)(()=>{Z()},[]);let I=()=>{let e=!0,n={};return/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,}$/.test(c)||(n.password="Password does not meet criteria.",e=!1),c!==h&&(n.confirmPassword="Passwords do not match.",e=!1),a!==t.current&&(n.captcha="Captcha do not match",e=!1),p(n),e},N=async()=>{if(I()){m(!0);try{await S.default.Inst.signInWithCreateEmailAndPassword(o,c)}catch(e){throw e}m(!1)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.Z,{variant:"h6",sx:{textAlign:"center",fontWeight:"bold"},children:"Email Signup"}),(0,n.jsx)(C.Z,{margin:"normal",required:!0,fullWidth:!0,id:"email",label:"Email Address",name:"email",value:o,onChange:e=>d(e.target.value),disabled:!0}),(0,n.jsx)(C.Z,{margin:"normal",required:!0,fullWidth:!0,name:"password",label:"Password",type:"password",id:"password",autoFocus:!0,value:c,onChange:e=>u(e.target.value),error:!!f.password,helperText:f.password||"",FormHelperTextProps:{style:{fontSize:16}}}),(0,n.jsx)(C.Z,{margin:"normal",required:!0,fullWidth:!0,name:"doublecheck-password",label:"Confirm your password",type:"password",id:"doublecheck-password",autoFocus:!0,value:h,onChange:e=>g(e.target.value),error:!!f.confirmPassword,helperText:f.confirmPassword||"",FormHelperTextProps:{style:{fontSize:16}}}),(0,n.jsxs)(j.ZP,{spacing:2,container:!0,alignItems:"center",children:[(0,n.jsx)(j.ZP,{item:!0,lg:8,xs:6,children:(0,n.jsx)(C.Z,{margin:"normal",required:!0,fullWidth:!0,name:"captcha",label:"captcha",type:"captcha",id:"captcha",value:a,onChange:e=>r(e.target.value),error:!!f.captcha,helperText:f.captcha||"",FormHelperTextProps:{style:{fontSize:16}}})}),i&&(0,n.jsx)(j.ZP,{item:!0,lg:4,xs:6,children:(0,n.jsx)("img",{src:"data:image/jpg;base64,"+i,alt:"captcha",onClick:()=>Z(),className:"cursor-pointer"})})]}),(0,n.jsx)(v.Z,{onClick:N,variant:"contained",fullWidth:!0,sx:{mt:2},loading:x,children:"Sign up"})]})}var P=()=>{var e;let{email:t}=null===(e=S.default.Inst)||void 0===e?void 0:e.getLoginData,a=async()=>{await S.default.Inst.signInWithGoogle()};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.Z,{variant:"h6",sx:{textAlign:"center",fontWeight:"bold"},children:"Sign in via Google"}),(0,n.jsxs)(b.Z,{variant:"body1",sx:{mt:2},children:["You have registered with ",(0,n.jsx)("strong",{children:t}),". Sign in with"," ",(0,n.jsx)("strong",{children:"Google"})," to continue."]}),(0,n.jsx)(N.Z,{onClick:a,variant:"contained",fullWidth:!0,sx:{mt:2},children:"Sign in via Google"})]})};function W(){var e;
1let[t,a]=(0,s.useState)(!1),[r,i]=(0,s.useState)(""),[l,o]=(0,s.useState)(),{accessToken:d,profile:c}=null===(e=S.default.Inst)||void 0===e?void 0:e.getLoginData,u=null==c?void 0:c.email,[h,g]=(0,s.useState)(0),[x,m]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=localStorage.getItem("cooldownExpiry");if(e){let t=new Date,a=(new Date(e)-t)/1e3;a>0?g(a):localStorage.removeItem("cooldownExpiry")}},[]),(0,s.useEffect)(()=>{let e=null;return h>0&&(e=setInterval(()=>{g(t=>t-1<=0?(clearInterval(e),localStorage.removeItem("cooldownExpiry"),0):t-1)},1e3)),()=>clearInterval(e)},[h]);let f=async()=>{let e=new Date(new Date().getTime()+6e4);localStorage.setItem("cooldownExpiry",e),g(60);try{let{data:e}=await U.$u.sendVerifyCodeRequest(d);console.log("send request: ",e),0===e.code&&o(e.msg)}catch(e){throw e}},p=async()=>{a(!0);try{let e=await S.default.Inst.verifyEmail(l,r);-1===e&&m("The verification code is not correct")}catch(e){throw e}a(!1)};return(0,s.useEffect)(()=>{localStorage.getItem("cooldownExpiry")||f()},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.Z,{variant:"h6",sx:{textAlign:"center",fontWeight:"bold"},children:"Email Verify"}),(0,n.jsxs)(b.Z,{variant:"body1",sx:{mt:2},children:["Please verify your email ",(0,n.jsx)("strong",{children:u})]}),(0,n.jsxs)(j.ZP,{container:!0,spacing:2,alignItems:"center",justifyContent:"space-between",children:[(0,n.jsx)(j.ZP,{xs:7,item:!0,children:(0,n.jsx)(C.Z,{margin:"normal",required:!0,fullWidth:!0,id:"verifyCode",label:"Verify Code",name:"verifyCode",autoFocus:!0,onChange:e=>i(e.target.value),value:r,error:!!x,helperText:x||"",FormHelperTextProps:{style:{fontSize:16}}})}),(0,n.jsx)(j.ZP,{xs:5,item:!0,children:(0,n.jsx)(N.Z,{fullWidth:!0,onClick:f,variant:"outlined",disabled:h>0,sx:{fontSize:16,paddingY:1},children:h>0?"Resend after ".concat(Math.ceil(h)):"Resend"})})]}),(0,n.jsx)(N.Z,{onClick:p,variant:"contained",fullWidth:!0,sx:{mt:2,fontSize:18},disabled:!r,children:"Verify"}),(0,n.jsx)(v.Z,{onClick:()=>{Z.Z.emit(I.z.User.UserState_Logout),Z.Z.emit(I.z.LoginSignup.Open_LoginSignupModal,null)},variant:"text",fullWidth:!0,sx:{mt:2},loading:t,disabled:t,children:"Back to signin"})]})}function D(){var e;
1let[t,a]=(0,s.useState)(!1),[i,l]=(0,s.useState)(),{accessToken:o}=null===(e=S.default.Inst)||void 0===e?void 0:e.getLoginData,[d,c]=(0,s.useState)(null),[u,h]=(0,s.useState)(""),g=(0,s.useRef)(),[x,m]=(0,s.useState)(null),f=(0,s.useCallback)(async()=>{try{let{data:e}=await U.$u.requestCaptcha(g);if(0===e.code){let{captchaImg:t,uuid:a}=e.retObject;m(t),g.current=a}}catch(e){console.log("get captcha error: ",e)}},[g]);(0,s.useEffect)(()=>{f()},[]);let p=async()=>{a(!0);try{let{data:e}=await U.$u.updateReferrer(o,i,g,d);if(-99==e.code){h("Incorrect Captcha");return}Z.Z.emit(I.z.LoginSignup.Open_LoginSignupModal,r.Constants.ModalType.SetupName)}catch(e){}a(!0)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.Z,{variant:"h6",sx:{textAlign:"center",fontWeight:"bold"},children:"Referral Code"}),(0,n.jsx)(b.Z,{variant:"body1",sx:{mt:2},children:"Please input your referral code"}),(0,n.jsx)(C.Z,{margin:"normal",fullWidth:!0,id:"referrer",label:"Referral Code",name:"referrer",autoFocus:!0,onChange:e=>l(e.target.value),value:i,error:!!u,helperText:u||"",FormHelperTextProps:{style:{fontSize:16}}}),(0,n.jsxs)(j.ZP,{spacing:2,container:!0,alignItems:"center",children:[(0,n.jsx)(j.ZP,{item:!0,lg:8,xs:6,children:(0,n.jsx)(C.Z,{margin:"normal",fullWidth:!0,id:"captcha",label:"Captcha",name:"captcha",autoFocus:!0})}),(0,n.jsx)(j.ZP,{item:!0,lg:4,xs:6,children:x&&(0,n.jsx)("img",{className:"cursor-pointer",src:"data:image/jpg;base64,"+x,alt:"captcha",onClick:()=>f()})})]}),(0,n.jsx)(v.Z,{onClick:p,variant:"contained",fullWidth:!0,sx:{mt:2},loading:t,children:"Next"})]})}var F=a(91188);function A(){let[e,t]=(0,s.useState)(""),[a,i]=(0,s.useState)(!1),[l,o]=(0,s.use
1State)(""),d=/^(?![\d_])[a-zA-Z\u4e00-\u9fa5_\d]{2,15}$/,c=async()=>{if(d.test(e)){i(!0);try{await F.O.IMFunctions.setName(e),Z.Z.emit(I.z.LoginSignup.Open_LoginSignupModal,r.Constants.ModalType.Dashboard)}catch(e){throw e}i(!1)}else o("Username must only contain letters, numbers, and underscores.")};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.Z,{variant:"h6",sx:{textAlign:"center",fontWeight:"bold"},children:"Create Username"}),(0,n.jsx)(C.Z,{margin:"normal",required:!0,fullWidth:!0,id:"createName",label:"Username",name:"createName",autoFocus:!0,onChange:e=>t(e.target.value),value:e,error:!!l,helperText:l||"",FormHelperTextProps:{style:{fontSize:16}}}),(0,n.jsx)(v.Z,{onClick:c,variant:"contained",fullWidth:!0,sx:{mt:2},disabled:!e,loading:a,children:"Confirm"})]})}var O=a(6076),R=a(5832),G=a(58466),q=a(71765),H=a(74545),V=a(63314),$=a(93954),B=()=>{let[e,t]=(0,s.useState)(),[a,r]=(0,s.useState)(),i=q.DataCenter.userInfo.userProfile.referralCode;return(0,s.useEffect)(()=>{let e=q.DataCenter.userInfo.accountId,a=q.DataCenter.userInfo.loginKey;U.$u.getProfile(e,a).then(e=>{let{data:a}=e;0===a.code&&(t(a.retObject.xpPoint),r(a.retObject.referCount))}).catch(e=>{console.log("get profile error: ",e)})},[]),(0,n.jsxs)("div",{className:"h-[75%] flex flex-col",children:[(0,n.jsx)("div",{className:"shadow-xl rounded-xl h-[100%] flex justify-center items-center flex-wrap bg-[url('Components/UserInfo/userInfo_bg.jpg')] bg-cover",children:(0,n.jsx)("div",{className:"z-[10] text-white font-bold text-[30px] bg-[#00000080] p-[10%] rounded-xl shadow-lg",style:{lineHeight:1.2},children:(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,n.jsx)("div",{className:"text-[#EEEEEE] text-[1.2rem] font-bold",children:"REFERRAL CODE"}),(0,n.jsx)("div",{className:"text-white text-[2rem] my-[10px] font-bold",children:i}),(0,n.jsxs)("div",{className:"text-[#EEEEEE] text-[1.1rem]",children:["Reffered Count: ",0===a?0:a]})]})})}),(0,n.jsxs)("div",{className:"mt-[2.5%] p-[2.5%] bg-[#D0D8B0] w-[100%] rounded-xl flex justify-center items-center",children:[(0,n.jsx)("img",{src:"/img/icon_point.png",className:"w-[30px]",alt:"point"}),(0,n.jsxs)("div",{className:"ml-[5px] text-[25px] py-[10px] font-bold",children:[e," Points"]})]})]})},Y=()=>{let e=q.DataCenter.userInfo.userProfile.referralCode,[t,a]=$.ZP.useMessage(),[r,i]=(0,s.useState)(window.innerWidth<850);return(0,s.useEffect)(()=>{let e=()=>{i(window.innerWidth<850)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),r?(0,n.jsxs)("div",{className:"flex flex-wrap justify-evenly h-[95%] overflow-y-scroll",children:[a,(0,n.jsxs)("div",{className:"w-[90%] h-[100%]",children:[(0,n.jsx)(B,{referralCode:e}),(0,n.jsx)(V.Z,{messageApi:t,referralCode:e})]}),(0,n.jsx)("div",{className:"w-[90%] h-[100%]",children:(0,n.jsx)(H.ZP,{})})]}):(0,n.jsxs)("div",{className:"flex justify-evenly h-[100%] overflow-y-scroll",children:[a,(0,n.jsx)("div",{className:"w-[55%] h-[100%]",children:(0,n.jsx)(H.ZP,{})}),(0,n.jsxs)("div",{className:"w-[40%] h-[100%]",children:[(0,n.jsx)(B,{referralCode:e}),(0,n.jsx)(V.Z,{messageApi:t,referralCode:e})]})]})},Q=a(97487),J=a(99148),K=a(18940),X=a(34515),ee=a(92730),et=a(44894),ea=a(92965),en=a(89331),es=a(57165),er=a(12120),ei=a(27179),el=a(36019),eo=a(71325),ed=a(78796),ec=a(3217),eu=a(83589);function eh(){let[e,t]=(0,s.useState)(null),[a,i]=(0,s.useState)([]),[l,o]=(0,s.use
1State)(null),[d,c]=(0,s.useState)(!1),[u,h]=(0,s.useState)(null),[g,x]=$.ZP.useMessage(),m=async()=>{let e=await en.Z.Inst.getFriendList();console.log("friend list: ",e),t(e.sort((e,t)=>e.name.localeCompare(t.name,{sensitivity:"base"})))},f=async e=>{if(!e){g.open({type:"warning",content:"Please input email address or username!"});return}c(!0);let[t,a]=e.split("#");a||(a=0),console.log("username, tag",t,a);try{let{state:e,userdata:n}=await F.O.IMFunctions.findUser(t,a);console.log("====",e,n),null!=n.id?n.id!==q.DataCenter.userInfo.accountId&&h({...n,state:e}):g.open({type:"warning",content:"No matching user!"})}catch(e){console.log("errors",e)}c(!1)};(0,s.useEffect)(()=>{let e=()=>{m()};return e(),i(q.DataCenter.messageCache.getChatList(F.LesConstants.IMMessageType.Group)),Z.Z.on(I.z.User.UserState_UIRefresh,m),Z.Z.on(I.z.User.UserState_IsLoggedin,e),()=>{Z.Z.remove(I.z.User.UserState_UIRefresh,m),Z.Z.remove(I.z.User.UserState_IsLoggedin,e)}},[]);let p=[{key:"1",label:"Friends",children:null==e?void 0:e.map((e,t)=>(0,n.jsx)(ea.l,{friend:e,setSelectedTarget:o},e.id))},{key:"2",label:"Groups",children:a.map((e,t)=>(0,n.jsx)("div",{onClick:()=>o(e),children:(0,n.jsx)(ec.Z,{groupData:e})},e.targetId))}];return(0,n.jsxs)("div",{className:"h-[100%] ml-[15%]",children:[x,(0,n.jsx)("div",{className:"font-bold text-[20px]",children:"Social"}),(0,n.jsx)(ei.Z,{placeholder:"input email or username#tag",size:"large",enterButton:(0,n.jsx)(el.Z,{style:{fontSize:20}}),className:"mb-[10px] w-[45%]",loading:d,onSearch:f}),(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsx)("div",{className:"w-[45%]",children:(0,n.jsx)(es.Z,{items:p,defaultActiveKey:["1"]})}),l&&(0,n.jsx)("div",{className:"w-[50%]",children:l.type==r.Constants.ChatListType.Group?(0,n.jsx)(ed.Z,{groupId:l.targetId}):(0,n.jsx)(eu.Z,{selectedFriend:l})})]}),(0,n.jsx)(er.Z,{open:u,footer:null,title:"Add Friend",onCancel:()=>{h(null)},children:(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)(ea.l,{friend:u,setSelectedFriend:o,hasTag:!0}),(0,n.jsx)(eo.Z,{userData:u,setIsLoading:c})]})})]})}var eg=a(92143),ex=a(34933),em=a(37196),ef=a(48476);function ep(e){var t;let{chatTarget:a}=e,[r,i]=(0,s.useState)({item:null,focusMessageId:null}
1),[l,o]=(0,s.useState)(null),d=(e,t)=>{i({item:e,focusMessageId:t})},[c,u]=(0,s.useState)("");return(0,s.useEffect)(()=>{var e,t,a;o(null===(t=q.DataCenter.messageCache)||void 0===t?void 0:t.getChatDataByChatId(null!==(a=null===(e=r.item)||void 0===e?void 0:e.chatId)&&void 0!==a?a:"",!0))},[r]),(0,s.useEffect)(()=>{a&&(Z.Z.emit(I.z.User.User_Click_Chat_Updated,a),d(a))},[a]),(0,n.jsxs)("div",{className:"flex justify-between h-[100%]",children:[(0,n.jsx)("div",{className:"ml-[2.5%] w-[30%]",children:(0,n.jsx)(eg.Z,{onItemSelected:d})}),(0,n.jsxs)("div",{className:"w-[65%] h-[80%]",children:[(0,n.jsx)(ex.N,{chatData:l,focusMessaageId:null!==(t=null==r?void 0:r.focusMessageId)&&void 0!==t?t:null}),(0,n.jsx)(ef.U,{chatData:l,onMessageSendHandler:e=>{null!=l&&(l.type===F.LesConstants.IMMessageType.Single?em.Z.Inst.sendMessage(l.targetId,e):em.Z.Inst.sendChatGroupMessage(l.targetId,e),c&&u(""))}})]})]})}a(67471);var ej=a(47907),ev=a(47963);r.Constants.Notification.NotificationType;let ew=e=>{let{unreadCount:t}=e;return(0,n.jsx)("div",{className:"absolute left-[0] top-[0] rounded-full bg-[#FF0000] flex w-[20px] h-[20px] justify-center items-center text-white font-bold",children:t})},eC=e=>{var t;let{setOpen:a,setCurPage:i}
1=e,[l,o]=(0,s.useState)(null===(t=q.DataCenter.messageCache)||void 0===t?void 0:t.getNewMessageCount()),d=async()=>{let e=(0,ee.v0)();try{await (0,ee.w7)(e),a(!1),await F.O.Inst.signOut(),console.log("User signed out!"),Z.Z.emit(I.z.User.UserState_Logout)}catch(e){console.error("Error signing out: ",e)}},c=e=>{let{children:t,onChangePage:a}=e;return(0,n.jsx)("div",{onClick:a,className:"bg-white rounded-lg w-[40px] h-[40px] flex justify-center items-center ursor-pointer",children:t})};return(0,s.useEffect)(()=>{let e=()=>{let e=q.DataCenter.messageCache.getNewMessageCount(),t=0;e>0&&(t=e>99?"99+":e),o(t)};return Z.Z.on(I.z.Message.Message_New_Count_Changed,e),()=>{Z.Z.remove(I.z.Message.Message_New_Count_Changed,e)}},[]),(0,n.jsxs)("div",{className:"float-left h-[100%] w-[15%] max-w-[150px] bg-[#3D3A54] rounded-[30px] flex flex-col justify-center items-center gap-5",children:[(0,n.jsx)("img",{src:"/img/nexgami.png",width:50,alt:"logo",className:""}),(0,n.jsx)(c,{onChangePage:()=>i(r.Constants.Menu.Quest),children:(0,n.jsx)(X.Z,{})}),(0,n.jsx)(c,{onChangePage:()=>i(r.Constants.Menu.Social),children:(0,n.jsx)(J.Z,{})}),(0,n.jsx)("div",{className:"relative",children:(0,n.jsxs)(c,{onChangePage:()=>i(r.Constants.Menu.Chat),children:[(0,n.jsx)(K.Z,{}),0!=l&&(0,n.jsx)("div",{className:"absolute bottom-0 right-[-5px] rounded-full bg-[#E75C62] w-[20px] h-[20px] text-white text-center",children:l})]})}),(0,n.jsx)("img",{src:"/img/logout.png",width:40,onClick:d,alt:"logout",className:"cursor-pointer"})]})};var eb=e=>{let{fullpageApi:t}=e,[a,i]=(0,s.useState)(!1),l=(0,ej.useRouter)(),o=e=>{i(!0)},[d,c]=(0,s.useState)(!1),[u,h]=(0,s.useState)(r.Constants.Menu.Quest),[g,x]=(0,s.use
1State)(null),m=()=>{c(!0)},[f,p]=(0,s.useState)(0);(0,s.useEffect)(()=>{t&&a?(t.setAllowScrolling(!1),document.body.classList.add("no-scroll")):t&&(document.body.classList.remove("no-scroll"),t.setAllowScrolling(!0))},[t,a]),(0,s.useEffect)(()=>{let e=()=>{p(q.DataCenter.notifications.unreadCount(F.LesConstants.IMNotificationType.Notification))},t=e=>{h(e)};return Z.Z.on(I.z.Dashboard_Open,o),Z.Z.on(I.z.Notification.NotificationState_Updated,e),Z.Z.on(I.z.Dashboard_Tab_Switch,t),Z.Z.on(I.z.User.User_Click_Chat_Updated,e=>x(e)),()=>{Z.Z.remove(I.z.Dashboard_Open,o),Z.Z.remove(I.z.Notification.NotificationState_Updated,e),Z.Z.remove(I.z.Dashboard_Tab_Switch,t),Z.Z.remove(I.z.User.User_Click_Chat_Updated,e=>x(e))}},[]);let j=(0,ev.Z)("(max-width:650px)");return(0,s.useEffect)(()=>{j&&a&&l.push("/dashboardMobile")},[a]),(0,n.jsxs)(R.Z,{open:a&&!j,onCancel:()=>{i(!1)},footer:null,centered:!0,width:1200,styles:{body:{height:"65vh",position:"relative",overflow:"hidden"}},wrapClassName:"no-padding-modal",className:"scrollable-content",children:[(0,n.jsxs)("div",{className:"h-[100%]",children:[(0,n.jsx)(eC,{setOpen:i,setCurPage:h}),(0,n.jsxs)("div",{className:"w-[100%] h-[100%]",children:[(0,n.jsxs)("div",{className:"h-[50px] flex items-center justify-end mr-[40px] mt-[5px]",children:[(0,n.jsx)(et.Z,{}),(0,n.jsxs)("div",{className:"relative w-[30px] ml-[20px]",onClick:m,children:[f>0&&(0,n.jsx)(ew,{unreadCount:f}),(0,n.jsx)(Q.Z,{onClick:m,fontSize:"large"})]})]}),(0,n.jsx)("div",{className:"w-[100%] h-[100%] pb-[5%]",children:u===r.Constants.Menu.Quest?(0,n.jsx)(Y,{}):u===r.Constants.Menu.Social?(0,n.jsx)(eh,{}):u===r.Constants.Menu.Chat?(0,n.jsx)(ep,{chatTarget:g}):(0,n.jsx)(n.Fragment,{})})]})]}),(0,n.jsx)(O.Z,{title:"Notifications",placement:"right",closable:!0,onClose:()=>{c(!1)},open:d,getContainer:!1,styles:{body:{paddingTop:0}},children:(0,n.jsx)(G.Z,{unreadCount:f,setUnreadCount:p})})]})},eS=()=>{var e;let{email:t}=null===(e=S.default.Inst)||void 0===e?void 0:e.getLoginData,a=async()=>{await S.default.Inst.signInWithTwitter()};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.Z,{variant:"h6",sx:{textAlign:"center",fontWeight:"bold"},children:"Sign in via Twitter"}),(0,n.jsxs)(b.Z,{variant:"body1",sx:{mt:2},children:["You have registered with ",(0,n.jsx)("strong",{children:t}),". Sign in with"," ",(0,n.jsx)("strong",{children:"Twitter"})," to continue."]}),(0,n.jsx)(N.Z,{onClick:a,variant:"contained",fullWidth:!0,sx:{mt:2},children:"Sign in via Twitter"})]})},ey=a(79309),eZ=a(19723),eI=a(56251);let eN=(0,ee.v0)();var eL=()=>{var e;
1let[t,a]=(0,s.useState)(!1),[i,l]=(0,s.useState)(!1),{email:o}=null===(e=S.default.Inst)||void 0===e?void 0:e.getLoginData,d=async()=>{a(!0);try{await (0,ee.LS)(eN,o),l(!0)}catch(e){}a(!1)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b.Z,{variant:"h6",sx:{textAlign:"center",fontWeight:"bold"},children:"Recover Password"}),(0,n.jsxs)(b.Z,{variant:"subtitle1",sx:{textAlign:"center",paddingY:2},children:["Get instructions sent to this ",(0,n.jsx)("strong",{children:o})," that explain how to reset your password."]}),(0,n.jsx)(v.Z,{variant:"contained",loading:t,fullWidth:!0,onClick:d,children:"Send"}),(0,n.jsx)(N.Z,{onClick:()=>{Z.Z.emit(I.z.LoginSignup.Open_LoginSignupModal,r.Constants.ModalType.EmailLogin)},variant:"text",fullWidth:!0,sx:{mt:2},children:"Go back to sign in"}),(0,n.jsx)(eI.Z,{open:i,autoHideDuration:1500,onClose:(e,t)=>{"clickaway"!==t&&l(!1)},anchorOrigin:{horizontal:"center",vertical:"top"},children:(0,n.jsx)(eZ.Z,{severity:"success",variant:"filled",sx:{width:"100%"},children:"The password recovery email has been sent!"})})]})},eE=a(22320);let ez=r.Constants.ModalType;(0,w.Z)({typography:{fontFamily:"Outfit,sans-serif"}});let ek={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90vw",md:"550px"},bgcolor:"background.paper",border:"2px solid #000",boxShadow:24,color:"black",p:{xs:2,md:4}};function e_(e){let{fullpageApi:t}
1=e,[a,i]=(0,s.useState)(!1),[l,o]=(0,s.useState)(null),[d,c]=(0,s.useState)("Join Now"),[u,h]=(0,s.useState)(!1),[x,m]=(0,s.useState)("");(0,eE.Zc)(),(0,eE.k_)();let w=()=>i(!0),C=()=>{var e;i(!1);let{loginState:t}=null===(e=S.default.Inst)||void 0===e?void 0:e.getLoginData;t==r.Constants.LoginState.Logout&&o(null)};(0,s.useEffect)(()=>{t&&a?(t.setAllowScrolling(!1),document.body.classList.add("no-scroll")):t&&(document.body.classList.remove("no-scroll"),t.setAllowScrolling(!0))},[t,a]);let b=e=>{"twitter.com"==e?m("twitter.png"):"google.com"==e?m("google.png"):"password"==e&&m("nexgami.png")};return(0,s.useEffect)(()=>{if(S.default.Inst.isLoggedIn){let{userProfile:e,imUserInfo:t}=q.DataCenter.userInfo;t.name?c((0,g.Sy)(t.name,3,0,!0)):e.email&&c((0,g.Sy)(e.email,4,4,!0));let a=e.providerId;o(ez.Dashboard),b(a)}},[]),(0,s.useEffect)(()=>{let e=e=>{o(e)},t=e=>{let{profile:t}=S.default.Inst.getLoginData;e.name?c((0,g.Sy)(e.name,3,0,!0)):c((0,g.Sy)(null==t?void 0:t.email,4,4,!0)),b(t.providerId)},a=()=>{o(null),c("Join Now"),m(null)},n=e=>{h(e)};return Z.Z.on(I.z.LoginSignup.Open_LoginSignupModal,e),Z.Z.on(I.z.User.UserInfo_Current_Updated,t),Z.Z.on(I.z.User.UserState_Logout,a),Z.Z.on(I.z.LoginSignup.Login_Loading,n),()=>{Z.Z.remove(I.z.LoginSignup.Open_LoginSignupModal,e),Z.Z.remove(I.z.User.UserInfo_Current_Updated,t),Z.Z.remove(I.z.User.UserState_Logout,a),Z.Z.remove(I.z.LoginSignup.Login_Loading,n)}},[]),(0,s.useEffect)(()=>{l===ez.Dashboard&&C()},[l]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(()=>{let e=w;return S.default.Inst.isLoggedIn&&l===ez.Dashboard&&(e=()=>{Z.Z.emit(I.z.Dashboard_Open)}),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(v.Z,{sx:{borderRadius:"1rem",backgroundColor:"#211627",boxShadow:"0px 3px 0px rgba(72, 147, 240, 1)",color:"white",fontWeight:"bold","& .MuiLoadingButton-loadingIndicator":{color:"white"},paddingY:"0.25rem","&:hover":{backgroundColor:"rgba(72, 147, 240, 1)",transitionDuration:"0.3s",transitionTimingFunction:"ease-in-out"}},variant:"contained",onClick:e,startIcon:x&&(0,n.jsx)("img",{src:"/img/".concat(x),alt:"",width:15}),disabled:u,loading:u,children:d})})},{}),(0,n.jsx)(f.Z,{open:a,onClose:C,children:(0,n.jsxs)(p.Z,{sx:ek,borderRadius:2,children:[(0,n.jsx)(j.ZP,{container:!0,justifyContent:"flex-end",children:(0,n.jsx)(ey.Z,{onClick:C,className:"cursor-pointer"})}),(()=>{switch(l){case ez.GoogleSignin:return(0,n.jsx)(P,{});case ez.TwitterSignin:return(0,n.jsx)(eS,{});case ez.EmailLogin:return(0,n.jsx)(M,{});case ez.EmailSignup:return(0,n.jsx)(T,{});case ez.EmailVerify:return(0,n.jsx)(W,{});case ez.UpdateReferrer:return(0,n.jsx)(D,{});case ez.SetupName:return(0,n.jsx)(A,{});case ez.EmailValidate:return(0,n.jsx)(y,{});case ez.RecoverPassword:return(0,n.jsx)(eL,{});default:return(0,n.jsx)(k,{})}})()]})}),(0,n.jsx)(eb,{fullpageApi:t})]})}var eM=a(72967),eU=a(8792),eT=a(48740),eP=a(58129),eW=a(90682);function eD(e){let{fullpageApi:t}=e,[a,r]=(0,s.useState)(!1),[i,l]=(0,s.useState)(!1),o=(0,ev.Z)("(max-width:1200px)"),d=(0,ev.Z)("(max-width:800px)"),c=(0,ej.usePathname)().split("/")[1],u=[{href:"/",label:"Home",showMode:2},{href:"/games",label:"Games",showMode:-1},{href:"/news",label:"News",showMode:-1},{href:"/launchpad",label:"Launchpad",showMode:-1},{href:"/token-vesting",label:"Vesting",showMode:-1},{href:"/staking",label:"Staking",showMode:0},{href:"/lightesport",label:"Light eSport",showMode:-1},{href:"/quest",label:"Quest",showMode:-1},{href:"/live",label:"Live",showMode:-1},{href:"https://academy.nexgami.com",target:"_blank",label:"Academy",showMode:-1}],h=()=>{l(!1)},g=()=>{r(!0)},x=()=>{r(!1)};return(0,s.useEffect)(()=>(S.default.Inst.isLoggedIn&&r(!0),Z.Z.on(I.z.User.UserState_IsLoggedin,g),Z.Z.on(I.z.User.UserState_Logout,x),()=>{Z.Z.remove(I.z.User.UserState_IsLoggedin,g),Z.Z.on(I.z.User.UserState_Logout,x)}),[]),(0,n.jsxs)("nav",{className:"flex fixed items-center justify-between top-0 w-[100vw] bg-black/75 z-[100] px-5 py-2",children:[o?(0,n.jsx)(eT.Z,{fontSize:"large",onClick:()=>l(!0)}):(0,n.jsxs)(p.Z,{className:"flex items-center text-[1.2rem] font-bold gap-4",children:[(0,n.jsx)(eU.default,{href:"/",children:(0,n.jsx)("img",{src:"/img/nexgami.png",width:40})}),u.map((e,t)=>{if(-1==e.showMode||1==e.showMode)return(0,n.jsx)(eU.default,{className:"/"+c==e.href?"underline underline-offset-8 decoration-4 decoration-nexgami-blue":"hover:text-nexgami-blue",href:e.href,children:e.label},t.toString())})]}),(0,n.jsxs)(p.Z,{className:"flex items-center gap-2",children:[a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eW.W3C
1onnectButton,{}),!d&&(0,n.jsx)(eW.W3NetworkButton,{})]}),(0,n.jsx)(e_,{fullpageApi:t})]}),(0,n.jsxs)(eM.Z,{anchor:"left",open:i,onOpen:()=>{l(!0)},onClose:h,sx:{width:"100vw",".MuiDrawer-paper":{width:"100vw",height:"100vh",backgroundColor:"transparent"}},children:[(0,n.jsx)(p.Z,{sx:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",bgcolor:"rgba(0, 0, 0, 0.8)"},onClick:h}),(0,n.jsx)(ey.Z,{style:{color:"white"},fontSize:"large",className:"absolute top-5 right-5 cursor-pointer"}),(0,n.jsx)(p.Z,{id:"drawerContent",sx:{p:2,position:"relative",color:"white",fontSize:"1.4rem",fontWeight:"bold",padding:5},onClick:h,children:(0,n.jsx)(E.Z,{spacing:4,divider:(0,n.jsx)(eP.Z,{sx:{backgroundColor:"lightgray"}}),children:u.map((e,t)=>{if(-1==e.showMode||2==e.showMode)return(0,n.jsx)(eU.default,{href:e.href,children:e.label},t)})})})]})]})}},67471:function(){}},function(e){e.O(0,[6990,7205,6864,6764,9243,9647,9907,9626,3078,7640,2825,4299,7136,1970,7126,1223,2967,6423,4244,4784,4135,2971,8069,1744],function(){return e(e.s=20672)}),_N_E=e.O()}]);

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.