import{a4 as i,o as t,b as a,u as e,y as s,I as n,q as o,h as c,F as l,n as d,e as y,v as r,w as p,aH as u,ay as m,al as h,am as v}from"./vendor-jA_NIjzi.js";import{_ as g,b as f,a as C,u as _}from"./common-store-e_1WBubm.js";import{a5 as w,i as T}from"./common-utils-8H8K2JPG.js";const k={style:{display:"flex",width:"100%",height:"100%"}},I=["src","alt"],b={class:"custom-indicator"},q=g({__name:"Swipe",setup(g){const q=f(),S=C(),j=i(),A=_();return(i,g)=>{const f=u,C=m,_=h,x=v;return t(),a("div",{class:d(["home-swipe-container",["home-swipe-container-".concat(e(A).homeModel),{nologin:!e(T)()}]])},[e(q).loading?(t(),s(C,{key:0,style:{height:"100%"}},{template:n((()=>[c("div",k,[o(f,{"image-size":"100%"})])])),_:1})):(t(),s(x,{key:1,class:"my-swipe",autoplay:3e3,"indicator-color":"white"},{indicator:n((({active:i,total:e})=>[p(c("div",b,[(t(!0),a(l,null,y(e,(e=>(t(),a("i",{class:d({active:e===i+1}),key:e},null,2)))),128))],512),[[r,e>1]])])),default:n((()=>[(t(!0),a(l,null,y(e(w)(e(S).bannerList,"0"),(i=>(t(),s(_,{key:i.id,onClick:t=>(i=>{if(!T())return j.push("/login");const{type:t}=i;if(0===t);else if(1===t){const t=S.announcementList.filter((t=>t.id===i.targetId));j.push("/messageCenter/detail?id=1&item=".concat(JSON.stringify(t[0])))}else 2===t||(701===i.activityConditionType?j.push({path:"dailyAttendance",query:{id:i.targetId,activityConditionType:i.activityConditionType}}):801===i.activityConditionType?j.push({path:"luckyActivity",query:{id:i.targetId,activityConditionType:i.activityConditionType}}):j.push({path:"ActivityDetails",query:{id:i.targetId,activityConditionType:i.activityConditionType}}))})(i)},{default:n((()=>[c("img",{src:i.h5ImageUrl,alt:i.name},null,8,I)])),_:2},1032,["onClick"])))),128))])),_:1}))],2)}}},[["__scopeId","data-v-638fb3e7"],["__file","Swipe.vue"]]);export{q as S};
