PageSourceSearch

https://chloeting.com/_next/static/chunks/pages/user/[id]/verify-578549c4054f0146.js

js chloeting.com collected 2026-10-02 03:54:06 UTC 4,532 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[35483],{85120:function(n,r,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/[id]/verify",function(){return e(85206)}])},85206:function(n,r,e){"use strict";e.r(r);var i,o=e(47568),t=e(26042),c=e(69396),a=e(7297),s=e(20414),u=e(85893),l=e(27484),d=e.n(l),f=e(29387),h=e.n(f),E=e(11163),g=e(97334),x=e(67294),p=e(15313),I=e(87379),v=e(85430),R=e(37823),_=e(80378),w=e(74092),A=e(32416),k=e(96479);function m(){var n=(0,a.Z)(["\n  height: 100vh;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background-color: var(--color-background-primary);\n"]);return m=function(){return n},n}function y(){var n=(0,a.Z)(["\n  background: var(--color-background-secondary, #fff);\n  border-radius: 12px;\n  padding: 48px 40px;\n  max-width: 480px;\n  width: 100%;\n  text-align: center;\n  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);\n"]);return y=function(){return n},n}function D(){var n=(0,a.Z)(["\n  font-size: 22px;\n  font-weight: 700;\n  margin: 12px 0;\n  color: var(--color-text-primary);\n"]);return D=function(){return n},n}function C(){var n=(0,a.Z)(["\n  font-size: 15px;\n  color: var(--color-text-secondary);\n  margin-bottom: 32px;\n"]);return C=function(){return n},n}function j(){var n=(0,a.Z)(["\n  font-size: 15px;\n  color: var(--color-text-secondary);\n"]);return j=function(){return n},n}function L(){var n=(0,a.Z)(["\n  background: var(--color-primary, #000);\n  color: #fff;\n  border: none;\n  border-radius: 8px;\n  padding: 12px 32px;\n  font-size: 15px;\n  font-weight: 600;\n  cursor: pointer;\n  width: 100%;\n\n  &:hover {\n    opacity: 0.85;\n  }\n"]);return L=function(){return n},n}d().extend(h()),function(n){n[n.LOADING=0]="LOADING",n[n.SUCCESS=1]="SUCCESS",n[n.EXPIRED=2]="EXPIRED",n[n.ALREADY_VERIFIED=3]="ALREADY_VERIFIED",n[n.ERROR=4]="ERROR"}(i||(i={}));r.default=function(){var n=(0,E.useRouter)(),r=(0,p.I0)(),e=(0,x.useState)(i.LOADING),a=e[0],l=e[1],f=!!(0,A.Z)()()&&!!k.getAuthTokens().accessToken;return(0,x.useEffect)((function(){if(n.isReady){var e=n.query.id,a=Array.isArray(e)?e[0]:e,u=new URLSearchParams((0,g.stringify)(n.query)).get("token")||"";R.default.verifyEmail({id:a,token:u}).then(function(){var n=(0,o.Z)((function(n){var e,o;return(0,s.__generator)(this,(function(n){switch(n.label){case 0:return k.getAuthTokens().accessToken?[4,R.default.getMe(d().tz.guess())]:[3,2];case 1:(null===(e=n.sent())||void 0===e?void 0:e.user)&&(o=e.user,a===o.id&&r(v.lx((0,c.Z)((0,t.Z)({},o),{isLocalEmailVerified:!0})))),n.label=2;case 2:return l(i.SUCCESS),[2]}}))}));return function(r){return n.apply(this,arguments)}}()).catch((function(n){[w.g.EXPIRED_EMAIL_VERIFICATION_LINK,w.g.INVALID_EMAIL_VERIFICATION_LINK].includes(n.code)?l(i.EXPIRED):n.code==w.g.EMAIL_ALREADY_VERIFIED?l(i.ALREADY_VERIFIED):l(i.ERROR)}))}}),[n.isReady]),a===i.LOADING?(0,u.jsx)(Z,{children:(0,u.jsx)(F,{children:"Verifying your email..."})}):a===i.SUCCESS||a===i.ALREADY_VERIFIED?(0,u.jsx)(Z,{children:(0,u.jsxs)(b,{children:[(0,u.jsx)(_.Z,{icon:"check-fill",size:48,color:"#3DD236"}),(0,u.jsx)(P,{children:"Your email has been verified"}),(0,u.jsx)(S,{children:a===i.ALREADY_VERIFIED?"Your email is already verified.":"You can now sign in with your account."}),(0,u.jsx)(N,{onClick:function(){n.replace(f?"/":"/login")},children:f?"Go to Home":"Login"})]})}):a===i.EXPIRED?(0,u.jsx)(Z,{children:(0,u.jsxs)(b,{children:[(0,u.jsx)(_.Z,{icon:"warning_circle",size:48,color:"#CF4F4F"}),(0,u.jsx)(P,{children:"This link is no longer valid"}),(0,u.jsx)(S,{children:"Your verification link has expired or is invalid. Please request a new one."}),(0,u.jsx)(N,{onClick:function(){n.replace(f?"/":"/login")},children:f?"Back to Home":"Back to Login"})]})}):(0,u.jsx)(Z,{children:(0,u.jsxs)(b,{children:[(0,u.jsx)(_.Z,{icon:"warning_circle",size:48,color:"#CF4F4F"}),(0,u.jsx)(P,{children:"Something went wrong"}),(0,u.jsx)(S,{children:"Please try again or contact support."}),(0,u.jsx)(N,{onClick:function(){n.replace(f?"/":"/login")},children:f?"Back to Home":"Back to Login"})]})})};var Z=I.ZP.div.withConfig({componentId:"sc-45828287-0"})(m()),b=I.ZP.div.withConfig({componentId:"sc-45828287-1"})(y()),P=I.ZP.h2.withConfig({componentId:"sc-45828287-2"})(D()),S=I.ZP.p.withConfig({componentId:"sc-45828287-3"})(C()),F=I.ZP.p.withConfig({componentId:"sc-45828287-4"})(j()),N=I.ZP.button.withConfig({componentId:"sc-45828287-5"})(L())}},function(n){n.O(0,[49774,92888,40179],(function(){return r=85120,n(n.s=r);var r}));var r=n.O();_N_E=r}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.