PageSourceSearch

https://app.findalto.com/_next/static/chunks/pages/account/change-email-7bd3250be1268b8e.js

js findalto.com collected 2026-10-06 05:38:57 UTC 4,923 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5314],{92583:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return I}});var t=n(49945),i=n(59499),a=n(36822),s=n(87109),o=n(93946),c=n(50135),l=n(15861),d=n(69661),u=n(95496),p=n(31812),h=n(29565),f=n(67294),g=n(87536),x=n(86421),m=n(10694),j=n(83868),w=n.n(j),Z=n(74231),y=n(11163),v=n(83892),b=n(22961),O=n(72450),E=n(6968),_=n(85893);function C(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function P(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?C(Object(n),!0).forEach((function(r){(0,i.Z)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var S=Z.Ry().shape({email:Z.Z_().required("required").test("is-valid",(function(e){return"".concat(e.path," is invalid")}),(function(e){return e?w()(e):new Z.p8("Invalid email")})),password:Z.Z_().required("required")}),k={email:"",password:""};function D(){var e,r,n=(0,v.HO)(),t=(0,h.cV)(),i=(0,y.useRouter)(),j=(0,f.useState)(!1),w=j[0],Z=j[1],C=(0,f.useState)(void 0),D=C[0],R=C[1],T=(0,f.useState)(!1),I=T[0],X=T[1],W=(0,g.cI)({defaultValues:k,resolver:(0,u.X)(S)});return(0,_.jsxs)(_.Fragment,{children:[D&&(0,_.jsxs)(a.Z,{sx:N.container,children:[(0,_.jsx)(d.Z,{sx:{backgroundColor:x.Z.extendedPalette.livingCoral,width:x.Z.spacing(12),height:x.Z.spacing(12)},children:(0,_.jsx)(E.Z,{sx:{fontSize:x.Z.spacing(6)}})}),(0,_.jsx)(l.Z,{variant:"h3",align:"center",children:"We sent you an email"}),(0,_.jsxs)(l.Z,{align:"center",children:["We have sent you an email to ",W.getValues("email")," with instructions to change the email associated with your account. Please note we cannot change your email address if\xa0",W.getValues("email")," is already in use."]}),(0,_.jsxs)(l.Z,{align:"center",sx:{cursor:"pointer"},children:[(0,_.jsx)(l.Z,{component:"span",children:"Didn't get any email?"}),(0,_.jsx)("span",{onClick:function(){return i.reload()},children:(0,_.jsx)("strong",{children:"\xa0Try again"})})]})]}),!D&&(0,_.jsx)(g.RV,P(P({},W),{},{children:(0,_.jsxs)(a.Z,{sx:N.container,children:[(0,_.jsx)(d.Z,{sx:{backgroundColor:x.Z.extendedPalette.green,width:x.Z.spacing(12),height:x.Z.spacing(12)},children:(0,_.jsx)(E.Z,{sx:{fontSize:x.Z.spacing(6)}})}),(0,_.jsx)(l.Z,{variant:"h3",align:"center",children:"Change Your Email"}),(0,_.jsx)(l.Z,{align:"center",children:"Enter your new email address and your password to confirm this change."}),(0,_.jsxs)(a.Z,{sx:N.formInputsContainer,children:[(0,_.jsx)(a.Z,{children:(0,_.jsx)(c.Z,P(P({label:"New email",variant:"standard",placeholder:"Type your new email...",fullWidth:!0},W.register("email")),{},{error:!!W.formState.errors.email,helperText:null===(e=W.formState.errors.email)||void 0===e?void 0:e.message,disabled:w}))}),(0,_.jsx)(a.Z,{children:(0,_.jsx)(c.Z,P(P({label:"Current password",variant:"standard",placeholder:"Type your current password...",fullWidth:!0},W.register("password")),{},{error:!!W.formState.errors.password,helperText:null===(r=W.formState.errors.password)||void 0===r?void 0:r.message,disabled:w,InputProps:{endAdornment:(0,_.jsx)(s.Z,{position:"end",children:(0,_.jsx)(o.Z,{"aria-label":"Show new password",onClick:function(){return X(!I)},onMouseDown:function(){return X(!I)},edge:"end",children:I?(0,_.jsx)(b.Z,{}):(0,_.jsx)(O.Z,{})})})},type:I?"text":"password"}))})]}),(0,_.jsx)(p.Z,{onClick:W.handleSubmit((function(e){Z(!0),n(e.email,e.password).then((function(e){Z(!1),e?R(!0):t.error(m.XO.UNEXPECTED_ERROR_TRY_AGAIN)})).catch((function(e){var r=(0,m.eN)(e);[400,409].includes(r.statusCode)?(W.setError("email",{message:"Email or password is not correct."}),W.setError("password",{message:"Email or password is not correct."})):t.error(m.XO.UNEXPECTED_ERROR_TRY_AGAIN),Z(!1)}))})),variant:"contained",loading:w,fullWidth:!0,children:"Continue"})]})}))]})}var N={container:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},formInputsContainer:{display:"flex",flexDirection:"column",gap:2,marginBottom:5,width:"100%"}};function R(){return(0,_.jsx)(a.Z,{sx:T.contentContainer,children:(0,_.jsx)(D,{})})}var T={contentContainer:(0,i.Z)({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",marginX:"auto",gap:x.Z.spacing(2)},x.Z.breakpoints.up("md"),{maxWidth:"".concat(x.Z.spacing(50))})};function I(e){var r=e.user;return(0,_.jsx)(t.Z,{user:r,children:(0,_.jsx)(R,{})})}},22652:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/change-email",function(){return n(92583)}])}},function(e){e.O(0,[9774,2888,179],(function(){return r=22652,e(e.s=r);var r}));var r=e.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.