1import{r as t,j as e,L as s,a as c,M as p,s as j,t as N}from"./index-PQ8PnXig.js";import{K as g}from"./key-round-C_kx4NBT.js";function y(){const[a,m]=t.useState(""),[r,i]=t.useState(!1),[x,u]=t.useState(!1),[d,n]=t.useState(null),f=async l=>{l.preventDefault(),n(null),i(!0);const b=a.trim().toLowerCase(),h=`${window.location.origin}/auth/callback?type=recovery`,{error:o}=await j.auth.resetPasswordForEmail(b,{redirectTo:h});if(i(!1),o){n(N(o));return}u(!0)};return x?e.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-[#fffbff] px-4",dir:"rtl",children:[e.jsxs("div",{className:"absolute inset-0 -z-10 overflow-hidden",children:[e.jsx("div",{className:"absolute top-20 right-10 w-72 h-72 bg-[#eaddff]/40 rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-20 left-10 w-96 h-96 bg-[#ffd8e4]/30 rounded-full blur-3xl"})]}),e.jsxs("div",{className:"w-full max-w-md",children:[e.jsx(s,{to:"/",className:"flex items-center justify-center mb-8",children:e.jsx("img",{src:c("Nesty_logo.png"),alt:"Nesty",className:"h-20 w-auto"})}),e.jsxs("div",{className:"bg-white rounded-[32px] shadow-[0_20px_60px_-15px_rgba(0,0,0,0.1)] border border-[#e7e0ec] p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 mx-auto mb-6 rounded-full bg-[#f3edff] flex items-center justify-center",children:e.jsx(p,{className:"w-8 h-8 text-[#6750a4]"})}),e.jsx("h1",{className:"text-2xl font-medium text-[#1d192b] mb-3",children:"×××§× ×ת ת××ת ××××ר"}),e.jsxs("p",{className:"text-[#49454f] text-sm mb-6 leading-relaxed",children:["×× ×§××× ×ש××× ×¢× ××ת××ת ",a.trim().toLowerCase(),", ש××× × ×××× ×§×ש×ר ×××פ×ס ס×ס××. ××§×ש×ר ×ת××§×£ ×××©× ×©×¢×."]}),e.jsx(s,{to:"/auth/signin",className:"inline-block px-6 py-3 rounded-[24px] bg-[#6750a4] text-white font-medium hover:bg-[#5a4593] transition-colors",children:"×××¨× ××ת××ר×ת"})]})]})]}):e.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-[#fffbff] px-4 py-8",dir:"rtl",children:[e.jsxs("div",{className:"absolute inset-0 -z-10 overflow-hidden",children:[e.jsx("div",{className:"absolute top-20 right-10 w-72 h-72 bg-[#eaddff]/40 rounded-full blur-3xl"}),e.jsx("div",{className:"absolute bottom-20 left-10 w-96 h-96 bg-[#ffd8e4]/30 rounded-full blur-3xl"})]}),e.jsxs("div",{className:"w-full max-w-md",children:[e.jsx(s,{to:"/",className:"flex items-center justify-center mb-8",children:e.jsx("img",{src:c("Nesty_logo.png"),alt:"Nesty",className:"h-20 w-auto"})}),e.jsxs("div",{className:"bg-white rounded-[32px] shadow-[0_20px_60px_-15px_rgba(0,0,0,0.1)] border border-[#e7e0ec] p-8",children:[e.jsx("div",{className:"flex justify-center mb-6",children:e.jsxs("div",{className:"inline-flex items-center gap-2 bg-[#f3edff] text-[#21005d] px-4 py-2 rounded-full font-medium",children:[e.jsx(g,{className:"w-4 h-4"}),e.jsx("span",{children:"××פ×ס ס×ס××"})]})}),e.jsxs("div",{className:"text-center mb-6",children:[e.jsx("h1",{className:"text-2xl font-medium text-[#1d192b] mb-3",children:"ש×××ª× ×ת ×ס×ס××?"}),e.jsx("p",{className:"text-[#49454f]",children:"×××× × ×ת ×ת××ת ××××××× ×× ×©×× ×§×ש×ר ×××פ×ס"})]}),d&&e.jsx("div",{className:"bg-red-50 text-red-600 px-4 py-3 rounded-[16px] mb-6 text-center border border-red-100",children:d}),e.jsxs("form",{onSubmit:f,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"block text-sm text-[#49454f] mb-1.5",children:"××××××"}),e.jsx("input",{id:"email",type:"email",inputMode:"email",autoComplete:"email",dir:"ltr",value:a,onChange:l=>m(l.target.value),className:"w-full px-4 py-3 rounded-[16px] bg-white border-2 border-[#e7e0ec] text-[#1d192b] focus:border-[#6750a4] focus:outline-none transition-colors text-right",placeholder:"[email protected]",disabled:r,required:!0})]}),e.jsx("button",{type:"submit",disabled:r,className:"w-full flex items-center justify-center gap-2 px-6 py-4 rounded-[28px] bg-[#6750a4] text-white font-medium text-lg hover:bg-[#5a4593] transition-all duration-300 disabled:opacity-60 disabled:cursor-not-allowed",children:r?e.jsx("div",{className:"animate-spin w-5 h-5 border-2 border-white border-t-transparent roun
1ded-full"}):"ש××× ×× ×§×ש×ר ×××פ×ס"})]}),e.jsx("div",{className:"text-center mt-6",children:e.jsx(s,{to:"/auth/signin",className:"text-[#6750a4] text-sm hover:underline",children:"×××¨× ××ת××ר×ת"})})]}),e.jsx("p",{className:"text-center text-[#49454f] mt-4",children:e.jsx(s,{to:"/",className:"hover:text-[#6750a4] transition-colors",children:"×××¨× ×××£ ×××ת"})})]})]})}export{y as default}; 2//# sourceMappingURL=ResetPasswordRequest-BoT5cdUt.js.map
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.