PageSourceSearch

https://kingjamesbiblereader.com/assets/ForgotPassword-BDQ9iBpw.js

js kingjamesbiblereader.com collected 2026-09-24 14:46:39 UTC 3,322 bytes, 6 lines download raw bytes

1import{c as u,r,j as e,B as x,L as i,J as f,ay as p}from"./index-Cshou3OC.js";/**
2 * @license lucide-react v0.475.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const h=[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]],g=u("MailCheck",h);function y(){const[s,l]=r.useState(""),[t,o]=r.useState(!1),[d,c]=r.useState(!1),m=async a=>{a.preventDefault(),o(!0);try{await p.auth.resetPasswordRequest(s.trim())}catch(n){console.warn("[ForgotPassword] request error:",n==null?void 0:n.message)}o(!1),c(!0)};return e.jsx("div",{className:"min-h-screen flex items-center justify-center px-5 py-12 bg-background",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 rounded-2xl bg-gradient-to-br from-indigo-500 to-violet-600 shadow-lg shadow-indigo-500/30 mb-4",children:e.jsx(x,{className:"w-7 h-7 text-white"})}),e.jsx("h1",{className:"font-serif text-3xl font-bold text-foreground mb-1",children:"Reset Password"})]}),e.jsx("div",{className:"bg-card/70 backdrop-blur-xl border border-border/60 rounded-2xl p-6 shadow-lg",children:d?e.jsxs("div",{className:"text-center space-y-3 py-4",children:[e.jsx(g,{className:"w-10 h-10 text-green-500 mx-auto"}),e.jsx("p",{className:"font-sans text-sm text-foreground font-medium",children:"Check your email"}),e.jsxs("p",{className:"font-sans text-sm text-muted-foreground leading-relaxed",children:["If an account exists for ",e.jsx("span",{className:"text-foreground font-medium",children:s}),", a password reset link has been sent. It may take a few minutes to arrive."]}),e.jsx(i,{to:"/login",className:"inline-block font-sans text-sm text-accent underline underline-offset-2 pt-2",children:"← Back to sign in"})]}):e.jsxs("form",{onSubmit:m,className:"space-y-4",children:[e.jsx("p",{className:"font-sans text-sm text-muted-foreground",children:"Enter your email and we'll send you a link to reset your password."}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("label",{htmlFor:"email",className:"font-sans text-sm font-medium text-foreground",children:"Email"}),e.jsx("input",{id:"email",type:"email",autoComplete:"email",required:!0,value:s,onChange:a=>l(a.target.value),className:"w-full px-4 py-2.5 rounded-xl bg-background border border-input text-foreground font-sans text-sm focus:border-primary focus:outline-none focus:ring-2 focus:ring-ring/40",placeholder:"[email protected]"})]}),e.jsxs("button",{type:"submit",disabled:t,className:"w-full flex items-center justify-center gap-2 px-4 py-3 rounded-xl bg-primary border border-primary text-primary-foreground font-sans text-sm font-medium hover:opacity-90 transition-all duration-200 disabled:opacity-60",children:[t?e.jsx(f,{className:"w-4 h-4 animate-spin"}):null,t?"Sending…":"Send Reset Link"]}),e.jsx("div",{className:"text-center pt-1",children:e.jsx(i,{to:"/login",className:"font-sans text-xs text-muted-foreground hover:text-accent underline underline-offset-2",children:"← Back to sign in"})})]})})]})})}export{y 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.