PageSourceSearch

https://youthfireit.com/assets/forgot-password-C7wwpexd.js

js youthfireit.com collected 2026-10-05 02:40:54 UTC 1,800 bytes, 1 lines download raw bytes

1import{j as e}from"./radix-C7m_p3hd.js";import{L as u,s as c,t as p}from"./index-QwT9_GrP.js";import{a as s}from"./icons-Byb5nA6I.js";import{A as f}from"./AuthLayout-DJ5QCBY8.js";import{B as x}from"./button-aZOsfQvV.js";import{I as h}from"./input-BDda6t1w.js";import{L as g}from"./label-Cywe519D.js";import"./pdf-BQaX5Z90.js";import"./editor-BVBPyX6q.js";import"./charts-CkbpeChh.js";import"./index-DpFz0cJn.js";function B(){const[r,n]=s.useState(""),[m,l]=s.useState(!1),[a,o]=s.useState(!1);async function d(t){t.preventDefault(),o(!0);const{error:i}=await c.auth.resetPasswordForEmail(r,{redirectTo:`${window.location.origin}/reset-password`});if(o(!1),i){p.error(i.message);return}l(!0)}return e.jsx(f,{title:"Forgot password",description:"We'll email you a secure reset link.",footer:e.jsx(u,{to:"/login",className:"font-medium text-primary-strong hover:underline",children:"Back to sign in"}),children:m?e.jsxs("div",{className:"rounded-2xl border border-primary/20 bg-primary/5 p-4 text-sm leading-relaxed text-muted-foreground",children:["If an account exists for ",e.jsx("strong",{className:"text-foreground",children:r}),", a reset link is on its way. Check your inbox."]}):e.jsxs("form",{onSubmit:d,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(g,{htmlFor:"email",children:"Email"}),e.jsx(h,{id:"email",type:"email",required:!0,value:r,onChange:t=>n(t.target.value),autoComplete:"email",className:"h-12 rounded-xl text-base transition-shadow focus:shadow-[var(--shadow-glow-primary)]"})]}),e.jsx(x,{type:"submit",disabled:a,className:"shimmer-sweep h-12 w-full rounded-pill bg-gradient-fire text-base shadow-[var(--shadow-glow-primary)] transition-transform hover:scale-[1.01]",children:a?"Sending...":"Send reset link"})]})})}export{B as component};

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.