PageSourceSearch

https://futureastronaut.com/_next/static/chunks/pages/reset-password-d082536f47914151.js

js futureastronaut.com collected 2026-10-02 01:30:31 UTC 5,247 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6],{577:function(s,e,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset-password",function(){return a(2736)}])},2736:function(s,e,a){"use strict";a.r(e),a.d(e,{default:function(){return E}});var r=a(5893),n=a(7294),o=a(9008),t=a.n(o),c=a(7549),i=a(8438),l=a(7568),d=a(4924),u=a(6042),m=a(9396),f=a(7582),p=a(8116),w=a(9454),h=a(5748),x=a(9310),v=a(5114),g=a(3050),j=a(7533),N=a(8697),b=a(6501);a(933),a(5519),a(8770),a(8277);p.ZP.use([p.pt,p.tl,p.Gk]);var P=function(){var s=(0,n.useState)({}),e=s[0],a=s[1],o=(0,n.useState)({email:"",password:"",confirmPassword:""}),t=o[0],c=o[1],i=(0,N.E)(),p=i.locale,P=i.translations,y=i.detectBrowserLocale,Z=i.loadTranslations;(0,n.useEffect)((function(){y()}),[y]),(0,n.useEffect)((function(){Z(p)}),[p,Z]),(0,n.useEffect)((function(){var s=new URLSearchParams(window.location.search).get("code"),e=null!=s?s.toString():"",a=(0,g.vd)(e),r=String((0,v.v)(a)),n=JSON.parse(r.replace(/'/g,'"'));c((function(s){return(0,m.Z)((0,u.Z)({},s),{email:n.data})}))}),[]);var _=function(){var s=(0,l.Z)((function(s){var e,a,r,n,o;return(0,f.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),e={email:s.email,password:s.password},[4,(0,x.UL)(e)];case 1:return(null===(a=t.sent())||void 0===a?void 0:a.status)===w.WE.Ok?((0,j.x9)("".concat(null===(r=P.resetPassword)||void 0===r?void 0:r.showSuccessMessage)),setTimeout((function(){window.location.href="/"}),3e3)):(0,j._N)("".concat(null===(n=P.generalToast)||void 0===n?void 0:n.showErrorMessage)),[3,3];case 2:return t.sent(),(0,j._N)("".concat(null===(o=P.generalToast)||void 0===o?void 0:o.showErrorMessage)),[3,3];case 3:return[2]}}
1))}));return function(e){return s.apply(this,arguments)}}(),E=function(s){c((function(e){return(0,m.Z)((0,u.Z)({},e),(0,d.Z)({},s.target.name,s.target.value))})),a((0,m.Z)((0,u.Z)({},e),(0,d.Z)({},s.target.name,"")))};return(0,r.jsx)("section",{className:"signin style-5",children:(0,r.jsx)("div",{className:"container",children:(0,r.jsx)("div",{className:"form-content",children:(0,r.jsx)("div",{className:"row gx-0 justify-content-center",children:(0,r.jsx)("div",{className:"col-lg-6 order-last order-lg-first",children:(0,r.jsxs)("div",{className:"info",children:[(0,r.jsx)("h3",{className:"mb-10",children:" Create a New Password "}),(0,r.jsxs)("p",{className:"color-666",children:[" ","Type and confirm a secure new password for the account."," "]}),(0,r.jsxs)("form",{onSubmit:function(s){s.preventDefault(),function(){var s={};return t.password?(0,h.Z)(t.password)?(s.password="Do not use special characters.",a(s),!1):t.password===t.confirmPassword||(s.confirmPassword="Passwords do not match",a(s),!1):(s.password="Password is required",a(s),!1)}()&&_(t)},children:[(0,r.jsxs)("div",{className:"row",children:[(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"form-group group-icon",children:[(0,r.jsx)("input",{type:"text",name:"email",className:"form-control disabled ".concat(e.email?"border-danger is-invalid":""),placeholder:"Your MentalUP account email\u2026",value:t.email,onChange:E,disabled:!0}),(0,r.jsxs)("span",{className:"icon",children:[" ",(0,r.jsx)("i",{className:"fas fa-envelope color-gray"})," "]}),e.email&&(0,r.jsx)("small",{className:"text-danger",children:e.email})]})}),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"form-group group-icon mt-3 mt-lg-0 ".concat(e.password?"is-invalid":""),children:[(0,r.jsx)("input",{type:"password",name:"password",className:"form-control ".concat(e.password?"border-danger":""),placeholder:"Enter a new password",onChange:E}),(0,r.jsxs)("span",{className:"icon",children:[" ",(0,r.jsx)("i",{className:"fas fa-key color-gray"})," "]}),e.password&&(0,r.jsx)("small",{className:"text-danger",children:e.password})]})}),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"form-group group-icon mt-3 mt-lg-0 ".concat(e.confirmPassword?"is-invalid":""),children:[(0,r.jsx)("input",{type:"password",name:"confirmPassword",className:"form-control ".concat(e.confirmPassword?"border-danger":""),placeholder:"Re-enter your new password",onChange:E}),(0,r.jsxs)("span",{className:"icon",children:[" ",(0,r.jsx)("i",{className:"fas fa-key color-gray"})," "]}),e.confirmPassword&&(0,r.jsx)("small",{className:"text-danger",children:e.confirmPassword})]})})]}),(0,r.jsx)("button",{type:"submit",className:"butn bg-blue8 fw-bold border-0 rounded-3 w-75 text-white mt-30 py-3 rounded-pill",children:(0,r.jsx)("span",{children:" Change Password "})})]}),(0,r.jsx)(b.x7,{className:"position-absolute",position:"top-center",reverseOrder:!0})]})})})})})})},y=a(6892),Z=a(9204),_=a(9850),E=function(){var s=(0,n.useRef)(null);return(0,n.useEffect)((function(){(0,c.Z)(s.current)}),[s]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_.Z,{}),(0,r.jsxs)(t(),{children:[(0,r.jsx)("title",{children:"Reset Account Password"}),(0,r.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,r.jsxs)(i.Z,{children:[(0,r.jsx)(y.Z,{style:"4"}),(0,r.jsx)(Z.Z,{navbarRef:s,hideNavItems:!0}),(0,r.jsx)("main",{className:"signin-page style-5",children:(0,r.jsx)(P,{})})]})]})}}},function(s){s.O(0,[714,664,862,695,19,774,888,179],(function(){return e=577,s(s.s=e);var e}));var e=s.O();_N_E=e}]);

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.