PageSourceSearch

https://novo.gruposvip.com/assets/ForgotPassword-C0nHQJSE.js

js gruposvip.com collected 2026-09-26 08:44:04 UTC 3,414 bytes, 1 lines download raw bytes

1import{j as e}from"./query-Q_ThwKGI.js";import{r as i,L as m}from"./react-vendor-wefok28f.js";import{s as f}from"./client-DjLwxtrO.js";import{u as j}from"./index-C4Kq7kkR.js";import{B as l}from"./button-DrepnwkX.js";import{I as g}from"./input-Cu6Tiemi.js";import{L as y}from"./label-Ch0F7L4t.js";import{z as w,A as u}from"./icons-By8asZST.js";import"./supabase-COHOFxoQ.js";const F=()=>{const[s,x]=i.useState(""),[t,n]=i.useState(!1),[h,o]=i.useState(!1),{toast:r}=j(),p=async a=>{a.preventDefault(),n(!0);try{const c=window.location.origin,{error:d}=await f.auth.resetPasswordForEmail(s,{redirectTo:`${c}/reset-password`});d?r({title:"Error",description:d.message,variant:"destructive"}):(o(!0),r({title:"Email sent",description:"Check your email for password reset instructions."}))}catch{r({title:"Error",description:"Something went wrong. Please try again.",variant:"destructive"})}finally{n(!1)}};return h?e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:e.jsx("div",{className:"w-full max-w-md 
1space-y-6 bg-white rounded-lg shadow-lg p-8",children:e.jsxs("div",{className:"text-center space-y-4",children:[e.jsx("div",{className:"w-16 h-16 bg-primary/10 rounded-full flex items-center justify-center mx-auto",children:e.jsx(w,{className:"h-8 w-8 text-primary"})}),e.jsx("h1",{className:"text-2xl font-bold",children:"Check your email"}),e.jsxs("p",{className:"text-muted-foreground",children:["We've sent password reset instructions to ",e.jsx("strong",{children:s})]}),e.jsxs("div",{className:"mt-4 p-4 bg-muted rounded-lg text-sm text-muted-foreground space-y-2",children:[e.jsx("p",{className:"font-medium",children:"Didn't receive the email?"}),e.jsxs("ul",{className:"space-y-1 text-xs",children:[e.jsx("li",{children:"• Check your spam or junk folder"}),e.jsx("li",{children:"• Make sure the email address is correct"}),e.jsx("li",{children:"• Email may take a few minutes to arrive"}),e.jsx("li",{children:"• Try again with a different email if needed"})]})]}),e.jsxs("div",{className:"pt-4 space-y-2",children:[e.jsx(l,{variant:"outline",className:"w-full",onClick:()=>o(!1),children:"Try different email"}),e.jsx(m,{to:"/login",children:e.jsxs(l,{variant:"ghost",className:"w-full",children:[e.jsx(u,{className:"mr-2 h-4 w-4"}),"Back to login"]})})]})]})})}):e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:e.jsxs("div",{className:"w-full max-w-md 
1space-y-6 bg-white rounded-lg shadow-lg p-8",children:[e.jsxs("div",{className:"space-y-2 text-center",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"Forgot your password?"}),e.jsx("p",{className:"text-muted-foreground",children:"Enter your email address and we'll send you a link to reset your password."})]}),e.jsxs("form",{onSubmit:p,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(y,{htmlFor:"email",children:"Email address"}),e.jsx(g,{id:"email",type:"email",placeholder:"Enter your email",value:s,onChange:a=>x(a.target.value),required:!0,disabled:t})]}),e.jsx(l,{type:"submit",className:"w-full",disabled:t||!s,children:t?"Sending...":"Send reset instructions"})]}),e.jsx("div",{className:"text-center",children:e.jsxs(m,{to:"/login",className:"text-sm text-primary hover:underline",children:[e.jsx(u,{className:"inline mr-1 h-3 w-3"}),"Back to login"]})})]})})};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.