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-8H8K2JPG.js";import{u as v,L as f}from"./useManyRoom-39qz4Wlu.js";import{_ as g}from"./common-store-e_1WBubm.js";const b={class:"games-details-container"},k=["onClick"],_={key:0,class:"label-icon"},G={key:1,class:"label-icon-hot"},L={key:2,class:"label-icon"},T={key:3,class:"maintain"},j=["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}=v(),{gameList:U}=e(D),V=s(),z=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(z)(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",L,m(r(C)("推荐")),1)):n("",!0),1===a.isMaintain?(o(),i("div",T,m(r(C)("维护中")),1)):n("",!0),c("img",{src:a.bannerUrl,alt:""},null,8,j)],8,k)):n("",!0)],64)))),256)),d(f,{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};
