import{U as a,aI as e,a4 as s,o,b as i,F as t,e as l,u as r,f as n,t as m,h as c,q as d,z as u}from"./vendor-jA_NIjzi.js";import{a2 as p,i as y,a4 as h}from"./common-utils-RDWuRZ1M.js";import{L as v}from"./index--f6YAgnJ.js";import{u as f}from"./useManyRoom-kZQzSObg.js";import{_ as g}from"./common-store-kFD1YPwN.js";const b={class:"games-details-container"},k=["onClick"],_={key:0,class:"label-icon"},G={key:1,class:"label-icon-hot"},j={key:2,class:"label-icon"},L={key:3,class:"maintain"},T=["src"],w=g({__name:"GameDetails",props:{gameList:Array},emits:["login"],setup(g,{emit:w}){const{t:C}=a(),D=g,I=w,{showPop:M,hallData:q,getManyRoomDetail:R}=f(),{gameList:U}=e(D),V=s(),x=p((async a=>{if(1===a.isMaintain)return;const{thirdGameName:e,thirdGameCode:s,gameLobby:o,thirdGameTypeId:i,isSelfLottery:t}=a;if(4!==i&&(0!=+o||1===t))return 1===t?y()?(await R(s),M.value?void 0:V.push({path:"/lottery",query:{lotteryId:s}})):void I("login"):void(1!=+o||y()?1==+o&&y()&&h(a,{gameCode:a.h5RedirectParam}):I("login"));await V.push({path:"/thirdgamelist/".concat(e,"/").concat(s),query:{from:"/home"}})}),2e3);return(a,e)=>(o(),i("div",b,[(o(!0),i(t,null,l(r(U),((a,e)=>(o(),i(t,null,[0!==a.isShow?(o(),i("div",{class:"items",key:e,onClick:e=>r(x)(a)},[1==+a.cornerType?(o(),i("div",_,"NEW")):n("",!0),2==+a.cornerType?(o(),i("div",G,"HOT")):n("",!0),3==+a.cornerType?(o(),i("div",j,m(r(C)("推荐")),1)):n("",!0),1===a.isMaintain?(o(),i("div",L,m(r(C)("维护中")),1)):n("",!0),c("img",{src:a.bannerUrl,alt:""},null,8,T)],8,k)):n("",!0)],64)))),256)),d(v,{modelValue:r(M),"onUpdate:modelValue":e[0]||(e[0]=a=>u(M)?M.value=a:null),data:r(q)},null,8,["modelValue","data"])]))}},[["__scopeId","data-v-57e41fe0"],["__file","GameDetails.vue"]]);export{w as G};
