From e7c3fe969c1fb9d31852ef1492ddc30060671730 Mon Sep 17 00:00:00 2001 From: wxydev002 Date: Wed, 11 Dec 2024 06:15:20 +0000 Subject: [PATCH] deploy: EnReachNetwork/dashboard-frontend@b300ee4b8061868fecfa1d8d651021e5f65ebb31 --- 404.html | 2 +- .../_buildManifest.js | 0 .../_ssgManifest.js | 0 _next/static/chunks/793-327bff35c796ea77.js | 1 - _next/static/chunks/793-4912cbc95d251772.js | 1 + _next/static/chunks/app/layout-1ac830b20c6cdaef.js | 1 - _next/static/chunks/app/layout-72b8b4ec509e3d4b.js | 1 + .../{page-00f83f0fd3d03d99.js => page-1060cb638466285c.js} | 2 +- _next/static/chunks/app/reset/page-4746af26c8e958d8.js | 1 - _next/static/chunks/app/reset/page-8b4b511cc1da3994.js | 1 + .../{page-a7715855bc60883c.js => page-f3d3cab745ce8610.js} | 2 +- .../{page-9d7a0ec0cd1738c6.js => page-46b01a6a235674b2.js} | 2 +- index.html | 2 +- index.txt | 6 +++--- ping.html | 2 +- ping.txt | 4 ++-- reset.html | 2 +- reset.txt | 6 +++--- signin.html | 2 +- signin.txt | 6 +++--- signup.html | 2 +- signup.txt | 6 +++--- 22 files changed, 26 insertions(+), 26 deletions(-) rename _next/static/{2Y2K-HH9R7EOgnU-mNnQ0 => 4ybbxYGGvTZFz6wlHgpP0}/_buildManifest.js (100%) rename _next/static/{2Y2K-HH9R7EOgnU-mNnQ0 => 4ybbxYGGvTZFz6wlHgpP0}/_ssgManifest.js (100%) delete mode 100644 _next/static/chunks/793-327bff35c796ea77.js create mode 100644 _next/static/chunks/793-4912cbc95d251772.js delete mode 100644 _next/static/chunks/app/layout-1ac830b20c6cdaef.js create mode 100644 _next/static/chunks/app/layout-72b8b4ec509e3d4b.js rename _next/static/chunks/app/{page-00f83f0fd3d03d99.js => page-1060cb638466285c.js} (99%) delete mode 100644 _next/static/chunks/app/reset/page-4746af26c8e958d8.js create mode 100644 _next/static/chunks/app/reset/page-8b4b511cc1da3994.js rename _next/static/chunks/app/signin/{page-a7715855bc60883c.js => page-f3d3cab745ce8610.js} (95%) rename _next/static/chunks/app/signup/{page-9d7a0ec0cd1738c6.js => page-46b01a6a235674b2.js} (98%) diff --git a/404.html b/404.html index 67c24b3..b7aa80a 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -EnReach Dashboard \ No newline at end of file +EnReach Dashboard \ No newline at end of file diff --git a/_next/static/2Y2K-HH9R7EOgnU-mNnQ0/_buildManifest.js b/_next/static/4ybbxYGGvTZFz6wlHgpP0/_buildManifest.js similarity index 100% rename from _next/static/2Y2K-HH9R7EOgnU-mNnQ0/_buildManifest.js rename to _next/static/4ybbxYGGvTZFz6wlHgpP0/_buildManifest.js diff --git a/_next/static/2Y2K-HH9R7EOgnU-mNnQ0/_ssgManifest.js b/_next/static/4ybbxYGGvTZFz6wlHgpP0/_ssgManifest.js similarity index 100% rename from _next/static/2Y2K-HH9R7EOgnU-mNnQ0/_ssgManifest.js rename to _next/static/4ybbxYGGvTZFz6wlHgpP0/_ssgManifest.js diff --git a/_next/static/chunks/793-327bff35c796ea77.js b/_next/static/chunks/793-327bff35c796ea77.js deleted file mode 100644 index b5d3745..0000000 --- a/_next/static/chunks/793-327bff35c796ea77.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[793],{63568:function(e,t,n){n.d(t,{Vo:function(){return u},Ho:function(){return f},Eu:function(){return p}});var r=n(81210),a=n(74572);function o(){return window.EnReachAI}var s=n(76114),i=n(95258),l=n(49755);let u=(0,l.createContext)({login:async()=>{},setUser:()=>{},logout:()=>{}}),c="last-login-user",d=()=>{try{let e=localStorage.getItem(c);if(!e)return null;return JSON.parse(e)}catch(e){return console.error(e),null}},f=e=>{let{children:t}=e,n=(0,l.useRef)(!1),f=(0,i.useRouter)(),[p,m]=(0,l.useState)(d()),h=e=>{var t,r;e?(n.current=!1,m(e),localStorage.setItem(c,JSON.stringify(e)),e.token&&(null===(r=o())||void 0===r||r.request({name:"setAccessToken",body:e.token}).catch(console.error)),f.push("/")):(n.current=!0,m(null),localStorage.removeItem(c),null===(t=o())||void 0===t||t.request({name:"clearAccessToken"}).catch(console.error),f.push("/signin"))},g=()=>{h()};(0,l.useEffect)(()=>{let e;return p&&p.token&&(e=setInterval(()=>{let e=o();if(!e){console.warn("Extension not installed");return}e.request({name:"getStat"}).then(e=>{e.logined||(console.info("sync logout from ext"),g())}).catch(console.error)},1e3)),()=>clearInterval(e)},[p]);let x=async e=>{try{if(!e.email||!e.password)return;let t=await a.Z.loginApi(e);h(t),a.Z.setAuth()}catch(e){throw console.error(e),e}};a.Z.setAuth(null==p?void 0:p.token);let w=(0,s.a)({queryKey:["QueryUserInfo",null==p?void 0:p.token],enabled:!!(null==p?void 0:p.token),queryFn:()=>a.Z.userInfo()});return(0,r.jsx)(u.Provider,{value:{user:p,login:x,logout:g,setUser:h,queryUserInfo:w},children:t})},p=()=>(0,l.useContext)(u)},2793:function(e,t,n){n.d(t,{e:function(){return w}});var r=n(81210),a=n(84200),o=n(27767),s=n(77422),i=n(36689),l=n(17528),u=n(49755),c=n(44384),d=n(47608),f=n(54957),p=n(52897),m=n(74572),h=n(63568),g=n(83332),x=n(13882);function w(e){let{defReferralCode:t,btn:n="Sign in with Google",isDisabled:w}=e,v=(0,h.Eu)(),[b,y]=(0,u.useState)(""),[j,k]=(0,f.Z)(!1),[N,A]=(0,u.useState)(!1),C=(0,u.useRef)(""),{mutate:R,isPending:I}=(0,l.D)({onError:d.rV,mutationFn:async e=>{A(!1),C.current=e.access_token;let n=await m.Z.loginByGoogleApi({accessToken:e.access_token});if(n.token)v.setUser(n);else if(t&&!0===(0,p.tx)(t)){let e=await m.Z.loginSetReferralApi({accessToken:C.current,referralCode:t}).catch(d.rV);e?v.setUser(e):k()}else k()}}),S=(0,c.Nq)({flow:"implicit",onError:e=>{A(!1),(0,d.rV)(e.error_description)},onSuccess:R}),{mutate:E,isPending:U}=(0,l.D)({onError:d.rV,mutationFn:async()=>{if(!0!==(0,p.tx)(b)||!C.current)return;let e=await m.Z.loginSetReferralApi({accessToken:C.current,referralCode:b});v.setUser(e),k(!1)}}),{mutate:Z,isPending:P}=(0,l.D)({onError:d.rV,mutationFn:async()=>{if(!C.current)return;let e=await m.Z.loginSetReferralApi({accessToken:C.current});v.setUser(e),k(!1)}}),T=U||I||!0!==(0,p.tx)(b)||!C.current,_=w||I||N;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.un,{color:"default",type:"button",isDisabled:_,isLoading:I||N,onClick:()=>{A(!0),S()},children:[(0,r.jsx)(a.JM8,{})," ",n]}),(0,r.jsxs)(s.m,{isOpen:j,children:[(0,r.jsx)("p",{className:"self-stretch flex-grow-0 flex-shrink-0 text-base text-center text-white",children:"A Special Welcome"}),(0,r.jsx)("p",{className:"self-stretch flex-grow-0 flex-shrink-0 text-sm text-center text-white/50",children:"Join in EnReach's Open Edge journey and earn BERRY rewards with extra boost!"}),(0,r.jsx)(i.Fx,{onChange:y}),(0,r.jsx)(o.un,{isDisabled:T,className:"w-full",onClick:()=>E(),isLoading:U,children:"Get Boosted"}),(0,r.jsx)("div",{className:"flex justify-center text-white/80 text-sm",children:(0,r.jsx)(x.g,{onClick:()=>Z(),className:"ml-2 text-xs",children:P?(0,r.jsx)(g.c,{size:"sm"}):"Skip"})})]})]})}},27767:function(e,t,n){n.d(t,{a5:function(){return u},uU:function(){return l},un:function(){return i}});var r=n(81210),a=n(11013),o=n(41551),s=n(62365);function i(e){let{children:t,className:n,...s}=e;return(0,r.jsx)(a.A,{color:"primary",className:(0,o.cn)("h-[2.625rem] hover:bg-default","default"==s.color?"hover:bg-l1":"",n),...s,children:t})}function l(e){let{children:t,className:n,...s}=e;return(0,r.jsx)(a.A,{color:"primary",className:(0,o.cn)("h-[2.625rem] bg-l1 shadow-1 backdrop-blur-lg hover:bg-primary",n),...s,children:t})}function u(e){let{children:t,className:n,tip:i,...l}=e;return(0,r.jsx)(s.S,{content:i,children:(0,r.jsx)(a.A,{color:"primary",className:(0,o.cn)("h-8 w-8 min-w-8 max-w-8 rounded-full p-0 hover:bg-default",n),...l,children:t})})}},77422:function(e,t,n){n.d(t,{C:function(){return c},m:function(){return u}});var r=n(81210),a=n(29906),o=n(12014),s=n(21585),i=n(10307),l=n(85947);function u(e){let{children:t,contentProps:n,bodyProps:i,...l}=e;return(0,r.jsx)(a.R,{isDismissable:!1,backdrop:"blur",classNames:{backdrop:"backdrop-blur"},hideCloseButton:!0,...l,children:(0,r.jsx)(o.A,{className:"w-[22.5rem] p-6 bg-m1 rounded-3xl",...n||{},children:(0,r.jsx)(s.I,{className:"flex flex-col justify-start items-center w-full gap-6 p-0",...i||{},children:t})})})}function c(e){let{tit:t,children:n,contentProps:u,bodyProps:c,...d}=e;return(0,r.jsx)(a.R,{hideCloseButton:!0,backdrop:"blur",classNames:{backdrop:"backdrop-blur"},...d,children:(0,r.jsx)(o.A,{className:"w-[31.25rem] bg-m1 gap-6 p-6 rounded-3xl",...u||{},children:e=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.k,{className:"justify-between p-0",children:[(0,r.jsx)("span",{className:"text-base font-bold text-left text-white",children:t}),(0,r.jsx)("div",{className:"p-0 rounded-full w-6 h-6 flex justify-center items-center text-xs cursor-pointer bg-white/10 hover:bg-white/30",onClick:e,children:(0,r.jsx)(l.q5L,{})})]}),(0,r.jsx)(s.I,{className:"flex flex-col justify-start items-center w-full gap-6 p-0",...c||{},children:n})]})})})}},74568:function(e,t,n){n.d(t,{Ie:function(){return i},Ih:function(){return s},if:function(){return l}});var r=n(13910),a=n.n(r),o=n(28853);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=a().toNumber(e);return n?(0,o.Z)(n).format({mantissa:2,trimMantissa:!0,average:n>=1e3}).toUpperCase():t}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n=a().toNumber(e);return n?"".concat(Math.min(a().round(100*n/10),100),"%"):t}function l(e){return Math.max(a().round(a().toNumber(e||"1"),1),1)}},36689:function(e,t,n){n.d(t,{CM:function(){return d},Fx:function(){return h},Iv:function(){return m},e9:function(){return p},j7:function(){return f}});var r=n(81210),a=n(52897),o=n(37018),s=n(84824),i=n(54957),l=n(29060),u=n.n(l);let c={inputWrapper:"h-[2.625rem] rounded-lg bg-l1 border-none backdrop-blur-lg shadow-1 text-xs",label:"text-xs",input:"text-xs !text-white"};function d(e){let{setPassword:t,label:n,error:l,validate:u=a.uo}=e,[d,f]=(0,i.Z)(!1);return(0,r.jsx)(o.Y,{isRequired:!0,classNames:c,type:d?"text":"password",placeholder:n||"Password",labelPlacement:"inside",variant:"bordered",validate:u,endContent:(0,r.jsx)("button",{className:"focus:outline-none h-full",type:"button",onClick:()=>f(),"aria-label":"toggle password visibility",children:d?(0,r.jsx)(s.VhL,{className:"text-xs text-default-400 pointer-events-none"}):(0,r.jsx)(s.nO8,{className:"text-xs text-default-400 pointer-events-none"})}),errorMessage:l,onChange:e=>t(e.target.value)})}function f(e){let{setEmail:t,value:n}=e;return(0,r.jsx)(o.Y,{value:n,classNames:c,type:"email",placeholder:"Email",labelPlacement:"inside",variant:"bordered",isRequired:!0,validate:a.oH,onChange:e=>t(e.target.value)})}function p(e){let{setReferalCode:t,value:n}=e;return(0,r.jsx)(o.Y,{value:n,classNames:c,type:"text",placeholder:"Referral code (optional)",labelPlacement:"inside",variant:"bordered",isRequired:!0,validate:a.tx,onChange:e=>t(e.target.value)})}function m(e){let{setVerifyCode:t}=e;return(0,r.jsx)(o.Y,{classNames:c,type:"text",placeholder:"Verification Code",labelPlacement:"inside",variant:"bordered",isRequired:!0,validate:a.jg,onChange:e=>t(e.target.value)})}function h(e){let{onComplete:t,onChange:n}=e;return(0,r.jsx)(u(),{placeholder:"",onChange:n,onComplete:t,classNames:{container:"w-full justify-between h-[2.625rem] ",character:"rounded-lg max-w-[2.625rem] w-[2.625rem] bg-l1 bg-transparent backdrop-blur-lg shadow-1 text-white text-xl leading-[2.625rem] uppercase"}})}},13882:function(e,t,n){n.d(t,{g:function(){return s}});var r=n(81210),a=n(41551),o=n(36805);function s(e){let{children:t,className:n,onClick:s,isDisable:i,href:l="javascript:void(0);",...u}=e;return(0,r.jsx)(o.default,{href:l,onClick:e=>{i||null==s||s(e)},className:(0,a.cn)("underline text-white/60 hover:text-primary cursor-pointer",{"cursor-not-allowed hover:text-white/60":i},n),...u,children:t})}},62365:function(e,t,n){n.d(t,{S:function(){return s}});var r=n(81210),a=n(62216),o=n(47048);function s(e){let{content:t,children:n}=e;return(0,r.jsx)(a.e,{showArrow:!1,content:t,color:"default",className:" min-h-9 min-w-[4.5rem] max-w-[12.5rem]",classNames:{content:"bg-[#40414F] border border-solid border-[rgba(255,255,255,0.1)] min-h-9 min-w-[4.5rem] text-xs"},children:n||(0,r.jsx)("button",{className:"outline-none border-none",children:(0,r.jsx)(o.nj5,{})})})}},74572:function(e,t,n){n.d(t,{t:function(){return l}});var r=n(80957),a=n(36957),o=n(13910),s=n.n(o),i=n(74568);let l={beta:"https://dev-api.enreach.network/api",staging:"https://staging-api-1.enreach.network/api",prod:"https://api.enreach.network/api"}[a.Vi],u=r.default.create({baseURL:l,headers:{"Content-Type":"application/json"}}),c={setAuth:e=>{e?u.defaults.headers.common.Authorization=e.startsWith("Bearer")?e:"Bearer ".concat(e):delete u.defaults.headers.common.Authorization},loginApi:async e=>{let t=await u.post("/user/signIn",e);return c.setAuth(t.data.data.token),t.data.data},loginByGoogleApi:async e=>{let t=await u.post("/user/google/signIn",e);return c.setAuth(t.data.data.token),t.data.data},loginSetReferralApi:async e=>{let t=await u.post("/user/referral/by",e);return c.setAuth(t.data.data.token),t.data.data},registerApi:async e=>(await u.post("/user/signUp",{...e})).data.data,registerByGoogleApi:async e=>(await u.post("/user/google/signUp",{accessToken:e})).data.data,resendRegisterVerifyCode:async e=>(await u.post("/user/verify/".concat(e,"/resend")),!0),verifyRegisterCode:async(e,t)=>(await u.post("/user/verify/".concat(e,"/").concat(t))).data.data,userInfo:async()=>{let e=await u.get("/user/profile"),t=e.data.data.point;return s().keys(t).forEach(e=>{t[e]=s().toNumber(t[e])}),t.total=(0,i.if)(e.data.data.stat.extraBoost)*t.total,e.data.data},sendResetPassword:async e=>(await u.post("/user/password/reset/send",{email:e}),!0),resetPassword:async e=>(await u.post("/user/password/reset",e),!0),userUpdate:async e=>(await u.post("/user/profile/update",e),!0),userReward:async()=>(await u.get("/user/reward")).data.data,nodeList:async()=>(await u.get("/node/list")).data.data,trendingRewards:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"month";return(await u.get("/trending/rewards",{params:{type:e}})).data.data},getAccessToken:async()=>(await u.get("/user/accessToken")).data.data.accessToken,getIP:async()=>(await r.default.get("https://api.bigdatacloud.net/data/client-ip")).data,updateNodeName:async(e,t)=>(await u.post("/node/rename/".concat(e.connectionId,"/").concat(encodeURIComponent(e.ipAddress),"/").concat(encodeURIComponent(t))),!0)};t.Z=c},36957:function(e,t,n){n.d(t,{Vi:function(){return r},u1:function(){return a}}),n(45303).env.NEXT_PUBLIC_BASE_PATH;let r="staging",a=""},47608:function(e,t,n){n.d(t,{G$:function(){return m},N3:function(){return d},Q1:function(){return g},Y:function(){return h},_v:function(){return p},rV:function(){return f}});var r=n(36062),a=n(28672),o=n.n(a),s=n(85542),i=n.n(s),l=n(94782),u=n(13910),c=n.n(u);function d(e){return e.toLowerCase().replaceAll(" ","_")}function f(e){var t,n;let a;r.Am.error(c().upperFirst((a="Unkown","string"==typeof e?a=e:e instanceof l.d7?a=(null===(n=e.response)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.message)||e.message:"string"==typeof(null==e?void 0:e.msg)?a=null==e?void 0:e.msg:"string"==typeof(null==e?void 0:e.message)&&(a=null==e?void 0:e.message),a).trim()))}function p(e){return new Promise(t=>setTimeout(t,e))}function m(e,t){return o()(e).format(t)}function h(e,t){return o().duration(e).format(t)}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;return c().round(e/t,4)+"rem"}o().extend(i())},52897:function(e,t,n){function r(e){return e?!!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e)||"Please enter a vaild email !":null}function a(e){return e?!!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[A-Za-z\d@$!%*?&]{8,}$/.test(e)||"Your password must be at least 8 characters long and include: at least one uppercase letter, one lowercase letter, and one number. Special characters (@$!%*?&) are allowed.":null}function o(e,t){return e&&t?e===t||"Passwords do not match!":null}function s(e){return e?6==e.length||"Invalid referral code!":null}function i(e){return e?6==e.length||"Invalid verification code":null}n.d(t,{S$:function(){return o},jg:function(){return i},oH:function(){return r},tx:function(){return s},uo:function(){return a}})}}]); \ No newline at end of file diff --git a/_next/static/chunks/793-4912cbc95d251772.js b/_next/static/chunks/793-4912cbc95d251772.js new file mode 100644 index 0000000..c2b9ea5 --- /dev/null +++ b/_next/static/chunks/793-4912cbc95d251772.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[793],{53179:function(e,t,n){n.d(t,{Vo:function(){return d},Ho:function(){return h},Eu:function(){return m}});var r=n(81210),a=n(74572),o=n(36957);let s={beta:"EnreachExt_beta",staging:"EnreachExt_staging",prod:"EnreachExt"};function i(){return window[s[o.Vi]]}var l=n(76114),c=n(95258),u=n(49755);let d=(0,u.createContext)({login:async()=>{},setUser:()=>{},logout:()=>{}}),f="last-login-user",p=()=>{try{let e=localStorage.getItem(f);if(!e)return null;return JSON.parse(e)}catch(e){return console.error(e),null}},h=e=>{let{children:t}=e,n=(0,u.useRef)(!1),o=(0,c.useRouter)(),[s,h]=(0,u.useState)(p()),m=e=>{var t,r;e?(n.current=!1,h(e),localStorage.setItem(f,JSON.stringify(e)),e.token&&(null===(r=i())||void 0===r||r.request({name:"setAccessToken",body:e.token}).catch(console.error)),o.push("/")):(n.current=!0,h(null),localStorage.removeItem(f),null===(t=i())||void 0===t||t.request({name:"clearAccessToken"}).catch(console.error),o.push("/signin"))},g=()=>{m()};(0,u.useEffect)(()=>{let e;return s&&s.token&&(e=setInterval(()=>{let e=i();if(!e){console.warn("Extension not installed");return}e.request({name:"getStat"}).then(e=>{e.logined||(console.info("sync logout from ext"),g())}).catch(console.error)},1e3)),()=>clearInterval(e)},[s]);let x=async e=>{try{if(!e.email||!e.password)return;let t=await a.Z.loginApi(e);m(t),a.Z.setAuth()}catch(e){throw console.error(e),e}};a.Z.setAuth(null==s?void 0:s.token);let w=(0,l.a)({queryKey:["QueryUserInfo",null==s?void 0:s.token],enabled:!!(null==s?void 0:s.token),queryFn:()=>a.Z.userInfo()});return(0,r.jsx)(d.Provider,{value:{user:s,login:x,logout:g,setUser:m,queryUserInfo:w},children:t})},m=()=>(0,u.useContext)(d)},2793:function(e,t,n){n.d(t,{e:function(){return w}});var r=n(81210),a=n(84200),o=n(27767),s=n(77422),i=n(36689),l=n(17528),c=n(49755),u=n(44384),d=n(47608),f=n(54957),p=n(52897),h=n(74572),m=n(53179),g=n(83332),x=n(13882);function w(e){let{defReferralCode:t,btn:n="Sign in with Google",isDisabled:w}=e,b=(0,m.Eu)(),[v,y]=(0,c.useState)(""),[j,k]=(0,f.Z)(!1),[N,A]=(0,c.useState)(!1),C=(0,c.useRef)(""),{mutate:R,isPending:E}=(0,l.D)({onError:d.rV,mutationFn:async e=>{A(!1),C.current=e.access_token;let n=await h.Z.loginByGoogleApi({accessToken:e.access_token});if(n.token)b.setUser(n);else if(t&&!0===(0,p.tx)(t)){let e=await h.Z.loginSetReferralApi({accessToken:C.current,referralCode:t}).catch(d.rV);e?b.setUser(e):k()}else k()}}),I=(0,u.Nq)({flow:"implicit",onError:e=>{A(!1),(0,d.rV)(e.error_description)},onSuccess:R}),{mutate:S,isPending:U}=(0,l.D)({onError:d.rV,mutationFn:async()=>{if(!0!==(0,p.tx)(v)||!C.current)return;let e=await h.Z.loginSetReferralApi({accessToken:C.current,referralCode:v});b.setUser(e),k(!1)}}),{mutate:Z,isPending:P}=(0,l.D)({onError:d.rV,mutationFn:async()=>{if(!C.current)return;let e=await h.Z.loginSetReferralApi({accessToken:C.current});b.setUser(e),k(!1)}}),_=U||E||!0!==(0,p.tx)(v)||!C.current,T=w||E||N;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.un,{color:"default",type:"button",isDisabled:T,isLoading:E||N,onClick:()=>{A(!0),I()},children:[(0,r.jsx)(a.JM8,{})," ",n]}),(0,r.jsxs)(s.m,{isOpen:j,children:[(0,r.jsx)("p",{className:"self-stretch flex-grow-0 flex-shrink-0 text-base text-center text-white",children:"A Special Welcome"}),(0,r.jsx)("p",{className:"self-stretch flex-grow-0 flex-shrink-0 text-sm text-center text-white/50",children:"Join in EnReach's Open Edge journey and earn BERRY rewards with extra boost!"}),(0,r.jsx)(i.Fx,{onChange:y}),(0,r.jsx)(o.un,{isDisabled:_,className:"w-full",onClick:()=>S(),isLoading:U,children:"Get Boosted"}),(0,r.jsx)("div",{className:"flex justify-center text-white/80 text-sm",children:(0,r.jsx)(x.g,{onClick:()=>Z(),className:"ml-2 text-xs",children:P?(0,r.jsx)(g.c,{size:"sm"}):"Skip"})})]})]})}},27767:function(e,t,n){n.d(t,{a5:function(){return c},uU:function(){return l},un:function(){return i}});var r=n(81210),a=n(11013),o=n(41551),s=n(62365);function i(e){let{children:t,className:n,...s}=e;return(0,r.jsx)(a.A,{color:"primary",className:(0,o.cn)("h-[2.625rem] hover:bg-default","default"==s.color?"hover:bg-l1":"",n),...s,children:t})}function l(e){let{children:t,className:n,...s}=e;return(0,r.jsx)(a.A,{color:"primary",className:(0,o.cn)("h-[2.625rem] bg-l1 shadow-1 backdrop-blur-lg hover:bg-primary",n),...s,children:t})}function c(e){let{children:t,className:n,tip:i,...l}=e;return(0,r.jsx)(s.S,{content:i,children:(0,r.jsx)(a.A,{color:"primary",className:(0,o.cn)("h-8 w-8 min-w-8 max-w-8 rounded-full p-0 hover:bg-default",n),...l,children:t})})}},77422:function(e,t,n){n.d(t,{C:function(){return u},m:function(){return c}});var r=n(81210),a=n(29906),o=n(12014),s=n(21585),i=n(10307),l=n(85947);function c(e){let{children:t,contentProps:n,bodyProps:i,...l}=e;return(0,r.jsx)(a.R,{isDismissable:!1,backdrop:"blur",classNames:{backdrop:"backdrop-blur"},hideCloseButton:!0,...l,children:(0,r.jsx)(o.A,{className:"w-[22.5rem] p-6 bg-m1 rounded-3xl",...n||{},children:(0,r.jsx)(s.I,{className:"flex flex-col justify-start items-center w-full gap-6 p-0",...i||{},children:t})})})}function u(e){let{tit:t,children:n,contentProps:c,bodyProps:u,...d}=e;return(0,r.jsx)(a.R,{hideCloseButton:!0,backdrop:"blur",classNames:{backdrop:"backdrop-blur"},...d,children:(0,r.jsx)(o.A,{className:"w-[31.25rem] bg-m1 gap-6 p-6 rounded-3xl",...c||{},children:e=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.k,{className:"justify-between p-0",children:[(0,r.jsx)("span",{className:"text-base font-bold text-left text-white",children:t}),(0,r.jsx)("div",{className:"p-0 rounded-full w-6 h-6 flex justify-center items-center text-xs cursor-pointer bg-white/10 hover:bg-white/30",onClick:e,children:(0,r.jsx)(l.q5L,{})})]}),(0,r.jsx)(s.I,{className:"flex flex-col justify-start items-center w-full gap-6 p-0",...u||{},children:n})]})})})}},74568:function(e,t,n){n.d(t,{Ie:function(){return i},Ih:function(){return s},if:function(){return l}});var r=n(13910),a=n.n(r),o=n(28853);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=a().toNumber(e);return n?(0,o.Z)(n).format({mantissa:2,trimMantissa:!0,average:n>=1e3}).toUpperCase():t}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n=a().toNumber(e);return n?"".concat(Math.min(a().round(100*n/10),100),"%"):t}function l(e){return Math.max(a().round(a().toNumber(e||"1"),1),1)}},36689:function(e,t,n){n.d(t,{CM:function(){return d},Fx:function(){return m},Iv:function(){return h},e9:function(){return p},j7:function(){return f}});var r=n(81210),a=n(52897),o=n(37018),s=n(84824),i=n(54957),l=n(29060),c=n.n(l);let u={inputWrapper:"h-[2.625rem] rounded-lg bg-l1 border-none backdrop-blur-lg shadow-1 text-xs",label:"text-xs",input:"text-xs !text-white"};function d(e){let{setPassword:t,label:n,error:l,validate:c=a.uo}=e,[d,f]=(0,i.Z)(!1);return(0,r.jsx)(o.Y,{isRequired:!0,classNames:u,type:d?"text":"password",placeholder:n||"Password",labelPlacement:"inside",variant:"bordered",validate:c,endContent:(0,r.jsx)("button",{className:"focus:outline-none h-full",type:"button",onClick:()=>f(),"aria-label":"toggle password visibility",children:d?(0,r.jsx)(s.VhL,{className:"text-xs text-default-400 pointer-events-none"}):(0,r.jsx)(s.nO8,{className:"text-xs text-default-400 pointer-events-none"})}),errorMessage:l,onChange:e=>t(e.target.value)})}function f(e){let{setEmail:t,value:n}=e;return(0,r.jsx)(o.Y,{value:n,classNames:u,type:"email",placeholder:"Email",labelPlacement:"inside",variant:"bordered",isRequired:!0,validate:a.oH,onChange:e=>t(e.target.value)})}function p(e){let{setReferalCode:t,value:n}=e;return(0,r.jsx)(o.Y,{value:n,classNames:u,type:"text",placeholder:"Referral code (optional)",labelPlacement:"inside",variant:"bordered",isRequired:!0,validate:a.tx,onChange:e=>t(e.target.value)})}function h(e){let{setVerifyCode:t}=e;return(0,r.jsx)(o.Y,{classNames:u,type:"text",placeholder:"Verification Code",labelPlacement:"inside",variant:"bordered",isRequired:!0,validate:a.jg,onChange:e=>t(e.target.value)})}function m(e){let{onComplete:t,onChange:n}=e;return(0,r.jsx)(c(),{placeholder:"",onChange:n,onComplete:t,classNames:{container:"w-full justify-between h-[2.625rem] ",character:"rounded-lg max-w-[2.625rem] w-[2.625rem] bg-l1 bg-transparent backdrop-blur-lg shadow-1 text-white text-xl leading-[2.625rem] uppercase"}})}},13882:function(e,t,n){n.d(t,{g:function(){return s}});var r=n(81210),a=n(41551),o=n(36805);function s(e){let{children:t,className:n,onClick:s,isDisable:i,href:l="javascript:void(0);",...c}=e;return(0,r.jsx)(o.default,{href:l,onClick:e=>{i||null==s||s(e)},className:(0,a.cn)("underline text-white/60 hover:text-primary cursor-pointer",{"cursor-not-allowed hover:text-white/60":i},n),...c,children:t})}},62365:function(e,t,n){n.d(t,{S:function(){return s}});var r=n(81210),a=n(62216),o=n(47048);function s(e){let{content:t,children:n}=e;return(0,r.jsx)(a.e,{showArrow:!1,content:t,color:"default",className:" min-h-9 min-w-[4.5rem] max-w-[12.5rem]",classNames:{content:"bg-[#40414F] border border-solid border-[rgba(255,255,255,0.1)] min-h-9 min-w-[4.5rem] text-xs"},children:n||(0,r.jsx)("button",{className:"outline-none border-none",children:(0,r.jsx)(o.nj5,{})})})}},74572:function(e,t,n){n.d(t,{t:function(){return l}});var r=n(80957),a=n(36957),o=n(13910),s=n.n(o),i=n(74568);let l={beta:"https://dev-api.enreach.network/api",staging:"https://staging-api-1.enreach.network/api",prod:"https://api.enreach.network/api"}[a.Vi],c=r.default.create({baseURL:l,headers:{"Content-Type":"application/json"}}),u={setAuth:e=>{e?c.defaults.headers.common.Authorization=e.startsWith("Bearer")?e:"Bearer ".concat(e):delete c.defaults.headers.common.Authorization},loginApi:async e=>{let t=await c.post("/user/signIn",e);return u.setAuth(t.data.data.token),t.data.data},loginByGoogleApi:async e=>{let t=await c.post("/user/google/signIn",e);return u.setAuth(t.data.data.token),t.data.data},loginSetReferralApi:async e=>{let t=await c.post("/user/referral/by",e);return u.setAuth(t.data.data.token),t.data.data},registerApi:async e=>(await c.post("/user/signUp",{...e})).data.data,registerByGoogleApi:async e=>(await c.post("/user/google/signUp",{accessToken:e})).data.data,resendRegisterVerifyCode:async e=>(await c.post("/user/verify/".concat(e,"/resend")),!0),verifyRegisterCode:async(e,t)=>(await c.post("/user/verify/".concat(e,"/").concat(t))).data.data,userInfo:async()=>{let e=await c.get("/user/profile"),t=e.data.data.point;return s().keys(t).forEach(e=>{t[e]=s().toNumber(t[e])}),t.total=(0,i.if)(e.data.data.stat.extraBoost)*t.total,e.data.data},sendResetPassword:async e=>(await c.post("/user/password/reset/send",{email:e}),!0),resetPassword:async e=>(await c.post("/user/password/reset",e),!0),userUpdate:async e=>(await c.post("/user/profile/update",e),!0),userReward:async()=>(await c.get("/user/reward")).data.data,nodeList:async()=>(await c.get("/node/list")).data.data,trendingRewards:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"month";return(await c.get("/trending/rewards",{params:{type:e}})).data.data},getAccessToken:async()=>(await c.get("/user/accessToken")).data.data.accessToken,getIP:async()=>(await r.default.get("https://api.bigdatacloud.net/data/client-ip")).data,updateNodeName:async(e,t)=>(await c.post("/node/rename/".concat(e.connectionId,"/").concat(encodeURIComponent(e.ipAddress),"/").concat(encodeURIComponent(t))),!0)};t.Z=u},36957:function(e,t,n){n.d(t,{Vi:function(){return r},u1:function(){return a}}),n(45303).env.NEXT_PUBLIC_BASE_PATH;let r="staging",a=""},47608:function(e,t,n){n.d(t,{G$:function(){return h},N3:function(){return d},Q1:function(){return g},Y:function(){return m},_v:function(){return p},rV:function(){return f}});var r=n(36062),a=n(28672),o=n.n(a),s=n(85542),i=n.n(s),l=n(94782),c=n(13910),u=n.n(c);function d(e){return e.toLowerCase().replaceAll(" ","_")}function f(e){var t,n;let a;r.Am.error(u().upperFirst((a="Unkown","string"==typeof e?a=e:e instanceof l.d7?a=(null===(n=e.response)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.message)||e.message:"string"==typeof(null==e?void 0:e.msg)?a=null==e?void 0:e.msg:"string"==typeof(null==e?void 0:e.message)&&(a=null==e?void 0:e.message),a).trim()))}function p(e){return new Promise(t=>setTimeout(t,e))}function h(e,t){return o()(e).format(t)}function m(e,t){return o().duration(e).format(t)}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;return u().round(e/t,4)+"rem"}o().extend(i())},52897:function(e,t,n){function r(e){return e?!!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e)||"Please enter a vaild email !":null}function a(e){return e?!!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[A-Za-z\d@$!%*?&]{8,}$/.test(e)||"Your password must be at least 8 characters long and include: at least one uppercase letter, one lowercase letter, and one number. Special characters (@$!%*?&) are allowed.":null}function o(e,t){return e&&t?e===t||"Passwords do not match!":null}function s(e){return e?6==e.length||"Invalid referral code!":null}function i(e){return e?6==e.length||"Invalid verification code":null}n.d(t,{S$:function(){return o},jg:function(){return i},oH:function(){return r},tx:function(){return s},uo:function(){return a}})}}]); \ No newline at end of file diff --git a/_next/static/chunks/app/layout-1ac830b20c6cdaef.js b/_next/static/chunks/app/layout-1ac830b20c6cdaef.js deleted file mode 100644 index f809aff..0000000 --- a/_next/static/chunks/app/layout-1ac830b20c6cdaef.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{35157:function(e,t,n){Promise.resolve().then(n.bind(n,60491)),Promise.resolve().then(n.bind(n,9371)),Promise.resolve().then(n.bind(n,35802)),Promise.resolve().then(n.bind(n,59404)),Promise.resolve().then(n.bind(n,42351)),Promise.resolve().then(n.bind(n,17861)),Promise.resolve().then(n.bind(n,6419)),Promise.resolve().then(n.bind(n,72361)),Promise.resolve().then(n.bind(n,23857)),Promise.resolve().then(n.bind(n,69085)),Promise.resolve().then(n.bind(n,24714)),Promise.resolve().then(n.bind(n,89121)),Promise.resolve().then(n.bind(n,78526)),Promise.resolve().then(n.bind(n,8221)),Promise.resolve().then(n.bind(n,87844)),Promise.resolve().then(n.bind(n,72714)),Promise.resolve().then(n.bind(n,75473)),Promise.resolve().then(n.bind(n,58648)),Promise.resolve().then(n.bind(n,99250)),Promise.resolve().then(n.bind(n,79361)),Promise.resolve().then(n.bind(n,25366)),Promise.resolve().then(n.bind(n,34350)),Promise.resolve().then(n.bind(n,57250)),Promise.resolve().then(n.bind(n,77469)),Promise.resolve().then(n.bind(n,85353)),Promise.resolve().then(n.bind(n,90917)),Promise.resolve().then(n.bind(n,17075)),Promise.resolve().then(n.bind(n,62850)),Promise.resolve().then(n.bind(n,62223)),Promise.resolve().then(n.bind(n,50398)),Promise.resolve().then(n.bind(n,98967)),Promise.resolve().then(n.bind(n,40022)),Promise.resolve().then(n.bind(n,29277)),Promise.resolve().then(n.bind(n,23222)),Promise.resolve().then(n.bind(n,33233)),Promise.resolve().then(n.bind(n,23320)),Promise.resolve().then(n.bind(n,71305)),Promise.resolve().then(n.t.bind(n,40001,23)),Promise.resolve().then(n.t.bind(n,72324,23)),Promise.resolve().then(n.t.bind(n,43323,23)),Promise.resolve().then(n.t.bind(n,55398,23)),Promise.resolve().then(n.bind(n,58782)),Promise.resolve().then(n.t.bind(n,54327,23))},58782:function(e,t,n){"use strict";n.d(t,{PageLayout:function(){return v}});var r=n(81210),s=n(38722),o=n(49755),a=n(36062),i=n(63568),l=n(60164),d=n(20337),c=n(44384),u=n(87106),h=n(65843);n(77422);let m=()=>{let e="dark",t="dark";return"light"!==localStorage.theme&&("theme"in localStorage||!window.matchMedia("(prefers-color-scheme: light)").matches)?(document.documentElement.classList.add("dark"),e="dark",t="dark"):(e="light",t="light"),"theme"in localStorage||(e="system"),{themeMode:e,theme:t}},f=(0,h.U)(e=>({...m(),setThemeMode:t=>e(()=>({themeMode:t})),setTheme:t=>e(()=>({theme:t}))}));u.EWX,u.Dq,u.pUp;let p=new l.S;function b(e){let{children:t}=e;return f(),(0,r.jsx)(s.w,{className:"App max-w-[96rem] mx-auto",children:(0,r.jsx)(c.rg,{clientId:"425165933886-vpv32tvbhfeqfujnel0fdjm88kfn1lhn.apps.googleusercontent.com",children:(0,r.jsx)(d.aH,{client:p,children:(0,r.jsx)(i.Ho,{children:t})})})})}function v(e){let{children:t}=e,[n,s]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{n||s(!0)},[n]),n)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.x7,{position:"top-right",offset:70,theme:"light"}),(0,r.jsx)(b,{children:t})]}):null}},63568:function(e,t,n){"use strict";n.d(t,{Vo:function(){return d},Ho:function(){return h},Eu:function(){return m}});var r=n(81210),s=n(74572);function o(){return window.EnReachAI}var a=n(76114),i=n(95258),l=n(49755);let d=(0,l.createContext)({login:async()=>{},setUser:()=>{},logout:()=>{}}),c="last-login-user",u=()=>{try{let e=localStorage.getItem(c);if(!e)return null;return JSON.parse(e)}catch(e){return console.error(e),null}},h=e=>{let{children:t}=e,n=(0,l.useRef)(!1),h=(0,i.useRouter)(),[m,f]=(0,l.useState)(u()),p=e=>{var t,r;e?(n.current=!1,f(e),localStorage.setItem(c,JSON.stringify(e)),e.token&&(null===(r=o())||void 0===r||r.request({name:"setAccessToken",body:e.token}).catch(console.error)),h.push("/")):(n.current=!0,f(null),localStorage.removeItem(c),null===(t=o())||void 0===t||t.request({name:"clearAccessToken"}).catch(console.error),h.push("/signin"))},b=()=>{p()};(0,l.useEffect)(()=>{let e;return m&&m.token&&(e=setInterval(()=>{let e=o();if(!e){console.warn("Extension not installed");return}e.request({name:"getStat"}).then(e=>{e.logined||(console.info("sync logout from ext"),b())}).catch(console.error)},1e3)),()=>clearInterval(e)},[m]);let v=async e=>{try{if(!e.email||!e.password)return;let t=await s.Z.loginApi(e);p(t),s.Z.setAuth()}catch(e){throw console.error(e),e}};s.Z.setAuth(null==m?void 0:m.token);let g=(0,a.a)({queryKey:["QueryUserInfo",null==m?void 0:m.token],enabled:!!(null==m?void 0:m.token),queryFn:()=>s.Z.userInfo()});return(0,r.jsx)(d.Provider,{value:{user:m,login:v,logout:b,setUser:p,queryUserInfo:g},children:t})},m=()=>(0,l.useContext)(d)},77422:function(e,t,n){"use strict";n.d(t,{C:function(){return c},m:function(){return d}});var r=n(81210),s=n(29906),o=n(12014),a=n(21585),i=n(10307),l=n(85947);function d(e){let{children:t,contentProps:n,bodyProps:i,...l}=e;return(0,r.jsx)(s.R,{isDismissable:!1,backdrop:"blur",classNames:{backdrop:"backdrop-blur"},hideCloseButton:!0,...l,children:(0,r.jsx)(o.A,{className:"w-[22.5rem] p-6 bg-m1 rounded-3xl",...n||{},children:(0,r.jsx)(a.I,{className:"flex flex-col justify-start items-center w-full gap-6 p-0",...i||{},children:t})})})}function c(e){let{tit:t,children:n,contentProps:d,bodyProps:c,...u}=e;return(0,r.jsx)(s.R,{hideCloseButton:!0,backdrop:"blur",classNames:{backdrop:"backdrop-blur"},...u,children:(0,r.jsx)(o.A,{className:"w-[31.25rem] bg-m1 gap-6 p-6 rounded-3xl",...d||{},children:e=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.k,{className:"justify-between p-0",children:[(0,r.jsx)("span",{className:"text-base font-bold text-left text-white",children:t}),(0,r.jsx)("div",{className:"p-0 rounded-full w-6 h-6 flex justify-center items-center text-xs cursor-pointer bg-white/10 hover:bg-white/30",onClick:e,children:(0,r.jsx)(l.q5L,{})})]}),(0,r.jsx)(a.I,{className:"flex flex-col justify-start items-center w-full gap-6 p-0",...c||{},children:n})]})})})}},74568:function(e,t,n){"use strict";n.d(t,{Ie:function(){return i},Ih:function(){return a},if:function(){return l}});var r=n(13910),s=n.n(r),o=n(28853);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=s().toNumber(e);return n?(0,o.Z)(n).format({mantissa:2,trimMantissa:!0,average:n>=1e3}).toUpperCase():t}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n=s().toNumber(e);return n?"".concat(Math.min(s().round(100*n/10),100),"%"):t}function l(e){return Math.max(s().round(s().toNumber(e||"1"),1),1)}},74572:function(e,t,n){"use strict";n.d(t,{t:function(){return l}});var r=n(80957),s=n(36957),o=n(13910),a=n.n(o),i=n(74568);let l={beta:"https://dev-api.enreach.network/api",staging:"https://staging-api-1.enreach.network/api",prod:"https://api.enreach.network/api"}[s.Vi],d=r.default.create({baseURL:l,headers:{"Content-Type":"application/json"}}),c={setAuth:e=>{e?d.defaults.headers.common.Authorization=e.startsWith("Bearer")?e:"Bearer ".concat(e):delete d.defaults.headers.common.Authorization},loginApi:async e=>{let t=await d.post("/user/signIn",e);return c.setAuth(t.data.data.token),t.data.data},loginByGoogleApi:async e=>{let t=await d.post("/user/google/signIn",e);return c.setAuth(t.data.data.token),t.data.data},loginSetReferralApi:async e=>{let t=await d.post("/user/referral/by",e);return c.setAuth(t.data.data.token),t.data.data},registerApi:async e=>(await d.post("/user/signUp",{...e})).data.data,registerByGoogleApi:async e=>(await d.post("/user/google/signUp",{accessToken:e})).data.data,resendRegisterVerifyCode:async e=>(await d.post("/user/verify/".concat(e,"/resend")),!0),verifyRegisterCode:async(e,t)=>(await d.post("/user/verify/".concat(e,"/").concat(t))).data.data,userInfo:async()=>{let e=await d.get("/user/profile"),t=e.data.data.point;return a().keys(t).forEach(e=>{t[e]=a().toNumber(t[e])}),t.total=(0,i.if)(e.data.data.stat.extraBoost)*t.total,e.data.data},sendResetPassword:async e=>(await d.post("/user/password/reset/send",{email:e}),!0),resetPassword:async e=>(await d.post("/user/password/reset",e),!0),userUpdate:async e=>(await d.post("/user/profile/update",e),!0),userReward:async()=>(await d.get("/user/reward")).data.data,nodeList:async()=>(await d.get("/node/list")).data.data,trendingRewards:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"month";return(await d.get("/trending/rewards",{params:{type:e}})).data.data},getAccessToken:async()=>(await d.get("/user/accessToken")).data.data.accessToken,getIP:async()=>(await r.default.get("https://api.bigdatacloud.net/data/client-ip")).data,updateNodeName:async(e,t)=>(await d.post("/node/rename/".concat(e.connectionId,"/").concat(encodeURIComponent(e.ipAddress),"/").concat(encodeURIComponent(t))),!0)};t.Z=c},36957:function(e,t,n){"use strict";n.d(t,{Vi:function(){return r},u1:function(){return s}}),n(45303).env.NEXT_PUBLIC_BASE_PATH;let r="staging",s=""},54327:function(){}},function(e){e.O(0,[983,686,495,863,720,717,542,510,406,110,444,481,906,403,331,744],function(){return e(e.s=35157)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/layout-72b8b4ec509e3d4b.js b/_next/static/chunks/app/layout-72b8b4ec509e3d4b.js new file mode 100644 index 0000000..f5f7b78 --- /dev/null +++ b/_next/static/chunks/app/layout-72b8b4ec509e3d4b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{35157:function(e,t,n){Promise.resolve().then(n.bind(n,60491)),Promise.resolve().then(n.bind(n,9371)),Promise.resolve().then(n.bind(n,35802)),Promise.resolve().then(n.bind(n,59404)),Promise.resolve().then(n.bind(n,42351)),Promise.resolve().then(n.bind(n,17861)),Promise.resolve().then(n.bind(n,6419)),Promise.resolve().then(n.bind(n,72361)),Promise.resolve().then(n.bind(n,23857)),Promise.resolve().then(n.bind(n,69085)),Promise.resolve().then(n.bind(n,24714)),Promise.resolve().then(n.bind(n,89121)),Promise.resolve().then(n.bind(n,78526)),Promise.resolve().then(n.bind(n,8221)),Promise.resolve().then(n.bind(n,87844)),Promise.resolve().then(n.bind(n,72714)),Promise.resolve().then(n.bind(n,75473)),Promise.resolve().then(n.bind(n,58648)),Promise.resolve().then(n.bind(n,99250)),Promise.resolve().then(n.bind(n,79361)),Promise.resolve().then(n.bind(n,25366)),Promise.resolve().then(n.bind(n,34350)),Promise.resolve().then(n.bind(n,57250)),Promise.resolve().then(n.bind(n,77469)),Promise.resolve().then(n.bind(n,85353)),Promise.resolve().then(n.bind(n,90917)),Promise.resolve().then(n.bind(n,17075)),Promise.resolve().then(n.bind(n,62850)),Promise.resolve().then(n.bind(n,62223)),Promise.resolve().then(n.bind(n,50398)),Promise.resolve().then(n.bind(n,98967)),Promise.resolve().then(n.bind(n,40022)),Promise.resolve().then(n.bind(n,29277)),Promise.resolve().then(n.bind(n,23222)),Promise.resolve().then(n.bind(n,33233)),Promise.resolve().then(n.bind(n,23320)),Promise.resolve().then(n.bind(n,71305)),Promise.resolve().then(n.t.bind(n,40001,23)),Promise.resolve().then(n.t.bind(n,72324,23)),Promise.resolve().then(n.t.bind(n,43323,23)),Promise.resolve().then(n.t.bind(n,55398,23)),Promise.resolve().then(n.bind(n,58782)),Promise.resolve().then(n.t.bind(n,54327,23))},58782:function(e,t,n){"use strict";n.d(t,{PageLayout:function(){return b}});var r=n(81210),s=n(38722),o=n(49755),a=n(36062),i=n(53179),l=n(60164),d=n(20337),c=n(44384),u=n(87106),h=n(65843);n(77422);let m=()=>{let e="dark",t="dark";return"light"!==localStorage.theme&&("theme"in localStorage||!window.matchMedia("(prefers-color-scheme: light)").matches)?(document.documentElement.classList.add("dark"),e="dark",t="dark"):(e="light",t="light"),"theme"in localStorage||(e="system"),{themeMode:e,theme:t}},f=(0,h.U)(e=>({...m(),setThemeMode:t=>e(()=>({themeMode:t})),setTheme:t=>e(()=>({theme:t}))}));u.EWX,u.Dq,u.pUp;let p=new l.S;function g(e){let{children:t}=e;return f(),(0,r.jsx)(s.w,{className:"App max-w-[96rem] mx-auto",children:(0,r.jsx)(c.rg,{clientId:"425165933886-vpv32tvbhfeqfujnel0fdjm88kfn1lhn.apps.googleusercontent.com",children:(0,r.jsx)(d.aH,{client:p,children:(0,r.jsx)(i.Ho,{children:t})})})})}function b(e){let{children:t}=e,[n,s]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{n||s(!0)},[n]),n)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.x7,{position:"top-right",offset:70,theme:"light"}),(0,r.jsx)(g,{children:t})]}):null}},53179:function(e,t,n){"use strict";n.d(t,{Vo:function(){return u},Ho:function(){return f},Eu:function(){return p}});var r=n(81210),s=n(74572),o=n(36957);let a={beta:"EnreachExt_beta",staging:"EnreachExt_staging",prod:"EnreachExt"};function i(){return window[a[o.Vi]]}var l=n(76114),d=n(95258),c=n(49755);let u=(0,c.createContext)({login:async()=>{},setUser:()=>{},logout:()=>{}}),h="last-login-user",m=()=>{try{let e=localStorage.getItem(h);if(!e)return null;return JSON.parse(e)}catch(e){return console.error(e),null}},f=e=>{let{children:t}=e,n=(0,c.useRef)(!1),o=(0,d.useRouter)(),[a,f]=(0,c.useState)(m()),p=e=>{var t,r;e?(n.current=!1,f(e),localStorage.setItem(h,JSON.stringify(e)),e.token&&(null===(r=i())||void 0===r||r.request({name:"setAccessToken",body:e.token}).catch(console.error)),o.push("/")):(n.current=!0,f(null),localStorage.removeItem(h),null===(t=i())||void 0===t||t.request({name:"clearAccessToken"}).catch(console.error),o.push("/signin"))},g=()=>{p()};(0,c.useEffect)(()=>{let e;return a&&a.token&&(e=setInterval(()=>{let e=i();if(!e){console.warn("Extension not installed");return}e.request({name:"getStat"}).then(e=>{e.logined||(console.info("sync logout from ext"),g())}).catch(console.error)},1e3)),()=>clearInterval(e)},[a]);let b=async e=>{try{if(!e.email||!e.password)return;let t=await s.Z.loginApi(e);p(t),s.Z.setAuth()}catch(e){throw console.error(e),e}};s.Z.setAuth(null==a?void 0:a.token);let v=(0,l.a)({queryKey:["QueryUserInfo",null==a?void 0:a.token],enabled:!!(null==a?void 0:a.token),queryFn:()=>s.Z.userInfo()});return(0,r.jsx)(u.Provider,{value:{user:a,login:b,logout:g,setUser:p,queryUserInfo:v},children:t})},p=()=>(0,c.useContext)(u)},77422:function(e,t,n){"use strict";n.d(t,{C:function(){return c},m:function(){return d}});var r=n(81210),s=n(29906),o=n(12014),a=n(21585),i=n(10307),l=n(85947);function d(e){let{children:t,contentProps:n,bodyProps:i,...l}=e;return(0,r.jsx)(s.R,{isDismissable:!1,backdrop:"blur",classNames:{backdrop:"backdrop-blur"},hideCloseButton:!0,...l,children:(0,r.jsx)(o.A,{className:"w-[22.5rem] p-6 bg-m1 rounded-3xl",...n||{},children:(0,r.jsx)(a.I,{className:"flex flex-col justify-start items-center w-full gap-6 p-0",...i||{},children:t})})})}function c(e){let{tit:t,children:n,contentProps:d,bodyProps:c,...u}=e;return(0,r.jsx)(s.R,{hideCloseButton:!0,backdrop:"blur",classNames:{backdrop:"backdrop-blur"},...u,children:(0,r.jsx)(o.A,{className:"w-[31.25rem] bg-m1 gap-6 p-6 rounded-3xl",...d||{},children:e=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.k,{className:"justify-between p-0",children:[(0,r.jsx)("span",{className:"text-base font-bold text-left text-white",children:t}),(0,r.jsx)("div",{className:"p-0 rounded-full w-6 h-6 flex justify-center items-center text-xs cursor-pointer bg-white/10 hover:bg-white/30",onClick:e,children:(0,r.jsx)(l.q5L,{})})]}),(0,r.jsx)(a.I,{className:"flex flex-col justify-start items-center w-full gap-6 p-0",...c||{},children:n})]})})})}},74568:function(e,t,n){"use strict";n.d(t,{Ie:function(){return i},Ih:function(){return a},if:function(){return l}});var r=n(13910),s=n.n(r),o=n(28853);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=s().toNumber(e);return n?(0,o.Z)(n).format({mantissa:2,trimMantissa:!0,average:n>=1e3}).toUpperCase():t}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n=s().toNumber(e);return n?"".concat(Math.min(s().round(100*n/10),100),"%"):t}function l(e){return Math.max(s().round(s().toNumber(e||"1"),1),1)}},74572:function(e,t,n){"use strict";n.d(t,{t:function(){return l}});var r=n(80957),s=n(36957),o=n(13910),a=n.n(o),i=n(74568);let l={beta:"https://dev-api.enreach.network/api",staging:"https://staging-api-1.enreach.network/api",prod:"https://api.enreach.network/api"}[s.Vi],d=r.default.create({baseURL:l,headers:{"Content-Type":"application/json"}}),c={setAuth:e=>{e?d.defaults.headers.common.Authorization=e.startsWith("Bearer")?e:"Bearer ".concat(e):delete d.defaults.headers.common.Authorization},loginApi:async e=>{let t=await d.post("/user/signIn",e);return c.setAuth(t.data.data.token),t.data.data},loginByGoogleApi:async e=>{let t=await d.post("/user/google/signIn",e);return c.setAuth(t.data.data.token),t.data.data},loginSetReferralApi:async e=>{let t=await d.post("/user/referral/by",e);return c.setAuth(t.data.data.token),t.data.data},registerApi:async e=>(await d.post("/user/signUp",{...e})).data.data,registerByGoogleApi:async e=>(await d.post("/user/google/signUp",{accessToken:e})).data.data,resendRegisterVerifyCode:async e=>(await d.post("/user/verify/".concat(e,"/resend")),!0),verifyRegisterCode:async(e,t)=>(await d.post("/user/verify/".concat(e,"/").concat(t))).data.data,userInfo:async()=>{let e=await d.get("/user/profile"),t=e.data.data.point;return a().keys(t).forEach(e=>{t[e]=a().toNumber(t[e])}),t.total=(0,i.if)(e.data.data.stat.extraBoost)*t.total,e.data.data},sendResetPassword:async e=>(await d.post("/user/password/reset/send",{email:e}),!0),resetPassword:async e=>(await d.post("/user/password/reset",e),!0),userUpdate:async e=>(await d.post("/user/profile/update",e),!0),userReward:async()=>(await d.get("/user/reward")).data.data,nodeList:async()=>(await d.get("/node/list")).data.data,trendingRewards:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"month";return(await d.get("/trending/rewards",{params:{type:e}})).data.data},getAccessToken:async()=>(await d.get("/user/accessToken")).data.data.accessToken,getIP:async()=>(await r.default.get("https://api.bigdatacloud.net/data/client-ip")).data,updateNodeName:async(e,t)=>(await d.post("/node/rename/".concat(e.connectionId,"/").concat(encodeURIComponent(e.ipAddress),"/").concat(encodeURIComponent(t))),!0)};t.Z=c},36957:function(e,t,n){"use strict";n.d(t,{Vi:function(){return r},u1:function(){return s}}),n(45303).env.NEXT_PUBLIC_BASE_PATH;let r="staging",s=""},54327:function(){}},function(e){e.O(0,[983,686,495,863,720,717,542,510,406,110,444,481,906,403,331,744],function(){return e(e.s=35157)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/page-00f83f0fd3d03d99.js b/_next/static/chunks/app/page-1060cb638466285c.js similarity index 99% rename from _next/static/chunks/app/page-00f83f0fd3d03d99.js rename to _next/static/chunks/app/page-1060cb638466285c.js index 47ca193..488d19a 100644 --- a/_next/static/chunks/app/page-00f83f0fd3d03d99.js +++ b/_next/static/chunks/app/page-1060cb638466285c.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{63292:function(e,t,n){Promise.resolve().then(n.bind(n,8804))},8804:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tN}});var s,r,a,l,i,o,c,d,x,u,m,f,g,h,p,A,v,w,j,b,N,y,S,R,k,B,E,O,C,G,I=n(81210),H=n(49755),z=n(63568),M=n(24450);function Q(){return(Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e(t),eA.Am.success("Copied !")}}var ew=n(74572),ej=n(76114),eb=n(67523),eN=n(13910),ey=n.n(eN),eS=n(66115),eR=n(19007),ek=n(27767),eB=n(74568),eE=n(44789);let eO=[{sort:0,btn:"Download Chrome Extension",tit:"Chrome Extension Node",sub:(0,I.jsxs)("div",{children:["Initiate your first EnReach Node and win 40 ",(0,I.jsx)(es,{className:"inline-block fix-v-center"})]}),reward:(0,I.jsxs)(I.Fragment,{children:["40 ",(0,I.jsx)(es,{className:"inline-block fix-v-center"})]}),icon:(0,I.jsx)(er,{}),rewardIcon:(0,I.jsx)(es,{})},{sort:1,btn:"Connect X",tit:"Connect X",sub:"Connect and verify X account",reward:(0,I.jsxs)(I.Fragment,{children:["30 ",(0,I.jsx)(es,{className:"inline-block fix-v-center"})]}),icon:(0,I.jsx)(function(e){return M.createElement("svg",V({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 48 48"},e),N||(N=M.createElement("rect",{width:48,height:48,fill:"#fff",rx:24})),M.createElement("mask",{id:"x_svg__a",width:28,height:28,x:9,y:10,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},y||(y=M.createElement("path",{fill:"#fff",d:"M9 10h28v28H9z"}))),S||(S=M.createElement("g",{mask:"url(#x_svg__a)"},M.createElement("path",{fill:"#212121",d:"M29.373 14.083h3.4l-7.427 8.51 8.737 11.58h-6.84l-5.36-7.022-6.128 7.022h-3.403l7.942-9.105-8.377-10.983h7.014l4.839 6.417zm-1.196 18.05h1.885l-12.16-16.116h-2.02z"}))))},{}),rewardIcon:(0,I.jsx)(es,{})},{sort:1,btn:"Connect Discord",tit:"Connect Discord",sub:"Connect and verify Discord account",reward:(0,I.jsxs)(I.Fragment,{children:["30 ",(0,I.jsx)(es,{className:"inline-block fix-v-center"})]}),icon:(0,I.jsx)(function(e){return M.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 48 48"},e),R||(R=M.createElement("rect",{width:48,height:48,fill:"#fff",rx:24})),k||(k=M.createElement("path",{fill:"#706BE8",d:"M31.482 16.218a19.8 19.8 0 0 0-4.982-1.551q-.047.001-.082.035c-.21.385-.455.886-.618 1.271a18.8 18.8 0 0 0-5.6 0 12 12 0 0 0-.63-1.271c-.012-.024-.047-.035-.082-.035-1.75.303-3.418.828-4.981 1.551-.012 0-.024.012-.035.024-3.174 4.748-4.049 9.368-3.617 13.941 0 .024.012.047.035.059a20.3 20.3 0 0 0 6.113 3.091c.035.012.07 0 .082-.023.467-.642.887-1.318 1.248-2.03.024-.047 0-.093-.046-.105a14.4 14.4 0 0 1-1.914-.91c-.046-.023-.046-.093-.011-.128.128-.094.256-.199.385-.292a.07.07 0 0 1 .081-.012c4.014 1.832 8.342 1.832 12.309 0a.07.07 0 0 1 .081.012c.129.105.257.198.385.303.047.035.047.105-.011.129-.607.361-1.249.653-1.914.91-.046.011-.058.07-.046.105.373.711.793 1.388 1.248 2.03.035.011.07.023.105.011a20.2 20.2 0 0 0 6.125-3.091.06.06 0 0 0 .035-.059c.513-5.285-.852-9.87-3.617-13.941-.011-.012-.023-.024-.046-.024M18.94 27.395c-1.202 0-2.205-1.108-2.205-2.473s.98-2.474 2.205-2.474c1.237 0 2.217 1.12 2.205 2.474 0 1.365-.98 2.473-2.205 2.473m8.132 0c-1.202 0-2.205-1.108-2.205-2.473s.98-2.474 2.205-2.474c1.236 0 2.216 1.12 2.205 2.474 0 1.365-.969 2.473-2.205 2.473"})))},{}),rewardIcon:(0,I.jsx)(es,{})},{sort:1,btn:"Connect Telegram",tit:"Connect Telegram",sub:"Connect and verify Telegram account",reward:(0,I.jsxs)(I.Fragment,{children:["30 ",(0,I.jsx)(es,{className:"inline-block fix-v-center"})]}),icon:(0,I.jsx)(function(e){return M.createElement("svg",q({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 48 48"},e),B||(B=M.createElement("rect",{width:48,height:48,fill:"#fff",rx:24})),E||(E=M.createElement("path",{fill:"#4281FF",d:"m34.179 15.392-3.697 17.435c-.279 1.23-1.006 1.536-2.04.957l-5.633-4.151-2.718 2.614c-.3.3-.552.552-1.132.552l.405-5.736 10.44-9.434c.454-.405-.098-.629-.706-.224L16.192 25.53l-5.556-1.739c-1.209-.377-1.23-1.208.252-1.788L32.62 13.63c1.007-.377 1.887.224 1.559 1.761"})))},{}),rewardIcon:(0,I.jsx)(es,{})}],eC=()=>{window.open("https://chromewebstore.google.com/detail/extid","_blank")};function eG(){var e;let t=null===(e=(0,z.Eu)().queryUserInfo)||void 0===e?void 0:e.data,n=tp();return(0,H.useMemo)(()=>t?[{complete:!!(null==t?void 0:t.task.extension),onGoTo:eC},{complete:!!(null==t?void 0:t.social.x),onGoTo:()=>n.toMenu("My Profile")},{complete:!!(null==t?void 0:t.social.discord),onGoTo:()=>n.toMenu("My Profile")},{complete:!!(null==t?void 0:t.social.tg),onGoTo:()=>n.toMenu("My Profile")}].map((e,t)=>({...e,...eO[t]})):[],[t])}function eI(e){let{tit:t,sub:n,reward:s,isProgress:r,progress:a=0,complete:l,onClickCarry:i}=e;return(0,I.jsxs)("div",{className:"bg-white/10 rounded-lg p-4 flex items-center justify-between",children:[(0,I.jsxs)("div",{className:"flex flex-col items-start gap-1 text-sm",children:[(0,I.jsx)("span",{className:"text-white",children:t}),(0,I.jsx)("span",{className:"text-white/50",children:n}),(0,I.jsxs)("span",{className:"text-primary gap-1",children:["+",s]})]}),r?(0,I.jsx)(eE.Ip,{className:"!w-14 !h-14",styles:{path:{stroke:"#fff",strokeLinecap:"butt",transition:"stroke-dashoffset 0.5s ease 0s",transform:"rotate(180deg)",transformOrigin:"center center"},trail:{stroke:"rgba(255,255,255,0.1)",strokeLinecap:"butt",transformOrigin:"center center"},text:{fill:"#fff",fontSize:"1.125rem"}},text:"".concat(a,"%"),value:a}):(0,I.jsxs)(ek.un,{className:(0,el.cn)("flex items-center gap-2 ",{"bg-white/80 text-primary hover:bg-white":l}),onClick:()=>!l&&(null==i?void 0:i()),children:[l?"Done":"Go",l&&(0,I.jsx)(ed.be3,{className:"text-base "})]})]})}function eH(){let e=eG();return(0,I.jsx)(eg,{tit:"Task & Achievements",className:"col-span-10",children:(0,I.jsx)("div",{className:"grid xl:grid-cols-2 gap-5",children:e.map(e=>(0,I.jsx)(eI,{tit:e.tit,sub:e.sub,reward:e.reward,complete:e.complete,onClickCarry:e.onGoTo},e.tit))})})}function ez(){let e=eG(),t=e.find(e=>!e.complete);return(0,I.jsx)(I.Fragment,{children:t?(0,I.jsxs)(eh,{className:"justify-between px-5 py-7 xl:order-2",children:[(0,I.jsxs)("div",{className:"flex items-center justify-center mt-6 text-[3rem]",children:[(0,I.jsx)("div",{className:"shadow-2 rounded-full",children:t.icon}),(0,I.jsx)("div",{className:"shadow-2 rounded-full w-12 h-12 flex justify-center items-center -ml-3 bg-white text-2xl",children:t.rewardIcon})]}),(0,I.jsxs)("div",{className:"flex flex-col justify-start items-center relative gap-1",children:[(0,I.jsxs)("p",{className:"flex-grow-0 flex-shrink-0 text-4xl font-bold text-center uppercase text-white gap-2",children:["Get ",t.reward]}),(0,I.jsx)("p",{className:"flex-grow-0 flex-shrink-0 h-7 opacity-60 text-sm text-center text-white",children:t.sub})]}),(0,I.jsx)(ek.uU,{className:"flex-grow-0 flex-shrink-0 w-full text-xs font-medium",onClick:t.onGoTo,children:t.btn})]}):(0,I.jsx)(eh,{className:"justify-between px-5 py-7 min-h-[12.5rem] xl:order-2 relative",children:!!e.length&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("img",{className:"object-cover absolute left-0 top-0 w-full h-full",src:"bg-coming.svg",alt:"bg"}),(0,I.jsx)("img",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",src:"task-coming.svg",alt:"comming"}),(0,I.jsx)("div",{style:{top:"calc(50% + 3.125rem)"},className:"absolute left-1/2 -translate-x-1/2 whitespace-nowrap text-center text-white/70 text-base",children:"More tasks coming soon..."})]})})})}var eM=n(62365);function eQ(e){let{tit:t,sub:n,subTip:s,className:r,titClassName:a,subClassName:l}=e;return(0,I.jsxs)("div",{className:(0,el.cn)("flex flex-col justify-start items-start relative shrink-0",r),children:[(0,I.jsx)("p",{className:(0,el.cn)("self-stretchflex-shrink-0 text-2xl font-medium text-left text-white",a),children:t}),(0,I.jsxs)("div",{className:(0,el.cn)("flex justify-start items-center flex-shrink-0 relative gap-1 text-sm opacity-50 text-white",l),children:[n,s&&(0,I.jsx)(eM.S,{content:s})]})]})}function eX(){return(0,I.jsx)("div",{className:"bg-white opacity-30 w-[1px] h-6 shrink-0"})}function eD(){var e,t,n;let s=(0,z.Eu)(),r=(0,eB.if)(null===(n=s.queryUserInfo)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:null===(e=t.stat)||void 0===e?void 0:e.extraBoost);return(0,I.jsxs)("div",{className:"flex items-center rounded-full px-3 py-[.375rem] bg-primary ml-auto",children:[(0,I.jsx)("span",{className:"font-sans text-xl",children:(0,I.jsx)(et,{})}),(0,I.jsxs)("div",{className:"text-xs font-medium",children:[r,"x ",(0,I.jsx)("span",{className:"opacity-50",children:"Boosting"})]})]})}let eF=["Total Rewards","Network Rewards","Referral Bonus"];function eP(e){let{className:t}=e,[n,s]=(0,H.useState)(eF[0]),{data:r,isLoading:a}=(0,ej.a)({queryKey:["TrendingChart"],queryFn:()=>ew.Z.trendingRewards()}),[l,i]=function(){let[e,t]=(0,H.useState)(0),[n,{width:s}]=(0,eS.Z)();return(0,eR.Z)(()=>{t(s)},300,[s]),(0,H.useMemo)(()=>[n,e],[n,e])}(),o=(0,H.useMemo)(()=>{if(!i)return{};let e=r||[],t=e.map(e=>(0,ex.G$)(1e3*e.date,"MMMD")),s=e.map(e=>ey().toNumber("Total Rewards"===n?e.totalPoint:"Network Rewards"===n?e.networkPoint:e.referralPoint));console.info("width:",i);let a=Math.floor(i/48),l=t.length-1;return{animation:!0,animationDuration:200,tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:40,top:10,bottom:30,right:20,show:!1},dataZoom:[{type:"inside",startValue:Math.max(0,l-a),endValue:l,zoomOnMouseWheel:!1,moveOnMouseWheel:!0},{show:!1}],xAxis:{type:"category",data:t,axisLabel:{fontSize:10,color:"rgba(255,255,255,0.5)"}},yAxis:{type:"value",boundaryGap:[0,"10%"],axisLabel:{color:"rgba(255,255,255,0.5)"},splitLine:{lineStyle:{type:"dashed",color:"#fff",opacity:.05}}},series:[{data:s,type:"bar",itemStyle:{borderRadius:10,color:"#4281FF"},label:{show:!0,formatter:e=>(0,eB.Ih)(e.value),position:"top",color:"rgba(255,255,255,0.5)"},barWidth:20,barMinWidth:20,barCategoryGap:38}],darkMode:!0}},[i,r,n]);return(0,I.jsx)(eg,{tit:"Trending",className:(0,el.cn)("col-span-1 lg:col-span-2 h-full",t),right:(0,I.jsx)(ei.g,{className:"w-[10rem]",classNames:{mainWrapper:"rounded-lg bg-neutral-100/10",trigger:"rounded-lg bg-transparent text-xs",value:"text-xs"},selectionMode:"single",selectedKeys:[n],onSelectionChange:e=>{console.info("k:",e),s(e.currentKey)},children:eF.map(e=>(0,I.jsx)(eo.R,{className:"text-xs ",classNames:{title:"text-xs whitespace-nowrap"},children:e},e))}),children:(0,I.jsx)("div",{className:"w-full flex-1",ref:l,children:(0,I.jsx)(eb.Z,{style:{minHeight:200,height:"100%"},className:"w-full",option:o})})})}var eT=n(85947),eJ=n(97427),eY=n(54957),eL=n(77422),eU=n(36957);function eV(){let[e,t]=(0,eY.Z)(!1);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ek.un,{onClick:()=>t(),children:"Add New Node"}),(0,I.jsxs)(eL.C,{isOpen:e,onClose:()=>t(!1),tit:"Add New Node",children:[(0,I.jsxs)("div",{className:"flex flex-col justify-start items-center self-stretch flex-grow-0 flex-shrink-0 gap-2.5",children:[(0,I.jsxs)("div",{className:"flex flex-col justify-center items-center self-stretch flex-grow-0 flex-shrink-0 relative gap-5",children:[(0,I.jsx)(er,{className:"text-[3.75rem]"}),(0,I.jsxs)("p",{className:"self-stretch flex-grow-0 flex-shrink-0 text-sm text-center text-white",children:[(0,I.jsx)("span",{className:"self-stretch flex-grow-0 flex-shrink-0 text-sm font-bold text-center text-white",children:"Chrome Extension Node"}),(0,I.jsx)("br",{}),(0,I.jsx)("span",{className:"self-stretch flex-grow-0 flex-shrink-0 text-sm text-center text-white",children:"The super light-weight node that helps EnReach Network to gain perception to the network’s capability and potential to serve the network"})]})]}),(0,I.jsx)(ek.un,{className:"w-full",onClick:()=>window.open("https://chromewebstore.google.com/detail/".concat(eU.u1),"_blank"),children:"Download"})]}),(0,I.jsxs)("div",{className:"flex flex-col justify-center items-center self-stretch flex-grow-0 flex-shrink-0 relative gap-5",children:[(0,I.jsx)(eJ.tLz,{className:"text-[3.75rem] text-white"}),(0,I.jsxs)("p",{className:"self-stretch flex-grow-0 flex-shrink-0 text-sm text-center text-white/50",children:[(0,I.jsx)("span",{className:"self-stretch flex-grow-0 flex-shrink-0 text-sm font-bold text-center text-white/40",children:"Desktop Node (Coming Soon)"}),(0,I.jsx)("br",{}),(0,I.jsx)("span",{className:"self-stretch flex-grow-0 flex-shrink-0 text-sm text-center text-white/40",children:"Edge Node (Coming Soon) The working nodes at edge side that provides qualified edge cloud capabilities"})]})]})]})]})}function eW(e){return(0,I.jsx)(eL.C,{isOpen:e.isOpen,tit:e.tit,onClose:e.onCancel,children:(0,I.jsxs)("div",{className:"flex flex-col gap-6 w-full",children:[(0,I.jsx)("div",{className:"text-center text-sm whitespace-pre-wrap",children:e.msg}),(0,I.jsxs)("div",{className:"grid grid-cols-2 gap-2.5",children:[(0,I.jsx)(ek.un,{color:"default",onClick:e.onConfirm,children:"Confirm"}),(0,I.jsx)(ek.un,{onClick:e.onCancel,children:"Cancel"})]})]})})}var eq=n(58950),eZ=n(15869),eK=n(7586),e_=n(83277),e$=n(18422),e0=n(53716);function e1(e){let{head:t,data:n,empty:s,loadingContent:r,isLoading:a}=e;return(0,I.jsxs)(eq.b,{removeWrapper:!0,className:(0,el.cn)("overflow-auto pb-3"),disabledBehavior:"selection",children:[(0,I.jsx)(eZ.J,{className:"p-0",children:t.map((e,t)=>(0,I.jsx)(eK.j,{className:"bg-transparent py-0 h-6 whitespace-nowrap text-sm font-normal text-white",children:e},t))}),(0,I.jsx)(e_.y,{emptyContent:s,loadingContent:r,isLoading:a,children:n.map((e,t)=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(e$.g,{className:"opacity-0 h-3 p-0",children:e.map((e,t)=>(0,I.jsx)(e0.X,{className:"p-0 leading-3",children:"s"},t))},"space_".concat(t)),(0,I.jsx)(e$.g,{className:"mt-5","data-focus-visible":!1,children:e.map((n,s)=>(0,I.jsx)(e0.X,{"data-focus-visible":!1,className:(0,el.cn)("bg-white/10 h-[3.125rem] whitespace-nowrap text-xs text-white/80",{"rounded-l-lg":0==s,"rounded-r-lg":s==e.length-1}),children:n},"stable_cell_".concat(t,"_").concat(s)))},"stable_row_".concat(t))]}))})]})}var e2=n(37018),e3=n(83332),e4=n(72378),e5=n(17528),e6=n(84824);let e7={inputWrapper:"h-5 min-h-5 w-[7.5rem] outline-none rounded-lg border-1 !border-white/20 bg-transparent text-xs",label:"text-xs",input:"text-xs !text-white/80"};function e8(e){let{node:t}=e,[n,s]=(0,eY.Z)(!1),[r,a]=(0,H.useState)(t.name||""),{mutate:l,isPending:i}=(0,e5.D)({onError:ex.rV,mutationFn:async()=>(await ew.Z.updateNodeName(t,r),t.name=r,s(!1),!0)}),o=t.name||"Untitled Device",c=()=>{r&&r!==o?l():s(!1)};return(0,I.jsxs)("div",{className:"flex min-w-[10rem] gap-2.5 items-center",children:[n?(0,I.jsx)(e2.Y,{className:"w-fit",autoFocus:!0,classNames:e7,value:r,maxLength:20,onChange:e=>a(e.target.value),variant:"bordered",type:"text",placeholder:o,onKeyDown:e=>{"Enter"===e.code&&c()},onBlur:c}):(0,I.jsx)("div",{className:"max-w-[7.5rem] overflow-hidden text-ellipsis",children:o}),i&&(0,I.jsx)(e3.c,{size:"sm"}),!n&&(0,I.jsx)("div",{className:"flex justify-center items-center rounded-full bg-white/80 hover:bg-white text-black text-[.5rem] w-3 h-3 cursor-pointer",onClick:()=>s(),children:(0,I.jsx)(eT.vPQ,{})})]})}function e9(e){let{ip:t,country:n}=e;return(0,I.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,I.jsx)("span",{className:(0,el.cn)("text-base fi fi-".concat((n||"").toLowerCase()))}),(0,I.jsx)("span",{children:t})]})}function te(e){let{isConnected:t}=e;return(0,I.jsxs)("div",{className:(0,el.cn)(" flex items-center gap-1",t?"text-green-400":"text-white/60"),children:[t?(0,I.jsx)(ed.be3,{className:"text-[.9375rem]"}):(0,I.jsx)(ed.FMH,{className:"text-[.9375rem]"}),t?"Connected":"Offline"]})}var tt=n(95258);function tn(e){"handle_third_party_failed"===e&&eA.Am.error("Oops! This account has been connected to an existing EnReach account.")}var ts=n(64947),tr=n(50857),ta=n(80957),tl=n(84243),ti=n(84533),to=n.n(ti),tc=n(43249),td=n.n(tc);function tx(e){let{name:t,className:n,size:s,showFirst:r}=e;return(0,I.jsxs)("div",{className:(0,el.cn)("relative flex",n),style:{fontSize:Math.floor(.4*(s||24))},children:[(0,I.jsx)(to(),{name:t,size:s,variant:"marble"}),t&&r&&(0,I.jsx)("div",{className:"absolute left-0 top-0 h-full w-full flex justify-center items-center text-white font-medium font-HelveticaNeue",children:td()(t[0])})]})}let tu=[{icon:e=>{let{className:t}=e;return(0,I.jsx)("img",{className:(0,el.cn)("w-[1em] h-[1em] object-contain",t),src:"/level0.png",alt:"level0"})},exp:0,level:0,name:"Baby Berry",boost:"+ 0%",color:"#DFDFDF"},{icon:e=>{let{className:t}=e;return(0,I.jsx)("img",{className:(0,el.cn)("w-[1em] h-[1em] object-contain",t),src:"/level1.png",alt:"level1"})},exp:100,level:1,name:"Teen Berry",boost:"+ 50%",color:"#EAE0F0"},{icon:e=>{let{className:t}=e;return(0,I.jsx)("img",{className:(0,el.cn)("w-[1em] h-[1em] object-contain",t),src:"/level2.png",alt:"level2"})},exp:500,level:2,name:"Big Blue",boost:"+ 100%",color:"#8A9CF1"},{icon:e=>{let{className:t}=e;return(0,I.jsx)("img",{className:(0,el.cn)("w-[1em] h-[1em] object-contain",t),src:"/level3.png",alt:"level3"})},exp:1e3,level:3,name:"Berry Captain",boost:"+ 200%",color:"#FFFBB4"}];function tm(e){var t,n;let{type:s}=e,r=(0,z.Eu)(),a=null===(n=r.queryUserInfo)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.social,[l,i]=(0,H.useMemo)(()=>{switch(s){case"x":return(null==a?void 0:a.x)?["@".concat(a.x.name),!0]:["Connect My X Account",!1];case"telegram":return(null==a?void 0:a.tg)?["@".concat(a.tg.username),!0]:["Connect My Telegram Account",!1];case"discord":return(null==a?void 0:a.discord)?["@".concat(a.discord.username),!0]:["Connect My Discord Account",!1]}},[a,s]),o="x"==s?ec.LCd:"telegram"==s?tl.AGi:ec.j2d,c=async()=>{let e=await ew.Z.getAccessToken(),t=encodeURIComponent("".concat(ew.t,"/user/auth/handler/").concat(s)),n="";switch(s){case"x":n="https://x.com/i/oauth2/authorize?response_type=code&client_id=M0hkaVBZaUZITHo2RmprZ19obEs6MTpjaQ&redirect_uri=".concat(t,"&scope=users.read%20tweet.read&code_challenge=challenge&code_challenge_method=plain&state=").concat(e);break;case"telegram":var a,l,i;let o=await (0,tr.c)("7324509153",{windowFeatures:{popup:!0,width:600,height:800}}),c=await ta.default.get("".concat(ew.t,"/user/auth/handler/telegram"),{params:{...o,state:e}});console.info("bingTG:",c.request),"string"==typeof(null===(a=c.request)||void 0===a?void 0:a.responseURL)&&tn(new URL(null===(i=c.request)||void 0===i?void 0:i.responseURL).searchParams.get("err")),null===(l=r.queryUserInfo)||void 0===l||l.refetch();return;case"discord":n="https://discord.com/oauth2/authorize?client_id=1303958338488238090&response_type=code&redirect_uri=".concat(t,"&scope=identify+email&state=").concat(e)}window.open(n,"_blank")};return(0,I.jsxs)("div",{className:"rounded-lg p-4 flex items-center gap-5 bg-white/10",children:[(0,I.jsx)(o,{className:"text-[2rem]"}),(0,I.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,I.jsx)("span",{className:"text-sm font-semibold",children:l}),(0,I.jsxs)("div",{className:(0,el.cn)("flex items-center gap-1 text-xs",i?"text-green-400":"text-white/60"),children:[i?(0,I.jsx)(ed.be3,{className:"text-[.9375rem]"}):(0,I.jsx)(ed.FMH,{className:"text-[.9375rem]"}),i?"Connected":"Not Connected"]})]}),!i&&(0,I.jsx)(ek.un,{className:"ml-auto w-[6.25rem]",onClick:c,children:i?"Disconnect":"Connect"})]})}let tf=[{name:"Overview",icon:function(e){return M.createElement("svg",Q({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16"},e),s||(s=M.createElement("g",{clipPath:"url(#overview_svg__a)"},M.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.813.158a3.198 3.198 0 1 1 1.978 6.081A3.198 3.198 0 0 1 11.813.158M.158 2.21A3.198 3.198 0 1 1 6.24 4.187 3.198 3.198 0 0 1 .158 2.21m5.628 12.47a3.198 3.198 0 1 1-5.174-3.759 3.198 3.198 0 0 1 5.174 3.76m4.427 0a3.199 3.199 0 1 1 5.177-3.759 3.199 3.199 0 0 1-5.177 3.76",clipRule:"evenodd"}))),r||(r=M.createElement("defs",null,M.createElement("clipPath",{id:"overview_svg__a"},M.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))},content:(0,I.jsx)(function(){var e;let t=ev(),n=null===(e=(0,z.Eu)().queryUserInfo)||void 0===e?void 0:e.data,s=(null==n?void 0:n.node.connected)||0;return(0,I.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-4",children:[(0,I.jsx)(em,{icon:ee,tit:(0,I.jsxs)("div",{className:"flex justify-between items-center flex-1",children:[(0,I.jsx)("span",{children:"BERRY"}),(0,I.jsx)(eD,{})]}),content:(0,I.jsxs)("div",{className:"flex flex-1 items-center gap-[10%] min-w-[11.25rem]",children:[(0,I.jsx)(eQ,{tit:"".concat((0,eB.Ih)(null==n?void 0:n.point.today)),sub:"Today"}),(0,I.jsx)(eX,{}),(0,I.jsx)(eQ,{tit:"".concat((0,eB.Ih)(null==n?void 0:n.point.total)),sub:"Season 1",subTip:"You are currently on Season 1 stage."})]})}),(0,I.jsx)(em,{icon:$,tit:(0,I.jsxs)("div",{className:"flex justify-between items-center flex-1",children:[(0,I.jsx)("span",{children:"My Referrals"}),(0,I.jsx)(ek.a5,{tip:"Copy Referral Link",onClick:()=>t("".concat(origin,"/signup?referral=").concat(null==n?void 0:n.inviteCode)),children:(0,I.jsx)(ec.gjK,{})})]}),content:(0,I.jsxs)("div",{className:"flex flex-1 items-center gap-[10%] w-full min-w-[13.75rem]",children:[(0,I.jsx)(eQ,{tit:"".concat((null==n?void 0:n.referral.valid)||0),subClassName:"text-green-400 opacity-100",sub:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ed.be3,{})," Referred"]})}),(0,I.jsx)(eX,{}),(0,I.jsx)(eQ,{tit:"".concat((null==n?void 0:n.referral.pending)||0),sub:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ed.mZq,{})," Pending"]}),subTip:"The referee needs to achieve more than 72h uptime to make your referral qualified."})]})}),(0,I.jsx)(em,{icon:K,tit:(0,I.jsx)("span",{children:"My Nodes"}),content:(0,I.jsxs)("div",{className:"flex flex-1 items-center gap-[10%] min-w-[12.5rem]",children:[(0,I.jsx)(eQ,{tit:"".concat(s),subClassName:"text-green-400 opacity-100",sub:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ed.be3,{})," Connected"]})}),(0,I.jsx)(eX,{}),(0,I.jsx)(eQ,{tit:"".concat((null==n?void 0:n.node.offline)||0),sub:"Offline"})]})}),(0,I.jsx)(ez,{}),(0,I.jsx)(eP,{})]})},{})},{name:"My Nodes",icon:K,content:(0,I.jsx)(function(){let{data:e,isFetching:t,refetch:n,isLoading:s}=(0,ej.a)({queryKey:["NodeList"],queryFn:()=>ew.Z.nodeList()}),r=(0,H.useMemo)(()=>{let t=e||[];return t.length,t.sort((e,t)=>e.isConnected!==t.isConnected?t.isConnected-e.isConnected:t.lastConnectedAt-e.lastConnectedAt).map((e,t)=>[(0,I.jsx)(e8,{node:e},"nodeName_".concat(t)),"Extension",(0,I.jsx)(e9,{country:e.countryCode,ip:e.ipAddress},"CountryIp"),(0,I.jsx)(te,{isConnected:!!e.isConnected},"status"),(0,ex.Y)(1e3*ey().toNumber(e.totalUptime),"D[d] H[h] m[m]"),(0,eB.Ie)(e.lastPoint),(0,eB.Ih)(e.todayPoints,"-"),(0,eB.Ih)(e.totalPoints,"-")])},[e]),a=(0,H.useMemo)(()=>ey().chunk(r,10),[r]),[l,i]=(0,H.useState)(1);return(0,I.jsxs)(eg,{tit:"My Nodes",className:"w-full",right:(0,I.jsxs)("div",{className:"flex gap-5 items-center",children:[(0,I.jsx)(ek.a5,{tip:"Refresh Data",onClick:()=>{t||n()},children:(0,I.jsx)(e6.PwW,{className:(0,el.cn)({"animate-spin":t})})}),(0,I.jsx)(eV,{})]}),children:[(0,I.jsx)(e1,{isLoading:s,loadingContent:(0,I.jsx)(e3.c,{}),empty:"You currently have no running nodes. Click 'Add New Node' button, download and set up your node ready for the Season 1!",head:["Node Name","Node Type","IP","Status",(0,I.jsxs)("div",{className:"flex items-center gap-1",children:["Uptime ",(0,I.jsx)(eM.S,{content:"Uptime tells users how long a node has been available."})]},"uptime"),"Network Quality",(0,I.jsxs)("div",{className:"flex items-center gap-1",children:["Today’s BERRY Rewards ",(0,I.jsx)(eM.S,{content:"Today’s Network Rewards in BEERY amount."})]},"today"),"S1 Total BERRY"],data:a[l-1]||[]}),a.length>1&&(0,I.jsx)("div",{className:"flex items-center",children:(0,I.jsx)(e4.g,{className:"mx-auto",total:a.length,page:l,onChange:i})})]})},{})},{name:"My Rewards",icon:_,content:(0,I.jsx)(function(){var e;let t=null===(e=(0,z.Eu)().queryUserInfo)||void 0===e?void 0:e.data;return(0,I.jsxs)("div",{className:"grid grid-cols-10 gap-4",children:[(0,I.jsx)(em,{icon:ee,className:"col-span-10 xl:col-span-4 justify-between",tit:(0,I.jsxs)("div",{className:"flex justify-between items-center w-full",children:[(0,I.jsx)("span",{children:"BERRY"}),(0,I.jsx)(eD,{})]}),content:(0,I.jsxs)("div",{className:"flex flex-col gap-10 min-w-[17.5rem]",children:[(0,I.jsx)(eQ,{tit:(0,I.jsx)("div",{className:"flex items-center gap-1",children:(0,eB.Ih)(null==t?void 0:t.point.total)}),sub:"Total Rewards",subTip:"Total Network Rewards for this season in BERRY amount.",titClassName:"text-[2rem]",subClassName:"text-lg"}),(0,I.jsxs)("div",{className:"flex items-center gap-[10%]",children:[(0,I.jsx)(eQ,{tit:(0,eB.Ih)(null==t?void 0:t.point.network),sub:"Network Rewards"}),(0,I.jsx)(eX,{}),(0,I.jsx)(eQ,{tit:(0,eB.Ih)(null==t?void 0:t.point.referral),sub:"Referral Bonus"})]})]})}),(0,I.jsx)("div",{className:"col-span-10 xl:col-span-6",children:(0,I.jsx)(eP,{})}),(0,I.jsx)(eH,{})]})},{})},{name:"My Referral",icon:$,content:(0,I.jsx)(function(){var e;let t=null===(e=(0,z.Eu)().queryUserInfo)||void 0===e?void 0:e.data,n=(null==t?void 0:t.referral.valid)||0,s=(null==t?void 0:t.referral.pending)||0,r=(0,eB.Ih)(null==t?void 0:t.point.referral),a=ev();return(0,I.jsxs)("div",{className:"grid xl:grid-cols-3 gap-4",children:[(0,I.jsx)(em,{icon:eJ.Bbd,iconSize:20,tit:(0,I.jsx)("div",{className:"text-xl",children:"My Referral Code"}),content:(0,I.jsxs)("div",{className:"flex items-center gap-4",children:[(0,I.jsx)("div",{className:"uppercase text-4xl leading-8 font-bold font-HelveticaNeue",children:null==t?void 0:t.inviteCode}),(0,I.jsx)(ek.a5,{tip:"Copy Referral Link",onClick:()=>a("".concat(origin,"/signup?referral=").concat(null==t?void 0:t.inviteCode)),children:(0,I.jsx)(ec.gjK,{})}),(0,I.jsx)(ek.a5,{tip:"Tweet Your Referral",onClick:()=>{let e="".concat(origin,"/signup?referral=").concat(null==t?void 0:t.inviteCode),n="https://x.com/intent/post?text=".concat(encodeURIComponent("\nJoin the magic journey with @EnReachAI – the genesis of open edge cloud, for the AI era.\n\nGet your EnReach Edge Node ready for\uD83E\uDED0BerryBurst Season 1\uD83E\uDED0\n\n "),"&url=").concat(encodeURIComponent(e));window.open(n,"_blank")},children:(0,I.jsx)(ec.LCd,{})})]})}),(0,I.jsx)(em,{icon:$,iconSize:20,tit:(0,I.jsx)("div",{className:"text-xl",children:"My Referrals"}),content:(0,I.jsxs)("div",{className:"flex items-center gap-[10%] min-w-[13.75rem]",children:[(0,I.jsx)(eQ,{tit:n,subClassName:"text-green-400 opacity-100",sub:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ed.be3,{})," Referred"]})}),(0,I.jsx)(eX,{}),(0,I.jsx)(eQ,{tit:s,sub:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ed.mZq,{})," Pending"]}),subTip:"The referee needs to achieve more than 72h uptime to make your referral qualified."})]})}),(0,I.jsx)(em,{icon:_,iconSize:20,tit:(0,I.jsxs)("div",{className:"text-xl flex items-center gap-2",children:["Referral Bonus"," ",(0,I.jsx)(eM.S,{content:"Referral Bonus include an one-time bonus for a qualified referral, and a permanent percentage share of your referees’ Network Bonus."})]}),content:(0,I.jsx)("div",{className:"flex items-center gap-[10%]",children:(0,I.jsx)(eQ,{tit:r,sub:"BERRY"})})}),(0,I.jsxs)(eg,{className:"col-span-full flex-row gap-[3.125rem] flex-wrap justify-center",children:[(0,I.jsxs)("div",{className:"flex flex-col gap-4 items-center shrink-0",children:[(0,I.jsx)(en,{className:"text-[5rem] shrink-0"}),(0,I.jsx)("div",{className:"uppercase text-[2rem] whitespace-nowrap font-HelveticaNeue leading-8",children:"Get Referral Rewards"}),(0,I.jsx)(ek.un,{className:"w-full",onClick:()=>a("".concat(origin,"/signup?referral=").concat(null==t?void 0:t.inviteCode)),children:"Copy Referral Link"})]}),(0,I.jsx)(ef,{icon:_,iconSize:20,className:"flex-1 min-w-[31.25rem]",children:(0,I.jsxs)("div",{className:"text-base",children:[(0,I.jsxs)("p",{children:["For every qualified referral (Referee’s Uptime ",">"," 72 hours), both parties get one-time ",(0,I.jsx)("strong",{className:"text-primary",children:"720 BERRY"})," bonus."]}),(0,I.jsx)("br",{}),(0,I.jsxs)("p",{children:["You (the Referrer) get a perpetual ",(0,I.jsx)("strong",{className:"text-primary",children:"15%"})," bonus from your direct referee’s total rewards, and a perpetual"," ",(0,I.jsx)("strong",{className:"text-primary",children:"5%"})," bonus from your next-tier referee. No up limits!"]})]})})]})]})},{})},{name:"My Profile",icon:function(e){return M.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16"},e),d||(d=M.createElement("g",{clipPath:"url(#profile_svg__a)"},M.createElement("path",{fill:"currentColor",d:"M12.469 12.006A4 4 0 0 0 9 10H7a4 4 0 0 0-3.469 2.006A5.99 5.99 0 0 0 8 14a6 6 0 0 0 4.469-1.994M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m8 .5A2.25 2.25 0 1 0 8 4a2.25 2.25 0 0 0 0 4.5"}))),x||(x=M.createElement("defs",null,M.createElement("clipPath",{id:"profile_svg__a"},M.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))},content:(0,I.jsx)(function(){var e;let t=(0,z.Eu)(),n=null===(e=t.queryUserInfo)||void 0===e?void 0:e.data,s=(null==n?void 0:n.stat.exp)||0,r=tu.find((e,t)=>(null==n?void 0:n.stat.level)===t)||tu[0],a=r.name,[l,i]=(0,eY.Z)(!1),[o,c]=(0,eY.Z)(!1),d=(0,H.useMemo)(()=>{let e=tu.find(e=>e.exp>=s);if(!e)return 100;if(0==e.level)return 0;let t=tu[e.level-1].exp,n=100/(tu.length-1);return ey().round(n*(e.level-1)+n*(s-t)/(e.exp-t),1)},[s]),x=(0,tt.useRouter)();return(0,I.jsxs)("div",{className:"grid xl:grid-cols-2 gap-4",children:[(0,I.jsxs)(eg,{tit:"Berry-Up Program",children:[(0,I.jsxs)("div",{className:"flex gap-7",children:[(0,I.jsx)(r.icon,{className:"text-[7.5rem]"}),(0,I.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,I.jsxs)("div",{className:"flex items-center gap-4",children:[(0,I.jsxs)("span",{className:"text-2xl font-medium",children:[a," "]}),(0,I.jsx)(eD,{})]}),(0,I.jsx)(eQ,{tit:null==n?void 0:n.stat.exp,subClassName:"opacity-100",sub:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(es,{}),"Sunshine"]})})]})]}),(0,I.jsxs)("p",{className:"text-sm",children:["Unlock ",(0,I.jsx)("span",{className:"underline",children:"achievements"})," to earn ",(0,I.jsx)("strong",{children:"Sunshine"}),".",(0,I.jsx)("br",{}),"More ",(0,I.jsx)("strong",{children:"Sunshine"})," grows your user level.",(0,I.jsx)("br",{}),"With higher user level, you enjoy higher Extra Boost on your ",(0,I.jsx)("strong",{children:" BERRY"})," rewards!"]}),(0,I.jsxs)("div",{className:"flex justify-between items-start flex-nowrap relative",children:[tu.map((e,t)=>(0,I.jsxs)("div",{className:"flex flex-col items-center",children:[(0,I.jsx)(e.icon,{className:"text-[3.125rem]"}),(0,I.jsxs)("span",{className:"mt-[.3125rem] text-center flex items-center gap-1 h-[1.4375rem] text-sm font-medium",children:[e.exp," ",(0,I.jsx)(es,{className:"inline-block"})]}),(0,I.jsxs)("span",{className:"mt-[1.875rem] text-white/50 text-left text-xs",children:[e.name,(0,I.jsx)("br",{}),e.boost]})]},e.name)),(0,I.jsxs)("div",{className:"absolute left-0 top-[5.5rem] h-[.625rem] w-full",children:[(0,I.jsx)(ts.W,{className:"w-full h-2.5",classNames:{track:"bg-white/20"},color:"primary",value:d,maxValue:100}),(0,I.jsx)("div",{className:"w-full h-2.5 flex justify-between absolute left-0 top-0",children:tu.map(e=>(0,I.jsx)("div",{className:"bg-white/80 rounded-full w-2.5 h-2.5 border-2 border-primary"},e.level))})]})]})]}),(0,I.jsxs)(eg,{tit:"My Profile",children:[(0,I.jsxs)("div",{className:"flex items-center gap-4",children:[(0,I.jsx)(tx,{name:null==n?void 0:n.email,size:60}),(0,I.jsx)("span",{className:"text-xl font-medium",children:(null==n?void 0:n.email)||""}),(0,I.jsx)(ek.a5,{tip:"Reset Password",className:"ml-auto",onClick:()=>c(),children:(0,I.jsx)(eT.UIZ,{})}),(0,I.jsx)(ek.a5,{tip:"Log Out",onClick:()=>i(),children:(0,I.jsx)(eT.xqh,{})}),(0,I.jsx)(eW,{tit:"Log Out",msg:(0,I.jsxs)(I.Fragment,{children:["You are going to log out your account.",(0,I.jsx)("br",{}),"Are you sure?"]}),isOpen:l,onCancel:i,onConfirm:t.logout}),(0,I.jsx)(eW,{tit:"Reset Password",msg:(0,I.jsxs)(I.Fragment,{children:["Are you sure you want to reset your password?",(0,I.jsx)("br",{}),"You will leave current page and redirect to the Reset Password page."]}),isOpen:o,onCancel:c,onConfirm:()=>x.push("/reset?email=".concat(null==n?void 0:n.email))})]}),(0,I.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,I.jsx)(tm,{type:"x"}),(0,I.jsx)(tm,{type:"discord"}),(0,I.jsx)(tm,{type:"telegram"})]})]})]})},{})}],tg=(0,H.createContext)({toMenu:e=>{},current:tf[0]});function th(e){let{children:t}=e,[n,s]=(0,H.useState)(""),r=(0,tt.useSearchParams)().get("tab"),a=tf.find(e=>(0,ex.N3)(e.name)===r)||tf[0],l=(0,tt.useRouter)();return(0,I.jsx)(tg.Provider,{value:{toMenu:e=>{let t=tf.find(t=>t.name===e);if(t){let e=new URLSearchParams(location.search);e.set("tab",(0,ex.N3)(t.name)),l.push("/?".concat(e.toString())),s(t.name)}},current:a},children:t})}function tp(){return(0,H.useContext)(tg)}function tA(){var e,t;let n=null===(e=(0,z.Eu)().queryUserInfo)||void 0===e?void 0:e.data,s=(null===(t=tu.find((e,t)=>(null==n?void 0:n.stat.level)===t))||void 0===t?void 0:t.name)||tu[0].name,r=(null==n?void 0:n.stat.exp)||0,a=tp();return(0,I.jsxs)("div",{className:"flex justify-between items-center flex-grow-0 flex-shrink-0 h-16 overflow-hidden px-4 border border-black gap-4",children:[(0,I.jsx)("img",{className:"h-12",src:"/logo.svg",alt:"Logo"}),(0,I.jsxs)("div",{className:"flex justify-start items-center flex-grow-0 flex-shrink-0 h-8 relative overflow-hidden gap-2 p-1 rounded-3xl backdrop-blur-[1.25rem] ml-auto bg-l2 cursor-pointer",onClick:()=>a.toMenu("My Rewards"),children:[(0,I.jsx)("span",{className:"relative text-2xl",children:(0,I.jsx)(ee,{})}),(0,I.jsxs)("p",{className:"flex-grow-0 flex-shrink-0 text-sm font-medium text-left",children:[(0,I.jsxs)("span",{className:"flex-grow-0 flex-shrink-0 text-sm font-medium text-left text-white",children:[(0,eB.Ih)(null==n?void 0:n.point.total)," "]}),(0,I.jsx)("span",{className:"flex-grow-0 flex-shrink-0 text-sm font-medium text-left text-white/50",children:"BERRY"})]})]}),(0,I.jsxs)("div",{className:"flex justify-start items-center flex-grow-0 flex-shrink-0 h-8 relative overflow-hidden gap-2 p-1 rounded-3xl backdrop-blur-[1.25rem] bg-l2 cursor-pointer",onClick:()=>a.toMenu("My Profile"),children:[(0,I.jsxs)("div",{className:"flex-grow-0 flex-shrink-0 px-2 h-6 rounded-full text-white flex justify-center items-center gap-1 font-medium text-sm bg-primary",children:[r," ",(0,I.jsx)(es,{className:"fix-v-center-inflex"})]}),(0,I.jsx)("p",{className:"flex-grow-0 flex-shrink-0 text-sm font-medium text-left text-white",children:s})]}),(0,I.jsx)("div",{className:"flex justify-center items-center flex-grow-0 flex-shrink-0 w-8 h-8 relative overflow-hidden gap-2.5 p-2 rounded-3xl bg-white/10 cursor-pointer",onClick:()=>a.toMenu("My Profile"),children:(0,I.jsx)(tx,{name:null==n?void 0:n.email,size:24})})]})}function tv(){let e=tp();return(0,I.jsx)("div",{className:"flex flex-col justify-start items-center flex-grow-0 flex-shrink-0 w-[3.75rem] lg:w-60 py-3 pl-3 lg:px-3 transition-width",children:tf.map(t=>{let n=t.icon,s=t.name===e.current.name;return(0,I.jsxs)("div",{className:(0,el.cn)("flex justify-start items-center self-stretch flex-grow-0 flex-shrink-0 h-12 gap-2.5 px-3 rounded-2xl cursor-pointer select-none",{"bg-primary text-white":s,"text-white/50 hover:bg-default":!s}),onClick:()=>{e.toMenu(t.name)},children:[(0,I.jsx)("div",{className:(0,el.cn)("flex justify-center items-center flex-grow-0 flex-shrink-0 w-6 h-6 relative gap-2.5 rounded-full",{"bg-blue-400":s}),children:(0,I.jsx)(n,{className:(0,el.cn)("text-base")})}),(0,I.jsx)("div",{className:"text-xs font-medium text-left whitespace-nowrap hidden lg:block",children:t.name})]},t.name)})})}let tw=()=>{let e=tp();return(0,I.jsxs)("div",{className:"flex flex-col",children:[(0,I.jsx)(tA,{}),(0,I.jsxs)("div",{className:"flex-1 flex",children:[(0,I.jsx)(tv,{}),tf.map(t=>(0,I.jsx)(H.Fragment,{children:e.current.name===t.name&&(0,I.jsxs)("div",{className:"flex-1 px-4 py-4 md:px-6 flex flex-col w-0 gap-4",children:[(0,I.jsx)("h2",{className:"text-[2rem] font-medium",children:e.current.name}),e.current.content]})},t.name))]})]})};var tj=()=>(0,I.jsx)(th,{children:(0,I.jsx)(tw,{})}),tb=n(62985);function tN(){let{user:e}=(0,H.useContext)(z.Vo);return ew.Z.setAuth(null==e?void 0:e.token),!function(){let e=(0,tt.useSearchParams)().get("err");(0,H.useEffect)(()=>{tn(e)},[e])}(),(null==e?void 0:e.token)||(null==e?void 0:e.accessToken)?(0,I.jsx)(tj,{}):(0,I.jsx)(tb.default,{})}},62985:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var s=n(81210),r=n(27767),a=n(36689),l=n(13882),i=n(2793),o=n(47608),c=n(52897),d=n(17528),x=n(49755),u=n(63568);function m(){let[e,t]=(0,x.useState)(""),[n,m]=(0,x.useState)(""),f=(0,x.useContext)(u.Vo),{mutate:g,isPending:h}=(0,d.D)({onError:o.rV,mutationFn:async t=>{t.preventDefault(),await f.login({email:e,password:n})}}),p=h||!0!==(0,c.oH)(e)||!n;return(0,s.jsxs)("div",{className:"mx-auto px-5 min-h-full flex flex-col gap-4 items-center w-full max-w-[25rem]",children:[(0,s.jsx)("img",{src:"logo.svg",alt:"Logo",className:"mt-auto h-[4.9375rem]"}),(0,s.jsxs)("form",{onSubmit:g,className:"flex flex-col gap-5 w-full",children:[(0,s.jsx)(a.j7,{setEmail:t}),(0,s.jsx)(a.CM,{setPassword:m,validate:()=>null}),(0,s.jsx)(r.un,{type:"submit",isDisabled:p,isLoading:h,children:"Sign In"}),(0,s.jsx)(i.e,{})]}),(0,s.jsxs)("div",{className:"mb-auto flex items-center w-full text-xs text-white/60",children:["Don’t have an account?",(0,s.jsx)(l.g,{href:"/signup",className:"ml-2 text-xs",children:"Sign Up"}),(0,s.jsx)(l.g,{href:"/reset?email=".concat(e),className:"ml-auto text-xs",children:"Forget Password?"})]})]})}}},function(e){e.O(0,[495,863,825,242,720,862,582,404,885,510,406,110,566,444,805,481,113,793,403,331,744],function(){return e(e.s=63292)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{63292:function(e,t,n){Promise.resolve().then(n.bind(n,8804))},8804:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tN}});var s,r,a,l,i,o,c,d,x,u,m,f,g,h,p,A,v,w,j,b,N,y,S,R,k,B,E,O,C,G,I=n(81210),H=n(49755),z=n(53179),M=n(24450);function Q(){return(Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e(t),eA.Am.success("Copied !")}}var ew=n(74572),ej=n(76114),eb=n(67523),eN=n(13910),ey=n.n(eN),eS=n(66115),eR=n(19007),ek=n(27767),eB=n(74568),eE=n(44789);let eO=[{sort:0,btn:"Download Chrome Extension",tit:"Chrome Extension Node",sub:(0,I.jsxs)("div",{children:["Initiate your first EnReach Node and win 40 ",(0,I.jsx)(es,{className:"inline-block fix-v-center"})]}),reward:(0,I.jsxs)(I.Fragment,{children:["40 ",(0,I.jsx)(es,{className:"inline-block fix-v-center"})]}),icon:(0,I.jsx)(er,{}),rewardIcon:(0,I.jsx)(es,{})},{sort:1,btn:"Connect X",tit:"Connect X",sub:"Connect and verify X account",reward:(0,I.jsxs)(I.Fragment,{children:["30 ",(0,I.jsx)(es,{className:"inline-block fix-v-center"})]}),icon:(0,I.jsx)(function(e){return M.createElement("svg",V({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 48 48"},e),N||(N=M.createElement("rect",{width:48,height:48,fill:"#fff",rx:24})),M.createElement("mask",{id:"x_svg__a",width:28,height:28,x:9,y:10,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},y||(y=M.createElement("path",{fill:"#fff",d:"M9 10h28v28H9z"}))),S||(S=M.createElement("g",{mask:"url(#x_svg__a)"},M.createElement("path",{fill:"#212121",d:"M29.373 14.083h3.4l-7.427 8.51 8.737 11.58h-6.84l-5.36-7.022-6.128 7.022h-3.403l7.942-9.105-8.377-10.983h7.014l4.839 6.417zm-1.196 18.05h1.885l-12.16-16.116h-2.02z"}))))},{}),rewardIcon:(0,I.jsx)(es,{})},{sort:1,btn:"Connect Discord",tit:"Connect Discord",sub:"Connect and verify Discord account",reward:(0,I.jsxs)(I.Fragment,{children:["30 ",(0,I.jsx)(es,{className:"inline-block fix-v-center"})]}),icon:(0,I.jsx)(function(e){return M.createElement("svg",W({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 48 48"},e),R||(R=M.createElement("rect",{width:48,height:48,fill:"#fff",rx:24})),k||(k=M.createElement("path",{fill:"#706BE8",d:"M31.482 16.218a19.8 19.8 0 0 0-4.982-1.551q-.047.001-.082.035c-.21.385-.455.886-.618 1.271a18.8 18.8 0 0 0-5.6 0 12 12 0 0 0-.63-1.271c-.012-.024-.047-.035-.082-.035-1.75.303-3.418.828-4.981 1.551-.012 0-.024.012-.035.024-3.174 4.748-4.049 9.368-3.617 13.941 0 .024.012.047.035.059a20.3 20.3 0 0 0 6.113 3.091c.035.012.07 0 .082-.023.467-.642.887-1.318 1.248-2.03.024-.047 0-.093-.046-.105a14.4 14.4 0 0 1-1.914-.91c-.046-.023-.046-.093-.011-.128.128-.094.256-.199.385-.292a.07.07 0 0 1 .081-.012c4.014 1.832 8.342 1.832 12.309 0a.07.07 0 0 1 .081.012c.129.105.257.198.385.303.047.035.047.105-.011.129-.607.361-1.249.653-1.914.91-.046.011-.058.07-.046.105.373.711.793 1.388 1.248 2.03.035.011.07.023.105.011a20.2 20.2 0 0 0 6.125-3.091.06.06 0 0 0 .035-.059c.513-5.285-.852-9.87-3.617-13.941-.011-.012-.023-.024-.046-.024M18.94 27.395c-1.202 0-2.205-1.108-2.205-2.473s.98-2.474 2.205-2.474c1.237 0 2.217 1.12 2.205 2.474 0 1.365-.98 2.473-2.205 2.473m8.132 0c-1.202 0-2.205-1.108-2.205-2.473s.98-2.474 2.205-2.474c1.236 0 2.216 1.12 2.205 2.474 0 1.365-.969 2.473-2.205 2.473"})))},{}),rewardIcon:(0,I.jsx)(es,{})},{sort:1,btn:"Connect Telegram",tit:"Connect Telegram",sub:"Connect and verify Telegram account",reward:(0,I.jsxs)(I.Fragment,{children:["30 ",(0,I.jsx)(es,{className:"inline-block fix-v-center"})]}),icon:(0,I.jsx)(function(e){return M.createElement("svg",q({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 48 48"},e),B||(B=M.createElement("rect",{width:48,height:48,fill:"#fff",rx:24})),E||(E=M.createElement("path",{fill:"#4281FF",d:"m34.179 15.392-3.697 17.435c-.279 1.23-1.006 1.536-2.04.957l-5.633-4.151-2.718 2.614c-.3.3-.552.552-1.132.552l.405-5.736 10.44-9.434c.454-.405-.098-.629-.706-.224L16.192 25.53l-5.556-1.739c-1.209-.377-1.23-1.208.252-1.788L32.62 13.63c1.007-.377 1.887.224 1.559 1.761"})))},{}),rewardIcon:(0,I.jsx)(es,{})}],eC=()=>{window.open("https://chromewebstore.google.com/detail/extid","_blank")};function eG(){var e;let t=null===(e=(0,z.Eu)().queryUserInfo)||void 0===e?void 0:e.data,n=tp();return(0,H.useMemo)(()=>t?[{complete:!!(null==t?void 0:t.task.extension),onGoTo:eC},{complete:!!(null==t?void 0:t.social.x),onGoTo:()=>n.toMenu("My Profile")},{complete:!!(null==t?void 0:t.social.discord),onGoTo:()=>n.toMenu("My Profile")},{complete:!!(null==t?void 0:t.social.tg),onGoTo:()=>n.toMenu("My Profile")}].map((e,t)=>({...e,...eO[t]})):[],[t])}function eI(e){let{tit:t,sub:n,reward:s,isProgress:r,progress:a=0,complete:l,onClickCarry:i}=e;return(0,I.jsxs)("div",{className:"bg-white/10 rounded-lg p-4 flex items-center justify-between",children:[(0,I.jsxs)("div",{className:"flex flex-col items-start gap-1 text-sm",children:[(0,I.jsx)("span",{className:"text-white",children:t}),(0,I.jsx)("span",{className:"text-white/50",children:n}),(0,I.jsxs)("span",{className:"text-primary gap-1",children:["+",s]})]}),r?(0,I.jsx)(eE.Ip,{className:"!w-14 !h-14",styles:{path:{stroke:"#fff",strokeLinecap:"butt",transition:"stroke-dashoffset 0.5s ease 0s",transform:"rotate(180deg)",transformOrigin:"center center"},trail:{stroke:"rgba(255,255,255,0.1)",strokeLinecap:"butt",transformOrigin:"center center"},text:{fill:"#fff",fontSize:"1.125rem"}},text:"".concat(a,"%"),value:a}):(0,I.jsxs)(ek.un,{className:(0,el.cn)("flex items-center gap-2 ",{"bg-white/80 text-primary hover:bg-white":l}),onClick:()=>!l&&(null==i?void 0:i()),children:[l?"Done":"Go",l&&(0,I.jsx)(ed.be3,{className:"text-base "})]})]})}function eH(){let e=eG();return(0,I.jsx)(eg,{tit:"Task & Achievements",className:"col-span-10",children:(0,I.jsx)("div",{className:"grid xl:grid-cols-2 gap-5",children:e.map(e=>(0,I.jsx)(eI,{tit:e.tit,sub:e.sub,reward:e.reward,complete:e.complete,onClickCarry:e.onGoTo},e.tit))})})}function ez(){let e=eG(),t=e.find(e=>!e.complete);return(0,I.jsx)(I.Fragment,{children:t?(0,I.jsxs)(eh,{className:"justify-between px-5 py-7 xl:order-2",children:[(0,I.jsxs)("div",{className:"flex items-center justify-center mt-6 text-[3rem]",children:[(0,I.jsx)("div",{className:"shadow-2 rounded-full",children:t.icon}),(0,I.jsx)("div",{className:"shadow-2 rounded-full w-12 h-12 flex justify-center items-center -ml-3 bg-white text-2xl",children:t.rewardIcon})]}),(0,I.jsxs)("div",{className:"flex flex-col justify-start items-center relative gap-1",children:[(0,I.jsxs)("p",{className:"flex-grow-0 flex-shrink-0 text-4xl font-bold text-center uppercase text-white gap-2",children:["Get ",t.reward]}),(0,I.jsx)("p",{className:"flex-grow-0 flex-shrink-0 h-7 opacity-60 text-sm text-center text-white",children:t.sub})]}),(0,I.jsx)(ek.uU,{className:"flex-grow-0 flex-shrink-0 w-full text-xs font-medium",onClick:t.onGoTo,children:t.btn})]}):(0,I.jsx)(eh,{className:"justify-between px-5 py-7 min-h-[12.5rem] xl:order-2 relative",children:!!e.length&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("img",{className:"object-cover absolute left-0 top-0 w-full h-full",src:"bg-coming.svg",alt:"bg"}),(0,I.jsx)("img",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",src:"task-coming.svg",alt:"comming"}),(0,I.jsx)("div",{style:{top:"calc(50% + 3.125rem)"},className:"absolute left-1/2 -translate-x-1/2 whitespace-nowrap text-center text-white/70 text-base",children:"More tasks coming soon..."})]})})})}var eM=n(62365);function eQ(e){let{tit:t,sub:n,subTip:s,className:r,titClassName:a,subClassName:l}=e;return(0,I.jsxs)("div",{className:(0,el.cn)("flex flex-col justify-start items-start relative shrink-0",r),children:[(0,I.jsx)("p",{className:(0,el.cn)("self-stretchflex-shrink-0 text-2xl font-medium text-left text-white",a),children:t}),(0,I.jsxs)("div",{className:(0,el.cn)("flex justify-start items-center flex-shrink-0 relative gap-1 text-sm opacity-50 text-white",l),children:[n,s&&(0,I.jsx)(eM.S,{content:s})]})]})}function eX(){return(0,I.jsx)("div",{className:"bg-white opacity-30 w-[1px] h-6 shrink-0"})}function eD(){var e,t,n;let s=(0,z.Eu)(),r=(0,eB.if)(null===(n=s.queryUserInfo)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:null===(e=t.stat)||void 0===e?void 0:e.extraBoost);return(0,I.jsxs)("div",{className:"flex items-center rounded-full px-3 py-[.375rem] bg-primary ml-auto",children:[(0,I.jsx)("span",{className:"font-sans text-xl",children:(0,I.jsx)(et,{})}),(0,I.jsxs)("div",{className:"text-xs font-medium",children:[r,"x ",(0,I.jsx)("span",{className:"opacity-50",children:"Boosting"})]})]})}let eF=["Total Rewards","Network Rewards","Referral Bonus"];function eP(e){let{className:t}=e,[n,s]=(0,H.useState)(eF[0]),{data:r,isLoading:a}=(0,ej.a)({queryKey:["TrendingChart"],queryFn:()=>ew.Z.trendingRewards()}),[l,i]=function(){let[e,t]=(0,H.useState)(0),[n,{width:s}]=(0,eS.Z)();return(0,eR.Z)(()=>{t(s)},300,[s]),(0,H.useMemo)(()=>[n,e],[n,e])}(),o=(0,H.useMemo)(()=>{if(!i)return{};let e=r||[],t=e.map(e=>(0,ex.G$)(1e3*e.date,"MMMD")),s=e.map(e=>ey().toNumber("Total Rewards"===n?e.totalPoint:"Network Rewards"===n?e.networkPoint:e.referralPoint));console.info("width:",i);let a=Math.floor(i/48),l=t.length-1;return{animation:!0,animationDuration:200,tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:40,top:10,bottom:30,right:20,show:!1},dataZoom:[{type:"inside",startValue:Math.max(0,l-a),endValue:l,zoomOnMouseWheel:!1,moveOnMouseWheel:!0},{show:!1}],xAxis:{type:"category",data:t,axisLabel:{fontSize:10,color:"rgba(255,255,255,0.5)"}},yAxis:{type:"value",boundaryGap:[0,"10%"],axisLabel:{color:"rgba(255,255,255,0.5)"},splitLine:{lineStyle:{type:"dashed",color:"#fff",opacity:.05}}},series:[{data:s,type:"bar",itemStyle:{borderRadius:10,color:"#4281FF"},label:{show:!0,formatter:e=>(0,eB.Ih)(e.value),position:"top",color:"rgba(255,255,255,0.5)"},barWidth:20,barMinWidth:20,barCategoryGap:38}],darkMode:!0}},[i,r,n]);return(0,I.jsx)(eg,{tit:"Trending",className:(0,el.cn)("col-span-1 lg:col-span-2 h-full",t),right:(0,I.jsx)(ei.g,{className:"w-[10rem]",classNames:{mainWrapper:"rounded-lg bg-neutral-100/10",trigger:"rounded-lg bg-transparent text-xs",value:"text-xs"},selectionMode:"single",selectedKeys:[n],onSelectionChange:e=>{console.info("k:",e),s(e.currentKey)},children:eF.map(e=>(0,I.jsx)(eo.R,{className:"text-xs ",classNames:{title:"text-xs whitespace-nowrap"},children:e},e))}),children:(0,I.jsx)("div",{className:"w-full flex-1",ref:l,children:(0,I.jsx)(eb.Z,{style:{minHeight:200,height:"100%"},className:"w-full",option:o})})})}var eT=n(85947),eJ=n(97427),eY=n(54957),eL=n(77422),eU=n(36957);function eV(){let[e,t]=(0,eY.Z)(!1);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ek.un,{onClick:()=>t(),children:"Add New Node"}),(0,I.jsxs)(eL.C,{isOpen:e,onClose:()=>t(!1),tit:"Add New Node",children:[(0,I.jsxs)("div",{className:"flex flex-col justify-start items-center self-stretch flex-grow-0 flex-shrink-0 gap-2.5",children:[(0,I.jsxs)("div",{className:"flex flex-col justify-center items-center self-stretch flex-grow-0 flex-shrink-0 relative gap-5",children:[(0,I.jsx)(er,{className:"text-[3.75rem]"}),(0,I.jsxs)("p",{className:"self-stretch flex-grow-0 flex-shrink-0 text-sm text-center text-white",children:[(0,I.jsx)("span",{className:"self-stretch flex-grow-0 flex-shrink-0 text-sm font-bold text-center text-white",children:"Chrome Extension Node"}),(0,I.jsx)("br",{}),(0,I.jsx)("span",{className:"self-stretch flex-grow-0 flex-shrink-0 text-sm text-center text-white",children:"The super light-weight node that helps EnReach Network to gain perception to the network’s capability and potential to serve the network"})]})]}),(0,I.jsx)(ek.un,{className:"w-full",onClick:()=>window.open("https://chromewebstore.google.com/detail/".concat(eU.u1),"_blank"),children:"Download"})]}),(0,I.jsxs)("div",{className:"flex flex-col justify-center items-center self-stretch flex-grow-0 flex-shrink-0 relative gap-5",children:[(0,I.jsx)(eJ.tLz,{className:"text-[3.75rem] text-white"}),(0,I.jsxs)("p",{className:"self-stretch flex-grow-0 flex-shrink-0 text-sm text-center text-white/50",children:[(0,I.jsx)("span",{className:"self-stretch flex-grow-0 flex-shrink-0 text-sm font-bold text-center text-white/40",children:"Desktop Node (Coming Soon)"}),(0,I.jsx)("br",{}),(0,I.jsx)("span",{className:"self-stretch flex-grow-0 flex-shrink-0 text-sm text-center text-white/40",children:"Edge Node (Coming Soon) The working nodes at edge side that provides qualified edge cloud capabilities"})]})]})]})]})}function eW(e){return(0,I.jsx)(eL.C,{isOpen:e.isOpen,tit:e.tit,onClose:e.onCancel,children:(0,I.jsxs)("div",{className:"flex flex-col gap-6 w-full",children:[(0,I.jsx)("div",{className:"text-center text-sm whitespace-pre-wrap",children:e.msg}),(0,I.jsxs)("div",{className:"grid grid-cols-2 gap-2.5",children:[(0,I.jsx)(ek.un,{color:"default",onClick:e.onConfirm,children:"Confirm"}),(0,I.jsx)(ek.un,{onClick:e.onCancel,children:"Cancel"})]})]})})}var eq=n(58950),eZ=n(15869),eK=n(7586),e_=n(83277),e$=n(18422),e0=n(53716);function e1(e){let{head:t,data:n,empty:s,loadingContent:r,isLoading:a}=e;return(0,I.jsxs)(eq.b,{removeWrapper:!0,className:(0,el.cn)("overflow-auto pb-3"),disabledBehavior:"selection",children:[(0,I.jsx)(eZ.J,{className:"p-0",children:t.map((e,t)=>(0,I.jsx)(eK.j,{className:"bg-transparent py-0 h-6 whitespace-nowrap text-sm font-normal text-white",children:e},t))}),(0,I.jsx)(e_.y,{emptyContent:s,loadingContent:r,isLoading:a,children:n.map((e,t)=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(e$.g,{className:"opacity-0 h-3 p-0",children:e.map((e,t)=>(0,I.jsx)(e0.X,{className:"p-0 leading-3",children:"s"},t))},"space_".concat(t)),(0,I.jsx)(e$.g,{className:"mt-5","data-focus-visible":!1,children:e.map((n,s)=>(0,I.jsx)(e0.X,{"data-focus-visible":!1,className:(0,el.cn)("bg-white/10 h-[3.125rem] whitespace-nowrap text-xs text-white/80",{"rounded-l-lg":0==s,"rounded-r-lg":s==e.length-1}),children:n},"stable_cell_".concat(t,"_").concat(s)))},"stable_row_".concat(t))]}))})]})}var e2=n(37018),e3=n(83332),e4=n(72378),e5=n(17528),e6=n(84824);let e7={inputWrapper:"h-5 min-h-5 w-[7.5rem] outline-none rounded-lg border-1 !border-white/20 bg-transparent text-xs",label:"text-xs",input:"text-xs !text-white/80"};function e8(e){let{node:t}=e,[n,s]=(0,eY.Z)(!1),[r,a]=(0,H.useState)(t.name||""),{mutate:l,isPending:i}=(0,e5.D)({onError:ex.rV,mutationFn:async()=>(await ew.Z.updateNodeName(t,r),t.name=r,s(!1),!0)}),o=t.name||"Untitled Device",c=()=>{r&&r!==o?l():s(!1)};return(0,I.jsxs)("div",{className:"flex min-w-[10rem] gap-2.5 items-center",children:[n?(0,I.jsx)(e2.Y,{className:"w-fit",autoFocus:!0,classNames:e7,value:r,maxLength:20,onChange:e=>a(e.target.value),variant:"bordered",type:"text",placeholder:o,onKeyDown:e=>{"Enter"===e.code&&c()},onBlur:c}):(0,I.jsx)("div",{className:"max-w-[7.5rem] overflow-hidden text-ellipsis",children:o}),i&&(0,I.jsx)(e3.c,{size:"sm"}),!n&&(0,I.jsx)("div",{className:"flex justify-center items-center rounded-full bg-white/80 hover:bg-white text-black text-[.5rem] w-3 h-3 cursor-pointer",onClick:()=>s(),children:(0,I.jsx)(eT.vPQ,{})})]})}function e9(e){let{ip:t,country:n}=e;return(0,I.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,I.jsx)("span",{className:(0,el.cn)("text-base fi fi-".concat((n||"").toLowerCase()))}),(0,I.jsx)("span",{children:t})]})}function te(e){let{isConnected:t}=e;return(0,I.jsxs)("div",{className:(0,el.cn)(" flex items-center gap-1",t?"text-green-400":"text-white/60"),children:[t?(0,I.jsx)(ed.be3,{className:"text-[.9375rem]"}):(0,I.jsx)(ed.FMH,{className:"text-[.9375rem]"}),t?"Connected":"Offline"]})}var tt=n(95258);function tn(e){"handle_third_party_failed"===e&&eA.Am.error("Oops! This account has been connected to an existing EnReach account.")}var ts=n(64947),tr=n(50857),ta=n(80957),tl=n(84243),ti=n(84533),to=n.n(ti),tc=n(43249),td=n.n(tc);function tx(e){let{name:t,className:n,size:s,showFirst:r}=e;return(0,I.jsxs)("div",{className:(0,el.cn)("relative flex",n),style:{fontSize:Math.floor(.4*(s||24))},children:[(0,I.jsx)(to(),{name:t,size:s,variant:"marble"}),t&&r&&(0,I.jsx)("div",{className:"absolute left-0 top-0 h-full w-full flex justify-center items-center text-white font-medium font-HelveticaNeue",children:td()(t[0])})]})}let tu=[{icon:e=>{let{className:t}=e;return(0,I.jsx)("img",{className:(0,el.cn)("w-[1em] h-[1em] object-contain",t),src:"/level0.png",alt:"level0"})},exp:0,level:0,name:"Baby Berry",boost:"+ 0%",color:"#DFDFDF"},{icon:e=>{let{className:t}=e;return(0,I.jsx)("img",{className:(0,el.cn)("w-[1em] h-[1em] object-contain",t),src:"/level1.png",alt:"level1"})},exp:100,level:1,name:"Teen Berry",boost:"+ 50%",color:"#EAE0F0"},{icon:e=>{let{className:t}=e;return(0,I.jsx)("img",{className:(0,el.cn)("w-[1em] h-[1em] object-contain",t),src:"/level2.png",alt:"level2"})},exp:500,level:2,name:"Big Blue",boost:"+ 100%",color:"#8A9CF1"},{icon:e=>{let{className:t}=e;return(0,I.jsx)("img",{className:(0,el.cn)("w-[1em] h-[1em] object-contain",t),src:"/level3.png",alt:"level3"})},exp:1e3,level:3,name:"Berry Captain",boost:"+ 200%",color:"#FFFBB4"}];function tm(e){var t,n;let{type:s}=e,r=(0,z.Eu)(),a=null===(n=r.queryUserInfo)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.social,[l,i]=(0,H.useMemo)(()=>{switch(s){case"x":return(null==a?void 0:a.x)?["@".concat(a.x.name),!0]:["Connect My X Account",!1];case"telegram":return(null==a?void 0:a.tg)?["@".concat(a.tg.username),!0]:["Connect My Telegram Account",!1];case"discord":return(null==a?void 0:a.discord)?["@".concat(a.discord.username),!0]:["Connect My Discord Account",!1]}},[a,s]),o="x"==s?ec.LCd:"telegram"==s?tl.AGi:ec.j2d,c=async()=>{let e=await ew.Z.getAccessToken(),t=encodeURIComponent("".concat(ew.t,"/user/auth/handler/").concat(s)),n="";switch(s){case"x":n="https://x.com/i/oauth2/authorize?response_type=code&client_id=M0hkaVBZaUZITHo2RmprZ19obEs6MTpjaQ&redirect_uri=".concat(t,"&scope=users.read%20tweet.read&code_challenge=challenge&code_challenge_method=plain&state=").concat(e);break;case"telegram":var a,l,i;let o=await (0,tr.c)("7324509153",{windowFeatures:{popup:!0,width:600,height:800}}),c=await ta.default.get("".concat(ew.t,"/user/auth/handler/telegram"),{params:{...o,state:e}});console.info("bingTG:",c.request),"string"==typeof(null===(a=c.request)||void 0===a?void 0:a.responseURL)&&tn(new URL(null===(i=c.request)||void 0===i?void 0:i.responseURL).searchParams.get("err")),null===(l=r.queryUserInfo)||void 0===l||l.refetch();return;case"discord":n="https://discord.com/oauth2/authorize?client_id=1303958338488238090&response_type=code&redirect_uri=".concat(t,"&scope=identify+email&state=").concat(e)}window.open(n,"_blank")};return(0,I.jsxs)("div",{className:"rounded-lg p-4 flex items-center gap-5 bg-white/10",children:[(0,I.jsx)(o,{className:"text-[2rem]"}),(0,I.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,I.jsx)("span",{className:"text-sm font-semibold",children:l}),(0,I.jsxs)("div",{className:(0,el.cn)("flex items-center gap-1 text-xs",i?"text-green-400":"text-white/60"),children:[i?(0,I.jsx)(ed.be3,{className:"text-[.9375rem]"}):(0,I.jsx)(ed.FMH,{className:"text-[.9375rem]"}),i?"Connected":"Not Connected"]})]}),!i&&(0,I.jsx)(ek.un,{className:"ml-auto w-[6.25rem]",onClick:c,children:i?"Disconnect":"Connect"})]})}let tf=[{name:"Overview",icon:function(e){return M.createElement("svg",Q({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16"},e),s||(s=M.createElement("g",{clipPath:"url(#overview_svg__a)"},M.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.813.158a3.198 3.198 0 1 1 1.978 6.081A3.198 3.198 0 0 1 11.813.158M.158 2.21A3.198 3.198 0 1 1 6.24 4.187 3.198 3.198 0 0 1 .158 2.21m5.628 12.47a3.198 3.198 0 1 1-5.174-3.759 3.198 3.198 0 0 1 5.174 3.76m4.427 0a3.199 3.199 0 1 1 5.177-3.759 3.199 3.199 0 0 1-5.177 3.76",clipRule:"evenodd"}))),r||(r=M.createElement("defs",null,M.createElement("clipPath",{id:"overview_svg__a"},M.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))},content:(0,I.jsx)(function(){var e;let t=ev(),n=null===(e=(0,z.Eu)().queryUserInfo)||void 0===e?void 0:e.data,s=(null==n?void 0:n.node.connected)||0;return(0,I.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-4",children:[(0,I.jsx)(em,{icon:ee,tit:(0,I.jsxs)("div",{className:"flex justify-between items-center flex-1",children:[(0,I.jsx)("span",{children:"BERRY"}),(0,I.jsx)(eD,{})]}),content:(0,I.jsxs)("div",{className:"flex flex-1 items-center gap-[10%] min-w-[11.25rem]",children:[(0,I.jsx)(eQ,{tit:"".concat((0,eB.Ih)(null==n?void 0:n.point.today)),sub:"Today"}),(0,I.jsx)(eX,{}),(0,I.jsx)(eQ,{tit:"".concat((0,eB.Ih)(null==n?void 0:n.point.total)),sub:"Season 1",subTip:"You are currently on Season 1 stage."})]})}),(0,I.jsx)(em,{icon:$,tit:(0,I.jsxs)("div",{className:"flex justify-between items-center flex-1",children:[(0,I.jsx)("span",{children:"My Referrals"}),(0,I.jsx)(ek.a5,{tip:"Copy Referral Link",onClick:()=>t("".concat(origin,"/signup?referral=").concat(null==n?void 0:n.inviteCode)),children:(0,I.jsx)(ec.gjK,{})})]}),content:(0,I.jsxs)("div",{className:"flex flex-1 items-center gap-[10%] w-full min-w-[13.75rem]",children:[(0,I.jsx)(eQ,{tit:"".concat((null==n?void 0:n.referral.valid)||0),subClassName:"text-green-400 opacity-100",sub:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ed.be3,{})," Referred"]})}),(0,I.jsx)(eX,{}),(0,I.jsx)(eQ,{tit:"".concat((null==n?void 0:n.referral.pending)||0),sub:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ed.mZq,{})," Pending"]}),subTip:"The referee needs to achieve more than 72h uptime to make your referral qualified."})]})}),(0,I.jsx)(em,{icon:K,tit:(0,I.jsx)("span",{children:"My Nodes"}),content:(0,I.jsxs)("div",{className:"flex flex-1 items-center gap-[10%] min-w-[12.5rem]",children:[(0,I.jsx)(eQ,{tit:"".concat(s),subClassName:"text-green-400 opacity-100",sub:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ed.be3,{})," Connected"]})}),(0,I.jsx)(eX,{}),(0,I.jsx)(eQ,{tit:"".concat((null==n?void 0:n.node.offline)||0),sub:"Offline"})]})}),(0,I.jsx)(ez,{}),(0,I.jsx)(eP,{})]})},{})},{name:"My Nodes",icon:K,content:(0,I.jsx)(function(){let{data:e,isFetching:t,refetch:n,isLoading:s}=(0,ej.a)({queryKey:["NodeList"],queryFn:()=>ew.Z.nodeList()}),r=(0,H.useMemo)(()=>{let t=e||[];return t.length,t.sort((e,t)=>e.isConnected!==t.isConnected?t.isConnected-e.isConnected:t.lastConnectedAt-e.lastConnectedAt).map((e,t)=>[(0,I.jsx)(e8,{node:e},"nodeName_".concat(t)),"Extension",(0,I.jsx)(e9,{country:e.countryCode,ip:e.ipAddress},"CountryIp"),(0,I.jsx)(te,{isConnected:!!e.isConnected},"status"),(0,ex.Y)(1e3*ey().toNumber(e.totalUptime),"D[d] H[h] m[m]"),(0,eB.Ie)(e.lastPoint),(0,eB.Ih)(e.todayPoints,"-"),(0,eB.Ih)(e.totalPoints,"-")])},[e]),a=(0,H.useMemo)(()=>ey().chunk(r,10),[r]),[l,i]=(0,H.useState)(1);return(0,I.jsxs)(eg,{tit:"My Nodes",className:"w-full",right:(0,I.jsxs)("div",{className:"flex gap-5 items-center",children:[(0,I.jsx)(ek.a5,{tip:"Refresh Data",onClick:()=>{t||n()},children:(0,I.jsx)(e6.PwW,{className:(0,el.cn)({"animate-spin":t})})}),(0,I.jsx)(eV,{})]}),children:[(0,I.jsx)(e1,{isLoading:s,loadingContent:(0,I.jsx)(e3.c,{}),empty:"You currently have no running nodes. Click 'Add New Node' button, download and set up your node ready for the Season 1!",head:["Node Name","Node Type","IP","Status",(0,I.jsxs)("div",{className:"flex items-center gap-1",children:["Uptime ",(0,I.jsx)(eM.S,{content:"Uptime tells users how long a node has been available."})]},"uptime"),"Network Quality",(0,I.jsxs)("div",{className:"flex items-center gap-1",children:["Today’s BERRY Rewards ",(0,I.jsx)(eM.S,{content:"Today’s Network Rewards in BEERY amount."})]},"today"),"S1 Total BERRY"],data:a[l-1]||[]}),a.length>1&&(0,I.jsx)("div",{className:"flex items-center",children:(0,I.jsx)(e4.g,{className:"mx-auto",total:a.length,page:l,onChange:i})})]})},{})},{name:"My Rewards",icon:_,content:(0,I.jsx)(function(){var e;let t=null===(e=(0,z.Eu)().queryUserInfo)||void 0===e?void 0:e.data;return(0,I.jsxs)("div",{className:"grid grid-cols-10 gap-4",children:[(0,I.jsx)(em,{icon:ee,className:"col-span-10 xl:col-span-4 justify-between",tit:(0,I.jsxs)("div",{className:"flex justify-between items-center w-full",children:[(0,I.jsx)("span",{children:"BERRY"}),(0,I.jsx)(eD,{})]}),content:(0,I.jsxs)("div",{className:"flex flex-col gap-10 min-w-[17.5rem]",children:[(0,I.jsx)(eQ,{tit:(0,I.jsx)("div",{className:"flex items-center gap-1",children:(0,eB.Ih)(null==t?void 0:t.point.total)}),sub:"Total Rewards",subTip:"Total Network Rewards for this season in BERRY amount.",titClassName:"text-[2rem]",subClassName:"text-lg"}),(0,I.jsxs)("div",{className:"flex items-center gap-[10%]",children:[(0,I.jsx)(eQ,{tit:(0,eB.Ih)(null==t?void 0:t.point.network),sub:"Network Rewards"}),(0,I.jsx)(eX,{}),(0,I.jsx)(eQ,{tit:(0,eB.Ih)(null==t?void 0:t.point.referral),sub:"Referral Bonus"})]})]})}),(0,I.jsx)("div",{className:"col-span-10 xl:col-span-6",children:(0,I.jsx)(eP,{})}),(0,I.jsx)(eH,{})]})},{})},{name:"My Referral",icon:$,content:(0,I.jsx)(function(){var e;let t=null===(e=(0,z.Eu)().queryUserInfo)||void 0===e?void 0:e.data,n=(null==t?void 0:t.referral.valid)||0,s=(null==t?void 0:t.referral.pending)||0,r=(0,eB.Ih)(null==t?void 0:t.point.referral),a=ev();return(0,I.jsxs)("div",{className:"grid xl:grid-cols-3 gap-4",children:[(0,I.jsx)(em,{icon:eJ.Bbd,iconSize:20,tit:(0,I.jsx)("div",{className:"text-xl",children:"My Referral Code"}),content:(0,I.jsxs)("div",{className:"flex items-center gap-4",children:[(0,I.jsx)("div",{className:"uppercase text-4xl leading-8 font-bold font-HelveticaNeue",children:null==t?void 0:t.inviteCode}),(0,I.jsx)(ek.a5,{tip:"Copy Referral Link",onClick:()=>a("".concat(origin,"/signup?referral=").concat(null==t?void 0:t.inviteCode)),children:(0,I.jsx)(ec.gjK,{})}),(0,I.jsx)(ek.a5,{tip:"Tweet Your Referral",onClick:()=>{let e="".concat(origin,"/signup?referral=").concat(null==t?void 0:t.inviteCode),n="https://x.com/intent/post?text=".concat(encodeURIComponent("\nJoin the magic journey with @EnReachAI – the genesis of open edge cloud, for the AI era.\n\nGet your EnReach Edge Node ready for\uD83E\uDED0BerryBurst Season 1\uD83E\uDED0\n\n "),"&url=").concat(encodeURIComponent(e));window.open(n,"_blank")},children:(0,I.jsx)(ec.LCd,{})})]})}),(0,I.jsx)(em,{icon:$,iconSize:20,tit:(0,I.jsx)("div",{className:"text-xl",children:"My Referrals"}),content:(0,I.jsxs)("div",{className:"flex items-center gap-[10%] min-w-[13.75rem]",children:[(0,I.jsx)(eQ,{tit:n,subClassName:"text-green-400 opacity-100",sub:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ed.be3,{})," Referred"]})}),(0,I.jsx)(eX,{}),(0,I.jsx)(eQ,{tit:s,sub:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ed.mZq,{})," Pending"]}),subTip:"The referee needs to achieve more than 72h uptime to make your referral qualified."})]})}),(0,I.jsx)(em,{icon:_,iconSize:20,tit:(0,I.jsxs)("div",{className:"text-xl flex items-center gap-2",children:["Referral Bonus"," ",(0,I.jsx)(eM.S,{content:"Referral Bonus include an one-time bonus for a qualified referral, and a permanent percentage share of your referees’ Network Bonus."})]}),content:(0,I.jsx)("div",{className:"flex items-center gap-[10%]",children:(0,I.jsx)(eQ,{tit:r,sub:"BERRY"})})}),(0,I.jsxs)(eg,{className:"col-span-full flex-row gap-[3.125rem] flex-wrap justify-center",children:[(0,I.jsxs)("div",{className:"flex flex-col gap-4 items-center shrink-0",children:[(0,I.jsx)(en,{className:"text-[5rem] shrink-0"}),(0,I.jsx)("div",{className:"uppercase text-[2rem] whitespace-nowrap font-HelveticaNeue leading-8",children:"Get Referral Rewards"}),(0,I.jsx)(ek.un,{className:"w-full",onClick:()=>a("".concat(origin,"/signup?referral=").concat(null==t?void 0:t.inviteCode)),children:"Copy Referral Link"})]}),(0,I.jsx)(ef,{icon:_,iconSize:20,className:"flex-1 min-w-[31.25rem]",children:(0,I.jsxs)("div",{className:"text-base",children:[(0,I.jsxs)("p",{children:["For every qualified referral (Referee’s Uptime ",">"," 72 hours), both parties get one-time ",(0,I.jsx)("strong",{className:"text-primary",children:"720 BERRY"})," bonus."]}),(0,I.jsx)("br",{}),(0,I.jsxs)("p",{children:["You (the Referrer) get a perpetual ",(0,I.jsx)("strong",{className:"text-primary",children:"15%"})," bonus from your direct referee’s total rewards, and a perpetual"," ",(0,I.jsx)("strong",{className:"text-primary",children:"5%"})," bonus from your next-tier referee. No up limits!"]})]})})]})]})},{})},{name:"My Profile",icon:function(e){return M.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16"},e),d||(d=M.createElement("g",{clipPath:"url(#profile_svg__a)"},M.createElement("path",{fill:"currentColor",d:"M12.469 12.006A4 4 0 0 0 9 10H7a4 4 0 0 0-3.469 2.006A5.99 5.99 0 0 0 8 14a6 6 0 0 0 4.469-1.994M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m8 .5A2.25 2.25 0 1 0 8 4a2.25 2.25 0 0 0 0 4.5"}))),x||(x=M.createElement("defs",null,M.createElement("clipPath",{id:"profile_svg__a"},M.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))},content:(0,I.jsx)(function(){var e;let t=(0,z.Eu)(),n=null===(e=t.queryUserInfo)||void 0===e?void 0:e.data,s=(null==n?void 0:n.stat.exp)||0,r=tu.find((e,t)=>(null==n?void 0:n.stat.level)===t)||tu[0],a=r.name,[l,i]=(0,eY.Z)(!1),[o,c]=(0,eY.Z)(!1),d=(0,H.useMemo)(()=>{let e=tu.find(e=>e.exp>=s);if(!e)return 100;if(0==e.level)return 0;let t=tu[e.level-1].exp,n=100/(tu.length-1);return ey().round(n*(e.level-1)+n*(s-t)/(e.exp-t),1)},[s]),x=(0,tt.useRouter)();return(0,I.jsxs)("div",{className:"grid xl:grid-cols-2 gap-4",children:[(0,I.jsxs)(eg,{tit:"Berry-Up Program",children:[(0,I.jsxs)("div",{className:"flex gap-7",children:[(0,I.jsx)(r.icon,{className:"text-[7.5rem]"}),(0,I.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,I.jsxs)("div",{className:"flex items-center gap-4",children:[(0,I.jsxs)("span",{className:"text-2xl font-medium",children:[a," "]}),(0,I.jsx)(eD,{})]}),(0,I.jsx)(eQ,{tit:null==n?void 0:n.stat.exp,subClassName:"opacity-100",sub:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(es,{}),"Sunshine"]})})]})]}),(0,I.jsxs)("p",{className:"text-sm",children:["Unlock ",(0,I.jsx)("span",{className:"underline",children:"achievements"})," to earn ",(0,I.jsx)("strong",{children:"Sunshine"}),".",(0,I.jsx)("br",{}),"More ",(0,I.jsx)("strong",{children:"Sunshine"})," grows your user level.",(0,I.jsx)("br",{}),"With higher user level, you enjoy higher Extra Boost on your ",(0,I.jsx)("strong",{children:" BERRY"})," rewards!"]}),(0,I.jsxs)("div",{className:"flex justify-between items-start flex-nowrap relative",children:[tu.map((e,t)=>(0,I.jsxs)("div",{className:"flex flex-col items-center",children:[(0,I.jsx)(e.icon,{className:"text-[3.125rem]"}),(0,I.jsxs)("span",{className:"mt-[.3125rem] text-center flex items-center gap-1 h-[1.4375rem] text-sm font-medium",children:[e.exp," ",(0,I.jsx)(es,{className:"inline-block"})]}),(0,I.jsxs)("span",{className:"mt-[1.875rem] text-white/50 text-left text-xs",children:[e.name,(0,I.jsx)("br",{}),e.boost]})]},e.name)),(0,I.jsxs)("div",{className:"absolute left-0 top-[5.5rem] h-[.625rem] w-full",children:[(0,I.jsx)(ts.W,{className:"w-full h-2.5",classNames:{track:"bg-white/20"},color:"primary",value:d,maxValue:100}),(0,I.jsx)("div",{className:"w-full h-2.5 flex justify-between absolute left-0 top-0",children:tu.map(e=>(0,I.jsx)("div",{className:"bg-white/80 rounded-full w-2.5 h-2.5 border-2 border-primary"},e.level))})]})]})]}),(0,I.jsxs)(eg,{tit:"My Profile",children:[(0,I.jsxs)("div",{className:"flex items-center gap-4",children:[(0,I.jsx)(tx,{name:null==n?void 0:n.email,size:60}),(0,I.jsx)("span",{className:"text-xl font-medium",children:(null==n?void 0:n.email)||""}),(0,I.jsx)(ek.a5,{tip:"Reset Password",className:"ml-auto",onClick:()=>c(),children:(0,I.jsx)(eT.UIZ,{})}),(0,I.jsx)(ek.a5,{tip:"Log Out",onClick:()=>i(),children:(0,I.jsx)(eT.xqh,{})}),(0,I.jsx)(eW,{tit:"Log Out",msg:(0,I.jsxs)(I.Fragment,{children:["You are going to log out your account.",(0,I.jsx)("br",{}),"Are you sure?"]}),isOpen:l,onCancel:i,onConfirm:t.logout}),(0,I.jsx)(eW,{tit:"Reset Password",msg:(0,I.jsxs)(I.Fragment,{children:["Are you sure you want to reset your password?",(0,I.jsx)("br",{}),"You will leave current page and redirect to the Reset Password page."]}),isOpen:o,onCancel:c,onConfirm:()=>x.push("/reset?email=".concat(null==n?void 0:n.email))})]}),(0,I.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,I.jsx)(tm,{type:"x"}),(0,I.jsx)(tm,{type:"discord"}),(0,I.jsx)(tm,{type:"telegram"})]})]})]})},{})}],tg=(0,H.createContext)({toMenu:e=>{},current:tf[0]});function th(e){let{children:t}=e,[n,s]=(0,H.useState)(""),r=(0,tt.useSearchParams)().get("tab"),a=tf.find(e=>(0,ex.N3)(e.name)===r)||tf[0],l=(0,tt.useRouter)();return(0,I.jsx)(tg.Provider,{value:{toMenu:e=>{let t=tf.find(t=>t.name===e);if(t){let e=new URLSearchParams(location.search);e.set("tab",(0,ex.N3)(t.name)),l.push("/?".concat(e.toString())),s(t.name)}},current:a},children:t})}function tp(){return(0,H.useContext)(tg)}function tA(){var e,t;let n=null===(e=(0,z.Eu)().queryUserInfo)||void 0===e?void 0:e.data,s=(null===(t=tu.find((e,t)=>(null==n?void 0:n.stat.level)===t))||void 0===t?void 0:t.name)||tu[0].name,r=(null==n?void 0:n.stat.exp)||0,a=tp();return(0,I.jsxs)("div",{className:"flex justify-between items-center flex-grow-0 flex-shrink-0 h-16 overflow-hidden px-4 border border-black gap-4",children:[(0,I.jsx)("img",{className:"h-12",src:"/logo.svg",alt:"Logo"}),(0,I.jsxs)("div",{className:"flex justify-start items-center flex-grow-0 flex-shrink-0 h-8 relative overflow-hidden gap-2 p-1 rounded-3xl backdrop-blur-[1.25rem] ml-auto bg-l2 cursor-pointer",onClick:()=>a.toMenu("My Rewards"),children:[(0,I.jsx)("span",{className:"relative text-2xl",children:(0,I.jsx)(ee,{})}),(0,I.jsxs)("p",{className:"flex-grow-0 flex-shrink-0 text-sm font-medium text-left",children:[(0,I.jsxs)("span",{className:"flex-grow-0 flex-shrink-0 text-sm font-medium text-left text-white",children:[(0,eB.Ih)(null==n?void 0:n.point.total)," "]}),(0,I.jsx)("span",{className:"flex-grow-0 flex-shrink-0 text-sm font-medium text-left text-white/50",children:"BERRY"})]})]}),(0,I.jsxs)("div",{className:"flex justify-start items-center flex-grow-0 flex-shrink-0 h-8 relative overflow-hidden gap-2 p-1 rounded-3xl backdrop-blur-[1.25rem] bg-l2 cursor-pointer",onClick:()=>a.toMenu("My Profile"),children:[(0,I.jsxs)("div",{className:"flex-grow-0 flex-shrink-0 px-2 h-6 rounded-full text-white flex justify-center items-center gap-1 font-medium text-sm bg-primary",children:[r," ",(0,I.jsx)(es,{className:"fix-v-center-inflex"})]}),(0,I.jsx)("p",{className:"flex-grow-0 flex-shrink-0 text-sm font-medium text-left text-white",children:s})]}),(0,I.jsx)("div",{className:"flex justify-center items-center flex-grow-0 flex-shrink-0 w-8 h-8 relative overflow-hidden gap-2.5 p-2 rounded-3xl bg-white/10 cursor-pointer",onClick:()=>a.toMenu("My Profile"),children:(0,I.jsx)(tx,{name:null==n?void 0:n.email,size:24})})]})}function tv(){let e=tp();return(0,I.jsx)("div",{className:"flex flex-col justify-start items-center flex-grow-0 flex-shrink-0 w-[3.75rem] lg:w-60 py-3 pl-3 lg:px-3 transition-width",children:tf.map(t=>{let n=t.icon,s=t.name===e.current.name;return(0,I.jsxs)("div",{className:(0,el.cn)("flex justify-start items-center self-stretch flex-grow-0 flex-shrink-0 h-12 gap-2.5 px-3 rounded-2xl cursor-pointer select-none",{"bg-primary text-white":s,"text-white/50 hover:bg-default":!s}),onClick:()=>{e.toMenu(t.name)},children:[(0,I.jsx)("div",{className:(0,el.cn)("flex justify-center items-center flex-grow-0 flex-shrink-0 w-6 h-6 relative gap-2.5 rounded-full",{"bg-blue-400":s}),children:(0,I.jsx)(n,{className:(0,el.cn)("text-base")})}),(0,I.jsx)("div",{className:"text-xs font-medium text-left whitespace-nowrap hidden lg:block",children:t.name})]},t.name)})})}let tw=()=>{let e=tp();return(0,I.jsxs)("div",{className:"flex flex-col",children:[(0,I.jsx)(tA,{}),(0,I.jsxs)("div",{className:"flex-1 flex",children:[(0,I.jsx)(tv,{}),tf.map(t=>(0,I.jsx)(H.Fragment,{children:e.current.name===t.name&&(0,I.jsxs)("div",{className:"flex-1 px-4 py-4 md:px-6 flex flex-col w-0 gap-4",children:[(0,I.jsx)("h2",{className:"text-[2rem] font-medium",children:e.current.name}),e.current.content]})},t.name))]})]})};var tj=()=>(0,I.jsx)(th,{children:(0,I.jsx)(tw,{})}),tb=n(62985);function tN(){let{user:e}=(0,H.useContext)(z.Vo);return ew.Z.setAuth(null==e?void 0:e.token),!function(){let e=(0,tt.useSearchParams)().get("err");(0,H.useEffect)(()=>{tn(e)},[e])}(),(null==e?void 0:e.token)||(null==e?void 0:e.accessToken)?(0,I.jsx)(tj,{}):(0,I.jsx)(tb.default,{})}},62985:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var s=n(81210),r=n(27767),a=n(36689),l=n(13882),i=n(2793),o=n(47608),c=n(52897),d=n(17528),x=n(49755),u=n(53179);function m(){let[e,t]=(0,x.useState)(""),[n,m]=(0,x.useState)(""),f=(0,x.useContext)(u.Vo),{mutate:g,isPending:h}=(0,d.D)({onError:o.rV,mutationFn:async t=>{t.preventDefault(),await f.login({email:e,password:n})}}),p=h||!0!==(0,c.oH)(e)||!n;return(0,s.jsxs)("div",{className:"mx-auto px-5 min-h-full flex flex-col gap-4 items-center w-full max-w-[25rem]",children:[(0,s.jsx)("img",{src:"logo.svg",alt:"Logo",className:"mt-auto h-[4.9375rem]"}),(0,s.jsxs)("form",{onSubmit:g,className:"flex flex-col gap-5 w-full",children:[(0,s.jsx)(a.j7,{setEmail:t}),(0,s.jsx)(a.CM,{setPassword:m,validate:()=>null}),(0,s.jsx)(r.un,{type:"submit",isDisabled:p,isLoading:h,children:"Sign In"}),(0,s.jsx)(i.e,{})]}),(0,s.jsxs)("div",{className:"mb-auto flex items-center w-full text-xs text-white/60",children:["Don’t have an account?",(0,s.jsx)(l.g,{href:"/signup",className:"ml-2 text-xs",children:"Sign Up"}),(0,s.jsx)(l.g,{href:"/reset?email=".concat(e),className:"ml-auto text-xs",children:"Forget Password?"})]})]})}}},function(e){e.O(0,[495,863,825,242,720,862,582,404,885,510,406,110,566,444,805,481,113,793,403,331,744],function(){return e(e.s=63292)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/reset/page-4746af26c8e958d8.js b/_next/static/chunks/app/reset/page-4746af26c8e958d8.js deleted file mode 100644 index adf0560..0000000 --- a/_next/static/chunks/app/reset/page-4746af26c8e958d8.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[0],{55013:function(e,t,n){Promise.resolve().then(n.bind(n,18310))},59951:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(49755),a=function(e){return(e+1)%1e6};function o(e,t){return"function"==typeof e?e.length?e(t):e():e}function s(e,t,n){void 0===e&&(e=0),void 0===t&&(t=null),void 0===n&&(n=null);var s,u,i,l=o(e);"number"!=typeof l&&console.error("initialValue has to be a number, got "+typeof e),"number"==typeof n?l=Math.max(l,n):null!==n&&console.error("min has to be a number, got "+typeof n),"number"==typeof t?l=Math.min(l,t):null!==t&&console.error("max has to be a number, got "+typeof t);var c=(s=l,u=(0,r.useRef)(o(s)),i=(0,r.useReducer)(a,0)[1],(0,r.useMemo)(function(){return[function(){return u.current},function(e){u.current=o(e,u.current),i()}]},[])),d=c[0],f=c[1];return[d(),(0,r.useMemo)(function(){var e=function(e){var r=d(),a=o(e,r);r!==a&&("number"==typeof n&&(a=Math.max(a,n)),"number"==typeof t&&(a=Math.min(a,t)),r!==a&&f(a))};return{get:d,set:e,inc:function(t){void 0===t&&(t=1);var n=o(t,d());"number"!=typeof n&&console.error("delta has to be a number or function returning a number, got "+typeof n),e(function(e){return e+n})},dec:function(t){void 0===t&&(t=1);var n=o(t,d());"number"!=typeof n&&console.error("delta has to be a number or function returning a number, got "+typeof n),e(function(e){return e-n})},reset:function(t){void 0===t&&(t=l);var n=o(t,d());"number"!=typeof n&&console.error("value has to be a number or function returning a number, got "+typeof n),l=n,e(n)}}},[l,n,t])]}},3762:function(e,t,n){"use strict";var r=n(49755);t.Z=function(e,t){var n=(0,r.useRef)(function(){});(0,r.useEffect)(function(){n.current=e}),(0,r.useEffect)(function(){if(null!==t){var e=setInterval(function(){return n.current()},t||0);return function(){return clearInterval(e)}}},[t])}},63568:function(e,t,n){"use strict";n.d(t,{Vo:function(){return l},Ho:function(){return f},Eu:function(){return m}});var r=n(81210),a=n(74572);function o(){return window.EnReachAI}var s=n(76114),u=n(95258),i=n(49755);let l=(0,i.createContext)({login:async()=>{},setUser:()=>{},logout:()=>{}}),c="last-login-user",d=()=>{try{let e=localStorage.getItem(c);if(!e)return null;return JSON.parse(e)}catch(e){return console.error(e),null}},f=e=>{let{children:t}=e,n=(0,i.useRef)(!1),f=(0,u.useRouter)(),[m,p]=(0,i.useState)(d()),g=e=>{var t,r;e?(n.current=!1,p(e),localStorage.setItem(c,JSON.stringify(e)),e.token&&(null===(r=o())||void 0===r||r.request({name:"setAccessToken",body:e.token}).catch(console.error)),f.push("/")):(n.current=!0,p(null),localStorage.removeItem(c),null===(t=o())||void 0===t||t.request({name:"clearAccessToken"}).catch(console.error),f.push("/signin"))},h=()=>{g()};(0,i.useEffect)(()=>{let e;return m&&m.token&&(e=setInterval(()=>{let e=o();if(!e){console.warn("Extension not installed");return}e.request({name:"getStat"}).then(e=>{e.logined||(console.info("sync logout from ext"),h())}).catch(console.error)},1e3)),()=>clearInterval(e)},[m]);let v=async e=>{try{if(!e.email||!e.password)return;let t=await a.Z.loginApi(e);g(t),a.Z.setAuth()}catch(e){throw console.error(e),e}};a.Z.setAuth(null==m?void 0:m.token);let w=(0,s.a)({queryKey:["QueryUserInfo",null==m?void 0:m.token],enabled:!!(null==m?void 0:m.token),queryFn:()=>a.Z.userInfo()});return(0,r.jsx)(l.Provider,{value:{user:m,login:v,logout:h,setUser:g,queryUserInfo:w},children:t})},m=()=>(0,i.useContext)(l)},18310:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(81210),a=n(27767),o=n(36689),s=n(74572),u=n(47608),i=n(52897),l=n(17528),c=n(95258),d=n(49755),f=n(59951),m=n(3762),p=n(36062),g=n(63568);function h(){let e=(0,c.useSearchParams)(),[t,n]=(0,d.useState)(e.get("email")||""),[h,v]=(0,d.useState)(""),[w,b]=(0,d.useState)(""),[y,x]=(0,d.useState)(""),[j,A]=(0,f.Z)(0,60,0);(0,m.Z)(()=>{A.dec(1)},1e3);let N=(0,c.useRouter)(),P=(0,g.Eu)(),{mutate:k,isPending:C}=(0,l.D)({onError:u.rV,mutationFn:async e=>{if(e.preventDefault(),!t)throw Error("Please enter email");if(!h||!w)throw Error("Please enter email or password");if(h!==w)throw Error("Please confirm password");if(!y)throw Error("Please enter verify code");await s.Z.resetPassword({email:t,password:h,verifyCode:y}),p.Am.success("Reset Password Success!"),P.logout(),await (0,u._v)(2e3),N.push("/signin")}}),{mutate:I,isPending:R,isIdle:S}=(0,l.D)({onError:u.rV,mutationFn:async()=>{if(!t)throw Error("Please enter email");await s.Z.sendResetPassword(t),A.reset(60)}}),E=C||!0!==(0,i.jg)(y)||!0!==(0,i.oH)(t)||!0!==(0,i.uo)(h)||!0!==(0,i.S$)(w,h),Z=R||j>0||!0!==(0,i.oH)(t);return(0,r.jsxs)("div",{className:"mx-auto p-5 min-h-full flex flex-col gap-5 items-center w-full max-w-[25rem]",children:[(0,r.jsx)("img",{src:"logo.svg",alt:"Logo",className:"mt-auto h-[4.9375rem]"}),(0,r.jsxs)("form",{onSubmit:k,className:"flex flex-col gap-5 w-full mb-auto",children:[(0,r.jsx)(o.j7,{value:t,setEmail:n}),(0,r.jsx)(o.CM,{label:"New Password",setPassword:v}),(0,r.jsx)(o.CM,{label:"Confirm Password",setPassword:b,validate:e=>(0,i.S$)(e,h)}),(0,r.jsxs)("div",{className:"flex gap-5",children:[(0,r.jsx)(o.Iv,{setVerifyCode:x}),(0,r.jsx)(a.un,{type:"button",isDisabled:Z,isLoading:R,onClick:I,children:R?"":S?"Send":j>0?"".concat(j,"s"):"Resend"})]}),(0,r.jsx)(a.un,{type:"submit",isDisabled:E,isLoading:C,children:"Reset Password"})]})]})}},27767:function(e,t,n){"use strict";n.d(t,{a5:function(){return l},uU:function(){return i},un:function(){return u}});var r=n(81210),a=n(11013),o=n(41551),s=n(62365);function u(e){let{children:t,className:n,...s}=e;return(0,r.jsx)(a.A,{color:"primary",className:(0,o.cn)("h-[2.625rem] hover:bg-default","default"==s.color?"hover:bg-l1":"",n),...s,children:t})}function i(e){let{children:t,className:n,...s}=e;return(0,r.jsx)(a.A,{color:"primary",className:(0,o.cn)("h-[2.625rem] bg-l1 shadow-1 backdrop-blur-lg hover:bg-primary",n),...s,children:t})}function l(e){let{children:t,className:n,tip:u,...i}=e;return(0,r.jsx)(s.S,{content:u,children:(0,r.jsx)(a.A,{color:"primary",className:(0,o.cn)("h-8 w-8 min-w-8 max-w-8 rounded-full p-0 hover:bg-default",n),...i,children:t})})}},74568:function(e,t,n){"use strict";n.d(t,{Ie:function(){return u},Ih:function(){return s},if:function(){return i}});var r=n(13910),a=n.n(r),o=n(28853);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=a().toNumber(e);return n?(0,o.Z)(n).format({mantissa:2,trimMantissa:!0,average:n>=1e3}).toUpperCase():t}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n=a().toNumber(e);return n?"".concat(Math.min(a().round(100*n/10),100),"%"):t}function i(e){return Math.max(a().round(a().toNumber(e||"1"),1),1)}},36689:function(e,t,n){"use strict";n.d(t,{CM:function(){return d},Fx:function(){return g},Iv:function(){return p},e9:function(){return m},j7:function(){return f}});var r=n(81210),a=n(52897),o=n(37018),s=n(84824),u=n(54957),i=n(29060),l=n.n(i);let c={inputWrapper:"h-[2.625rem] rounded-lg bg-l1 border-none backdrop-blur-lg shadow-1 text-xs",label:"text-xs",input:"text-xs !text-white"};function d(e){let{setPassword:t,label:n,error:i,validate:l=a.uo}=e,[d,f]=(0,u.Z)(!1);return(0,r.jsx)(o.Y,{isRequired:!0,classNames:c,type:d?"text":"password",placeholder:n||"Password",labelPlacement:"inside",variant:"bordered",validate:l,endContent:(0,r.jsx)("button",{className:"focus:outline-none h-full",type:"button",onClick:()=>f(),"aria-label":"toggle password visibility",children:d?(0,r.jsx)(s.VhL,{className:"text-xs text-default-400 pointer-events-none"}):(0,r.jsx)(s.nO8,{className:"text-xs text-default-400 pointer-events-none"})}),errorMessage:i,onChange:e=>t(e.target.value)})}function f(e){let{setEmail:t,value:n}=e;return(0,r.jsx)(o.Y,{value:n,classNames:c,type:"email",placeholder:"Email",labelPlacement:"inside",variant:"bordered",isRequired:!0,validate:a.oH,onChange:e=>t(e.target.value)})}function m(e){let{setReferalCode:t,value:n}=e;return(0,r.jsx)(o.Y,{value:n,classNames:c,type:"text",placeholder:"Referral code (optional)",labelPlacement:"inside",variant:"bordered",isRequired:!0,validate:a.tx,onChange:e=>t(e.target.value)})}function p(e){let{setVerifyCode:t}=e;return(0,r.jsx)(o.Y,{classNames:c,type:"text",placeholder:"Verification Code",labelPlacement:"inside",variant:"bordered",isRequired:!0,validate:a.jg,onChange:e=>t(e.target.value)})}function g(e){let{onComplete:t,onChange:n}=e;return(0,r.jsx)(l(),{placeholder:"",onChange:n,onComplete:t,classNames:{container:"w-full justify-between h-[2.625rem] ",character:"rounded-lg max-w-[2.625rem] w-[2.625rem] bg-l1 bg-transparent backdrop-blur-lg shadow-1 text-white text-xl leading-[2.625rem] uppercase"}})}},62365:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var r=n(81210),a=n(62216),o=n(47048);function s(e){let{content:t,children:n}=e;return(0,r.jsx)(a.e,{showArrow:!1,content:t,color:"default",className:" min-h-9 min-w-[4.5rem] max-w-[12.5rem]",classNames:{content:"bg-[#40414F] border border-solid border-[rgba(255,255,255,0.1)] min-h-9 min-w-[4.5rem] text-xs"},children:n||(0,r.jsx)("button",{className:"outline-none border-none",children:(0,r.jsx)(o.nj5,{})})})}},74572:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(80957),a=n(36957),o=n(13910),s=n.n(o),u=n(74568);let i={beta:"https://dev-api.enreach.network/api",staging:"https://staging-api-1.enreach.network/api",prod:"https://api.enreach.network/api"}[a.Vi],l=r.default.create({baseURL:i,headers:{"Content-Type":"application/json"}}),c={setAuth:e=>{e?l.defaults.headers.common.Authorization=e.startsWith("Bearer")?e:"Bearer ".concat(e):delete l.defaults.headers.common.Authorization},loginApi:async e=>{let t=await l.post("/user/signIn",e);return c.setAuth(t.data.data.token),t.data.data},loginByGoogleApi:async e=>{let t=await l.post("/user/google/signIn",e);return c.setAuth(t.data.data.token),t.data.data},loginSetReferralApi:async e=>{let t=await l.post("/user/referral/by",e);return c.setAuth(t.data.data.token),t.data.data},registerApi:async e=>(await l.post("/user/signUp",{...e})).data.data,registerByGoogleApi:async e=>(await l.post("/user/google/signUp",{accessToken:e})).data.data,resendRegisterVerifyCode:async e=>(await l.post("/user/verify/".concat(e,"/resend")),!0),verifyRegisterCode:async(e,t)=>(await l.post("/user/verify/".concat(e,"/").concat(t))).data.data,userInfo:async()=>{let e=await l.get("/user/profile"),t=e.data.data.point;return s().keys(t).forEach(e=>{t[e]=s().toNumber(t[e])}),t.total=(0,u.if)(e.data.data.stat.extraBoost)*t.total,e.data.data},sendResetPassword:async e=>(await l.post("/user/password/reset/send",{email:e}),!0),resetPassword:async e=>(await l.post("/user/password/reset",e),!0),userUpdate:async e=>(await l.post("/user/profile/update",e),!0),userReward:async()=>(await l.get("/user/reward")).data.data,nodeList:async()=>(await l.get("/node/list")).data.data,trendingRewards:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"month";return(await l.get("/trending/rewards",{params:{type:e}})).data.data},getAccessToken:async()=>(await l.get("/user/accessToken")).data.data.accessToken,getIP:async()=>(await r.default.get("https://api.bigdatacloud.net/data/client-ip")).data,updateNodeName:async(e,t)=>(await l.post("/node/rename/".concat(e.connectionId,"/").concat(encodeURIComponent(e.ipAddress),"/").concat(encodeURIComponent(t))),!0)};t.Z=c},36957:function(e,t,n){"use strict";n.d(t,{Vi:function(){return r},u1:function(){return a}}),n(45303).env.NEXT_PUBLIC_BASE_PATH;let r="staging",a=""},47608:function(e,t,n){"use strict";n.d(t,{G$:function(){return p},N3:function(){return d},Q1:function(){return h},Y:function(){return g},_v:function(){return m},rV:function(){return f}});var r=n(36062),a=n(28672),o=n.n(a),s=n(85542),u=n.n(s),i=n(94782),l=n(13910),c=n.n(l);function d(e){return e.toLowerCase().replaceAll(" ","_")}function f(e){var t,n;let a;r.Am.error(c().upperFirst((a="Unkown","string"==typeof e?a=e:e instanceof i.d7?a=(null===(n=e.response)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.message)||e.message:"string"==typeof(null==e?void 0:e.msg)?a=null==e?void 0:e.msg:"string"==typeof(null==e?void 0:e.message)&&(a=null==e?void 0:e.message),a).trim()))}function m(e){return new Promise(t=>setTimeout(t,e))}function p(e,t){return o()(e).format(t)}function g(e,t){return o().duration(e).format(t)}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;return c().round(e/t,4)+"rem"}o().extend(u())},52897:function(e,t,n){"use strict";function r(e){return e?!!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e)||"Please enter a vaild email !":null}function a(e){return e?!!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[A-Za-z\d@$!%*?&]{8,}$/.test(e)||"Your password must be at least 8 characters long and include: at least one uppercase letter, one lowercase letter, and one number. Special characters (@$!%*?&) are allowed.":null}function o(e,t){return e&&t?e===t||"Passwords do not match!":null}function s(e){return e?6==e.length||"Invalid referral code!":null}function u(e){return e?6==e.length||"Invalid verification code":null}n.d(t,{S$:function(){return o},jg:function(){return u},oH:function(){return r},tx:function(){return s},uo:function(){return a}})}},function(e){e.O(0,[495,863,825,242,510,406,566,403,331,744],function(){return e(e.s=55013)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/reset/page-8b4b511cc1da3994.js b/_next/static/chunks/app/reset/page-8b4b511cc1da3994.js new file mode 100644 index 0000000..c7c7968 --- /dev/null +++ b/_next/static/chunks/app/reset/page-8b4b511cc1da3994.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[0],{55013:function(e,t,n){Promise.resolve().then(n.bind(n,18310))},59951:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(49755),a=function(e){return(e+1)%1e6};function o(e,t){return"function"==typeof e?e.length?e(t):e():e}function s(e,t,n){void 0===e&&(e=0),void 0===t&&(t=null),void 0===n&&(n=null);var s,u,i,l=o(e);"number"!=typeof l&&console.error("initialValue has to be a number, got "+typeof e),"number"==typeof n?l=Math.max(l,n):null!==n&&console.error("min has to be a number, got "+typeof n),"number"==typeof t?l=Math.min(l,t):null!==t&&console.error("max has to be a number, got "+typeof t);var c=(s=l,u=(0,r.useRef)(o(s)),i=(0,r.useReducer)(a,0)[1],(0,r.useMemo)(function(){return[function(){return u.current},function(e){u.current=o(e,u.current),i()}]},[])),d=c[0],f=c[1];return[d(),(0,r.useMemo)(function(){var e=function(e){var r=d(),a=o(e,r);r!==a&&("number"==typeof n&&(a=Math.max(a,n)),"number"==typeof t&&(a=Math.min(a,t)),r!==a&&f(a))};return{get:d,set:e,inc:function(t){void 0===t&&(t=1);var n=o(t,d());"number"!=typeof n&&console.error("delta has to be a number or function returning a number, got "+typeof n),e(function(e){return e+n})},dec:function(t){void 0===t&&(t=1);var n=o(t,d());"number"!=typeof n&&console.error("delta has to be a number or function returning a number, got "+typeof n),e(function(e){return e-n})},reset:function(t){void 0===t&&(t=l);var n=o(t,d());"number"!=typeof n&&console.error("value has to be a number or function returning a number, got "+typeof n),l=n,e(n)}}},[l,n,t])]}},3762:function(e,t,n){"use strict";var r=n(49755);t.Z=function(e,t){var n=(0,r.useRef)(function(){});(0,r.useEffect)(function(){n.current=e}),(0,r.useEffect)(function(){if(null!==t){var e=setInterval(function(){return n.current()},t||0);return function(){return clearInterval(e)}}},[t])}},53179:function(e,t,n){"use strict";n.d(t,{Vo:function(){return d},Ho:function(){return p},Eu:function(){return g}});var r=n(81210),a=n(74572),o=n(36957);let s={beta:"EnreachExt_beta",staging:"EnreachExt_staging",prod:"EnreachExt"};function u(){return window[s[o.Vi]]}var i=n(76114),l=n(95258),c=n(49755);let d=(0,c.createContext)({login:async()=>{},setUser:()=>{},logout:()=>{}}),f="last-login-user",m=()=>{try{let e=localStorage.getItem(f);if(!e)return null;return JSON.parse(e)}catch(e){return console.error(e),null}},p=e=>{let{children:t}=e,n=(0,c.useRef)(!1),o=(0,l.useRouter)(),[s,p]=(0,c.useState)(m()),g=e=>{var t,r;e?(n.current=!1,p(e),localStorage.setItem(f,JSON.stringify(e)),e.token&&(null===(r=u())||void 0===r||r.request({name:"setAccessToken",body:e.token}).catch(console.error)),o.push("/")):(n.current=!0,p(null),localStorage.removeItem(f),null===(t=u())||void 0===t||t.request({name:"clearAccessToken"}).catch(console.error),o.push("/signin"))},h=()=>{g()};(0,c.useEffect)(()=>{let e;return s&&s.token&&(e=setInterval(()=>{let e=u();if(!e){console.warn("Extension not installed");return}e.request({name:"getStat"}).then(e=>{e.logined||(console.info("sync logout from ext"),h())}).catch(console.error)},1e3)),()=>clearInterval(e)},[s]);let v=async e=>{try{if(!e.email||!e.password)return;let t=await a.Z.loginApi(e);g(t),a.Z.setAuth()}catch(e){throw console.error(e),e}};a.Z.setAuth(null==s?void 0:s.token);let w=(0,i.a)({queryKey:["QueryUserInfo",null==s?void 0:s.token],enabled:!!(null==s?void 0:s.token),queryFn:()=>a.Z.userInfo()});return(0,r.jsx)(d.Provider,{value:{user:s,login:v,logout:h,setUser:g,queryUserInfo:w},children:t})},g=()=>(0,c.useContext)(d)},18310:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(81210),a=n(27767),o=n(36689),s=n(74572),u=n(47608),i=n(52897),l=n(17528),c=n(95258),d=n(49755),f=n(59951),m=n(3762),p=n(36062),g=n(53179);function h(){let e=(0,c.useSearchParams)(),[t,n]=(0,d.useState)(e.get("email")||""),[h,v]=(0,d.useState)(""),[w,b]=(0,d.useState)(""),[x,y]=(0,d.useState)(""),[j,A]=(0,f.Z)(0,60,0);(0,m.Z)(()=>{A.dec(1)},1e3);let N=(0,c.useRouter)(),P=(0,g.Eu)(),{mutate:k,isPending:C}=(0,l.D)({onError:u.rV,mutationFn:async e=>{if(e.preventDefault(),!t)throw Error("Please enter email");if(!h||!w)throw Error("Please enter email or password");if(h!==w)throw Error("Please confirm password");if(!x)throw Error("Please enter verify code");await s.Z.resetPassword({email:t,password:h,verifyCode:x}),p.Am.success("Reset Password Success!"),P.logout(),await (0,u._v)(2e3),N.push("/signin")}}),{mutate:E,isPending:I,isIdle:R}=(0,l.D)({onError:u.rV,mutationFn:async()=>{if(!t)throw Error("Please enter email");await s.Z.sendResetPassword(t),A.reset(60)}}),S=C||!0!==(0,i.jg)(x)||!0!==(0,i.oH)(t)||!0!==(0,i.uo)(h)||!0!==(0,i.S$)(w,h),Z=I||j>0||!0!==(0,i.oH)(t);return(0,r.jsxs)("div",{className:"mx-auto p-5 min-h-full flex flex-col gap-5 items-center w-full max-w-[25rem]",children:[(0,r.jsx)("img",{src:"logo.svg",alt:"Logo",className:"mt-auto h-[4.9375rem]"}),(0,r.jsxs)("form",{onSubmit:k,className:"flex flex-col gap-5 w-full mb-auto",children:[(0,r.jsx)(o.j7,{value:t,setEmail:n}),(0,r.jsx)(o.CM,{label:"New Password",setPassword:v}),(0,r.jsx)(o.CM,{label:"Confirm Password",setPassword:b,validate:e=>(0,i.S$)(e,h)}),(0,r.jsxs)("div",{className:"flex gap-5",children:[(0,r.jsx)(o.Iv,{setVerifyCode:y}),(0,r.jsx)(a.un,{type:"button",isDisabled:Z,isLoading:I,onClick:E,children:I?"":R?"Send":j>0?"".concat(j,"s"):"Resend"})]}),(0,r.jsx)(a.un,{type:"submit",isDisabled:S,isLoading:C,children:"Reset Password"})]})]})}},27767:function(e,t,n){"use strict";n.d(t,{a5:function(){return l},uU:function(){return i},un:function(){return u}});var r=n(81210),a=n(11013),o=n(41551),s=n(62365);function u(e){let{children:t,className:n,...s}=e;return(0,r.jsx)(a.A,{color:"primary",className:(0,o.cn)("h-[2.625rem] hover:bg-default","default"==s.color?"hover:bg-l1":"",n),...s,children:t})}function i(e){let{children:t,className:n,...s}=e;return(0,r.jsx)(a.A,{color:"primary",className:(0,o.cn)("h-[2.625rem] bg-l1 shadow-1 backdrop-blur-lg hover:bg-primary",n),...s,children:t})}function l(e){let{children:t,className:n,tip:u,...i}=e;return(0,r.jsx)(s.S,{content:u,children:(0,r.jsx)(a.A,{color:"primary",className:(0,o.cn)("h-8 w-8 min-w-8 max-w-8 rounded-full p-0 hover:bg-default",n),...i,children:t})})}},74568:function(e,t,n){"use strict";n.d(t,{Ie:function(){return u},Ih:function(){return s},if:function(){return i}});var r=n(13910),a=n.n(r),o=n(28853);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=a().toNumber(e);return n?(0,o.Z)(n).format({mantissa:2,trimMantissa:!0,average:n>=1e3}).toUpperCase():t}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n=a().toNumber(e);return n?"".concat(Math.min(a().round(100*n/10),100),"%"):t}function i(e){return Math.max(a().round(a().toNumber(e||"1"),1),1)}},36689:function(e,t,n){"use strict";n.d(t,{CM:function(){return d},Fx:function(){return g},Iv:function(){return p},e9:function(){return m},j7:function(){return f}});var r=n(81210),a=n(52897),o=n(37018),s=n(84824),u=n(54957),i=n(29060),l=n.n(i);let c={inputWrapper:"h-[2.625rem] rounded-lg bg-l1 border-none backdrop-blur-lg shadow-1 text-xs",label:"text-xs",input:"text-xs !text-white"};function d(e){let{setPassword:t,label:n,error:i,validate:l=a.uo}=e,[d,f]=(0,u.Z)(!1);return(0,r.jsx)(o.Y,{isRequired:!0,classNames:c,type:d?"text":"password",placeholder:n||"Password",labelPlacement:"inside",variant:"bordered",validate:l,endContent:(0,r.jsx)("button",{className:"focus:outline-none h-full",type:"button",onClick:()=>f(),"aria-label":"toggle password visibility",children:d?(0,r.jsx)(s.VhL,{className:"text-xs text-default-400 pointer-events-none"}):(0,r.jsx)(s.nO8,{className:"text-xs text-default-400 pointer-events-none"})}),errorMessage:i,onChange:e=>t(e.target.value)})}function f(e){let{setEmail:t,value:n}=e;return(0,r.jsx)(o.Y,{value:n,classNames:c,type:"email",placeholder:"Email",labelPlacement:"inside",variant:"bordered",isRequired:!0,validate:a.oH,onChange:e=>t(e.target.value)})}function m(e){let{setReferalCode:t,value:n}=e;return(0,r.jsx)(o.Y,{value:n,classNames:c,type:"text",placeholder:"Referral code (optional)",labelPlacement:"inside",variant:"bordered",isRequired:!0,validate:a.tx,onChange:e=>t(e.target.value)})}function p(e){let{setVerifyCode:t}=e;return(0,r.jsx)(o.Y,{classNames:c,type:"text",placeholder:"Verification Code",labelPlacement:"inside",variant:"bordered",isRequired:!0,validate:a.jg,onChange:e=>t(e.target.value)})}function g(e){let{onComplete:t,onChange:n}=e;return(0,r.jsx)(l(),{placeholder:"",onChange:n,onComplete:t,classNames:{container:"w-full justify-between h-[2.625rem] ",character:"rounded-lg max-w-[2.625rem] w-[2.625rem] bg-l1 bg-transparent backdrop-blur-lg shadow-1 text-white text-xl leading-[2.625rem] uppercase"}})}},62365:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var r=n(81210),a=n(62216),o=n(47048);function s(e){let{content:t,children:n}=e;return(0,r.jsx)(a.e,{showArrow:!1,content:t,color:"default",className:" min-h-9 min-w-[4.5rem] max-w-[12.5rem]",classNames:{content:"bg-[#40414F] border border-solid border-[rgba(255,255,255,0.1)] min-h-9 min-w-[4.5rem] text-xs"},children:n||(0,r.jsx)("button",{className:"outline-none border-none",children:(0,r.jsx)(o.nj5,{})})})}},74572:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(80957),a=n(36957),o=n(13910),s=n.n(o),u=n(74568);let i={beta:"https://dev-api.enreach.network/api",staging:"https://staging-api-1.enreach.network/api",prod:"https://api.enreach.network/api"}[a.Vi],l=r.default.create({baseURL:i,headers:{"Content-Type":"application/json"}}),c={setAuth:e=>{e?l.defaults.headers.common.Authorization=e.startsWith("Bearer")?e:"Bearer ".concat(e):delete l.defaults.headers.common.Authorization},loginApi:async e=>{let t=await l.post("/user/signIn",e);return c.setAuth(t.data.data.token),t.data.data},loginByGoogleApi:async e=>{let t=await l.post("/user/google/signIn",e);return c.setAuth(t.data.data.token),t.data.data},loginSetReferralApi:async e=>{let t=await l.post("/user/referral/by",e);return c.setAuth(t.data.data.token),t.data.data},registerApi:async e=>(await l.post("/user/signUp",{...e})).data.data,registerByGoogleApi:async e=>(await l.post("/user/google/signUp",{accessToken:e})).data.data,resendRegisterVerifyCode:async e=>(await l.post("/user/verify/".concat(e,"/resend")),!0),verifyRegisterCode:async(e,t)=>(await l.post("/user/verify/".concat(e,"/").concat(t))).data.data,userInfo:async()=>{let e=await l.get("/user/profile"),t=e.data.data.point;return s().keys(t).forEach(e=>{t[e]=s().toNumber(t[e])}),t.total=(0,u.if)(e.data.data.stat.extraBoost)*t.total,e.data.data},sendResetPassword:async e=>(await l.post("/user/password/reset/send",{email:e}),!0),resetPassword:async e=>(await l.post("/user/password/reset",e),!0),userUpdate:async e=>(await l.post("/user/profile/update",e),!0),userReward:async()=>(await l.get("/user/reward")).data.data,nodeList:async()=>(await l.get("/node/list")).data.data,trendingRewards:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"month";return(await l.get("/trending/rewards",{params:{type:e}})).data.data},getAccessToken:async()=>(await l.get("/user/accessToken")).data.data.accessToken,getIP:async()=>(await r.default.get("https://api.bigdatacloud.net/data/client-ip")).data,updateNodeName:async(e,t)=>(await l.post("/node/rename/".concat(e.connectionId,"/").concat(encodeURIComponent(e.ipAddress),"/").concat(encodeURIComponent(t))),!0)};t.Z=c},36957:function(e,t,n){"use strict";n.d(t,{Vi:function(){return r},u1:function(){return a}}),n(45303).env.NEXT_PUBLIC_BASE_PATH;let r="staging",a=""},47608:function(e,t,n){"use strict";n.d(t,{G$:function(){return p},N3:function(){return d},Q1:function(){return h},Y:function(){return g},_v:function(){return m},rV:function(){return f}});var r=n(36062),a=n(28672),o=n.n(a),s=n(85542),u=n.n(s),i=n(94782),l=n(13910),c=n.n(l);function d(e){return e.toLowerCase().replaceAll(" ","_")}function f(e){var t,n;let a;r.Am.error(c().upperFirst((a="Unkown","string"==typeof e?a=e:e instanceof i.d7?a=(null===(n=e.response)||void 0===n?void 0:null===(t=n.data)||void 0===t?void 0:t.message)||e.message:"string"==typeof(null==e?void 0:e.msg)?a=null==e?void 0:e.msg:"string"==typeof(null==e?void 0:e.message)&&(a=null==e?void 0:e.message),a).trim()))}function m(e){return new Promise(t=>setTimeout(t,e))}function p(e,t){return o()(e).format(t)}function g(e,t){return o().duration(e).format(t)}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;return c().round(e/t,4)+"rem"}o().extend(u())},52897:function(e,t,n){"use strict";function r(e){return e?!!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e)||"Please enter a vaild email !":null}function a(e){return e?!!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[A-Za-z\d@$!%*?&]{8,}$/.test(e)||"Your password must be at least 8 characters long and include: at least one uppercase letter, one lowercase letter, and one number. Special characters (@$!%*?&) are allowed.":null}function o(e,t){return e&&t?e===t||"Passwords do not match!":null}function s(e){return e?6==e.length||"Invalid referral code!":null}function u(e){return e?6==e.length||"Invalid verification code":null}n.d(t,{S$:function(){return o},jg:function(){return u},oH:function(){return r},tx:function(){return s},uo:function(){return a}})}},function(e){e.O(0,[495,863,825,242,510,406,566,403,331,744],function(){return e(e.s=55013)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/signin/page-a7715855bc60883c.js b/_next/static/chunks/app/signin/page-f3d3cab745ce8610.js similarity index 95% rename from _next/static/chunks/app/signin/page-a7715855bc60883c.js rename to _next/static/chunks/app/signin/page-f3d3cab745ce8610.js index 3e9249b..8295a99 100644 --- a/_next/static/chunks/app/signin/page-a7715855bc60883c.js +++ b/_next/static/chunks/app/signin/page-f3d3cab745ce8610.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[281],{1107:function(e,s,t){Promise.resolve().then(t.bind(t,62985))},62985:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return f}});var n=t(81210),a=t(27767),l=t(36689),i=t(13882),o=t(2793),r=t(47608),u=t(52897),c=t(17528),m=t(49755),x=t(63568);function f(){let[e,s]=(0,m.useState)(""),[t,f]=(0,m.useState)(""),d=(0,m.useContext)(x.Vo),{mutate:h,isPending:g}=(0,c.D)({onError:r.rV,mutationFn:async s=>{s.preventDefault(),await d.login({email:e,password:t})}}),j=g||!0!==(0,u.oH)(e)||!t;return(0,n.jsxs)("div",{className:"mx-auto px-5 min-h-full flex flex-col gap-4 items-center w-full max-w-[25rem]",children:[(0,n.jsx)("img",{src:"logo.svg",alt:"Logo",className:"mt-auto h-[4.9375rem]"}),(0,n.jsxs)("form",{onSubmit:h,className:"flex flex-col gap-5 w-full",children:[(0,n.jsx)(l.j7,{setEmail:s}),(0,n.jsx)(l.CM,{setPassword:f,validate:()=>null}),(0,n.jsx)(a.un,{type:"submit",isDisabled:j,isLoading:g,children:"Sign In"}),(0,n.jsx)(o.e,{})]}),(0,n.jsxs)("div",{className:"mb-auto flex items-center w-full text-xs text-white/60",children:["Don’t have an account?",(0,n.jsx)(i.g,{href:"/signup",className:"ml-2 text-xs",children:"Sign Up"}),(0,n.jsx)(i.g,{href:"/reset?email=".concat(e),className:"ml-auto text-xs",children:"Forget Password?"})]})]})}}},function(e){e.O(0,[495,863,825,242,720,862,510,406,110,566,805,793,403,331,744],function(){return e(e.s=1107)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[281],{1107:function(e,s,t){Promise.resolve().then(t.bind(t,62985))},62985:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return f}});var n=t(81210),a=t(27767),l=t(36689),i=t(13882),o=t(2793),r=t(47608),u=t(52897),c=t(17528),m=t(49755),x=t(53179);function f(){let[e,s]=(0,m.useState)(""),[t,f]=(0,m.useState)(""),d=(0,m.useContext)(x.Vo),{mutate:h,isPending:g}=(0,c.D)({onError:r.rV,mutationFn:async s=>{s.preventDefault(),await d.login({email:e,password:t})}}),j=g||!0!==(0,u.oH)(e)||!t;return(0,n.jsxs)("div",{className:"mx-auto px-5 min-h-full flex flex-col gap-4 items-center w-full max-w-[25rem]",children:[(0,n.jsx)("img",{src:"logo.svg",alt:"Logo",className:"mt-auto h-[4.9375rem]"}),(0,n.jsxs)("form",{onSubmit:h,className:"flex flex-col gap-5 w-full",children:[(0,n.jsx)(l.j7,{setEmail:s}),(0,n.jsx)(l.CM,{setPassword:f,validate:()=>null}),(0,n.jsx)(a.un,{type:"submit",isDisabled:j,isLoading:g,children:"Sign In"}),(0,n.jsx)(o.e,{})]}),(0,n.jsxs)("div",{className:"mb-auto flex items-center w-full text-xs text-white/60",children:["Don’t have an account?",(0,n.jsx)(i.g,{href:"/signup",className:"ml-2 text-xs",children:"Sign Up"}),(0,n.jsx)(i.g,{href:"/reset?email=".concat(e),className:"ml-auto text-xs",children:"Forget Password?"})]})]})}}},function(e){e.O(0,[495,863,825,242,720,862,510,406,110,566,805,793,403,331,744],function(){return e(e.s=1107)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/_next/static/chunks/app/signup/page-9d7a0ec0cd1738c6.js b/_next/static/chunks/app/signup/page-46b01a6a235674b2.js similarity index 98% rename from _next/static/chunks/app/signup/page-9d7a0ec0cd1738c6.js rename to _next/static/chunks/app/signup/page-46b01a6a235674b2.js index 33c977b..56174f7 100644 --- a/_next/static/chunks/app/signup/page-9d7a0ec0cd1738c6.js +++ b/_next/static/chunks/app/signup/page-46b01a6a235674b2.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[966],{97154:function(e,r,t){Promise.resolve().then(t.bind(t,19242))},59951:function(e,r,t){"use strict";t.d(r,{Z:function(){return a}});var n=t(49755),o=function(e){return(e+1)%1e6};function s(e,r){return"function"==typeof e?e.length?e(r):e():e}function a(e,r,t){void 0===e&&(e=0),void 0===r&&(r=null),void 0===t&&(t=null);var a,i,u,c=s(e);"number"!=typeof c&&console.error("initialValue has to be a number, got "+typeof e),"number"==typeof t?c=Math.max(c,t):null!==t&&console.error("min has to be a number, got "+typeof t),"number"==typeof r?c=Math.min(c,r):null!==r&&console.error("max has to be a number, got "+typeof r);var l=(a=c,i=(0,n.useRef)(s(a)),u=(0,n.useReducer)(o,0)[1],(0,n.useMemo)(function(){return[function(){return i.current},function(e){i.current=s(e,i.current),u()}]},[])),f=l[0],m=l[1];return[f(),(0,n.useMemo)(function(){var e=function(e){var n=f(),o=s(e,n);n!==o&&("number"==typeof t&&(o=Math.max(o,t)),"number"==typeof r&&(o=Math.min(o,r)),n!==o&&m(o))};return{get:f,set:e,inc:function(r){void 0===r&&(r=1);var t=s(r,f());"number"!=typeof t&&console.error("delta has to be a number or function returning a number, got "+typeof t),e(function(e){return e+t})},dec:function(r){void 0===r&&(r=1);var t=s(r,f());"number"!=typeof t&&console.error("delta has to be a number or function returning a number, got "+typeof t),e(function(e){return e-t})},reset:function(r){void 0===r&&(r=c);var t=s(r,f());"number"!=typeof t&&console.error("value has to be a number or function returning a number, got "+typeof t),c=t,e(t)}}},[c,t,r])]}},3762:function(e,r,t){"use strict";var n=t(49755);r.Z=function(e,r){var t=(0,n.useRef)(function(){});(0,n.useEffect)(function(){t.current=e}),(0,n.useEffect)(function(){if(null!==r){var e=setInterval(function(){return t.current()},r||0);return function(){return clearInterval(e)}}},[r])}},19242:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return y}});var n=t(81210),o=t(27767),s=t(36689),a=t(13882),i=t(2793),u=t(74572),c=t(47608),l=t(52897),f=t(83332),m=t(85444),d=t(17528),h=t(95258),x=t(49755),g=t(54957),v=t(59951),b=t(3762),p=t(63568);function y(){let e=(0,h.useSearchParams)(),r=(0,p.Eu)(),[t,y]=(0,x.useState)(""),[w,j]=(0,x.useState)(""),[E,P]=(0,x.useState)(""),[N,S]=(0,x.useState)(e.get("referral")||""),[C,R]=(0,x.useState)(!1),[k,Z]=(0,g.Z)(!1),[D,M]=(0,v.Z)(60,60,0);(0,b.Z)(()=>M.dec(1),1e3);let[V,I]=(0,x.useState)(""),_=(0,h.useRouter)(),F=(0,x.useRef)(),{mutate:A,isPending:L}=(0,d.D)({onError:c.rV,mutationFn:async e=>{if(e.preventDefault(),!t||!w||!E)throw Error("Please enter email or password");if(w!==E)throw Error("Please confirm password");if(!k)throw Error("Plase checked Term of Service and Privacy Policy");F.current=await u.Z.registerApi({email:t,password:w,referralCode:N||void 0}),M.reset(60),R(!0)}}),{mutate:U,isPending:O}=(0,d.D)({onError:c.rV,mutationFn:async()=>{if(!V||!0!==(0,l.jg)(V))throw Error("Please enter verify code");if(!F.current)throw Error("Please sign up");let e=await u.Z.verifyRegisterCode(F.current.userId,V);if(e&&e.token)r.setUser(e);else{let e=await u.Z.loginApi({email:t,password:w});e.token?r.setUser(e):_.push("/signin")}}}),{mutate:T,isPending:$}=(0,d.D)({onError:c.rV,mutationFn:async e=>{if(e.preventDefault(),!F.current)throw Error("Please sign up");await u.Z.resendRegisterVerifyCode(F.current.userId),M.reset(60)}}),z=O||!0!==(0,l.jg)(V),G=L||!k||!!N&&!0!==(0,l.tx)(N)||!0!==(0,l.oH)(t)||!0!==(0,l.uo)(w)||!0!==(0,l.S$)(E,w),H=D>0||$;return(0,n.jsxs)("div",{className:"mx-auto p-5 min-h-full flex flex-col gap-5 items-center w-full max-w-[25rem]",children:[(0,n.jsx)("img",{src:"logo.svg",alt:"Logo",className:"mt-auto h-[4.9375rem]"}),C?(0,n.jsxs)("div",{className:"flex flex-col items-center gap-5 w-full mb-auto",children:[(0,n.jsxs)("div",{className:"text-center whitespace-nowrap",children:["Verify your email",(0,n.jsx)("br",{}),"Enter the 6-digit verification code we sent to your inbox below:"]}),(0,n.jsx)(s.Fx,{onChange:I}),(0,n.jsx)(o.un,{className:"w-full",onClick:()=>U(),isDisabled:z,isLoading:O,children:"Verify Email"}),(0,n.jsxs)(a.g,{className:"text-xs -mt-1 flex items-center gap-2",onClick:T,isDisable:H,children:[$&&(0,n.jsx)(f.c,{size:"sm"}),D>0?"Resend Email (".concat(D,"s)"):"Resend Email"]})]}):(0,n.jsxs)("form",{onSubmit:A,className:"flex flex-col gap-5 w-full mb-auto",children:[(0,n.jsx)(s.j7,{setEmail:y}),(0,n.jsx)(s.CM,{setPassword:j}),(0,n.jsx)(s.CM,{label:"Confirm Password",setPassword:P,validate:e=>(0,l.S$)(e,w)}),(0,n.jsx)(s.e9,{value:N,setReferalCode:S}),(0,n.jsxs)(m.K,{classNames:{label:"text-xs text-white/60",icon:"w-2.5 h-2.5"},checked:k,onValueChange:Z,children:["I agree to the EnReach"," ",(0,n.jsx)(a.g,{className:"text-xs",href:"/terms",children:"Term of Service"})," ","and"," ",(0,n.jsx)(a.g,{className:"text-xs",href:"/privacy",children:"Privacy Policy"}),"."]}),(0,n.jsx)(o.un,{type:"submit",isDisabled:G,isLoading:L,children:"Sign Up"}),(0,n.jsx)(i.e,{btn:"Sign up with Google",defReferralCode:N}),(0,n.jsxs)("div",{className:"text-center text-xs text-white/60",children:["Already have an account?"," ",(0,n.jsx)(a.g,{href:"/signin",className:"text-xs",children:"Sign In"})]})]})]})}}},function(e){e.O(0,[495,863,825,242,720,862,510,406,110,566,444,805,793,403,331,744],function(){return e(e.s=97154)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[966],{97154:function(e,r,t){Promise.resolve().then(t.bind(t,19242))},59951:function(e,r,t){"use strict";t.d(r,{Z:function(){return a}});var n=t(49755),o=function(e){return(e+1)%1e6};function s(e,r){return"function"==typeof e?e.length?e(r):e():e}function a(e,r,t){void 0===e&&(e=0),void 0===r&&(r=null),void 0===t&&(t=null);var a,i,u,c=s(e);"number"!=typeof c&&console.error("initialValue has to be a number, got "+typeof e),"number"==typeof t?c=Math.max(c,t):null!==t&&console.error("min has to be a number, got "+typeof t),"number"==typeof r?c=Math.min(c,r):null!==r&&console.error("max has to be a number, got "+typeof r);var l=(a=c,i=(0,n.useRef)(s(a)),u=(0,n.useReducer)(o,0)[1],(0,n.useMemo)(function(){return[function(){return i.current},function(e){i.current=s(e,i.current),u()}]},[])),f=l[0],m=l[1];return[f(),(0,n.useMemo)(function(){var e=function(e){var n=f(),o=s(e,n);n!==o&&("number"==typeof t&&(o=Math.max(o,t)),"number"==typeof r&&(o=Math.min(o,r)),n!==o&&m(o))};return{get:f,set:e,inc:function(r){void 0===r&&(r=1);var t=s(r,f());"number"!=typeof t&&console.error("delta has to be a number or function returning a number, got "+typeof t),e(function(e){return e+t})},dec:function(r){void 0===r&&(r=1);var t=s(r,f());"number"!=typeof t&&console.error("delta has to be a number or function returning a number, got "+typeof t),e(function(e){return e-t})},reset:function(r){void 0===r&&(r=c);var t=s(r,f());"number"!=typeof t&&console.error("value has to be a number or function returning a number, got "+typeof t),c=t,e(t)}}},[c,t,r])]}},3762:function(e,r,t){"use strict";var n=t(49755);r.Z=function(e,r){var t=(0,n.useRef)(function(){});(0,n.useEffect)(function(){t.current=e}),(0,n.useEffect)(function(){if(null!==r){var e=setInterval(function(){return t.current()},r||0);return function(){return clearInterval(e)}}},[r])}},19242:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return y}});var n=t(81210),o=t(27767),s=t(36689),a=t(13882),i=t(2793),u=t(74572),c=t(47608),l=t(52897),f=t(83332),m=t(85444),d=t(17528),h=t(95258),x=t(49755),g=t(54957),v=t(59951),b=t(3762),p=t(53179);function y(){let e=(0,h.useSearchParams)(),r=(0,p.Eu)(),[t,y]=(0,x.useState)(""),[w,j]=(0,x.useState)(""),[E,P]=(0,x.useState)(""),[N,S]=(0,x.useState)(e.get("referral")||""),[C,R]=(0,x.useState)(!1),[k,Z]=(0,g.Z)(!1),[D,M]=(0,v.Z)(60,60,0);(0,b.Z)(()=>M.dec(1),1e3);let[V,I]=(0,x.useState)(""),_=(0,h.useRouter)(),F=(0,x.useRef)(),{mutate:A,isPending:L}=(0,d.D)({onError:c.rV,mutationFn:async e=>{if(e.preventDefault(),!t||!w||!E)throw Error("Please enter email or password");if(w!==E)throw Error("Please confirm password");if(!k)throw Error("Plase checked Term of Service and Privacy Policy");F.current=await u.Z.registerApi({email:t,password:w,referralCode:N||void 0}),M.reset(60),R(!0)}}),{mutate:U,isPending:O}=(0,d.D)({onError:c.rV,mutationFn:async()=>{if(!V||!0!==(0,l.jg)(V))throw Error("Please enter verify code");if(!F.current)throw Error("Please sign up");let e=await u.Z.verifyRegisterCode(F.current.userId,V);if(e&&e.token)r.setUser(e);else{let e=await u.Z.loginApi({email:t,password:w});e.token?r.setUser(e):_.push("/signin")}}}),{mutate:T,isPending:$}=(0,d.D)({onError:c.rV,mutationFn:async e=>{if(e.preventDefault(),!F.current)throw Error("Please sign up");await u.Z.resendRegisterVerifyCode(F.current.userId),M.reset(60)}}),z=O||!0!==(0,l.jg)(V),G=L||!k||!!N&&!0!==(0,l.tx)(N)||!0!==(0,l.oH)(t)||!0!==(0,l.uo)(w)||!0!==(0,l.S$)(E,w),H=D>0||$;return(0,n.jsxs)("div",{className:"mx-auto p-5 min-h-full flex flex-col gap-5 items-center w-full max-w-[25rem]",children:[(0,n.jsx)("img",{src:"logo.svg",alt:"Logo",className:"mt-auto h-[4.9375rem]"}),C?(0,n.jsxs)("div",{className:"flex flex-col items-center gap-5 w-full mb-auto",children:[(0,n.jsxs)("div",{className:"text-center whitespace-nowrap",children:["Verify your email",(0,n.jsx)("br",{}),"Enter the 6-digit verification code we sent to your inbox below:"]}),(0,n.jsx)(s.Fx,{onChange:I}),(0,n.jsx)(o.un,{className:"w-full",onClick:()=>U(),isDisabled:z,isLoading:O,children:"Verify Email"}),(0,n.jsxs)(a.g,{className:"text-xs -mt-1 flex items-center gap-2",onClick:T,isDisable:H,children:[$&&(0,n.jsx)(f.c,{size:"sm"}),D>0?"Resend Email (".concat(D,"s)"):"Resend Email"]})]}):(0,n.jsxs)("form",{onSubmit:A,className:"flex flex-col gap-5 w-full mb-auto",children:[(0,n.jsx)(s.j7,{setEmail:y}),(0,n.jsx)(s.CM,{setPassword:j}),(0,n.jsx)(s.CM,{label:"Confirm Password",setPassword:P,validate:e=>(0,l.S$)(e,w)}),(0,n.jsx)(s.e9,{value:N,setReferalCode:S}),(0,n.jsxs)(m.K,{classNames:{label:"text-xs text-white/60",icon:"w-2.5 h-2.5"},checked:k,onValueChange:Z,children:["I agree to the EnReach"," ",(0,n.jsx)(a.g,{className:"text-xs",href:"/terms",children:"Term of Service"})," ","and"," ",(0,n.jsx)(a.g,{className:"text-xs",href:"/privacy",children:"Privacy Policy"}),"."]}),(0,n.jsx)(o.un,{type:"submit",isDisabled:G,isLoading:L,children:"Sign Up"}),(0,n.jsx)(i.e,{btn:"Sign up with Google",defReferralCode:N}),(0,n.jsxs)("div",{className:"text-center text-xs text-white/60",children:["Already have an account?"," ",(0,n.jsx)(a.g,{href:"/signin",className:"text-xs",children:"Sign In"})]})]})]})}}},function(e){e.O(0,[495,863,825,242,720,862,510,406,110,566,444,805,793,403,331,744],function(){return e(e.s=97154)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/index.html b/index.html index 21e3363..7535ad3 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -EnReach Dashboard \ No newline at end of file +EnReach Dashboard \ No newline at end of file diff --git a/index.txt b/index.txt index a550276..903ab8e 100644 --- a/index.txt +++ b/index.txt @@ -1,8 +1,8 @@ 2:I[87521,[],"ClientPageRoot"] -3:I[8804,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","825","static/chunks/e9700330-2d1b9c8a294deb1e.js","242","static/chunks/efedfc4a-efd29969ffb4dba2.js","720","static/chunks/4918df7f-e3247cd2e729a878.js","862","static/chunks/fe0a3d05-fab58cdb03e1ce61.js","582","static/chunks/59453ef0-ae0e7d7a71ee2956.js","404","static/chunks/43abe07a-f251e6095452d747.js","885","static/chunks/8f130de0-c10303eb56e85807.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","110","static/chunks/110-1f8ed28ed74d2716.js","566","static/chunks/566-e8c2da5df3b83e8a.js","444","static/chunks/444-8f27ec34c1e787c4.js","805","static/chunks/805-315249d1c6495651.js","481","static/chunks/481-c823a9349be6c7dd.js","113","static/chunks/113-6c1828f488aa6add.js","793","static/chunks/793-327bff35c796ea77.js","931","static/chunks/app/page-00f83f0fd3d03d99.js"],"default",1] -4:I[58782,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","720","static/chunks/4918df7f-e3247cd2e729a878.js","717","static/chunks/b8bc3934-8e1304d220d7d44a.js","542","static/chunks/d4a5793f-b6508c6c5bd72ede.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","110","static/chunks/110-1f8ed28ed74d2716.js","444","static/chunks/444-8f27ec34c1e787c4.js","481","static/chunks/481-c823a9349be6c7dd.js","906","static/chunks/906-5f950df4f2f8db21.js","185","static/chunks/app/layout-1ac830b20c6cdaef.js"],"PageLayout"] +3:I[8804,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","825","static/chunks/e9700330-2d1b9c8a294deb1e.js","242","static/chunks/efedfc4a-efd29969ffb4dba2.js","720","static/chunks/4918df7f-e3247cd2e729a878.js","862","static/chunks/fe0a3d05-fab58cdb03e1ce61.js","582","static/chunks/59453ef0-ae0e7d7a71ee2956.js","404","static/chunks/43abe07a-f251e6095452d747.js","885","static/chunks/8f130de0-c10303eb56e85807.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","110","static/chunks/110-1f8ed28ed74d2716.js","566","static/chunks/566-e8c2da5df3b83e8a.js","444","static/chunks/444-8f27ec34c1e787c4.js","805","static/chunks/805-315249d1c6495651.js","481","static/chunks/481-c823a9349be6c7dd.js","113","static/chunks/113-6c1828f488aa6add.js","793","static/chunks/793-4912cbc95d251772.js","931","static/chunks/app/page-1060cb638466285c.js"],"default",1] +4:I[58782,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","720","static/chunks/4918df7f-e3247cd2e729a878.js","717","static/chunks/b8bc3934-8e1304d220d7d44a.js","542","static/chunks/d4a5793f-b6508c6c5bd72ede.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","110","static/chunks/110-1f8ed28ed74d2716.js","444","static/chunks/444-8f27ec34c1e787c4.js","481","static/chunks/481-c823a9349be6c7dd.js","906","static/chunks/906-5f950df4f2f8db21.js","185","static/chunks/app/layout-72b8b4ec509e3d4b.js"],"PageLayout"] 5:I[94964,[],""] 6:I[728,[],""] -0:["2Y2K-HH9R7EOgnU-mNnQ0",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/034ff4a5c86045e4.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/13bc3bae6b6c19cf.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark __variable_1fa6f9 __variable_e7a743 font-Poppins","children":[["$","head",null,{"children":["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"}]}],["$","body",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]]}]],null],null],["$L7",null]]]] +0:["4ybbxYGGvTZFz6wlHgpP0",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/034ff4a5c86045e4.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/13bc3bae6b6c19cf.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark __variable_1fa6f9 __variable_e7a743 font-Poppins","children":[["$","head",null,{"children":["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"}]}],["$","body",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]]}]],null],null],["$L7",null]]]] 7:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"EnReach Dashboard"}],["$","meta","3",{"name":"description","content":"EnReach Dashboard"}],["$","link","4",{"rel":"icon","href":"/icon.svg?9cee49a518ab1594","type":"image/svg+xml","sizes":"any"}],["$","meta","5",{"name":"next-size-adjust"}]] 1:null diff --git a/ping.html b/ping.html index ce95647..e6c6b4e 100644 --- a/ping.html +++ b/ping.html @@ -1 +1 @@ -EnReach Dashboard \ No newline at end of file +EnReach Dashboard \ No newline at end of file diff --git a/ping.txt b/ping.txt index 186c683..250e81e 100644 --- a/ping.txt +++ b/ping.txt @@ -2,7 +2,7 @@ 3:I[47975,["510","static/chunks/510-89d92b0a04fe4c78.js","612","static/chunks/app/ping/page-05a410f8b1b6c799.js"],"default",1] 4:I[94964,[],""] 5:I[728,[],""] -6:I[58782,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","720","static/chunks/4918df7f-e3247cd2e729a878.js","717","static/chunks/b8bc3934-8e1304d220d7d44a.js","542","static/chunks/d4a5793f-b6508c6c5bd72ede.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","110","static/chunks/110-1f8ed28ed74d2716.js","444","static/chunks/444-8f27ec34c1e787c4.js","481","static/chunks/481-c823a9349be6c7dd.js","906","static/chunks/906-5f950df4f2f8db21.js","185","static/chunks/app/layout-1ac830b20c6cdaef.js"],"PageLayout"] -0:["2Y2K-HH9R7EOgnU-mNnQ0",[[["",{"children":["ping",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["ping",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","ping","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/034ff4a5c86045e4.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/13bc3bae6b6c19cf.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark __variable_1fa6f9 __variable_e7a743 font-Poppins","children":[["$","head",null,{"children":["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"}]}],["$","body",null,{"children":["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]]}]],null],null],["$L7",null]]]] +6:I[58782,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","720","static/chunks/4918df7f-e3247cd2e729a878.js","717","static/chunks/b8bc3934-8e1304d220d7d44a.js","542","static/chunks/d4a5793f-b6508c6c5bd72ede.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","110","static/chunks/110-1f8ed28ed74d2716.js","444","static/chunks/444-8f27ec34c1e787c4.js","481","static/chunks/481-c823a9349be6c7dd.js","906","static/chunks/906-5f950df4f2f8db21.js","185","static/chunks/app/layout-72b8b4ec509e3d4b.js"],"PageLayout"] +0:["4ybbxYGGvTZFz6wlHgpP0",[[["",{"children":["ping",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["ping",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","ping","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/034ff4a5c86045e4.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/13bc3bae6b6c19cf.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark __variable_1fa6f9 __variable_e7a743 font-Poppins","children":[["$","head",null,{"children":["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"}]}],["$","body",null,{"children":["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]]}]],null],null],["$L7",null]]]] 7:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"EnReach Dashboard"}],["$","meta","3",{"name":"description","content":"EnReach Dashboard"}],["$","link","4",{"rel":"icon","href":"/icon.svg?9cee49a518ab1594","type":"image/svg+xml","sizes":"any"}],["$","meta","5",{"name":"next-size-adjust"}]] 1:null diff --git a/reset.html b/reset.html index 3f59cdd..ac471c3 100644 --- a/reset.html +++ b/reset.html @@ -1 +1 @@ -EnReach Dashboard \ No newline at end of file +EnReach Dashboard \ No newline at end of file diff --git a/reset.txt b/reset.txt index 8ff837a..2f11447 100644 --- a/reset.txt +++ b/reset.txt @@ -1,8 +1,8 @@ 2:I[87521,[],"ClientPageRoot"] -3:I[18310,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","825","static/chunks/e9700330-2d1b9c8a294deb1e.js","242","static/chunks/efedfc4a-efd29969ffb4dba2.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","566","static/chunks/566-e8c2da5df3b83e8a.js","0","static/chunks/app/reset/page-4746af26c8e958d8.js"],"default",1] +3:I[18310,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","825","static/chunks/e9700330-2d1b9c8a294deb1e.js","242","static/chunks/efedfc4a-efd29969ffb4dba2.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","566","static/chunks/566-e8c2da5df3b83e8a.js","0","static/chunks/app/reset/page-8b4b511cc1da3994.js"],"default",1] 4:I[94964,[],""] 5:I[728,[],""] -6:I[58782,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","720","static/chunks/4918df7f-e3247cd2e729a878.js","717","static/chunks/b8bc3934-8e1304d220d7d44a.js","542","static/chunks/d4a5793f-b6508c6c5bd72ede.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","110","static/chunks/110-1f8ed28ed74d2716.js","444","static/chunks/444-8f27ec34c1e787c4.js","481","static/chunks/481-c823a9349be6c7dd.js","906","static/chunks/906-5f950df4f2f8db21.js","185","static/chunks/app/layout-1ac830b20c6cdaef.js"],"PageLayout"] -0:["2Y2K-HH9R7EOgnU-mNnQ0",[[["",{"children":["reset",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["reset",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","reset","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/034ff4a5c86045e4.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/13bc3bae6b6c19cf.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark __variable_1fa6f9 __variable_e7a743 font-Poppins","children":[["$","head",null,{"children":["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"}]}],["$","body",null,{"children":["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]]}]],null],null],["$L7",null]]]] +6:I[58782,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","720","static/chunks/4918df7f-e3247cd2e729a878.js","717","static/chunks/b8bc3934-8e1304d220d7d44a.js","542","static/chunks/d4a5793f-b6508c6c5bd72ede.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","110","static/chunks/110-1f8ed28ed74d2716.js","444","static/chunks/444-8f27ec34c1e787c4.js","481","static/chunks/481-c823a9349be6c7dd.js","906","static/chunks/906-5f950df4f2f8db21.js","185","static/chunks/app/layout-72b8b4ec509e3d4b.js"],"PageLayout"] +0:["4ybbxYGGvTZFz6wlHgpP0",[[["",{"children":["reset",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["reset",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","reset","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/034ff4a5c86045e4.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/13bc3bae6b6c19cf.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark __variable_1fa6f9 __variable_e7a743 font-Poppins","children":[["$","head",null,{"children":["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"}]}],["$","body",null,{"children":["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]]}]],null],null],["$L7",null]]]] 7:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"EnReach Dashboard"}],["$","meta","3",{"name":"description","content":"EnReach Dashboard"}],["$","link","4",{"rel":"icon","href":"/icon.svg?9cee49a518ab1594","type":"image/svg+xml","sizes":"any"}],["$","meta","5",{"name":"next-size-adjust"}]] 1:null diff --git a/signin.html b/signin.html index 6fab351..b680b25 100644 --- a/signin.html +++ b/signin.html @@ -1 +1 @@ -EnReach Dashboard \ No newline at end of file +EnReach Dashboard \ No newline at end of file diff --git a/signin.txt b/signin.txt index 0fd2469..5ba5224 100644 --- a/signin.txt +++ b/signin.txt @@ -1,8 +1,8 @@ 2:I[87521,[],"ClientPageRoot"] -3:I[62985,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","825","static/chunks/e9700330-2d1b9c8a294deb1e.js","242","static/chunks/efedfc4a-efd29969ffb4dba2.js","720","static/chunks/4918df7f-e3247cd2e729a878.js","862","static/chunks/fe0a3d05-fab58cdb03e1ce61.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","110","static/chunks/110-1f8ed28ed74d2716.js","566","static/chunks/566-e8c2da5df3b83e8a.js","805","static/chunks/805-315249d1c6495651.js","793","static/chunks/793-327bff35c796ea77.js","281","static/chunks/app/signin/page-a7715855bc60883c.js"],"default",1] +3:I[62985,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","825","static/chunks/e9700330-2d1b9c8a294deb1e.js","242","static/chunks/efedfc4a-efd29969ffb4dba2.js","720","static/chunks/4918df7f-e3247cd2e729a878.js","862","static/chunks/fe0a3d05-fab58cdb03e1ce61.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","110","static/chunks/110-1f8ed28ed74d2716.js","566","static/chunks/566-e8c2da5df3b83e8a.js","805","static/chunks/805-315249d1c6495651.js","793","static/chunks/793-4912cbc95d251772.js","281","static/chunks/app/signin/page-f3d3cab745ce8610.js"],"default",1] 4:I[94964,[],""] 5:I[728,[],""] -6:I[58782,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","720","static/chunks/4918df7f-e3247cd2e729a878.js","717","static/chunks/b8bc3934-8e1304d220d7d44a.js","542","static/chunks/d4a5793f-b6508c6c5bd72ede.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","110","static/chunks/110-1f8ed28ed74d2716.js","444","static/chunks/444-8f27ec34c1e787c4.js","481","static/chunks/481-c823a9349be6c7dd.js","906","static/chunks/906-5f950df4f2f8db21.js","185","static/chunks/app/layout-1ac830b20c6cdaef.js"],"PageLayout"] -0:["2Y2K-HH9R7EOgnU-mNnQ0",[[["",{"children":["signin",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["signin",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","signin","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/034ff4a5c86045e4.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/13bc3bae6b6c19cf.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark __variable_1fa6f9 __variable_e7a743 font-Poppins","children":[["$","head",null,{"children":["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"}]}],["$","body",null,{"children":["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]]}]],null],null],["$L7",null]]]] +6:I[58782,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","720","static/chunks/4918df7f-e3247cd2e729a878.js","717","static/chunks/b8bc3934-8e1304d220d7d44a.js","542","static/chunks/d4a5793f-b6508c6c5bd72ede.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","110","static/chunks/110-1f8ed28ed74d2716.js","444","static/chunks/444-8f27ec34c1e787c4.js","481","static/chunks/481-c823a9349be6c7dd.js","906","static/chunks/906-5f950df4f2f8db21.js","185","static/chunks/app/layout-72b8b4ec509e3d4b.js"],"PageLayout"] +0:["4ybbxYGGvTZFz6wlHgpP0",[[["",{"children":["signin",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["signin",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","signin","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/034ff4a5c86045e4.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/13bc3bae6b6c19cf.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark __variable_1fa6f9 __variable_e7a743 font-Poppins","children":[["$","head",null,{"children":["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"}]}],["$","body",null,{"children":["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]]}]],null],null],["$L7",null]]]] 7:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"EnReach Dashboard"}],["$","meta","3",{"name":"description","content":"EnReach Dashboard"}],["$","link","4",{"rel":"icon","href":"/icon.svg?9cee49a518ab1594","type":"image/svg+xml","sizes":"any"}],["$","meta","5",{"name":"next-size-adjust"}]] 1:null diff --git a/signup.html b/signup.html index 8e60b58..2a72fb4 100644 --- a/signup.html +++ b/signup.html @@ -1 +1 @@ -EnReach Dashboard \ No newline at end of file +EnReach Dashboard \ No newline at end of file diff --git a/signup.txt b/signup.txt index 2ac07a9..f99cdf0 100644 --- a/signup.txt +++ b/signup.txt @@ -1,8 +1,8 @@ 2:I[87521,[],"ClientPageRoot"] -3:I[19242,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","825","static/chunks/e9700330-2d1b9c8a294deb1e.js","242","static/chunks/efedfc4a-efd29969ffb4dba2.js","720","static/chunks/4918df7f-e3247cd2e729a878.js","862","static/chunks/fe0a3d05-fab58cdb03e1ce61.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","110","static/chunks/110-1f8ed28ed74d2716.js","566","static/chunks/566-e8c2da5df3b83e8a.js","444","static/chunks/444-8f27ec34c1e787c4.js","805","static/chunks/805-315249d1c6495651.js","793","static/chunks/793-327bff35c796ea77.js","966","static/chunks/app/signup/page-9d7a0ec0cd1738c6.js"],"default",1] +3:I[19242,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","825","static/chunks/e9700330-2d1b9c8a294deb1e.js","242","static/chunks/efedfc4a-efd29969ffb4dba2.js","720","static/chunks/4918df7f-e3247cd2e729a878.js","862","static/chunks/fe0a3d05-fab58cdb03e1ce61.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","110","static/chunks/110-1f8ed28ed74d2716.js","566","static/chunks/566-e8c2da5df3b83e8a.js","444","static/chunks/444-8f27ec34c1e787c4.js","805","static/chunks/805-315249d1c6495651.js","793","static/chunks/793-4912cbc95d251772.js","966","static/chunks/app/signup/page-46b01a6a235674b2.js"],"default",1] 4:I[94964,[],""] 5:I[728,[],""] -6:I[58782,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","720","static/chunks/4918df7f-e3247cd2e729a878.js","717","static/chunks/b8bc3934-8e1304d220d7d44a.js","542","static/chunks/d4a5793f-b6508c6c5bd72ede.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","110","static/chunks/110-1f8ed28ed74d2716.js","444","static/chunks/444-8f27ec34c1e787c4.js","481","static/chunks/481-c823a9349be6c7dd.js","906","static/chunks/906-5f950df4f2f8db21.js","185","static/chunks/app/layout-1ac830b20c6cdaef.js"],"PageLayout"] -0:["2Y2K-HH9R7EOgnU-mNnQ0",[[["",{"children":["signup",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["signup",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","signup","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/034ff4a5c86045e4.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/13bc3bae6b6c19cf.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark __variable_1fa6f9 __variable_e7a743 font-Poppins","children":[["$","head",null,{"children":["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"}]}],["$","body",null,{"children":["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]]}]],null],null],["$L7",null]]]] +6:I[58782,["495","static/chunks/6dc81886-f9294a3e8db3c3ab.js","863","static/chunks/b76b5f49-e6abf4931e9e64e2.js","720","static/chunks/4918df7f-e3247cd2e729a878.js","717","static/chunks/b8bc3934-8e1304d220d7d44a.js","542","static/chunks/d4a5793f-b6508c6c5bd72ede.js","510","static/chunks/510-89d92b0a04fe4c78.js","406","static/chunks/406-984ee91487eec587.js","110","static/chunks/110-1f8ed28ed74d2716.js","444","static/chunks/444-8f27ec34c1e787c4.js","481","static/chunks/481-c823a9349be6c7dd.js","906","static/chunks/906-5f950df4f2f8db21.js","185","static/chunks/app/layout-72b8b4ec509e3d4b.js"],"PageLayout"] +0:["4ybbxYGGvTZFz6wlHgpP0",[[["",{"children":["signup",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["signup",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","signup","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/034ff4a5c86045e4.css","precedence":"next","crossOrigin":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/13bc3bae6b6c19cf.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","className":"dark __variable_1fa6f9 __variable_e7a743 font-Poppins","children":[["$","head",null,{"children":["$","meta",null,{"name":"viewport","content":"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"}]}],["$","body",null,{"children":["$","$L6",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]]}]],null],null],["$L7",null]]]] 7:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"EnReach Dashboard"}],["$","meta","3",{"name":"description","content":"EnReach Dashboard"}],["$","link","4",{"rel":"icon","href":"/icon.svg?9cee49a518ab1594","type":"image/svg+xml","sizes":"any"}],["$","meta","5",{"name":"next-size-adjust"}]] 1:null