PageSourceSearch

https://suavemanagement.com/assets/ForgotPassword-CJOACiDv.js

js suavemanagement.com collected 2026-10-05 07:10:44 UTC 2,531 bytes, 1 lines download raw bytes

1import{r as s,j as e,g,f as h,L as p}from"./index-C-q_0SsX.js";import{A as b}from"./arrow-left-D_odN6iJ.js";function j(){const[n,x]=s.useState(""),[o,i]=s.useState(""),[l,d]=s.useState(""),[r,c]=s.useState(!1);async function u(a){a.preventDefault(),i(""),d(""),c(!0);try{const t=await fetch("/api/auth/password/forgot",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n})}),m=await t.json();if(!t.ok)throw new Error(m.error||"Unable to process request");i(m.message)}catch(t){d(t.message||"Unable to process request")}finally{c(!1)}}return e.jsx("div",{className:"min-h-screen bg-[#111] flex items-center justify-center px-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsx("div",{className:"w-16 h-16 bg-brand-gold/10 rounded-full flex items-center justify-center mx-auto mb-4",children:e.jsx(g,{className:"w-8 h-8 text-brand-gold"})}),e.jsx("h1",{className:"font-serif text-3xl text-white tracking-wide mb-2",children:"Reset Password"}),e.jsx("p",{className:"text-gray-500 text-sm",children:"Enter your email and we will send you a reset link."})]}),e.jsxs("form",{onSubmit:u,className:"bg-white/5 backdrop-blur border border-white/10 rounded-2xl p-8 space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"forgot-email",className:"block text-xs font-bold uppercase tracking-wider text-gray-400 mb-2",children:"Email Address"}),e.jsx("input",{id:"forgot-email",type:"email",required:!0,value:n,onChange:a=>x(a.target.value),className:"w-full px-4 py-3 bg-white/5 border border-white/10 rounded-lg text-white text-sm outline-none focus:border-brand-gold transition-colors",placeholder:"[email protected]"})]}),o&&e.jsx("p",{className:"text-sm text-green-400 bg-green-400/10 px-4 py-2 rounded-lg",children:o}),l&&e.jsx("p",{className:"text-sm text-red-400 bg-red-400/10 px-4 py-2 rounded-lg",children:l}),e.jsxs("button",{type:"submit",disabled:r,className:"w-full py-4 bg-brand-gold text-white text-sm font-bold tracking-widest uppercase rounded-lg hover:bg-white hover:text-brand-dark transition-all duration-300 disabled:opacity-60 flex items-center justify-center gap-2",children:[r&&e.jsx(h,{className:"w-4 h-4 animate-spin"}),r?"Sending...":"Send Reset Link"]})]}),e.jsxs(p,{to:"/admin/login",className:"text-gray-500 hover:text-white text-sm flex items-center justify-center gap-2 mt-6 transition-colors",children:[e.jsx(b,{className:"w-4 h-4"})," 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.