1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,789954,e=>{"use strict";var t=e.i(972525),l=e.i(462560),a=e.i(755758),s=e.i(816552),r=e.i(198558);function i(){let e=(0,s.useRouter)(),i=(0,s.useSearchParams)().get("callbackUrl")||"",[n,o]=(0,l.useState)(""),[c,u]=(0,l.useState)(""),[p,d]=(0,l.useState)(""),[h,g]=(0,l.useState)(!1),[m,x]=(0,l.useState)(""),[f,y]=(0,l.useState)(!1),j=async t=>{t.preventDefault(),x(""),y(!0);let l=await (0,a.signIn)("credentials",{email:n,password:c,code:p,rememberMe:h?"true":"false",redirect:!1});if(l?.error){y(!1),x("ì´ë©ì¼Â·ë¹ë°ë²í¸ ëë ì½ëê° ì¬ë°ë¥´ì§ ììµëë¤.");return}let s=i;if(!s)try{let e=await fetch("/api/auth/session").then(e=>e.json());s=e?.user?.role==="admin"?"/admin":"/mypage"}catch{s="/mypage"}e.push(s),e.refresh()},v=i?`/signup?callbackUrl=${encodeURIComponent(i)}`:"/signup";return(0,t.jsx)("div",{className:"login-page",children:(0,t.jsxs)("form",{className:"login-box",onSubmit:j,children:[(0,t.jsx)("div",{className:"login-title",children:"ë¡ê·¸ì¸"}),(0,t.jsx)("div",{className:"login-subtitle",children:"YOUNGSAM.NET"}),m&&(0,t.jsx)("div",{className:"login-error",children:m}),(0,t.jsx)("input",{className:"login-input",type:"email",placeholder:"ì´ë©ì¼",value:n,onChange:e=>o(e.target.value),required:!0}),(0,t.jsx)("input",{className:"login-input",type:"password",placeholder:"ë¹ë°ë²í¸",value:c,onChange:e=>u(e.target.value),required:!0}),(0,t.jsx)("input",{className:"login-input",type:"password",placeholder:"ê´ë¦¬ì ì½ë",value:p,onChange:e=>d(e.target.value),autoComplete:"off",inputMode:"numeric"}),(0,t.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:10,margin:"4px 0 16px",cursor:"pointer",userSelect:"none"},children:[(0,t.jsx)("input",{type:"checkbox",checked:h,onChange:e=>g(e.target.checked),style:{width:16,height:16,marginTop:2,cursor:"pointer",accentColor:"var(--color-primary)"}}),(0,t.jsxs)("span",{style:{flex:1},children:[(0,t.jsx)("span",{style:{fontSize:13.5,fontWeight:600,color:"var(--color-t1)",display:"block"},children:"ì´ ê¸°ê¸° 기ìµí기"}),(0,t.jsx)("span",{style:{fontSize:11.5,color:"var(--color-t3)",display:"block",marginTop:2},children:"ì²´í¬ ì ìë ë¡ê·¸ì¸ ì ì§ Â· ë¯¸ì²´í¬ ì ë¸ë¼ì°ì ì¢
ë£ ì ìë ë¡ê·¸ìì"})]})]}),(0,t.jsx)("button",{className:"login-btn",type:"submit",disabled:f,children:f?"ë¡ê·¸ì¸ ì¤...":"ë¡ê·¸ì¸"}),(0,t.jsxs)("div",{style:{textAlign:"center",marginTop:16,fontSize:13,color:"var(--color-t3)"},children:["ê³ì ì´ ìì¼ì ê°ì?"," ",(0,t.jsx)(r.default,{href:v,style:{color:"var(--color-primary)",fontWeight:600},children:"íìê°ì
"})]})]})})}e.s(["default",0,function(){return(0,t.jsx)(l.Suspense,{fallback:(0,t.jsx)("div",{className:"login-page"}),children:(0,t.jsx)(i,{})})}])}]);
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.