PageSourceSearch

https://socialgravity.ai/assets/ForgotPassword-Ddw9RyAM.js

js socialgravity.ai collected 2026-10-05 13:56:03 UTC 2,744 bytes, 1 lines download raw bytes

1import{r as t,j as e,L as c}from"./react-D6Y9hML7.js";import{L as u,a as p}from"./index-we3y_myF.js";import{A as f}from"./AuroraHero-CA7sppbc.js";import{I as w}from"./InputGroup-BuN6twLv.js";import{m as g}from"./motion-BeFgxJ7d.js";import{M as j}from"./mail-check-CHQkX-5g.js";import"./supabase-CI_V8wt2.js";import"./useQuery-DtTYXR9K.js";import"./LogoMark-DeHCpl4c.js";function F(){const[s,m]=t.useState(""),[x,d]=t.useState(!1),[i,r]=t.useState(""),[l,n]=t.useState(!1),h=async a=>{a.preventDefault(),r(""),n(!0);const{error:o}=await p.auth.resetPasswordForEmail(s,{redirectTo:`${window.location.origin}/reset-password`});if(n(!1),o){r(o.message);return}d(!0)};return e.jsxs("main",{className:"font-sans flex min-h-screen w-full flex-col lg:flex-row bg-black text-white antialiased p-2 lg:h-screen lg:overflow-hidden lg:p-4",children:[e.jsx(f,{heading:"Get back into your account",subtitle:"We will email you a link to set a new password."}),e.jsx("div",{className:"flex-1 flex flex-col items-center justify-center py-12 lg:py-6 px-4 sm:px-12 lg:px-16 xl:px-24 overflow-y-auto",children:e.jsx(g.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.8,ease:"easeOut"},className:"w-full max-w-xl space-y-6",children:x?e.jsxs("div",{className:"space-y-5",children:[e.jsx(j,{className:"w-8 h-8 text-white/70","aria-hidden":"true"}),e.jsx("h1",{className:"text-3xl font-medium tracking-tight",children:"Check your email"}),e.jsxs("p",{className:"text-white/50 text-sm leading-relaxed",children:["If an account exists for ",e.jsx("span",{className:"text-white",children:s}),", a reset link is on its way."]}),e.jsx(c,{to:"/login",className:"text-sm text-white hover:underline inline-block",children:"Back to sign in"})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-3xl font-medium tracking-tight",children:"Forgot password"}),e.jsx("p",{className:"text-white/40 text-sm",children:"Enter the address you signed up with."})]}),i&&e.jsx("p",{className:"text-sm text-red-400",children:i}),e.jsxs("form",{onSubmit:h,className:"space-y-5",children:[e.jsx(w,{label:"Email",type:"email",placeholder:"[email protected]",value:s,onChange:a=>m(a.target.value),autoComplete:"email",required:!0}),e.jsxs("button",{type:"submit",disabled:l,className:"w-full h-14 bg-white text-black font-semibold rounded-xl transition hover:bg-white/90 active:scale-[0.98] disabled:opacity-50 flex items-center justify-center gap-2",children:[l&&e.jsx(u,{className:"w-4 h-4 animate-spin"}),"Send reset link"]})]}),e.jsxs("p",{className:"text-sm text-white/40",children:["Remembered it?"," ",e.jsx(c,{to:"/login",className:"text-white hover:underline",children:"Sign in"})]})]})})})]})}export{F as default};

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.