PageSourceSearch

https://9oormthon.university/assets/UpdatePW-Cu8jtC-a.js

js 9oormthon.university collected 2026-10-09 01:43:39 UTC 3,224 bytes, 1 lines download raw bytes

1import{R as h,i as y,h as N,x as f,j as n,p as e,s as x,q as a,E as P,a0 as S,V as u}from"./index-BWvEU_Q7.js";import{p as c}from"./Input-DFUF9L2e.js";import{c as T}from"./Alert-CQ6VCnYw.js";import"./Input-BeDUo78A.js";import"./Fade-BFlyCT_Z.js";var E=function(r){return h.createElement(y,N({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},r),h.createElement("path",{d:"M8.28474 3.13064C8.54411 2.87372 8.54609 2.45519 8.28917 2.19583C8.03226 1.93646 7.61373 1.93448 7.35437 2.1914L2.03416 7.46142C1.73471 7.75804 1.73471 8.24196 2.03416 8.53858L7.35437 13.8086C7.61373 14.0655 8.03226 14.0635 8.28917 13.8042C8.54609 13.5448 8.54411 13.1263 8.28474 12.8694L3.98519 8.61037H13.5145C13.8796 8.61037 14.1755 8.31442 14.1755 7.94935C14.1755 7.58428 13.8796 7.28833 13.5145 7.28833H4.08745L8.28474 3.13064Z"}))};const G="_updatePWContainer_1mc27_1",B="_header_1mc27_29",b="_divider_1mc27_36",z="_contentContainer_1mc27_41",D="_inputGroup_1mc27_47",K="_title_1mc27_53",L="_titleText_1mc27_59",M="_confirmBtn_1mc27_63",t={updatePWContainer:G,header:B,divider:b,contentContainer:z,inputGroup:D,title:K,titleText:L,confirmBtn:M};function I(){const r=f(),[l,g]=n.useState(""),[o,j]=n.useState(""),[d,v]=n.useState(""),[m,_]=n.useState(null),p=async()=>{var s;if(o!==d){_("새 비밀번호와 확인 비밀번호가 일치하지 않습니다.");return}try{await S(l,o),r("/my-page"),u("비밀번호 변경이 완료되었습니다.",{type:"primary"})}catch(w){const C=(s=w.response.data.error)==null?void 0:s.message;u(C||"비밀번호 변경에 실패했습니다. 운영진에게 문의해주세요.",{type:"danger"})}},i=s=>{s.key==="Enter"&&p()};return e.jsxs("div",{className:t.updatePWContainer,children:[e.jsxs("div",{className:t.header,children:[e.jsx(x,{icon:E,color:"secondary",onClick:()=>r(-1)}),e.jsx(a,{typography:"heading3",color:"gray-900",children:"비밀번호 변경"})]}),e.jsx("hr",{className:t.divider}),e.jsxs("div",{className:t.contentContainer,children:[e.jsxs("div",{className:t.inputGroup,children:[e.jsxs("div",{className:t.title,children:[e.jsx(a,{className:t.titleText,children:"현재 비밀번호"}),e.jsx(a,{className:t.titleText,color:"red-500",children:"*"})]}),e.jsx(c,{bsSize:"lg",placeholder:"현재 비밀번호",type:"password",value:l,onChange:s=>g(s.target.value),onKeyDown:i})]}),e.jsxs("div",{className:t.inputGroup,children:[e.jsxs("div",{className:t.title,children:[e.jsx(a,{className:t.titleText,children:"새 비밀번호"}),e.jsx(a,{className:t.titleText,color:"red-500",children:"*"})]}),e.jsx(c,{bsSize:"lg",placeholder:"영문, 특수문자 조합 8자 이상",type:"password",value:o,onChange:s=>j(s.target.value),onKeyDown:i})]}),e.jsxs("div",{className:t.inputGroup,children:[e.jsxs("div",{className:t.title,children:[e.jsx(a,{className:t.titleText,children:"새 비밀번호 확인"}),e.jsx(a,{className:t.titleText,color:"red-500",children:"*"})]}),e.jsx(c,{bsSize:"lg",placeholder:"영문, 특수문자 조합 8자 이상",type:"password",value:d,onChange:s=>v(s.target.value),onKeyDown:i})]})]}),m&&e.jsx(T,{color:"danger",leftIcon:P,children:m}),e.jsx(x,{className:t.confirmBtn,size:"lg",onClick:p,children:"완료"})]})}export{I 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.