1import{e as u,r as a,j as e,L as o,s as p}from"./index-JjAY8Vrb.js";function f(){const{email:n}=u.useSearch(),[s,i]=a.useState(n??""),[r,l]=a.useState(!1),[d,c]=a.useState(!1);async function m(t){t.preventDefault(),l(!0);const x=typeof window<"u"?window.location.origin:"";await p.auth.resetPasswordForEmail(s.trim().toLowerCase(),{redirectTo:`${x}/admin/reset-password`}),l(!1),c(!0)}return e.jsx("main",{className:"min-h-screen bg-background flex items-center px-5",style:{wordBreak:"keep-all"},children:e.jsxs("div",{className:"w-full max-w-sm mx-auto space-y-5",children:[e.jsx("div",{className:"text-center",children:e.jsx("h1",{className:"text-xl font-bold text-primary",children:"ë¹ë°ë²í¸ ì¬ì¤ì "})}),d?e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"rounded-xl p-5 space-y-2",style:{backgroundColor:"#F0F7FF"},children:[e.jsx("p",{className:"text-base font-bold text-primary",children:"ë©ì¼ì ë³´ëìµëë¤."}),e.jsxs("p",{className:"text-sm text-foreground",children:[e.jsx("span",{className:"font-semibold",children:s.trim().toLowerCase()})," 주ìë¡ ë¹ë°ë²í¸ ì¬ì¤ì ë§í¬ë¥¼ ë³´ëìµëë¤."]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"ë©ì¼ì´ ì¤ì§ ìì¼ë©´ ì¤í¸í¨ì íì¸í´ì£¼ì¸ì."}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"ë§í¬ë 1ìê° ëì ì í¨í©ëë¤."})]}),e.jsx(o,{to:"/admin/login",className:"flex w-full items-center justify-center rounded-xl font-semibold text-white",style:{backgroundColor:"#1A2D68",height:52},children:"ë¡ê·¸ì¸ íë©´ì¼ë¡"})]}):e.jsxs("form",{onSubmit:m,className:"space-y-5",children:[e.jsxs("p",{className:"text-sm text-muted-foreground",children:["ê°ì
íì ì´ë©ì¼ 주ì를 ì
ë ¥í´ì£¼ì¸ì.",e.jsx("br",{}),"ë¹ë°ë²í¸ë¥¼ ë¤ì ì¤ì í ì ìë ë§í¬ë¥¼ ë³´ë´ë립ëë¤."]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("label",{className:"text-sm font-medium text-foreground",children:"ì´ë©ì¼"}),e.jsx("input",{type:"email",required:!0,value:s,onChange:t=>i(t.target.value),placeholder:"ì´ë©ì¼ì ì
ë ¥íì¸ì",className:"w-full h-12 px-4 rounded-xl border border-border bg-card outline-none focus:border-primary"})]}),e.jsx("button",{type:"submit",disabled:r,className:"w-full rounded-xl font-semibold text-white disabled:opacity-60",style:{backgroundColor:"#1A2D68",height:52},children:r?"ë³´ë´ë ì¤...":"ì¬ì¤ì ë§í¬ ë°ê¸°"}),e.jsx("p",{className:"text-center",children:e.jsx(o,{to:"/admin/login",className:"text-sm underline",style:{color:"#2F78BC"},children:"ë¡ê·¸ì¸ íë©´ì¼ë¡ ëìê°ê¸°"})})]})]})})}export{f 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.