1import{_ as E}from"./Bkq9kxrn.js";import{bI as k,ao as H,bG as V,al as F,an as G,a9 as P,r as R,j as x,$ as j,n as q,ba as z,H as c,v as l,m as a,q as p,l as b,x as e,F as f,A as y,aB as O,bc as J,M as t,o as r,D as K,C as w,k as Q,aO as X,bd as Y,a_ as Z,bs as ss}from"./Bl0pM-6a.js";import{_ as ns}from"./CUvDEkWy.js";import"./B32UjW2s.js";const os={class:"events-wrapper w-content p-content"},es={key:0,class:"grid gap-2 max-sm:grid-cols-1 max-sm:gap-4 sm:grid-cols-2 sm:gap-4 w-full items-events"},as={class:"flex items-center gap-1"},ts={class:"text-xs"},cs={key:1,class:"grid gap-2 max-sm:grid-cols-1 max-sm:gap-4 sm:grid-cols-2 sm:gap-4 w-full"},ls={class:"flex flex-col gap-2 w-[calc(100%_-_110px)]"},is={key:2,class:"w-full h-full py-[20vh] md:py-[25vh]"},_s={__name:"index",setup(rs){const{getEventsList:B}=k(),{eventList:d,loading:m}=H(k()),o=V(),{localeProperties:ds}=F(),{isAuthenticated:C}=G(),{handleLoginAndRegisterModal:S}=P(),h=R(!0),I=x(()=>[{icon:"i-heroicons-home",label:c("home"),click:()=>J()},{label:c("event")}]),$=x(()=>{var n;return!h.value&&((n=d.value)==null?void 0:n.length)}),D=n=>({cashback:o.event.icon("cashback"),cashbackWinloss:o.event.icon("cashback"),commission:o.event.icon("commission"),commission4Step:o.event.icon("commission4step"),coupon:o.event.icon("coupon"),luckyWheel:o.event.icon("lucky-wheel"),pyramid:o.event.icon("pyramid-commission"),loginBonus:o.event.icon("daily-bonus"),prediction:o.event.icon("prediction"),missionDaily:o.event.icon("mission"),missionDeposit:o.event.icon("mission"),tournament:o.event.icon("tournament")})[n],A=(n,i)=>{if(i==="coupon"&&!C.value){S(!0,"login");return}Z(n)},L=n=>{const i={commission4Step:"/commission-step",commission:"/commission",cashback:"/cashback",cashbackWinloss:"/cashback",coupon:"/coupon",loginBonus:"/daily-bonus",luckyWheel:"/lucky-wheel",pyramid:"/pyramid-commission",prediction:"/prediction",missionDaily:"/login-mission",missionDeposit:"/deposit-mission",tournament:"/tournament"};ss(window.location+i[n==null?void 0:n.type])};return j(()=>{h.value=!1,q(()=>{B()})}),z({title:c("event")}),(n,i)=>{var _,g;const M=E,N=X,u=Y,T=O;return t(),l("div",os,[a(M,{divider:">",links:e(I),class:"mb-4"},{default:b(({link:s})=>[r("span",{class:K(s.click?"cursor-pointer":"cursor-default")},w(s.label),3)]),_:1},8,["links"]),e($)?(t(),l("div",es,[(t(!0),l(f,null,y(e(d),(s,U)=>{var v;return t(),Q(ns,{key:U,image:((v=s==null?void 0:s.logoUrl)==null?void 0:v.image)||D(s==null?void 0:s.type),title:(s==null?void 0:s.title)||"-",details:(s==null?void 0:s.detail)||"-",ready:s==null?void 0:s.ready,"btn-text":("t"in n?n.t:e(c))("share"),"btn-class":"!w-max !min-w-max !p-1 !px-2 !h-max ml-auto",onBtnClick:W=>L(s),onCardClick:W=>A(s==null?void 0:s.link,s==null?void 0:s.type)},{btn:b(()=>[r("div",as,[a(N,{name:"i-mdi:share"}),r("p",ts,w(("t"in n?n.t:e(c))("share")),1)])]),_:2},1032,["image","title","details","ready","btn-text","onBtnClick","onCardClick"])}),128))])):p("",!0),e(m)&&!((_=e(d))!=null&&_.length)?(t(),l("div",cs,[(t(),l(f,null,y(4,s=>r("div",{key:s._id,class:"card-primary relative gap-2 w-full h-[120px] p-[10px] rounded-[20px] flex max-sm:p-[10px]"},[a(u,{class:"!rounded-lg !w-[100px] !h-full"}),r("div",ls,[a(u,{class:"!rounded-lg !w-[50%] !h-[20px]"}),a(u,{class:"!rounded-lg !w-full !h-[10px]"}),a(u,{class:"!rounded-lg !w-full !h-[10px]"})])])),64))])):p("",!0),!e(m)&&!((g=e(d))!=null&&g.length)?(t(),l("div",is,[a(T,{icon:"svg/events",title:("t"in n?n.t:e(c))("events.eventIsComingSoon")},null,8,["title"])])):p("",!0)])}}};export{_s 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.