PageSourceSearch

https://story-trucks-km.lovable.app/assets/ForgotPassword-T_eQy6hO.js

js story-trucks-km.lovable.app collected 2026-10-03 03:38:13 UTC 2,915 bytes, 1 lines download raw bytes

1import{j as e}from"./ui-vendor-CbOMlni4.js";import{r as a,L as t}from"./react-vendor-B7VPlxuw.js";import{u as p,s as u}from"./index-CUxiUAAl.js";import"./query-D7yXB24t.js";import"./supabase-CjOYkTG7.js";const j=()=>{const[s,l]=a.useState(""),[n,o]=a.useState(!1),[c,d]=a.useState(!1),{toast:m}=p(),x=async r=>{r.preventDefault(),o(!0);const{error:i}=await u.auth.resetPasswordForEmail(s);i?m({title:"Error",description:i.message,variant:"destructive"}):d(!0),o(!1)};return e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background px-5",children:e.jsxs("div",{className:"w-full max-w-[420px]",children:[e.jsxs(t,{to:"/",className:"block text-center font-sans font-black text-2xl mb-10",children:[e.jsx("span",{className:"text-primary",children:"gay"}),e.jsx("span",{className:"text-foreground",children:"parking"}),e.jsx("span",{className:"text-muted-foreground",children:".com"})]}),e.jsxs("div",{className:"border border-primary/20 p-10",children:[e.jsx("h1",{className:"font-sans text-xl font-bold mb-2 text-center",children:"Reset password"}),c?e.jsxs("div",{className:"text-center",children:[e.jsxs("p",{className:"text-sm text-grey-light mb-6 font-serif",children:["We sent a 6-digit code to ",e.jsx("strong",{className:"text-primary",children:s}),". Check your inbox."]}),e.jsx(t,{to:`/reset-password?email=${encodeURIComponent(s)}`,className:"inline-block bg-primary text-primary-foreground font-bold py-3 px-8 text-xs uppercase tracking-wider rounded-sm hover:bg-primary/90 transition-colors font-sans",children:"Enter code"}),e.jsx("div",{className:"mt-6",children:e.jsx(t,{to:"/login",className:"text-sm text-primary hover:underline font-sans",children:"Back to login"})})]}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm text-muted-foreground text-center mb-8 font-serif",children:"Enter your email and we'll send you a 6-digit code to reset your password."}),e.jsxs("form",{onSubmit:x,className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-[10px] tracking-[2px] uppercase text-primary mb-2 font-sans",children:"Email"}),e.jsx("input",{type:"email",value:s,onChange:r=>l(r.target.value),required:!0,className:"w-full bg-secondary border border-foreground
1/10 text-foreground px-4 py-3 text-sm font-sans rounded-sm focus:outline-none focus:border-primary transition-colors placeholder:text-muted-foreground",placeholder:"[email protected]"})]}),e.jsx("button",{type:"submit",disabled:n,className:"w-full bg-primary text-primary-foreground font-bold py-3.5 text-xs uppercase tracking-wider rounded-sm hover:bg-primary/90 transition-colors font-sans disabled:opacity-50",children:n?"Sending...":"Send reset link"})]}),e.jsx("p",{className:"text-center text-sm text-muted-foreground mt-6 font-sans",children:e.jsx(t,{to:"/login",className:"text-primary hover:underline",children:"Back to login"})})]})]})]})})};export{j 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.