var e=Object.defineProperty,t=Object.defineProperties,s=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,l=(t,s,a)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[s]=a;import{u as o,a as r,_ as c}from"./index-DHyreyMy.js";import{g as p}from"./generalMenu-BJRHJEUq.js";import{e as v,a as m}from"./events_cn-Dy0yQvJo.js";import{d as u,r as g,c as d,k as f,o as _,H as y,ap as L,a0 as h,a3 as S,v as b,F as k,af as j,A as w,f as D,a6 as P,x,a1 as O,aa as M}from"./vendor-DezibNX8.js";import{g as I}from"./index-BV-v-R7R.js";import{S as E}from"./ScrollTrigger-B-XKz97K.js";import{S as C}from"./antd-CKo75OZH.js";import"./utils-D7vwahzQ.js";const N=u({components:{generalMenu:p},props:{isScroll:{type:Boolean,default:!0}},setup(){const e=L(),c=r();let p=g({worksSelect:"all",worksType:[{name:o().t("works.all"),value:"all"}],eventsList:[],getListDate:{getLikePortfolio:0,getMyPortfolio:0,page:1,size:10},isShowMark:!1,isNoData:!1}),u=d(()=>c.state.UserHabit.userDetail),h=f({label:"全部",value:"all"}),{t:S}=o();return _(()=>{const{t:e,locale:t}=o(),s=t.value;p.eventsList="ENGLISH"==s?v.eventsList:m.eventsList}),b=((e,t)=>{for(var s in t||(t={}))n.call(t,s)&&l(e,s,t[s]);if(a)for(var s of a(t))i.call(t,s)&&l(e,s,t[s]);return e})({},y(p)),t(b,s({userDetail:u,selectMenu:h,setWorksSelect:e=>{p.isShowMark=!1,p.isNoData=!1},likeFile:(e,t)=>{},getImgScale:e=>{},t:S,openEventsDetail:t=>{let s=e.currentRoute._value.path.split("/")[1];e.push(`/${s}/eventsDetail?eventId=${t.id}`)}}));var b},directives:{fadeIn:{mounted(e,t){let s;s=t.value?document.querySelector(".events_page"):document.querySelector(".homeRecommend_content_body"),I.registerPlugin(E);let a=I.timeline();a.from(e,1,{y:"30px",opacity:0}),E.create({trigger:e,start:"top 90%",end:"100% 80%",animation:a,scroller:s,scrub:2})}}},mounted(){return e=this,t=null,s=function*(){},new Promise((a,n)=>{var i=e=>{try{o(s.next(e))}catch(t){n(t)}},l=e=>{try{o(s.throw(e))}catch(t){n(t)}},o=e=>e.done?a(e.value):Promise.resolve(e.value).then(i,l);o((s=s.apply(e,t)).next())});var e,t,s}}),H={class:"page_content"},$={class:"page_content_itemBox"},q=["onClick"],z=["src"],B={class:"page_content_item_time"},F=["onClick"],R={class:"page_loading_box"},T={class:"page_loading"};const U=c(N,[["render",function(e,t,s,a,n,i){const l=C,o=x("fadeIn");return O(),h("div",{class:P(["events_page",{active:e.isScroll}])},[S("div",H,[S("div",$,[(O(!0),h(k,null,j(e.eventsList,(t,s)=>b((O(),h("div",{class:"page_content_item",key:e.eventsList[e.eventsList.length-1-s].id},[S("div",{class:"page_content_item_img",onClick:t=>e.openEventsDetail(e.eventsList[e.eventsList.length-1-s])},[S("img",{src:e.eventsList[e.eventsList.length-1-s].imgUrl,alt:""},null,8,z)],8,q),S("div",B,M(e.eventsList[e.eventsList.length-1-s].time),1),S("div",{class:"page_content_item_title",onClick:t=>e.openEventsDetail(e.eventsList[e.eventsList.length-1-s])},M(e.eventsList[e.eventsList.length-1-s].title),9,F)])),[[o,e.isScroll]])),128))]),b(S("div",R,[b(S("span",T,null,512),[[w,!e.isShowMark]]),b(S("span",null,[D(l,{size:"large"})],512),[[w,e.isShowMark]])],512),[[w,!e.isNoData]])])],2)}]]);export{U as default};
