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.