PageSourceSearch

https://www.sparkplus.co/assets/_layout.profile-C_eXlnp1.js

js sparkplus.co collected 2026-10-09 23:19:12 UTC 5,270 bytes, 1 lines download raw bytes

1import{f as m,aj as w,bw as a,r as j,t as g,l as d,b as y,j as e,L as c}from"./main-DVo7TV-T.js";import{u as b}from"./useSuspenseQuery-BlzlMH3q.js";import{r as v,a as k}from"./common-BaNrRYI0.js";import{Q as C}from"./QueryErrorBoundary-QXQ7Gqld.js";import"./useBaseQuery-Bpm8Upv-.js";function N(){const{apiQueryOptions:s,apiClient:n,memberApi:x}=m(),p=w(),{data:f}=b(a(s)),r=f.profileInfo,i=j.useRef(null),{mutate:h,isPending:E}=g({mutationFn:async t=>{const o=await v(t),l=new FormData;return l.append("file",o),await n.put(`${y.memberApiUrl}/user/profile-image`,l)},onSuccess:async()=>{try{await x.refreshToken(),await p.invalidateQueries({queryKey:a(s).queryKey})}catch(t){d.error("프로필 이미지 갱신 후 세션 동기화 실패:",t)}i.current&&(i.current.value="")},onError:t=>{console.error("이미지 업로드 실패:",t)}}),u=t=>{const o=t.target.files?.[0];o&&h(o)};return e.jsxs("div",{className:"bg-white flex flex-col items-center w-full gap-[32px]",children:[e.jsx("div",{className:"bg-white flex justify-center items-center w-full",children:e.jsxs("div",{className:"flex flex-col items-center gap-[12px]",children:[e.jsxs("div",{className:"relative w-[56px] h-[56px]",children:[e.jsx("div",{className:"absolute left-0 top-0 w-[56px] h-[56px] rounded-full overflow-hidden bg-[#E7E9EF]",children:r.profilePhotoAwsS3Url?e.jsx("img",{src:r.profilePhotoAwsS3Url,alt:r.userName,className:"block w-full h-full rounded-full object-cover object-center"}):e.jsxs("svg",{width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"block w-full h-full",children:[e.jsx("path",{d:"M28 56C43.464 56 56 43.464 56 28C56 12.536 43.464 0 28 0C12.536 0 0 12.536 0 28C0 43.464 12.536 56 28 56Z",fill:"#E7E9EF"}),e.jsx("path",{d:"M28 33.4198C33.4872 33.4198 37.9355 28.9715 37.9355 23.4843C37.9355 17.9971 33.4872 13.5488 28 13.5488C22.5128 13.5488 18.0645 17.9971 18.0645 23.4843C18.0645 28.9715 22.5128 33.4198 28 33.4198Z",fill:"#F6F7FA"}),e.jsx("path",{d:"M27.9997 36.1289C36.4872 36.1289 43.9215 40.6736 48.0964 47.4932C43.0076 52.7384 35.885 56 27.9997 56C20.1146 55.9999 12.9927 52.7382 7.90399 47.4932C12.0788 40.6738 19.5124 36.129 27.9997 36.1289Z",fill:"#F6F7FA"})]})}),e.jsx("input",{ref:i,type:"file",accept:"image/*",className:"hidden",onChange:u}),e.jsx("button",{type:"button",className:"absolute bottom-[-8px] right-[-8px] w-[28px] h-[28px] flex items-center justify-center cursor-pointer hover:opacity-80 transition-opacity","aria-label":"프로필 사진 수정",onClick:()=>i.current?.click(),children:e.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("circle",{cx:"14",cy:"14",r:"13",fill:"#6E7686",stroke:"white",strokeWidth:"2"}),e.jsx("path",{d:"M15.3125 9.42395L9.60459 15.1319C9.37885 15.3576 9.16926 15.7768 9.12089 16.0831L8.81453 18.2598C8.70166 19.0499 9.24989 19.5981 10.04 19.4853L12.2167 19.1789C12.523 19.1305 12.9584 18.921 13.168 18.6952L18.8759 12.9874C19.8594 12.0038 20.327 10.859 18.8759 9.40781C17.4408 7.97278 16.2961 8.44039 15.3125 9.42395Z",stroke:"white",strokeWidth:"1.2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M14.4902 10.2461C14.974 11.9875 16.3283 13.3418 18.0697 13.8256",stroke:"white",strokeWidth:"1.2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),e.jsxs("div",{className:"flex flex-col items-center justify-center gap-[2px]",children:[e.jsx("div",{className:"flex items-center gap-2",children:e.jsx("h2",{className:"text-body2 font-semibold text-black text-center",children:r.userName})}),e.jsx("p",{className:"text-body4 font-normal text-[#6E7686] text-center",children:k(r.userPhoneNumber)})]})]})}),e.jsxs("div",{className:"w-full rounded-[12px] border border-solid border-[#E7E9EF] flex flex-col overflow-hidden",children:[e.jsxs(c,{to:"/my/profile/identity-verification",className:"flex items-center justify-between px-[24px] py-[16px] border-b border-solid border-[#E7E9EF] cursor-pointer transition-colors hover:bg-[#f6f7fa]",children:[e.jsx("p",{className:"text-body3 font-medium text-[#535765]",children:"인증 정보 변경"}),e.jsx("div",{className:"relative shrink-0 w-4 h-4 flex items-center justify-center",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M6 12L10 8L6 4",stroke:"#A9AFBC",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e.jsxs(c,{to:"/my/profile/password",className:"flex items-center justify-between px-[24px] py-[16px] cursor-pointer transition-colors hover:bg-[#f6f7fa]",children:[e.jsx("p",{className:"text-body3 font-medium text-[#535765]",children:"비밀번호 변경"}),e.jsx("div",{className:"relative shrink-0 w-4 h-4 flex items-center justify-center",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M6 12L10 8L6 4",stroke:"#A9AFBC",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})]})}function P(){return e.jsx(C,{onError:(s,n)=>{d.error("Profile ErrorBoundary에서 에러 발생:",{error:s,errorInfo:n})},children:e.jsx(N,{})})}
1export{P 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.