import{d as m,ap as y,k as u,o,f as a,n as t,t as n,u as e,J as g,K as k,R as l,c as f,ag as C,A as b,_ as I}from"./index-CUMBhq1p.js";const x={class:"history-today-content"},T={class:"content-header"},B={class:"content-main"},E={class:"events-tab"},w=["onClick"],A={class:"tab-date"},D={class:"tab-title"},H={class:"event-detail"},V={key:0,class:"detail-content"},L={class:"title-section"},N={class:"detail-title"},P={class:"detail-date"},R={class:"content-section"},$={class:"event-image-container"},z={class:"detail-description"},F={key:1,class:"no-event"},J=m({name:"HistoryTodayContent",__name:"content",setup(K){const{currentEventIndex:_,currentHistoryItem:s,historyDateText:r,historyData:v,goToEventAtIndex:h}=y();return(S,c)=>{const p=u("el-image");return o(),a("div",x,[t("div",T,[t("h2",null,n(e(r)),1)]),t("div",B,[t("div",E,[(o(!0),a(g,null,k(e(v).data,(i,d)=>(o(),a("div",{key:i.id,class:l(["event-tab-item",{active:e(_)===d}]),onClick:U=>e(h)(d)},[t("div",A,n(i.date),1),t("div",D,n(i.title),1)],10,w))),128))]),t("div",H,[e(s)?(o(),a("div",V,[t("div",L,[t("h3",N,n(e(s).title),1),t("div",P,n(e(s).date),1)]),t("div",R,[t("div",$,[e(s).pic?(o(),f(p,{key:0,src:e(s).pic.length?e(s).pic[0]:`${e(C)}/yy_image/history_tody.webp`,fit:"contain","preview-src-list":e(s).pic,class:l(["event-image"])},null,8,["src","preview-src-list"])):b("",!0)]),t("div",z,n(e(s).content),1)])])):(o(),a("div",F,c[0]||(c[0]=[t("p",null,"暂无历史事件数据",-1)])))])])])}}}),q=I(J,[["__scopeId","data-v-53c8682a"]]);export{q as default};
