1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b19571ed-3d28-466d-8b24-623ead8857aa",e._sentryDebugIdIdentifier="sentry-dbid-b19571ed-3d28-466d-8b24-623ead8857aa")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6102],{20261:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/board/view/[id]",function(){return a(88879)}])},29834:function(e,t,a){"use strict";a.d(t,{Z:function(){return u}});var n=a(85893),o=a(67294),i=a(83253),l=a.n(i),s=a(72679),r=a(43221),c=a(14885),_=a(39159),m=a(58661),d=a.n(m);function u(e){let[t,a]=(0,o.useState)(!1),i=t=>{a(!1),e.setTrigger(!1),void 0!==e.modalData&&e.modalData.closeWindow&&_.R0(),void 0!==e.modalData&&e.modalData.refresh,e.closeBtnCallback&&e.closeBtnCallback()},c=()=>{e.appDownBtnCallback&&e.appDownBtnCallback(),window.open(e.appdownModalUrl)};return(0,o.useEffect)(()=>{a(e.trigger)},[e.trigger]),(0,n.jsxs)(l(),{isOpen:t,className:d().modalWrap,overlayClassName:d().dimmer,shouldCloseOnOverlayClick:e.shouldCloseOnOverlayClick,children:[(0,n.jsxs)("section",{className:d().description,children:[(0,n.jsxs)("p",{className:d().modal_title,children:["ë ìì¸í ì ë³´ë",(0,n.jsx)("br",{}),"첫차ì±ìì íì¸í´ë³´ì¸ì"]}),(0,n.jsxs)("section",{className:d().modal_msg,children:[(0,n.jsx)("p",{className:d().app_title,children:"첫차"}),(0,n.jsxs)("p",{className:d().app_text,children:[r.n2," ì´ì©ìì ì í"]}),(0,n.jsxs)("p",{className:d().app_rate,children:[(0,n.jsx)(s.LazyLoadImage,{src:"//img.chutcha.kr/files/webview/common/icon/icon-ic-star-on.svg",alt:"ë³ì "}),(0,n.jsx)(s.LazyLoadImage,{src:"//img.chutcha.kr/files/webview/common/icon/icon-ic-star-on.svg",alt:"ë³ì "}),(0,n.jsx)(s.LazyLoadImage,{src:"//img.chutcha.kr/files/webview/common/icon/icon-ic-star-on.svg",alt:"ë³ì "}),(0,n.jsx)(s.LazyLoadImage,{src:"//img.chutcha.kr/files/webview/common/icon/icon-ic-star-on.svg",alt:"ë³ì "}),(0,n.jsx)(s.LazyLoadImage,{src:"//img.chutcha.kr/files/webview/common/icon/icon-ic-star-on.svg",alt:"ë³ì "})]})]})]}),(0,n.jsxs)("section",{className:d().actions,children:[(0,n.jsx)("button",{onClick:()=>i(!1),className:"btn "+d().close_btn,children:"ì·¨ì"}),(0,n.jsx)("button",{onClick:()=>c(),className:"btn "+d().confirm_btn,children:"ì±ì¼ë¡ 보기"})]})]})}!1===c.bW()?l().setAppElement("#site_wrap"):l().setAppElement("body")},37099:function(e,t,a){"use strict";var n=a(85893),o=a(67294),i=a(25675),l=a.n(i),s=a(90389),r=a.n(s),c=a(93967),_=a.n(c);t.Z=e=>{let{onClickFunc:t}=e,a=(0,o.useCallback)(()=>{t&&t()},[t]),i=(0,o.useRef)(null);return(0,o.useEffect)(()=>{(null==i?void 0:i.current)&&((null==e?void 0:e.sizeType)&&i.current.classList.add(r()["".concat(null==e?void 0:e.sizeType)]),(null==e?void 0:e.colorType)&&i.current.classList.add(r()["".concat(null==e?void 0:e.colorType)]),(null==e?void 0:e.txtBold)&&i.current.classList.add(r()["txtweight_".concat(null==e?void 0:e.txtBold)]),(null==e?void 0:e.btnClass)&&(null==e?void 0:e.btnClass.length)&&e.btnClass.forEach(e=>{i.current.classList.add(e)}))},[e.btnClass,e.sizeType,e.colorType,e.txtBold,e.isDisabledClass,e.forPC]),(0,n.jsxs)("button",{ref:i,type:e.buttonType?e.buttonType:"button",className:_()(r().cc_btn,{[r().for_pc]:!!e.forPC},{[r().rounded_style]:!!e.roundedStyle},{[r().disabled]:!!e.isDisabledClass},{[r()[e.sizeType]]:!!e.sizeType}),title:e.buttonTitle?e.buttonTitle:"".concat(e.buttonText," ë²í¼"),onClick:()=>{a()},disabled:!!e.isDisabled&&e.isDisabled,children:[(0,n.jsx)("p",{className:r().txt,children:e.buttonText}),e.iconImgSrc&&(0,n.jsx)("div",{className:r().ico_frame,style:e.iconImgSize?{...e.iconImgSize}:{},children:(0,n.jsx)(l(),{src:e.iconImgSrc,alt:e.iconImgAlt?e.iconImgAlt:"".concat(e.buttonText," ë²í¼ ìì´ì½"),fill:!0,style:{objectFit:"contain",objectPosition:"center"},quality:80})})]})}},86066:function(e,t,a){"use strict";a.d(t,{lQ:function(){return r}});var n=a(96179),o=a(11673),i=a(14070);let l={bucketName:"mrpic-img-bucket",bucketNameCommunity:"carmunity-img-bucket",region:"ap-northeast-2",identityPoolId:"ap-northeast-2:d4e428a6-8c64-4cf7-af09-497faafc5324"},s=new o.g({region:l.region,credentials:(0,n.s)({clientConfig:{region:l.region},identityPoolId:l.identityPoolId})}),r=async e=>{let t=e.filePath?e.filePath:"temp/",a={Bucket:"community"===e.bucketType?l.bucketNameCommunity:l.bucketName,Key:t+e.fileName,Body:e.body};(null==e?void 0:e.ACL)&&(a.ACL=e.ACL),(null==e?void 0:e.ContentType)&&(a.ContentType=e.ContentType);let n=new i.U({...a});try{let a=await s.send(n);if(200===a.$metadata.httpStatusCode)return t+e.fileName;return!1}catch(e){return console.error(e),!1}}},78472:function(e,t,a){"use strict";var n=a(85893),o=a(67294),i=a(11163),l=a(93967),s=a.n(l),r=a(74855),c=a(25675),_=a.n(c),m=a(48583),d=a(91444);a(22130);var u=a(43221),p=a(14885),h=a(39159),b=a(29834),g=a(35840),f=a.n(g),w=a(65460);t.Z=e=>{let{flow:t,listPath:a,appdownModalUrl:l,exceptQs:c,commentCount:g=0,commentTarget:x=null,currentUrl:y,viewListBtnFunc:v=()=>{},shareUrlBtnFunc:j=()=>{},viewCommentBtnFunc:N=()=>{},appDownModalCloseBtnFunc:C=()=>{},appDownModalViewAppBtnFunc:k=()=>{},...I}=e,D=(0,o.useRef)(null);(0,o.useEffect)(()=>{(null==I?void 0:I.addClass)&&(null==D?void 0:D.current)&&I.addClass.length>
10&&I.addClass.forEach(e=>D.current.classList.add(e))},[I.addClass]);let S=(0,i.useRouter)(),B=(0,o.useCallback)(()=>{let e=p.Mo(S.asPath),t=S.asPath.split("?")[0],a="";return"{}"===JSON.stringify(e)?a:void 0===c?a=S.asPath:(c.length>0&&c.map((t,a)=>{delete e[t]}),a=Object.keys(e).length>0?t+"?"+Object.entries(e).map(e=>e.join("=")).join("&"):t)},[c,S]),[T]=(0,o.useState)(y||u.QO+B()),[F,A]=(0,o.useState)(!1),L=()=>{(0,d.Am)("URLì´ ë³µì¬ëììµëë¤.")},P=(0,m.Dv)(w.vB),E=(0,o.useCallback)(()=>{v&&v(),"PC"===p.Pp()?"list"===t?S.back():S.push(a):P?"list"===t?h.R0():S.replace(a):A(!0)},[P,S,t,a,v]),O=(0,d.vU)({enter:"toast_basic fade_in",exit:"toast_basic fade_out"}),M=(0,o.useCallback)(()=>{g&&(null==x?void 0:x.current)&&window.scrollTo(0,document.documentElement.scrollTop+x.current.getBoundingClientRect().top),N&&N()},[g,x,N]);return(0,n.jsxs)("div",{className:f().ArticleFloatingBarWrap,ref:D,children:[(0,n.jsxs)("div",{className:f().floatInnerWrap,children:[(0,n.jsx)("div",{className:s()({[f().contGroup]:!0,[f().left]:!0}),children:(0,n.jsx)("button",{type:"button",className:f().listViewBtn,onClick:()=>E(),children:"목ë¡ë³´ê¸°"})}),(0,n.jsxs)("div",{className:s()({[f().contGroup]:!0,[f().right]:!0}),children:[!!g&&(0,n.jsxs)("button",{type:"button",title:"ëê¸ë³´ê¸° ë²í¼",className:f().commentViewBtn,onClick:()=>M(),children:[(0,n.jsx)("div",{className:f().ico_frame,children:(0,n.jsx)(_(),{src:"".concat(u.nx,"/files/webview/board/cont/icon_comment_black.png"),alt:"ë§íì ìì´ì½",fill:!0,style:{objectFit:"contain",objectPosition:"center left"},sizes:"66vw",quality:80})}),(0,n.jsx)("span",{children:"ëê¸"}),"\xa0",(0,n.jsx)("strong",{children:g})]}),(0,n.jsx)(r.CopyToClipboard,{text:T,onCopy:()=>{j&&j(),L()},children:(0,n.jsx)("button",{type:"button",className:f().shereUrlCopyBtn,children:"URL ê³µì "})})]})]}),(0,n.jsx)(d.Ix,{position:"bottom-center",className:"toastMsg new_style",style:{bottom:(null==D?void 0:D.current)?"".concat(D.current.offsetHeight,"px"):"0px"},theme:"dark",pauseOnFocusLoss:!1,pauseOnHover:!1,autoClose:2e3,hideProgressBar:!0,closeOnClick:!0,closeButton:!1,transition:O,limit:1}),(0,n.jsx)(b.Z,{trigger:F,setTrigger:e=>A(e),shouldCloseOnOverlayClick:!1,appdownModalUrl:l,closeBtnCallback:C,appDownBtnCallback:k})]})}},88879:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return ek},default:function(){return eI}});var n=a(85893),o=a(25675),i=a.n(o),l=a(9008),s=a.n(l),r=a(67294),c=a(93967),_=a.n(c),m=a(36492),d=a(48583),u=a(11163),p=a(65460),h=a(43221),b=a(14885),g=a(39159),f=a(32991),w=a(26731),x=a(37832),y=a(87066);let v=async e=>{let{id:t,userNo:a,orderBy:n}=e;a=a||0,n=n||"NEW";let o=await (0,y.Z)({url:"".concat(h.z_,"/boards/").concat(t,"/comments"),method:"GET",params:{userNo:a,orderBy:n}}).then(e=>({status:e.status,data:e.data})).catch(e=>(console.error("getCommentData error :: ",e),{status:e.status,data:null})),i=[];return 200===o.status&&200===Number(o.data.code)&&(i=o.data.data),i},j=async e=>{let{commentId:t,boardId:a,writerNo:n=0,comment:o="",parentCommentId:i=null,commentImages:l=[],delCommentImages:s=[]}=e,r={boardId:a,writerNo:n,comment:o,commentImages:l,delCommentImages:s};i&&(r={...r,parentCommentId:i}),t&&(r={...r,commentId:t});let c=await (0,y.Z)({url:t?"".concat(h.z_,"/comments/").concat(t):"".concat(h.z_,"/boards/").concat(a,"/comments/"),method:t?"PATCH":"POST",data:r}).then(e=>({status:e.status,data:e.data})).catch(e=>(console.error("postCommentData error :: ",e),{status:e.status,data:null}));return!!(Number(c.status)>=200&&400>Number(c.status))&&!!(Number(c.data.code)>=200&&400>Number(c.data.code))&&c.data.data},N=async e=>{let{commentId:t,userNo:a}=e;if(!t||!a)return console.warn("deleteCommentData required parameter :: \n\n - commentId: ".concat(t," \n\n - userNo: ").concat(a," \n\n ")),!1;let n=await (0,y.Z)({url:"".concat(h.z_,"/comments/").concat(t),method:"DELETE",params:{userNo:Number(a)}}).then(e=>({status:e.status,data:e.data})).catch(e=>(console.error("deleteCommentData error :: ",e),{status:e.status,data:null})),o=[];return 200===n.status&&200===Number(n.data.code)&&(o=n.data.data),o},C=async e=>{let{commentId:t,userNo:a}=e;if(!t||!a)return console.warn("postCommentLike required parameter :: \n\n - commentId: ".concat(t," \n\n - userNo: ").concat(a," \n\n ")),!1;let n=await (0,y.Z)({url:"".concat(h.z_,"/comments/").concat(t,"/like"),method:"POST",data:{userNo:a}}).then(e=>({status:e.status,data:e.data}
1)).catch(e=>(console.error("postCommentLike error :: ",e),{status:e.status,data:null}));return!!(Number(n.status)>=200&&400>Number(n.status))&&!!(Number(n.data.code)>=200&&400>Number(n.data.code))&&n.data.data},k=async e=>{let{commentId:t,userNo:a}=e;if(!t||!a)return console.warn("deleteCommentLike required parameter :: \n\n - commentId: ".concat(t," \n\n - userNo: ").concat(a," \n\n ")),!1;let n=await (0,y.Z)({url:"".concat(h.z_,"/comments/").concat(t,"/like"),method:"DELETE",data:{userNo:a}}).then(e=>({status:e.status,data:e.data})).catch(e=>(console.error("deleteCommentLike error :: ",e),{status:e.status,data:null}));return!!(Number(n.status)>=200&&400>Number(n.status))},I=async(e,t,a)=>{let n=await (0,y.Z)({url:"".concat(h.z_,"/boards/").concat(e,"?isPreview=").concat(null!=t?t:"","&isViewCount=").concat(null!=a?a:0),method:"GET"}).then(e=>({status:e.status,data:e.data})).catch(e=>(console.error("get detail errror",e),{status:e.status,data:null})),o={};return 200===n.status&&200===Number(n.data.code)&&(o=n.data.data),o},D=async e=>{let{articleId:t,categoryId:a,uuId:n=""}=e,o=await (0,y.Z)({url:h.z_+"/boards/related/"+t,method:"GET",params:{boardId:Number(t),category:a,uuId:n}}).then(e=>({status:e.status,data:e.data})).catch(e=>({status:e.status,data:null})),i={};return 200===o.status&&200===Number(o.data.code)&&(i=o.data.data),i};var S=a(26637),B=a.n(S),T=a(91058),F=a.n(T),A=a(52502),L=a.n(A),P=a(92272),E=a(37354),O=a(60962),M=a(65381),U=a(5152),W=a.n(U);a(1796);var R=e=>{let[t,a]=(0,r.useState)({borderRadius:"4px"});return(0,r.useEffect)(()=>{!1===e.borderRadius&&a(e=>({...e,borderRadius:"0"})),e.style&&a(t=>({...t,...e.style}))},[e.borderRadius,e.style,a]),(0,n.jsx)("div",{className:L().img_frame,children:(0,n.jsx)(i(),{src:e.imgUrl,alt:e.alt?e.alt:e.imgUrl,fill:!0,style:t,quality:80})})};let q=W()(()=>Promise.all([a.e(7675),a.e(7304),a.e(1413),a.e(6911),a.e(3726),a.e(1776),a.e(7856),a.e(3380)]).then(a.bind(a,73380)).then(e=>e),{loadableGenerated:{webpack:()=>[73380]},ssr:!1});var V=e=>{var t,a;let[o,i]=(0,r.useState)(!1),[l,s]=(0,r.useState)([]);(0,r.useEffect)(()=>{(null==e?void 0:e.imgUrlArr)&&s(e.imgUrlArr.map((e,t)=>({imgUrl:e,alt:"본문 ì´ë¯¸ì§ ".concat(t)})))},[e.imgUrlArr]);let[c,_]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{e.imgClickEventBindFlag&&_(!0)},[e.imgClickEventBindFlag]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:L().board_detail_content,children:[o?null:e.plainText?(0,n.jsx)("p",{className:L().plain_text,children:e.plainText}):null,(0,n.jsx)(q,{initialValue:null!==(a=e.contentText)&&void 0!==a?a:"",retValue:e=>{i(e)},setIsLoadedBoardEditor:t=>e.setIsLoadedBoardEditor(t),imgClickEventBindFlag:c}),(null===(t=e.imgUrlArr)||void 0===t?void 0:t.length)>0&&(0,n.jsx)("div",{className:L().img_area,children:l.map((e,t)=>(0,n.jsx)(R,{imgUrl:e.imgUrl,alt:e.alt},t))})]})})},z=a(53207),Z=a.n(z),G=a(8624),Q=a.n(G),K=a(41664),X=a.n(K),H=a(2261),Y=a(99304);a(30889),a(46169);var J=a(31988),$=e=>
1{let[t,a]=(0,r.useState)(!1);(0,r.useEffect)(()=>{e.isTextWithIcon&&a(!0)},[e.isTextWithIcon]);let o=(0,r.useRef)(null);return(0,r.useEffect)(()=>{o.current&&(e.currentToggleDropBox?o.current.classList.add(Z().act):o.current.classList.remove(Z().act))},[e.currentToggleDropBox]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("button",{type:"button",title:e.buttonTitle?e.buttonTitle:"ë©ë´ ë보기",className:Z().drop_toggle_btn,onClick:()=>{e.toggleDropBox(!e.currentToggleDropBox)},ref:o,children:[!0===t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:Z().txt,children:e.txtBtn.label}),(0,n.jsx)("div",{className:_()(Z().ico_frame,Z().ico_frame_withtxt),children:(0,n.jsx)(i(),{src:e.txtBtn.btnImgSrc?e.txtBtn.btnImgSrc:"".concat(h.nx,"/files/webview/chutcha/common/ic_arr_line_black.svg"),alt:e.txtBtn.label,fill:!0,style:{objectFit:"contain",objectPosition:"center"},quality:80})})]}),!1===t&&(0,n.jsx)("div",{className:Z().ico_frame,children:(0,n.jsx)(i(),{src:e.btnImgSrc?e.btnImgSrc:"".concat(h.nx,"/files/webview/chutcha/common/ic_more.svg"),alt:"ë©ë´ ë보기",fill:!0,style:{objectFit:"contain",objectPosition:"center"},quality:80})})]})})},ee=e=>{let t=(0,b.O3)(()=>e.toggleDropBox(!1));return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("ul",{className:Z().drop_box_item_wrap,ref:t,children:e.dropItems.map((t,a)=>(0,n.jsx)("li",{className:Z().item,children:(0,n.jsx)("button",{type:"button",title:t.label,className:Z().txt_btn,onClick:()=>{t.clickFunc(),e.toggleDropBox(!1)},value:t.value?t.value:"",children:t.label})},a))})})},et=e=>{var t,a,o,l,s;let{sendGAEvent:c,...m}=e,[u,b]=(0,d.KO)(p.m6),f=(0,d.Dv)(p.vB),[w,x]=(0,r.useState)(!1),y=(0,r.useRef)(null);(0,r.useEffect)(()=>{m.isFixedReply&&y.current&&y.current.classList.add(Q().fixed_comment),m.isDepthComment&&y.current&&y.current.classList.add(Q().depth_comment),m.isShowCommentBtns&&!m.isFixedReply&&x(m.isShowCommentBtns)},[m.isFixedReply,m.isDepthComment,m.isShowCommentBtns]),(0,r.useEffect)(()=>{y.current&&m.addClass&&Array.isArray(m.addClass)&&m.addClass.forEach(e=>{y.current.classList.add(e)})},[m.addClass]);let[v,j]=(0,r.useState)(null),[N,I]=(0,r.useState)(m.contentImageList?m.contentImageList:[]);(0,r.useEffect)(()=>{I(m.contentImageList)},[m.contentImageList]);let[D,S]=(0,r.useState)(!1),B=e=>{S(e)},[T,F]=(0,r.useState)([]);(0,r.useEffect)(()=>{F(e=>{let t=[];return m.editButtonProps&&t.push({label:"ìì ",value:"",clickFunc:()=>{var e,t;null===(t=m.editButtonProps)||void 0===t||t.clickFunc(m.commentId===(null===(e=m.editButtonProps)||void 0===e?void 0:e.currentActValue)?0:m.commentId)}}),m.deleteButtonProps&&t.push({label:"ìì ",value:"",clickFunc:()=>{c&&c("reply_delete_try"),q("ëê¸ì ìì íìê² ìµëê¹?"),W(!0),z("confirm")}}),t})},[m.editButtonProps,m.deleteButtonProps,m.commentId,F,u,c]);let[A,L]=(0,r.useState)(!1);(0,r.useEffect)(()=>{L(m.userLikedComment)},[m.userLikedComment]);let P=async(e,t)=>{if(c("reply_like"),!1===m.checkAppInfoBeforeAct())return;let a=u?{user_no:u}:await g.Mj();if("0"!==a.user_no&&!isNaN(Number(a.user_no))){if(b(Number(a.user_no)),!e){console.warn("toggleLike commentId, userNo",e,t),q(h.W0),W(!0),z(null);return}if(!(A?await k({commentId:e,userNo:t}):await C({commentId:e,userNo:t}))){q(h.W0),W(!0),z(null);return}m.afterSubmitFunc()}},[O,M]=(0,r.useState)({name:"",profileImgUrl:""});(0,r.useEffect)(()=>{M(e=>{var t,a,n;return{...e,name:null!==(n=null===(t=m.writerInfo)||void 0===t?void 0:t.name)&&void 0!==n?n:"",profileImgUrl:(null===(a=m.writerInfo)||void 0===a?void 0:a.profile_path)?h.nx+m.writerInfo.profile_path:""}})},[m.writerInfo,M]);let[U,W]=(0,r.useState)(!1),[R,q]=(0,r.useState)(""),[V,z]=(0,r.useState)(null);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:_()(Q().comment_list,Q().webview_common_width_padding,{[Q().border_style_none]:!(0!==m.commentIndex)}),ref:y,"is-act-form":"".concat(m.isActForm),children:[(0,n.jsxs)("div",{className:Q().list_layout,children:[!0===m.isDepthComment&&(0,n.jsx)("div",{className:Q().ico_depth_frame,children:(0,n.jsx)("i",{className:_()(Q().ico,Q().ico_depth)})}),0===m.deleteFlag&&(0,n.jsxs)("ul",{className:Q().list_inner,children:[(0,n.jsxs)("li",{className:_()(Q().list_item_sec,Q().top_sec),children:[(0,n.jsxs)("div",{className:Q().user_profile_area,children:[(0,n.jsx)(J.Z,{profileImgUrl:O.profileImgUrl,userName:O.name,withDescription:!1,isEditor:(null==m?void 0:m.isEditor)===!0}),!0===m.isFixedReply&&(0,n.jsx)("div",{className:_()(Q().ico_writer_text,Q().ico_fixed_pin),children:(0,n.jsx)(i(),{src:h.nx+"/files/webview/common/icon/ic_pin_black.svg",alt:"ê³ ì ëê¸",fill:!0,style:{objectFit:"contain",objectPosition:"center"},sizes:"16px",quality:80})})]}),!0===m.isShowEditBtns&&(0,n.jsx)("div",{className:"reply_edit_btn_area",children:(0,n.jsxs)("div",{className:Z().drop_box_group,onClick:e=>{e.stopPropagation()},children:[(0,n.jsx)($,{toggleDropBox:B,currentToggleDropBox:D}),!0===D&&(0,n.jsx)(ee,{dropItems:T,toggleDropBox:B})]})})]}),(0,n.jsxs)("li",{className:_()(Q().list_item_sec,Q().mid_sec),children:[(0,n.jsxs)("div",{className:Q().comment_contents,children:[(0,n.jsx)("div",{className:Q().txt_frame,children:(0,n.jsx)("p",{className:_()(Q().txt,Q().comment_content),children:null!==(t=m.contentText)&&void 0!==t?t:""})}),N.length>0&&(0,n.jsx)("div",{className:Q().image_swiper_wrap,children:(0,n.jsx)(H.tq,{slidesPerView:"auto",freeMode:!0,modules:[Y.Rv],className:Q().comment_image_swiper,onSwiper:j,observer:!0,children:N.map((e,t)=>(0,n.jsx)(H.o5,{className:_()(Q().comment_image_slide),children:(0,n.jsx)(X(),{href:"".concat(f?"burl":"").concat(h.QO,"/board/imageView?url=").concat(encodeURIComponent("".concat(h.hu,"/").concat(e))),legacyBehavior:!0,children:(0,n.jsx)("a",{target:"_blank",rel:"noreferrer",className:_()({[Q().img_frame]:!0,[Q().auto_width_image]:N.length>1,[Q().auto_height_image]:N.length<2}),children:(0,n.jsx)(i(),{className:Q().auto_image,src:h.hu+"/"+e+"?s=160x240&t=outside&wm=n",alt:"ì´ë¯¸ì§ "+t,fill:!0,sizes:"33vw",priority:!0,placeholder:"empty",quality:100})})})},t))})})]}),!w&&(0,n.jsx)("div",{className:Q().comment_btns,children:(0,n.jsx)("div",{className:_()(Q().btn_group,Q().btn_group_left),children:(0,n.jsx)("span",{className:_()(Q().txt,Q().txt_reg_date),children:null!==(a=m.regDate)&&void 0!==a?a:""})})}),!0===w&&(0,n.jsxs)("div",{className:Q().comment_btns,children:[(0,n.jsxs)("div",{className:_()(Q().btn_group,Q().btn_group_left),children:[(0,n.jsx)("span",{className:_()(Q().txt,Q().txt_reg_date),children:null!==(o=m.regDate)&&void 0!==o?o:""}),!m.isDepthComment&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:_()(Q().txt,Q().txt_middot),children:"\xb7"}),(0,n.jsx)("button",{type:"button",title:"ëµê¸ì°ê¸° ë²í¼",onClick:()=>{var e,t;return null===(t=m.replyButtonProps)||void 0===t?void 0:t.clickFunc(m.commentId===(null===(e=m.replyButtonProps)||void 0===e?void 0:e.currentActValue)?0:m.commentId)},children:(0,n.jsx)("span",{className:_()(Q().txt,Q().txt_reg_date),children:"ëµê¸ì°ê¸°"})})]})]}),(0,n.jsxs)("div",{className:_()(Q().btn_group,Q().btn_group_right),children:[(0,n.jsxs)("button",{type:"button",title:"ê³µê° ë²í¼",onClick:()=>{P(Number(m.commentId),Number(u))},children:[(0,n.jsx)("div",{className:Q().ico_frame,children:(0,n.jsx)(i(),{src:!0===A?h.nx+"/files/webview/chutcha/common/ic_likes_fill_red.svg":h.nx+"/files/webview/chutcha/common/ic_likes_line.svg",alt:"ê³µê° ë²í¼ ì
ëë¤. ë²í¼ì ë르면 ì´ ëê¸ì ê³µê°ì íìí©ëë¤.",fill:!0,style:{objectFit:"contain",objectPosition:"center"},quality:80})}),(0,n.jsx)("span",{className:_()(Q().txt,Q().txt_cnt),children:null!==(l=m.likeCnt)&&void 0!==l?l:0})]}),!m.isDepthComment&&(0,n.jsxs)("button",{type:"button",title:"ëµê¸ì°ê¸° ë²í¼",onClick:()=>{var e,t;return null===(t=m.replyButtonProps)||void 0===t?void 0:t.clickFunc(m.commentId===(null===(e=m.replyButtonProps)||void 0===e?void 0:e.currentActValue)?0:m.commentId)},children:[(0,n.jsx)("div",{className:Q().ico_frame,children:(0,n.jsx)(i(),{src:h.nx+"/files/webview/chutcha/common/ic_talk_line.svg",alt:"ëµê¸ì°ê¸° ë²í¼ ì
ëë¤. ë²í¼ì ë르면 ì´ ëê¸ì ëµê¸ì ìì±í©ëë¤.",fill:!0,style:{objectFit:"contain",objectPosition:"center"},quality:80})}),(0,n.jsx)("span",{className:_()(Q().txt,Q().txt_cnt),children:null!==(s=m.replyCnt)&&void 0!==s?s:0})]})]})]})]})]}),1===m.deleteFlag&&(0,n.jsx)("div",{className:Q().deleteCommentWrap,children:(0,n.jsx)("p",{children:"ëê¸ì´ ìì ëììµëë¤."})}),2===m.deleteFlag&&(0,n.jsx)("div",{className:Q().deleteCommentWrap,children:(0,n.jsx)("p",{children:"ê´ë¦¬ì
1ì ìí´ ìì ëììµëë¤."})})]}),(0,n.jsx)(E.Z,{trigger:U,setTrigger:e=>W(e),shouldCloseOnOverlayClick:!0,modalType:V,modalMsg:R,confirmBtnCallback:()=>{var e;null===(e=m.deleteButtonProps)||void 0===e||e.clickFunc(m.commentId,u)}})]})})},ea=a(63820),en=a.n(ea),eo=e=>{let t=(0,r.useRef)(null);return(0,r.useEffect)(()=>{(null==e?void 0:e.addClassArr)&&(null==t?void 0:t.current)&&e.addClassArr.forEach(e=>{t.current.classList.add(en()[e])})},[e.addClassArr]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:_()(en().photo_list_wrap),ref:t,children:(0,n.jsx)("ul",{className:en().photo_list,children:e.imgData.map((t,a)=>(0,n.jsxs)("li",{className:en().photo_item,children:[(0,n.jsx)("div",{className:en().img_frame,children:(0,n.jsx)(i(),{src:"".concat(h.hu,"/").concat(t,"?s=150x150&wm=n"),alt:"ì
ë¡ëí ì´ë¯¸ì§ ".concat(a),fill:!0,style:{objectFit:"cover",objectPosition:"center"},sizes:"11vw",priority:!0,quality:80})}),(0,n.jsx)("button",{type:"button",onClick:()=>{e.handleImgDelete(a)},title:"ì´ë¯¸ì§ ìì ",children:(0,n.jsx)("div",{className:en().ico_frame,children:(0,n.jsx)(i(),{src:h.nx+"/files/webview/common/icon/ic-x-white-thinline.svg",alt:"ì´ë¯¸ì§ ìì ",fill:!0,style:{objectFit:"contain",objectPosition:"center"},sizes:"11vw",quality:80})})})]},"uploadImage".concat(a)))})})})},ei=a(86066),el=e=>{let t=(0,r.useRef)(null),a=e.acceptFiles?e.acceptFiles:"image/png, image/gif, image/jpeg",o=!!e.multipleUpload&&e.multipleUpload,[l,s]=(0,r.useState)(e.imgData?e.imgData:[]);(0,r.useEffect)(()=>{e.changeImgData(l)},[l]),(0,r.useEffect)(()=>{s(e.imgData)},[e.imgData]);let c=async n=>{let o="";t.current.files=new DataTransfer().files;let i=Array.from(n),r=[...i],c=a.split(",").map(e=>e.trim()),_=i.map(e=>c.includes(e.type)),m=i.map((e,t)=>{if(!c.includes(e.type))return t}).join(",");_.includes(!1)&&(r=i.filter((e,t)=>!m.includes(String(t))),o=c.map(e=>{let t=e.split("/");return t[t.length-1]}).join(", ")+" íìì íì¼ë§ ì
ë¡ë í ì ììµëë¤.");let d=l?l.length:0,u=e.maxCnt,p=d+r.length;p>u&&(r=r.slice(0,-((p-u)*1)),o="íì¼ ì
ë¡ëë<br />"+u+"ê°ê¹ì§ ê°ë¥í©ëë¤."),e.changeIsLoading(!0);let h=await Promise.all(r.map(async t=>{let a=(0,b.xb)(t.name),n={bucketType:"community",fileName:(0,b.O1)()+a,body:t,filePath:e.s3UploadTempPath?e.s3UploadTempPath:null},o=await ei.lQ(n);if(o)return o}));return(s([...l,...h]),e.changeIsLoading(!1),o)?(e.changeFileErrorMessage(o),e.handleModalOpen(!0),!1):h.length<r.length?(e.changeFileErrorMessage("ì
ë¡ë ì¤ ì¤ë¥ê° ë°ìíììµëë¤."),e.handleModalOpen(!0),!1):void 0};return(0,n.jsxs)("div",{className:_()(en().photo_upload_area,"photo_upload_area"),children:[e.titleText&&(0,n.jsxs)("p",{className:en().photo_upload_area_title,children:[e.titleText,e.titleFlagLabel&&(0,n.jsx)("span",{children:e.titleFlagLabel})]}),(0,n.jsxs)("div",{className:_()(en().upload_btn_wrap,"upload_btn_wrap"),children:[(0,n.jsx)("input",{type:"file",id:"attachFile",name:"attachFile",multiple:o,accept:a,onChange:e=>{c(e.target.files)},ref:t}),(0,n.jsx)("label",{htmlFor:"attachFile",className:en().upload_btn?"on":"",children:(0,n.jsx)("span",{className:_()(en().inner,"inner"),children:(0,n.jsx)(i(),{src:e.fileIconUrl?e.fileIconUrl:"".concat(h.nx,"/files/webview/common/icon/ic_gallery.svg"),alt:"íì¼ ì²¨ë¶ ë²í¼",width:40,height:40,priority:!0,quality:80})})})]})]})},es=a(37099),er=a(80010),ec=e=>{let{boardId:t,parentCommentId:a,isModify:o=!1,afterNotiSetFunc:i,...l}=e,[s,c]=(0,d.KO)(p.m6),[m,u]=(0,d.KO)(p.vB),[f,w]=(0,d.KO)(p.SB),[x,y]=(0,d.KO)(p.Ud),[v,N]=(0,d.KO)(p.I1),C=(0,r.useRef)(null),[k,I]=(0,r.useState)(l.imgData?l.imgData:[]),[D,S]=(0,r.useState)([]),[B,T]=(0,r.useState)(l.inputTextValue?l.inputTextValue:""),[F,A]=(0,r.useState)(!1),[L,P]=(0,r.useState)("");(0,r.useEffect)(()=>{let e="";0===B.replaceAll(" ","").length&&(e="3ê¸ì ì´ì ì
ë ¥í´ì£¼ì¸ì."),B.replaceAll(/\n/g,"").length<3&&(e="3ê¸ì ì´ì ì
ë ¥í´ì£¼ì¸ì."),P(e),A(!e)},[B]);let[E,O]=(0,r.useState)(l.isShowCancelButton);(0,r.useEffect)(()=>{"boolean"==typeof l.isShowCancelButton&&O(l.isShowCancelButton)},[l.isShowCancelButton]);let[M,U]=(0,r.useState)(!0),[W,R]=(0,r.useState)(!1),[q,V]=(0,r.useState)(!1),[z,Z]=(0,r.useState)(!1),[G,K]=(0,r.useState)(!0),[X,H]=(0,r.useState)(!1),Y=async()=>
1{let e={isShowToast:M},t=[];300>=Number(String(v).substring(0,5).replaceAll(".",""))?(W&&t.push("marketingPush"),q&&t.push("newsPush"),z&&t.push("personPush"),G&&t.push("communityPush"),e.types=t):(W&&t.push({pushCategory:"mkt",answer:"permit",surface:"checkbox",route:"ëê¸ ì림"}),q&&t.push({pushCategory:"news",answer:"permit",surface:"checkbox",route:"ëê¸ ì림"}),z&&t.push({pushCategory:"personal",answer:"permit",surface:"checkbox",route:"ëê¸ ì림"}),G&&t.push({pushCategory:"community",answer:"permit",surface:"checkbox",route:"ëê¸ ì림"}),e.info=t),J(await g.ww(e)),G&&g._b(JSON.stringify([{type:"set",dataType:"bool",name:"push_allowed_community",value:G}]))},J=e=>{Object.prototype.hasOwnProperty.call(e,"user_no")&&c(e.user_no),Object.prototype.hasOwnProperty.call(e,"user_type")&&y(e.user_type);let t={};Object.prototype.hasOwnProperty.call(e,"is_allowed_notification")&&Object.prototype.hasOwnProperty.call(e,"is_allowed_marketing")&&Object.prototype.hasOwnProperty.call(e,"is_allowed_news")&&Object.prototype.hasOwnProperty.call(e,"is_allowed_person")&&Object.prototype.hasOwnProperty.call(e,"is_allowed_community")&&w(t={...t,isAllowedNotification:!("true"!==e.is_allowed_notification),isAllowedMarketing:!("true"!==e.is_allowed_marketing),isAllowedNews:!("true"!==e.is_allowed_news),isAllowedPerson:!("true"!==e.is_allowed_person),isAllowedCommunity:!("true"!==e.is_allowed_community)})},$=async()=>{await b._v(250);let e=!0,t=0;if(0===Object.keys(f).length)e=!1;else{W&&f.isAllowedMarketing&&t++,q&&f.isAllowedNews&&t++,z&&f.isAllowedPerson&&t++,G&&s&&f.isAllowedCommunity&&t++;let a=0;W&&a++,q&&a++,z&&a++,G&&a++,a-t==0&&(e=!1),m||(e=!1),!1===f.isAllowedNotification&&(e=!0)}H(e)};(0,r.useEffect)(()=>{$()},[m,f]);let[ee,et]=(0,r.useState)(!1),[ea,en]=(0,r.useState)(!1),ei=async()=>{if(en(!0),!F&&L){l.changeModalMessage(L),l.changeModalOpen(!0),en(!0);return}let e={boardId:Number(t),writerNo:s,comment:B,commentImages:null!=k?k:[],delC
1ommentImages:null!=D?D:[]};a&&(e={...e,parentCommentId:a}),o&&(e={...e,commentId:l.commentId});let n=await j({...e});n&&n?setTimeout(()=>{l.afterSubmitFunc(),en(!1)},500):(l.changeModalMessage(h.W0),l.changeModalOpen(!0),en(!1)),X&&ee&&(Y(),i&&i())},ec=e=>{let t=k[e],a=[...k];a.splice(e,1),D.push(t),I(a),S(D)};return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:Q().comment,children:[(0,n.jsx)("div",{className:_()(Q().comment_wrap,Q().comment_write_wrap,Q().on),ref:C,children:(0,n.jsxs)("ul",{className:Q().input_group,children:[(0,n.jsx)("li",{className:Q().textarea_frame,children:(0,n.jsx)("textarea",{className:Q().input_textarea,name:"",id:"",placeholder:"ìì¤, ë¹ë°©, ê´ê³ ë° ë´ì©ê³¼ 무ê´í ëê¸ì í¼í´ì£¼ì¸ì. ì´ì ì ì±
ì ë°ë¼ ìì ëê±°ë ì íë ìë ìì´ì",defaultValue:B,onChange:e=>{T(e.target.value)},onKeyUp:e=>{T(e.currentTarget.value)},onKeyDown:e=>{T(e.currentTarget.value)}})}),k.length>0&&(0,n.jsx)("li",{className:Q().img_thumb_list_frame,children:(0,n.jsx)(eo,{imgData:k,handleImgDelete:e=>{ec(e)},addClassArr:["comment_thumb_list"]})}),(0,n.jsxs)("li",{className:Q().btn_group_frame,children:[(0,n.jsx)("div",{className:_()(Q().btn_group,Q().btn_group_left),children:(0,n.jsx)("div",{className:_()(Q().btn_frame,Q().file_btn_frame),children:(0,n.jsx)(el,{isCommunity:!0,imgData:k,changeImgData:e=>{I(e)},maxCnt:3,permitExtention:"image/png, image/jpeg, image/gif",titleFlagLabel:!1,changeIsLoading:l.changeIsLoading,handleModalOpen:l.changeModalOpen,changeFileErrorMessage:l.changeModalMessage,addClassArr:["only_btn"],multipleUpload:!0,fileIconUrl:"".concat(h.nx,"/files/webview/common/icon/ic_camera_line_block.svg")})})}),(0,n.jsxs)("div",{className:_()(Q().btn_group,Q().btn_group_right),children:[!0===E&&(0,n.jsx)("div",{className:_()(Q().btn_frame,Q().txt_btn_frame),children:(0,n.jsx)(es.Z,{buttonType:"button",buttonTitle:"ì·¨ì",buttonText:"ì·¨ì",onClickFunc:()=>{var e;null===(e=l.cancelButtonProps)||void 0===e||e.clickFunc(0)},btnClass:[],sizeType:"small",colorType:"white"})}),(0,n.jsx)("div",{className:_()(Q().btn_frame,Q().txt_btn_frame),children:(0,n.jsx)(es.Z,{buttonType:"button",buttonTitle:l.submitBtnLabelTxt?l.submitBtnLabelTxt:"ë±ë¡",buttonText:l.submitBtnLabelTxt?l.submitBtnLabelTxt:"ë±ë¡",onClickFunc:()=>{ei()},btnClass:[],sizeType:"small",colorType:"blue",isDisabledClass:!F||ea,isDisabled:!F||ea})})]})]})]})}),X&&(0,n.jsx)("div",{className:Q().comment_checkbox_frame,children:(0,n.jsx)(er.Z,{elementId:"ckCommentAlim",msg:"ëê¸ ì림ì ë°ìê²ì",elementName:"ckCommentAlim",isChecked:ee,inputAction:()=>et(!ee)})})]})})},e_=e=>{var t;let a=(0,r.useRef)(null),o=(0,r.useCallback)(()=>{let t=e.selectValueArr.find(t=>t.value!==e.currentValue.value);e.changeSelectedValue(t)},[e.currentValue,e.selectValueArr]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("button",{type:"button",title:e.buttonTitle?e.buttonTitle:"ë©ë´ ë보기",className:Z().drop_toggle_btn,onClick:()=>{o()},ref:a,children:[(0,n.jsx)("p",{className:Z().txt,children:null===(t=e.currentValue)||void 0===t?void 0:t.label}),(0,n.jsx)("div",{className:_()(Z().ico_frame,Z().ico_frame_withtxt),children:(0,n.jsx)(i(),{src:e.btnImgSrc?e.btnImgSrc:"".concat(h.nx,"/files/webview/chutcha/common/ic_arr_line_black.svg"),alt:e.currentValue.label,fill:!0,style:{objectFit:"contain",objectPosition:"center"},quality:80})})]})})},em=a(29834),ed=a(89755),eu=a.n(ed);a(22130);var ep=a(36386),eh=a.n(ep),eb=e=>{let{btnStr:t,btnIcon:a,clickFunc:o,...i}=e,[l,s]=(0,r.useState)(t||""),[c,m]=(0,r.useState)(a||"".concat(h.nx,"/files/webview/common/icon/arrow_line_down_black.svg"));return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:_()(eh().btn_frame),children:(0,n.jsxs)("button",{type:"button",title:l,className:eh().btn_show_more,onClick:()=>o(),children:[l,(0,n.jsx)("div",{className:eh().ico_frame,children:(0,n.jsx)(eu(),{src:c,alt:"".concat(l," ìì´ì½"),width:"100",height:"100",layout:"responsive",quality:80})})]})})})})};let eg=e=>{let{totalRenderCnt:t,totalAllCommentCnt:a,fixedCommentCnt:n,mainCommentCnt:o}=e,i={fixedComment:0,mainComment:0};return t===a?(i.fixedComment=n,i.mainComment=o):n>5?(i.fixedComment=t,i.mainComment=0):(i.fixedComment=n,i.mainComment=t-n),i};var ef=e=>{let{changeIsLoading:t,changeModalMessage:a,changeModalOpen:o,boardDetailInfo:l,commentListSort:s,userNo:c,fixedCommentData:m=[],commentData:u=[],getDataAction:b,commentTotalCnt:w=0,gaEventName:x="",...y}=e,[v,j]=(0,r.useState)(!1),C=(0,d.Dv)(p.vB),[k,I]=(0,d.KO)(p.m6),[D,S]=(0,r.useState)(l.boardId),[B,T]=(0,r.useState)(s||"NEW"),[F,A]=(0,r.useState)(m),[L,P]=(0,r.useState)(u),[E,O]=(0,r.useState)([{label:"ìµì ì",value:"NEW"},{label:"ê³µê°ì",value:"LIKE"}]),[M,U]=(0,r.useState)({label:"ìµì ì",value:"NEW"}),W=()=>{b({id:D,userNo:k,orderBy:M.value})};(0,r.useEffect)(()=>{W()},[D,k,B,M]);let R=()=>!1===C?(j(!0),!1):(j(!1),!0),q=(0,r.useCallback)(e=>{x&&D&&f.P8(x,{event_action:"click",event_category:"contents_".concat(D,"_").concat(e)})},[x,D]),V=(0,r.useCallback)(async()=>
1{if(!Number(k)){let e=await g.Mj();return Object.prototype.hasOwnProperty.call(e,"user_no")&&I(e.user_no),e}},[k,I]),[z,G]=(0,r.useState)(!1),K=async e=>{if(!1===R())return;let t=k?{user_no:k}:await g.Mj();"0"===t.user_no||isNaN(Number(t.user_no))||(I(Number(t.user_no)),$(0),H(0),G(e))},[X,H]=(0,r.useState)(0),Y=async e=>{if(!1===R())return;let t=k?{user_no:k}:await g.Mj();"0"!==t.user_no&&!isNaN(Number(t.user_no))&&(I(Number(t.user_no)),G(!1),$(0),H(e),e&&"0"!==e&&q("re_reply_try"))},[J,$]=(0,r.useState)(0),ee=async e=>{if(!1===R())return;let t=k?{user_no:k}:await g.Mj();"0"!==t.user_no&&!isNaN(Number(t.user_no))&&(I(Number(t.user_no)),G(!1),H(0),$(e),e&&"0"!==e&&q("reply_edit_try"))},ea=()=>{W(),G(!1),H(0),$(0)},en=async(e,t)=>{G(!1),ee(0),H(0),await N({commentId:e,userNo:t}),q("reply_delete_comp"),W()},[eo,ei]=(0,r.useState)(Array.isArray(F)?F.length:0),[el,es]=(0,r.useState)(Array.isArray(L)?L.length:0);(0,r.useEffect)(()=>{A(m),ei(m.length),P(u),es(u.length)},[m,u]);let[er,ed]=(0,r.useState)(w<=5?w:5),[eu,ep]=(0,r.useState)({fixedComment:0,mainComment:0});(0,r.useEffect)(()=>{var e,t;let a=eg({totalRenderCnt:er,totalAllCommentCnt:w,fixedCommentCnt:null!==(e=null==m?void 0:m.length)&&void 0!==e?e:0,mainCommentCnt:null!==(t=null==u?void 0:u.length)&&void 0!==t?t:0});ep({fixedComment:a.fixedComment,mainComment:a.mainComment})},[er,w,m,u,ep]),(0,r.useEffect)(()=>{A(m.slice(0,eu.fixedComment)),P(u.slice(0,eu.mainComment))},[eu,m,u]);let[eh,ef]=(0,r.useState)(!(w<=5));(0,r.useEffect)(()=>{(w<=5||!eh)&&ed(w)},[w,er,eh]);let ew=(0,r.useCallback)(()=>{ef(!1),q("reply_more")},[q]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("section",{className:_()(Q().comment_section,{[Q().comment_none]:0===w}),children:[(0,n.jsxs)("div",{className:_()(Q().comment_title_area,Q().webview_common_width_padding),children:[(0,n.jsxs)("div",{className:Q().txt_frame,children:[(0,n.jsxs)("p",{className:Q().txt_tit,children:["ëê¸",(0,n.jsx)("b",{className:Q().txt_cnt,children:w})]}),(0,n.jsx)("button",{type:"button",title:"ëê¸ ëª©ë¡ ìë¡ê³ 침 ë²í¼",className:Q().refresh_btn,onClick:()=>{W()},children:(0,n.jsx)(i(),{src:"".concat(h.nx,"/files/webview/chutcha/common/ic_refresh.svg"),alt:"ëê¸ ëª©ë¡ ìë¡ê³ 침 ë²í¼",fill:!0,priority:!0,style:{objectFit:"contain",objectPosition:"center"},quality:80})})]}),(0,n.jsx)("div",{className:_()(Q().sort_btn_frame,Z().drop_box_group),onClick:e=>{e.stopPropagation(),q("array")},children:(0,n.jsx)(e_,{buttonTitle:"ëê¸ ëª©ë¡ ì ë ¬ ìì ë³ê²½í기 ë²í¼",currentValue:{label:M.label,value:M.value},selectValueArr:E,changeSelectedValue:e=>{U(e)}})})]}),(0,n.jsxs)("div",{className:_()(Q().comment_write_area,Q().webview_common_width_padding),children:[!1===z&&(0,n.jsx)("div",{className:_()(Q().comment_wrap,Q().comment_write_wrap,Q().txt_write_act_btn),onClick:()=>K(!0),children:(0,n.jsx)("p",{className:Q().txt,children:"ëê¸ì ë¨ê²¨ì£¼ì¸ì"})}),!0===z&&(0,n.jsx)(ec,{boardId:D,changeIsLoading:t,changeModalMessage:a,changeModalOpen:o,changeIsActWrite:K,afterSubmitFunc:()=>{ea(),q("reply_write")},afterNotiSetFunc:()=>{q("reply_alert_on")}})]}),F&&F.map((e,i)=>{let l={name:e.editorNo?e.editorName:e.writerName,profile_path:e.editorNo?e.editorProfileImage:e.profilePath};return(0,n.jsxs)("div",{className:Q().list_frame,children:[(0,n.jsx)(et,{deleteFlag:e.deleteFlag,isFixedReply:!0,isEditor:!!(null==e?void 0:e.editorNo),commentId:e.commentId,contentText:e.comment,contentImageList:e.commentImageUrls,isShowCommentBtns:!0,isShowEditBtns:!(e.writerNo!==Number(p.m6)),replyButtonProps:{currentActValue:X,clickFunc:Y},editButtonProps:{currentActValue:J,clickFunc:ee},deleteButtonProps:{clickFunc:(e,t)=>en(e,t)},regDate:e.createdAt,likeCnt:e.likeCount,replyCnt:e.childCommentCount,writerInfo:l,isDepthComment:!!e.parentCommentId,checkLoginCallbackBeforeAct:V,checkAppInfoBeforeAct:R,sendGAEvent:e=>q(e)}),X===e.commentId&&(0,n.jsxs)("div",{className:_()(Q().comment_input_form_frame,Q().comment_reply),children:[(0,n.jsx)("div",{className:Q().ico_depth_frame,children:(0,n.jsx)("i",{className:_()(Q().ico,Q().ico_depth)})}),(0,n.jsx)(ec,{boardId:D,changeIsLoading:t,changeModalMessage:a,changeModalOpen:o,changeIsActWrite:K,cancelButtonProps:{clickFunc:ee},afterSubmitFunc:()=>{ea(),q("re_reply_comp")},afterNotiSetFunc:()=>{q("reply_alert_on")}})]}),J===e.commentId&&(0,n.jsx)("div",{className:_()(Q().comment_input_form_frame,Q().c
1omment_edit),children:(0,n.jsx)(ec,{boardId:D,inputTextValue:e.comment,changeIsLoading:t,changeModalMessage:a,changeModalOpen:o,changeIsActWrite:K,submitBtnLabelTxt:"ìì ",isShowCancelButton:!0,cancelButtonProps:{clickFunc:ee},isModify:!0,afterSubmitFunc:()=>{ea(),q("reply_edit_comp")},afterNotiSetFunc:()=>{q("reply_alert_on")}})})]},"fixed_comment_".concat(e.commentId))}),L&&L.map((e,i)=>(0,n.jsxs)("div",{className:Q().list_frame,children:[(0,n.jsx)(et,{isEditor:!!(null==e?void 0:e.editorNo),deleteFlag:e.deleteFlag,commentId:e.commentId,contentText:e.comment,contentImageList:e.commentImageUrls,isShowCommentBtns:!0,isShowEditBtns:!(e.writerNo!==Number(k)),replyButtonProps:{currentActValue:X,clickFunc:Y},editButtonProps:{currentActValue:J,clickFunc:ee},deleteButtonProps:{clickFunc:(e,t)=>{en(e,t)}},regDate:e.createdAt,likeCnt:e.likeCount,replyCnt:e.childCommentCount,writerInfo:{name:e.editorNo?e.editorName:e.writerName,profile_path:e.editorNo?e.editorProfileImage:e.profilePath},isDepthComment:!!e.parentCommentId,userLikedComment:e.userLikedComment,commentIndex:i,checkLoginCallbackBeforeAct:V,checkAppInfoBeforeAct:R,afterSubmitFunc:()=>ea(),sendGAEvent:e=>q(e)}),X===e.commentId&&(0,n.jsxs)("div",{className:_()(Q().comment_input_form_frame,Q().comment_reply),children:[(0,n.jsx)("div",{className:Q().ico_depth_frame,children:(0,n.jsx)("i",{className:_()(Q().ico,Q().ico_depth)})}),(0,n.jsx)(ec,{boardId:D,commentId:e.commentId,parentCommentId:e.commentId,changeIsLoading:t,changeModalMessage:a,changeModalOpen:o,changeIsActWrite:K,cancelButtonProps:{clickFunc:ee},afterSubmitFunc:()=>{ea(),q("re_reply_comp")},afterNotiSetFunc:()=>{q("reply_alert_on")}})]}),J===e.commentId&&(0,n.jsx)("div",{className:_()(Q().comment_input_form_frame,Q().comment_edit),children:(0,n.jsx)(ec,{boardId:D,commentId:e.commentId,parentCommentId:e.parentCommentId,inputTextValue:e.comment,changeIsLoading:t,changeModalMessage:a,changeModalOpen:o,changeIsActWrite:K,submitBtnLabelTxt:"ìì ",isShowCancelButton:!0,cancelButtonProps:{clickFunc:ee},isModify:!0,imgData:e.commentImageUrls,afterSubmitFunc:()=>{ea(),q("reply_edit_comp")},afterNotiSetFunc:()=>{q("reply_alert_on")}})})]},"comment_".concat(e.commentId))),!!eh&&(0,n.jsx)("div",{className:Q().show_more_btn_wrap,children:(0,n.jsx)(eb,{btnStr:"ëê¸ ë보기",clickFunc:()=>ew()})})]}),(0,n.jsx)(em.Z,{trigger:v,setTrigger:e=>j(e),shouldCloseOnOverlayClick:!1,appdownModalUrl:"https://hc8a.adj.st/goto?type=webview&title="+encodeURIComponent(y.webTitle)+"&url="+encodeURIComponent(h.QO+y.listPath)+"&adj_t=fs6txc7&adj_deep_link="+encodeURIComponent("chutcha://goto?type=webview&title="+encodeURIComponent(y.webTitle)+"&url="+encodeURIComponent(h.QO+y.listPath))})]})},ew=a(78009),ex=a(77376),ey=a.n(ex),ev=e=>{let{btnStr:t,btnIcon:a,setToast:o,setMarketing:i,setNews:l,setPerson:s,setCommunity:c,contentsRef:m=null,notiSetBtnFn:u}=e,f=(0,d.Dv)(p.vB),[w,x]=(0,d.KO)(p.SB),[y,v]=(0,d.KO)(p.m6),j=(0,d.b9)(p.Ud),N=(0,d.Dv)(p.I1),[C,k]=(0,r.useState)(t||""),[I,D]=(0,r.useState)(a||"".concat(h.nx,"/files/webview/chutcha/common/ic_notibell_white.svg")),[S,B]=(0,r.useState)(!!o&&o),[T,F]=(0,r.useState)(!!i&&i),[A,L]=(0,r.useState)(!!l&&l),[P,E]=(0,r.useState)(!!s&&s),[O,M]=(0,r.useState)(!!c&&c),[U,W]=(0,r.useState)(!1),[R,q]=(0,r.useState)(0),V=async()=>{let e={isShowToast:S},t=[];300>=Number(String(N).substring(0,5).replaceAll(".",""))?(T&&t.push("marketingPush"),A&&t.push("newsPush"),P&&t.push("personPush"),O&&t.push("communityPush"),e.types=t):(T&&t.push({pushCategory:"mkt",answer:"permit",surface:"toast",route:"webview"}),A&&t.push({pushCategory:"news",answer:"permit",surface:"toast",route:"webview"}),P&&t.push({pushCategory:"personal",answer:"permit",surface:"toast",route:"webview"}),O&&t.push({pushCategory:"community",answer:"permit",surface:"toast",route:"webview"}),e.info=t),(null==G?void 0:G.current)&&G.current.classList.add(ey().off),z(await g.ww(e)),u&&u()},z=e=>{Object.prototype.hasOwnProperty.call(e,"user_no")&&v(e.user_no),Object.prototype.hasOwnProperty.call(e,"user_type")&&j(e.user_type);let t={};Object.prototype.hasOwnProperty.call(e,"is_allowed_notification")&&Object.prototype.hasOwnProperty.call(e,"is_allowed_marketing")&&Object.prototype.hasOwnProperty.call(e,"is_allowed_news")&&Object.prototype.hasOwnProperty.call(e,"is_allowed_person")&&Object.prototype.hasOwnProperty.call(e,"is_allowed_community")&&x(t={...t,isAllowedNotification:!("true"!==e.is_allowed_notification),isAllowedMarketing:!("true"!==e.is_allowed_marketing),isAllowedNews:!("true"!==e.is_allowed_news),isAllowedPerson:!("true"!==e.is_allowed_person),isAllowedCommunity:!("true"!==e.is_allowed_community)})},Z=async()=>{await b._v(250);let e=!0,t=0;0===Object.keys(w).length&&(e=!1),T&&w.isAllowedMarketing&&t++,A&&w.isAllowedNews&&t++,P&&w.isAllowedPerson&&t++,O&&y&&w.isAllowedCommunity&&t++;let a=0;T&&a++,A&&a++,P&&a++,O&&a++,a-t==0&&(e=!1),f||(e=!1),!1===w.isAllowedNotification&&(e=!0),W(e)};(0,r.useEffect)(()=>{Z()},[f,w]);let G=(0,r.useRef)(null),[Q,K]=(0,r.useState)(0),X=()=>{K(window.pageYOffset)};return(0,r.useEffect)(()=>{f&&U&&window.addEventListener("scroll",X,{passive:!0})},[f,U]),(0,r.useEffect)(()=>{(null==G?void 0:G.current)&&(null==m?void 0:m.current)&&(Q>m.current.offsetHeight/5?(0===R&&g.gm("notification_consent_view","c3x0po",{push_category:"news",surface:"toast",route:"webview",tmp_abtest:""}),q(R+1),G.current.classList.add(ey().on)):G.current.classList.remove(ey().on))},[Q,G,m]),(0,n.jsx)(n.Fragment,{children:f&&U&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:_()(ey().alarm_btn_frame),ref:G,children:(0,n.jsxs)("button",{type:"button",title:C,className:ey().btn_alarm,onClick:()=>V(),children:[(0,n.jsx)("div",{className:ey().ico_frame,children:(0,n.jsx)(eu(),{src:I,alt:"".concat(C," ìì´ì½"),width:"100",height:"100",layout:"responsive",quality:80})}),C]})})})})},ej=a(78472),eN=e=>{let{flow:t="",listPath:a,commentCount:o=0,webviewTitle:i="",isShowNotiButton:l=!1,commentTarget:s=null,currentUrl:r,notiSetbtnStr:c,notiSetbtnIcon:m,notiSetToast:d,notiSetMarketing:u,notiSetNews:p,notiSetPerson:b,notiSetCommunity:g,contentsRef:f=null,ga4EventFn:w,...x}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:L().detail_floating_btn_group,children:(0,n.jsxs)("ul",{className:L().btn_group_inner,children:[!0===l&&(0,n.jsx)("li",{className:_()(L().btn_item),children:(0,n.jsx)(ev,{btnStr:c,btnIcon:m,setToast:d,setMarketing:u,setNews:p,setPerson:b,setCommunity:g,contentsRef:f,notiSetBtnFn:()=>{w&&w("alert_on")}})}),(0,n.jsx)("li",{className:L().btn_item,children:(0,n.jsx)(ej.Z,{addClass:[L().fixed_none,L().padding_bottom_safearea],flow:t,exceptQs:["flow"],listPath:a,appdownModalUrl:"https://hc8a.adj.st/goto?type=webview&title="+encodeURIComponent(i)+"&url="+encodeURIComponent(h.QO+a)+"&adj_t=fs6txc7&adj_deep_link="+encodeURIComponent("chutcha://goto?type=webview&title="+encodeURIComponent(i)+"&url="+encodeURIComponent(h.QO+a)),commentCount:0==o?"0":o,commentTarget:s,currentUrl:r,viewListBtnFunc:()=>w("golist"),viewCommentBtnFunc:()=>w("reply_view"),shareUrlBtnFunc:()=>w("url"),appDownModalCloseBtnFunc:()=>w("golist_cancel"),appDownModalViewAppBtnFunc:()=>w("golist_app_view")})})]})})})},eC=a(86137),ek=!0,eI=e=>{var t,a,o,l,c,y,j,N,C,k,S,T,A,U,W,R;let{articleId:q,qs:z,categoryId:Z,host:G,webviewTitleVal:Q,boardCateGroupData:K,cateGroupId:X,cateGroupName:H,userDeviceStr:Y,communityName:$,currCategoryData:ee,boardArticleInitData:et,relationArticleInitData:ea,...en}=e,eo=(0,u.useRouter)(),ei=(0,d.Dv)(p.vB),el=(0,d.Dv)(p.m6);(0,r.useEffect)(()=>{document&&b.$0()},[]);let[es,er]=(0,r.useState)(!1),[ec,e_]=(0,r.useState)(!1),[em,ed]=(0,r.useState)(""),[eu,ep]=(0,r.useState)(Number(z.page)),[eh,eb]=(0,r.useState)("NEW"),[eg,ex]=(0,r.useState)(z.is_preview?z.is_preview:0),[ey,ev]=(0,r.useState)(et),{data:ej,refetch:ek}=(0,m.a)(["boardArticleData"],async()=>await I(q,eg),{initialData:et,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1});(0,r.useEffect)(()=>{Object.keys(ej).length>0&&ev(ej)},[ej]);let{data:eI,refetch:eD}=(0,m.a)(["articleCommentData"],async()=>await v({id:q,userNo:el,orderBy:eh})),{data:eS,refetch:eB}=(0,m.a)(["relationArticleData"],async()=>await D({articleId:q,categoryId:Z,uuId:b.ej("uck").value?b.ej("uck").value:""}),{initialData:ea,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1}),{data:eT}=(0,m.a)(["boardCateData"],async()=>await x.AT({groupId:X}),{refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1}),{data:eF}=(0,m.a)(["usefulFlag"],async()=>await x.Qd({boardId:Number(q),uuId:b.ej("uck").value}),{}),[eA,eL]=(0,r.useState)(void 0!==eF.usefulToMe&&eF.usefulToMe?1:0),[eP,eE]=(0,r.useState)(void 0!==eF.usefulCount?eF.usefulCount:0),eO=async e=>{let t=b.ej("uck");if(t.value){let a=await x.ak({boardId:q,flag:e,uuId:t.value});void 0!==a.usefulToMe&&(eL(a.usefulToMe?1:0),eE(a.usefulCount))}};(0,r.useEffect)(()=>{eL(void 0!==eF.usefulToMe&&eF.usefulToMe?1:0),eE(void 0!==eF.usefulCount?eF.usefulCount:0)},[eF]),(0,r.useEffect)(()=>{eW(eM())},[ee]);let eM=e=>{let t=null;return t=e||w.v3({userDeviceStr:Y,cateData:eT,currCateId:Number(Z)}),w.A0(t)},[eU,eW]=(0,r.useState)(null),[eR,eq]=(0,r.useState)(""),[eV,ez]=(0,r.useState)(H),[eZ,eG]=(0,r.useState)("".concat(ey.title," - ì¤ê³ ì°¨ë 첫차"));(0,r.useEffect)(()=>{eq(Q),eG(ey.title+" - ì¤ê³ ì°¨ë 첫차")},[Q,ey]),(0,r.useEffect)(()=>{!0===ei&&(eR&&g.w8(eR),g.JQ())},[ei,eR]);let[eQ,eK]=(0,r.useState)([]);(0,r.useEffect)(()=>{let e=[];Array.isArray(ey.imageList)&&ey.writerNo&&ey.imageList.map(t=>{e.push(t)}),eK(e)},[ey]);let[eX,eH]=(0,r.useState)(null!==(j=eI.mainComments)&&void 0!==j?j:[]),[eY,eJ]=(0,r.useState)(null!==(N=eI.fixedComments)&&void 0!==N?N:[]),e$=(e,t)=>{if(ey.isBlockComment)return null;{let a=0,n=0;return Array.isArray(e)&&(a=e.length),Array.isArray(t)&&(n=t.length),a+n}},[e0,e1]=(0,r.useState)(e$(null!==(C=eI.mainComments)&&void 0!==C?C:[],null!==(k=eI.fixedComments)&&void 0!==k?k:[]));(0,r.useEffect)(()=>{var e,t,a,n;eH(null!==(e=eI.mainComments)&&void 0!==e?e:[]),eJ(null!==(t=eI.fixedComments)&&void 0!==t?t:[]),e1(e$(null!==(a=eI.mainComments)&&void 0!==a?a:[],null!==(n=eI.fixedComments)&&void 0!==n?n:[]))},[eI]);let e8=async e=>(eh===e.orderBy?await eD():eb(e.orderBy),!1);(0,r.useEffect)(()=>{eD()},[eh,el]);let e2=(0,r.useRef)(null);(0,r.useEffect)(()=>{e3("/board?category="+Z+"&group="+X)},[Z]);let[e6,e3]=(0,r.useState)(""),e5=G+"/board/view/"+q,e9=()=>ey.thumbnailUrl?h.hu+"/"+ey.thumbnailUrl:Array.isArray(ey.imageList)&&ey.imageList.length>0?ey.imageList[0]:"https://img.chutcha.kr/files/webview/common/logo/chutcha_app_logo.svg",e4=(0,r.useRef)(null),e7=e=>{let t=0,a=0;return Array.isArray(eS.oldest)&&(t=eS.oldest.length),Array.isArray(eS.newest)&&(a=eS.newest.length),t>=e/2&&a>=e/2?(t=e/2,a=e/2):t>a?t=e-a:a=e-t,{newest:a,oldest:t}},[te,tt]=(0,r.useState)(eM(ee.otherCategoryType)),[ta,tn]=(0,r.useState)(e7(ee.otherPerPage).oldest),[to,ti]=(0,r.useState)(e7(ee.otherPerPage).newest);(0,r.useEffect)(()=>{let e=null;"PC"===Y?(tt(eM(ee.otherPcCategoryType)),e=e7(ee.otherPcPerPage)):(tt(eM(ee.otherCategoryType)),e=e7(ee.otherPerPage)),ti(e.newest),tn(e.oldest)},[Y,ee]);let[tl,ts]=(0,r.useState)(!1);(0,r.useEffect)(()=>{f.S1(),ts(!0)},[]);let tr=ee.uniqueName;(0,r.useEffect)(()=>{!0===tl&&tr&&f.P8(tr,{event_action:"view",event_category:"contents_".concat(q,"_page_view")})},[tl,tr,q]);let[tc,t_]=(0,r.useState)([50,90]),tm=b.Mu(600);(0,r.useEffect)(()=>{tr&&t_(e=>{let t=[...e];return Array.isArray(e)&&e.length&&(e.includes(50)&&tm>=50&&(f.P8(tr,{event_action:"scroll",event_category:"contents_".concat(q,"_scroll"),event_value:50}),t=e.filter(e=>50!==e)),e.includes(90)&&tm>=90&&(f.P8(tr,{event_action:"scroll",event_category:"contents_".concat(q,"_scroll"),event_value:90}),t=e.filter(e=>90!==e))),t})},[tm,t_,tr,q]);let td=(0,r.useCallback)(e=>{tr&&q&&f.P8(tr,{event_action:"click",event_category:"contents_".concat(q,"_").concat(e)})},[tr,q]),tu=6e4*new Date().getTimezoneOffset(),tp="20".concat(ey.createdAt).replaceAll(".","-"),th="20".concat(ey.updatedAt).replaceAll(".","-"),tb=new Date(tp).getTime(),tg=new Date(th).getTime(),tf=new Date,tw=e=>{let t=[];return e.length>0&&(t=e.map(e=>{let t=e.createdAt.includes(":")?"":"20".concat(e.createdAt).replaceAll(".","-"),a=new Date((t?new Date(t).getTime():tf.getTime())-tu).toISOString();return{"@type":"Comment",text:e.comment,dateCreated:a,image:e.commentImageUrls.length>0?e.commentImageUrls.map(e=>h.hu+"/"+e):[],author:{"@type":"Person",name:e.editorNo?e.editorName:e.writerName}}})),t},tx={"@context":"https://schema.org","@type":"QAPage",mainEntity:{"@type":"Question",name:eZ,text:ey.plainText.substring(0,200),answerCount:1,dateCreated:new Date(tb-tu).toISOString(),author:{"@type":"Person",name:ey.editorNo?ey.editorName:ey.writerName}
1,acceptedAnswer:{"@type":"Answer",author:{"@type":"Person",name:ey.subData.subEditorNo?ey.subData.subEditorName:ey.subData.subWriterName},text:ey.subData.subContents?ey.subData.plainText:"",dateCreated:new Date(tb-tu).toISOString(),dateModified:new Date(tg-tu).toISOString(),upvoteCount:ey.isUseful?ey.usefulCount:0}}},ty={"@context":"https://schema.org","@type":["Article","NewsArticle"],mainEntityOfPage:{"@type":"WebPage","@id":e5},headline:eZ,description:ey.plainText.substring(0,200),articleBody:ey.plainText,image:e9(),author:{"@type":"Person",name:ey.editorNo?ey.editorName:ey.writerName},publisher:{"@type":"Organization",name:"첫차",url:"https://www.chutcha.net/",logo:{"@type":"ImageObject",url:"https://img.chutcha.kr/files/webview/common/logo/img_logo_round_blue.png"}},datePublished:new Date(tb-tu).toISOString(),dateModified:new Date(tg-tu).toISOString()},tv=[];tv=ey.isBlockComment?2===ey.contentsType?[...tv,tx]:[...tv,ty]:2===ey.contentsType?eX.length>0?[...tv,{...tx,commentCount:e0,comment:tw(eX)}]:[...tv,tx]:eX.length>0?[...tv,{...ty,commentCount:e0,comment:tw(eX)}]:[...tv,ty];let tj=ee.viewIndex,[tN,tC]=(0,r.useState)(!1),tk=(0,r.useCallback)(()=>{(null==e2?void 0:e2.current)&&window.scrollTo({top:document.documentElement.scrollTop+e2.current.getBoundingClientRect().top,behavior:"smooth"})},[e2]);return(0,r.useEffect)(()=>{var e;!0===tN&&(null===(e=eo.query)||void 0===e?void 0:e.scrTarget)==="comment"&&tk()},[eo.query,tk,tN]),(0,n.jsxs)(P.Z,{webviewTitle:null===ei||ei?"":1===ee.isView?eV:ee.communityName,appdownloadHeader:!0,clickFuncBeforeMoveLink:()=>
1td("app_download"),pageBackgroundColor:"white",logoLink:e6,titleTextLink:e6,blankTypeFlag:"blank"===w.WL(ey.contentsType).type,isAdFlag:1===ee.isAdView,children:[(0,n.jsxs)(s(),{children:[(0,n.jsx)("meta",{name:"viewport",content:"user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width, viewport-fit=cover"},"viewport"),(0,n.jsx)("title",{children:eZ}),(0,n.jsx)("meta",{name:"title",content:eZ},"title"),(0,n.jsx)("meta",{name:"description",content:"[".concat($,"] ").concat(ey.plainText.substring(0,200))},"description"),(0,n.jsx)("meta",{property:"og:title",content:eZ},"ogTitle"),(0,n.jsx)("meta",{property:"og:description",content:"[".concat($,"] ").concat(ey.plainText.substring(0,200))},"ogDescription"),(0,n.jsx)("meta",{property:"og:type",content:"website"},"ogType"),(0,n.jsx)("meta",{property:"og:url",content:e5},"ogUrl"),(0,n.jsx)("meta",{property:"og:image",content:e9()},"ogImage"),(0,n.jsx)("meta",{property:"article:published_time",content:ey.createdAt}),(0,n.jsx)("meta",{property:"article:modified_time",content:ey.updatedAt}),(0,n.jsx)("link",{rel:"canonical",href:e5},"canonical"),1===tj&&(0,n.jsx)("meta",{name:"robots",content:"noindex"},"robots"),(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(tv)}})]}),(0,n.jsxs)("div",{className:_()(L().board_detail_wrap,"qna"===w.WL(ey.contentsType).type?L().board_qna_detail_wrap:"","blank"===w.WL(ey.contentsType).type&&"non_padding"===w.WL(ey.contentsType).detail?L().board_non_padding_blank_detail_wrap:""),children:[(0,n.jsxs)("div",{className:_()(L().webview_common_width_padding,L().no_padding_bottom),children:[!ey.detailTopThumbnailUrl&&"blank"!==w.WL(ey.contentsType).type&&(0,n.jsxs)("section",{className:L().title_section,children:[(0,n.jsx)("div",{className:_()(L().txt_frame,L().title_txt_frame),children:(0,n.jsxs)("h1",{className:_()(L().txt,L().txt_board_title,B().txt_overflow_line_3),children:["qna"===w.WL(ey.contentsType).type?"Q.":""," ",ey.title]})}),(0,n.jsx)("div",{className:L().user_profile_area,children:(0,n.jsx)(J.Z,{profileImgUrl:ey.editorNo?"".concat(h.nx).concat(ey.editorProfileImage):"".concat(h.nx,"/").concat(ey.profilePath),userName:ey.editorNo?ey.editorName:ey.writerName,styleType:"board",withDescription:!0,descriptionTextArr:[ey.createdAt,"ì¡°í "+ey.viewCount.toLocaleString()]})})]}),ey.detailTopThumbnailUrl&&(0,n.jsx)("section",{className:L().title_thumb_section,children:(0,n.jsx)("h3",{className:_()(L().board_title_img),children:(0,n.jsx)(i(),{src:h.hu+"/"+ey.detailTopThumbnailUrl,alt:ey.title,fill:!0,sizes:"(min-width: 500px) 500px, 100vw",style:{objectFit:"contain",objectPosition:"center"},priority:!0,quality:100})})}),(0,n.jsxs)("section",{className:_()(L().content_section,{[L().with_useful_btn_cont_section]:1===ey.isUseful}),ref:e4,children:[(0,n.jsx)(V,{contentText:ey.contents,imgUrlArr:eQ,plainText:ey.plainText,setIsLoadedBoardEditor:e=>{tC(e)},imgClickEventBindFlag:"blank"!==w.WL(ey.contentsType).type||"non_padding"!==w.WL(ey.contentsType).detail}),1===ey.isUseful&&"qnaWithCont"!==eU&&"blank"!==w.WL(ey.contentsType).type&&(0,n.jsx)(eC.n,{className:L().useful_btn_wrap,usefulFlag:eA,usefulCount:eP,onClick:e=>{eO(e)}})]})]}),"qna"===w.WL(ey.contentsType).type&&Object.keys(ey.subData).length>0&&(0,n.jsxs)("div",{className:_()(L().webview_common_width_padding,L().no_padding_top_bottom,L().cont_section_bold_line,L().qna_answer_contents_wrap),children:[(0,n.jsxs)("section",{className:L().title_section,children:[(0,n.jsx)("div",{className:_()(L().txt_frame,L().title_txt_frame),children:(0,n.jsx)("h2",{className:_()(L().txt,L().txt_board_sub_title),children:"ëµë³ëë ¤ì"})}),(0,n.jsx)("div",{className:L().user_profile_area,children:(0,n.jsx)(J.Z,{profileImgUrl:ey.subData.subEditorNo?"".concat(h.nx).concat(ey.subData.subEditorProfileImage):"".concat(h.nx,"/").concat(ey.subData.subProfilePath),userName:ey.subData.subEditorNo?ey.subData.subEditorName:ey.subData.subWriterName,styleType:"board",withDescription:!0,descriptionTextArr:ey.subData.subEditorDesc?[ey.subData.subEditorDesc]:[],isEditor:!!ey.subData.subEditorNo})})]}
1),(0,n.jsxs)("section",{className:L().content_section,children:[(0,n.jsx)(V,{contentText:ey.subData.subContents,imgUrlArr:[],plainText:ey.subData.subContents,setIsLoadedBoardEditor:e=>{tC(e)},imgClickEventBindFlag:!0}),1===ey.isUseful&&(0,n.jsx)(eC.n,{className:L().useful_btn_wrap,usefulFlag:eA,usefulCount:eP,onClick:e=>{eO(e)}})]})]}),!ey.isBlockComment&&"blank"!==w.WL(ey.contentsType).type&&(0,n.jsx)("div",{className:_()(L().webview_common_width,L().cont_section_bold_line),ref:e2,children:(0,n.jsx)(ef,{changeIsLoading:e=>{er(e)},changeModalMessage:e=>{ed(e)},changeModalOpen:e=>{e_(e)},boardDetailInfo:{boardId:q},fixedCommentData:eY,commentData:eX,getDataAction:e=>e8(e),commentListSort:"NEW",userNo:el,commentTotalCnt:e0,webTitle:eZ,listPath:e6,gaEventName:tr})}),to+ta>0&&"blank"!==w.WL(ey.contentsType).type&&(0,n.jsx)("div",{className:_()(L().webview_common_width,L().cont_section_bold_line),children:(0,n.jsxs)("section",{className:L().other_board_section,children:[(0,n.jsx)("div",{className:_()(L().section_title_area,L().webview_common_width_padding),children:(0,n.jsx)("div",{className:L().txt_frame,children:(0,n.jsxs)("p",{className:L().txt_tit,children:[" ",(0,n.jsx)("b",{className:"",children:ee.communityName})," ë¤ë¥¸ ê¸"]})})}),eS&&te&&(0,n.jsx)("div",{className:_()(F().article_list_wrap,L().webview_common_width_padding,L().article_list_wrap),children:(0,n.jsxs)("ul",{className:_()(F().article_list,L().article_list,F()[te+"_list"]),children:[Array.isArray(eS.newest)&&eS.newest.slice(-1*to).map((e,t)=>{if(t<to)return(0,n.jsx)("li",{children:(0,n.jsx)(ew.Z,{listType:te,itemData:{boardId:e.boardId,title:e.title,contents:e.contents,thumbnailUrl:e.thumbnailUrl,writerNo:e.writerNo,writerName:e.writerName?e.writerName:e.editorName,editorNo:e.editorNo,editorName:e.editorName,createdAt:e.createdAt,viewCount:e.viewCount,commentCount:e.commentCount,isBlockBoard:e.isBlockBoard,isBlockComment:e.isBlockComment,isUseful:e.isUseful,usefulCount:e.usefulCount,usefulToMe:e.usefulToMe},popular:!1,sendGAEventList:()=>td("other"),usefulClickFn:w.sl})},"relationList".concat(e.boardId))}),Array.isArray(eS.oldest)&&eS.oldest.map((e,t)=>{if(t<ta)return(0,n.jsx)("li",{children:(0,n.jsx)(ew.Z,{listType:te,itemData:{boardId:e.boardId,title:e.title,contents:e.contents,thumbnailUrl:e.thumbnailUrl,writerNo:e.writerNo,writerName:e.writerName?e.writerName:e.editorName,editorNo:e.editorNo,editorName:e.editorName,createdAt:e.createdAt,viewCount:e.viewCount,commentCount:e.commentCount,isBlockBoard:e.isBlockBoard,isBlockComment:e.isBlockComment,isUseful:e.isUseful,usefulCount:e.usefulCount,usefulToMe:e.usefulToMe},popular:!1,sendGAEventList:()=>td("other"),usefulClickFn:w.sl})},"relationList".concat(e.boardId))})]})})]})}),"blank"!==w.WL(ey.contentsType).type&&(0,n.jsx)(eN,{flow:z.flow?z.flow:"",listPath:e6,commentCount:e0,webviewTitle:eR,isShowNotiButton:!0,commentTarget:e2,notiSetbtnStr:"ìë¡ì´ ì°¨ììì 먼ì ë°ìë³¼ê²ì",notiSetToast:!0,notiSetNews:!0,currentUrl:e5,contentsRef:e4,ga4EventFn:e=>td(e)}),(0,n.jsx)(O.Z,{loadingFlag:es}),(0,n.jsx)(E.Z,{trigger:ec,setTrigger:e=>e_(e),shouldCloseOnOverlayClick:!0,modalMsg:em})]}),1===ee.isAdView&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(M.LK,{bannerAlign:"left",imgSrc:null!==(S=null===(t=M.In)||void 0===t?void 0:t.imgSrc)&&void 0!==S?S:"",imgAlt:null!==(T=null===(a=M.In)||void 0===a?void 0:a.imgAlt)&&void 0!==T?T:"",linkUrl:M.F5.lovestory,bannerId:null!==(A=null===(o=M.In)||void 0===o?void 0:o.bannerId)&&void 0!==A?A:"",GA4Fn:e=>{tl&&f.P8(tr,{event_action:"click",event_category:e})}}),(0,n.jsx)(M.LK,{bannerAlign:"right",imgSrc:null!==(U=null===(l=M.A0)||void 0===l?void 0:l.imgSrc)&&void 0!==U?U:"",imgAlt:null!==(W=null===(c=M.A0)||void 0===c?void 0:c.imgAlt)&&void 0!==W?W:"",bannerId:null!==(R=null===(y=M.A0)||void 0===y?void 0:y.bannerId)&&void 0!==R?R:"",GA4Fn:e=>{tl&&f.P8(tr,{event_action:"click",event_category:e})}})]})]})}},90389:function(e){e.exports={cc_btn:"chutchaDesignLibrary_cc_btn__5msYx",txt:"chutchaDesignLibrary_txt__YiuTY",ico_frame:"chutchaDesignLibrary_ico_frame__XYb_c",large:"
1chutchaDesignLibrary_large__cFFk9",medium:"chutchaDesignLibrary_medium__jJsgS",small:"chutchaDesignLibrary_small__0qK7M",extraSmall:"chutchaDesignLibrary_extraSmall__U5JmQ",for_pc:"chutchaDesignLibrary_for_pc__L6Xby",extraSmal:"chutchaDesignLibrary_extraSmal__iNWte",rounded_style:"chutchaDesignLibrary_rounded_style__yYrMK",txtweight_regular:"chutchaDesignLibrary_txtweight_regular__OfRaW",txtweight_medium:"chutchaDesignLibrary_txtweight_medium__YuSOX",txtweight_semiBold:"chutchaDesignLibrary_txtweight_semiBold__6T0E0",txtweight_bold:"chutchaDesignLibrary_txtweight_bold__aY_xJ",txtweight_extraBold:"chutchaDesignLibrary_txtweight_extraBold__MkdWK",disabled:"chutchaDesignLibrary_disabled__Puuj1",blue:"chutchaDesignLibrary_blue__2yvWS",navy:"chutchaDesignLibrary_navy__x_MYD",lightBlue:"chutchaDesignLibrary_lightBlue__OFTIL",white:"chutchaDesignLibrary_white__Rrb8v",gray:"chutchaDesignLibrary_gray___me76","skeleton-gradient":"chutchaDesignLibrary_skeleton-gradient__2Hb8S"}},52502:function(e){e.exports={board_detail_wrap:"boardDetail_board_detail_wrap__zQynz",webview_common_width_padding:"boardDetail_webview_common_width_padding__U_GB4",no_padding_bottom:"boardDetail_no_padding_bottom__4lZyi",no_padding_top:"boardDetail_no_padding_top__FLMKa",no_padding_top_bottom:"boardDetail_no_padding_top_bottom__Kw9AG",title_section:"boardDetail_title_section__ND5oG",txt_board_title:"boardDetail_txt_board_title__9esbj",txt_board_sub_title:"boardDetail_txt_board_sub_title__f3kE_",title_thumb_section:"boardDetail_title_thumb_section__ViJLR",board_title_img:"boardDetail_board_title_img__b4m28",title_txt_frame:"boardDetail_title_txt_frame__jdQxN",content_section:"boardDetail_content_section__NZhAv",user_profile_area:"boardDetail_user_profile_area__ucBQv",other_board_section:"boardDetail_other_board_section___vjed",section_title_area:"boardDetail_section_title_area__uipue",article_list_wrap:"boardDetail_article_list_wrap__Rpcnu",article_list:"boardDetail_article_list__6NHfD",useful_btn_wrap:"boardDetail_useful_btn_wrap__9sDt3",webview_common_width:"boardDetail_webview_common_width__A0OuX",cont_section_bold_line:"boardDetail_cont_section_bold_line__ay_u_",board_detail_content:"boardDetail_board_detail_content__6kaU3",plain_text:"boardDetail_plain_text__beb_Z",img_area:"boardDetail_img_area__TZ6nj",img_frame:"boardDetail_img_frame__NLeFn",image:"boardDetail_image__b95X_",with_useful_btn_cont_section:"boardDetail_with_useful_btn_cont_section__7DnGH",txt_frame:"boardDetail_txt_frame__575Bb",txt_tit:"boardDetail_txt_tit__qvGs_",detail_floating_btn_group:"boardDetail_detail_floating_btn_group__X6jTZ",btn_group_inner:"boardDetail_btn_group_inner__czj6L",fixed_none:"boardDetail_fixed_none__B2Zo2",padding_bottom_safearea:"boardDetail_padding_bottom_safearea__MsLeC",btn_item:"boardDetail_btn_item__mzULO",float_btn_area:"boardDetail_float_btn_area__vf7Uu",float_inner_wrap:"boardDetail_float_inner_wrap__kCDfb",cont_group:"boardDetail_cont_group__Hs4V3",right:"boardDetail_right__Ipqdc",list_view_btn:"boardDetail_list_view_btn__juO_2",comment_view_btn:"boardDetail_comment_view_btn__MQeQW","jq-toast-wrap":"boardDetail_jq-toast-wrap__omNcd",editor_viewer_wrap:"boardDetail_editor_viewer_wrap__UX43o",board_qna_detail_wrap:"boardDetail_board_qna_detail_wrap__mDYsO",qna_answer_contents_wrap:"boardDetail_qna_answer_contents_wrap__HxXEh",board_non_padding_blank_detail_wrap:"boardDetail_board_non_padding_blank_detail_wrap__QdBx4","skeleton-gradient":"boardDetail_skeleton-gradient__mBxnq"}},1796:function(){},58661:function(e){e.exports={dimmer:"appdownModal_dimmer__lBsSQ",modalWrap:"appdownModal_modalWrap__hFa3c",description:"appdownModal_description__KoYDl",modal_title:"appdownModal_modal_title__etlIa",modal_msg:"appdownModal_modal_msg__heKgF",app_title:"appdownModal_app_title__Q2qio",app_text:"appdownModal_app_text__i_BtG",app_rate:"appdownModal_app_rate__6GbF9",actions:"appdownModal_actions__BJU5a",close_btn:"appdownModal_close_btn__nvMi0",confirm_btn:"appdownModal_confirm_btn__l_Heu"}},53207:function(e){e.exports={drop_toggle_btn:"dropBox_drop_toggle_btn__8TfNg",txt:"dropB
1ox_txt__1_HTJ",ico_frame:"dropBox_ico_frame__Mdcud",act:"dropBox_act__AGeAC",drop_box_item_wrap:"dropBox_drop_box_item_wrap__n3Gmb",item:"dropBox_item__sYN0A",txt_btn:"dropBox_txt_btn__dLy4l",drop_box_group:"dropBox_drop_box_group__1hMwp"}},63820:function(e){e.exports={photo_upload_area:"inputFileImage_photo_upload_area__fsVAw",photo_upload_area_title:"inputFileImage_photo_upload_area_title__IUgQA",inner:"inputFileImage_inner__ALQfJ",upload_btn_icon:"inputFileImage_upload_btn_icon__hEzZY",photo_list_wrap:"inputFileImage_photo_list_wrap__BZnHh",upload_btn_wrap:"inputFileImage_upload_btn_wrap__HbiCP",img_frame:"inputFileImage_img_frame__7Ec1j",ico_frame:"inputFileImage_ico_frame__yxBJw",photo_list:"inputFileImage_photo_list__bg3qF",photo_item:"inputFileImage_photo_item__miSkX",description_group:"inputFileImage_description_group__yxZzs",notice:"inputFileImage_notice__bOLKE",list_circle:"inputFileImage_list_circle__8RDYL",only_btn:"inputFileImage_only_btn__SNcjz",comment_thumb_list:"inputFileImage_comment_thumb_list__8ia86"}},77376:function(e){e.exports={detail_floating_btn_group:"newsNotiSetButton_detail_floating_btn_group__pvsur",alarm_btn_frame:"newsNotiSetButton_alarm_btn_frame__i__pu",btn_alarm:"newsNotiSetButton_btn_alarm__0ouJe",ico_frame:"newsNotiSetButton_ico_frame__r4H5M",on:"newsNotiSetButton_on__y4Rnw",off:"newsNotiSetButton_off__mfYBX"}},36386:function(e){e.exports={detail_floating_btn_group:"showMoreCommentButton_detail_floating_btn_group__5GN0F",btn_frame:"showMoreCommentButton_btn_frame__Lebuw",btn_show_more:"showMoreCommentButton_btn_show_more__lqpPa",ico_frame:"showMoreCommentButton_ico_frame__Vd4YW"}},35840:function(e){e.exports={ArticleFloatingBarWrap:"articleFloatingBar_ArticleFloatingBarWrap__nA0aM",floatInnerWrap:"articleFloatingBar_floatInnerWrap__I8bCl",contGroup:"articleFloatingBar_contGroup__8dx2n",left:"articleFloatingBar_left__ChzNN",right:"articleFloatingBar_right___xxKr",listViewBtn:"articleFloatingBar_listViewBtn__J5Iuv",commentViewBtn:"articleFloatingBar_commentViewBtn__A26Sr",on:"articleFloatingBar_on__h0PBV",ico_frame:"articleFloatingBar_ico_frame__lftFK"}},8624:function(e){e.exports={comment_section:"common_comment_section__qsveW",comment_none:"common_comment_none__onwo6",webview_common_width:"common_webview_common_width__q5E2j",webview_common_width_padding:"common_webview_common_width_padding__W1P_v",comment:"common_comment__6uCLG",comment_wrap:"common_comment_wrap__YjjzA",comment_write_area:"common_comment_write_area__Q3E5h",comment_write_wrap:"common_comment_write_wrap__bfqZb",on:"common_on__ZVxFg",input_group:"common_input_group__CBCHT",textarea_frame:"common_textarea_frame__gpBFZ",input_textarea:"common_input_textarea__Xn43Q",btn_group_frame:"common_btn_group_frame__1iRCa",btn_group:"common_btn_group__BZh_a",btn_group_left:"common_btn_group_left__EdbxL",btn_group_right:"common_btn_group_right__kHOwT",btn_frame:"common_btn_frame__gxNfK",txt_btn_frame:"common_txt_btn_frame__D_rz5",img_thumb_list_frame:"common_img_thumb_list_frame__BxRvG",file_btn_frame:"common_file_btn_frame__GeetU",txt_write_act_btn:"common_txt_write_act_btn__VcbX9",txt:"common_txt__tyZwB",comment_list:"common_comment_list__n7kya",comment_title_area:"common_comment_title_area__cL3XM",txt_frame:"common_txt_frame__POzn7",refresh_btn:"common_refresh_btn__zyiiB",txt_tit:"common_txt_tit___2YkW",list_layout:"common_list_layout__nXJDe",border_style_none:"common_border_style_none__S_zQF",list_inner:"common_list_inner__e5ZDi",depth_comment:"common_depth_comment__4fgsk",fixed_comment:"common_fixed_comment__rulyb",list_item_sec:"common_list_item_sec__wToVs",mid_sec:"common_mid_sec__2bOUG",top_sec:"common_top_sec__HngWv",ico_writer_text:"common_ico_writer_text__wFD8Z",user_profile_area:"common_user_profile_area__xyS4y",comment_contents:"common_comment_contents__NlGJg",comment_content:"common_comment_content__0FXRE",deleted_list:"common_deleted_list__TDltB",ico_pic:"common_ico_pic__EgpXM",deleteCommentWrap:"common_deleteCommentWrap__DDQjd",image_swiper_wrap:"common_image_swiper_wrap__g4OLs",comment_image_swiper:"common_comment_image_swiper__HFho_",comment_image_slide:"common_comment_image_slide__m3XXG",selected:"common_selected__SNUxJ",img_frame:"common_img_frame__U8vya",auto_height_image:"common_auto_height_image__lizfT",auto_width_image:"common_auto_width_image__XwbFy",auto_image:"common_auto_image__nut2X",comment_btns:"common_comment_btns__bq_To",txt_middot:"
1common_txt_middot__U0tK_",ico_frame:"common_ico_frame__dYnf8",ico_depth_frame:"common_ico_depth_frame__fEak5",ico:"common_ico__EGk8h",comment_input_form_frame:"common_comment_input_form_frame__gtqYr",comment_reply:"common_comment_reply__2GJ4M",comment_edit:"common_comment_edit__oPXKd",show_more_btn_wrap:"common_show_more_btn_wrap__PSsN_",comment_checkbox_frame:"common_comment_checkbox_frame__Ocv6C"}}},function(e){e.O(0,[8179,2428,3253,9089,245,4559,9238,2679,5518,3498,9755,885,5669,8065,9223,5745,2991,5786,9079,2888,9774,179],function(){return e(e.s=20261)}),_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.