PageSourceSearch

https://app.backstagebaton.com/app/assets/ForgotPasswordPage-Bu0g-3RB.js

js backstagebaton.com collected 2026-10-07 08:50:50 UTC 1,915 bytes, 1 lines download raw bytes

1import{r as t,j as e,L as l,B as h,v as b}from"./index-_aijvlUq.js";import{I as g}from"./Input-ysTyZFq5.js";function f(){const[s,i]=t.useState(""),[d,r]=t.useState(!1),[c,m]=t.useState(!1),[n,o]=t.useState(null);async function x(a){a.preventDefault(),o(null),r(!0);try{await b.post("/auth/forgot-password",{email:s}),m(!0)}catch(u){o(u.message)}r(!1)}return e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 px-4",children:e.jsxs("div",{className:"w-full max-w-sm",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("img",{src:"/app/brand/logo-primary.svg",alt:"Backstage Baton",className:"h-20 mx-auto mb-4 object-contain"}),e.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Reset Password"}),e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Enter your email to receive a password reset link."})]}),c?e.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-6 text-center",children:[e.jsx("p",{className:"text-sm text-gray-700",children:"If an account exists with that email, a reset link has been sent. Check your inbox."}),e.jsx(l,{to:"/login",className:"inline-block mt-4 text-sm text-band-600 hover:text-band-700 font-medium",children:"Back to Sign In"})]}):e.jsxs("form",{onSubmit:x,className:"bg-white rounded-xl shadow-sm border border-gray-200 p-6 space-y-4",children:[n&&e.jsx("div",{className:"rounded-md bg-red-50 border border-red-200 px-3 py-2 text-sm text-red-700",children:n}),e.jsx(g,{label:"Email",type:"email",value:s,onChange:a=>i(a.target.value),required:!0,autoComplete:"email",autoFocus:!0}),e.jsx(h,{type:"submit",isLoading:d,disabled:!s,className:"w-full",children:"Send reset link"}),e.jsx("div",{className:"text-center",children:e.jsx(l,{to:"/login",className:"text-sm text-band-600 hover:text-band-700 font-medium",children:"Back to Sign In"})})]})]})})}export{f as ForgotPasswordPage};

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.