PageSourceSearch

https://tilnote.io/_next/static/chunks/pages/home/users/[userId]-1ace71d3ec35092d.js

js tilnote.io collected 2026-09-24 09:35:00 UTC 21,759 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[557,1434],{49395:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>q,default:()=>H});var a=s(37876),i=s(16684),l=s(89099),n=s(14232),r=s(36438),o=s(796),c=s(32937),d=s(52563),h=s(97384),x=s(42922),m=s(6165),p=s(18042),u=s(17455),g=s(91434),j=s(89595),f=s(77328),b=s.n(f),A=s(51477),w=s(71741),v=s(11141),y=s(70618),k=s(68639),C=s(30682),S=s(54587),N=s.n(S);let P=/^https:\/\/(www\.)?threads\.(net|com)(\/|$)/,W=({socialProfile:e,socialProfileSetting:t,setSocialProfileSetting:s,dispatch:i,commonActions:l})=>{let[o,c]=(0,n.useState)({website:"",github:"",twitter:"",youtube:"",facebook:"",instagram:"",threads:"",toss:"",kakao:""});return(0,n.useEffect)(()=>{if(e){let t={...e};for(let e in t)(null===t[e]||!1===t[e]||void 0===t[e])&&(t[e]="");c(e=>({...e,...t}))}},[e]),(0,a.jsx)("div",{children:!0===t&&(0,a.jsxs)("div",{className:"white-space-line ml-10",children:[(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("div",{className:"mr-10 flex-a-center",children:(0,a.jsx)(A.A,{})}),(0,a.jsx)("input",{type:"text",className:"pp-5 w-100",placeholder:"웹사이트",onChange:e=>c(t=>({...t,website:e.target.value})),value:o.website})]}),(0,a.jsxs)("div",{className:"flex mt-10",children:[(0,a.jsx)("div",{className:"mr-10 flex-a-center",children:(0,a.jsx)(w.A,{})}),(0,a.jsx)("input",{type:"text",className:"pp-5 w-100",placeholder:"깃허브",onChange:e=>c(t=>({...t,github:e.target.value})),value:o.github})]}),(0,a.jsxs)("div",{className:"flex mt-10",children:[(0,a.jsx)("div",{className:"mr-10 flex-a-center",children:(0,a.jsx)(v.A,{})}),(0,a.jsx)("input",{type:"text",className:"pp-5 w-100",placeholder:"트위터",onChange:e=>c(t=>({...t,twitter:e.target.value})),value:o.twitter})]}),(0,a.jsxs)("div",{className:"flex mt-10",children:[(0,a.jsx)("div",{className:"mr-10 flex-a-center",children:(0,a.jsx)(k.A,{})}),(0,a.jsx)("input",{type:"text",className:"pp-5 w-100",placeholder:"유튜브",onChange:e=>c(t=>({...t,youtube:e.target.value})),value:o.youtube})]}),(0,a.jsxs)("div",{className:"flex mt-10",children:[(0,a.jsx)("div",{className:"mr-10 flex-a-center",children:(0,a.jsx)(y.A,{})}),(0,a.jsx)("input",{type:"text",className:"pp-5 w-100",placeholder:"페이스북",onChange:e=>c(t=>({...t,facebook:e.target.value})),value:o.facebook})]}),(0,a.jsxs)("div",{className:"flex mt-10",children:[(0,a.jsx)("div",{className:"mr-10 flex-a-center",children:(0,a.jsx)(C.A,{})}),(0,a.jsx)("input",{type:"text",className:"pp-5 w-100",placeholder:"인스타그램",onChange:e=>c(t=>({...t,instagram:e.target.value})),value:o.instagram})]}),(0,a.jsxs)("div",{className:"flex mt-10",children:[(0,a.jsx)("div",{className:"mr-10 flex-a-center",children:(0,a.jsx)(N(),{src:"/images/threads.svg",alt:"Threads",width:30,height:30,style:{width:"30px",height:"30px"}})}),(0,a.jsx)("input",{type:"text",className:"pp-5 w-100",placeholder:"Threads 주소 (https://threads.net/@yourid 또는 https://threads.com/@yourid)",onChange:e=>c(t=>({...t,threads:e.target.value})),value:o.threads})]}),(0,a.jsxs)("div",{className:"flex mt-10",children:[(0,a.jsx)("div",{className:"mr-10 flex-a-center",children:(0,a.jsx)(N(),{src:"/images/kakao-openchat.png",alt:"Kakao Open Chat",width:30,height:30,style:{width:"30px",height:"30px"}})}),(0,a.jsx)("input",{type:"text",className:"pp-5 w-100",placeholder:"카카오톡 오픈챗 (또는 단톡방) 주소 (https://open.kakao.com/o/yourid)",onChange:e=>c(t=>({...t,kakao:e.target.value})),value:o.kakao})]}),(0,a.jsx)("div",{className:"flex-justify-end mt-10 mb-10",children:(0,a.jsx)(p.A,{variant:"contained",className:"p-10",style:{width:"150px"},onClick:()=>{(()=>{for(let e of Object.keys(o))if(""!==o[e]){if("website"===e&&!o[e].startsWith("http://")&&!o[e].startsWith("https://")&&!o[e].startsWith("https://www.")&&!o[e].startsWith("http://www."))return void alert("http를 포함한 웹사이트 주소를 입력해주세요");if("github"===e&&!o[e].startsWith("https://github.com/")&&!o[e].startsWith("https://www.github.com/"))return void alert("github 주소를 입력해주세요");if("twitter"===e&&!o[e].startsWith("https://twitter.com")&&!o[e].startsWith("https://www.twitter.com")&&!o[e].startsWith("https://x.com"))return void alert("twitter 주소를 입력해주세요");if("youtube"===e&&!o[e].startsWith("https://www.youtube.com/")&&!o[e].startsWith("https://youtube.com/"))return void alert("youtube 주소를 입력해주세요");if("facebook"===e&&!o[e].startsWith("https://www.facebook.com/")&&!o[e].startsWith("https://facebook.com/"))return void alert("facebook 주소를 입력해주세요");if("instagram"===e&&!o[e].startsWith("https://www.instagram.com/")&&!o[e].startsWith("https://instagram.com/"))return void alert("instagram 주소를 입력해주세요");if("threads"===e&&!P.test(o[e]))return void alert("threads 주소를 입력해주세요");if("toss"===e&&!o[e].startsWith("https://toss.me/"))return void alert("toss 주소를 입력해주세요");if("kakao"===e&&!o[e].startsWith("https://open.kakao.com/o/"))return void alert("카카오톡 주소를 입력해주세요")}r.A.put("/users/social-profile",{profile:o}).then(e=>{i(l.setFlash({message:"소셜 정보가 추가되었습니다.",type:"success",timestamp:+new Date})),s(!1)}).catch(e=>{s(!1)})})()},children:"저장"})})]})})};var F=s(49747);let D=function({notification:e,dispatch:t,commonActions:s,setNotificationModal:i}
1){let[l,o]=n.useState(!1);(0,n.useEffect)(()=>{e?o(e):o({email:!0,comment:!0,advertisement:!1})},[e]);let c=e=>{o({...l,[e.target.name]:e.target.checked})};return l?(0,a.jsxs)("div",{className:"p-10",style:{width:"70%"},children:[(0,a.jsxs)("div",{className:"flex-between mb-20",children:[(0,a.jsx)("div",{className:"mr-10",children:"댓글 알림"}),(0,a.jsx)(F.A,{checked:l.comment,onChange:c,name:"comment"})]}),(0,a.jsxs)("div",{className:"flex-between mt-10 mb-20",children:[(0,a.jsx)("div",{className:"mr-10",children:(0,a.jsx)("div",{children:"이메일 구독 알림"})}),(0,a.jsx)(F.A,{checked:l.email,onChange:c,name:"email"})]}),(0,a.jsxs)("div",{className:"flex-a-center",style:{justifyContent:"flex-end"},children:[(0,a.jsx)("div",{className:"mr-10",children:(0,a.jsx)(p.A,{variant:"outlined",onClick:()=>{i(!1)},children:"취소"})}),(0,a.jsx)(p.A,{variant:"contained",color:"primary",onClick:()=>{r.A.put("/messages/setting/notification",{notification:l}).then(e=>{t(s.setFlash({message:"알림 설정을 저장했습니다.",type:"success",timestamp:+new Date}))}).catch(e=>{console.warn(e)})},children:"알림 저장"})]})]}):null};var E=s(42722),T=s(46358),_=s(31777),I=s(96599),$=s(847),z=s(33674),B=s(69365),R=s(58644),U=s(70489);let L=({title:e,children:t,sx:s={}})=>(0,a.jsxs)(o.A,{sx:{mb:3,borderRadius:3,boxShadow:"0 2px 12px rgba(0,0,0,0.08)",border:"1px solid",borderColor:"grey.100",...s},children:[e&&(0,a.jsx)(c.A,{sx:{px:3,py:2,borderBottom:"1px solid",borderColor:"grey.100"},children:(0,a.jsx)(d.A,{variant:"subtitle1",fontWeight:600,color:"text.primary",children:e})}),(0,a.jsx)(h.A,{sx:{p:0},children:t})]}),M=({label:e,value:t,onClick:s,action:i,secondary:l,noBorder:n=!1})=>(0,a.jsxs)(c.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:3,py:2.5,borderBottom:n?"none":"1px solid",borderColor:"grey.50",cursor:s?"pointer":"default",transition:"background-color 0.2s","&:hover":s?{backgroundColor:"grey.50"}:{}},onClick:s,children:[(0,a.jsxs)(c.A,{sx:{flex:1},children:[(0,a.jsx)(d.A,{variant:"body1",color:"text.primary",fontWeight:500,children:e}),l&&(0,a.jsx)(d.A,{variant:"caption",color:"text.secondary",children:l})]}),(0,a.jsxs)(c.A,{sx:{display:"flex",alignItems:"center",gap:1,color:"grey.600"},children:[t&&(0,a.jsx)(d.A,{variant:"body2",color:"text.secondary",children:t}),i,s&&!i&&(0,a.jsx)(B.A,{sx:{color:"grey.400"}})]})]});function O(e){let t=Number(e||0);return!Number.isFinite(t)||t<=0?"0":t>=1e8?`${K(t/1e8)}억`:t>=1e4?`${K(t/1e4)}만`:Math.round(t).toLocaleString("ko-KR")}function K(e){let t=e>=100?0:1;return Number(e.toFixed(t)).toLocaleString("ko-KR")}function X(e){switch(e?.monthlyUsageStatus){case"comfortable":return{label:"여유",sx:{bgcolor:"#ECFDF3",color:"#027A48"}};case"active":return{label:"사용 중",sx:{bgcolor:"#EFF6FF",color:"#1D4ED8"}};case"near_limit":return{label:"임박",sx:{bgcolor:"#FFF7ED",color:"#C2410C"}};case"limit_reached":return{label:"도달",sx:{bgcolor:"#FEF2F2",color:"#B91C1C"}};default:return{label:"확인",sx:{bgcolor:"primary.50",color:"primary.main"}}}}var q=!0;let H=()=>{let{t:e}=(0,$.Bd)(["common","settingsPage"]),t=(0,l.useRouter)(),s=t.query.userId,[o,h]=(0,n.useState)(!1),[f,A]=(0,n.useState)(!1),[w,v]=(0,n.use
1State)(!1),[y,k]=(0,n.useState)(""),[C,S]=(0,n.useState)(""),[N,P]=(0,n.useState)(!1),[F,B]=(0,n.useState)(""),[K,q]=(0,n.useState)(!1),[H,G]=(0,n.useState)(!1),[J,Q]=(0,n.useState)(!1),[V,Y]=(0,n.useState)("name"),[Z,ee]=(0,n.useState)(!1),[et,es]=(0,n.useState)({text:"",link:""}),[ea,ei]=(0,n.useState)(null),[el,en]=(0,n.useState)(!0),[er,eo]=(0,n.useState)(""),[ec,ed]=(0,n.useState)(!1),eh=function(e){if(!e)return!1;if("limit_reached"===e.monthlyUsageStatus)return!0;let t=Number(e.monthlyWeightedTokensUsed??e.monthlyTokensUsed??e.weightedTokensUsed??e.tokensUsed??0),s=Number(e.effectiveMonthlyTokenCap??e.monthlyTokenCap??-1);return -1!==s&&t>=s}(ea),ex=ea?.membershipType==="pro"?"/membership/register?upgrade=1&source=home-ai-token-limit":"/membership?reason=ai-limit",em=(0,_.wA)();(0,n.useEffect)(()=>{window.localStorage.wuser||(window.location.href="/")},[]),(0,n.useEffect)(()=>{s&&!o&&(r.A.get(`/users/${s}`).then(e=>{h(e.data.data),Y(e.data.data.name),e.data.data.description&&B(e.data.data.description)}).catch(e=>{}),r.A.get(`/advertisements/${s}`).then(e=>{e.data.customAd&&es(e.data.customAd)}).catch(e=>{}),r.A.get("/profiles/prompt").then(e=>{e.data?.success&&eo(e.data.prompt||"")}).catch(()=>{}))},[s,o]),(0,n.useEffect)(()=>{r.A.get("/ai/usage").then(e=>{e.data?.success&&ei(e.data.usage)}).catch(()=>{}).finally(()=>en(!1))},[]);let ep=async()=>{await r.A.post("/users/logout",{}),(0,I.L0)(),window.location="/"};return(0,a.jsxs)("div",{children:[(0,a.jsx)(b(),{children:(0,a.jsx)("title",{children:"내 설정"})}),(0,a.jsx)(i.A,{}),o?(0,a.jsxs)(c.A,{sx:{maxWidth:680,mx:"auto",px:2,py:4},children:[(0,a.jsxs)(L,{children:[(0,a.jsxs)(c.A,{sx:{display:"flex",alignItems:"center",gap:3,p:3,borderBottom:"1px solid",borderColor:"grey.100"},children:[(0,a.jsxs)(c.A,{sx:{position:"relative"},children:[o.image?(0,a.jsx)(j.A,{alt:V,src:(0,I.Uc)(o.image),sx:{width:80,height:80}}):(0,a.jsx)(j.A,{...(0,I.nj)(V),sx:{...(0,I.nj)(V).sx,width:80,height:80,fontSize:32}}),(0,a.jsx)("input",{accept:"image/*",id:"profile-photo-upload",type:"file",style:{display:"none"},onChange:t=>{let s=t.target.files[0],a=new FormData;a.append("image",s),r.A.put("/users/images",a).then(t=>{h(e=>({...e,image:t.data.data})),S(e("settingsPage:profilePhotoChangeSuccess")),window.location.reload()}).catch(t=>{S(e("settingsPage:profilePhotoChangeError"))})}}),(0,a.jsx)("label",{htmlFor:"profile-photo-upload",children:(0,a.jsx)(x.A,{component:"span",size:"small",sx:{position:"absolute",bottom:-4,right:-4,bgcolor:"white",border:"1px solid",borderColor:"grey.200",boxShadow:1,"&:hover":{bgcolor:"grey.50"}},children:(0,a.jsx)(z.A,{sx:{fontSize:16}})})})]}),(0,a.jsxs)(c.A,{sx:{flex:1},children:[f?(0,a.jsxs)(c.A,{children:[(0,a.jsx)(m.A,{value:o.name,onChange:e=>{h(t=>({...t,name:e.target.value}))},size:"small",fullWidth:!0,sx:{mb:1}}),(0,a.jsxs)(c.A,{sx:{display:"flex",gap:1},children:[(0,a.jsx)(p.A,{variant:"contained",size:"small",onClick:()=>{""!==o.name&&o.name&&r.A.put("/users",{name:o.name}).then(()=>{localStorage.setItem("wname",o.name),location.reload()}).catch(t=>{t.response?.data?.error?em(T.setFlash({message:t.response.data.error,type:"warn",timestamp:+new Date})):em(T.setFlash({message:e("settingsPage:nameChangeError"),type:"warn",timestamp:+new Date}))})},children:"저장"}),(0,a.jsx)(p.A,{variant:"outlined",size:"small",onClick:()=>{A(!1),h(e=>({...e,name:V}))},children:"취소"})]})]}):(0,a.jsxs)(c.A,{sx:{display:"flex",alignItems:"center",gap:1,cursor:"pointer"},onClick:()=>A(!0),children:[(0,a.jsx)(d.A,{variant:"h6",fontWeight:600,children:o.name}),(0,a.jsx)(z.A,{sx:{fontSize:18,color:"grey.400"}})]}),(0,a.jsx)(d.A,{variant:"body2",color:"text.secondary",children:o.email})]})]}),(0,a.jsxs)(c.A,{sx:{p:3},children:[(0,a.jsx)(d.A,{variant:"caption",color:"text.secondary",sx:{mb:1,display:"block"},children:"자기소개"}),N?(0,a.jsxs)(c.A,{children:[(0,a.jsx)(m.A,{value:F,onChange:e=>B(e.target.value),multiline:!0,minRows:3,fullWidth:!0,placeholder:"자기소개를 입력하세요",sx:{mb:2}}),(0,a.jsxs)(c.A,{sx:{display:"flex",justifyContent:"flex-end",gap:1},children:[(0,a.jsx)(p.A,{variant:"outlined",onClick:()=>P(!1),children:"취소"}),(0,a.jsx)(p.A,{variant:"contained",onClick:()=>{""!==F&&r.A.put("/users/description",{description:F}).then(t=>{P(!1),h(e=>({...e,description:F})),S(e("settingsPage:profileChangeSuccess"))}).catch(e=>{S(e.response?.data?.error[0]?.msg)})},children:"저장"})]})]}):(0,a.jsx)(c.A,{onClick:()=>P(!0),sx:{p:2,bgcolor:"grey.50",borderRadius:2,cursor:"pointer","&:hover":{bgcolor:"grey.100"}},children:(0,a.jsx)(d.A,{variant:"body2",color:o.description?"text.primary":"text.secondary",sx:{whiteSpace:"pre-line"},children:o.description||"자기소개를 입력하세요"})})]})]}),(0,a.jsxs)(L,{title:"블로그 & AI",children:[o.blog?(0,a.jsx)(M,{label:e("settingsPage:myBlog"),value:`@${o.blog}`,onClick:()=>t.push(`/@${o.blog}`),action:(0,a.jsx)(p.A,{size:"small",onClick:e=>{e.stopPropagation(),t.push(`/blogs/edit/?blogName=${o.blog}`)},children:"수정"})}):(0,a.jsx)(M,{label:"내 블로그",value:"블로그 만들기",onClick:()=>t.push("/blogs/make")}),(0,a.jsx)(M,{label:"AI 토큰 현황",value:el?"불러오는 중...":ea?function(e){if(!e)return"-";let t=e.monthlyWeightedTokensUsed??e.monthlyTokensUsed??e.weightedTokensUsed??e.tokensUsed??0,s=e.effectiveMonthlyTokenCap??e.monthlyTokenCap??-1,a=e?.usageResetDate?` \xb7 초기화 ${e.usageResetDate}`:"";return e.unlimited||-1===s?`이번 주기 ${O(t)} 토큰 \xb7 한도 없음${a}`:`이번 주기 ${O(t)}/${O(s)} 토큰${a}`}(ea):"-",action:ea?(0,a.jsxs)(c.A,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,a.jsx)(u.A,{label:X(ea).label,size:"small",sx:X(ea).sx}),eh&&(0,a.jsx)(p.A,{href:ex,size:"small",variant:"outlined",color:"error",sx:{minWidth:0,px:1.25,py:.25,fontSize:"0.75rem",lineHeight:1.5},children:"충전"})]}):null}),(0,a.jsxs)(c.A,{sx:{px:3,py:2.5},children:[(0,a.jsxs)(c.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",mb:1},children:[(0,a.jsxs)(c.A,{children:[(0,a.jsx)(d.A,{variant:"body1",fontWeight:500,children:"AI 프롬프트 프로필"}),(0,a.jsx)(d.A,{variant:"caption",color:"text.secondary",children:"AI가 글을 생성할 때 참고할 나의 프로필"})]}),!ec&&(0,a.jsx)(p.A,{size:"small",onClick:()=>ed(!0),children:er?"수정":"설정"})]}),ec?(0,a.jsxs)(c.A,{sx:{mt:2}
1,children:[(0,a.jsx)(m.A,{value:er,onChange:e=>eo(e.target.value),multiline:!0,minRows:3,placeholder:"예: 나는 개발자이며, 친근하고 간결한 문체를 선호합니다.",fullWidth:!0,sx:{mb:2}}),(0,a.jsxs)(c.A,{sx:{display:"flex",justifyContent:"flex-end",gap:1},children:[(0,a.jsx)(p.A,{variant:"outlined",onClick:()=>ed(!1),children:"취소"}),(0,a.jsx)(p.A,{variant:"contained",onClick:()=>{r.A.put("/profiles/prompt",{prompt:er||""}).then(e=>{e.data?.success&&eo(e.data.prompt||""),ed(!1),em(T.setFlash({message:"프롬프트 프로필이 저장되었습니다.",type:"success",timestamp:+new Date}))}).catch(()=>{em(T.setFlash({message:"프롬프트 프로필 저장에 실패했습니다.",type:"warn",timestamp:+new Date}))})},children:"저장"})]})]}):er?(0,a.jsx)(c.A,{sx:{mt:1,p:2,bgcolor:"grey.50",borderRadius:2},children:(0,a.jsx)(d.A,{variant:"body2",color:"text.secondary",sx:{whiteSpace:"pre-line"},children:er})}):null]})]}),(0,a.jsxs)(L,{title:"계정 설정",children:[(0,a.jsx)(M,{label:e("settingsPage:statistics"),value:"게시글 별 조회수",onClick:()=>t.push("/home/notes?stastics=true")}),(0,a.jsxs)(c.A,{sx:{px:3,py:2.5,borderBottom:"1px solid",borderColor:"grey.50"},children:[(0,a.jsxs)(c.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,a.jsx)(d.A,{variant:"body1",fontWeight:500,children:e("settingsPage:password")}),!w&&(0,a.jsx)(p.A,{size:"small",onClick:()=>v(!0),children:"변경"})]}),w&&(0,a.jsxs)(c.A,{sx:{mt:2},children:[(0,a.jsx)(m.A,{type:"password",placeholder:e("settingsPage:newPassword"),value:y,onChange:e=>k(e.target.value),size:"small",fullWidth:!0,sx:{mb:2}}),(0,a.jsxs)(c.A,{sx:{display:"flex",justifyContent:"flex-end",gap:1},children:[(0,a.jsx)(p.A,{variant:"outlined",onClick:()=>v(!1),children:"취소"}),(0,a.jsx)(p.A,{variant:"contained",onClick:()=>{""!==y&&r.A.put("/users/password",{password:y}).then(t=>{k(""),v(!1),em(T.setFlash({message:e("settingsPage:passwordChangeSuccess"),type:"success",timestamp:+new Date}))}).catch(t=>{em(T.setFlash({message:e("settingsPage:passwordChangeError"),type:"warn",timestamp:+new Date}))})},children:"변경"})]})]})]}),(0,a.jsx)(M,{label:e("settingsPage:languageSettings"),action:(0,a.jsx)(E.A,{})}),(0,a.jsx)(M,{label:"Tilnote API",value:"API 키 관리",onClick:()=>t.push("/tilnote-api"),noBorder:!0})]}),(0,a.jsxs)(L,{title:"개인화",children:[(0,a.jsx)(M,{label:e("settingsPage:socialLinks"),value:"소셜 정보 관리",onClick:()=>G(!0)}),H&&(0,a.jsx)(c.A,{sx:{px:3,pb:3},children:(0,a.jsx)(W,{socialProfile:o.socialProfile,socialProfileSetting:H,setSocialProfileSetting:G,dispatch:em,commonActions:T})}),(0,a.jsx)(M,{label:e("settingsPage:notificationSettings"),value:"알림 설정",onClick:()=>Q(!0),noBorder:!J}),J&&(0,a.jsx)(c.A,{sx:{px:3,pb:3},children:(0,a.jsx)(D,{notification:o.notification,setNotificationModal:Q,dispatch:em,commonActions:T})})]}),(0,a.jsxs)(L,{title:"광고 설정",children:[(0,a.jsx)(M,{label:e("settingsPage:visitorAdSettings"),value:e("settingsPage:hideBlogAds"),onClick:()=>t.push("/home/users/ad-preferences")}),(0,a.jsx)(M,{label:e("settingsPage:tailAd"),value:"하단 광고 문구",onClick:()=>ee(!0),noBorder:!Z}),Z&&(0,a.jsxs)(c.A,{sx:{px:3,pb:3},children:[(0,a.jsx)(m.A,{placeholder:e("settingsPage:adText"),onChange:e=>es(t=>({...t,text:e.target.value})),value:et.text,multiline:!0,rows:3,fullWidth:!0,sx:{mb:2}}),(0,a.jsx)(m.A,{placeholder:e("settingsPage:adLink"),onChange:e=>es(t=>({...t,link:e.target.value})),value:et.link,fullWidth:!0,sx:{mb:2}}),(0,a.jsxs)(c.A,{sx:{display:"flex",justifyContent:"space-between"},children:[(0,a.jsx)(p.A,{variant:"outlined",color:"error",onClick:()=>{r.A.delete(`/profiles/customad/${s}`).then(t=>{em(T.setFlash({message:e("settingsPage:customAdDeleteSuccess"),type:"success",timestamp:+new Date})),ee(!1)}).catch(t=>{em(T.setFlash({message:e("settingsPage:customAdDeleteError"),type:"warn",timestamp:+new Date}))})},startIcon:(0,a.jsx)(U.A,{}),children:"삭제"}),(0,a.jsxs)(c.A,{sx:{display:"flex",gap:1},children:[(0,a.jsx)(p.A,{variant:"outlined",onClick:()=>ee(!1),children:"취소"}),(0,a.jsx)(p.A,{variant:"contained",onClick:()=>{""===et.text||""===et.link||(function(e){try{return new URL(e),!0}catch{return!1}}(et.link)?r.A.post("/profiles/customad",et).then(t=>{em(T.setFlash({message:e("settingsPage:customAdSaveSuccess"),type:"success",timestamp:+new Date})),ee(!1)}).catch(t=>{em(T.setFlash({message:e("settingsPage:customAdSaveError"),type:"warn",timestamp:+new Date}))}):em(T.setFlash({message:"https:// 를 포함한 유효한 링크를 입력해주세요.",type:"warn",timestamp:+new Date})))},children:"저장"})]})]})]})]}),(0,a.jsxs)(L,{children:[(0,a.jsx)(M,{label:"로그아웃",onClick:ep,action:(0,a.jsx)(R.A,{sx:{color:"grey.500"}})}),(0,a.jsx)(M,{label:e("settingsPage:deleteAccount"),onClick:()=>
1q(!0),action:(0,a.jsx)(U.A,{sx:{color:"error.main"}}),noBorder:!0})]}),C&&(0,a.jsx)(c.A,{sx:{mt:2,p:2,bgcolor:"success.50",borderRadius:2},children:(0,a.jsx)(d.A,{color:"success.main",children:C})}),K&&(0,a.jsx)(g.default,{handleOpen:q,open:K,title:e("settingsPage:deleteConfirmTitle"),message:e("settingsPage:deleteConfirmMessage"),confirmed:()=>{r.A.delete("/users").then(async e=>{await r.A.post("/users/logout",{}),(0,I.L0)(),window.location="/"}).catch(e=>{})}})]}):null]})}},55890:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/home/users/[userId]",function(){return s(49395)}])},91434:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>d});var a=s(37876);s(14232);var i=s(32937),l=s(18042),n=s(52563),r=s(44997),o=s(847);let c={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:360,bgcolor:"background.paper",border:"2px solid #000",boxShadow:24,p:4},d=({title:e,message:t,open:s,handleOpen:d,confirmed:h,isButton:x=!0,loading:m=!1,loadingText:p=null})=>{let{t:u}=(0,o.Bd)("common");return(0,a.jsx)(r.A,{open:s,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",onClose:()=>d(!1),disableScrollLock:!0,children:(0,a.jsxs)(i.A,{sx:c,children:[(0,a.jsx)(n.A,{id:"modal-modal-title",variant:"h6",component:"h2",children:e}),(0,a.jsx)(n.A,{id:"modal-modal-description",sx:{mt:2}}),(0,a.jsx)("div",{style:{wordBreak:"break-all",overFlowWrap:"break-word",whiteSpace:"pre-wrap"},children:t}),x&&(0,a.jsxs)("div",{className:"flex-between mt-30",children:[(0,a.jsx)(l.A,{onClick:()=>d(!1),variant:"outlined",children:u("cancel")}),(0,a.jsx)(l.A,{onClick:h,variant:"contained",disabled:m,children:m?p||u("processing"):u("confirm")})]})]})})}}},e=>{e.O(0,[8230,8384,4997,4587,8212,304,2289,7559,1494,6165,7455,7012,5870,807,6684,636,6593,8792],()=>e(e.s=55890)),_N_E=e.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.