1import{_ as b,gf as N,bf as w,gb as R,g9 as A,ee as D}from"./index-10-08-19-06-CkymSlhF.js";import{g as _}from"./gameList-10-08-19-06-CNsFcJRn.js";import{q as d,v as t,K as v,ae as I,X as K,p as c,a3 as p}from"./core-10-08-19-06-DYkI1QLT.js";import"./vendor-10-08-19-06-vW4GXx0A.js";import"./http-10-08-19-06-DKS35TLd.js";import"./compression-10-08-19-06-N2887O1Y.js";import"./vueuse-10-08-19-06-BORqbsSy.js";import"./ui-10-08-19-06-Du5BGb8n.js";import"./date-10-08-19-06-DdaeHxm6.js";import"./game_chess-10-08-19-06-B0rp9WbO.js";const $={data(){return{tableData:[{money:"5",request:"500"},{money:"10",request:"2000"},{money:"15",request:"5000"},{money:"20",request:"10000"},{money:"30",request:"30000"},{money:"40",request:"50000"},{money:"50",request:"80000"},{money:"88",request:"100000"}],longGameList:[],gameListRequestId:0,gameLaunchRequestId:0,launchingGameKey:""}},created(){this._reloadTotalGameList()},computed:{isLoggedIn(){var n;return[!0,1,"1"].includes((n=this.UserInfo)==null?void 0:n.loginStatus)},loginIdentity(){return this.authSessionIdentity}},watch:{loginIdentity(){this.gameLaunchRequestId+=1,this.launchingGameKey=""}},beforeUnmount(){this.gameListRequestId+=1,this.gameLaunchRequestId+=1,this.launchingGameKey=""},methods:{async _reloadTotalGameList(){const n=++this.gameListRequestId;try{const e=await D({gameCategory:"",gameTerminal:"PC"},{isLoading:!0});if(n!==this.gameListRequestId)return;if(String((e==null?void 0:e.code)||"")==="20000"){this.longGameList=[],this.$message({message:(e==null?void 0:e.message)||"游æå表å 载失败",type:"error"});return}const m=new Map;
1(Array.isArray(e==null?void 0:e.dataList)?e.dataList:[]).forEach(r=>{["CQ9","DT"].includes(r.gameCategory)&&String(r.gameCName||"").includes("é¾")&&(m.has(r.gameCategory)||m.set(r.gameCategory,[]),m.get(r.gameCategory).push(r))}),this.longGameList=Array.from(m,([r,y])=>({name:r,list:y}))}catch(e){if(n!==this.gameListRequestId)return;this.longGameList=[],this.$message({message:(e==null?void 0:e.message)||"游æå表å 载失败",type:"error"})}},async _enterSlotGame(n,e){var h,L,q,G,S,C,U,k;if(!this.isLoggedIn){this.changeUserLoginDialogStatus(!0);return}if(!this.UserInfo.loginName)try{if(!await N()||!this.UserInfo.loginName){this.changeUserLoginDialogStatus(!0);return}}catch(o){this.$message({message:(o==null?void 0:o.message)||"ç»å½ç¶ææ ¡éªå¤±è´¥",type:"error"});return}const m=this.loginIdentity,f=String(((h=this.UserInfo)==null?void 0:h.loginName)||"");if(!m||!f){this.changeUserLoginDialogStatus(!0);return}if(e==="real"&&this.UserInfo.role=="AGENT"){this.$message({message:"代çè´¦å·æ æ³è¿è¡æ¸¸æï¼è¯·åæ¢è³æ¸¸æè´¦å·åè¿è¡æä½",type:"error"});return}const r=_.find(o=>o.key===(n==null?void 0:n.gameCategory));if(!r){this.$message({message:"该游æå¹³å°ææªå¼æ¾",type:"warning"});return}const y="".concat((n==null?void 0:n.gameCategory)||"",":").concat((n==null?void 0:n.id)||(n==null?void 0:n.gameCode)||"");if(this.launchingGameKey)return;const u=++this.gameLaunchRequestId;this.launchingGameKey=y;const s=window.open("","_blank"),g=()=>u===this.gameLaunchRequestId&&m===this.loginIdentity&&this.launchingGameKey===y;try{if(Number(this.UserInfo.transferStatus)===1&&e==="real"){const i=await w({loginName:f,target:n.transferCode});if(!g()){(L=s==null?void 0:s.close)==null||L.call(s);return}if(String(i==null?void 0:i.code)==="20000"&&!String((i==null?void 0:i.message)||"").includes("主账æ·ä½é¢å°äº1.0"))throw new Error((i==null?void 0:i.message)||"èªå¨è½¬è´¦å¤±è´¥")}if(r.type==="link"){const i=typeof r.linkUrl=="function"?r.linkUrl(n,e):r.linkUrl;if(!g()){(q=s==null?void 0:s.close)==null||q.call(s);return}if(typeof i!="string"||!/^(https?:)?\/\/|^\//i.test(i.trim()))throw new Error("游æå¯å¨å°åæ æ");s?s.location=i.trim():window.location.assign(i.trim())}else{const i=typeof r.params=="function"?r.params(n,e):{},a=await r.method({...i,loginName:f});if(!g()){(G=s==null?void 0:s.close)==null||G.call(s);return}if(String((a==null?void 0:a.code)||"")==="20000")throw new Error((a==null?void 0:a.message)||"游æå¯å¨å¤±è´¥");let l=(C=(S=a==null?void 0:a.data)!=null?S:a==null?void 0:a.url)!=null?C:a;if(typeof l=="string"&&l.includes('"code"'))try{l=((U=JSON.parse(l))==null?void 0:U.data)||""}catch(j){}if(typeof l!="string"||!l.trim())throw new Error((a==null?void 0:a.message)||"游æå¯å¨å°åæ æ");if(l=l.trim(),l.toLowerCase().includes("<!doctype html>"))s!=null&&s.document?(s.document.open(),s.document.write(l),s.document.close()):window.location.assign(URL.createObjectURL(new Blob([l],{type:"text/html"})));else if(/^(https?:)?\/\/|^\//i.test(l))s?s.location=l:window.location.assign(l);else throw new Error("游æå¯å¨å°åæ æ")}if(!g())return;let o=[];try{const i=R("HistoryList"),a=i?JSON.parse(i):[];o=Array.isArray(a)?a:[]}catch(i){o=[]}o.findIndex(i=>i.id===n.id)===-1&&(o.unshift(n),o.length>12&&o.pop(),A("HistoryList",JSON.stringify(o)))}catch(o){(k=s==null?void 0:s.close)==null||k.call(s),g()&&this.$message({message:(o==null?void 0:o.message)||"游æå¯å¨å¤±è´¥",type:"error"})}finally{g()&&(this.launchingGameKey="")}}}},x={class:"activity activity-springLantern"},E={class:"activity-container"},T={class:"rewards-box"},B={key:0,class:"game-list"},H=["src"],O={class:"game-model"},J=["onClick"];function Q(n,e,m,f,r,y){return c(),d("div",x,[e[7]||(e[7]=t("div",{class:"activity-banner"},[t("img",{src:"/images/promotionActivity/springLantern/banner.png?v=999",alt:""})],-1)),t("div",E,[t("div",null,[e[6]||(e[6]=t("div",{class:"title"},[t("img",{src:"/images/promotionActivity/springLantern/msg-title.png",alt:""})],-1)),t("div",null,[e[4]||(e[4]=t("div",{class:"msg"},[t("p",null,[t("span",null,"æ´»å¨æ¶é´ï¼"),t("span",null,"2æ19æ¥è³2æ25æ¥")]),t("p",null,[t("span",null,"æ´»å¨ä¼åï¼"),t("span",null,"å
¨ä½ä¼å")])],-1)),e[5]||(e[5]=t("div",{class:"title content-title"},[t("img",{src:"/images/promotionActivity/springLantern/content-title.png",alt:""})],-1)),t("div",T,[e[1]||(e[1]=t("h3",null,[t("span",null,"æ´»å¨å¹³å°ï¼"),t("span",null,"CQ9ï¼LGD")],-1)),e[2]||(e[2]=t("h3",null,"æå®å¹³å°æ¸¸æå¸¦æãé¾ãåååçèèæºï¼å个游æè¾¾å°æå®æµæ°´å³å¯é¢å彩é",-1)),t("table",null,[e[0]||(e[0]=t("tr",null,[t("th",null,"æµæ°´è¦æ±"),t("th",null,"红å
éé¢")],-1)),(c(!0),d(v,null,I(r.tableData,(u,s)=>(c(),d("tr",{key:s},[t("td",null,p(u.request)+"å
ææ³¨é¢",1),t("td",null,p(u.money)+"å
红å
",1)]))),128))]),e[3]||(e[3]=t("h2",null,"ç¬¦åæ¸¸æå表",-1)),r.longGameList.length>0?(c(),d("div",B,[(c(!0),d(v,null,I(r.longGameList,(u,s)=>(c(),d("div",{key:s},[t("p",null,p(u.name=="DT"?"LGD":u.name)+" "+p(u.list.length)+"个",1),t("div",null,[(c(!0),d(v,null,I(u.list,(g,h)=>(c(),d("div",{key:h,class:"game-item"},[t("div",null,[t("img",{src:g.imageUrl,alt:""},null,8,H),t("div",O,[t("div",{class:"enter-btn",onClick:L=>y._enterSlotGame(g,"real")},"è¿å
¥æ¸¸æ",8,J)])]),t("p",null,p(g.gameCName),1)]))),128))])]))),128))])):K("",!0)])])])]),e[8]||(e[8]=t("div",{class:"activity-rules"},[t("div",null,[t("div",{class:"rules-title"},[t("img",{src:"/images/promotionActivity/springLantern/rules-title.png",alt:""})]),t("p",null,"ã1ã该活å¨éæ¬éè¿è¡æ¸¸æï¼åéæ´»å¨ã伿 å¸ã礼éãä¸å±ä¼æ ç红å©ä¸äºè®¡ç®ã"),t("p",null,"ã2ãä»
æ¯ææ¸¸æå½å¤©èç³»å¨çº¿å®¢æç³è¯·ï¼éæä¾æ¸¸æåç§°ï¼ä¸ä¸ªè´¦å·æ¯å¤©åªè½ç³è¯·ä¸æ¬¡ãè¿æä½åºã"),t("p",null,"ã3ã妿
1游æå¤ä¸ªå¹³å°æå®æ¸¸æ è¯·éæ©ä¸ä¸ªæ¸¸æåä¸è¯¥æ´»å¨ã"),t("p",null,"ã4ã红å
æ´¾åè³çº¢å
伿 å¸ï¼8åæµæ°´"),t("p",null,"ã5ãæ¬æ´»å¨ä¹ç©äº«æä¿®è®¢æåæç»è§£éæã")])],-1))])}const st=b($,[["render",Q]]);export{st 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.