1import{_ as P,u as w,a as A}from"./B9F-Vzwa.js";import{_ as M,a as D,s as B,b as H}from"./B9A4VrY_.js";import{_ as W}from"./D4vvuNhz.js";import{_ as L}from"./DcrPACky.js";import{d as N,r as T,o as J,c,a as i,b as s,e as v,F as x,f as y,g as o,w as n,n as K,u as e,h as Q,i as V,j as R,k as g,l as F,m as G,t as k}from"./CdLbiJPy.js";import{u as U,_ as X,a as Y}from"./CdaPxmId.js";import"./CbWf3qet.js";const Z=["id"],ee={class:"swiper-wrapper items-stretch"},te={class:"swiper-slide of-hidden bg-black"},ne=["src"],oe={key:0,class:"mt-3 flex space-x-1 md:space-x-2"},se=["onClick"],ie=N({__name:"HomeCarousel",props:{id:{},delay:{default:3e3},data:{}},setup(h){const t=T();let _;J(()=>{t.value=new window.Swiper(`#${h.id}`,{slidesPerView:1,on:{slideChangeTransitionStart:a=>{r.value=a.activeIndex,l()}}}),l()});const l=()=>{clearTimeout(_),_=setTimeout(()=>{r.value===h.data.length-1?t.value.slideTo(0):t.value.slideNext()},h.delay)},r=T(0);return(a,b)=>{const f=L;return i(),c("div",{style:Q({"--delay":`${a.delay}ms`})},[s("div",{class:"swiper w-full",id:a.id},[s("div",ee,[(i(!0),c(x,null,y(a.data,u=>(i(),c("div",te,[o(f,{class:"h-0 of-hidden relative block pb-25%",to:u.link},{default:n(()=>[s("img",{class:"absolute-full transition-all",src:u.media,alt:""},null,8,ne)]),_:2},1032,["to"])]))),256))])],8,Z),a.data.length>1?(i(),c("div",oe,[(i(!0),c(x,null,y(a.data,(u,m)=>(i(),c("div",{class:K(["w-5 h-1 md:w-10 md:h-2 b b-solid b-gray-400 cursor-pointer",{"bg-black b-black!":e(r)>m,active:e(r)===m}]),onClick:()=>{e(t)?.slideTo(m)}},null,10,se))),256))])):v("",!0)],4)}}}),ae=Object.assign(P(ie,[["__scopeId","data-v-d650345c"]]),{__name:"HomeC
1arousel"}),le=["src"],re={class:"grid gap-15 lg:gap-22"},de={class:"mt-10 flex"},_e={class:"mt-10 flex"},ce=["data-copyright"],ue=["src","poster"],me={class:"w-container mt-3 relative"},pe={class:"fw-600 text-3 lh-3.5 text-gray-400 text-end"},ve=N({__name:"index",async setup(h){let t,_;const{data:l}=([t,_]=V(()=>w("/v1/blocks",{query:{position:"kv"}})),t=await t,_(),t),{data:r}=([t,_]=V(()=>w("/v1/blocks",{query:{position:"home_banner_carousel"}})),t=await t,_(),t),{data:a,pending:b}=w("/v2/events/recommend",{query:{event_type:"exhibition",sort_by:"end_value",sort_order:"DESC"}}),{data:f,pending:u}=w("/v2/events/recommend",{query:{event_type:"activity",sort_by:"end_value",sort_order:"DESC"}});U();const{locale:m}=R();return(d,he)=>{const O=A,C=H,$=D,S=W,I=L,E=M,j=ae,q=X,z=Y;return i(),g(z,null,{default:n(()=>[o(O,null,{default:n(()=>[s("img",{class:"w-full mx-auto max-w-3000px",src:e(m)==="en"?"https://westbundmuseum.oss-cn-hangzhou.aliyuncs.com/OFFICIAL-WEBSITE/2026-06/微信å¾ç_20260605172922_38_644.jpg":"https://westbundmuseum.oss-cn-hangzhou.aliyuncs.com/OFFICIAL-WEBSITE/2026-06/微信å¾ç_20260605172921_37_644.jpg"},null,8,le)]),_:1}),o(q,null,{default:n(()=>
1[s("div",re,[e(b)||e(a)?.length?(i(),g(E,{key:0,title:d.$t("home.recommend.exhibition"),pending:e(b)},{default:n(()=>[o($,{id:"event",mobile:"preview",custom:{slidesPerView:1.5,breakpoints:("swiperGrid"in d?d.swiperGrid:e(B))({sm:2.5,md:3.5,lg:4})}},F({_:2},[y(e(a),p=>({name:p.uuid,fn:n(()=>[o(C,{item:p},null,8,["item"])])}))]),1032,["custom"]),s("div",de,[o(I,{to:"/exhibition"},{default:n(()=>[o(S,null,{default:n(()=>[G(k(d.$t("common.link.view-more")),1)]),_:1})]),_:1})])]),_:1},8,["title","pending"])):v("",!0),e(u)||e(f)?.length?(i(),g(E,{key:1,title:d.$t("home.recommend.activity"),pending:e(u)},{default:n(()=>[o($,{id:"event",mobile:"preview",custom:{slidesPerView:1.5,breakpoints:("swiperGrid"in d?d.swiperGrid:e(B))({sm:2.5,md:3.5,lg:4})}},F({_:2},[y(e(f),p=>({name:p.uuid,fn:n(()=>[o(C,{item:p},null,8,["item"])])}))]),1032,["custom"]),s("div",_e,[o(I,{to:"/activity"},{default:n(()=>[o(S,null,{default:n(()=>[G(k(d.$t("common.link.view-more")),1)]),_:1})]),_:1})])]),_:1},8,["title","pending"])):v("",!0),e(r)?.length&&e(r)[0]?.banner_view?.length?(i(),g(j,{key:2,id:"home-banner",data:e(r)[0]?.banner_view},null,8,["data"])):v("",!0)])]),_:1}),e(l)?.length?(i(),c(x,{key:0},[s("section",{class:"relative","data-copyright":e(l)[0]?.video_view[0]?.field_copyrights},[s("video",{src:e(l)[0]?.video_view[0]?.field_media_video_file,poster:e(l)[0]?.video_view[0]?.field_media_image,playsinline:"","webkit-playsinline":"",muted:"",autoplay:"",loop:"","x5-video-orientation":"portraint","x5-video-player-type":"h5","x5-video-player-fullscreen":"true"},null,8,ue)],8,ce),s("div",me,[s("div",pe,k(e(l)[0]?.video_view[0]?.field_copyrights),1)])],64)):v("",!0)]),_:1})}}}),Ce=P(ve,[["__scopeId","data-v-87ad610f"]]);export{Ce as default};
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.