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.