1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6065,4042],{22612:function(e,t,i){var o=i(98768);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},92131:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/community/writing/post",function(){return i(80343)}])},79969:function(e,t,i){"use strict";i.d(t,{Z:function(){return _}});var o=i(11527),n=i(93791),a=i(93149),l=i.n(a),r=i(50959),s=i(19036),d=i.n(s);i(29449);var c=i(24401),u=i.n(c),m=i(62302),p=i(30969),g=i(32017),h=i.n(g),y=i(46956);let f=i.n(y)()(async()=>{let{default:e}=await Promise.all([i.e(1991),i.e(3930),i.e(6620),i.e(702)]).then(i.t.bind(i,20702,23)),{default:t}=await i.e(6414).then(i.t.bind(i,86414,23));return e.Quill.register("modules/magicUrl",t),t=>{let{forwardedRef:i,...n}=t;return(0,o.jsx)(e,{ref:i,...n})}},{loadableGenerated:{webpack:()=>[86414]},loading:()=>(0,o.jsx)("div",{children:"Loading..."}),ssr:!1}),b=l().bind(u()),x=e=>{let{count:t,maxCount:i}=e;return(0,o.jsxs)("div",{className:b("count"),children:[t,"/",i]})};var v=e=>{let{type:t,onChange:i,name:n,placeholder:a,defaultValue:l,imageContainer:s,showCount:d,maxFileSizeMb:c=10,value:u,maxLength:g=5e3}=e,{query:{domain:y}}=(0,p.useRouter)(),[v,w]=(0,r.useState)(0),[_,k]=(0,r.useState)(!1),j=RegExp('<img src="data:image/([a-zA-Z]*);base64,([^"]*)("([^"]*)alt="[^"]*)*">',"g"),C=e=>j.test(e),I=(0,r.useRef)(null),Z=()=>{let e=document.createElement("input"),t=["jpeg","jpg","gif","png","webp"];e.setAttribute("type","file"),e.setAttribute("accept","image/jpeg,image/jpg,image/gif,image/png,image/webp".concat(",image/heic")),e.click(),k(e=>!e),e.addEventListener("change",async()=>{var i,o,n,a;if(console.info("change event"),!e.files)return;console.info("files",e.files);let l=e.files[0],r=null===(i=l.name.split(".").pop())||void 0===i?void 0:i.toLowerCase(),d=l.size,u=t.concat("heic"),p=new FileReader;if(l){let e=null===(o=I.current)||void 0===o?void 0:o.getEditor(),t=null==e?void 0:e.getSelection(!0),i=null==e?void 0:null===(a=e.getContents().ops)||void 0===a?void 0:null===(n=a.filter(e=>{var t;return null==e?void 0:null===(t=e.insert)||void 0===t?void 0:t.image}))||void 0===n?void 0:n.length;if(!e||i&&!(i<20)||d>1048576*c||r&&!u.includes(r))return;p.readAsArrayBuffer(l),await (0,m.w)(l,null!=s?s:"community",null!=y?y:"images",!0).then(i=>{if(e&&t)e.insertEmbed(t.index,"image",i),e.insertText(t.index+1,"\r\n"),setTimeout(()=>{e.setSelection(t.index+4,0)},0);else if(e){let t=e.scroll.length();e.insertEmbed(t,"image",i),e.insertText(t+1,"\r\n"),setTimeout(()=>{e.setSelection(t+4,0)},0)}})}})},S=(0,r.useMemo)(()=>({toolbar:{container:[["bold"],["link"],["image"]],handlers:{image:Z}},magicUrl:!0}),[]),P=e=>{var t;let i=e.length,o=null===(t=I.current)||void 0===t?void 0:t.editor,n=null==o?void 0:o.getLength();if(w(i),k(e=>!e),!o||!n||i<=g)return;let a=i-g;o.deleteText(n-a-1,a)};return(0,r.useEffect)(()=>{if(0===v&&l){var e;let t=null===(e=I.current)||void 0===e?void 0:e.editor,i=null==t?void 0:t.getLength();i&&w(i-1)}},[l]),(0,o.jsxs)("div",{className:b("editor-wrapper"),children:[(0,o.jsx)(f,{forwardedRef:I,theme:"snow",placeholder:a,modules:S,defaultValue:l,onChange:(e,o,a,l)=>{if(C(e)){var r;e=e.replaceAll(j,"");let t=null===(r=I.current)||void 0===r?void 0:r.editor;null==t||t.pasteHTML(e),i({target:{name:"description",value:e}});return}P(h()(e));let s=(e=l.getHTML()).matchAll(/<a\s+(?:[^>]*?\s+)?href="([^"]*)"/g);if(s&&Array.from(s).forEach(t=>{t.length>1&&!t[1].startsWith("http")&&(e=e.replaceAll('href="'.concat(t[1],'"'),'href="http://'.concat(t[1],'"')))}),"post"===t){let t=e;i({target:{name:n,value:l.getText()}}),i({target:{name:"description",value:t}})}else{let t=e;i({target:{name:n,value:l.getText()}}),i({target:{name:"description",value:t}})}},value:u}),d&&(0,o.jsx)(x,{count:v,maxCount:g})]})};let w=l().bind(d());var _=e=>{let{isReady:t,type:i,label:a,placeholder:l,onChange:r,name:s,defaultValue:d,imageContainer:c,maxFileSizeMb:u,errorMessage:m,value:p,maxLength:g}=e;return(0,o.jsxs)("div",{className:w("wrap"),children:[(0,o.jsx)("div",{className:w("label"),children:(0,o.jsx)("span",{children:a})}),(0,o.jsx)(v,{type:i,onChange:r,name:s,placeholder:l,defaultValue:d,imageContainer:c,showCount:!0,maxFileSizeMb:u,value:p,maxLength:g}),m&&(0,o.jsx)(n.Bc,{children:m})]},t)}},99792:function(e,t,i){"use strict";i.d(t,{Z:function(){return m}});var o=i(11527),n=i(73907),a=i(64247);let l=n.ZP.div.withConfig({componentId:"sc-4c34f2a-0"})(["width:100%;max-width:600px;"]),r=n.ZP.button.withConfig({componentId:"sc-4c34f2a-1"})(["",";display:flex;align-items:center;gap:10px;"],a.Z.label_16_100_medium),s=n.ZP.div.withConfig({componentId:"sc-4c34f2a-2"})(["display:flex;align-items:center;justify-content:space-between;margin-top:15px;"]),d=n.ZP.h2.withConfig({componentId:"sc-4c34f2a-3"})(["",";"],a.Z.headline_30_130_bold);var c=i(24113),u=i(53886);function m(e){let{title:t,ActionButton:i,goBack:n}=e,{t:a}=(0,u.$G)(["community"]);return(0,o.jsxs)(l,{children:[n&&(0,o.jsxs)(r,{onClick:n,children:[(0,o.jsx)(c.Z,{iconName:"icon_common_prev",size:18}),a("community:community.go.back")]}),(0,o.jsxs)(s,{children:[(0,o.jsx)(d,{children:t}),i]})]})}},49192:function(e,t,i){"use strict";i.d(t,{Z:function(){return m}});var o=i(11527),n=i(64247),a=i(73907);let l=a.ZP.div.withConfig({componentId:"sc-893c77ba-0"})(["display:flex;flex-direction:column;gap:20px;width:100%;"]),r=a.ZP.span.withConfig({componentId:"sc-893c77ba-1"})(["margin-top:-10px;color:$gray-5;",""],n.Z.body_14_140_regular);var s=i(96384),d=e=>(0,o.jsx)(s.Z,{...e}),c=i(2578),u=i(53886),m=e=>{let{handleIsReservationChange:t,handleRegisteredAtChange:i,handleRegisteredAtCancel:n,handleRegisteredAtComplete:a,isReservation:s,registeredAt:m,dateFormat:p,description:g}=e,{t:h}=(0,u.$G)(["community"]);return(0,o.jsxs)(l,{children:[(0,o.jsx)(c.Z,{label:h("community:community.reserve.registration.time"),handleChange:t,initValue:null!=s&&s}),s&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d,{format:p,type:"full",onCh
1ange:i,onCancel:n,onComplete:a,placeHolder:h("community:community.select.date.time"),defaultValue:m}),(0,o.jsx)(r,{children:g})]})]})}},2578:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var o=i(11527),n=i(78044),a=i(64247),l=i(73907);let r=l.ZP.div.withConfig({componentId:"sc-d79947d1-0"})(["display:flex;align-items:center;justify-content:space-between;width:100%;"]),s=l.ZP.h5.withConfig({componentId:"sc-d79947d1-1"})(["",";color:",";"],a.Z.label_16_100_medium,n.w.black000);var d=i(50959),c=i(93149),u=i.n(c),m=i(54352),p=i.n(m);let g=u().bind(p()),h=e=>{let{onClick:t,onChange:i,color:n,initValue:a=!1,disabled:l=!1,onClickWrap:r,controlOutside:s}=e,[c,u]=(0,d.useState)(a);return(0,d.useEffect)(()=>{u(a)},[a]),(0,o.jsx)("div",{className:g("switch"),onClick:()=>{null==r||r()},children:(0,o.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),!l&&(null==i||i(!c),null==t||t(),s||u(!c))},className:g("toggle-button",c&&"active",l&&"disabled"),disabled:l&&!r,style:{color:n},children:(0,o.jsx)("span",{className:g("circle")})})})};var y=e=>{let{label:t,handleChange:i,initValue:n}=e;return(0,o.jsxs)(r,{children:[(0,o.jsx)(s,{children:t}),(0,o.jsx)(h,{onChange:i,initValue:n})]})}},80343:function(e,t,i){"use strict";let o,n;i.r(t),i.d(t,{__N_SSG:function(){return eo},default:function(){return en}});var a=i(11527),l=i(9228),r=i(79969),s=i(25500),d=i(93791),c=i(73907),u=i(78044),m=i(64247),p=i(87517);let g=c.ZP.div.withConfig({componentId:"sc-4225798c-0"})(["display:flex;flex-direction:column;align-items:flex-start;gap:10px;align-self:stretch;.label{span{color:",";",";}}"],u.w.gray6,m.Z.title_15_130_medium),h=c.ZP.div.withConfig({componentId:"sc-4225798c-1"})(["display:flex;padding:14px 16px;align-items:center;align-self:stretch;border-radius:8px;border:1px solid ",";background:",";cursor:",";span:first-child{flex:1 0 0;"," word-break:break-all;",";color:",";}"],u.w.gray2,e=>{let{disabled:t}=e;return t?u.w.gray0:"#fff"},e=>{let{disabled:t}=e;return t?"cursor":"pointer"},(0,p.tm)(1),m.Z.body_16_140_medium,e=>{let{selected:t,disabled:i}=e;return i?u.w.gray5:t?u.w.black111:u.w.gray4}),y=c.ZP.div.withConfig({componentId:"sc-4225798c-2"})(["position:relative;display:flex;flex-direction:column;","{min-height:380px;max-height:calc(-80px + 80vh);padding:30px 30px 0 30px;}","{max-height:calc(100vh - 100px);padding:30px 20px 0 20px;}.title{padding-bottom:30px;","{padding-bottom:16px;}}"],p.gv,p.ai,p.ai),f=c.ZP.div.withConfig({componentId:"sc-4225798c-3"})(["display:flex;overflow:scroll;scrollbar-width:none;&::-webkit-scrollbar{display:none;}.list{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch;width:100%;}"]),b=c.ZP.div.withConfig({componentId:"sc-4225798c-4"})(["display:flex;padding:15px 0;align-items:center;gap:12px;align-self:stretch;cursor:pointer;&:not(&:last-child){border-bottom:1px solid ",";}.board-name{flex:1 0 0;display:flex;gap:6px;align-items:center;span:first-child{word-break:break-all;}.badge{display:flex;padding:3px 4px;align-items:center;gap:8px;border-radius:3px;background:#eaefff;color:#2f60ff;","}}"],u.w.gray0,m.Z.label_12_100_medium),x=c.ZP.div.withConfig({componentId:"sc-4225798c-5"})(["display:flex;flex-direction:column;align-items:flex-start;width:100%;&:last-child{padding-bottom:30px;","{padding-bottom:20px;}}.group-name{display:flex;padding:16px 0;align-items:center;gap:12px;align-self:stretch;color:#111;border-bottom:1px solid ",";span{"," word-break:break-all;}}"],p.ai,u.w.gray0,m.Z.title_17_130_semiBold),v=c.ZP.div.withConfig({componentId:"sc-4225798c-6"})(["display:flex;padding:10px 0;flex-direction:column;align-items:flex-start;align-self:stretch;div{width:100%;height:1px;border-bottom:1px dashed rgb(191,197,204);}"]);var w=i(50959),_=i(22612),k=i.n(_),j=i(24113),C=i(81514),I=i(45300),Z=i(30015);let S=c.ZP.div.withConfig({componentId:"sc-41eb3d12-0"})(["display:flex;align-items:center;gap:10px;cursor:pointer;&.disabled{cursor:default;}"]),P=c.ZP.div.withConfig({componentId:"sc-41eb3d12-1"})(["width:20px;height:20px;border-radius:50%;border:1px solid #dcdfe4;position:relative;flex-shrink:0;&.isChecked{border:1px solid #2f60ff;> div{width:9px;height:9px;background-color:#2f60ff;}}&.disabled{border:none;background-color:#ebedf0;}"]),A=c.ZP.div.withConfig({componentId:"sc-41eb3d12-2"})(["position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;transition:all 0.3s ease-in-out;"]);var E=e=>{let{isChecked:t,setIsChecked:i,label:o,children:n,className:l,disabled:r}=e;return(0,a.jsxs)(S,{className:"".concat(l," ").concat(r&&"disabled"),onClick:()=>{r||i(!t)},children:[(0,a.jsx)(P,{className:"".concat(t&&"isChecked"," ").concat(r&&"disabled"),children:(0,a.jsx)(A,{})}),o&&(0,a.jsx)("span",{children:o}),n]})};let $=e=>{let{groupName:t,boards:i,selectId:o,setSelectId:n,onConfirm:l}=e;return(0,a.jsxs)(x,{children:[t&&(0,a.jsx)("div",{className:"group-name",children:(0,a.jsx)("span",{children:t})}),i.map(e=>(0,a.jsxs)(b,{onClick:()=>{n(e.id),l(e.id)},children:[(0,a.jsx)(E,{isChecked:o===e.id,setIsChecked:()=>{n(e.id),l(e.id)}}),(0,a.jsxs)("span",{className:"board-name",children:[(0,a.jsx)(Z.Z,{className:"title-17-130-600",children:e.name}),"REVIEW"===e.type&&(0,a.jsx)("span",{className:"badge",children:"í기"})]})]},e.id))]})},T=()=>(0,a.jsx)(v,{children:(0,a.jsx)("div",{})});var N=e=>{let{isOpen:t,setIsOpen:i,boardGroups:o,selectId:n,setSelectId:l,title:r,onConfirm:s}
1=e,d=(0,C.Z)("smDesktop");return(0,a.jsx)(I.Z,{isOpen:!0,setIsOpen:i,customClassNames:{modal:"modal"},styles:{modal:d?{width:"460px",padding:"0"}:{padding:"0"}},blockScroll:!0,children:(0,a.jsxs)(y,{children:[(0,a.jsx)(Z.Z,{className:"title-20-140-700",customClassName:"title",children:r}),(0,a.jsx)(f,{children:(0,a.jsx)("div",{className:"list",children:o.map((e,t)=>{var i;let{id:r,name:d,boards:c}=e;return(0,a.jsxs)(w.Fragment,{children:[(0,a.jsx)($,{groupName:d,boards:c,selectId:n,setSelectId:l,onConfirm:s}),t!==(null!==(i=null==o?void 0:o.length)&&void 0!==i?i:0)-1&&(0,a.jsx)(T,{})]},r)})})})]})})},L=i(53886);let R=e=>{var t,i;let{placeholder:o,selectId:n,setSelectId:l,boardGroups:r=[],disabled:s}=e,{t:d}=(0,L.$G)(["community"]),[c,u]=(0,w.useState)(!1),m=null!==(i=null===(t=k()(null==r?void 0:r.map(e=>e.boards)).find(e=>(null==e?void 0:e.id)===n))||void 0===t?void 0:t.name)&&void 0!==i?i:"";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(h,{selected:!!m,disabled:s,onClick:()=>!s&&u(!0),children:[(0,a.jsx)("span",{children:m||o}),(0,a.jsx)(j.Z,{iconName:"arrow_selector_down",size:16})]}),c&&(0,a.jsx)(N,{isOpen:c,setIsOpen:u,boardGroups:r,selectId:n,setSelectId:l,title:d("community:community.select.board.short"),onConfirm:()=>u(!1)})]})};var V=e=>{let{label:t,placeholder:i,selectId:o,setSelectId:n,boardGroups:l,disabled:r}=e;return(0,a.jsxs)(g,{children:[(0,a.jsx)("div",{className:"label",children:(0,a.jsx)("span",{children:t})}),(0,a.jsx)(R,{placeholder:i,selectId:o,setSelectId:n,boardGroups:l,disabled:r})]})},O=i(4572),U=i(92919),D=i(30969),M=i(50348),Y=i(32017),F=i.n(Y);c.ZP.div.withConfig({componentId:"sc-d21c7fe5-0"})(["width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:10px;.dropdown{width:100%;display:flex;padding:12px 16px 12px 16px;align-items:center;justify-content:space-between;border-radius:8px;border:1px solid #dcdfe4;&.selected{padding:12px 14px 12px 12px;.project-info{display:flex;align-items:center;gap:10px;padding-right:20px;@include desktop{margin-left:-1px;gap:12px;padding-right:12px;}span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;text-overflow:ellipsis;@include desktop{width:540px;}}.image-wrap{width:42px;height:42px;img{object-fit:cover;border-radius:4px;}}+ svg{flex:none;}}}&:hover{border:1px solid black;cursor:pointer;}}"]),c.ZP.p.withConfig({componentId:"sc-d21c7fe5-1"})(["margin-top:-10px;color:$gray50;",""],m.Z.body_14_140_regular);let z=c.ZP.div.withConfig({componentId:"sc-d21c7fe5-2"})(["","{height:40px;}"],p.gv);var G=i(93877),W=i(86312),B=i(23195),H=i(49192),q=i(17888),Q=i.n(q),X=i(96384),K=i(2578),J=i(14906),ee=e=>{var t,i,o,n,l;let{defaultValue:c,temporaryArticleId:u,postId:m}=e,{t:p}=(0,L.$G)(["community"]),g=(0,D.useRouter)(),{openModal:h}=(0,s.B)(),{setSnackBarText:y}=(0,W.p)(),[f,b]=(0,w.useState)(!1),[x,v]=(0,w.useState)(!1),[_,k]=(0,w.useState)(""),{data:j}=(0,G.at)(),C=(null==j?void 0:j.role)==="ROLE_ADMIN",{data:I=[],isFetching:Z}=(0,G.tV)(),{mutate:S,isPending:P}=(0,G.fj)(),{mutate:A,isPending:E}=(0,G.jy)(),{mutate:$}=(0,G.u$)(),{mutate:T}=(0,G.Hj)(),{mutate:N}=(0,G.f3)(),R={isTopFeed:!1,canComment:!0,description:"",publishedAt:void 0,title:"",youtubeVideoUrl:"",boardId:void 0},{register:Y,getValues:q,setValue:ee,handleSubmit:et,reset:ei,control:eo,watch:en,unregister:ea}=(0,M.cI)({mode:"onSubmit",shouldFocusError:!1,defaultValues:R});(0,w.useEffect)(()=>{ei(null!=c?c:R)},[c]),(0,w.useEffect)(()=>{var e;ed(null!==(e=en("publishedAt"))&&void 0!==e?e:"")},[en("publishedAt")]),Y("boardId",{validate:e=>!!e||p("community:community.select.board")});let el=async()=>{u?T({boardId:en().boardId,temporaryArticleId:u,temporaryArticle:en()},{onSuccess:()=>{y(p("community:community.post.draft.saved"))}}):$({boardId:en().boardId,temporaryArticle:en()},{onSuccess:()=>{y(p("community:community.post.draft.saved"))}})},er=async e=>{e&&!f&&(b(!0),setTimeout(async()=>{let{youtubeVideoUrl:t,...i}=e;m?A({...i,postId:m},{onSuccess:async()=>{ei(),y(p("community:community.post.submitted")),await g.replace("/community")},onError:e=>
1{"invalid youtube video id"===e.response.data.message?h({type:"Common/Default",props:{title:p("community:community.enter.youtube.share.link")}}):h({type:"Common/Default",props:{title:p("community:community.post.submit.failed"),subTitle:e.response.data.message}})}}):S(i,{onSuccess:async()=>{ei(),N({temporaryArticleId:u}),y(p("community:community.post.submitted")),await g.replace("/community")},onError:e=>{"invalid youtube video id"===e.response.data.message?h({type:"Common/Default",props:{title:p("community:community.enter.youtube.share.link")}}):h({type:"Common/Default",props:{title:p("community:community.post.submit.failed"),subTitle:e.response.data.message}})}}),b(!1)},300))},es=async e=>{e||(k(""),ea("publishedAt"));try{ee("isReservation",e)}catch(e){console.error(e)}},ed=e=>{if(!e){k("");return}k((0,X.j)(e,"YYYY.MM.DD.(ddd) hh:mm").format("YYYY-MM-DD HH:mm"))};return(0,w.useEffect)(()=>{Z||I&&0!==I.length||h({type:"Common/Default",props:{title:p("community:community.post.error.available.boards"),onClick:()=>g.push("/")}})},[I,Z]),(0,a.jsxs)(d.l0,{onSubmit:et(er,e=>{0!==Object.keys(e).length&&h({type:"Common/Default",props:{title:e[Object.keys(e)[0]].message||p("community:community.unknown.error")}})}),children:[(0,a.jsxs)(d.C3,{children:[(0,a.jsx)(V,{label:p("community:community.board"),placeholder:p("community:community.select.board"),boardGroups:I,selectId:null!==(n=en("boardId"))&&void 0!==n?n:"",setSelectId:e=>{ee("boardId",e)},disabled:!!m}),(0,a.jsx)(J.Z,{label:p("community:community.title"),placeholder:p("community:community.enter.title"),value:en("title"),...Y("title",{validate:e=>!!e&&e.trim().length>=3&&e.length<=100||p("community:community.title.min.length")})}),(0,a.jsx)(J.Z,{label:"".concat(p("community:community.youtube.video")," ").concat(p("community:community.select")),placeholder:p("community:community.enter.url"),value:en("youtubeVideoUrl"),...Y("youtubeVideoUrl",{pattern:{value:/^(http(s):\/\/.)[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/,message:p("community:community.invalid.url")}}),onChange:e=>{let t=e.target.value,i=(0,U.l)(t);ee("youtubeVideoUrl",t),ee("youtubeVideoId",i||"")},description:p("community:community.paste.youtube.share.link")}),(0,a.jsx)(M.Qr,{render:e=>{let{field:t}=e;return(0,a.jsx)(r.Z,{isReady:x?"ready":"not-ready",...t,type:"post",name:"description",label:p("community:community.content.body"),defaultValue:en("description"),value:en("description"),placeholder:p("community:community.enter.body"),maxLength:7e3})},name:"description",control:eo,rules:{minLength:3,validate:{required:e=>!!F()(null!=e?e:"")||p("community:community.enter.body"),minLength:e=>{let t=F()(null!=e?e:"");return!!t&&t.length>=3||p("community:community.content.min.length")}}}}),C&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(K.Z,{label:p("community:community.pin.to.top"),handleChange:e=>{ee("isPinned",e)},initValue:null!==(l=en("isPinned"))&&void 0!==l&&l}),(0,a.jsx)(H.Z,{handleIsReservationChange:es,handleRegisteredAtChange:ed,handleRegisteredAtCancel:()=>{let e=q("publishedAt");e?k(e):(ee("publishedAt",void 0),k(""))},handleRegisteredAtComplete:e=>{ee("publishedAt",null!=e?e:_)},isReservation:en("isReservation"),registeredAt:_?Q()(_).format("YYYY-MM-DD.(ddd) a hh:mm"):"",description:p("community:community.max.reserved.posts")})]})]}),(0,a.jsx)(z,{}),(0,a.jsx)(O.Z,{buttons:[...m?[]:[{label:p("community:community.save.draft"),handleClick:el,disabled:(null===(t=en("title"))||void 0===t?void 0:t.length)===0&&(null===(i=en("youtubeVideoUrl"))||void 0===i?void 0:i.length)===0&&(null===(o=(0,B.M)(en("description")))||void 0===o?void 0:o.length)===0}],{label:m?p("community:community.edit"):en("isReservation")?p("community:community.reserve"):p("community:community.register"),handleClick:()=>{},buttonType:"submit",disabled:P||E}]})]})},et=i(99792),ei=i(82653),eo=!0,en=(o=()=>{let{t:e}=(0,L.$G)(["community"]),t=(0,C.Z)("smDesktop"),i=(0,D.useRouter)(),{data:o}=(0,G.KS)(),{data:n}=(0,G.q9)({enabled:null==o?void 0:o.isExists}),r=i.query.id,{data:s}=(0,G.tn)(r),d=r?{boardId:null==s?void 0:s.board.id,title:null==s?void 0:s.title,de
1scription:null==s?void 0:s.description,publishedAt:Q()(null==s?void 0:s.publishedAt).isAfter()?null==s?void 0:s.publishedAt:void 0,isReservation:Q()(null==s?void 0:s.publishedAt).isAfter(),isTopFeed:!1,canComment:null==s?void 0:s.canComment,youtubeVideoId:null==s?void 0:s.youtubeVideoId,youtubeVideoUrl:null==s?void 0:s.youtubeVideoUrl,isPinned:null==s?void 0:s.isPinned,temporaryArticleId:null==n?void 0:n.temporaryArticleId}:(null==o?void 0:o.isExists)?null==n?void 0:n.temporaryArticle:void 0;return(0,a.jsxs)(l.Z,{className:"community",children:[(0,a.jsx)("h1",{className:"a11y",children:"WEMIX Community"}),t&&(0,a.jsx)(et.Z,{title:e("community:community.post"),goBack:()=>i.back()}),(0,a.jsx)(ee,{defaultValue:d,temporaryArticleId:null==n?void 0:n.temporaryArticleId,postId:r})]})},n="/community",function(e){let{push:t}=(0,D.useRouter)(),{openModal:i,closeAll:l}=(0,s.B)(),[r,d]=(0,w.useState)(!1),{isLogin:c}=(0,ei.PB)();return(0,w.useEffect)(()=>{if(r&&!c){i({type:"Common/Default",props:{title:"ì§ê° ì°ê²°ì´ íìí©ëë¤.",buttonText:"íì¸",onClick:()=>{l(),t(n)}}});return}},[r,c]),(0,w.useEffect)(()=>{d(!0)},[]),(0,a.jsx)(o,{...e})})},45300:function(e,t,i){"use strict";var o=i(11527),n=i(93149),a=i.n(n),l=i(50959),r=i(96432),s=i(72213),d=i.n(s),c=i(24113);let u=a().bind(d());t.Z=e=>{let{customClassNames:t,isOpen:i,setIsOpen:n,showCloseIcon:a=!0,onClose:s,children:d=(0,o.jsx)("div",{children:"Slide Popup"}),backgroundColor:m,closeOnClose:p=!0,closeOnOverlayClick:g=!0,blockScroll:h=!1,styles:y}=e;return(0,l.useEffect)(()=>{if(h)return i?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}},[i,h]),(0,o.jsx)(r.Z,{open:i,onClose:()=>{null==s||s(),p&&(null==n||n(!1))},classNames:{root:u("root",null==t?void 0:t.root),overlay:u("overlay",null==t?void 0:t.overlay),modalContainer:u("container",null==t?void 0:t.modalContainer,{open:i}),modal:u("inner",null==t?void 0:t.modal),closeButton:u("close-btn"),modalAnimationIn:u("slide-modal-in"),modalAnimationOut:u("slide-modal-out")},styles:{...y,modal:{backgroundColor:m,...null==y?void 0:y.modal}},closeIcon:a?(0,o.jsx)(c.Z,{iconName:"icon_common_close",width:16,height:16}):void 0,showCloseIcon:a,closeOnOverlayClick:g,blockScroll:!1,children:(0,o.jsx)("div",{style:{height:"100%"},children:d})})}},62302:function(e,t,i){"use strict";i.d(t,{w:function(){return n}});var o=i(98429);let n=async function(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=new FormData;return a.append("file",e),a.append("container",t),a.append("path",i),n&&a.append("useThumb","true"),await o.Mc.post("/social/file/image",a).then(e=>e.data.result)||""}},92919:function(e,t,i){"use strict";i.d(t,{l:function(){return o},q:function(){return n}});let o=e=>{let t=/(?:https?:)?(?:\/\/)?(?:[0-9A-Z-]+\.)?(?:youtu\.be\/|youtube(?:-nocookie)?\.com\S*?[^\w\s-])([\w-]{11})(?=[^\w-]|$)(?![?=&+%\w.-]*(?:['"][^<>]*>|<\/a>))[?=&+%\w.-]*/gim.exec(e);return!!t&&11==t[1].length&&t[1]},n=e=>e.replace(/[^ê°-í£\u3131-\u314E\u314F-\u3163a-zA-Z0-9\s]/g,"")},24401:function(e){e.exports={"background-state-hover":"rgba(0,0,0,.07)","background-state-pressed":"rgba(0,0,0,.12)","bg-dark":"#0c0b11","bg-dark-ecosystem":"#000",black:"#000","color-chart01":"#7c7bff","color-chart02":"#2ab7e5","color-chart03":"#f7387d","color-decrease":"#ff3838","color-increase":"#27c683",gray00:"#161519",gray10:"#1d1c21",gray100:"#fff",gray20:"#32323c",gray30:"#484a57",gray40:"#5d606d",gray50:"#737985",gray60:"#8c939d",gray70:"#a6adb5",gray80:"#cbd2d9",gray90:"#eaeef2","header-height-desktop":"60px","header-height-mobile":"48px","opacity-black10":"rgba(0,0,0,.1)","opacity-black5":"rgba(0,0,0,.05)","opacity-white10":"hsla(0,0%,100%,.1)","opacity-white20":"hsla(0,0%,100%,.2)","opacity-white5":"hsla(0,0%,100%,.05)","opacity-white50":"hsla(0,0%,100%,.5)",white:"#fff","editor-wrapper":"Editor_editor-wrapper__7KzSW",count:"Editor_count__VkTrx"}},19036:function(e){e.exports={"background-state-hover":"rgba(0,0,0,.07)","background-state-pressed":"rgba(0,0,0,.12)","bg-dark":"#0c0b11","bg-dark-ecosystem":"#000",black:"#000","color-chart01":"#7c7bff","color-chart02":"#2ab7e5","color-chart03":"#f7387d","color-decrease":"#ff3838","color-increase":"#27c683",gray00:"#161519",gray10:"#1d1c21",gray100:"#fff",gray20:"#32323c",gray30:"#484a57",gray40:"#5d606d",gray50:"#737985",gray60:"#8c939d",gray70:"#a6adb5",gray80:"#cbd2d9",gray90:"#eaeef2","header-height-desktop":"60px","header-height-mobile":"48px","opacity-black10":"rgba(0,0,0,.1)","opacity-black5":"rgba(0,0,0,.05)","opacity-white10":"hsla(0,0%,100%,.1)","opacity-white20":"hsla(0,0%,100%,.2)","opacity-white5":"hsla(0,0%,100%,.05)","opacity-white50":"hsla(0,0%,100%,.5)",white:"#fff",wrap:"EditorSet_wrap__5hQJs",label:"EditorSet_label__9d7MC"}},54352:function(e){e.exports={"background-state-hover":"rgba(0,0,0,.07)","background-state-pressed":"rgba(0,0,0,.12)","bg-dark":"#0c0b11","bg-dark-ecosystem":"#000",black:"#000","color-chart01":"#7c7bff","color-chart02":"#2ab7e5","color-chart03":"#f7387d","color-decrease":"#ff3838","color-increase":"#27c683",gray00:"#161519",gray10:"#1d1c21",gray100:"#fff",gray20:"#32323c",gray30:"#484a57",gray40:"#5d606d",gray50:"#737985",gray60:"#8c939d",gray70:"#a6adb5",gray80:"#cbd2d9",gray90:"#eaeef2","header-height-desktop":"60px","header-height-mobile":"48px","opacity-black10":"rgba(0,0,0,.1)","opacity-black5":"rgba(0,0,0,.05)","opacity-white10":"hsla(0,0%,100%,.1)","opacity-white20":"hsla(0,0%,100%,.2)","opacity-white5":"hsla(0,0%,100%,.05)","opacity-white50":"hsla(0,0%,100%,.5)",white:"#fff",switch:"Switch_switch__ZOwQz","toggle-button":"Switch_toggle-button__yWcbk",circle:"Switch_circle__t9dRZ",active:"Switch_active__ecqrH",disabled:"Switch_disabled__BfinD"}},72213:function(e){e.exports={"background-state-hover":"rgba(0,0,0,.07)","background-state-pressed":"rgba(0,0,0,.12)","bg-dark":"#0c0b11","bg-dark-ecosystem":"#000",black:"#000","color-chart01":"#7c7bff","color-chart02":"#2ab7e5","color-chart03":"#f7387d","color-decrease":"#ff3838","color-increase":"#27c683",gray00:"#161519",gray10:"#1d1c21",gray100:"#fff",gray20:"#32323c",gray30:"#484a57",gray40:"#5d606d",gray50:"#737985",gray60:"#8c939d",gray70:"#a6adb5",gray80:"#cbd2d9",gray90:"#eaeef2","header-height-desktop":"60px","header-height-mobile":"48px","opacity-black10":"rgba(0,0,0,.1)","opacity-black5":"rgba(0,0,0,.05)","opacity-white10":"hsla(0,0%,100%,.1)","opacity-white20":"hsla(0,0%,100%,.2)","opacity-white5":"hsla(0,0%,100%,.05)","opacity-white50":"hsla(0,0%,100%,.5)",white:"#fff",root:"SlidePopup_root__Gbfcr",overlay:"SlidePopup_overlay__iQIYV",container:"SlidePopup_container__Fwa5B",open:"SlidePopup_open__rL8tp",fadeInUp:"SlidePopup_fadeInUp__01XpP",inner:"SlidePopup_inner__t8emA","close-btn":"SlidePopup_close-btn__V2gws","slide-modal-in":"SlidePopup_slide-modal-in__V_Zts","slide-modal-out":"SlidePopup_slide-modal-out___0YLS"}},29449:function(){},32017:function(e){e.exports=function(e,t){(t=t||{}).listUnicodeChar=!!t.hasOwnProperty("listUnicodeChar")&&t.listUnicodeChar,t.stripListLeaders=!t.hasOwnProperty("str
1ipListLeaders")||t.stripListLeaders,t.gfm=!t.hasOwnProperty("gfm")||t.gfm,t.useImgAltText=!t.hasOwnProperty("useImgAltText")||t.useImgAltText,t.abbr=!!t.hasOwnProperty("abbr")&&t.abbr,t.replaceLinksWithURL=!!t.hasOwnProperty("replaceLinksWithURL")&&t.replaceLinksWithURL,t.htmlTagsToSkip=t.hasOwnProperty("htmlTagsToSkip")?t.htmlTagsToSkip:[],t.throwError=!!t.hasOwnProperty("throwError")&&t.throwError;var i=e||"";i=i.replace(/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/gm,"");try{t.stripListLeaders&&(i=t.listUnicodeChar?i.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,t.listUnicodeChar+" $1"):i.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),t.gfm&&(i=i.replace(/\n={2,}/g,"\n").replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/```(?:.*)\n([\s\S]*?)```/g,(e,t)=>t.trim())),t.abbr&&(i=i.replace(/\*\[.*\]:.*\n/,""));let e=/<[^>]*>/g;if(t.htmlTagsToSkip&&t.htmlTagsToSkip.length>0){let i=t.htmlTagsToSkip.join("|");e=RegExp(`<(?!/?(${i})(?=>|s[^>]*>))[^>]*>`,"g")}i=i.replace(e,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,t.useImgAltText?"$1":"").replace(/\[([\s\S]*?)\]\s*[\(\[].*?[\)\]]/g,t.replaceLinksWithURL?"$2":"$1").replace(/^(\n)?\s{0,3}>\s?/gm,"$1").replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s*( (.+))? +#+$|^(\n)?\s{0,}#{1,6}\s*( (.+))?$/gm,"$1$3$4$6").replace(/([\*]+)(\S)(.*?\S)??\1/g,"$2$3").replace(/(^|\W)([_]+)(\S)(.*?\S)??\2($|\W)/g,"$1$3$4$5").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/~(.*?)~/g,"$1")}catch(i){if(t.throwError)throw i;return console.error("remove-markdown encountered error: %s",i),e}return i}}},function(e){e.O(0,[3907,8779,7284,1152,6218,6432,1341,3930,348,1802,7780,6489,5171,9228,9174,9678,9245,2888,9774,179],function(){return e(e.s=92131)}),_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.