PageSourceSearch

https://cosready.ai/_next/static/chunks/app/%5Blocale%5D/(beauty)/auth/verify-email/page-b3e4b867167887e6.js

js cosready.ai collected 2026-10-05 11:58:49 UTC 3,685 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[697],{34663:(e,t,r)=>{"use strict";r.d(t,{N_:()=>l,a8:()=>o,rd:()=>c});var a=r(55251),n=r(41960);let{Link:l,redirect:i,usePathname:o,useRouter:c,getPathname:u}=(0,a.A)(n.DT)},41960:(e,t,r)=>{"use strict";r.d(t,{DT:()=>a});let a=(0,r(84497).A)({locales:["en","zh-CN","zh-TW"],defaultLocale:"en",localePrefix:"never",localeDetection:!0})},55251:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var a=r(20063),n=r(12115),l=r.t(n,2),i=r(96958),o=l["use".trim()],c=r(4106),u=r(64707),s=r(85919),f=r(95155),m=r(57301);function h(e){let{Link:t,config:r,getPathname:l,...h}=function(e,t){var r,l,i;let m={...r=t||{},localePrefix:"object"==typeof(i=r.localePrefix)?i:{mode:i||"always"},localeCookie:!!((l=r.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof l&&l},localeDetection:r.localeDetection??!0,alternateLinks:r.alternateLinks??!0},h=m.pathnames,p=(0,n.forwardRef)(function({href:t,locale:r,...a},n){let l,i;"object"==typeof t?(l=t.pathname,i=t.params):l=t;let s=(0,c._x)(t),p=e(),x=(0,c.yL)(p)?o(p):p,y=s?d({locale:r||x,href:null==h?l:{pathname:l,params:i},forcePrefix:null!=r||void 0}):l;return(0,f.jsx)(u.default,{ref:n,href:"object"==typeof t?{...t,pathname:y}:y,locale:r,localeCookie:m.localeCookie,...a})});function d(e){let t,{forcePrefix:r,href:a,locale:n}=e;return null==h?"object"==typeof a?(t=a.pathname,a.query&&(t+=(0,s.Zn)(a.query))):t=a:t=(0,s.FP)({locale:n,...(0,s.TK)(a),pathnames:m.pathnames}),(0,s.x3)(t,n,m,r)}function x(e){return function(t,...r){return e(d(t),...r)}}return{config:m,Link:p,redirect:x(a.redirect),permanentRedirect:x(a.permanentRedirect),getPathname:d}}(i.Ym,e);return{...h,Link:t,usePathname:function(){let e=function(e){let t=(0,a.usePathname)(),r=(0,i.Ym)();return(0,n.useMemo)(()=>{if(!t)return t;let a=t,n=(0,c.XP)(r,e.localePrefix);if((0,c.wO)(n,t))a=(0,c.MY)(t,n);else if("never"!==e.localePrefix.mode&&e.localePrefix.prefixes){let e=(0,c.bL)(r);(0,c.wO)(e,t)&&(a=(0,c.MY)(t,e))}return a},[e.localePrefix,r,t])}(r),t=(0,i.Ym)();return(0,n.useMemo)(()=>e&&r.pathnames?(0,s.aM)(t,e,r.pathnames):e,[t,e])},useRouter:function(){let e=(0,a.useRouter)(),t=(0,i.Ym)(),o=(0,a.usePathname)();return(0,n.useMemo)(()=>{function a(e){return function(a,n){let{locale:i,...c}=n||{},u=[l({href:a,locale:i||t,forcePrefix:null!=i||void 0})];Object.keys(c).length>0&&u.push(c),(0,m.A)(r.localeCookie,o,t,i),e(...u)}}return{...e,push:a(e.push),replace:a(e.replace),prefetch:a(e.prefetch)}},[t,o,e])},getPathname:l}}},75968:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>s});var a=r(95155),n=r(62013),l=r(12115),i=r(20063),o=r(34663),c=r(73339);function u(){var e;let{t:t}=(0,n.WD)("auth"),r=(0,o.rd)(),u=null!=(e=(0,i.useSearchParams)().get("token"))?e:"",[s,f]=(0,l.useState)("verifying");return(0,l.useEffect)(()=>{if(!u)return void f("failure");(async()=>{try{await (0,c.Sx)(c.BZ.verifyEmailConfirm,{token:u}),f("success")}catch(e){c.Aq,f("failure")}})()},[u]),(0,a.jsxs)("div",{className:"max-w-md mx-auto p-8 text-center",children:[(0,a.jsxs)("p",{className:"text-sm mb-4",children:["verifying"===s&&t("verifyEmail.verifying"),"success"===s&&t("verifyEmail.success"),"failure"===s&&t("verifyEmail.failure")]}),"success"===s&&(0,a.jsx)("button",{type:"button",onClick:()=>r.push("/settings"),className:"px-6 py-3 rounded-full bg-[#9666e9] text-white font-bold text-sm",children:t("verifyEmail.goHome")})]})}function s(){return(0,a.jsx)(l.Suspense,{children:(0,a.jsx)(u,{})})}},84497:(e,t,r)=>{"use strict";function a(e){return e}r.d(t,{A:()=>a})},97786:(e,t,r)=>{Promise.resolve().then(r.bind(r,75968))}},e=>{e.O(0,[6958,4707,2013,3339,8441,2968,7358],()=>e(e.s=97786)),_N_E=e.O()}]);

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