1import{_ as G,t as L,r as k,I as h,o as v,u as S}from"./services-DMwYBTTp.js";import{m as C}from"./vendor-pinia-CkwwAs9v.js";import{t as i,M as a,L as p,au as g,N as _,S as y,q as r,K as l,Z as b,av as P,U as T,a1 as u,as as f}from"./vendor-vue-Cs0jG3vf.js";import{b as $,a as w}from"./billBoard-gNZcEH-K.js";import"./vendor-DZeYsp6R.js";import"./vendor-element-plus-CnrZsLnk.js";import"./vendor-lodash-DXGp0yxs.js";import"./index-CfMxBARn.js";const R={components:{},data(){return{extConfigLocal:JSON.parse(localStorage.getItem("site.extGameConfig")),active:"",type:""}},computed:{...C(S,v),extConfigState(){return this.siteStore.extGameConfig},hasLocal(){return h(this.extConfigLocal)},hasState(){return h(this.extConfigState)},getList(){return this.extGameStore.gameList||[]},getGameItemRecord(){if(!h(this.extConfigState)&&h(this.extConfigLocal))return this.extConfigLocal.gameItemRecord;if(h(this.extConfigState))return this.extConfigState.gameItemRecord}},watch:{$route(){this.type=this.$route.params.type},getList:{immediate:!0,handler(t){let s=this.$route.params.type;this.defaultActive(),["sx","ty"].includes(s)||k.push("/home")}}},created(){this.type=this.$route.params.type},methods:{defaultActive(){L(this.getList)&&(this.active=this.getList[0].gamePlatformName,this.extGameStore.gamePlatformId=this.getList[0].gamePlatformId)},getLtKind(t){this.extGameStore.gamePlatformId=t.gamePlatformId,this.active=t.gamePlatformName}}},M={class:"thirdGameHeader"},B={class:"lotteryNav"},N=["onClick"],z={class:"imgContent"},A=["src"];function F(t,s,d,n,c,o){return r(),i("div",M,[a("ul",B,[(r(!0),i(p,null,g(o.getList,(e,m)=>(r(),i("li",{key:m,onClick:x=>o.getLtKind(e),class:_(c.active===e.gamePlatformName?"on":"")},[a("div",z,[a("img",{src:t.imgFtpUrl+e.extPlatformIcon,alt:"icon"},null,8,A)]),a("a",null,y(e.gamePlatformName),1)],10,N))),128))])])}const K=G(R,[["render",F],["__scopeId","data-v-fcb47873"]]),O={data(){return{searchText:"",extConfigLocal:JSON.parse(localStorage.getItem("site.extGameConfig")),lotteryList:[],active:"",type:"",noResult:!1}},computed:{...C(S,v),extConfigState(){return this.siteStore.extGameConfig},getThirdMenu(){if(["sx","ty"].includes(this.$route.params.type))return[];if(h(this.extGameStore.thirdMenu)&&this.extGameStore.gameList.length){let t=this.typeRecords(this.extGameStore.gameList[0].gameType);if(t===void 0)return[];let s=[];t.map(n=>s.push(n.parentId));let d=s.filter(function(n,c,o){return o.indexOf(n)===c});return this.extGameStore.thirdMenu.filter(n=>d.indexOf(n.id)!==-1||n.name==="å
¨é¨")}else return[]},getList(){let t=this.extGameStore.gameList;if(h(t))return t.filter(s=>s.name.indexOf(this.searchText)!==-1)},hasGameList(){let t=this.extGameStore.gameList;return t&&t.length>0},secondKind(){if(h(this.extGameStore.secondKind))return this.extGameStore.secondKind},activeGames(){return this.getList.filter(t=>t.gamePlatformId===this.gameId)},gameId(){return this.extGameStore.gamePlatformId}},watch:{secondKind(){this.defaultActive()},$route(){this.type=this.$route.params.type,this.searchText=""},getThirdMenu(){this.searchText="",this.defaultActive()},getList(){this.searchText&&this.getList.length===0&&this.hasGameList?this.noResult=!0:this.noResult=!1}},created(){this.defaultActive(),this.type=this.$route.params.type},methods:{defaultActive(){L(this.getThirdMenu)&&(this.active=this.getThirdMenu[0].id)},getLotteryList(t){this.active=t,this.searchText="",this.extGameStore.setGameList(this.typeRecords(t))},async openGame(t){try{await this.extGameStore.enterLtAutoTransfer({extGameId:t.extPlatformId});const s={gamePlatformId:t.gamePlatformId,pubGamePlayId:t.id,extPlatformId:t.extPlatformId,device:t.device,isMobile:0},d=await this.extGameStore.LoginExtGame(s);d.code==="success"&&window.open(d.data.gamesUrl,"_blank","width=1200,height=800")}catch(s){console.error(s),window.layer.msgWarn(s.msg,null,s)}},typeRecords(t){if(!t)return[];const s=this.hasLocal?this.extConfigLocal:this.extConfigState,n={sx:s.webSxGamePlayRecord,ty:s.webTyGamePlayRecord,dz:s.webDzGamePlayRecord,by:s.webByGamePlayRecord}[t];return n?Object.values(n).flat():[]},fontColor(t){return["ibcty","fbty"].includes(t)?"#455467":"#FFF"}}},U={class:"thirdGameList"},H={key:0,class:"searchBar"},E={class:"thirdGameMenu"},V={class:"changeLotteryBtn"},D=["onClick"],J={key:0,class:"right"},q={key:1},W=["onClick"],Z={key:0},j={key:1},Q={key:2},X={key:3},Y=["src"],tt={key:0,style:{cursor:"default",width:"100%",height:"200px","font-size":"60px"}},et={key:1,style:{cursor:"default",width:"100%",height:"200px","font-size":"60px"}},st=["onClick"];
1function it(t,s,d,n,c,o){return r(),i("div",U,[["sx","ty"].includes(c.type)?l("",!0):(r(),i("div",H,[a("div",E,[a("div",V,[a("ul",null,[(r(!0),i(p,null,g(o.getThirdMenu,(e,m)=>(r(),i("li",{key:m,class:_({curr:c.active===e.id}),onClick:x=>o.getLotteryList(e.id)},y(e.name),11,D))),128))])])]),["sx","ty"].includes(c.type)?l("",!0):(r(),i("div",J,[b(a("input",{placeholder:"请è¾å
¥æ¬²æå¯»ç游æåç§°","onUpdate:modelValue":s[0]||(s[0]=e=>c.searchText=e),type:"text"},null,512),[[P,c.searchText]])]))])),o.hasGameList&&!["sx","ty"].includes(c.type)?(r(),i("ul",q,[(r(!0),i(p,null,g(o.getList,e=>(r(),i("li",{key:e.id,onClick:m=>o.openGame(e)},[e.subscript!=="1"?(r(),i("div",{key:0,class:_(["tag",`tag${e.subscript}`])},[e.subscript==="5"?(r(),i("span",Z,"æ´»å¨")):l("",!0),e.subscript==="3"?(r(),i("span",j,"çé¨")):l("",!0),e.subscript==="4"?(r(),i("span",Q,"ç«ç")):l("",!0),e.subscript==="2"?(r(),i("span",X,"ææ°")):l("",!0)],2)):l("",!0),a("figure",null,[a("img",{src:t.imgFtpUrl+e.logoPath},null,8,Y)]),a("p",null,y(e.name),1)],8,W))),128)),o.hasGameList?l("",!0):(r(),i("li",tt,"æ¬è¯·æå¾
!!")),c.noResult?(r(),i("li",et,"æç´¢ä¸å°ç¸å
³çç»æ")):l("",!0)])):l("",!0),(r(!0),i(p,null,g(o.activeGames,e=>(r(),i("div",{key:e.gamePlatformId,class:"thirdGameContainer",style:T({backgroundImage:`url(${t.imgFtpUrl+e.logoPath})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"})},[o.gameId?(r(),i("div",{key:0,class:_(["button",{tyMargin:o.gameId.includes("ty")},{sxMargin:o.gameId.includes("sx")}]),onClick:m=>o.openGame(e)},"è¿å
¥æ¸¸æ",10,st)):l("",!0)],4))),128))])}const rt=G(O,[["render",it],["__scopeId","data-v-28a1a6a1"]]),at={components:{ThirdGameHeader:K,ThirdGameList:rt,bannerBox:w,billBoard:$},data(){return{}},created(){}},ot={class:"container mgt15"},nt={class:"lotteryHead fix"},ct={class:"winnerListCon"},lt={class:"thirdGameContent"};function dt(t,s,d,n,c,o){const e=f("bannerBox"),m=f("billBoard"),x=f("ThirdGameHeader"),I=f("ThirdGameList");return r(),i("div",ot,[a("div",nt,[u(e),a("div",ct,[s[0]||(s[0]=a("h3",{class:"color"},"é£äºæ¦",-1)),u(m)])]),a("div",lt,[s[1]||(s[1]=a("div",{class:"lotteryLine fix"},[a("i"),a("em")],-1)),u(x),u(I)])])}const yt=G(at,[["render",dt],["__scopeId","data-v-58a7efe8"]]);export{yt 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.