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