PageSourceSearch

https://cdn.azmen.com/react/v101/chunks/ForgetPasswordPage.js

js azmen.com collected 2026-09-28 06:30:54 UTC 2,254 bytes, 1 lines download raw bytes

1import{r as t,j as e,Y as p,a as w}from"../app.js";import{S as c}from"./sentry.js";import{A as f}from"./AuthLayout.js";const j=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#666",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),e.jsx("path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"})]});function b(){const[u,i]=t.useState(""),[s,h]=t.useState(""),[l,o]=t.useState(!1),m=new URLSearchParams(window.location.search).get("next"),x=m?`?next=${encodeURIComponent(m)}`:"",r=t.useCallback(a=>i(a),[]),d=t.useCallback(()=>i(""),[]),g=async a=>{a.preventDefault(),d();try{c.addBreadcrumb({category:"auth",message:"Forgot password form submitted",level:"info",data:{emailPresent:!!s}})}catch{}if(!s.length)return r("Enter a valid email.");o(!0);try{await p(w,s,{url:varValues.domainFull||window.location.origin})}catch(n){try{c.captureException(n,{tags:{area:"auth",op:"sendPasswordResetEmail"},extra:{emailAttempted:s||""}})}catch{}if(n.code==="auth/invalid-email")return o(!1),r("Please enter a valid email address.")}r("If an account exists with this email, a password reset link has been sent.")};return e.jsx(f,{message:u,onDismissMessage:d,loading:!1,showPerks:!1,children:e.jsxs("div",{className:"card-dark",children:[e.jsx("h1",{className:"text-center mb-6 text-2xl font-bold",children:"RESET PASSWORD"}),e.jsxs("form",{onSubmit:g,className:"max-w-[420px] mx-auto",children:[e.jsxs("div",{className:"mb-5",children:[e.jsx("label",{htmlFor:"email",children:"Email"}),e.jsxs("div",{className:"relative mt-2",children:[e.jsx("div",{className:"icon-input-left",children:e.jsx(j,{})}),e.jsx("input",{id:"email",name:"email",type:"email",className:"form-input-dark !pl-9",value:s,onChange:a=>h(a.target.value),placeholder:"Email address",autoComplete:"username"})]})]}),e.jsx("button",{type:"submit",className:"btn-primary-tw w-full",disabled:l,children:l?"Sending...":"Send Password Reset Email"}),e.jsxs("p",{className:"text-center text-sm mt-4",children:["Remember your password? ",e.jsx("a",{href:`/signin.html${x}`,children:"Sign in"})]})]})]})})}function P(){return e.jsx(b,{})}export{P 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.