PageSourceSearch

https://us.fusionmap.com/_next/static/chunks/pages/reset-password-02add50cc7b7225e.js

js fusionmap.com collected 2026-10-01 02:00:42 UTC 5,153 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c4f98089-43bf-4129-8c9c-f3824c0d6fb2",e._sentryDebugIdIdentifier="sentry-dbid-c4f98089-43bf-4129-8c9c-f3824c0d6fb2")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7537],{32484:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>l});var a=s(37876),r=s(53756);function l(){return(0,a.jsx)(r.A,{pageTitle:"FusionMap - Reset Password",heading:"Reset Password",description:"Please fill out the form below to reset your password",successMessage:"Password changed. Please log in",errorMessage:"Password reset failed",path:"/reset-password"})}},37054:(e,t,s)=>{"use strict";s.d(t,{_:()=>a});let a=e=>{if(!e||"object"!=typeof e)return{code:null,message:"",status:null};let t=null;return"number"==typeof e.status?t=e.status:"number"==typeof e.statusCode&&(t=e.statusCode),{code:"string"==typeof e.code?e.code:null,message:"string"==typeof e.message?e.message:"",status:t}}},43274:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset-password",function(){return s(32484)}])},45105:(e,t,s)=>{e.exports=s(13209)},53756:(e,t,s)=>{"use strict";s.d(t,{A:()=>y});var a=s(37876),r=s(77328),l=s.n(r),n=s(67468),i=s(77815),o=s(14232);let d=({onValidityChange:e})=>{let[t,s]=(0,o.useState)(""),[r,l]=(0,o.useState)(""),n=(0,o.useMemo)(()=>[{label:"At least 8 characters",met:t.length>=8},{label:"At least 1 uppercase letter",met:/[A-Z]/.test(t)},{label:"At least 1 lowercase letter",met:/[a-z]/.test(t)},{label:"At least 1 number",met:/\d/.test(t)}],[t]),i=n.every(e=>e.met),d=t===r,u="invisible";return r.length>0&&(u=d?"text-green-600":"text-gray-400"),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{type:"password",onChange:t=>{var a;let l;return s(a=t.target.value),l=[a.length>=8,/[A-Z]/.test(a),/[a-z]/.test(a),/\d/.test(a)].every(Boolean)&&a===r,void e(a,l)},placeholder:"Password",maxLength:128,className:"input w-[350px] max-w-2xl backdrop-blur-sm bg-white/80 text-black",required:!0}),(0,a.jsx)("input",{type:"password",onChange:s=>{var a;let r;return l(a=s.target.value),r=i&&t===a,void e(t,r)},placeholder:"Repeat password",maxLength:128,className:"mt-3 input w-[350px] max-w-2xl backdrop-blur-sm bg-white/80 text-black",required:!0}),(0,a.jsxs)("p",{className:`mt-1 text-sm h-5 flex items-center gap-2 ${u}`,children:[(0,a.jsx)("span",{children:d?"✓":"○"}),(0,a.jsx)("span",{children:"Passwords match"})]}),(0,a.jsx)("ul",{className:"mt-3 text-sm text-left w-[350px] max-w-2xl space-y-1",children:n.map(e=>(0,a.jsxs)("li",{className:`flex items-center gap-2 ${e.met?"text-green-600":"text-gray-400"}`,children:[(0,a.jsx)("span",{children:e.met?"✓":"○"}),(0,a.jsx)("span",{children:e.label})]},e.label))})]})};var u=s(80987),c=s(21034),p=s(77582),m=s(97685),x=s(89099),g=s(5168),h=s(37054);let b=new Set([g.y.$ERROR_CODES.INVALID_TOKEN,g.y.$ERROR_CODES.TOKEN_EXPIRED].map(e=>e.toString())),y=({pageTitle:e,heading:t,description:s,successMessage:r,errorMessage:y,path:f})=>{let w=(0,c.u)(),j=(0,x.useRouter)(),{token:_,error:N}=j.query,[v,A]=(0,o.useState)(""),[k,E]=(0,o.useState)(""),[P,S]=(0,o.useState)(!1),[R,C]=(0,o.useState)(!1),T=(0,o.useCallback)((e,t)=>{E(e),S(t)},[]);(0,o.useEffect)(()=>{j.isReady&&(async()=>{if("INVALID_TOKEN"===N){m.Ay.error("This password link is invalid or has already been used"),j.replace("/login"),A("");return}let e=await g.y.getSession();e?.data?.user&&(await (0,p.r)(!1),(0,m.Ay)("You have been logged out"),w.refetch({query:{disableCookieCache:!0}}));let t=Array.isArray(_)?_[0]:_;t?(A(t),globalThis.history.replaceState({},globalThis.document.title,f)):A("")})()},[j.isReady,_,N]);let D=async e=>{if(e.preventDefault(),!R){C(!0);try{if(!v)return void m.Ay.error("Reset token is missing or invalid. Please request a new link.");let{error:e}=await g.y.resetPassword({newPassword:k,token:v});if(e){(e=>{let{code:t}=(0,h._)(e),s=t?.toUpperCase()??"";return b.has(s)})(e)&&A("");let{message:t}=(0,h._)(e);m.Ay.error(t||y);return}m.Ay.success(r),j.replace("/login")}catch{m.Ay.error(y)}finally{C(!1)}}};return(0,a.jsxs)("div",{children:[(0,a.jsx)(m.l$,{}),(0,a.jsxs)("div",{className:"flex mx-auto flex-col py-2 min-h-screen background-gradient",children:[(0,a.jsx)(l(),{children:(0,a.jsx)("title",{children:e})}),(0,a.jsx)(i.A,{}),(0,a.jsxs)("main",{className:"subpage-container",children:[(0,a.jsx)("h1",{className:"subpage-header",children:t}),(0,a.jsx)("h2",{className:"mx-auto mt-5 max-w-xl text-lg sm:text-gray-400 text-gray-500 leading-7",children:s}),(0,a.jsxs)("form",{onSubmit:e=>D(e),method:"POST",className:"mt-10 flex flex-col",children:[(0,a.jsx)(d,{onValidityChange:T}),(0,a.jsxs)("button",{type:"submit",disabled:R||!P,className:"btn btn-primary tt-blue-button mt-5 disabled:opacity-50 disabled:cursor-not-allowed",children:[R?(0,a.jsx)("span",{className:"loading loading-spinner loading-md"}):(0,a.jsx)(u.dUr,{size:20})," Submit"]})]})]})]}),(0,a.jsx)(n.A,{})]})}}},e=>{e.O(0,[3371,2901,6695,1967,9930,636,6593,8792],()=>e(e.s=43274)),_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.