PageSourceSearch

https://outstanding.kr/_next/static/chunks/pages/share-board/post/edit/[id]-a27576849e9dadab.js

js outstanding.kr collected 2026-09-25 23:01:33 UTC 39,896 bytes, 7 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2080],{66954:function(e,t,s){"use strict";var r=s(74149),a=s(98526);t.Z=void 0;var l=a(s(67294)),n=(0,r(s(77035)).default)(l.createElement("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"}),"CloudUpload");t.Z=n},96545:function(e,t,s){"use strict";var r=s(74149),a=s(98526);t.Z=void 0;var l=a(s(67294)),n=(0,r(s(77035)).default)(l.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");t.Z=n},49754:function(e,t,s){"use strict";s.r(t);var r=s(8307),a=s(67294),l=s(34394),n=s(11163),i=s(45424),c=s(61383),o=s(51531),d=s(22621),m=s(26307),x=s(75072),u=s(53082),h=s(95311),b=s(44572),p=s(18894),g=s(52641),y=s(66954),j=s(53268),f=s(11259),N=s(20751),v=s(96545),w=s(64839),S=s(41737),Z=s(28386),O=s(85893);function P(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,r)}return s}function A(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?P(Object(s),!0).forEach(function(t){(0,r.Z)(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):P(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}let T=()=>(0,O.jsx)("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:(0,O.jsxs)("div",{className:"bg-white rounded-lg shadow-md p-8 text-center max-w-md w-full mx-4",children:[(0,O.jsx)("div",{className:"mb-4",children:(0,O.jsx)(p.Z,{className:"text-blue-500 text-4xl mx-auto animate-pulse"})}),(0,O.jsx)("p",{className:"text-lg font-medium text-gray-700",children:"로딩 중..."})]})}),k=()=>(0,O.jsx)("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:(0,O.jsxs)("div",{className:"bg-white rounded-lg shadow-md p-8 text-center max-w-md w-full mx-4",children:[(0,O.jsx)("h2",{className:"text-2xl font-bold text-gray-800 mb-4",children:"게시글을 찾을 수 없습니다"}),(0,O.jsx)("p",{className:"text-gray-600 mb-6",children:"삭제되었거나 수정 권한이 없는 게시글입니다."}),(0,O.jsx)(u.Z,{href:"/share-board",children:(0,O.jsx)("button",{className:"px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-md transition-colors",children:"게시판으로 돌아가기"})})]})}),C=({open:e,onClose:t,history:s})=>{let r=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let t=r.current;t&&(e?t.showModal():t.close())},[e]),(0,O.jsxs)("dialog",{ref:r,className:"bg-white rounded-lg shadow-xl max-w-2xl w-full p-0 backdrop:bg-black backdrop:bg-opacity-50",children:[(0,O.jsx)("header",{className:"bg-gray-50 px-6 py-4 border-b border-gray-200",children:(0,O.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:"수정 이력"})}),(0,O.jsxs)("div",{className:"p-6 max-h-96 overflow-y-auto",children:[(0,O.jsx)(l.nA,{condition:!!(s&&s.length>0),children:(0,O.jsx)("div",{className:"space-y-4",children:s?.map((e,t)=>O.jsxs("div",{className:"border-l-4 border-blue-200 pl-4 py-2",children:[O.jsxs("div",{className:"text-sm font-medium text-gray-700 mb-2",children:[b.WU.datetime(e.editedAt)," - ",e.editedBy]}),O.jsx("div",{className:"text-sm text-gray-600 mb-2",children:"변경사항:"}),O.jsx("ul",{className:"list-disc list-inside text-sm text-gray-600 space-y-1",children:e.changes.map((e,t)=>O.jsx("li",{children:e},t))})]},t))})}),(0,O.jsx)(l.nA,{condition:!!(!s||0===s.length),children:(0,O.jsx)("p",{className:"text-center text-gray-500 py-8",children:"수정 이력이 없습니다."})})]}),(0,O.jsx)("footer",{className:"bg-gray-50 px-6 py-4 border-t border-gray-200 flex justify-end",children:(0,O.jsx)("button",{onClick:t,className:"px-4 py-2 bg-gray-100 hover:bg-gray-200 text-gray-700 rounded-md transition-colors",children:"닫기"})})]})};t.default=(0,Z.y7)({useTailwind:!0})((0,m.U)((0,x.w)((0,d.p)(function(){let e=(0,n.useRouter)(),{id:t}=e.query,s=(0,i.lc)(e=>e.user.currentUserAtSession),[r]=(0,c.O2d)(),{0:d,1:m}=(0,a.useState)(null),{0:x,1:p}=(0,a.useState)(!0),{0:Z,1:P}=(0,a.useState)(!1),{0:E,1:_}=(0,a.useState)(!1),{0:z,1:M}=(0,a.useState)(!1),{0:L,1:R}=(0,a.useState)({title:"",content:"",companyName:"",businessNumber:"",tradeType:h.xy.SELL,pricePerShare:0,shareQuantity:0,visibility:h.ix.PUBLIC,tags:[],attachments:[],existingAttachments:[]}),{0:Q,1:I}=(0,a.useState)({}),{0:B,1:D}=(0,a.useState)(""),{0:U,1:H}=(0,a.useState)(!1),{0:$,1:F}=(0,a.useState)(null),{0:G,1:X}=(0,a.useState)("idle"),{0:V,1:q}=(0,a.useState)(null),J=(0,a.useRef)(null),W=(0,a.useRef)(""),K=(0,a.useRef)(""),Y=(0,a.useCallback)(()=>`share_board_edit_draft_${t}`,[t]),ee=(0,a.useCallback)(e=>{try{if(t){let s={title:e.title,content:e.content,companyName:e.companyName,businessNumber:e.businessNumber,tradeType:e.tradeType,pricePerShare:e.pricePerShare,shareQuantity:e.shareQuantity,visibility:e.visibility,tags:e.tags,timestamp:Date.now(),postId:parseInt(t)};localStorage.setItem(Y(),JSON.stringify(s)),F(new Date),X("saved")}}catch(e){console.error("자동 저장 실패:",e),X("error")}},[t,Y]),et=(0,a.useCallback)(()=>{try{if(t){let e=localStorage.getItem(Y());if(e){let s=JSON.parse(e);if(Date.now()-s.timestamp>864e5||s.postId!==parseInt(t))return localStorage.removeItem(Y()),null;return s}}}catch(e){console.error("저장된 초안 로드 실패:",e),localStorage.removeItem(Y())}return null},[t,Y]),es=(0,a.useCallback)(()=>{try{localStorage.removeItem(Y())}catch(e){console.error("초안 삭제 실패:",e)}},[Y]),er=(0,a.useCallback)(e=>{if(!(e.title.trim()||e.content.trim()||e.companyName.trim()))return!1;let t=JSON.stringify({title:e.title,content:e.content,companyName:e.companyName,businessNumber:e.businessNumber,tradeType:e.tradeType,pricePerShare:e.pricePerShare,shareQuantity:e.shareQuantity,visibility:e.visibility,tags:e.tags});
1return t!==K.current&&t!==W.current&&(W.current=t,!0)},[]),ea=(0,a.useCallback)(e=>{er(e)&&(X("saving"),H(!0),setTimeout(()=>{ee(e),H(!1)},500))},[er,ee]),el=(0,a.useCallback)(e=>{J.current&&clearTimeout(J.current),J.current=setTimeout(()=>{ea(e)},2e3)},[ea]),{data:en,loading:ei,error:ec}=(0,c.DAb)({variables:{postId:parseInt(t)||0},skip:!t||Array.isArray(t)});(0,a.useEffect)(()=>{if(!(!t||Array.isArray(t))){if(ei){p(!0);return}try{let e;if(ec||!en?.boardPostGet){console.error("게시글 로딩 오류:",ec),P(!0),p(!1);return}let t=en.boardPostGet;if(t.author?.id!==s?.uid){P(!0),p(!1);return}m(t);let r={title:t.title,content:t.content,companyName:t.companyName||"",businessNumber:t.businessNumber||"",tradeType:t.tradeType,pricePerShare:t.pricePerShare,shareQuantity:t.shareQuantity,visibility:t.visibility,tags:[]};K.current=JSON.stringify(r);let a=et();a?window.confirm("수정 중이던 게시글 초안이 있습니다. 복원하시겠습니까?\n\n아니오를 선택하면 초안이 삭제됩니다.")?(e={title:a.title,content:a.content,companyName:a.companyName,businessNumber:a.businessNumber,tradeType:a.tradeType,pricePerShare:a.pricePerShare,shareQuantity:a.shareQuantity,visibility:a.visibility,tags:a.tags,attachments:[],existingAttachments:[]},X("saved"),F(new Date(a.timestamp))):(es(),e=A(A({},r),{},{attachments:[],existingAttachments:[]})):e=A(A({},r),{},{attachments:[],existingAttachments:[]}),R(e),P(!1),p(!1)}catch(e){console.error("게시글 로딩 실패:",e),P(!0),p(!1)}}},[t,en,ei,ec,s,et,es]),(0,a.useEffect)(()=>{let e=setInterval(()=>{(L.title.trim()||L.content.trim()||L.companyName.trim())&&ea(L)},3e4);return()=>{clearInterval(e),J.current&&clearTimeout(J.current)}},[L,ea]),(0,a.useEffect)(()=>{(L.title.trim()||L.content.trim()||L.companyName.trim())&&el(L)},[L,el]),(0,a.useEffect)(()=>{let e=e=>{let t=L.title.trim()||L.content.trim()||L.companyName.trim(),s=JSON.stringify({title:L.title,content:L.content,companyName:L.companyName,businessNumber:L.businessNumber,tradeType:L.tradeType,pricePerShare:L.pricePerShare,shareQuantity:L.shareQuantity,visibility:L.visibility,tags:L.tags})!==K.current;if(t&&s)return e.preventDefault(),e.returnValue="수정 중인 내용이 있습니다. 페이지를 나가시겠습니까? (자동 저장된 내용은 유지됩니다)",e.returnValue};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[L]);let eo=(0,a.useMemo)(()=>b.l7.calculateTotalValue(L.pricePerShare,L.shareQuantity),[L.pricePerShare,L.shareQuantity]),ed=(0,a.useMemo)(()=>({article:!1,title:d?`${d.title} 수정 - 구주 거래 게시판`:"게시글 수정 - 구주 거래 게시판",description:"구주 거래 게시판 게시글을 수정합니다",image:"https://cdn.outstanding.kr/wp-content/uploads/2020/05/outstanding_logo_rect.png",pathname:e.asPath,author:"아웃스탠딩"}),[d,e.asPath]),em=(e,t)=>{R(s=>A(A({},s),{},{[e]:t})),Q[e]&&I(t=>A(A({},t),{},{[e]:""}))},ex=()=>{if(B.trim()&&!L.tags.includes(B.trim())){if(L.tags.length>=10){I(e=>A(A({},e),{},{tags:"태그는 최대 10개까지 등록할 수 있습니다."}));return}R(e=>A(A({},e),{},{tags:[...e.tags,B.trim()]})),D(""),I(e=>A(A({},e),{},{tags:""}))}},eu=e=>{R(t=>A(A({},t),{},{tags:t.tags.filter(t=>t!==e)}))},eh=e=>{R(t=>A(A({},t),{},{existingAttachments:t.existingAttachments.filter(t=>t.id!==e)}))},eb=()=>{let e={};return L.title.trim()?L.title.length>h.tR.TITLE_MAX_LENGTH&&(e.title=`제목은 ${h.tR.TITLE_MAX_LENGTH}자 이하여야 합니다.`):e.title="제목을 입력해주세요.",L.content.trim()?L.content.length>h.tR.CONTENT_MAX_LENGTH&&(e.content=`내용은 ${h.tR.CONTENT_MAX_LENGTH}자 이하여야 합니다.`):e.content="내용을 입력해주세요.",L.companyName.trim()||(e.companyName="회사명을 입력해주세요."),L.businessNumber&&!b.Uf.validateBusinessNumber(L.businessNumber)&&(e.businessNumber="올바른 사업자등록번호를 입력해주세요."),L.pricePerShare<=0&&(e.pricePerShare="주당 가격을 입력해주세요."),L.shareQuantity<=0&&(e.shareQuantity="수량을 입력해주세요."),I(e),0===Object.keys(e).length},ep=async(t=!1)=>
1{if((t||eb())&&d)try{M(!0);let{data:s}=await r({variables:{postId:d.id,title:L.title,content:L.content,companyName:L.companyName,businessNumber:L.businessNumber,tradeType:L.tradeType,pricePerShare:L.pricePerShare,shareQuantity:L.shareQuantity}});if(s?.boardPostUpdate)t?(ee(L),q({text:"임시저장되었습니다.",type:"success"})):q({text:"게시글이 수정되었습니다.",type:"success"}),setTimeout(()=>q(null),3e3);else throw Error("게시글 수정에 실패했습니다.");t||(es(),setTimeout(()=>{e.push(`/share-board/post/${d.id}`)},1500))}catch(e){console.error("게시글 수정 실패:",e),q({text:"게시글 수정에 실패했습니다. 다시 시도해주세요.",type:"error"}),setTimeout(()=>q(null),3e3),I({submit:"게시글 수정에 실패했습니다."})}finally{M(!1)}};return x?(0,O.jsxs)("div",{children:[(0,O.jsx)(o.BF,A({},ed)),(0,O.jsx)(T,{})]}):Z||!d?(0,O.jsxs)("div",{children:[(0,O.jsx)(o.BF,A({},ed)),(0,O.jsx)(k,{})]}):(0,O.jsxs)("div",{className:"min-h-screen bg-gray-50",children:[(0,O.jsx)(o.BF,A({},ed)),(0,O.jsxs)("main",{className:"container mx-auto px-4 py-6 max-w-4xl",children:[(0,O.jsx)("header",{className:"bg-white rounded-lg shadow-md p-6 mb-6",children:(0,O.jsxs)("div",{className:"flex items-center justify-between",children:[(0,O.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,O.jsx)(u.Z,{href:`/share-board/post/${d.id}`,children:(0,O.jsxs)("button",{className:"inline-flex items-center px-3 py-2 bg-gray-100 hover:bg-gray-200 text-gray-700 rounded-md transition-colors",children:[(0,O.jsx)(g.Z,{style:{marginRight:"8px"}}),"뒤로가기"]})}),(0,O.jsxs)("div",{children:[(0,O.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"게시글 수정"}),(0,O.jsxs)("div",{className:"text-sm text-gray-500 mt-1",children:["작성일: ",b.WU.datetime(d.createdAt),(0,O.jsx)(l.nA,{condition:!!(d.updatedAt&&d.updatedAt!==d.createdAt),children:(0,O.jsxs)("span",{children:[" • 최종 수정: ",b.WU.datetime(d.updatedAt)]})})]})]})]}),(0,O.jsxs)("button",{onClick:()=>_(!0),className:"inline-flex items-center px-3 py-2 bg-gray-100 hover:bg-gray-200 text-gray-700 rounded-md transition-colors",children:[(0,O.jsx)(S.Z,{style:{fontSize:"16px",marginRight:"4px"}}),"수정 이력"]})]})}),(0,O.jsx)("aside",{role:"alert",className:"bg-blue-50 border-l-4 border-blue-400 p-4 rounded-r-lg mb-6",children:(0,O.jsxs)("div",{className:"flex items-start",children:[(0,O.jsx)("div",{className:"flex-shrink-0",children:(0,O.jsx)("svg",{className:"w-5 h-5 text-blue-400 mt-0.5",fill:"currentColor",viewBox:"0 0 20 20",children:(0,O.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})})}),(0,O.jsx)("div",{className:"ml-3",children:(0,O.jsxs)("p",{className:"text-sm text-blue-700",children:[(0,O.jsx)("strong",{className:"font-medium",children:"게시글 수정 안내"}),(0,O.jsx)("br",{}),"• 수정된 내용은 이력으로 기록됩니다",(0,O.jsx)("br",{}),"• 거래가 진행 중인 경우 신중하게 수정해주세요",(0,O.jsx)("br",{}),"• 중요한 변경사항은 댓글로 안내하는 것을 권장합니다"]})})]})}),(0,O.jsx)(l.nA,{condition:!!Q.submit,children:(0,O.jsx)("aside",{role:"alert",className:"bg-red-50 border-l-4 border-red-400 p-4 rounded-r-lg mb-6",children:(0,O.jsxs)("div",{className:"flex items-center",children:[(0,O.jsx)("div",{className:"flex-shrink-0",children:(0,O.jsx)("svg",{className:"w-5 h-5 text-red-400",fill:"currentColor",viewBox:"0 0 20 20",children:(0,O.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),(0,O.jsx)("div",{className:"ml-3",children:(0,O.jsx)("p",{className:"text-sm font-medium text-red-800",children:Q.submit})})]})})}),(0,O.jsx)(l.nA,{condition:!!V,children:(0,O.jsx)("aside",{role:"alert",className:`border-l-4 p-4 rounded-r-lg mb-6 ${V?.type==="success"?"bg-green-50 border-green-400":V?.type==="error"?"bg-red-50 border-red-400":V?.type==="warning"?"bg-yellow-50 border-yellow-400":"bg-blue-50 border-blue-400"}`,children:(0,O.jsxs)("div",{className:"flex items-center",children:[(0,O.jsxs)("div",{className:"flex-shrink-0",children:[(0,O.jsx)(l.nA,{condition:V?.type==="success",children:(0,O.jsx)(w.Z,{className:"w-5 h-5 text-green-400"})}),(0,O.jsx)(l.nA,{condition:V?.type==="error",children:(0,O.jsx)("svg",{className:"w-5 h-5 text-red-400",fill:"currentColor",viewBox:"0 0 20 20",children:(0,O.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),(0,O.jsx)(l.nA,{condition:V?.type==="warning",children:(0,O.jsx)("svg",{className:"w-5 h-5 text-yellow-400",fill:"currentColor",viewBox:"0 0 20 20",children:(0,O.jsx)("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})})}),(0,O.jsx)(l.nA,{condition:!!(!V?.type||V?.type==="info"),children:(0,O.jsx)("svg",{className:"w-5 h-5 text-blue-400",fill:"currentColor",viewBox:"0 0 20 20",children:(0,O.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})})})]}),(0,O.jsx)("div",{className:"ml-3",children:(0,O.jsx)("p",{className:`text-sm font-medium ${V?.type==="success"?"text-green-800":V?.type==="error"?"text-red-800":V?.type==="warning"?"text-yellow-800":"text-blue-800"}`,children:V?.text})})]})})}),(0,O.jsx)("article",{className:"bg-white rounded-lg shadow-md p-6",children:(0,O.jsx)("div",{children:(0,O.jsxs)("form",{className:"space-y-8",children:[(0,O.jsxs)("section",{children:[(0,O.jsx)("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"기본 정보"}),(0,O.jsxs)("div",{className:"space-y-6",children:[(0,O.jsxs)("div",{children:[(0,O.jsx)("label",{htmlFor:"title",className:"block text-sm font-medium text-gray-700 mb-2",children:"제목 *"}),(0,O.jsx)("input",{id:"title",type:"text",value:L.title,onChange:e=>em("title",e.target.value),maxLength:h.tR.TITLE_MAX_LENGTH,required:!0,className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"}),(0,O.jsx)("div",{className:`mt-1 text-sm ${Q.title?"text-red-600":"text-gray-500"}`,children:Q.title||`${L.title.length}/${h.tR.TITLE_MAX_LENGTH}자`})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("label",{htmlFor:"content",className:"block text-sm font-medium text-gray-700 mb-2",children:"내용 *"}),(0,O.jsx)("textarea",{id:"content",value:L.content,onChange:e=>em("content",e.target.value),maxLength:h.tR.CONTENT_MAX_LENGTH,rows:10,required:!0,className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent resize-vertical"}),(0,O.jsx)("div",{className:`mt-1 text-sm ${Q.content?"text-red-600":"text-gray-500"}`,children:Q.content||`${L.content.length}/${h.tR.CONTENT_MAX_LENGTH}자`})]})]})]}),(0,O.jsx)("div",{className:"border-t border-gray-200"}),(0,O.jsxs)("section",{children:[(0,O.jsxs)("h2",{className:"flex items-center text-lg font-semibold text-gray-900 mb-4",children:[(0,O.jsx)(f.Z,{style:{fontSize:"18px",marginRight:"8px"},className:"text-blue-600"}),"거래 정보"]}),(0,O.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,O.jsxs)("div",{children:[(0,O.jsx)("label",{htmlFor:"companyName",className:"block text-sm font-medium text-gray-700 mb-2",children:"회사명 *"}),(0,O.jsx)("input",{id:"companyName",type:"text",value:L.companyName,onChange:e=>em("companyName",e.target.value),required:!0,className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"}),(0,O.jsx)(l.nA,{condition:!!Q.companyName,children:(0,O.jsx)("div",{className:"mt-1 text-sm text-red-600",children:Q.companyName})})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("label",{htmlFor:"businessNumber",className:"block text-sm font-medium text-gray-700 mb-2",children:"사업자등록번호"}),(0,O.jsx)("input",{id:"businessNumber",type:"text",placeholder:"123-45-67890",value:L.businessNumber,onChange:e=>em("businessNumber",e.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"}),(0,O.jsx)("div",{className:`mt-1 text-sm ${Q.businessNumber?"text-red-600":"text-gray-500"}`,children:Q.businessNumber||"선택사항"})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("label",{htmlFor:"tradeType",className:"block text-sm font-medium text-gray-700 mb-2",children:"거래 유형"}
1),(0,O.jsx)("select",{id:"tradeType",value:L.tradeType,onChange:e=>em("tradeType",e.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:Object.entries(h.KG).map(([e,t])=>(0,O.jsx)("option",{value:e,children:t},e))})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("label",{htmlFor:"pricePerShare",className:"block text-sm font-medium text-gray-700 mb-2",children:"주당 가격 (원) *"}),(0,O.jsx)("input",{id:"pricePerShare",type:"number",value:L.pricePerShare||"",onChange:e=>em("pricePerShare",parseInt(e.target.value)||0),min:"0",required:!0,className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"}),(0,O.jsx)(l.nA,{condition:!!Q.pricePerShare,children:(0,O.jsx)("div",{className:"mt-1 text-sm text-red-600",children:Q.pricePerShare})})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("label",{htmlFor:"shareQuantity",className:"block text-sm font-medium text-gray-700 mb-2",children:"수량 (주) *"}),(0,O.jsx)("input",{id:"shareQuantity",type:"number",value:L.shareQuantity||"",onChange:e=>em("shareQuantity",parseInt(e.target.value)||0),min:"0",required:!0,className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"}),(0,O.jsx)(l.nA,{condition:!!Q.shareQuantity,children:(0,O.jsx)("div",{className:"mt-1 text-sm text-red-600",children:Q.shareQuantity})})]})]}),(0,O.jsx)(l.nA,{condition:!!(L.pricePerShare>0&&L.shareQuantity>0),children:(0,O.jsx)("div",{className:"mt-4 p-4 bg-green-50 border border-green-200 rounded-md",children:(0,O.jsxs)("div",{className:"text-lg font-semibold text-green-800",children:["총 거래금액: ",b.WU.price(eo)]})})})]}),(0,O.jsx)("div",{className:"border-t border-gray-200"}),(0,O.jsxs)("section",{children:[(0,O.jsx)("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"공개 설정"}),(0,O.jsxs)("div",{children:[(0,O.jsx)("label",{htmlFor:"visibility",className:"block text-sm font-medium text-gray-700 mb-2",children:"공개 범위"}),(0,O.jsx)("select",{id:"visibility",value:L.visibility,onChange:e=>em("visibility",e.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent",children:Object.entries(h.Mn).map(([e,t])=>(0,O.jsx)("option",{value:e,children:t},e))}),(0,O.jsx)("div",{className:"mt-1 text-sm text-gray-500",children:"게시글을 볼 수 있는 사용자 범위를 설정합니다"})]})]}),(0,O.jsx)("div",{className:"border-t border-gray-200"}),(0,O.jsxs)("section",{children:[(0,O.jsx)("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"태그"}),(0,O.jsxs)("div",{className:"flex gap-2 mb-4",children:[(0,O.jsx)("input",{type:"text",placeholder:"엔터키로 추가",value:B,onChange:e=>D(e.target.value),onKeyPress:e=>"Enter"===e.key&&(e.preventDefault(),ex()),className:"flex-1 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"}),(0,O.jsxs)("button",{type:"button",onClick:ex,className:"inline-flex items-center px-3 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-md transition-colors",children:[(0,O.jsx)(N.Z,{style:{fontSize:"16px"},className:"mr-1"}),"추가"]})]}),(0,O.jsx)(l.nA,{condition:L.tags.length>0,children:(0,O.jsx)("div",{className:"flex flex-wrap gap-2 mb-4",children:L.tags.map((e,t)=>(0,O.jsxs)("span",{className:"inline-flex items-center px-3 py-1 bg-blue-100 text-blue-800 rounded-full text-sm font-medium",children:["#",e,(0,O.jsx)("button",{type:"button",onClick:()=>eu(e),className:"ml-2 text-blue-600 hover:text-blue-800 font-bold text-lg leading-none",children:"\xd7"})]},t))})}),(0,O.jsx)(l.nA,{condition:!!Q.tags,children:(0,O.jsx)("div",{className:"text-sm text-red-600",children:Q.tags})})]}),(0,O.jsxs)(l.nA,{condition:L.existingAttachments.length>0,children:[(0,O.jsxs)("section",{children:[(0,O.jsx)("h2",{className:"text-lg font-semibold text-gray-900 mb-4",children:"기존 첨부파일"}),(0,O.jsx)("div",{className:"space-y-3",children:L.existingAttachments.map(e=>(0,O.jsxs)("div",{className:"flex items-center justify-between p-3 bg-gray-50 rounded-md border",children:[(0,O.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,O.jsx)("span",{className:"font-medium text-gray-900",children:e.fileName}),(0,O.jsxs)("span",{className:"text-sm text-gray-500",children:["(",b.WU.fileSize(e.fileSize),")"]}),(0,O.jsx)("a",{href:e.fileUrl,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800 text-sm font-medium",children:"다운로드"})]}),(0,O.jsx)("button",{type:"button",onClick:()=>eh(e.id),className:"inline-flex items-center p-1 text-red-600 hover:text-red-800 transition-colors",children:(0,O.jsx)(v.Z,{style:{fontSize:"16px"}})})]},e.id))})]}),(0,O.jsx)("div",{className:"border-t border-gray-200"})]}),(0,O.jsx)(l.nA,{condition:!!z,children:(0,O.jsx)("div",{className:"bg-blue-50 border border-blue-200 rounded-md p-4",children:(0,O.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,O.jsx)("div",{className:"animate-spin rounded-full h-5 w-5 border-b-2 border-blue-600"}),(0,O.jsx)("div",{className:"text-blue-800 font-medium",children:"게시글 저장 중..."})]})})}),(0,O.jsxs)("div",{className:"bg-gray-50 rounded-md p-4 border border-gray-200",children:[(0,O.jsxs)("div",{className:"flex items-center justify-between",children:[(0,O.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,O.jsx)(l.nA,{condition:!!("saving"===G||U),children:(0,O.jsxs)("div",{className:"flex items-center text-blue-600",children:[(0,O.jsx)(y.Z,{style:{fontSize:"16px"},className:"mr-2 animate-pulse"}),(0,O.jsx)("span",{className:"text-sm font-medium",children:"자동 저장 중..."})]})}),(0,O.jsx)(l.nA,{condition:!!("saved"===G&&!U),children:(0,O.jsxs)("div",{className:"flex items-center text-green-600",children:[(0,O.jsx)(y.Z,{style:{fontSize:"16px"},className:"mr-2"}),(0,O.jsxs)("span",{className:"text-sm font-medium",children:["자동 저장됨",(0,O.jsx)(l.nA,{condition:!!$,children:(0,O.jsxs)("span",{className:"text-gray-500 ml-1",children:["(",$?.toLocaleTimeString(),")"]})})]})]})}),(0,O.jsx)(l.nA,{condition:"error"===G,children:(0,O.jsxs)("div",{className:"flex items-center text-red-600",children:[(0,O.jsx)(y.Z,{style:{fontSize:"16px"},className:"mr-2"}),(0,O.jsx)("span",{className:"text-sm font-medium",children:"자동 저장 실패"})]})})]}),(0,O.jsx)("span",{className:"text-sm text-gray-500",children:"30초마다 자동 저장됩니다"})]}),(0,O.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 pt-6 border-t border-gray-200",children:[(0,O.jsxs)("button",{type:"button",onClick:()=>ep(!0),disabled:z,className:"flex-1 inline-flex items-center justify-center px-4 py-2 bg-gray-100 hover:bg-gray-200 text-gray-700 rounded-md transition-colors disabled:opacity-50 disabled:cursor-not-allowed font-medium",children:[(0,O.jsx)(j.Z,{style:{marginRight:"8px"}}
1),"임시저장"]}),(0,O.jsxs)("button",{type:"button",onClick:()=>ep(!1),disabled:z,className:"flex-1 inline-flex items-center justify-center px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-md transition-colors disabled:opacity-50 disabled:cursor-not-allowed font-medium",children:[(0,O.jsx)(w.Z,{style:{fontSize:"16px",marginRight:"4px"}}),"수정 완료"]})]})]})]})})}),(0,O.jsx)(C,{open:E,onClose:()=>_(!1),history:void 0}),(0,O.jsx)("style",{dangerouslySetInnerHTML:{__html:`
2                    @keyframes progress {
3                    0% { width: 0%; }
4                    50% { width: 100%; }
5                    100% { width: 0%; }
6                    }
7                    `}})]})]})}))))},8e4:function(e,t,s){"use strict";s.d(t,{A:function(){return j}});var r=s(8307),a=s(67294),l=s(11163),n=s(53082),i=s(51531),c=s(29027),o=s(23192),d=s(50031),m=s(70416),x=s(70268),u=s(42759),h=s(47833),b=s(69818),p=s(40449),g=s(85893);function y(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,r)}return s}function j(){let e=(0,l.useRouter)(),t=(0,a.useMemo)(()=>({article:!1,title:"구주 거래 게시판 구독 안내 - 아웃스탠딩",description:"주주들간의 주식 거래 및 소통을 위한 전용 게시판 구독 안내",image:"https://cdn.outstanding.kr/wp-content/uploads/2020/05/outstanding_logo_rect.png",pathname:e.asPath,author:"아웃스탠딩"}),[e.asPath]),s=[{icon:(0,g.jsx)(c.Z,{className:"text-green-600 text-3xl"}),title:"주식 거래 정보 공유",description:"매수/매도 의향, 가격 정보 등을 주주들과 공유할 수 있습니다"},{icon:(0,g.jsx)(o.Z,{className:"text-blue-600 text-3xl"}),title:"검증된 주주 네트워킹",description:"이메일, SMS, 관리자 승인을 통해 검증된 주주들과만 소통합니다"},{icon:(0,g.jsx)(d.Z,{className:"text-purple-600 text-3xl"}),title:"안전한 거래 환경",description:"주주 인증 시스템으로 신뢰할 수 있는 거래 환경을 제공합니다"},{icon:(0,g.jsx)(m.Z,{className:"text-yellow-600 text-3xl"}),title:"투명한 가격 정보",description:"실시간 주식 거래 가격 정보를 투명하게 확인할 수 있습니다"}];return(0,g.jsxs)("main",{className:"min-h-screen py-6 sm:py-12",children:[(0,g.jsx)(i.BF,function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?y(Object(s),!0).forEach(function(t){(0,r.Z)(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):y(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}({},t)),(0,g.jsxs)("article",{className:"max-w-2xl mx-auto px-4 sm:px-6",children:[(0,g.jsxs)("header",{className:"text-center mb-8 bg-white rounded-xl shadow-lg p-6 sm:p-8",children:[(0,g.jsx)("div",{className:"mb-4",children:(0,g.jsx)(b.Z,{style:{fontSize:"48px",color:"#2563eb"},className:"mx-auto mb-3"})}),(0,g.jsx)("h1",{className:"text-2xl sm:text-3xl font-bold text-gray-900 mb-3",children:"구주 거래 게시판"}),(0,g.jsx)("p",{className:"text-base sm:text-lg text-gray-600 leading-relaxed",children:"검증된 주주들과 안전하게 주식 거래 정보를 공유하고 소통하는 전용 공간"})]}),(0,g.jsx)("section",{className:"mb-8",children:(0,g.jsxs)("div",{className:"bg-gradient-to-br from-blue-600 to-blue-700 rounded-xl shadow-lg p-6 sm:p-8 text-center text-white",children:[(0,g.jsx)(u.Z,{style:{fontSize:"40px"},className:"mx-auto mb-4"}),(0,g.jsx)("h2",{className:"text-xl sm:text-2xl font-bold mb-3",children:"구독이 필요한 서비스입니다"}),(0,g.jsxs)("p",{className:"text-blue-100 leading-relaxed mb-6 text-sm sm:text-base",children:["기존 프리미엄 멤버십과는 별도의 특별 구독 상품입니다.",(0,g.jsx)("br",{}),"주주들만을 위한 프리미엄 커뮤니케이션 서비스를 경험해보세요."]}),(0,g.jsx)(n.Z,{href:p.ShareBoardSubscriptionUrl,children:(0,g.jsxs)("button",{type:"button",className:"inline-flex items-center gap-2 px-6 sm:px-8 py-3 sm:py-4 bg-white hover:bg-gray-50 text-blue-600 font-bold rounded-lg shadow-lg hover:shadow-xl transition-all duration-200 text-sm sm:text-base",children:[(0,g.jsx)(u.Z,{style:{fontSize:"20px"}}),"지금 구독하기"]})})]})}),(0,g.jsxs)("section",{className:"mb-8",children:[(0,g.jsx)("h2",{className:"text-xl sm:text-2xl font-bold text-gray-900 text-center mb-6",children:"주요 서비스"}),(0,g.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:s.map((e,t)=>(0,g.jsxs)("div",{className:"bg-white p-5 rounded-lg shadow-md hover:shadow-lg transition-shadow border border-gray-100",children:[(0,g.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[a.cloneElement(e.icon,{style:{fontSize:"24px"},className:e.icon.props.className?.replace("text-3xl","")}),(0,g.jsx)("h3",{className:"text-base sm:text-lg font-semibold text-gray-900",children:e.title})]}),(0,g.jsx)("p",{className:"text-sm sm:text-base text-gray-600 leading-relaxed",children:e.description})]},t))})]}),(0,g.jsx)("section",{className:"mb-8",children:(0,g.jsxs)("div",{className:"bg-white rounded-xl shadow-lg p-6 sm:p-8",children:[(0,g.jsx)("h3",{className:"text-xl sm:text-2xl font-bold text-gray-900 text-center mb-6",children:"간단한 이용 절차"}),(0,g.jsxs)("div",{className:"space-y-4",children:[(0,g.jsxs)("div",{className:"flex items-start gap-4 p-4 bg-green-50 rounded-lg border border-green-200",children:[(0,g.jsx)("div",{className:"bg-green-100 rounded-full p-1 flex-shrink-0",children:(0,g.jsx)(x.Z,{style:{fontSize:"20px",color:"#059669"}})}),(0,g.jsxs)("div",{className:"flex-1",children:[(0,g.jsx)("h4",{className:"text-base sm:text-lg font-semibold text-gray-900 mb-1",children:"구독 결제"}),(0,g.jsx)("p",{className:"text-sm sm:text-base text-gray-600",children:"구주 거래 게시판 구독 상품 결제"})]})]}),(0,g.jsxs)("div",{className:"flex items-start gap-4 p-4 bg-blue-50 rounded-lg border border-blue-200",children:[(0,g.jsx)("div",{className:"bg-blue-100 rounded-full p-1 flex-shrink-0",children:(0,g.jsx)(x.Z,{style:{fontSize:"20px",color:"#2563eb"}})}),(0,g.jsxs)("div",{className:"flex-1",children:[(0,g.jsx)("h4",{className:"text-base sm:text-lg font-semibold text-gray-900 mb-1",children:"주주 인증"}),(0,g.jsx)("p",{className:"text-sm sm:text-base text-gray-600",children:"명함 업로드 및 이메일/SMS 인증"})]})]}),(0,g.jsxs)("div",{className:"flex items-start gap-4 p-4 bg-purple-50 rounded-lg border border-purple-200",children:[(0,g.jsx)("div",{className:"bg-purple-100 rounded-full p-1 flex-shrink-0",children:(0,g.jsx)(x.Z,{style:{fontSize:"20px",color:"#7c3aed"}})}),(0,g.jsxs)("div",{className:"flex-1",children:[(0,g.jsx)("h4",{className:"text-base sm:text-lg font-semibold text-gray-900 mb-1",children:"관리자 승인"}),(0,g.jsx)("p",{className:"text-sm sm:text-base text-gray-600",children:"주주 자격 검토 및 승인 완료"})]})]}),(0,g.jsxs)("div",{className:"flex items-start gap-4 p-4 bg-yellow-50 rounded-lg border border-yellow-200",children:[(0,g.jsx)("div",{className:"bg-yellow-100 rounded-full p-1 flex-shrink-0",children:(0,g.jsx)(x.Z,{style:{fontSize:"20px",color:"#d97706"}})}),(0,g.jsxs)("div",{className:"flex-1",children:[(0,g.jsx)("h4",{className:"text-base sm:text-lg font-semibold text-gray-900 mb-1",children:"서비스 이용"}),(0,g.jsx)("p",{className:"text-sm sm:text-base text-gray-600",children:"구주 거래 게시판 모든 기능 이용 가능"})]})]})]})]})}),(0,g.jsxs)("footer",{className:"bg-white rounded-xl shadow-lg p-6 sm:p-8 text-center",children:[(0,g.jsx)("p",{className:"text-lg sm:text-xl font-semibold text-gray-900 mb-6",children:"구주 거래 게시판에서 새로운 기회를 발견하세요"}),(0,g.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,g.jsx)(n.Z,{href:p.ShareBoardSubscriptionUrl,children:(0,g.jsxs)("button",{type:"button",className:"w-full inline-flex items-center justify-center gap-2 px-6 sm:px-8 py-3 sm:py-4 bg-blue-600 hover:bg-blue-700 text-white font-bold rounded-lg shadow-lg hover:shadow-xl transition-all duration-200 text-sm sm:text-base",children:[(0,g.jsx)(u.Z,{style:{fontSize:"20px"}}),"구독하고 시작하기"]})}),(0,g.jsx)(n.Z,{href:"/",children:(0,g.jsxs)("button",{type:"button",className:"w-full inline-flex items-center justify-center gap-2 px-6 sm:px-8 py-2 sm:py-3 bg-gray-100 hover:bg-gray-200 text-gray-700 font-medium rounded-lg transition-all duration-200 text-sm sm:text-base",children:[(0,g.jsx)(h.Z,{style:{fontSize:"18px"}}),"홈으로 돌아가기"]})})]})]})]})]})}},26307:function(e,t,s){"use strict";s.d(t,{U:function(){return w}});var r=s(8307),a=s(67294),l=s(18894),n=s(59765),i=s(70268),c=s(45073),o=s(11163),d=s(18499),m=s(45424),x=s(8e4),u=s(70014),h=s(65783),b=s(99395),p=s(37508),g=s(56217),y=s(94332),j=s(53082),f=s(35240),N=s(85893);function v(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,r)}return s}function w(e){return function(t){let s=(0,o.useRouter)(),w=(0,d.xJ)(),S=(0,m.lc)(e=>e.user.currentUserAtSession),Z=(0,m.lc)(e=>
7e.shareBoard.hasSubscription),O=(0,m.lc)(e=>e.shareBoard.canCreatePost),P=(0,m.lc)(e=>e.shareBoard.isEmailVerified),A=(0,m.lc)(e=>e.shareBoard.isSmsVerified),T=(0,m.lc)(e=>e.shareBoard.isWaitingForAdminApproval),k=(0,m.lc)(e=>e.shareBoard.subscriptionCheckLoadingStatus),C=(0,m.lc)(e=>e.shareBoard),{0:E,1:_}=(0,a.useState)(!0);return((0,a.useEffect)(()=>{(async()=>{if(!S?.uid){_(!1);return}try{"idle"===k&&C.checkSubscription(w,S.uid),Z&&!C.shareholder&&await C.getCurrentShareholderInfo(w)}catch(e){console.error("권한 확인 중 오류:",e)}finally{_(!1)}})()},[S?.uid,w,k,Z,C]),E||"loading"===k)?(0,N.jsx)(u.Z,{className:"flex justify-center pt-8 pb-8",children:(0,N.jsx)(h.Z,{})}):Z?T?(0,N.jsx)(u.Z,{className:"max-w-3xl mx-auto p-6",children:(0,N.jsx)(b.Z,{children:(0,N.jsxs)(p.Z,{children:[(0,N.jsxs)(g.Z,{variant:"h5",className:"mb-4 flex items-center text-gray-900",children:[(0,N.jsx)(l.Z,{className:"mr-2 text-orange-500"}),"관리자 검토 요청 중"]}),(0,N.jsx)(g.Z,{variant:"body1",className:"mb-4 text-gray-700",children:"모든 인증 절차를 완료하셨습니다. 현재 관리자가 제출하신 정보를 검토하고 있어 게시글 작성이 제한됩니다."}),(0,N.jsx)(f.Z,{severity:"info",className:"mb-4",children:"승인이 완료되면 등록하신 이메일로 알림을 보내드리며, 주주게시판의 모든 기능을 이용하실 수 있습니다."}),(0,N.jsxs)(u.Z,{className:"flex gap-4",children:[(0,N.jsx)(y.Z,{variant:"contained",color:"primary",onClick:()=>s.push("/share-board"),className:"px-6 py-2",children:"주주게시판으로 돌아가기"}),(0,N.jsx)(j.Z,{href:"/share-board/register",children:(0,N.jsx)(y.Z,{variant:"outlined",className:"px-6 py-2",children:"등록 상태 확인"})})]})]})})}):O?(0,N.jsx)(e,function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?v(Object(s),!0).forEach(function(t){(0,r.Z)(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):v(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}({},t)):(0,N.jsx)(u.Z,{className:"max-w-3xl mx-auto p-6",children:(0,N.jsx)(b.Z,{className:"shadow-lg",children:(0,N.jsxs)(p.Z,{className:"p-8",children:[(0,N.jsxs)(g.Z,{variant:"h5",className:"mb-4 flex items-center text-gray-900",children:[(0,N.jsx)(n.Z,{className:"mr-2 text-red-600"}),"게시글 작성 권한 없음"]}),(0,N.jsx)(g.Z,{variant:"body1",className:"mb-4 text-gray-700",children:"게시글을 작성하려면 다음 인증을 완료해주세요:"}),(0,N.jsxs)(u.Z,{className:"mb-6 space-y-2",children:[(0,N.jsxs)(g.Z,{variant:"body2",color:P?"primary":"textSecondary",className:"flex items-center",children:[P?(0,N.jsx)(i.Z,{className:"mr-2 text-green-600"}):(0,N.jsx)(c.Z,{className:"mr-2 text-gray-400"}),"이메일 인증"]}),(0,N.jsxs)(g.Z,{variant:"body2",color:A?"primary":"textSecondary",className:"flex items-center",children:[A?(0,N.jsx)(i.Z,{className:"mr-2 text-green-600"}):(0,N.jsx)(c.Z,{className:"mr-2 text-gray-400"}),"SMS 인증"]}),(0,N.jsxs)(g.Z,{variant:"body2",color:"textSecondary",className:"flex items-center",children:[(0,N.jsx)(c.Z,{className:"mr-2 text-gray-400"}),"관리자 승인 (이메일, SMS 인증 완료 후)"]})]}),(0,N.jsxs)(u.Z,{className:"flex gap-4",children:[(0,N.jsx)(j.Z,{href:"/share-board/register",children:(0,N.jsx)(y.Z,{variant:"contained",color:"primary",className:"px-6 py-2",children:"인증 완료하기"})}),(0,N.jsx)(y.Z,{variant:"outlined",onClick:()=>s.push("/share-board"),className:"px-6 py-2",children:"주주게시판으로 돌아가기"})]})]})})}):(0,N.jsx)(x.A,{})}}},90609:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/share-board/post/edit/[id]",function(){return s(49754)}])}},function(e){e.O(0,[6326,1055,8763,530,660,2426,4200,4927,449,2888,9774,179],function(){return e(e.s=90609)}),_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.