PageSourceSearch

https://shuryan-healthcare.netlify.app/assets/ForgotPasswordPage-4k5K3WGK.js

js shuryan-healthcare.netlify.app collected 2026-10-03 11:24:27 UTC 2,216 bytes, 1 lines download raw bytes

1import{u as x,b as d,c as h,j as e,s as u,I as j,B as f,f as g,v as p,o as b,w as N}from"./index-aQkVUlMC.js";import{A as v}from"./Alert-CLjrwUoV.js";const A=()=>{const r=x(),{forgotPassword:l,loading:s,error:t,clearError:i}=d(),{register:n,handleSubmit:m,formState:{errors:o}}=h({resolver:b(N),mode:"onBlur"}),c=async a=>{i();try{await l(a.email),r("/verify-reset-otp",{state:{email:a.email}})}catch{}};return e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-teal-50 via-white to-emerald-50 flex items-center justify-center p-4",children:e.jsxs("div",{className:"w-full max-w-md bg-white rounded-2xl shadow-xl p-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-teal-100 rounded-full mb-4",children:e.jsx(u,{className:"text-2xl text-teal-600"})}),e.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"نسيت كلمة المرور؟"}),e.jsxs("p",{className:"text-gray-600",children:["لا تقلق، سنساعدك في استعادة حسابك على"," ",e.jsx("span",{className:"text-teal-600 font-semibold",children:"شُريان"})]})]}),t&&e.jsx(v,{variant:"error",className:"mb-6",children:t}),e.jsxs("form",{onSubmit:m(c),className:"space-y-6",children:[e.jsx(j,{label:"البريد الإلكتروني",type:"email",placeholder:"أدخل بريدك الإلكتروني",error:o.email?.message,...n("email")}),e.jsx(f,{type:"submit",variant:"primary",fullWidth:!0,disabled:s,loading:s,children:!s&&"إرسال رمز التحقق"})]}),e.jsxs("div",{className:"text-center mt-8 p-4 bg-gray-50 rounded-xl",children:[e.jsx("p",{className:"text-gray-600 mb-2",children:"تذكرت كلمة المرور؟"}),e.jsxs(g,{to:"/login",className:"text-teal-600 font-semibold hover:text-teal-700 inline-flex items-center gap-2",children:[e.jsx(p,{className:"text-sm"}),e.jsx("span",{children:"العودة لتسجيل الدخول"})]})]}),e.jsx("div",{className:"text-center mt-6",children:e.jsx("p",{className:"text-sm text-gray-500",children:"سيتم إرسال رمز التحقق المكون من 6 أرقام إلى بريدك الإلكتروني"})})]})})};export{A 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.