1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="21253c46-bb86-5361-964a-1420b911b4cd")}catch(e){}}(); 3import{d as kt,O as Bt,X as Dt,c as h,r as f,a6 as It,o as Vt,a as wt,H as Et,b as l,e as u,z as A,i as _,j as I,f as t,G as m,w as g,K as nt,F as C,n as x,ae as Ft,al as Lt,g as N,t as d,v as it,V,E as At,A as xt,B as Nt}from"./vendor.810e0200.js";import{_ as Pt}from"./OnlyClient.0b6f39ec.js";import{_ as St}from"./TabBar.7da7dd25.js";import{_ as Yt}from"./SectionAside.e0ca08fe.js";import{S as lt}from"./SelectBox.0daf5ad9.js";import{_ as $t}from"./LeaderBoard.abd1490a.js";import{_ as Mt,N as y,t as P,f as Tt,h as jt,D as Ot,M as ut,j as zt,L as ct}from"./index.501329bb.js";import{u as Ut,a as qt}from"./product.d6e4590c.js";import"./ClassProductUtils.55f7227b.js";import"./GoogleTagUtils.9d07f55a.js";import"./component.2f9bad52.js";import"./Options.4c6af6df.js";import"./base.a1932dca.js";import"./CustomEventHandler.4411de75.js";const p=b=>(xt("data-v-66546004"),b=b(),Nt(),b),Rt={class:"tab"},Gt=p(()=>t("h1",{class:"blind"},"\uC624\uB298\uC758 \uCC45",-1)),Ht={class:"tab__content padding_0"},Kt={class:"section section--best-select padding_0"},Qt={class:"inner"},Xt={class:"group mt_0"},Jt={class:"group__inner"},Wt=["onClick"],Zt={class:"group__inner display_none",style:{"align-items":"center"}},te={class:"toggle"},ee={class:"switch"},oe=["onClick"],se={class:"date_line"},ae=p(()=>t("div",{class:"date_box_line"},null,-1)),ne={class:"date_box gray600"},ie={class:"section section--recommend_today-book"},le={class:"inner"},ue={class:"book__inner_rec"},ce={key:0,class:"book__item_rec"},de={class:"book__control_rec"},re=["onClick"],_e=["src"],pe={key:0,class:"book_label_ad"},he=p(()=>t("span",{class:"blind"},"\uAD11\uACE0",-1)),me={key:1,class:"book_label_bg"},Ce=p(()=>t("span",{class:"book_label_adult"},[V("19"),t("span",{class:"blind"},"\uC131\uC778")],-1)),ve=p(()=>t("p",null,"19\uC138 \uC774\uC0C1 \uC0C1\uD488",-1)),fe=[Ce,ve],ge={class:"book__btn"},ye=["onClick"],be=["onClick"],ke={class:"book__content book__content_rec"},Be={class:"book__type"},De=["onClick"],Ie={class:"default_medium mt_6"},Ve={class:"list-info mt_14 list-info-textEdit"},we={key:0,class:"list-info__item"},Ee={class:"list-info__text"},Fe={key:1,class:"list-info__item"},Le={class:"list-info__text"},Ae={class:"list-info__item"},xe={class:"list-info__text"},Ne=p(()=>t("div",{class:"gray200_line"},null,-1)),Pe={class:"book__votes line_t_b"},Se={class:"book__votes-star"},Ye={class:"book__votes-point"},$e=["onClick"],Me={class:"basic"},Te=["onClick"],je=p(()=>t("i",{class:"ic ic--more"},null,-1)),Oe={key:1,class:"section section--recommend_today-book"},ze=p(()=>t("div",{class:"inner"},[t("div",{class:"no-data_form"},[t("p",{class:"no-data_comment"},"\uC624\uB298\uC758 \uCC45\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")])],-1)),Ue=[ze],qe=kt({__name:"TodayList",setup(b){const c=Bt(),dt=Dt(),w=h(()=>c.state.pass.adultInfo),S=f(),{adultCheckLink:rt,passAdult:_t}=Ut(S),pt=f([]),{handleReceiveMessage:Y}=qt(pt);let E=[{year:"",month:""}],$=f([]),M=f([]);const ht=new Date().getFullYear();function k(e,o){var n,i;S.value=[{bookInfo:e,quantity:1}],o=="preview"?(((n=e.productInfo)==null?void 0:n.adultFlag)==1||((i=e.bookProductInfo)==null?void 0:i.adultFlag)==1)&&w.value.adult==!1?_t():Ot(e.productCd):rt(o)}const T=h(()=>c.state.isLogged),mt=h(()=>c.getters["shop_myPage/viewInfo"]),j=h(()=>c.getters["advertising/leaderBanners"]||[]),v=h(()=>c.getters["list/getListInfoByType"](y.recToday)),F=h(()=>{const e=[];return s.resultItems.length>0&&s.resultItems.forEach(o=>{let n=e.find(i=>i.dispDate===o.dispDate);n?n.recTodays.push(o):e.push({dispDate:o.dispDate,recTodays:[o]})}),e.forEach(o=>{o.recTodays.length>0&&(o.recTodays=o.recTodays.sort((n,i)=>{var B,a;return((B=i.recNo)!=null?B:0)-((a=n.recNo)!=null?a:0)}))}),e}),s=It({year:"",month:"all",timeType:"all",noticeType:!1,page:1,resultItems:[]}),Ct=()=>{s.noticeType?c.dispatch("shop_myPage/changeTodayFlag",{flag:"0"}).then(()=>{ut({messages:["\uC624\uB298\uC758 \uCC45 \uB4F1\uB85D","\uC54C\uB9BC \uC124\uC815\uC774 \uAE
3BC\uC84C\uC2B5\uB2C8\uB2E4."]}),c.commit("shop_myPage/SET_TODAY_NOTICE","")}):c.dispatch("shop_myPage/changeTodayFlag",{flag:"1"}).then(()=>{ut({messages:["\uC624\uB298\uC758 \uCC45\uC774 \uB4F1\uB85D\uB418\uBA74","\uBAA8\uBC14\uC77C \uC571\uC73C\uB85C \uC54C\uB824\uB4DC\uB9B4\uAC8C\uC694."]}),c.commit("shop_myPage/SET_TODAY_NOTICE","1")})},vt=()=>zt(),ft=()=>{ct(),s.page=1;const e=s.month==="all"?"":s.month.padStart(2,"0"),o=s.month==="all"?s.month:"month";c.dispatch("list/fetchListByQuery",{type:y.recToday,params:{timeYM:`${s.year}${e}`,timeType:o}}).then(()=>{s.resultItems=v.value.dataList}).finally(()=>{P()})},gt=h(()=>!v.value.pending&&v.value.totalCount>s.resultItems.length),yt=()=>{ct(),s.page+=1,c.dispatch("list/fetchListByPagination",{type:y.recToday,params:{currentPage:s.page,pageSize:10}}).then(()=>{s.resultItems.push(...v.value.dataList)}).finally(()=>{P()})},bt=(e,o=!1)=>{e&&dt.push({name:"BookDetail",params:{productCd:e},query:{review:o?"1":void 0},hash:o?"#tab-content--review":void 0})},L=f(!1);Vt(async()=>{await c.dispatch("list/fetchListByInit",{type:y.recTodayTime}).then(e=>{if((e==null?void 0:e.data)&&(e==null?void 0:e.data.length)>0){for(let n=0;(e==null?void 0:e.data.length)>n;n++)E.push({year:e==null?void 0:e.data[n].year,month:e==null?void 0:e.data[n].month});let o=[{label:"",value:""}];E.forEach(n=>{n.year&&Number(n.year)<=ht&&(o.push({label:`${n.year}\uB144`,value:`${n.year}`}),s.year=n.year)}),o=[...new Map(o.map(n=>[n.value,n])).values()],$.value=o}O(s.year)}),await c.dispatch("list/fetchListByInit",{type:y.recToday,params:{timeYM:s.year,timeType:"all"}}).then(()=>{s.resultItems=v.value.dataList}).finally(()=>{P()}),T.value?c.dispatch("shop_myPage/getMyInfo").then(()=>{s.noticeType=mt.value.mkgTodayFlag==="1",L.value=!0}):L.value=!0,window.addEventListener("message",Y)});const O=e=>{let o=[{label:"\uC804\uCCB4",value:"all"}];const n=E.filter(i=>i.year===e);s.month,n.forEach(i=>{o.push({label:`${i.month}\uC6D4`,value:`${i.month}`})}),M.value=o,s.month="all"};return wt(()=>{window.removeEventListener("message",Y)}),document.title="\uC624\uB298\uC758 \uCC45 - \uC601\uD48D\uBB38\uACE0",(e,o)=>{const n=Et("BaseLink");return l(),u("div",Rt,[Gt,j.value.length>0?(l(),A($t,{key:0,banner:j.value[0],class:"mt_0"},null,8,["banner"])):_("",!0),I(St,{type:"recommend",step:0}),t("div",Ht,[t("div",Kt,[I(Yt),t("div",Qt,[t("div",Xt,[t("div",Jt,[I(lt,{id:"year",modelValue:s.year,"onUpdate:modelValue":o[0]||(o[0]=i=>s.year=i),items:m($),class:"option-box--year",onChange:O},null,8,["modelValue","items"]),I(lt,{id:"month",modelValue:s.month,"onUpdate:modelValue":o[1]||(o[1]=i=>s.month=i),items:m(M),class:"option-box--month"},null,8,["modelValue","items"]),t("button",{type:"button",class:"btn btn--md btn--fill-gray",onClick:g(ft,["prevent"])}," \uC870\uD68C ",8,Wt)]),L.value?(l(),A(Pt,{key:0},{default:nt(()=>[t("div",Zt,[T.value?(l(),u(C,{key:0},[t("div",te,[t("p",{class:x({"hidden-label":s.noticeType})}," \uC54C\uB9BC \uC124\uC815 OFF ",2),t("p",{class:x({"hidden-label":!s.noticeType})}," \uC54C\uB9BC \uC124\uC815 ON ",2)]),t("label",ee,[Ft(t("input",{type:"checkbox",value:!0,"onUpdate:modelValue":o[2]||(o[2]=i=>s.noticeType=i)},null,512),[[Lt,s.noticeType]]),t("span",{class:"slider round",onClick:Ct})])],64)):(l(),u("button",{key:1,type:"button",class:"btn btn--sm btn--stroke-red",onClick:g(vt,["prevent"])}," \uB85C\uADF8\uC778\uD558\uACE0 \uC54C\uB9BC\uC744 \uBC1B\uC544\uBCF4\uC138\uC694 ",8,oe))])]),_:1})):_("",!0)])])]),F.value.length>0?(l(!0),u(C,{key:0},N(F.value,(i,B)=>(l(),u(C,null,[t("div",se,[ae,t("div",ne,d(m(it)(i.dispDate).format("YYYY.MM.DD")),1)]),t("section",ie,[t("div",le,[t("ul",ue,[(l(!0),u(C,null,N(i.recTodays,a=>{var z,U,q,R,G,H,K,Q,X,J,W,Z,tt,et,ot,st,at;return l(),u(C,null,[a&&a.productVo?(l(),u("li",ce,[t("div",de,[t("a",{href:"javascript:;",onClick:r=>k(a.productVo,"navigateBookDetail")},[t("img",{class:"img today_img",src:m(Tt)(a.productVo.bookProductInfo.bookImgPath,a.productVo.bookProductInfo.bookImgName,512),onError:o[3]||(o[3]=r=>m(jt)(r,192)),alt:""},null,40,_e),a.adFlag==="1"?(l(),u("span",pe,[V("AD"),he])):_("",!0),a.productVo.bookProductInfo.adultFlag=="1"&&((z=w.value)==null?void 0:z.adult)==!1?(l(),u("div",me,fe)):_("",!0)],8,re),t("div",ge,[a.productVo.bookProductInfo.adultFlag=="1"&&((U=w.value)==null?void 0:U.adult)==!1?(l(),u("a",{key:0,href:"javascript:;",class:"btn",onClick:r=>k(a.productVo,"detail")},"\uC0C8\uCC3D\uBCF4\uAE30",8,ye)):(l(),A(n,{key:1,to:{name:"BookDetail",params:{productCd:(q=a.productVo)==null?void 0:q.productCd}},target:"_blank",class:"btn"},{default:nt(()=>[V(" \uC0C8\uCC3D\uBCF4\uAE30 ")]),_:2},1032,["to"])),t("a",{href:"javascript:;",class:"btn",onClick:g(r=>k(a.productVo,"preview"),["prevent"])},"\uBBF8\uB9AC\uBCF4\uAE30",8,be)])]),t("div",ke,[t("ul",Be,[(l(!0),u(C,null,N(a.productVo.productCategoryDetails,(r,D)=>(l(),u("li",{class:x(["book__type-item",{"is-active":D+1===a.productVo.productCategoryDetails.length}])},d(r.cdCtgyNm),3))),256))]),t("a",{href:"javascript:;",onClick:r=>k(a.productVo,"navigateBookDetail"),class:"list_title"},d(a.title),9,De),t("p",Ie,d(a.subTitle),1),t("ul",Ve,[(G=(R=a.productVo.writerDetails)==null?void 0:R[0])!=null&&G.writerName?(l(),u("li",we,[t("span",Ee,d((K=(H=a.productVo.writerDetails)==null?void 0:H[0])==null?void 0:K.writerName),1)])):_("",!0),(X=(Q=a.productVo.translatorDetails)==null?void 0:Q[0])!=null&&X.writerName?(l(),u("li",Fe,[t("span",Le,d((W=(J=a.productVo.translatorDetails)==null?void 0:J[0])==null?void 0:W.writerName),1)])):_("",!0),t("li",Ae,[t("span",xe,d(m(it)(a.productVo.pubDate).format("YYYY\uB144 MM\uC6D4")),1)])]),Ne,t("div",Pe,[t("div",Se,[t("i",{class:"book__votes-star ic--star",style:At(`width: ${(((tt=(Z=a.productVo)==null?void 0:Z.productStatInfo)==null?void 0:tt.avgValuation)||0)*20}%`)},null,4)]),t("span",Ye,d(((ot=(et=a.productVo)==null?void 0:et.productStatInfo)==null?void 0:ot.avgValuation)||0),1),t("a",{href:"javascript:;",class:"book__comments",onClick:g(r=>{var D;return bt((D=a.productVo)==null?void 0:D.productCd,!0)},["prevent"])},"\uB9AC\uBDF0 "+d(((at=(st=a.productVo)==null?void 0:st.productStatInfo)==null?void 0:at.reviewCnt)||0)+"\uAC1C",9,$e)]),t("div",Me,d(a.recContent),1)])])):_("",!0)],64)}),256))]),B+1===F.value.length&>.value?(l(),u("button",{key:0,t
3ype:"button",class:"btn btn--md btn--primary btn--radius",onClick:g(yt,["prevent"])},[je,V(" \uB354\uBCF4\uAE30 ")],8,Te)):_("",!0)])])],64))),256)):(l(),u("section",Oe,Ue))])])}}});var no=Mt(qe,[["__scopeId","data-v-66546004"]]);export{no as default}; 4 5//# debugId=21253c46-bb86-5361-964a-1420b911b4cd
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.