import{b7 as P,O as $,r as w,aS as m,aT as a,bf as u,aY as o,N as i,bq as B,b9 as p,ba as e,bg as L,bh as V,b0 as l,aB as x,a$ as N,aX as j}from"./index-xnhGKCfe.js";import{u as D}from"./useChampoinship-D42gQede.js";import{_ as I}from"./index.vue_vue_type_style_index_0_lang-9szultRB.js";import{_ as S}from"./Pagination-Di1WVUw7.js";import{L as E}from"./ListCard-DLGywHCA.js";import{P as J}from"./index-97-mhYEo.js";import"./currency-DTUBf2lI.js";import"./pre-D84pmYLY.js";import"./useProtocol-DJp7lFWi.js";const q={class:"activity-name"},z={key:0,class:"loading-container"},A={key:1,class:"champion"},F=["onClick","disabled"],H={key:0},M={key:1},O=P({__name:"index",setup(R){const{getChampionData:_,champoinList:r,activityState:g,currentPage:s,totalCount:f,changePagehandle:h,joinNow:v,countdowns:k,joinDetail:b}=D(),c=w(!0);return $(async()=>{try{await _()}finally{c.value=!1}}),(n,d)=>{const y=B;return a(),m(J,{class:"activity",isBackHome:!1},{title:u(()=>[N("div",q,l(n.$t("t503")),1)]),default:u(()=>[c.value?(a(),o("div",z,[i(y,{size:"50px",color:"var(--main_color, #4298EA)",vertical:""})])):(a(),o("div",A,[e(r).length<1?(a(),m(I,{key:0,class:"mgt40"})):p("",!0),(a(!0),o(L,null,V(e(r),t=>(a(),o("div",{class:"event-card champ-card",key:t.id},[i(E,{cardItems:t,countdowns:e(k),onClick:C=>e(b)(t.id||0)},null,8,["cardItems","countdowns","onClick"]),e(g)===2?(a(),o("button",{key:0,class:"join-button",onClick:C=>e(v)(t.id||0),disabled:!!t.isJoin},[t.isJoin?(a(),o("span",H,l(n.$t("t460")),1)):(a(),o("span",M,l(n.$t("t459")),1))],8,F)):p("",!0)]))),128)),i(S,{modelValue:e(s),"onUpdate:modelValue":d[0]||(d[0]=t=>x(s)?s.value=t:null),"total-items":e(f),itemsPerPage:10,"max-visible-pages":5,onChangePage:e(h)},null,8,["modelValue","total-items","onChangePage"])]))]),_:1})}}}),aa=j(O,[["__scopeId","data-v-f800599b"]]);export{aa as default};
