(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{1172:function(t,e,n){"use strict";n.r(e);n(24),n(21),n(19),n(11),n(26),n(20),n(27);var a=n(2),i=n(4),r=(n(90),n(23),n(77),n(210),n(820),n(65),n(42),n(64),n(78),n(50),n(39),n(921)),s=n.n(r);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u={components:{notification:n(144).a},asyncData:function(t){return Object(i.a)(regeneratorRuntime.mark((function e(){var n,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.route.query,a=c({type:"noti"},n),e.prev=2,e.next=5,t.$axios.get("/boards",{params:a});case 5:return i=e.sent,e.abrupt("return",{boards:i.data.boards,page:i.data.page,searchKeyword:a.q});case 9:e.prev=9,e.t0=e.catch(2);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))()},data:function(){return{searchKeyword:"",boards:[],page:{},pagenation:{unit:5,cur:1,prev:1,next:1,last:1,list:[],isStart:!0,isEnd:!0},activeIndex:null,_id:"",showNoti:!1,notiMsg:""}},head:function(){var t=this.$route.query.id,e="https://kr.object.ncloudstorage.com/scloud-service/pstatic-scloud/og-image.png";if(t){t=parseInt(t,10);for(var n=0;n<this.boards.length;n++)if(t===this.boards[n].id){var a=this.boards[n].content.split("\\").join("").match(/src\s*=\s*"(.+?)"/);a&&(e=a[1])}}return{meta:[{property:"og:image",content:e}]}},mounted:function(){var t=this.boards,e=this.$route,n=this.activeBoard,a=this.activeNoti,i=this.page,r=e.query.id;if(this.setPagenation(i.page,i.pages),r){var s=t.findIndex((function(t){return t.id==r}));-1===s?a("공지사항을 찾을 수 없어요. 주소를 다시 확인해주세요."):n(s,t[s])}},created:function(){this.$store.commit("SET_PAGEINFO",{title:"공지사항",hideArrow:!0}),this.fetchIncreasedBoardViews=s()(this._fetchIncreasedBoardViews,200)},methods:{_fetchIncreasedBoardViews:function(t){var e=this;return Object(i.a)(regeneratorRuntime.mark((function n(){var a,i,r,s,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a="/boards/:id/read",n.prev=1,t){n.next=4;break}throw"Required 'boardId'";case 4:return i=a.replace(":id",t),n.next=7,e.$axios.patch(i);case 7:if(r=n.sent,s=r.data,o=s.errors,s.success){n.next=13;break}throw"".concat(o," boardId: ").concat(t);case 13:n.next=18;break;case 15:n.prev=15,n.t0=n.catch(1);case 18:case"end":return n.stop()}}),n,null,[[1,15]])})))()},query:function(){var t=this.$route,e=this.page,n=this._id,a=this.searchKeyword,i=t.path;return e.page&&(i+="?page=".concat(e.page)),n&&(i+="&id=".concat(n)),a&&(i+="&q=".concat(a)),i},afterActivateBoard:function(t,e){var n=this;this.fetchIncreasedBoardViews(t),setTimeout((function(){n.$scrollTo("#item".concat(e))}),80)},activeNoti:function(t){var e=this;this.notiMsg=t,this.showNoti=!0,setTimeout((function(){e.showNoti=!1}),1500)},activeBoard:function(t,e){var n=e.id,a=this.$router,i=this.query;this.activeIndex===t?(this.activeIndex=null,this._id=null):(this.activeIndex=t,this._id=n,this.afterActivateBoard(n,t)),a.replace(i())},getBoards:function(t){var e=this;return Object(i.a)(regeneratorRuntime.mark((function n(){var a,i,r,s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.$router,i=e.query,n.prev=1,e.activeIndex=null,e._id=null,r={type:"noti",page:t,q:e.searchKeyword},n.next=7,e.$axios.get("/boards",{params:r});case 7:s=n.sent,e.boards=s.data.boards,e.page=s.data.page,e.setPagenation(e.page.page,e.page.pages),a.replace(i()),n.next=17;break;case 14:n.prev=14,n.t0=n.catch(1);case 17:case"end":return n.stop()}}),n,null,[[1,14]])})))()},setPagenation:function(t,e){this.pagenation.cur=t,this.pagenation.last=e;var n=this.pagenation,a=n.cur,i=n.last,r=n.unit,s=Math.floor((a-1)/r),o=Math.floor((i-1)/r);this.pagenation.isStart=0===s,this.pagenation.isEnd=s===o,this.pagenation.prev=this.pagenation.isStart?1:s*r,this.pagenation.next=this.pagenation.isEnd?i:(s+1)*r+1,this.pagenation.list=Array.from({length:this.pagenation.isEnd&&i%r!=0?i%r:r},(function(t,e){return e+s*r+1}))}}},l=n(7),d=Object(l.a)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"content_wraper",role:"main"}},[n("h2",{staticClass:"heading--new"},[t._v("공지사항")]),t._v(" "),n("section",{staticClass:"contents search"},[n("h3",{staticClass:"blind"},[t._v("공지사항 검색영역")]),t._v(" "),n("div",{staticClass:"box_search"},[n("div",{staticClass:"box_inner"},[n("div",{staticClass:"half_search"},[n("div",{staticClass:"flex_wrap"},[n("dl",{staticClass:"flex_box"},[t._m(0),t._v(" "),n("dd",{staticClass:"flex"},[n("div",{staticClass:"input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.searchKeyword,expression:"searchKeyword"}],attrs:{id:"notice_txt",type:"text",placeholder:"검색어를 입력해주세요."},domProps:{value:t.searchKeyword},on:{input:function(e){e.target.composing||(t.searchKeyword=e.target.value)}}})])])])]),t._v(" "),n("a",{staticClass:"btn btn_full btn_default",on:{click:function(e){return t.getBoards(1)}}},[n("i",{staticClass:"sp_icon ico_btn_search"}),t._v("검색\n ")])])])]),t._v(" "),t.boards.length?t._e():n("article",[n("p",{staticClass:"no_data"},[t._v("검색결과가 존재하지 않습니다.")])]),t._v(" "),t.boards.length?n("table",{staticClass:"table_toggle table_help"},[n("caption",{staticClass:"blind"},[t._v("공지사항 검색결과 목록")]),t._v(" "),t._m(1),t._v(" "),n("tbody",[t._l(t.boards,(function(e,a){return[n("tr",{key:a,class:{tr_active:a===t.activeIndex},attrs:{id:"item"+a}},[n("td",{staticClass:"subject"},[t._v("공지사항")]),t._v(" "),n("td",{staticClass:"td_question"},[n("a",{staticClass:"p_view_detail",on:{click:function(n){return t.activeBoard(a,e)}}},[t._v("\n "+t._s(e.title)+"\n "),n("i",{staticClass:"sp_icon ico_view_detail"},[t._v("상세보기")])])])]),t._v(" "),n("tr",{staticClass:"tr_view"},[n("td",{attrs:{colspan:"2"}},[n("div",{staticClass:"view_box"},[e.file_name?n("div",{staticClass:"p_sub"},[n("a",{staticClass:"p_sub_file",attrs:{href:e.file_path,target:"_blank"}},[t._v(t._s(e.file_name))])]):t._e(),t._v(" "),n("div",{staticClass:"p_answer",domProps:{innerHTML:t._s(e.content)}})])])])]}))],2)]):t._e(),t._v(" "),t.boards.length?n("div",{staticClass:"paging"},[n("a",{staticClass:"btn_prev_list",class:{active:!t.pagenation.isStart},on:{click:function(e){!t.pagenation.isStart&&t.getBoards(t.pagenation.prev)}}},[n("i",{staticClass:"sp_icon ico_prev_list"},[t._v("이전목록 5개로 이동")])]),t._v(" "),t._l(t.pagenation.list,(function(e){return n("a",{key:e,staticClass:"num",class:{active:e===t.page.page},on:{click:function(n){return t.getBoards(e)}}},[t._v(t._s(e))])})),t._v(" "),n("a",{staticClass:"btn_next_list",class:{active:!t.pagenation.isEnd},on:{click:function(e){!t.pagenation.isEnd&&t.getBoards(t.pagenation.next)}}},[n("i",{staticClass:"sp_icon ico_next_list"},[t._v("다음목록 5개로 이동")])])],2):t._e()]),t._v(" "),n("notification",{attrs:{message:t.notiMsg,"noti-status":t.showNoti},on:{"update:notiStatus":function(e){t.showNoti=e},"update:noti-status":function(e){t.showNoti=e}}})],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("dt",{staticClass:"flex tit"},[n("label",{attrs:{for:"notice_txt"}},[t._v("공지사항 검색")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("colgroup",[n("col"),t._v(" "),n("col")])}],!1,null,null,null);e.default=d.exports},820:function(t,e,n){"use strict";var a=n(12),i=n(119).findIndex,r=n(200),s="findIndex",o=!0;s in[]&&Array(1).findIndex((function(){o=!1})),a({target:"Array",proto:!0,forced:o},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(s)},921:function(t,e,n){(function(e){var n="Expected a function",a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,c="object"==typeof e&&e&&e.Object===Object&&e,u="object"==typeof self&&self&&self.Object===Object&&self,l=c||u||Function("return this")(),d=Object.prototype.toString,p=Math.max,f=Math.min,v=function(){return l.Date.now()};function h(t,e,a){var i,r,s,o,c,u,l=0,d=!1,h=!1,b=!0;if("function"!=typeof t)throw new TypeError(n);function m(e){var n=i,a=r;return i=r=void 0,l=e,o=t.apply(a,n)}function w(t){return l=t,c=setTimeout(x,e),d?m(t):o}function y(t){var n=t-u;return void 0===u||n>=e||n<0||h&&t-l>=s}function x(){var t=v();if(y(t))return C(t);c=setTimeout(x,function(t){var n=e-(t-u);return h?f(n,s-(t-l)):n}(t))}function C(t){return c=void 0,b&&i?m(t):(i=r=void 0,o)}function O(){var t=v(),n=y(t);if(i=arguments,r=this,u=t,n){if(void 0===c)return w(u);if(h)return c=setTimeout(x,e),m(u)}return void 0===c&&(c=setTimeout(x,e)),o}return e=_(e)||0,g(a)&&(d=!!a.leading,s=(h="maxWait"in a)?p(_(a.maxWait)||0,e):s,b="trailing"in a?!!a.trailing:b),O.cancel=function(){void 0!==c&&clearTimeout(c),l=0,i=u=r=c=void 0},O.flush=function(){return void 0===c?o:C(v())},O}function g(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function _(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==d.call(t)}(t))return NaN;if(g(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=g(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=r.test(t);return n||s.test(t)?o(t.slice(2),n?2:8):i.test(t)?NaN:+t}t.exports=function(t,e,a){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError(n);return g(a)&&(i="leading"in a?!!a.leading:i,r="trailing"in a?!!a.trailing:r),h(t,e,{leading:i,maxWait:e,trailing:r})}}).call(this,n(17))}}]);