1import{ad as C,h as k,ar as B,b as D,K as d,m2 as l}from"./commonChunk.Bo5m7T9v.js";import{n as H}from"./index.BcofoB1s.js";import{t as c}from"./vendorChunk.B0S1SHvJ.js";import{b as K,w as R,f as N}from"../vendors/vendor-stable.B-qaYwd4.js";import"./1_EmbeddedGameChunk.CeUbmnFo.js";import"./0_RechargeDialogsChunk.OBVzrONx.js";import"./0_EntryLoginRegisterChunk.BcAljXYF.js";import"../vendors/[email protected]";import"./index.HYwDWo3J.js";import"./store.Cx7gSvOw.js";import"./enum.BEBvq45N.js";import"./index.DnuTUx8t.js";const S="_loading_voodn_91",T={"loading-wrap":"_loading-wrap_voodn_91",loading:S},[V]=C("tg-game-home"),aa=K({name:V,setup(){const{t:n}=k(),U=async()=>{var G,u,w,y,E,_;const r=async({gameCategoryId:t,platformId:I})=>{var x,P,v,L,M;const[e,m]=await c(l.getPlatformCateExtLinkList());if(e||!m.length){const s=(v=(P=(x=e==null?void 0:e.data)==null?void 0:x.msg)!=null?P:e==null?void 0:e.message)!=null?v:n("lobby.game.gameEmbedded.loadGameError");d.error({message:`${s}1`});return}const i=(M=(L=m==null?void 0:m.find(s=>s.gameCategoryId===t))==null?void 0:L.list)!=null?M:[],g=i==null?void 0:i.find(s=>s.platformId===I),h=!!(g!=null&&g.platformId);if(console.log("isPlatformExist",h),h)return await l.getPlatformGameList({gameCategoryId:t,platformId:I})},[a,p]=await c(r({platformId:13,gameCategoryId:13}));if(a||!p){const t=(w=(u=(G=a==null?void 0:a.data)==null?void 0:G.msg)!=null?u:a==null?void 0:a.message)!=null?w:n("lobby.game.gameEmbedded.loadGameError");d.error({message:`${t}2`});return}const f=p[0],$=f.gameId,[o,b]=await c(l.apiGetTgGameUrl({gameid:Number($),exitUrl:location.origin}));if(!o&&b)H(f,b);else{const t=(_=(E=(y=o==null?void 0:o.data)==null?void 0:y.msg)!=null?E:o==null?void 0:o.message)!=null?_:n("lobby.game.gameEmbedded.loadGameError");d.error({message:`${t}3`})}};return R(()=>D().isLogined,r=>{r&&U()},{immediate:!0}),()=>N("div",{class:T["loading-wrap"]},[N(B,{src:"/lobby_asset/common/web/animated/apng_loading_game.png",class:T.loading},null)])}});export{aa 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.