(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9910],{2032:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/book/info/list",function(){return t(8926)}])},3770:function(e,s,t){t(7758);var n=t(2923),i=t(7758);!function(e,s,t,i){UI.curationSw={sliderEl:'[data-slider="curation"]',defaultConfig:{observer:!0,observeParents:!0,initialSlide:0,lazy:!0,breakpoints:{768:{initialSlide:0}},on:{init:function(){}}},setSwiper:function(){var s=this;t(this.sliderEl).each((function(i,a){if(setConfig=t(a).attr("data-swiper")?JSON.parse(a.dataset.swiper):{},a.options=Object.assign({},s.defaultConfig,setConfig),"undefined"!==typeof t(a).attr("data-swiper-reinit")){var r=Number(t(a).attr("data-swiper-reinit"));a.options.initialSlide=r,a.options.breakpoints[768].initialSlide=r,t(a).removeAttr("data-swiper-reinit")}if("undefined"!==typeof a.options.pagination&&(a.options.pagination.el=t(a).closest(".page-kv").find(".swiper-pagination")[0],"fraction"===a.options.pagination.type&&(a.options.pagination.formatFractionCurrent=function(s){return"custom"===t(a).attr("data-curation-page")&&"mo"===e.winWChk?("0"+(s-1!==0?s-1:t(a).find(".swiper-slide:not(.swiper-slide-duplicate)").length)).slice(-2):("0"+s).slice(-2)},a.options.pagination.formatFractionTotal=function(e){return("0"+e).slice(-2)},a.options.pagination.renderFraction=function(e,s){return'<span class="'+e+'"></span><span class="bar"></span><span class="'+s+'"></span>'})),!0===a.options.navigation&&(a.options.navigation={nextEl:t(a).closest(".page-kv").find(".swiper-next"),prevEl:t(a).closest(".page-kv").find(".swiper-prev")}),!0===a.options.loop&&(a.options.loopedSlides=t(a).find(".swiper-slide").length),t(a).hasClass("kv-swiper__gallery")&&"pc"===e.winWChk&&(a.options.autoplay=!1),!0===a.options.autoplay&&(a.options.autoplay={delay:5e3,disableOnInteraction:!1}),"active-bigger"===t(a).attr("data-curation-style")&&(a.options.on.init=function(){t(a).find(".swiper-slide").addClass("changed")},a.options.on.slideChangeTransitionStart=function(){t(a).find(".swiper-slide").addClass("changing"),t(a).find(".swiper-slide").removeClass("changed")},a.options.on.slideChangeTransitionEnd=function(){t(a).find(".swiper-slide").removeClass("changing"),t(a).find(".swiper-slide").addClass("changed")},t("[data-slider=curation]").on("click",".swiper-slide",(function(e){if(!t(this).hasClass("swiper-slide-active")){e.preventDefault();var s=t(this).data("swiper-slide-index"),n=a.options.speed;swInstance.slideToLoop(s,n)}}))),"overlap"===t(a).attr("data-curation-style")&&(a.options.on.init=function(){"pc"===e.winWChk&&(t(a).find(".swiper-slide").eq(this.activeIndex).css("opacity",1).siblings(".swiper-slide").css("opacity",0),t(a).find(".swiper-slide").eq(this.activeIndex-1).css("opacity",1),t(a).find(".swiper-slide").eq(this.activeIndex-2).css("opacity",1))},a.options.on.slideChange=function(){"pc"===e.winWChk&&(t(a).find(".swiper-slide").eq(this.activeIndex).css("opacity",1).siblings(".swiper-slide").css("opacity",0),t(a).find(".swiper-slide").eq(this.activeIndex-1).css("opacity",1),t(a).find(".swiper-slide").eq(this.activeIndex-2).css("opacity",1))}),"preview"===t(a).attr("data-curation-nav")){var c=t(a).find(".swiper-prev").find(".swiper--btn__bg"),o=t(a).find(".swiper-next").find(".swiper--btn__bg");a.options.on.init=function(){var e=this.$el.find(".swiper-slide-prev").find(".kv-swiper__img img").attr("src"),s=this.$el.find(".swiper-slide-next").find(".kv-swiper__img img").attr("src");c.css("background-image","url(".concat(e,")")),o.css("background-image","url(".concat(s,")"))},a.options.on.slideChangeTransitionStart=function(){var e=this.$el.find(".swiper-slide-prev").find(".kv-swiper__img img").attr("src"),s=this.$el.find(".swiper-slide-next").find(".kv-swiper__img img").attr("src");c.css("background-image","url(".concat(e,")")),o.css("background-image","url(".concat(s,")"))},matchMedia("screen and (max-width: 768px)").matches&&(a.options.on.init=function(){c.css("background-image","none"),o.css("background-image","none")},a.options.on.slideChangeTransitionStart=function(){c.css("background-image","none"),o.css("background-image","none")})}if("undefined"===typeof t(a).data("ui")){if("undefined"===typeof a.options.thumbs)swInstance=new n(a,a.options),t(a).data("ui",swInstance);else{var l=t(a).closest('[data-role="swiper-container"]').find('[data-slider="curation"]')[0].swiper;swInstance=new n(a,a.options),t(a).data("ui",swInstance),swInstance.controller.control=l,l.controller.control=swInstance,swInstance.update(),l.update()}"undefined"!==typeof a.options.autoplay&&(!0===swInstance.params.autoplay.enabled?s.autoplaySet(swInstance,!0):s.autoplaySet(swInstance,!1))}}))},autoplaySet:function(e,s){setTimeout((function(){if(!0===s){var t=e.pagination.$el.closest(".page-kv").find(".swiper-controls");0===t.find(".btn-autoplay").length&&t.append('<button type="button" class="swiper--play btn-autoplay"><span>\uc2dc\uc791</span></button><button type="button" class="swiper--pause btn-autoplay"><span>\uba48\ucda4</span></button>'),e.autoplay.running?(t.find(".swiper--play").addClass("disabled").css("display","none"),t.find(".swiper--pause").removeClass("disabled").css("display","")):(t.find(".swiper--play").removeClass("disabled").css("display",""),t.find(".swiper--pause").addClass("disabled").css("display","none")),t.find(".swiper--play").off("click").on("click",(function(){e.autoplay.start(),t.find(".swiper--play").addClass("disabled").css("display","none"),t.find(".swiper--pause").removeClass("disabled").css("display","")})),t.find(".swiper--pause").off("click").on("click",(function(){e.autoplay.stop(),t.find(".swiper--play").removeClass("disabled").css("display",""),t.find(".swiper--pause").addClass("disabled").css("display","none")}))}else!0===e.autoplay.running&&e.autoplay.stop(),e.pagination.$el.closest(".page-kv").find(".btn-autoplay").remove()}),300)},init:function(){t(this.sliderEl).length>0&&this.setSwiper()},resize:function(){if(t(this.sliderEl).length){var s=this;t(this.sliderEl).each((function(n,i){if("undefined"!==typeof t(i).data("ui")){if("custom"===t(i).attr("data-curation-page")){var a=t(i).data("ui").realIndex;"mo"===e.winWChk?t(i).attr("data-swiper-reinit",a+1):t(i).attr("data-swiper-reinit",a-1),null!==t(i).data("ui")&&t(i).data("ui").destroy(),t(i).removeData("ui"),setTimeout((function(){s.setSwiper()}),300)}if(t(i).hasClass("kv-swiper__gallery")&&("mo"===e.winWChk?(s.autoplaySet(t(i).data("ui"),!0),t(i).data("ui").autoplay.start()):(s.autoplaySet(t(i).data("ui"),!1),t(i).data("ui").autoplay.stop())),"overlap"===t(i).attr("data-curation-style")){var r=t(i).data("ui");"mo"===e.winWChk?t(r.slides).css("opacity",""):(t(r.slides[r.activeIndex]).css("opacity",1).siblings(".swiper-slide").css("opacity",0),t(r.slides[r.activeIndex-1]).css("opacity",1),t(r.slides[r.activeIndex-2]).css("opacity",1))}if("active-bigger"===t(i).attr("data-curation-style")){var c=t(i).data("ui");"pc"===e.winWChk&&(t(c.slides).css("width",""),c.update())}}}))}}},UI.curationSw.init()}(window,document,i)},5616:function(e,s,t){"use strict";var n=t(5893);t(7294);s.Z=function(){return(0,n.jsx)("div",{className:"box-layerLoading"})}},8926:function(e,s,t){"use strict";t.r(s),t.d(s,{__N_SSP:function(){return S}});var n=t(7352),i=t(4924),a=t(6042),r=t(9396),c=t(9815),o=t(655),l=t(5893),d=t(9008),p=t.n(d),u=t(1664),m=t.n(u),h=t(7294),f=t(8767),g=t(580),x=t(9473),v=t(9534),w=t(5998),b=t(1312),j=t(1163),_=t(7715),y=t(5616),N=t(8252),k=null,C=null,S=!0;s.default=function(e){var s,d=e.fullURL;C=t(2923),k=t(7758),t(1007);var u=(0,j.useRouter)(),S=(0,g.Z)(),I=null===(s=(0,x.v9)((function(e){return e.service})))||void 0===s?void 0:s.isMobile,Z=(0,h.useState)(!1),E=Z[0],O=Z[1],T=(0,h.useState)([]),q=T[0],P=T[1],F=(0,h.useState)([]),B=(F[0],F[1],(0,h.useState)(!1)),K=B[0],D=B[1];(0,h.useEffect)((function(){K&&(0,N.Z)(K)}),[K]),(0,h.useEffect)((function(){if(q.length>0){t(3770),window.UI.curationSw.init();var e=".box-swiper-1",s=new C(e+" .swiper-container",{slidesPerView:1,direction:"horizontal",slideToClickedSlide:!1,loop:!0,effect:"fade",freeMode:!1,spaceBetween:16,touchRatio:.2,threshold:1,speed:300,centeredSlides:!0,loopedSlides:q.length,pagination:{el:".swiper-btn-4 .pageNumber",type:"fraction",formatFractionCurrent:function(e){return("0"+e).slice(-2)},formatFractionTotal:function(e){return("0"+e).slice(-2)},renderFraction:function(e,s){return'<span class="'+e+'"></span> <span class="line"></span> <span class="'+s+'"></span>'}},on:{slideChange:function(s){k(e+" .swiper-container").find(".swiper-slide").eq(this.activeIndex).css("opacity",1).siblings(".swiper-slide").css("opacity",0),k(e+" .swiper-container").find(".swiper-slide").eq(this.activeIndex-1).css("opacity",0)},init:function(s){k(e+" .swiper-container").find(".swiper-slide").eq(this.activeIndex).css("opacity",1).siblings(".swiper-slide").css("opacity",0),k(e+" .swiper-container").find(".swiper-slide").eq(this.activeIndex-1).css("opacity",0)}},navigation:{prevEl:".mobile-show .swiper-prev",nextEl:".mobile-show .swiper-next"},breakpoints:{767:{slidesPerView:1,speed:700}}}),n=new C(".box-swiper-2 .swiper-container",{slidesPerView:"auto",effect:"slide",loop:!0,speed:400,centeredSlides:!1,freeMode:!1,slideToClickedSlide:!0,navigation:{prevEl:".pc-show .swiper-prev",nextEl:".pc-show .swiper-next"}});k(".swiper-4").length&&(s.controller.control=n,n.controller.control=s)}}),[q]);var A=(0,h.useState)([{key:"grade",title:"\ud3c9\uc810",items:[{name:"\uc804\uccb4",value:"grade",isAll:!0,selected:!1},{name:"\uac15\ub825 \ucd94\ucc9c",value:"A",selected:!1},{name:"\uc0dd\uac01\ubcf4\ub2e4 \uc88b\uc544\uc694",value:"B",selected:!1},{name:"\uad1c\ucc2e\uc544\uc694",value:"C",selected:!1},{name:"\uadf8\ub0e5 \uadf8\ub807\ub124\uc694",value:"D",selected:!1},{name:"\uc2dc\uac04 \uc544\uae4c\uc6cc\uc694",value:"E",selected:!1}]}]),L=A[0],W=A[1],Y=(0,h.useState)(0),M=Y[0],Q=Y[1],U=(0,h.useState)([]),$=U[0],R=U[1],z=(0,h.useState)([]),V=z[0],G=z[1],X=(0,h.useState)(""),J=X[0],H=X[1],ee=(0,h.useState)({page:0,limit:20,sort:"created_at",direction:"desc",search_keyword:"",grade:[],code601001:[],code601002:[]}),se=ee[0],te=ee[1],ne=(0,h.useState)([]),ie=ne[0],ae=ne[1],re=(0,h.useState)(!1),ce=re[0],oe=re[1];(0,f.useQuery)("getBannerItems",(0,n.Z)((function(){return(0,o.__generator)(this,(function(e){switch(e.label){case 0:return[4,b.Z.get("/common/banner/position/BOOK_03_01")];case 1:return[2,e.sent()]}}))})),{onSuccess:function(e){e.data.data=e.data.data.filter((function(e){return e.is_open>=1})),ae(e.data.data)},onError:function(e){console.error(e)}}),(0,f.useQuery)("getKvData",(0,n.Z)((function(){return(0,o.__generator)(this,(function(e){switch(e.label){case 0:return[4,b.Z.get("/fo/common/kv/04_03_00_00")];case 1:return[2,e.sent()]}}))})),{onSuccess:function(e){P(e.data.data.kv_list)},onError:function(e){console.error(e)}});(0,f.useQuery)(["getBookInfoList",se.page,se.sort,se.search_keyword,se.grade,se.code601001,se.code601002],(0,n.Z)((function(){return(0,o.__generator)(this,(function(e){switch(e.label){case 0:return oe(!0),[4,b.Z.get("/fo/book/info/list",{params:se})];case 1:return[2,e.sent()]}}))})),{enabled:u.isReady,onSuccess:function(e){if(oe(!1),D(!0),e.data.list.map((function(e){e.grade_avg=e.grade_avg.toFixed(1)})),I&&E){O(!1);var s=(0,c.Z)($);e.data.list.map((function(e){s.push(e)})),R(s)}else R(e.data.list);Q(e.data.total)},onError:function(e){console.error(e)}}).refetch;(0,f.useQuery)("getBookInfoThisweekKeyword",(0,n.Z)((function(){return(0,o.__generator)(this,(function(e){switch(e.label){case 0:return[4,b.Z.get("/fo/book/info/thisweek/keyword",{})];case 1:return[2,e.sent()]}}))})),{onSuccess:function(e){G(e.data.data)},onError:function(e){}});var le=(0,f.useQuery)(["commonCode601002"],(0,n.Z)((function(){return(0,o.__generator)(this,(function(e){switch(e.label){case 0:return[4,b.Z.get("/common/code/children/601002")];case 1:return[2,e.sent()]}}))})),{onSuccess:function(e){e.data=e.data.map((function(e){return e.value=e.code,e.selected=!1,e}));var s=(0,c.Z)(L);s.unshift({key:"code601002",title:"\ud574\uc678\ub3c4\uc11c",className:"filter-options__items-list m-col2",items:[{name:"\uc804\uccb4",value:"code601002",isAll:!0,selected:!1}].concat((0,c.Z)(e.data))}),W(s)},onError:function(e){console.error(e)}}).isFetching;(0,f.useQuery)(["commonCode601001"],(0,n.Z)((function(){return(0,o.__generator)(this,(function(e){switch(e.label){case 0:return[4,b.Z.get("/common/code/children/601001")];case 1:return[2,e.sent()]}}))})),{enabled:!le,onSuccess:function(e){e.data=e.data.map((function(e){return e.value=e.code,e.selected=!1,e}));var s=(0,c.Z)(L);s.unshift({key:"code601001",title:"\uad6d\ub0b4\ub3c4\uc11c",className:"filter-options__items-list m-col2",items:[{name:"\uc804\uccb4",value:"code601001",isAll:!0,selected:!1}].concat((0,c.Z)(e.data))}),W(s)},onError:function(e){console.error(e)}});var de=function(){if(1!=J.length){var e=(0,r.Z)((0,a.Z)({},se),{search_keyword:J,page:0});ue(e)}else alert("2\uc790 \uc774\uc0c1\uc73c\ub85c \uac80\uc0c9\uc5b4\ub97c \uc785\ub825\ud574\uc8fc\uc138\uc694.")},pe=function(e){var s=e.target,t=s.name,n=s.value,c=s.isMore;O(c);var o,l={};"page"===t?l=(0,r.Z)((0,a.Z)({},se),(0,i.Z)({},t,n)):l=(0,r.Z)((0,a.Z)({},se),(o={},(0,i.Z)(o,t,n),(0,i.Z)(o,"page",0),o));ue(l)},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.pathname;u.push({pathname:s,query:e},void 0,{scroll:!1})},me=function(e,s,t){S.mutate({event:e,contentId:s,contentType:t})};return(0,h.useEffect)((function(){ie.length>0&&window.UI.adBanner.init()}),[ie]),(0,h.useEffect)((function(){window.UI.toggleSection.init()}),[]),(0,h.useEffect)((function(){var e={};e=0===Object.keys(u.query).length?(0,a.Z)({},se):(0,a.Z)({},Object.keys(se).reduce((function(e,s){return u.query.hasOwnProperty(s)&&(e[s]=se[s]),e}),{}),u.query),te(e);var s=L.map((function(e){return(0,r.Z)((0,a.Z)({},e),{items:e.items.map((function(s){var t,n;s.isAll?e.items.length===(null===(t=u.query[e.key])||void 0===t?void 0:t.length)+1?s.selected=!0:s.selected=!1:(null===(n=u.query[e.key])||void 0===n?void 0:n.includes(s.value.toString()))?s.selected=!0:s.selected=!1;return s}))})}));W(s)}),[u.query]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(p(),{children:[(0,l.jsx)("title",{children:"arte : BOOK \uc77d\ub2e4"}),(0,l.jsx)("meta",{property:"og:url",content:d}),(0,l.jsx)("meta",{property:"og:type",content:"article"}),(0,l.jsx)("meta",{property:"og:title",content:"BOOK \uc77d\ub2e4 > \ub3c4\uc11c \uc815\ubcf4"}),(0,l.jsx)("meta",{property:"og:description",content:"\ubcfc \ub9cc\ud55c \ucc45 \uc815\ubcf4\ub97c \ud655\uc778\ud558\uc138\uc694"}),(0,l.jsx)("meta",{property:"og:site_name",content:"\uc544\ub974\ub5bc - \uc138\uc0c1\uc5d0 \uc5c6\ub358 \uc608\uc220 \ub180\uc774\ud130, arte"}),(0,l.jsx)("meta",{property:"og:locale",content:"ko_KR"}),(0,l.jsx)("meta",{property:"og:image",content:"/assets/images/og_image/04_book_info.png"}),(0,l.jsx)("meta",{name:"title",content:"BOOK \uc77d\ub2e4 > \ub3c4\uc11c \uc815\ubcf4"}),(0,l.jsx)("meta",{name:"description",content:"\ubcfc \ub9cc\ud55c \ucc45 \uc815\ubcf4\ub97c \ud655\uc778\ud558\uc138\uc694"}),(0,l.jsx)("meta",{itemProp:"name",content:"BOOK \uc77d\ub2e4 > \ub3c4\uc11c \uc815\ubcf4"}),(0,l.jsx)("meta",{itemProp:"description",content:"\ubcfc \ub9cc\ud55c \ucc45 \uc815\ubcf4\ub97c \ud655\uc778\ud558\uc138\uc694"}),(0,l.jsx)("meta",{itemProp:"image",content:"/assets/images/og_image/04_book_info.png"}),(0,l.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,l.jsx)("meta",{name:"twitter:title",content:"BOOK \uc77d\ub2e4 > \ub3c4\uc11c \uc815\ubcf4"}),(0,l.jsx)("meta",{name:"twitter:description",content:"\ubcfc \ub9cc\ud55c \ucc45 \uc815\ubcf4\ub97c \ud655\uc778\ud558\uc138\uc694"}),(0,l.jsx)("meta",{name:"twitter:image",content:"/assets/images/og_image/04_book_info.png"})]}),(0,l.jsxs)("div",{className:"container",id:"container",children:[(0,l.jsx)("div",{className:"sub-renew",children:(0,l.jsxs)("div",{className:"inner-renew posi-relative",children:[(0,l.jsx)("h2",{className:"common-h2-type1 padding-type-1",children:"\uc9c0\uae08 \uc77d\uc5b4\uc57c \ud560 \ucc45"}),(0,l.jsxs)("div",{className:"ct swiper-two",children:[(0,l.jsx)("div",{className:"inner swiper-4 box-swiper-1",children:(0,l.jsx)("div",{className:"slider",children:(0,l.jsx)("div",{className:"swiper-container",children:(0,l.jsx)("ul",{className:"swiper-wrapper",children:q.map((function(e,s){return(0,l.jsxs)("li",{className:"swiper-slide",children:[(0,l.jsxs)("div",{className:"in-swiper-slide",children:[(0,l.jsx)("button",{type:"button",className:"btn-fav ".concat("Y"===e.is_like&&"is-fav"),"aria-label":"Like",onClick:function(s){return me(s,e.content_id,e.content_type)}}),(0,l.jsx)("div",{className:"cover-img",children:(0,l.jsx)(m(),{href:"/book/info/".concat(e.content_id),children:(0,l.jsxs)("a",{className:"img-holder",children:[(0,l.jsx)("img",{className:"img",src:e.thumbnail,alt:""}),(0,l.jsx)("span",{className:"tag-txt",children:e.label})]})})})]}),(0,l.jsx)("span",{className:"txt-1",children:(0,l.jsx)(m(),{href:"/book/info/".concat(e.content_id),children:(0,l.jsxs)("a",{children:[(0,l.jsx)("p",{className:"t-1",children:e.title}),(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{children:e.author}),(0,l.jsx)("span",{children:e.publisher})]})]})})})]},e.content_id)}))})})})}),(0,l.jsx)("div",{className:"inner swiper-4 box-swiper-2",children:(0,l.jsx)("div",{className:"slider",children:(0,l.jsx)("div",{className:"swiper-container",children:(0,l.jsx)("ul",{className:"swiper-wrapper",children:q.map((function(e,s){return(0,l.jsxs)("li",{className:"swiper-slide",children:[(0,l.jsxs)("div",{className:"in-swiper-slide",children:[(0,l.jsx)("button",{type:"button",className:"btn-fav ".concat("Y"===e.is_like&&"is-fav"),"aria-label":"Like",onClick:function(s){return me(s,e.content_id,e.content_type)}}),(0,l.jsx)("div",{className:"cover-img",children:(0,l.jsx)(m(),{href:"/book/info/".concat(e.content_id),children:(0,l.jsxs)("a",{className:"img-holder",children:[(0,l.jsx)("img",{className:"img",src:e.thumbnail,alt:""}),(0,l.jsx)("span",{className:"tag-txt",children:e.label})]})})})]}),(0,l.jsx)("span",{className:"txt-1",children:(0,l.jsx)(m(),{href:"/book/info/".concat(e.content_id),children:(0,l.jsxs)("a",{children:[(0,l.jsx)("p",{className:"t-1",children:e.title}),(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{children:e.author}),(0,l.jsx)("span",{children:e.publisher})]})]})})})]},e.content_id)}))})})})})]}),(0,l.jsx)("div",{className:"mobile-show",children:(0,l.jsxs)("div",{className:"common-swiper-sb swiper-btn-4",children:[(0,l.jsx)("div",{className:"box-swiperControl",children:(0,l.jsx)("div",{className:"pageNumber"})}),(0,l.jsxs)("div",{className:"box-prevNext",children:[(0,l.jsx)("button",{className:"swiper-prev"}),(0,l.jsx)("button",{className:"swiper-next"})]})]})}),(0,l.jsx)("div",{className:"pc-show",children:(0,l.jsxs)("div",{className:"common-swiper-sb swiper-btn-4 ",children:[(0,l.jsx)("div",{className:"box-swiperControl",children:(0,l.jsx)("div",{className:"pageNumber"})}),(0,l.jsxs)("div",{className:"box-prevNext",children:[(0,l.jsx)("button",{className:"swiper-prev"}),(0,l.jsx)("button",{className:"swiper-next"})]})]})})]})}),(0,l.jsxs)("div",{className:"content",children:[(0,l.jsxs)("div",{className:"ad-banner-wrap text-banner",children:[(0,l.jsx)("div",{className:"ad-banner swiper",children:(0,l.jsx)("div",{className:"ad-banner__list swiper-wrapper",children:ie.map((function(e){return(0,l.jsx)(m(),{href:"".concat(e.link_url),children:(0,l.jsxs)("a",{className:"ad-banner__item ".concat("W"!==e.font_color?"white":""," swiper-slide"),children:[(0,l.jsx)("img",{src:e.img1,className:"ad-banner__img img--lg",alt:e.title}),(0,l.jsx)("img",{src:e.img2,className:"ad-banner__img img--mo",alt:e.title}),""!==e.part?(0,l.jsxs)("div",{className:"inner-box",children:[(0,l.jsx)("div",{className:"inner-thumbnail",children:(0,l.jsx)("img",{src:e.thumbnail,alt:"banner-thumbnail"})}),(0,l.jsxs)("div",{className:"inner-text",children:[(0,l.jsxs)("div",{className:"tag-flex",children:[(0,l.jsx)("span",{className:"tag box",children:"\uc544\ub974\ub5bc Poll"}),(0,l.jsx)("span",{className:"tag circle",children:e.part})]}),(0,l.jsx)("strong",{children:e.title}),(0,l.jsxs)("p",{children:[(0,_.wA)(e.start_date),"-",(0,_.wA)(e.end_date)]})]})]}):""]})},e.banner_pk)}))})}),(0,l.jsx)("div",{className:"ad-banner__pagination"})]}),(0,l.jsxs)("section",{className:"ex-section",children:[(0,l.jsxs)("div",{className:"hashtag-block",children:[(0,l.jsx)("h4",{className:"hashtag-block__title",children:"\uae08\uc8fc\uc758 \uc778\uae30 \uac80\uc0c9\uc5b4"}),V.map((function(e,s){return(0,l.jsx)(m(),{href:"/util/search/content?keyword=".concat(e.keyword),children:(0,l.jsxs)("span",{className:"hashtag",style:{cursor:"pointer"},children:["# ",e.keyword]})},"tag-".concat(s))}))]}),(0,l.jsx)("div",{className:"ex-container",children:(0,l.jsxs)("article",{className:"ex-content",children:[(0,l.jsxs)("div",{className:"sort-section",children:[(0,l.jsxs)("div",{className:"sort-section__block",children:[(0,l.jsxs)("p",{className:"result-text",children:["\uac80\uc0c9\uacb0\uacfc \ucd1d ",M,"\uac1c"]}),(0,l.jsxs)("div",{className:"sort-section__side",children:[(0,l.jsxs)("div",{className:"view-sort",children:[(0,l.jsx)("button",{type:"button",className:"view-sort__cur",children:"\ucd5c\uc2e0\uc21c"}),(0,l.jsxs)("ul",{className:"view-sort__list",children:[(0,l.jsx)("li",{className:"created_at"===se.sort?"sort-on":"",children:(0,l.jsx)("button",{className:"view-sort__btn",type:"button",name:"sort",value:"created_at",onClick:pe,children:"\ucd5c\uc2e0\uc21c"})}),(0,l.jsx)("li",{className:"view_cnt"===se.sort?"sort-on":"",children:(0,l.jsx)("button",{className:"view-sort__btn",type:"button",name:"sort",value:"view_cnt",onClick:pe,children:"\uc870\ud68c\uc21c"})}),(0,l.jsx)("li",{className:"like_cnt"===se.sort?"sort-on":"",children:(0,l.jsx)("button",{className:"view-sort__btn",type:"button",name:"sort",value:"like_cnt",onClick:pe,children:"\uc88b\uc544\uc694\uc21c"})}),(0,l.jsx)("li",{className:"postscript_cnt"===se.sort?"sort-on":"",children:(0,l.jsx)("button",{className:"view-sort__btn",type:"button",name:"sort",value:"postscript_cnt",onClick:pe,children:"\ud55c\uc904\ud3c9 \uc21c"})})]})]}),(0,l.jsxs)("div",{className:"rbox-block",children:[(0,l.jsxs)("button",{type:"button",className:"filter-button","data-pop-open":"filter","data-st-open":"\uc5f4\uae30","data-st-close":"\ub2eb\uae30",children:["\uc0c1\uc138\uc635\uc158 ",(0,l.jsx)("span",{className:"st-text",children:"\uc5f4\uae30"})]}),(0,l.jsxs)("span",{className:"search-box hide-mo",children:[(0,l.jsx)("input",{type:"text",className:"o-input",placeholder:"\ub3c4\uc11c\uba85, \uc791\uac00\uba85, \ucd9c\ud310\uc0ac\uba85 \ub4f1\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694",name:"search_keyword",value:J,onChange:function(e){H(e.target.value)},maxLength:20,onKeyDown:function(e){"Enter"===e.key&&de()}}),(0,l.jsx)("button",{type:"button",className:"o-btn o-btn-search","aria-label":"\uac80\uc0c9",onClick:de})]}),(0,l.jsx)("button",{type:"button",className:"grid-type-button","data-toggle":"btn-row-type","data-toggle-rel":"pdt-grid"})]})]})]}),(0,l.jsx)(w.Z,{filterItems:L,onChange:function(e){var s=(0,r.Z)((0,a.Z)({},se,e),{page:0});ue(s)},totalCount:M,moKeywordPlaceholder:"\ub3c4\uc11c\uba85, \uc791\uac00\uba85, \ucd9c\ud310\uc0ac\uba85 \ub4f1\uc744 \uc785\ub825\ud574\uc8fc\uc138\uc694"})]}),$.length<=0?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"search-result__nodata",children:(0,l.jsx)("p",{children:"\uac80\uc0c9\uacb0\uacfc\uac00 \uc5c6\uc2b5\ub2c8\ub2e4."})})}):(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"pdt-grid-wrap",children:[(0,l.jsx)("div",{className:"pdt-grid","data-section":"pdt-grid","data-toggle-section":"pdt-grid-wide",children:$.map((function(e,s){var t="Y"===e.curation_yn?"pdt-grid__item--mowide":"";return"Y"===e.curation_yn?(0,l.jsx)("div",{className:"pdt-grid__item ".concat(t),children:(0,l.jsxs)("div",{className:"pdt pdt--pick pick-bg2",children:[(0,l.jsxs)("div",{className:"pdt__head",children:[(0,l.jsx)("strong",{className:"pdt__stit",children:"arte's Pick "}),(0,l.jsx)("p",{className:"pdt__stit-desc",children:"arte \ucd94\ucc9c \ucc45"})]}),(0,l.jsxs)("div",{className:"pdt__card",children:[(0,l.jsx)("div",{className:"thumb-img",children:(0,l.jsx)(m(),{href:"/book/info/".concat(e.book_id),children:(0,l.jsxs)("a",{className:"img-holder",children:[(0,l.jsx)("span",{className:"img-holder",children:(0,l.jsx)("img",{src:e.cover_img,alt:""})}),(0,l.jsx)("span",{className:"tag-gen tag-gen--gy",children:e.code362_name})]})})}),(0,l.jsxs)("div",{className:"pdt__inbox",children:[(0,l.jsx)(m(),{href:"/book/info/".concat(e.book_id),children:(0,l.jsx)("a",{className:"pdt__title",children:e.title})}),(0,l.jsxs)("ul",{className:"art-info",children:[(0,l.jsx)("li",{children:e.author}),(0,l.jsx)("li",{children:e.publisher})]}),(0,l.jsxs)("div",{className:"pdt__status",children:[(0,l.jsx)("span",{className:"tag-gen-s w-auto",children:e.code362_name}),e.event_cnt>0&&(0,l.jsx)("span",{className:"tag-gen-s event",children:"\uc774\ubca4\ud2b8"}),(0,l.jsxs)("span",{className:"grade",children:[(0,l.jsx)("span",{className:"star",children:(0,l.jsx)("i",{className:"star__point ".concat("p"+Number(e.grade_avg).toFixed(0))})}),(0,l.jsx)("em",{className:"grade__num",children:e.grade_avg})]}),(0,l.jsx)("button",{type:"button",className:"btn-fav btn-fav--wt ".concat("Y"===e.is_like&&"is-fav"),"aria-label":"Like",onClick:function(s){return me(s,e.id,e.content_type)}})]})]})]})]})},s):(0,l.jsx)("div",{className:"pdt-grid__item ".concat(t),children:(0,l.jsx)("div",{className:"pdt pdt--sm",children:(0,l.jsxs)("div",{className:"pdt__card",children:[(0,l.jsx)("div",{className:"thumb-img",children:(0,l.jsx)(m(),{href:"/book/info/".concat(e.book_id),children:(0,l.jsxs)("a",{children:[(0,l.jsx)("span",{className:"img-holder",children:(0,l.jsx)("img",{src:e.cover_img,alt:""})}),(0,l.jsx)("span",{className:"tag-gen tag-gen--gy",children:e.code362_name})]})})}),(0,l.jsxs)("div",{className:"pdt__inbox",children:[(0,l.jsx)(m(),{href:"/book/info/".concat(e.book_id),children:(0,l.jsx)("a",{className:"pdt__title",children:e.title})}),(0,l.jsxs)("ul",{className:"art-info",children:[(0,l.jsx)("li",{children:e.author}),(0,l.jsx)("li",{children:e.publisher})]}),(0,l.jsxs)("div",{className:"pdt__status",children:[(0,l.jsx)("span",{className:"tag-gen-s w-auto",children:e.code362_name}),e.event_cnt>0&&(0,l.jsx)("span",{className:"tag-gen-s event",children:"\uc774\ubca4\ud2b8"}),(0,l.jsxs)("span",{className:"grade",children:[(0,l.jsx)("span",{className:"star",children:(0,l.jsx)("i",{className:"star__point ".concat("p"+Number(e.grade_avg).toFixed(0))})}),(0,l.jsx)("em",{className:"grade__num",children:e.grade_avg})]}),(0,l.jsx)("button",{type:"button",className:"btn-fav btn-fav--wt ".concat("Y"===e.is_like&&"is-fav"),"aria-label":"Like",onClick:function(s){return me(s,e.id,e.content_type)}})]})]})]})})},s)}))}),(0,l.jsx)(v.Z,{page:se.page,limit:se.limit,totalCount:M,handleChangePage:pe})]})})]})})]})]}),ce&&(0,l.jsx)(y.Z,{})]})]})}},7715:function(e,s,t){"use strict";t.d(s,{E5:function(){return a},p6:function(){return n},tu:function(){return r},wA:function(){return i}});var n=function(e){if(e){"object"===typeof e&&e.toISOString(),e=e.replace(/-/g,"");var s,t,n;return s=e.substr(0,4),t=e.substr(4,2),n=e.substr(6,2),"".concat(s,". ").concat(t,". ").concat(n)}},i=function(e){if(e){"object"===typeof e&&e.toISOString(),e=e.replace(/-/g,"");var s,t,n;return s=e.substring(0,4),t=e.substring(4,6),n=e.substring(6,8),"".concat(s,".").concat(t,".").concat(n)}},a=function(e){if(e)return e.split("T")[0].replace(/-/g,".")},r=function(e,s){for(var t=[],n=-1;n<6;n++)-1===n?t.push(new Date(e.getTime()-s).toISOString().substring(0,10).replace(/-/g,".")):t.push(new Date(new Date(e.getFullYear(),e.getMonth(),e.getDate()+(n+e.getDay())).getTime()-s).toISOString().substring(0,10).replace(/-/g,"."));return t}},8252:function(e,s,t){"use strict";var n=t(5357);s.Z=function(e){if(e){var s=(0,n.G)("scrollPos"),t=(0,n.G)("isPopState");null!==s&&"Y"==t&&setTimeout((function(){window.scrollTo(0,s)}),500)}}}},function(e){e.O(0,[8085,9774,2888,179],(function(){return s=2032,e(e.s=s);var s}));var s=e.O();_N_E=s}]);