1import{o as m}from"./rolldown-runtime-ChpBd9eV.js";import{Ar as u,Da as x,La as b,Ta as g,kr as p,z as h}from"./chat-page-evUfHQgD.js";import{Ct as y,Sn as f}from"./community-page-CrngAMw5.js";var a=m(b(),1),e=g(),N=()=>{const[l,n]=(0,a.useState)(""),[i,o]=(0,a.useState)(!1),[t,s]=(0,a.useState)({type:"",text:""}),d=async r=>{r.preventDefault(),o(!0),s({type:"",text:""});try{await u(p(),"sendBrandedPasswordReset")({email:l.trim().toLowerCase()}),h("password_reset_requested"),s({type:"success",text:"Password reset link sent! Check your inbox"}),n("")}catch(c){s({type:"error",text:c.message})}finally{o(!1)}};return(0,e.jsx)("div",{className:"public-page min-h-screen flex items-center justify-center bg-gradient-to-br from-gray-900 to-gray-800 p-4",children:(0,e.jsx)("div",{className:"w-full max-w-md",children:(0,e.jsxs)("div",{className:"bg-gray-800/50 backdrop-blur-xl rounded-2xl shadow-xl p-8 border border-gray-700",children:[(0,e.jsx)("h2",{className:"text-3xl font-bold text-blue-400 mb-6 text-center",children:"Reset Password"}),t.text&&(0,e.jsx)("div",{className:`mb-4 p-3 rounded-lg ${t.type==="success"?"bg-green-900/50 text-green-400 border border-green-700":"bg-red-900/50 text-red-400 border border-red-700"}`,children:t.text}),(0,e.jsxs)("form",{onSubmit:d,className:"space-y-6",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{className:"block text-gray-300 mb-2",children:"Email Address"}),(0,e.jsxs)("div",{className:"relative",children:[(0,e.jsx)("input",{type:"email",value:l,onChange:r=>n(r.target.value),className:"w-full bg-gray-700/50 border border-gray-600 text-white rounded-lg px-4 py-3 pl-10 focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:"Enter your email",required:!0}),(0,e.jsx)(y,{className:"absolute left-3 top-3.5 text-gray-400"})]})]}),(0,e.jsx)("button",{type:"submit",disabled:i,className:"w-full bg-blue-600 hover:bg-blue-700 text-white rounded-lg px-4 py-3 transition-colors flex items-center justify-center gap-2 disabled:opacity-50",children:i?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f,{className:"animate-spin"}),"Sending..."]}):"Send Reset Link"})]}),(0,e.jsx)("div",{className:"mt-6 text-center",children:(0,e.jsx)(x,{to:"/signin",className:"text-blue-400 hover:text-blue-300 transition-colors",children:"Back to Sign In"})})]})})})};export{N 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.