PageSourceSearch

https://www.instagem.ai/assets/ForgotPassword-CKQBfbpE.js

js instagem.ai collected 2026-10-05 12:04:27 UTC 2,346 bytes, 1 lines download raw bytes

1import{b as w,u as k,a as C,r,j as s,C as n,g as o,h as d,k as m,l as u,L as h,c as t,o as y}from"./main-DX7XzkoU.js";import{u as v}from"./useAuthFlow-FWX3SGoC.js";import{A as x,F as A}from"./AuthLayout-Duc2NXbL.js";import{C as F}from"./circle-check-big-C88d1A5s.js";import{A as j}from"./arrow-left-Cf41rOjY.js";import{M as L}from"./mail-B3pms02x.js";import"./subscriberService-DJIuIlbz.js";import"./instagem-hero-DMfFP84w.js";const q=()=>{const{t:e}=w(),{user:c}=k(),l=C(),[a,p]=r.useState(""),[f,b]=r.useState(!1),{isLoading:i,resetPassword:g}=v();r.useEffect(()=>{c&&l("/dashboard",{replace:!0})},[c,l]);const N=async _=>{_.preventDefault(),await g(a)&&b(!0)};return f?s.jsx(x,{children:s.jsxs(n,{className:"bg-surface-card/50 backdrop-blur-sm border-border/50",children:[s.jsxs(o,{className:"text-center",children:[s.jsx("div",{className:"w-16 h-16 rounded-full bg-green-500/20 mx-auto flex items-center justify-center mb-4",children:s.jsx(F,{className:"w-8 h-8 text-green-500"})}),s.jsx(d,{children:e("auth.reset_email_sent")}),s.jsx(m,{children:e("auth.reset_email_sent_desc")})]}),s.jsxs(u,{className:"space-y-4",children:[s.jsx("p",{className:"text-sm text-muted-foreground text-center",children:e("auth.check_email_instructions",{email:a})}),s.jsx(h,{to:"/login",className:"block",children:s.jsxs(t,{variant:"default",className:"w-full",size:"lg",children:[s.jsx(j,{className:"w-4 h-4 mr-2"}),e("auth.back_to_login")]})})]})]})}):s.jsx(x,{children:s.jsxs(n,{className:"bg-surface-card/50 backdrop-blur-sm border-border/50",children:[s.jsxs(o,{children:[s.jsx(d,{children:e("auth.password_reset")}),s.jsx(m,{children:e("auth.password_reset_desc")})]}),s.jsxs(u,{className:"space-y-4",children:[s.jsxs("form",{onSubmit:N,className:"space-y-4",children:[s.jsx(A,{id:"reset-email",label:e("common.email"),type:"email",placeholder:e("auth.email_placeholder"),value:a,onChange:p,icon:s.jsx(L,{className:"h-4 w-4"}),required:!0}),s.jsx(t,{type:"submit",className:"w-full",size:"lg",disabled:i,children:i?s.jsxs(s.Fragment,{children:[s.jsx(y,{className:"w-4 h-4 mr-2 animate-spin"}),e("auth.sending_reset_link")]}):e("auth.send_reset_link")})]}),s.jsx(h,{to:"/login",className:"block",children:s.jsxs(t,{variant:"ghost",className:"w-full",children:[s.jsx(j,{className:"w-4 h-4 mr-2"}),e("auth.back_to_login")]})})]})]})})};export{q 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.