PageSourceSearch

https://www.ajaschool.com/_next/static/chunks/pages/instructor/mypage-7ff0acbbc6e6da23.js

js ajaschool.com collected 2026-09-24 13:38:32 UTC 5,022 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8263],{5645:(s,e,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/instructor/mypage",function(){return l(94797)}])},35592:s=>{s.exports={container:"styles_container__Qs_oe",header:"styles_header__rIGIe",title:"styles_title__i_vj3",content:"styles_content__KP9e9",section:"styles_section__QkVwS",sectionTitle:"styles_sectionTitle__Y_kMf",profileCard:"styles_profileCard__99wq1",profileInfo:"styles_profileInfo__n7Szz",avatar:"styles_avatar__ibWiZ",userInfo:"styles_userInfo__ucB_9",userName:"styles_userName__RndPC",userEmail:"styles_userEmail__qNloh",status:"styles_status__IpzyZ",loading:"styles_loading__WomMr",menuList:"styles_menuList__agacv",menuItem:"styles_menuItem__lLdC9",menuLabel:"styles_menuLabel__c65jz",menuArrow:"styles_menuArrow__qXBjT"}},94797:(s,e,l)=>{"use strict";l.r(e),l.d(e,{default:()=>p});var n=l(37876),r=l(14232),a=l(89099),t=l(77328),i=l.n(t),o=l(31777),c=l(89848),u=l(67082),d=l(66462),m=l(35592),_=l.n(m),h=l(89919),N=l(49693);let p=()=>{let s=(0,a.useRouter)(),e=(0,o.wA)(),l=(0,o.d4)(s=>s.auth.user),t=(0,o.d4)(s=>s.auth.instructorDocumentInfo),m=null==l?void 0:l.userId,[p,x]=(0,r.useState)(null),[j,v]=(0,r.useState)(!0);(0,r.useEffect)(()=>{(async()=>{if(!m)return v(!1);v(!0);try{let s=await u.InstructorProfileService.getProfile(m);if((0,N.vp)(s.code))x(s.result);else{if(s.code===N.h.HTTP_UNAUTHORIZED||(0,N.kG)(s.code))return void console.error("인증 오류 (axios 인터셉터에서 처리):",s.code);c.oR.error(s.message||"강사 정보를 불러오는데 실패했습니다.")}}catch(o){var s,e,l,n,r,a,t,i;if(console.error("강사 정보 조회 오류:",o),(null==(s=o.response)?void 0:s.status)===401||(0,N.kG)(null==(l=o.response)||null==(e=l.data)?void 0:e.code))return void console.error("인증 오류 (axios 인터셉터에서 처리):",(null==(a=o.response)?void 0:a.status)||(null==(i=o.response)||null==(t=i.data)?void 0:t.code));c.oR.error((null==(r=o.response)||null==(n=r.data)?void 0:n.message)||"강사 정보를 불러오는데 실패했습니다.")}finally{v(!1)}})()},[m,s,e]);let f=async()=>{if(confirm("로그아웃 하시겠습니까?"))try{await d.DL.logoutUser(!1,e,{showToast:!0}),c.oR.success("로그아웃되었습니다."),s.push("/instructor/user/login")}catch(e){console.error("로그아웃 중 오류 발생:",e),s.push("/instructor/user/login")}};return j?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i(),{children:(0,n.jsx)("title",{children:"마이페이지"})}),(0,n.jsx)("div",{className:_().container,children:(0,n.jsx)("div",{className:_().loading,children:"로딩 중..."})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i(),{children:(0,n.jsx)("title",{children:"마이페이지"})}),(0,n.jsx)("div",{className:_().container,children:(0,n.jsxs)("div",{className:_().content,children:[(0,n.jsx)("div",{className:_().section,children:(0,n.jsx)("div",{className:_().profileCard,children:(0,n.jsx)("div",{className:_().profileInfo,children:(0,n.jsxs)("div",{className:_().userInfo,children:[(0,n.jsxs)("p",{className:_().userName,children:[(null==p?void 0:p.name)||(null==l?void 0:l.name)||"강사 이름"," 님"]}),(0,n.jsx)("p",{className:_().userEmail,children:(null==p?void 0:p.email)||(null==l?void 0:l.loginId)||"[email protected]"}),(null==p?void 0:p.status)&&(0,n.jsxs)("p",{className:_().status,children:["상태:"," ","APPROVED"===p.status?"승인됨":"PENDING"===p.status?"대기 중":"REJECTED"===p.status?"거부됨":"알 수 없음"]})]})})})}),(0,n.jsxs)("div",{className:_().section,children:[(0,n.jsx)("h2",{className:_().sectionTitle,children:"설정"}),(0,n.jsxs)("div",{className:_().menuList,children:[(0,n.jsxs)("button",{className:_().menuItem,onClick:()=>{if(!m)return void c.oR.error("강사 정보를 찾을 수 없습니다.");s.push("/instructor/user/verify-password")},children:[(0,n.jsx)("span",{className:_().menuLabel,children:"프로필 수정"}),(0,n.jsx)("span",{className:_().menuArrow,children:"›"})]}),(0,n.jsxs)("button",{className:_().menuItem,onClick:()=>{(null==t?void 0:t.idCardImageUrl)||(null==t?void 0:t.bankbookImageUrl)?s.push("/instru
1ctor/user/verify-password?redirect=upload-documents"):s.push("/instructor/user/upload-documents")},children:[(0,n.jsx)("span",{className:_().menuLabel,children:"문서 관리"}),(0,n.jsx)("span",{className:_().menuArrow,children:"›"})]}),(0,n.jsxs)("button",{className:_().menuItem,disabled:!0,children:[(0,n.jsx)("span",{className:_().menuLabel,children:"알림 설정"}),(0,n.jsx)("span",{className:_().menuArrow,children:"›"})]})]})]}),(0,n.jsxs)("div",{className:_().section,children:[(0,n.jsx)("h2",{className:_().sectionTitle,children:"계정"}),(0,n.jsx)("div",{className:_().menuList,children:(0,n.jsxs)("button",{className:_().menuItem,onClick:f,children:[(0,n.jsx)("span",{className:_().menuLabel,children:"로그아웃"}),(0,n.jsx)("span",{className:_().menuArrow,children:"›"})]})})]})]})}),(0,n.jsx)(h.A,{})]})}}},s=>{s.O(0,[7082,636,6593,8792],()=>s(s.s=5645)),_N_E=s.O()}]);

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.