PageSourceSearch

https://www.chessmonitor.com/_next/static/chunks/pages/account/reset-94cece278b4eebd7.js

js chessmonitor.com collected 2026-10-03 23:15:18 UTC 4,369 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4461],{6465:(s,e,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/reset",function(){return t(65783)}])},18430:(s,e,t)=>{"use strict";t.d(e,{B:()=>w});var r=t(76),n=t(5618),a=t(80616),i=t(37544),o=t(43016),d=t(60481),l={root:"m_6d731127"},c=t(6029);let m={gap:"md",align:"stretch",justify:"flex-start"},u=(0,n.V)((s,{gap:e,align:t,justify:n})=>({root:{"--stack-gap":(0,r.GY)(e),"--stack-align":t,"--stack-justify":n}})),w=(0,o.P9)(s=>{let e=(0,a.Y)("Stack",m,s),{classNames:t,className:r,style:n,styles:o,unstyled:w,vars:h,align:p,justify:x,gap:f,variant:j,attributes:g,...v}=e;return(0,c.jsx)(d.a,{...(0,i.I)({name:"Stack",props:e,classes:l,className:r,style:n,classNames:t,styles:o,unstyled:w,attributes:g,vars:h,varsResolver:u})("root"),variant:j,...v})});w.classes=l,w.varsResolver=u,w.displayName="@mantine/core/Stack"},55859:(s,e,t)=>{"use strict";t.d(e,{m:()=>w});var r=t(76),n=t(5618),a=t(80616),i=t(37544),o=t(43016),d=t(60481),l={root:"m_7485cace"},c=t(6029);let m={strategy:"block"},u=(0,n.V)((s,{size:e,fluid:t})=>({root:{"--container-size":t?void 0:(0,r.YC)(e,"container-size")}})),w=(0,o.P9)(s=>{let e=(0,a.Y)("Container",m,s),{classNames:t,className:r,style:n,styles:o,unstyled:w,vars:h,fluid:p,mod:x,attributes:f,strategy:j,...g}=e,v=(0,i.I)({name:"Container",classes:l,props:e,className:r,style:n,classNames:t,styles:o,unstyled:w,attributes:f,vars:h,varsResolver:u});return(0,c.jsx)(d.a,{mod:[{fluid:p,strategy:j},x],...v("root"),...g})});w.classes=l,w.varsResolver=u,w.displayName="@mantine/core/Container"},58798:(s,e,t)=>{"use strict";t.d(e,{A:()=>o});var r=t(6029),n=t(17594),a=t(48340),i=t.n(a);function o({children:s,title:e,active:t,hideHeader:a,pageTitle:d}){return(0,r.jsxs)(n.A,{active:t,title:d??e,children:[!a&&(0,r.jsxs)("div",{className:i().header,children:[(0,r.jsx)("div",{className:i().title,children:(0,r.jsx)("h2",{children:e})}),(0,r.jsx)("div",{className:i().line})]}),(0,r.jsx)("div",{className:"container",children:s})]})}},65783:(s,e,t)=>{"use strict";t.r(e),t.d(e,{default:()=>v});var r=t(6029),n=t(60154),a=t(18430),i=t(59029),o=t(30682),d=t(70770),l=t(96804),c=t(55859),m=t(10128),u=t(57124),w=t(81278),h=t(55729),p=t(58798),x=t(92184),f=t(7873),j=t(26789);function g(){let s,e=(0,w.useRouter)(),t=(0,f.Jd)(),g=x.i.global.resetPasswordExecute.useMutation(),v=(0,u.m)({initialValues:{newPassword:"",newPasswordConfirm:""},validate:{newPassword:s=>s.length<8?"Must have 8 characters or more.":null,newPasswordConfirm:(s,{newPassword:e})=>s!==e?"The password confirmation is different to your password.":null}}),[y,P]=(0,h.useState)("init");async function k(s){let{id:t,token:r,t:n}=e.query;"string"!=typeof t||"string"!=typeof r||"string"!=typeof n?P("invalid_link"):P((await g.mutateAsync({id:parseInt(t,10),t:parseInt(n,10),token:r,password:s.newPassword})).status)}if("init"===y)s=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h,{order:3,mb:"sm",children:"Set new Password"}),(0,r.jsxs)("form",{onSubmit:v.onSubmit(k),children:[(0,r.jsxs)(a.B,{mt:"md",gap:"xs",children:[(0,r.jsx)(i.k,{type:"password",label:"New password",autoComplete:"new-password",...v.getInputProps("newPassword")}),(0,r.jsx)(i.k,{type:"password",label:"Confirm new password",autoComplete:"new-password",...v.getInputProps("newPasswordConfirm")})]}),(0,r.jsx)(o.Y,{mt:"md",children:(0,r.jsx)(d.$,{type:"submit",variant:"filled",children:"Set Password"})})]})]});else if("invalid_link"===y)s=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h,{order:3,mb:"sm",children:"Unable to reset your password!"}),(0,r.jsx)(l.E,{children:"Unable to reset your password. The link is invalid. It can only be used once and must be used in the first 24 hours after receiving it."})]});else{let e=t.data?(0,r.jsx)(d.$,{mt:"md",size:"md",fullWidth:!0,component:j.A,href:"/account",children:"Back to my account"}):(0,r.jsx)(d.$,{mt:"md",size:"md",fullWidth:!0,component:j.A,href:"/signin",children:"Log in now"});s=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h,{order:3,mb:"sm",children:"Password was changed"}),(0,r.jsx)(l.E,{children:"Your password was successfully changed."}),e]})}return(0,r.jsx)(p.A,{title:"Reset Password",children:(0,r.jsx)(c.m,{size:"xs",children:(0,r.jsx)(m.t,{p:"lg",mt:"md",children:s})})})}let v=()=>(0,r.jsx)(g,{})}},s=>{s.O(0,[1869,636,6593,8792],()=>s(s.s=6465)),_N_E=s.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.