1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6689],{77665:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/communitys/saleView",function(){return t(7917)}])},46898:function(n,e,t){"use strict";var r=t(85893),i=t(67294),o=t(45697),u=t.n(o),c=t(25617),a=t(35956),s=t(11163),l=t(49229),d=(t(88470),t(75408)),m=t(85518),f=function(n){var e=(0,c.I0)(),t=(0,c.v9)((function(n){return n.commonAuth})),o=(t.userInfo,t.isLogin,(0,c.v9)((function(n){return n.commonSystem})).flutterReady),u=(0,s.useRouter)(),f=u.query.tourId,p=u.pathname.split("/"),h=u.pathname.substring(1).split("/")[0];p.length>1&&(h=p[1]);var v=n.title,g=(n.desc,n.isLive),y=n.srhTourId,b=(0,c.v9)((function(n){return n.commonSystem})).isApp,x={tour:"all"===f||"kpga"===f?[]:"54"===f||"55"===f?[{name:(0,a.t)("notice"),uri:"/tour/notice/notice/"},{name:(0,a.t)("competition"),uri:"/tour/game/game/"},{name:(0,a.t)("schedule"),uri:"/tour/schedule/schedule/"},{name:(0,a.t)("record"),uri:"/tour/record/"},{name:(0,a.t)("media"),uri:"/tour/media/media/"}]:"11"===f?[{name:(0,a.t)("notice"),uri:"/tour/notice/notice/"},{name:(0,a.t)("genesisPoint"),uri:"/tour/sponsor/awards/"},{name:(0,a.t)("competition"),uri:"/tour/game/game/"},{name:(0,a.t)("schedule"),uri:"/tour/schedule/schedule/"},{name:(0,a.t)("players"),uri:"/tour/player/player/"},{name:(0,a.t)("record"),uri:"/tour/record/"},{name:(0,a.t)("media"),uri:"/tour/media/media/"}]:[{name:(0,a.t)("notice"),uri:"/tour/notice/notice/"},{name:(0,a.t)("competition"),uri:"/tour/game/game/"},{name:(0,a.t)("schedule"),uri:"/tour/schedule/schedule/"},{name:(0,a.t)("players"),uri:"/tour/player/player/"},{name:(0,a.t)("record"),uri:"/tour/record/"},{name:(0,a.t)("leaderBoard"),uri:"/tour/leaderboard/?tourId=".concat(y)},{name:(0,a.t)("media"),uri:"/tour/media/media/"}],education:[{name:(0,a.t)("educationNotice"),uri:"/education/notice/?year=2023&curriculumType=notice&tabId=list"},{name:(0,a.t)("educationSchedule"),uri:"/education/schedule/"},{name:(0,a.t)("educationGuide"),uri:"/education/edu/"},{name:(0,a.t)("aboutOurEducation"),uri:"/education/about/"}],media:[{name:"PLAYER SHOT",uri:"/media/videoShot/"},{name:"VIDEO",uri:"/media/video/"},{name:(0,a.t)("news"),uri:"/media/news/"},{name:(0,a.t)("photo"),uri:"/media/photo/"}],community:[{name:(0,a.t)("joinPracticeR"),uri:"/community/join/"},{name:(0,a.t)("jobRecruitmentSearch"),uri:"/community/jobOffer/"},{name:(0,a.t)("fieldTraining"),uri:"/community/offSeason/"},{name:(0,a.t)("trading"),uri:"/community/sale/"},{name:(0,a.t)("requestForALesson"),uri:"/community/lesson/"},{name:"KPGA ".concat((0,a.t)("suAffiliateServicesForMembers")),uri:"/community/affiliation"},{name:"KPGA ".concat((0,a.t)("suAssociationForMembers")),uri:"/community/association"},{name:"KPGA ".concat((0,a.t)("bulletinBoardExclusivelyForMembers")),uri:"/community/board/?boardType=member"}],about:[{name:(0,a.t)("aboutTheAssociation"),uri:"/about/about/"},{name:(0,a.t)("ourHistory"),uri:"/about/history/"},{name:(0,a.t)("pastPresidents"),uri:"/about/chairman/"},{name:(0,a.t)("ourOrganization"),uri:"/about/organization/"},{name:(0,a.t)("ourOffice"),uri:"/about/contactUs/"},{name:(0,a.t)("membershipStatus"),uri:"/about/condition/"}],event:[{name:(0,a.t)("event"),uri:"/event/event/?tabId=event"},{name:(0,a.t)("eventInProgress"),uri:"/event/event/?tabId=ing"},{name:(0,a.t)("eventCompleted"),uri:"/event/event/?tabId=end"}]},w=function(n){e((0,d.XK)(!0))};return(0,i.useEffect)((function(){o&&b&&window.flutter_inappwebview&&window.flutter_inappwebview.callHandler&&window.flutter_inappwebview.callHandler("setTitle",v)}),[o]),(0,i.useEffect)((function(){return window.addEventListener("flutterInAppWebViewPlatformReady",w),function(){window.removeEventListener("flutterInAppWebViewPlatformReady",w)}}),[]),(0,r.jsx)("div",{className:"head-wrap new-lvb",children:b?null:(0,r.jsxs)("div",{children:[m.tq&&g?(0,r.jsx)("div",{className:"live-box mobile-only",children:(0,r.jsx)("i",{className:"live-icon",children:"LIVE"})}):null,(0,r.jsxs)("h1",{children:[v,h&&x[h]?x[h].filter((function(n){return n.name!==v})).map((function(n,e){return(0,r.jsx)(l.Z,{href:"tour"===h&&f?n.uri+"?tourId=".concat(f):n.uri,children:(0,r.jsx)("span",{className:"desktop-only",children:n.name})},e)})):null]})]})})};f.propTypes={title:u().string.isRequired,desc:u().string.isRequired},e.Z=f},88967:function(n,e,t){"use strict";var r=t(85893),i=t(67294),o=t(45697),u=t.n(o),c=t(35956),a=function(n){var e=n.isDisplay,t=n.content,o=n.clickOkButton,u=n.clickNoButton;return(0,r.jsx)("div",{className:"popup",style:{display:e?"block":"none"},children:(0,r.jsxs)("div",{className:"pop-wrap pop-style1",children:[(0,r.jsx)("div",{className:"pop-cont",children:(0,r.jsx)("p",{className:"textCenter",children:t.split("\n").map((function(n,e){return(0,r.jsxs)(i.Fragment,{children:[n,(0,r.jsx)("br",{})]},"terms-".concat(e))}))})}),(0,r.jsxs)("div",{className:"pop-btn",children:[(0,r.jsx)("button",{className:"brown",onClick:o,children:(0,c.t)("confirm")}),(0,r.jsx)("button",{className:"gray",onClick:u,children:(0,c.t)("cancel")})]})]})})};a.propTypes={isDisplay:u().bool.isRequired,content:u().string.isRequired,clickOkButton:u().func.isRequired,clickNoButton:u().func.isRequired},e.Z=a},79585:function(n,e,t){"use strict";t.d(e,{G:function(){return o},j:function(){return i}});var r=t(86896),i=function(n,e){var t=(0,r.ej)("community_".concat(n))||[];if(t.includes(e+"")){var i=t.findIndex((function(n){return n===e+""}));i>-1&&t.splice(i,1)}else t.push(e+"");(0,r.d8)("community_".concat(n),t,365)},o=function(n,e){return!(!n||!e)&&((0,r.ej)("community_".concat(n))||[]).includes(e+"")}},22803:function(n,e,t){"use strict";t.d(e,{C$:function(){return d},GT:function(){return b},Gf:function(){return m},NO:function(){return y},OG:function(){return a},Qm:function(){return f},bi:function(){return x},eW:function(){return s},iB:function(){return l},k6:function(){return p},kU:function(){return h},p4:function(){return w},pK:function(){return v},vB:function(){return g}});var r=/^(?=.*[A-Za-z])(?=.*\d)(?=.*[$`~!@$!%*#^?&\\(\\)\-_=+])[A-Za-z\d$`~!@$!%*#^?&\\(\\)\-_=+]{8,15}$/i,i=/^[0-9][0-9\-]*[0-9]$/,o=/^[a-z]+[a-z0-9]{5,18}$/,u=/(^02.{0}|^01.{1}|[0-9]{3})([0-9]+)([0-9]{4})/,c=/^\d{2,3}-\d{3,4}-\d{4}$/,a=function(n){return n.replace(/[^0-9]/g,"")},s=function(n){return r.test(n)},l=function(n){return i.test(n)},d=function(n){return o.test(n)},m=function(n){return c.test(n)},f=function(n){return n?n.replace(/(^02.{0}|^01.{1}|[0-9]{3})([0-9]+)([0-9]{4})/,"$1-$2-$3"):""},p=function(n){return n?n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):n},h=function(n){return n?-1===n.indexOf("-")?u.exec(n):u.exec(n.replaceAll("-","")):""},v=function(n){return n?n.replace(/[^0-9]/g,"").replace(/(^02|^0505|^1[0-9]{3}|^0[0-9]{2})([0-9]+)?([0-9]{4})/,"$1-$2-$3").replace("--","-"):""},g=function(n,e){return n?parseFloat(n).toFixed(e):n},y=function(n){return n?n.replace(/^(19[0-9][0-9]|20\d{2})(0[0-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])$/,"$1.$2.$3"):""},b=function(n){return n?(n.startsWith("&")&&(n=n.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/&nbsp;/g," ").replace(/’/g,"'").replace(/‘/g,"'").replace(/“/g,'"').replace(/”/g,"/").replace(/”/g,"/").replace(/#/g,"/").replace(/'/g,"'").replace(/&/g,"&")),n.replaceAll("https://erp.kpga.co.kr:443/board/images","".concat("https://www.kpga.co.kr/res/upload","/board/images")).replaceAll("http://manager.kgt.co.kr","".concat("https://www.kpga.co.kr/res/upload"))):""};function x(n){var e=n;return null==n&&(e=""),e}var w=function(n){if(!n||"string"!==typeof n)return"";var e=n.trim();return e.startsWith("<dl")&&e.endsWith("</dl>")?e:"<dl>".concat(e,"</dl>")}},7917:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return b}});var r=t(47568),i=t(20414),o=t(85893),u=t(67294),c=t(49229),a=t(37793),s=t(25617),l=t(15334),d=t(23548),m=t(19574),f=(t(46898),t(22803)),p=t(34363),h=t(95729),v=t(35956),g=t(88967),y=t(79585);function b(){var n=(0,s.v9)((function(n){return n.commonAuth})),e=n.isLogin,t=n.userInfo,b=(0,s.I0)(),x=(0,l.x)(),w=x.query,j=w.boardType,_=w.postId,N=w.searchWord,k=w.page;k=k||1,N=N||"";var B=(0,u.useState)(null),I=B[0],T=B[1],Z=(0,u.useState)(!1),A=Z[0],$=Z[1],R=(0,u.useState)(""),S=R[0],E=R[1],O=(0,u.useState)("none"),q=O[0],P=O[1],L=(0,u.useState)(null),C=L[0],D=L[1],F=(0,u.useState)(!1),G=F[0],W=F[1],z=(0,u.useState)(""),V=z[0],U=z[1],H=function(n){n.preventDefault(),x.push("/communitys/sale?page=".concat(k,"&searchWord=").concat(N))},K=function(){var n=(0,r.Z)((function(){var n;return(0,i.__generator)(this,(function(e){switch(e.label){case 0:return W(!1),C?[4,a.L1({boardType:j,postId:_,threadNo:C})]:[2];case 1:return 200===(n=e.sent()).status?($(!0),E((0,v.t)("thisHasBeenRemoved")),P("list")):($(!0),E(n.data.message)),[2]}}))}));return function(){return n.apply(this,arguments)}}(),M=function(){var n=(0,r.Z)((function(){var n;return(0,i.__generator)(this,(function(e){switch(e.label){case 0:return(0,y.G)(t.memberId,_)?($(!0),E((0,v.t)("suBlindedPost")),P("list"),[2]):[4,a.Nm(j,_)];case 1:return n=e.sent(),T(n.data),[2]}}))}));return function(){return n.apply(this,arguments)}}();return(0,u.useEffect)((function(){j&&_&&a._5(j,_)}),[j,_]),(0,u.useEffect)((function(){(0,r.Z)((function(){var n;return(0,i.__generator)(this,(function(e){switch(e.label){case 0:return[4,d.L()];case 1:return(n=e.sent())&&200===n.status?b((0,m.ps)(n.data)):($(!0),E((0,v.t)("pleaseTryAgainAfterLoggingIn")),P("login")),[2]}}))}))()}),[]),(0,u.useEffect)((function(){j&&_&&M()}),[j,_]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h.Z,{isDisplay:A,content:S,clickCloseButton:function(){$(!1),"login"===q?x.push("/sign/login"):"list"===q&&x.push("/communitys/sale")}}),(0,o.jsx)(g.Z,{isDisplay:G,content:V,clickOkButton:function(){K()},clickNoButton:function(n){return W(!1)}}),(0,o.jsxs)("div",{id:"container",children:[(0,o.jsx)("div",{className:"new-subtitle",children:(0,o.jsx)("div",{className:"horizontal-flex sp-between al-item",children:(0,o.jsx)("h3",{class:"nw-title-space2",children:"\ub9e4\ub9e4"})})}),e&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:"cont-wrap nw",children:(0,o.jsxs)("div",{className:"cont-box",children:[I?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"title block",children:(0,o.jsx)("h4",{children:I.titleNm})}),(0,o.jsxs)("div",{className:"boardView",children:[(0,o.jsxs)("div",{className:"title",children:[(0,o.jsxs)("ul",{className:"desc",children:[(0,o.jsxs)("li",{children:[(0,o.jsx)("i",{className:"ic-writer"}),(0,v.t)("writer")," ",I.realName]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("i",{className:"ic-register"})," ",(0,v.t)("registrationDate")," ",(0,p.ww)(I.createdDate)]}),(0,o.jsxs)("li",{children:[(0,o.jsx)("i",{className:"ic-view"})," ",(0,v.t)("numberOfViews")," ",(0,f.k6)(I.viewCount)]}),(0,o.jsx)("li",{children:(0,o.jsx)("button",{onClick:function(n){(0,y.j)(t.memberId,_),H(n)},className:"brown mobile-only",children:(0,v.t)("suHide")})})]}),t&&t.id===I.userName?(0,o.jsxs)("ul",{className:"btn",children:[(0,o.jsx)("li",{children:(0,o.jsx)("button",{onClick:function(n){n.stopPropagation();var e=n.currentTarget.getAttribute("data-key");if(!e)return $(!0),void E((0,v.t)("thereIsNoDataToRemove"));D(e),W(!0),U((0,v.t)("areYouSureYouWantToDelete"))},"data-key":I.threadNo,children:(0,v.t)("delete")})}),(0,o.jsx)(c.Z,{href:"/community/saleReg?boardType=".concat(j,"&postId=").concat(_,"&editType=edit"),children:(0,o.jsx)("li",{children:(0,o.jsx)("button",{children:(0,v.t)("revise")})})})]}):null]}),(0,o.jsx)("div",{className:"cont",style:{whiteSpace:"pre-wrap"},children:(0,o.jsx)("p",{children:I.contentText})})]})]}):null,(0,o.jsx)("div",{className:"btn-wrap",children:(0,o.jsxs)("button",{onClick:H,children:[(0,v.t)("viewLists")," "]})})]})})})]})]})}},37793:function(n,e,t){"use strict";t.d(e,{Ig:function(){return h},KP:function(){return u},L1:function(){return f},Mf:function(){return g},Nm:function(){return s},T5:function(){return y},_5:function(){return p},_B:function(){return l},a5:function(){return d},gB:function(){return c},gp:function(){return a},uf:function(){return v},wN:function(){return m}});var r=t(47568),i=t(20414),o=t(1844),u=function(){var n=(0,r.Z)((function(n,e,t){var r;return(0,i.__generator)(this,(function(i){return r="/board/".concat(n,"/").concat(e),[2,o.U2(r,t)]}
1))}));return function(e,t,r){return n.apply(this,arguments)}}(),c=function(){var n=(0,r.Z)((function(n,e){var t;return(0,i.__generator)(this,(function(r){return t="/board/".concat(n),[2,o.U2(t,e)]}))}));return function(e,t){return n.apply(this,arguments)}}(),a=function(){var n=(0,r.Z)((function(n,e){var t;return(0,i.__generator)(this,(function(r){return console.log("Board.service:getList"),t="/community/".concat(n),[2,o.U2(t,e)]}))}));return function(e,t){return n.apply(this,arguments)}}(),s=function(){var n=(0,r.Z)((function(n,e){var t;return(0,i.__generator)(this,(function(r){return console.log("Board.service:getDetail"),t="/community/".concat(n,"/").concat(e),[2,o.U2(t)]}))}));return function(e,t){return n.apply(this,arguments)}}(),l=function(){var n=(0,r.Z)((function(n){var e;return(0,i.__generator)(this,(function(t){return console.log("Board.service:insertBoard"),e="/community/".concat(n.boardType),[2,o.v_(e,n)]}))}));return function(e){return n.apply(this,arguments)}}(),d=function(){var n=(0,r.Z)((function(n){var e;return(0,i.__generator)(this,(function(t){return console.log("Board.service:insertBoardReply"),e="/community/reply/".concat(n.boardType,"/").concat(n.postId),[2,o.v_(e,n)]}))}));return function(e){return n.apply(this,arguments)}}(),m=function(){var n=(0,r.Z)((function(n){var e;return(0,i.__generator)(this,(function(t){return console.log("Board.service:updateBoard"),e="/community/".concat(n.boardType,"/").concat(n.postId),[2,o.r$(e,n)]}))}));return function(e){return n.apply(this,arguments)}}(),f=function(){var n=(0,r.Z)((function(n){var e;return(0,i.__generator)(this,(function(t){return console.log("Board.service:deleteBoard"),e="/community/".concat(n.boardType,"/").concat(n.postId),[2,o.Od(e,n)]}))}));return function(e){return n.apply(this,arguments)}}(),p=function(){var n=(0,r.Z)((function(n,e){var t;return(0,i.__generator)(this,(function(r){return console.log("Board.service:updateBoardViewCnt"),t="/board/viewcnt/".concat(n,"/").concat(e),[2,o.gz(t)]}))}));return function(e,t){return n.apply(this,arguments)}}(),h=function(){var n=(0,r.Z)((function(n){var e;return(0,i.__generator)(this,(function(t){return console.log("Board.service:insertReply"),e="/board/reply/".concat(n.boardType,"/").concat(n.postId),[2,o.v_(e,n)]}))}));return function(e){return n.apply(this,arguments)}}(),v=function(){var n=(0,r.Z)((function(n){var e;return(0,i.__generator)(this,(function(t){return console.log("Board.service:updateReply"),e="/board/reply/".concat(n.replyIdx),[2,o.r$(e,n)]}))}));return function(e){return n.apply(this,arguments)}}(),g=function(){var n=(0,r.Z)((function(n){var e;return(0,i.__generator)(this,(function(t){return console.log("Board.service:deleteReply"),e="/board/reply/".concat(n),[2,o.Od(e)]}))}));return function(e){return n.apply(this,arguments)}}(),y=function(){var n=(0,r.Z)((function(n,e,t){var r;return(0,i.__generator)(this,(function(i){return r="/board/player/".concat(n,"/").concat(e),[2,o.U2(r,t)]}))}));return function(e,t,r){return n.apply(this,arguments)}}()}},function(n){n.O(0,[9774,2888,179],(function(){return e=77665,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
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.