"use strict";(self.webpackChunkmy_vue_app=self.webpackChunkmy_vue_app||[]).push([[99582],{53303:function(e,t){t.Z={red:"fABmUWsKxI0hI9mbzoYD",yellow:"C8EyqAj70j1qMHCzl44v",darken:"qC2KKT8QuStEpgYMFFeE",hb:"UXsnlJzbtvsfRVKRTLXu",light:"E8vjOrxznOAKdRhXJRMX",mr20:"GfjsxKErvBVke8GifZoO",green:"YgwzG0T3H3PBaUc3A3_s",copy:"gP0VvwvHTbLTsdlZvN2p",hasTooltip:"ioctHAlCRyfgD0kI26UX",text:"NtkZoISf3gUcH6YB8lDO",remark:"gINYGomK2z3_KRvvbydj",tips:"dl97rbXuXKgNOwuVkSv6",accountDetailsRemark:"ZLLwXUr2Ko5BkOA_GnoJ",tipsContent:"f7GWJXdXkZam2lxSC5fG",mobileCell:"yirWkOwey8HB15QLXqmz",f22:"m_riTHvF1CQnegr_Ynkv",f24:"U5W3_wqlgSns2oLo77ov",flexAround:"sP5WpmGobsKxe4UFPQUI",flexBetween:"PSjxhfn37scgFTzaH_jZ",alignRight:"hm5kVDuxEiHavCx1SBCQ",dealTypeName:"h2r6I7i2DvwPfLIhDnGG",betterRecordMobileCell:"H9OepNjwbd602I30Pp_s",combine:"RmKh8CuQull6Xt98xhDv",game:"hUiIi4S5mS_zgUN7grJG",validBet:"bX48J467Rx96D17NO3u7",flexCenter:"wgK2LPtqwY6ykT9PTEFa",createTime:"eFQ3axZpu8hrXwDmCzxd",orderContext:"aUJowNQhIpzaMd4FZGmN",orderIdBox:"_umF2Z34xk1F_GIsbss_",ellipsisLeft:"llxNi6TQyz3zy5bteg5S",copyFont:"zrPmGto4tAdnAA_BFB54",autoEllipsis:"Bb2eRv4VS7avN4IlErAm",wrapper:"_6pERT6w0EjQXtcqIRAJ6",controller:"NbZ4ZjUTM9XyrOd6ZWm7",table:"eevThH0Pxu_dxPSiVdqA",categorySelect:"ub4dGCDaYqZLQLJiLe5Z",selectItem:"V8KTIrSXZV1Kw29YP7DM",selectDropdown:"pOr1kTiQF3RsEcAa48SB",scrollWrapper:"ix8q0EFvlSgTs8iOff8S",bettingRecordWrapper:"ezyiYA7ozwndmLIoy6Z9",homeTimeAndNo:"FKBiQbjNrbCLANAofDAI",common_bganimation:"PZqn3TqX0aXyBqZ0W7Mg"}},99980:function(e,t){t.Z={introduction:"cxJoWcpxAPgxzig9Xm_6",introductionInner:"q1XRfkvWzaYtbQ4fcEdH",textDarken:"ZWtaC_6onbVSxOpvwnbW",paddingBottom:"TyS2BM0uUd9lFWreUJa2",common_bganimation:"S9PDCDksO_0Y6jbTm1vY"}},66274:function(e,t){t.Z={receiveTips:"sft1FrYIdQNDkygBE2_w",receiveForm:"IaFuytXsVvfmDVlBM2bn",formItemDiv:"l7fBL945zxYK6Avbm5hA",container:"_4Xj9NqT3RlWoXOF9sIB","priview-mode":"qHPeJvybo2ZpV_H0RTI4",customize:"oEEXztlZI7LAdUMK5Q3m","customize-has-bottom-btn":"vDaCeeFmYGklWLLRXqOd",bgColor:"K9PMAylPFhLQvjAV0rzb",h5Btn:"djvqyB9IgkiFd8Rww9SE",btn2:"KijbywXOWoHmMhQVYbMW",receiveDiscount:"Qxd3eeaOHzsm5OavWHD6",btn1:"OJKnuX1SdrakdqWua5Ix",receiveTimes:"Jj0VvYFH3Jv3P4ZzMrq5",activityBar:"HuseTF0vc0ANwMtFI5Jt",activityBottom:"f6Hdppzziw5Ocz_4b7HG",discountView:"f5Ruu8CIOUwvNyM9R1uY",pickUpRecord:"F1i63mo89ZlxLi8VQ6nK",header:"nFkHDrNVzucOSjOVSkVo",changeGameBtns:"l33Ka3g_LqqyxWZG6i6s",total:"HUnR0IXcIWtwiRH69sAz",customizeBtn:"AzSfD8qP8gM2kUfA2vid",receiveBtn:"G60ovJtuaDb1n92ATPH7",maintext:"OzDLU4_eS7ErVm5y1VjR",btn:"lzu35D2wRxqVmh4J0_A3",processing:"H5yJT30fplLKopY3Ucle",forward:"d4npa_nICeiD5SVDAHEz",userRestrictTip:"RXuzgEcaC21hFS2vdr4U",showSrviceModal:"Db4cclGbAnf47LltiM4b",showLargeAmountModal:"J8jtvkY8H7P8Kv1MNfoc",common_bganimation:"gzNfqxohcPIUmQs26Vg4"}},4074:function(e,t,n){n.d(t,{ZP:function(){return l}});var i=n(55433),r=n(75990),a=n(17187),o=n.n(a);const s={quadratic:{fn:e=>e*(2-e)},circular:{fn:e=>Math.sqrt(1- --e*e)},back:{fn:e=>(e-=1)*e*(5*e+4)+1},bounce:{fn:e=>(e/=1)<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},elastic:{fn:e=>0===e?0:1==e?1:.4*Math.pow(2,-10*e)*Math.sin((e-.055)*(2*Math.PI)/.22)+1},none:{fn:e=>e}},c={UPDATE:"update",COMPLETE:"complete"};class l extends(o()){constructor(e,t={}){super(),(0,i.Z)(this,"raf",r.Wn),(0,i.Z)(this,"isAnimating",!1),(0,i.Z)(this,"target",null),this.raf=t.raf||r.Wn,this.target=e}getNow(){return+new Date}setTarget(e,t){for(const n in this.target)Object.prototype.hasOwnProperty.call(this.target,n)&&(this.target[n]=e(n));this.emit(c.UPDATE,this.target,t)}to(e,t,n="circular"){if(this.isAnimating)return this;const i=this.raf,r=this.getNow(),a=r+t,o=JSON.parse(JSON.stringify(this.target)),l=()=>{const u=this.getNow();if(u<a){const a=(u-r)/t,c=s[n].fn(a);this.setTarget((t=>(e[t]-o[t])*c+o[t]),c),this.isAnimating&&i(l)}else this.isAnimating=!1,this.setTarget((t=>e[t]),1),this.emit(c.COMPLETE,this.target,1)};return this.isAnimating=!0,l(),this}kill(){return this.isAnimating=!1,this}}(0,i.Z)(l,"EventType",c)},16251:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(50361),r=n.n(i),a=n(55433),o=n(75310),s=n(50630),c=n.n(s);class l{constructor(){(0,a.Z)(this,"pools",new Map),(0,a.Z)(this,"apngPools",new Map)}async getApngInfo(e){if(this.apngPools.has(e))return r()(this.apngPools.get(e));const t=await(0,o.$4)(e),n=await t.arrayBuffer();return c()(n)}async create(e,t={},n=e){try{const{numPlays:i,width:r,height:a,scale:o,autoPlay:s}=Object.assign({autoPlay:!0,numPlays:0},t);if(this.pools.has(n))return this.pools.get(n);const c=e,l=await this.getApngInfo(e);if(l instanceof Error)return Promise.reject(l);this.apngPools.set(e,l),l.numPlays=i??l.numPlays,await l.createImages();const u=document.createElement("canvas");u.width=r||l.width,u.height=a||l.height,o&&(u.width=o*l.width,u.height=o*l.height);const d=u.getContext("2d");d.scale(u.width/l.width,u.height/l.height);const h=await l.getPlayer(d,s);return this.pools.set(n,{url:c,apng:l,player:h,canvas:u}),this.pools.get(n)}catch(i){return Promise.reject()}}play(e){this.pools.get(e)?.player.play()}stop(e){this.pools.get(e)?.player.stop()}pause(e){this.pools.get(e)?.player.pause()}destroy(e){this.pools.delete(e)}setRate(e,t=1){const n=this.pools.get(e)?.player;n&&(n.playbackRate=t)}}},23267:function(e,t,n){n.d(t,{Z:function(){return r}});var i=n(75310);class r{constructor(e){this.options=Object.assign({},e),this.init()}init(){this.loadJs()}AppierRetargeting(){window.appier_q=window.appier_q||[],window.appier_q.push({t:"register",content:{id:"5aa3",site:"nn.vip"}},{t:"pv_track",action_id:"PageView_28e5",track_id:"dd427a4eaded57b",isCountReload:!0,counter:0},{t:"pv_track",action_id:"ViewTwoPages_5455",track_id:"dd427a4eaded57b",isCountReload:!1,counter:1})}AppierLandingPage(){window.appier_q=window.appier_q||[],window.appier_q.push({t:"register",content:{id:"5aa3",site:"nn.vip"}},{t:"type_landing",action_id:"ViewLanding_8a28",track_id:"dd427a4eaded57b",opts:{unique_key:"true"}})}AppierEventPush(e,t){const n={register:()=>{window.appier_q=window.appier_q||[],window.appier_q.push({t:"register",content:{id:"5aa3",site:"nn.vip"}},{t:"type_conversion",content:"submit",action_id:"Conversion_825b",track_id:"dd427a4eaded57b",opts:{unique_key:"true"}})}};n[e]?n[e]():this.AppierRetargeting()}async loadJs(){const e={id:"script-Appier",async:!0,src:`https://jscdn.appier.net/aa.js?id=${this.options.appierId}`},t=[];t.push(e),await(0,i.yu)(t),this.AppierRetargeting(),this.AppierLandingPage()}}},71379:function(e,t,n){n.d(t,{ZP:function(){return h}});var i=n(55433),r=n(17187),a=n.n(r);let o,s;!function(e){e[e.Local=0]="Local",e[e.Session=1]="Session",e[e.Memory=2]="Memory"}(o||(o={})),function(e){e.GET="cache_get",e.SET="cache_set",e.DEL="cache_del"}(s||(s={}));const c=e=>"[object Map]"===Object.prototype.toString.call(e);let l=null,u=null,d=null;class h extends(a()){constructor(e=o.Local){switch(super(),(0,i.Z)(this,"_namespace",""),(0,i.Z)(this,"_isSupported",!0),e){case o.Local:this._instance=window.localStorage;break;case o.Session:this._instance=window.sessionStorage;break;case o.Memory:this._instance=new Map}}static get memory(){return l||(l=new h(o.Memory),l)}static get localStore(){return d||(d=new h(o.Local),d)}static get sessionStore(){return u||(u=new h(o.Session),u)}get namespace(){return this._namespace}set namespace(e){this._namespace=e?`${e}.`:""}_getLsKey(e){return`${this._namespace}${e}`}_lsSet(e,t){const n=this._getLsKey(e);if(c(this._instance))this._instance.set(n,t),this.emit(s.SET,{key:n,rawValue:t});else{const e=JSON.stringify(t);this._instance.setItem(n,e),this.emit(s.SET,{key:n,value:e})}}_lsGet(e){const t=this._getLsKey(e);let n;n=c(this._instance)?this._instance.get(t):this._instance[t];try{n=JSON.parse(n)}catch{}return this.emit(s.GET,{key:t,val:n}),n}get(e){return this._isSupported?this._lsGet(e):null}set(e,t){return this._isSupported?(this._lsSet(e,t),t):null}remove(e){if(!this._isSupported)return null;const t=this._getLsKey(e);c(this._instance)?this._instance.delete(t):this._instance.removeItem(t),this.emit(s.DEL,{key:t})}}},95868:function(e,t,n){n.d(t,{Z:function(){return r}});var i=n(58217);class r{static getPrompt(e,t,n,r,a){const{t:o}=(0,i.QT)();let s="";return t&&(s+=(s?"/":"")+o("lobby.common.formRules.lowercase")),n&&(s+=(s?"/":"")+o("lobby.common.formRules.uppercase")),r&&(s+=(s?"/":"")+o("lobby.common.formRules.num")),a&&(s+=(s?"/":"")+o("lobby.common.formRules.special")),s=(16===e?String(e):`${e??6}-16`)+o("lobby.common.formRules.atLeast")+s,s}}},99505:function(e,t,n){function i(e){const t=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,i)=>t+t+n+n+i+i));const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(!t)throw new Error("Invalid HEX color.");return{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}}(e);return function({r:e,g:t,b:n}){e/=255,t/=255,n/=255;const i=Math.min(e,t,n),r=Math.max(e,t,n);let a=Math.round(r===i?0:r===e?(t-n)/(r-i)*60:r===t?60*(2+(n-e)/(r-i)):r===n?60*(4+(e-t)/(r-i)):0);return a<0&&(a+=360),{h:a,s:0===r?0:(r-i)/r,v:r}}(t)}function r(e){return function({r:e,g:t,b:n}){return`#${((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1).toUpperCase()}`}(function({h:e,s:t,v:n}){e=Math.min(e%360,360),t=Math.min(t,1),t=Math.max(0,t),n=Math.min(n,1),n=Math.max(0,n),e=(e/=360)<1?6*e:0;const i=Math.floor(e),r=e-i,a=n*(1-t),o=n*(1-r*t),s=n*(1-(1-r)*t),c=[n,o,a,a,s,n][i],l=[s,n,n,o,a,a][i],u=[a,a,s,n,n,o][i];return{r:Math.round(255*c),g:Math.round(255*l),b:Math.round(255*u)}}(e))}n.d(t,{Z:function(){return a}});class a{static generate(e){const t=(e,t,n)=>{let i;return i=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t,i<0?i+=360:i>=360&&(i-=360),i},n=(e,t,n)=>{if(0===e.h&&0===e.s)return e.s;let i;return i=n?Math.round(100*e.s)-16*t:4===t?Math.round(100*e.s)+16:Math.round(100*e.s)+5*t,i>100&&(i=100),n&&5===t&&i>10&&(i=10),i<6&&(i=6),i},a=(e,t,n)=>n?Math.round(100*e.v)+5*t:Math.round(100*e.v)-15*t,o=[];try{const s=(e,i,r)=>({h:t(e,i,r),s:n(e,i,r)/100,v:a(e,i,r)/100}),c=i(e);for(let e=5;e>0;e-=1){const t=r(s(c,e,!0));o.push(t)}o.push(e);for(let e=1;e<=4;e+=1){const t=r(s(c,e));o.push(t)}}catch(s){for(let t=5;t>0;t-=1)o.push(e);o.push(e);for(let t=1;t<=4;t+=1)o.push(e)}return o}static pad2(e){let t=e.toString(16);return 1===t.length&&(t="0"+t),t}static lighten(e,t){return a.mix("fff",e,t)}static darken(e,t){return a.mix("000",e,t)}static mix(e,t,n,i,r){e=a.dropPrefix(e),t=a.dropPrefix(t),void 0===n&&(n=.5),void 0===i&&(i=1),void 0===r&&(r=1);const o=2*n-1,s=i-r,c=((o*s==-1?o:(o+s)/(1+o*s))+1)/2,l=1-c,u=a.toNum3(e),d=a.toNum3(t),h=Math.round(c*u[0]+l*d[0]),m=Math.round(c*u[1]+l*d[1]),g=Math.round(c*u[2]+l*d[2]);return"#"+a.pad2(h)+a.pad2(m)+a.pad2(g)}static toNum3(e){3===(e=a.dropPrefix(e)).length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);return[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}static dropPrefix(e){return e.replace("#","")}static getAntdSerials(e){const t=new Array(9).fill(void 0).map(((t,n)=>a.lighten(e,n/10))),n=a.generate(e),i=a.toNum3(e.replace("#","")).join(", ");return t.concat(n).concat(i)}}},56343:function(e,t,n){var i=n(82492),r=n.n(i),a=n(55433),o=n(58217),s=n(91475),c=n(30381),l=n.n(c);class u{static get localUtcOffset(){return l()().utcOffset()}static get utcOffsetOfHour(){const e=this.localUtcOffset/60;return(e>0?"+":"")+e}static create(e=new Date,t=!1){return"number"==typeof e&&(e=t?l().unix(e):e),l()(e)}static get utcOffset(){return this.localUtcOffset}static offsetFormat(e){if("string"==typeof e){const t=(e||"").match(/Z|[+-]\d\d(?::?\d\d)?/gi);if(null===t)throw Error("Parameter parse error !");const n=((t[t.length-1]||[])+"").match(/([\+\-]|\d\d)/gi)||["-",0,0],i=60*Number(n[1])+parseInt(String(n[2]));return 0===i?0:"+"===String(n[0])?i:-i}return Math.abs(e)<16&&(e*=60),e}static calcOffSetFromLocal(e=this.utcOffset){return 60*(this.offsetFormat(e)-this.localUtcOffset)*1e3}static timestamp(e=new Date,t){const{utcOffset:n,secondsIn:i,secondsOut:a}=r()({utcOffset:this.utcOffset,secondsIn:!1,secondsOut:!0},t);return e=(e=i&&"number"==typeof e?l().unix(e):l()(e)).utcOffset(n),t?.daysAgo&&(e=e.subtract(t?.daysAgo,"days")),t?.isStart&&(e=e.startOf("day")),t?.isEnd&&(e=e.endOf("day")),a?e.unix():+e}static format(e=new Date,t="YYYY-MM-DD  HH:mm:ss",n){const{locale:i,utcOffset:a,secondsIn:s,showToday:c,showYesterday:u}=r()({locale:"zh-cn",utcOffset:this.utcOffset,secondsIn:!0,showToday:!1,showYesterday:!1},n);e=(e=s&&"number"==typeof e?l().unix(e):l()(e)).utc().utcOffset(a);const{t:d}=(0,o.QT)(),h=l()().startOf("day"),m=l()().subtract(1,"day").startOf("day");return c&&e.isSameOrAfter(h)?`${d("lobby.center.components.dateRadio.today")} ${e.locale(i).format("HH:mm:ss")}`:u&&e.isSameOrAfter(m)?`${d("lobby.center.components.dateRadio.yesterday")} ${e.locale(i).format("HH:mm:ss")}`:e.locale(i).format(t)}static getZeroTimestamp(e=0,t=new Date){return l()(t).add(e,"d").startOf("day").unix()}static getTimeMillisecond(e=0,t=new Date){return l()(t).add(e,"d").startOf("day").valueOf()}static getZeroTimestampInMonth(e=0,t=new Date){return l()(t).add(e,"month").startOf("month").unix()}static utcTimeToLocal(e,t="YYYY-MM-DD HH:mm:ss"){return l().utc(e).local().format(t)}static convertTimestamp(e){const t=e=>`${1===e.toString().length?"0":""}${e}`,n=Math.floor(e/1e3),i=Math.floor(n/86400),r=Math.floor(n%86400/3600),a=Math.floor(n%86400%3600/60),o=n%86400%3600%60;return{days:i,hours:t(r),minutes:t(a),seconds:t(o)}}static getTimeconfig(){const{siteInfos:e}=(0,s.h)(),t=e?.timeZone?.split(" ")[1],n=l()().utcOffset(t).toLocaleString(),i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][l()(n).weekday()],r=l()(n).weekday();return{year:u.format(n,"YYYY/MM/DD",{utcOffset:t}),week:i,weekIdx:r,seconds:u.format(n,"HH:mm:ss",{utcOffset:t}),utcOffset:t,utcOffsetOfHour:this.utcOffsetOfHour}}}(0,a.Z)(u,"moment",l()),(0,a.Z)(u,"getFormatTime",((e,t="HH:mm",n=!0)=>{const{siteInfos:i}=(0,s.h)();let r=u.moment().startOf("days");if(i?.timeZone&&n){const e=l()().utcOffset(i.timeZone).utcOffset();r=r.add(u.utcOffset-e,"m")}return r.add(e,"s").format(t)})),t.Z=u},70753:function(e,t,n){n.d(t,{K4:function(){return o},WY:function(){return a.Bind},Xo:function(){return a.Throttle}});var i=n(82492),r=n.n(i),a=n(2046);function o(...[e=300,t={}]){return t=r()({leading:!0,trailing:!1},t),a.Debounce.bind(this)(e,t)}},5954:function(e,t,n){n.d(t,{Q:function(){return r}});var i=n(21615);const r=()=>{const e={},t=window.navigator.userAgent.toLowerCase(),n=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","pov_tv","hbbtv","ce-html"];function r(e,t){return-1!==e.indexOf(t)}function a(e){return r(t,e)}function o(t){for(let n=0;n<t.length;n++){const i=t[n];if((0,e[i])())return i}return"unknown"}return e.wx=function(){return e.mobile()&&a("micromessenger")},e.macos=function(){return a("mac")},e.harmonyOS=function(){return-1!==navigator.userAgent.toLowerCase().indexOf("harmonyos")},e.ios=function(){return e.iphone()||e.ipod()||e.ipad()},e.iphone=function(){return!e.windows()&&a("iphone")},e.ipod=function(){return a("ipod")},e.ipad=function(){const e="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,t=/macintosh|mac os x/i.test(navigator.userAgent)&&window.screen.height>window.screen.width&&!navigator.userAgent.match(/(iPhone\sOS)\s([\d_]+)/);return a("ipad")||e||t},e.isMac=()=>-1!==navigator.userAgent.toLowerCase().indexOf("mac"),e.android=function(){return!e.windows()&&a("android")},e.androidPhone=function(){return e.android()&&a("mobile")},e.androidTablet=function(){return e.android()&&!a("mobile")},e.blackberry=function(){return a("blackberry")||a("bb10")},e.blackberryPhone=function(){return e.blackberry()&&!a("tablet")},e.blackberryTablet=function(){return e.blackberry()&&a("tablet")},e.windows=function(){return a("windows")},e.windowsPhone=function(){return e.windows()&&a("phone")},e.windowsTablet=function(){return e.windows()&&a("touch")&&!e.windowsPhone()},e.fxos=function(){return(a("(mobile")||a("(tablet"))&&a(" rv:")},e.fxosPhone=function(){return e.fxos()&&a("mobile")},e.fxosTablet=function(){return e.fxos()&&a("tablet")},e.meego=function(){return a("meego")},e.mobile=function(){return e.androidPhone()||e.iphone()||e.ipod()||e.windowsPhone()||e.blackberryPhone()||e.fxosPhone()||e.meego()},e.tablet=function(){return e.ipad()||e.androidTablet()||e.blackberryTablet()||e.windowsTablet()||e.fxosTablet()},e.desktop=function(){return!e.tablet()&&!e.mobile()},e.television=function(){let e=0;for(;e<n.length;){if(a(n[e]))return!0;e++}return!1},e.portrait=function(){return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?r(screen.orientation.type,"portrait"):e.ios()&&Object.prototype.hasOwnProperty.call(window,"orientation")?90!==Math.abs(window.orientation):window.innerHeight/window.innerWidth>1},e.landscape=function(){return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?r(screen.orientation.type,"landscape"):e.ios()&&Object.prototype.hasOwnProperty.call(window,"orientation")?90===Math.abs(window.orientation):window.innerHeight/window.innerWidth<1},e.isInStandaloneMode=()=>["fullscreen","standalone","minimal-ui"].some((e=>window.matchMedia("(display-mode: "+e+")").matches))||navigator.standalone,e.isH5Pwa=()=>e.isInStandaloneMode()&&!i.cY.isWgPackage&&!i.cY.speedPackageConfig?.isSpeedPackae,e.HuaWei=()=>-1!==navigator.userAgent.toLowerCase().indexOf("huawei"),e.Samsung=()=>-1!==navigator.userAgent.toLowerCase().indexOf("samsung"),e.Edga=()=>-1!==navigator.userAgent.toLowerCase().indexOf("edg"),e.isFacebook=()=>/fb_|fban|fbav|facebook|fbios/i.test(navigator.userAgent),e.isTikTok=()=>-1!==navigator.userAgent.toLowerCase().indexOf("byte"),e.isInstagram=()=>-1!==navigator.userAgent.toLowerCase().indexOf("instagram"),e.isInstagram=()=>-1!==navigator.userAgent.toLowerCase().indexOf("instagram"),e.isKwai=()=>-1!==navigator.userAgent.toLowerCase().indexOf("kwai"),e.browser=function(){const e={type:"",versions:""},n={IE:window.ActiveXObject||"ActiveXObject"in window,Chrome:t.indexOf("chrome")>-1&&t.indexOf("safari")>-1,Firefox:t.indexOf("firefox")>-1,Opera:t.indexOf("opera")>-1,Safari:t.indexOf("safari")>-1&&-1==t.indexOf("chrome"),Edg:t.indexOf("edg")>-1,QQBrowser:/qqbrowser/.test(t),WeixinBrowser:/MicroMessenger/i.test(t)};for(let i in n)if(n[i]){let n;if("IE"==i)n=t.match(/(msie\s|trident.*rv:)([\w.]+)/)?.[2];else if("Chrome"==i){for(const e in navigator.mimeTypes)"application/360softmgrplugin"==navigator.mimeTypes[e].type&&(i="360");n=/chrome\/([0-9.]+)/.exec(t)?.[1]}else"Firefox"==i?n=/firefox\/([0-9.]+)/.exec(t)?.[1]:"Opera"==i?n=/opera\/([0-9.]+)/.exec(t)?.[1]:"Safari"==i?n=/safari\/([0-9.]+)/.exec(t)?.[1]:"Edg"==i?n=/edg\/([0-9.]+)/.exec(t)?.[1]:"QQBrowser"==i&&(n=/qqbrowser\/([0-9.]+)/.exec(t)?.[1]);e.type=i,n&&(e.versions=n)}return e},e.type=o(["mobile","tablet","desktop"]),e.os=o(["ios","iphone","ipad","ipod","android","blackberry","macos","windows","fxos","meego","television"]),e}},63141:function(e,t,n){n.d(t,{$A:function(){return v},Di:function(){return C},oB:function(){return b},zs:function(){return w}});var i=n(82492),r=n.n(i),a=n(68630),o=n.n(a),s=n(47037),c=n.n(s),l=n(81763),u=n.n(l),d=n(34068),h=n(72698),m=n(8575),g=n(44431),p=n.n(g),f=n(80129),y=n.n(f);function b(e,t){const{template:n,symbol:i,separator:r,decimal:a,precision:o,groups:s,useRounding:c,useForceTransform:l,max:h,min:m,minIntergerDigits:g,withZero:f}=Object.assign({},b.defaultOpts,t?.code?b.createOptsByCode(t.code):{},t);e=(l?(e=>{let t=d.BB(e);const n=/^-/.test(t)?"-":"";return t=t.replace(/([^\d.])/g,"").replace(/\./,"d").replace(/\./g,"").replace(/d/,".").replace(/^\./,"0.").replace(/^0+(\d+?\.?)/,"$1").replace(/(?:\.0*|(\.\d+?)0+)$/,"$1"),t=t||"0",(Number(n+t)>=0?"#":"-#").replace("#",t)})(e):e)||0,e=new(p())(e),l&&((u()(h)||p().isBigNumber(h))&&(e=p().minimum(h,e)),(u()(m)||p().isBigNumber(m))&&(e=p().maximum(m,e)));const y=Math.pow(10,o);e=c?Math.round(Number(e)*y)/y:e;const v=d.BB(e).replace(/^-/,"").split(".");let w=v[0],C=v[1]||"";if(o<=C.length&&(C=C.slice(0,o)),f)for(;o>C.length;)C+="0";for(;g&&w.length<g;)w="0"+w;const I=b.createTemplateConfig(n);return(e>0?I.pos:e<0?I.neg:I.zero).replace("%s",i).replace("%v",w.replace(s,"$1"+r)+(C?a+C:""))}b.defaultOpts={template:"%s%v",symbol:"",separator:"",decimal:".",precision:2,groups:/(\d)(?=(\d{3})+\b)/g,useRounding:!1,useForceTransform:!0,currenciesConfig:null,withZero:!0},b.createTemplateConfig=function(e,t=!0){const n=b.defaultOpts.template,i=(e,i=t)=>({pos:e=e||n,neg:i?"-"+e.replace("-",""):e.replace("-","").replace("%v","-%v"),zero:e});return c()(e)&&e.match("%v")?i(e):o()(e)&&e instanceof Object?{...i(n),...i(e.pos),...e}:i(n)},b.createOptsByCode=function(e){const t=h.F.currenciesFormatConfig(),n=Object.values(t).find((t=>t.code===e));return n?{decimal:n.decimalSeparator,separator:n.thousandsSeparator,symbol:n.symbol,template:b.createTemplateConfig((n.symbolOnLeft?"%s%b%v":"%v%b%s").replace("%b",n.spaceBetweenAmountAndSymbol?" ":""),n.negativeFirst)}:{}};const v=(e,t)=>{e=String(e);const{maxLength:n}=Object.assign({maxLength:String(e).length},t);return e.replace(/[^\d]/g,"").slice(0,n)},w=(e,t,n=!0)=>{const{query:i="",search:a=""}=(0,m.parse)(e,!0),o=a?e.split(a)[0]:e,s=r()(y().parse(i),t,n?{}:{_t:+new Date});return o+"?"+y().stringify(s)},C=e=>{const t=parseFloat(e+""),n=Math.floor(Math.log(t)/Math.log(1024));let i=t/Math.pow(1024,n);return i=parseInt(i+""),i+["B","K","M","G","T","P","E","Z","Y"][n]}},72614:function(e,t,n){n.d(t,{Z:function(){return i}});class i{constructor(e){this.options=Object.assign({prop:"dataLayer"},e),this.init()}init(){this.loadJs(),window.dataLayer=window.dataLayer||[],this.options.gtagId&&(this.dataLayerPush("js",new Date),this.dataLayerPush("config",this.options.gtagId)),this.options.gtmId&&this.createNoScript()}dataLayerPush(...e){window.dataLayer?.push(arguments)}GTMdataLayerPush(...e){const t=e[2];window.dataLayer?.push({[e[0]]:e[1],value:t})}async loadJs(){const{gtagId:e,gtmId:t}=this.options;if(e){document.querySelector("#script-gtag")?.remove();const t=document.createElement("script");t.id="script-gtag",t.async=!0,t.src=`https://www.googletagmanager.com/gtag/js?id=${e}`,document.head.appendChild(t)}if(t){document.querySelector("#script-gtm")?.remove(),document.querySelector("#script-inner-gtm")?.remove();const e=document.createElement("script");e.id="script-gtm",e.type="text/javascript",e.appendChild(document.createTextNode(`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n      new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n      j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n      'https://www.googletagmanager.com/gtm.js?id='+i+dl;\n      // 给创建的 script 元素设置 ID\n      j.id = 'script-inner-gtm';\n      f.parentNode.insertBefore(j,f);\n      })(window,document,'script','dataLayer','${t}');`)),document.head.appendChild(e)}}createNoScript(){document.querySelector("#noscript-gtm")?.remove();const e=document.createElement("noscript");e.id="noscript-gtm",e.innerHTML=`<iframe\n        title="googletagmanager"\n        src="https://www.googletagmanager.com/ns.html?id=${this.options.gtmId}"\n        height="0"\n        width="0"\n        style="display: none; visibility: hidden"\n      ></iframe\n      >`,document.body.insertBefore(e,document.body.children[0])}}},46241:function(e,t,n){n.d(t,{Z:function(){return l}});n(82801),n(3462),n(37380),n(1118),n(23767),n(8585),n(68696);var i=n(46851),r=n(5954),a=n(93162),o=n(58217),s=n(29306),c=n.n(s);class l{static calculateGradientCoordinate(e,t,n=180){const i=(e,t)=>({x0:e.x,y0:e.y,x1:t.x,y1:t.y});for(n%=360;n<0;)n+=360;let r=n-90;const a=n>=90&&n<270;let o,s;if(a||(r=n<90?n+90:n-270),r/90%2==1)o={x:e/2,y:0},s={x:e/2,y:t};else{const n=Math.tan(r*Math.PI/180);Math.abs(n)>=t/e?(o={x:e/2-t/(2*n),y:0},s={x:e/2+t/(2*n),y:t}):n>=0?(o={x:0,y:t/2-e*n/2},s={x:e,y:t/2+e*n/2}):(s={x:0,y:t/2-e*n/2},o={x:e,y:t/2+e*n/2})}return a?i(o,s):i(s,o)}static traversePixel(e,t,n="startX"){const{data:i,width:r,height:a}=e,o=(e,t,n,i)=>{const r=4*(t*i+n);return{pxData:{r:e[r],g:e[r+1],b:e[r+2],a:e[r+3]},pxStartIndex:r}};({startX:()=>{for(let e=0;e<r;e++)for(let n=0;n<a;n++){const{pxStartIndex:a,pxData:s}=o(i,n,e,r);if("done"===t({pxStartIndex:a,pxData:s,col:e,row:n}))return}},startY:()=>{for(let e=0;e<a;e++)for(let n=0;n<r;n++){const{pxStartIndex:a,pxData:s}=o(i,e,n,r);if("done"===t({pxStartIndex:a,pxData:s,col:n,row:e}))return}},endX:()=>{for(let e=r-1;e>=0;e--)for(let n=0;n<a;n++){const{pxStartIndex:a,pxData:s}=o(i,n,e,r);if("done"===t({pxStartIndex:a,pxData:s,col:e,row:n}))return}},endY:()=>{for(let e=a-1;e>=0;e--)for(let n=0;n<r;n++){const{pxStartIndex:a,pxData:s}=o(i,e,n,r);if("done"===t({pxStartIndex:a,pxData:s,col:n,row:e}))return}}})[n]()}static calcPixelBoundaries(e){const{width:t,height:n}=e;let i=t,r=n,a=0,o=0;return this.traversePixel(e,(({pxData:e,col:t})=>{if(0!==e.a)return i=t,"done"}),"startX"),this.traversePixel(e,(({pxData:e,row:t})=>{if(0!==e.a)return r=t,"done"}),"startY"),this.traversePixel(e,(({pxData:e,col:t})=>{if(0!==e.a)return a=t,"done"}),"endX"),this.traversePixel(e,(({pxData:e,row:t})=>{if(0!==e.a)return o=t,"done"}),"endY"),[i,r,a,o]}static onSaveImg(e,t,n){const{t:s}=(0,o.QT)();c().toPng(e,{cacheBust:!0,quality:.8}).then((e=>{if((0,r.Q)().ios())(0,a.saveAs)(e,`${t}.png`);else{const n=document.createElement("a");n.href=e,n.download=`${t}.png`,document.body.appendChild(n),n.click(),i.sG.Modal.message({type:"success",content:s("lobby.promote.promote.downloadSuccessTips")})}})).finally(n)}static base64ToBlob(e){const[t,n]=e.split(","),i=(t||"").match(/:(.*?);/)?.[1],r=atob(n);let a=r.length;const o=new Uint8Array(a);for(;a--;)o[a]=r.charCodeAt(a);return new Blob([o],{type:i})}}},51457:function(e,t,n){n.d(t,{Z:function(){return r}});var i=n(91475);class r{constructor(e){this.options=Object.assign({},e),this.events=this.options.eventMap?.reduce(((e,t)=>(e[t.originEventName]=t.platformEventName,e)),{}),this.init()}init(){this.loadJs()}pixelEventPush(e,t){const n=n=>window.kwaiq.instance(this.options.kwaiqID||"").track(this.events?.[e]||n[e]||"buttonClick",{...t,content_id:(new Date).getTime()}),r=(0,i.h)()?.siteConfig?.siteCode||"";if(["673","721","703","5036"].includes(r)){return n({register:"completeRegistration",rechargeClick:"addToCart",firstrecharge:"firstDeposit",recharge:"purchase"}),void("firstrecharge"==e&&this.pixelEventPush("recharge",t))}if(["987","5610"].includes(r)){return n({register:"completeRegistration",rechargeClick:"addToCart",firstrecharge:"purchase",recharge:"purchase"}),void("firstrecharge"==e&&this.pixelEventPush("recharge",t))}n({register:"completeRegistration",firstrecharge:"purchase",recharge:"addToCart"})}async loadJs(){document.querySelector("#kwaiq-script")?.remove();const e=document.createElement("script");e.id="kwaiq-script",e.type="text/javascript",e.appendChild(document.createTextNode('\n      !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.install=t():e.install=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};!function(e){var t=window;t.KwaiAnalyticsObject=e,t[e]=t[e]||[];var n=t[e];n.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"];var o=function(e,t){e[t]=function(){var n=Array.from(arguments),o=r([t],n,!0);e.push(o)}};n.methods.forEach((function(e){o(n,e)})),n.instance=function(e){var t=n._i[e]||[];return n.methods.forEach((function(e){o(t,e)})),t},n.load=function(t,r){n._i=n._i||{},n._i[t]=[],n._i[t]._u="https://s1.kwai.net/kos/s101/nlav11187/pixel/events.js",n._t=n._t||{},n._t[t]=+new Date,n._o=n._o||{},n._o[t]=r||{};var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src="https://s1.kwai.net/kos/s101/nlav11187/pixel/events.js?sdkid="+t+"&lib="+e;var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(o,i)}}("kwaiq")}])}));\n      ')),document.head.appendChild(e),document.querySelector("#kwaiq-script-load")?.remove();const t=document.createElement("script");t.id="kwaiq-script-load",t.type="text/javascript",t.appendChild(document.createTextNode(`\n      kwaiq.load('${this.options.kwaiqID}');\n      kwaiq.page();\n      kwaiq.instance('${this.options.kwaiqID}').track('contentView')\n      `)),document.head.appendChild(t)}}},52441:function(e,t,n){n.d(t,{Z:function(){return a}});var i=n(55433);const r={rootMargin:"0px",threshold:0};class a{constructor({observerOptions:e=r}){(0,i.Z)(this,"listenerQueue",[]),(0,i.Z)(this,"observer",null),(0,i.Z)(this,"options",{observerOptions:r}),this.options={observerOptions:e},this.init()}init(){this.initIntersectionObserver()}isIntersecting(e,t){const n=e=>({x1:e.x,y1:e.y,x2:e.x+e.width,y2:e.y+e.height}),i=n(e),r=n(t);return!(i.x2<r.x1||i.x1>r.x2||i.y2<r.y1||i.y1>r.y2)}initIntersectionObserver(){if(!window.IntersectionObserver)return;const e=new DOMRect(0,0,window.innerWidth,window.innerHeight);this.observer=new IntersectionObserver((t=>{t.forEach((({boundingClientRect:t,rootBounds:n,target:i})=>{this.isIntersecting(t,n||e)?this.listenerQueue.forEach((e=>{if(e.vm.$el===i){if(e.loaded&&!e.options.keepObserver)return this.removeComponent(e.vm);e.loaded=!0,e.show=!0,e.options.callback()}})):this.listenerQueue.forEach((e=>{e.vm.$el===i&&e.loaded&&e.options.keepObserver&&(e.show=!1,e.options?.leaveCallback?.())}))}))}),this.options.observerOptions),this.listenerQueue.length&&this.listenerQueue.forEach((e=>{this.observer?.observe(e.vm.$el)}))}addLazyBox(e,t){this.removeComponent(e),this.listenerQueue.push({vm:e,options:{callback:t.callback,keepObserver:t.keepObserver??!1},loaded:!1,show:!1}),this.observer?.observe(e.$el)}removeComponent(e){if(!e)return;const t=this.listenerQueue.findIndex((t=>t.vm===e));t>-1&&(this.listenerQueue.splice(t,1),this.observer?.unobserve(e.$el))}}},75310:function(e,t,n){n.d(t,{$4:function(){return s},_l:function(){return a},po:function(){return o},yu:function(){return r}});const i={cache:{},queue:{},create:(e,t)=>{const n=document.createElement("script"),r=document.querySelector("script");for(const i in t){const e=t[i];"callback"!==i&&"string"==typeof e&&n.setAttribute(i,e)}r?.parentNode?.insertBefore(n,r),n.onload=()=>{for(t?.callback?.(n),i.cache[e]=n;i.queue[e]?.length;)i.queue[e].shift()?.resolve(n)},n.onerror=()=>{for(;i.queue[e]?.length;)i.queue[e].shift()?.reject()}}},r=async(e,t=!1,n=!0)=>{e=Array.isArray(e)?e:[e];const r=e=>new Promise(((t,r)=>{const{src:a}=e;if(i.cache[a]&&n)return t(i.cache[a]);i.queue[a]=[...i.queue[a]||[],{...e,resolve:t,reject:r}],1===i.queue[a].length&&i.create(a,e)}));if(t)return Promise.all(e.map((e=>r(e))));const a=[];for(let i=0;i<e.length;i++)a[i]=await r(e[i]);return a},a=e=>new Promise(((t,n)=>{const i=new XMLHttpRequest;i.open("GET",e),i.send(),i.onreadystatechange=()=>{if(4===i.readyState)if(200==i.status)try{t(JSON.parse(i.response))}catch(e){n()}else n()}})),o=(e,t=!1,n=null)=>new Promise((async(i,r)=>{if(t)i(URL.createObjectURL(await s(e)));else{const t=new Image;n&&(t.crossOrigin=n),t.onload=()=>{i(t)},t.onerror=()=>{r("load error:"+e)},t.src=e}})),s=e=>new Promise(((t,n)=>{const i=new XMLHttpRequest;i.open("GET",e,!0),i.onreadystatechange=()=>{4===i.readyState&&(200==i.status?t(i.response):n())},i.responseType="blob",i.send()}))},39169:function(e,t,n){var i=n(55433);class r{constructor(e){(0,i.Z)(this,"originalMethods",{log:function(){},info:console.info.bind(console),warn:console.warn.bind(console),error:console.error.bind(console)}),this.init(e)}init(e){const t=new URLSearchParams(window.location.search).get("fixed.consoleMatch"),n=t?t.split(","):[],i=["try","prod"].includes("prod"),r=e=>(...t)=>{i&&!window.abcdefg_open||(0===n.length||t.some((e=>n.some((t=>String(e).includes(t))))))&&this.originalConsole(e,...t)};e.forEach((e=>{switch(e){case"log":console.log=function(){};break;case"info":console.info=r("info");break;case"warn":console.warn=r("warn");break;case"error":console.error=r("error")}}))}originalConsole(e,...t){const n=this.originalMethods[e];n&&n(...t)}}t.Z=new class{constructor(){(0,i.Z)(this,"typeColor",{primary:"#2d8cf0",success:"#19be6b",info:"#909399",warn:"#ff9900",error:"#f03f14",default:"#35495E"});try{new r(["log","error","warn","info"])}catch(e){}}print(e="default",t,n=!1){const i=this.typeColor[e]||e||this.typeColor.default,r=window.console[e]?e:"log";"object"!=typeof t?n?this.console(r,[`%c ${t} `,`background:${i}; padding: 2px; border-radius: 4px; color: #fff;`]):this.console(r,[`%c ${t} `,`border: 1px solid ${i};\n              padding: 2px; border-radius: 4px;\n              color: ${i};`]):Array.isArray(t)}printBack(e="primary",t){this.print(e,t,!0)}pretty(e="primary",t,n){const i=window.console[e]?e:"log";if("object"==typeof n)return this.console(i,[`%c ${t}`,`background:${this.typeColor[e]};border:1px solid ${this.typeColor[e]};\n            padding: 1px; border-radius: 4px; color: #fff;`]),void Array.isArray(n);this.console(i,[`%c ${t} %c ${n} %c`,`background:${this.typeColor[e]};border:1px solid ${this.typeColor[e]};\n          padding: 1px; border-radius: 4px 0 0 4px; color: #fff;`,`border:1px solid ${this.typeColor[e]};\n          padding: 1px; border-radius: 0 4px 4px 0; color: ${this.typeColor[e]};`,"background:transparent"])}primary(e,...t){t.forEach((t=>this.pretty("primary",e,t)))}success(e,...t){t.forEach((t=>this.pretty("success",e,t)))}warn(e,...t){t.forEach((t=>this.pretty("warn",e,t)))}error(e,...t){t.forEach((t=>this.pretty("error",e,t)))}info(e,...t){t.forEach((t=>this.pretty("info",e,t)))}log(...e){e.forEach((e=>this.pretty("log","default",e)))}console(e,t){switch(e){case"info":console.info(...t);break;case"warn":console.warn(...t);break;case"error":console.error(...t)}}myDebug(e,...t){window.abcdefg_open&&this.info(e,...t)}}},34068:function(e,t,n){n.d(t,{BB:function(){return g},DZ:function(){return l},KH:function(){return m},PD:function(){return s},PW:function(){return d},T1:function(){return h},h9:function(){return c},hi:function(){return u},uF:function(){return p}});var i=n(44431),r=n.n(i);const a={EXPONENTIAL_AT:[-7,20]},o=(e,...t)=>t.reduce(((t,n,i)=>0===i?t:t=e(t,n)),t[0]),s=(...e)=>o(((e,t)=>new(r())(e).plus(new(r())(t))),...e),c=(...e)=>o(((e,t)=>new(r())(e).minus(new(r())(t))),...e),l=(...e)=>o(((e,t)=>new(r())(e).times(new(r())(t))),...e),u=(...e)=>o(((e,t)=>new(r())(e).div(new(r())(t))),...e),d=(e,t)=>new(r())(e).lte(t),h=(e,t)=>new(r())(e).gt(t),m=(e,t)=>new(r())(e).gte(t),g=(e,t=[-1e9,1e9])=>{r().config({EXPONENTIAL_AT:t});const n=new(r())(e).toString();return r().config(a),isNaN(n)?e:n},p=e=>new(r())(e).decimalPlaces()>0},82309:function(e,t,n){n.d(t,{Z:function(){return r}});var i=n(91475);class r{constructor(e){this.options=Object.assign({},e),this.events=this.options.eventMap?.reduce(((e,t)=>(e[t.originEventName]=t.platformEventName,e)),{}),this.loadJs(),this.createNoScript()}init(){window.fbq("init",this.options.pixelId||""),window.fbq("track","PageView"),window.fbq("track","ViewContent")}pixelEventPush(e,t){const{userInfos:n}=(0,i.h)(),r=i=>{const r=this.events?.[e]||i[e];r&&window.fbq("track",r,t,{eventID:n?.username??""}),window.fbq("trackCustom",e,t,{eventID:n?.username??""})},a=(0,i.h)()?.siteConfig?.siteCode||"";if(["169","669","927","738","218"].includes(a)){r({register:"CompleteRegistration",rechargeClick:"InitiateCheckout",firstrecharge:"Purchase",recharge:"AddToCart"})}else{r({register:"CompleteRegistration",rechargeClick:"InitiateCheckout",firstrecharge:"Purchase",recharge:"Purchase"})}}async loadJs(){document.querySelector("#fb-script")?.remove();const e=document.createElement("script");e.id="facebook-script",e.type="text/javascript",e.appendChild(document.createTextNode(`\n      !function(f,b,e,v,n,t,s)\n      {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n      n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n      if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n      n.queue=[];t=b.createElement(e);t.async=!0;\n      t.src=v;s=b.getElementsByTagName(e)[0];\n      s.parentNode.insertBefore(t,s)}(window, document,'script',\n      'https://connect.facebook.net/en_US/fbevents.js');\n      fbq('init', ${this.options.pixelId||""})\n      fbq('track', 'PageView')\n      fbq('track', 'ViewContent')\n      `)),document.head.appendChild(e)}createNoScript(){document.querySelector("#fb-noscript")?.remove();const e=document.createElement("noscript");e.id="fb-noscript",e.innerHTML=`<iframe\n        title="facebook"\n        src="https://www.facebook.com/tr?id=${this.options.pixelId}&ev=PageView&noscript=1"\n        height="0"\n        width="0"\n        style="display: none; visibility: hidden"\n      ></iframe\n      >`,document.body.insertBefore(e,document.body.children[0])}}},71751:function(e,t,n){function i(e,t){const n=e.length>=12,i=/[a-z]/.test(e),r=/[A-Z]/.test(e),a=/\d/.test(e),o=/[!@#$%^&*_=\+\\,\-.\/?\(\)]/.test(e);let s=0;const c=[i,r,a,o].filter((e=>e));return e.length>=8&&(1===c.length||e&&e===t)?s=1:n&&i&&r&&a&&o?s=4:n&&3===c.length?s=3:e.length>=8&&(s=2),s}n.d(t,{V:function(){return i}})},92012:function(e,t,n){n.d(t,{Z:function(){return r}});var i=n(55433);class r{constructor(){(0,i.Z)(this,"pools",{}),(0,i.Z)(this,"manualKey",[])}batch(e,t=Object.keys(this.pools)){const n=this[e].bind(this);t.forEach(n)}async create(e){const{key:t,callback:n,leading:i,beforeCreateHooks:r}=Object.assign({leading:!1,beforeCreateHooks:()=>Promise.resolve(null)},e);i&&n&&n(),r&&await r(),this.destroy(t);const a=()=>{this.pools?.[t]?.pause||n&&n()};this.pools[t]={pause:!1,id:window.setInterval(a,e.interval),handle:a,options:e}}pause(e){if(void 0===e)return this.batch("pause");this.pools[e]&&(this.pools[e].pause=!0)}pauseInManual(e){void 0===e||this.manualKey.includes(e)||this.manualKey.push(e),this.pause(e)}recover(e){if(void 0===e)return this.batch("recover");this.pools[e]&&!this.manualKey.includes(e)&&(this.pools[e].pause=!1,this.run(e))}recoverInManual(e){if(void 0===e)return;const t=this.manualKey.indexOf(e);-1!==t&&(this.manualKey.splice(t,1),this.recover(e))}run(e){if(void 0===e)return this.batch("run");this.pools[e]&&this.pools[e].handle()}destroy(e){if(void 0===e)return this.batch("destroy");this.pools[e]&&(clearInterval(this.pools[e].id),delete this.pools[e])}update(e,t){if(void 0===e&&void 0===t)return;const n={...this.pools[e].options,...t};this.destroy(e),this.create(n)}}},29472:function(e,t,n){n.d(t,{OT:function(){return p},aE:function(){return g},xy:function(){return f}});var i=n(82492),r=n.n(i),a=n(36630),o=n(35829),s=n(5515),c=n(86943),l=n(91475),u=n(5717),d=n(2161),h=n(80194),m=n(75812);const g=(e=window.location.href)=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce(((e,t)=>(e[t.slice(0,t.indexOf("="))]=t.slice(t.indexOf("=")+1),e)),{}),p=(e,t)=>{let n=window.location.href;const i=n.split("?")[0],a=r()({},g(n));for(const r in t)a[r]=t[r];let o=!0,s="";for(const r in a)s+=`${o?"?":"&"}${r}=${a[r]}`,o=!1;n=i+s,window.history&&window.history.replaceState(null,"",n),r()(e,t)},f=async(e,t,n,i,r)=>{const{isWeb:s}=(0,l.h)();if(Number(t)===a.dF.Customize){const e=m.ZP.iphoneOpenWindow(),{activeData:t}=await(0,c.EB)(Number(n)),{displayType:i,displayList:o}=t;if(i===a.Q7.JumpOutsideLink&&o?.length){const t=s?a.Db.PC:a.Db.Mobile,{openType:n,url:i,locationType:c}=o.find((e=>e.deviceType===t));return r&&r(),void(c===a.gz.OutsideLink?n===a.L$.NewWindow?e?e.location=i:(0,m.MI)(i):(window.location.href=i,e?.close()):(y(c),e?.close()))}e?.close()}h.ZP[e]({name:o.x4.EVENT_ITEM,params:{template:t,eventId:n},query:i})},y=e=>{const t={[a.gz.OutsideLink]:[null,null],[a.gz.Activity]:[o.x4.EVENT,s.R.ACTIVITY],[a.gz.Task]:[o.x4.TASK,s.R.TASK],[a.gz.Recharge]:[null,s.R.CANRECEIVE],[a.gz.Cashback]:[o.x4.CASHBACK,null],[a.gz.Proxy]:[o.x4.PROMOTE,s.R.PROMOTE],[a.gz.Vip]:[o.x4.VIP,s.R.VIP]},{hasLogined:n,homeLayoutInfos:i}=(0,l.h)(),{updateTabItem:r}=(0,u.c)(),[c,m]=t[e];if(e===a.gz.Activity&&h.ZP?.currentRoute?.name===o.x4.EVENT)return;if(e===a.gz.Recharge){if(d.Z.Site.guide2DemoAcountDialog())return;d.Z.Modal.open("payModal")}const g=(n?i?.loginAfterBottomLayouts:i?.loginBeforeBottomLayouts)?.find((e=>e.name===m))?.name;let p=h.ZP.currentRoute?.query;g&&m&&(r(m),p={...p,tabItem:m}),c&&h.ZP.push({name:c,query:p})}},76198:function(e,t,n){n.d(t,{Z:function(){return r},i:function(){return a}});var i=n(46851);function r(e=1e3){if(!(/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent))||!indexedDB.databases)return Promise.resolve("skip");let t,n=0;return new Promise((r=>{localStorage.setItem("++++idbReady start",`${(new Date).toString()}`),i.xN.dispatch({type:"MONITOR_EVENT",eventName:"IdbReady",payload:{message:`start @ ${(new Date).toString()}`}});const a=()=>(n+=1,indexedDB.databases().then((()=>{r("success")})));t=window.setInterval(a,100),a(),window.setTimeout((()=>{r("timeout")}),e)})).then((e=>(localStorage.setItem("++++idbReady end",`${(new Date).toString()}: ${e} ${n}`),i.xN.dispatch({type:"MONITOR_EVENT",eventName:"IdbReady",payload:{message:`end @ ${(new Date).toString()} with ${e} ${n}`}}),e))).finally((()=>{window.clearInterval(t)}))}const a=()=>{let e=700;try{const t=new URLSearchParams(new URL(window.location.href).search).get("mock.indexDBTimeout")||"";t&&/\d+/.test(t)&&(e=Number(t))}catch(t){}return e}},18136:function(e,t,n){n.d(t,{Z:function(){return r}});var i=n(91475);class r{constructor(e){this.options=Object.assign({},e),this.events=this.options.eventMap?.reduce(((e,t)=>(e[t.originEventName]=t.platformEventName,e)),{}),this.init()}init(){this.loadJs()}pixelEventPush(e,t){const n=n=>window.ttq.track(this.events?.[e]||n[e]||e,{...t,content_id:(new Date).getTime(),content_type:"product"}),r=(0,i.h)()?.siteConfig?.siteCode||"";if(["272","230","326","702","722"].includes(r)){return void n({register:"CompleteRegistration",firstrecharge:"CompletePayment",recharge:"AddToCart"})}if(["5060"].includes(r)){return void n({register:"CompleteRegistration",rechargeClick:"AddToCart",firstrecharge:"CompletePayment",recharge:"Subscribe"})}if(["5571","5017","721"].includes(r)){return void n({register:"CompleteRegistration",rechargeClick:"AddToCart",firstrecharge:"Subscribe",recharge:"CompletePayment"})}n({register:"CompleteRegistration",rechargeClick:"AddToCart",firstrecharge:"CompletePayment",recharge:"CompletePayment"})}async loadJs(){document.querySelector("#tiktok-script")?.remove();const e=document.createElement("script");e.id="tiktok-script",e.type="text/javascript",e.appendChild(document.createTextNode(`\n      !function (w, d, t) {\n        w.TiktokAnalyticsObject=t;\n        var ttq=w[t]=w[t]||[];\n        ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"],\n        ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};\n        for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);\n        ttq.instance=function(t){for(var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++\n        )ttq.setAndDefer(e,ttq.methods[n]);\n        return e},\n        ttq.load=function(e,n){var i="https://analytics.tiktok.com/i18n/pixel/events.js";\n        ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=i,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};\n        n=document.createElement("script");\n        n.type="text/javascript",n.async=!0,n.src=i+"?sdkid="+e+"&lib="+t;\n        e=document.getElementsByTagName("script")[0];\n        e.parentNode.insertBefore(n,e);\n        };\n        ttq.load('${this.options.tiktokID}');\n        ttq.page();\n        ttq.track('ViewContent')\n        }(window, document, 'ttq');\n      `)),document.head.appendChild(e)}}},39951:function(e,t){t.Z=new class{toDouble(e){return e<10?"0"+e:""+e}parse(e){if(e>3600){const t=Math.floor(e/60/60),n=Math.floor(e/60%60),i=Math.floor(e%60);return`${this.toDouble(t)}:${this.toDouble(n)}:${this.toDouble(i)}`}{const t=Math.floor(e/60),n=Math.floor(e%60);return`${this.toDouble(t)}:${this.toDouble(n)}`}}showTimeIncrease(e,t=0,n=1e3){return e(this.parse(t)),window.setInterval((()=>{e(this.parse(t)),t+=n/1e3}),n)}remainingTime(e,t,n=0,i=1e3){e(this.parse(t));const r=window.setInterval((()=>{e(this.parse(t)),(t-=i/1e3)<n&&window.clearInterval(r)}),i);return r}}},75990:function(e,t,n){n.d(t,{Az:function(){return K},CB:function(){return _},Fr:function(){return C},IY:function(){return B},Id:function(){return V},LS:function(){return N},Ly:function(){return j},NB:function(){return k},TA:function(){return G},Wn:function(){return L},Wz:function(){return R},Xi:function(){return T},_0:function(){return D},ao:function(){return z},bO:function(){return M},bS:function(){return P},cF:function(){return b},ce:function(){return q},gw:function(){return w},hg:function(){return O},jL:function(){return Z},lC:function(){return x},n8:function(){return F},np:function(){return E},po:function(){return v},vM:function(){return W},wY:function(){return U},xu:function(){return $},zQ:function(){return A},zm:function(){return H},zp:function(){return I},zs:function(){return y}});var i=n(27361),r=n.n(i),a=n(98066),o=n.n(a),s=n(82492),c=n.n(s),l=n(89539),u=n(76793),d=n(91475),h=n(42152),m=n.n(h),g=n(80129),p=n.n(g),f=n(8575);const y=(e,t,n=!0)=>{const i=f.parse(e,!0),r=c()(i.query||{},t,n?{}:{_t:+new Date});return i.query=r,i.search=`?${p().stringify(r)}`,f.format(i)};function b(e="app",t=localStorage){try{const n=t.getItem(e);return n?JSON.parse(n):{}}catch(n){return{}}}function v(e={},t="app",n=localStorage){try{const i=b(t,n),r=c()({},i,e);n.setItem(t,JSON.stringify(r))}catch(i){}}function w(e){if(!(e<=0))return new Promise((t=>{o()(t,e)}))}const C=l.promisify,I=e=>{m().copy(e)};async function T(){return navigator.clipboard.readText().then((e=>e)).catch((e=>Promise.reject(e)))}const S=window.requestIdleCallback||(e=>{setTimeout(e,0)}),P=(e=60)=>t=>window.setTimeout(t,1e3/e),L=window.requestAnimationFrame||P(),k=window.cancelAnimationFrame||(e=>{clearTimeout(e)}),_=e=>/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(e);function E(e,t="requestIdleCallback"){const n=[...e],i="requestAnimationFrame"===t?L:S,r=()=>{const e=n.shift();e&&("function"==typeof e&&e(),n.length&&i(r))};i(r)}function O(e={dedupe:!1}){const{dedupe:t}=e;let n,i,r,a=[];const o=[],s={queue:a,push:(...e)=>(e.forEach((async e=>{t&&(a=[]),a.push(e),n||(n=c());try{return await n}finally{n=void 0}})),s),next:r,repeat:()=>{i&&(a.unshift(i),r(),o.pop())},flush:()=>n||Promise.resolve([])},c=async()=>{for(;a.length;){const e=a.shift();i=e,e&&o.push(await new Promise((t=>{r=()=>{t("")},e().then((()=>{r()}))})))}return o};return s}const R=(e,t=window.location.href)=>{const n=new RegExp("(/?|/|&)"+e+"=([^&]*)(&|$)","i"),i=t.substring(1).match(n);return null!=i?decodeURIComponent(i[2]):null},A=(e=0,t)=>{const n=getComputedStyle(document.documentElement)?.fontSize.replace("px",""),i=Number(n)/100*e;let r=0;return t&&t.forEach((e=>{r+=e.clientHeight})),document.body.offsetHeight+i-r},D=e=>(e||0)>99?"99+":e,x=(e,t,n)=>{const i=new AbortController,r=i.signal;return Promise.race([(e=>new Promise((t=>{setTimeout((()=>{t(new Response("timeout",{status:504,statusText:"timeout "})),i.abort()}),e)})))(t??300),(async e=>{const t=await fetch(e,{signal:r});if(n){if(!await n(t))throw new Error("Invalid response")}return t})(e)])};function Z(e){return new Promise(((t,n)=>{N(e,"pay",!1,5e3).then((n=>{t({url:e,pingTime:n})})).catch((()=>{n({url:e,pingTime:u.o})}))}))}async function N(e,t="api",n=!1,i=u.o,r=!0){return new Promise((async(a,o)=>{const s=Date.now(),c={api:"/ipacdn.txt",web:"/bewcdn.txt",oss:"/siteadmin/ssocdn.txt",pay:"/fzcdn.txt"}[t];let l=u.o;200===(await x(e+c+(n?"":`?${s}`),i,(async e=>{if(200!==e.status)return!1;try{return"ok"===(await e.text()).toLowerCase()}catch(t){return!1}})).catch((()=>{o("fetchUrlError")})))?.status?(l=Date.now()-s,a(l)):r?o(u.o):a(u.o)}))}async function M(e){return new Promise(((t,n)=>{N(e,"web",!1,5e3).then((n=>{t({url:e,pingTime:n})})).catch((()=>{n({url:e,pingTime:u.o})}))}))}const B=function(e,t,n=3){return function(e,t=2){return new Promise((async(n,i)=>{const r=t;for(;t--;)try{n(await e(r-t));break}catch(a){t||i(a)}}))}((n=>{const i=e[n-1]||e[e.length-1];return t(i)}),Math.max(e.length,n))},G=e=>Array.prototype.filter.call(Array.prototype.concat.apply([],Array.prototype.map.call(document.styleSheets,(function(e){return Array.prototype.slice.call(e.cssRules)}))),(t=>e(t))),H=()=>"true"===R("mock.disabledModal");function $(e){e.querySelectorAll("*").forEach((e=>{e.setAttribute("style",e.style.color?`color: ${e.style.color}`:"")}))}function F(e={}){let t=0,n="";return t=r()(e,"data.code",t),n=r()(e,"data.msg",n),{code:t,msg:n}}const q=(e,t,n)=>{const i=new URL(e);return i.searchParams.append(t,decodeURIComponent(String(n))),i},j=(e,t)=>{const n=new URL(e),i=new URL(t??window.location.href),r=new URLSearchParams(i.search);for(const[a,o]of r)n.searchParams.append(a,o);return n.href},z=e=>{const t=e??window.location.href,n=new URL(t),i=new URLSearchParams(n.search),r={};for(const[a,o]of i)r[a]=o;return r},U=()=>{const{userInfos:e}=(0,d.h)();if(!e)return"";const{regPkgId:t}=e;return t},V=(e,t)=>{const n=t??window.location.href,i=new URL(n),r=new URLSearchParams(i.search);for(const a of e)r.delete(a);return i.search=r.toString(),i.href},W=(e,t)=>{const n=new URL(e),i=new URL(t);return n.hostname=i.hostname,n.protocol=i.protocol,n.port=i.port,n.href},K=(e,t)=>{let n=t;try{const t=new URLSearchParams(new URL(window.location.href).search).get(e)||"";t&&/\d+/.test(t)&&(n=Number(t))}catch(i){}return n}},55941:function(e,t,n){n.d(t,{Fc:function(){return g},G6:function(){return l},LU:function(){return m},TT:function(){return u},h5:function(){return p},qx:function(){return c}});var i=n(5954),r=n(21615);const a=navigator.userAgent,o=/FB_|FBAN|FBIOS|FBAV/i.test(a),s=/instagram/i.test(a),c=(/whatsapp/i.test(a),/telegram/i.test(a),/mobile/i.test(a),/iphone/i.test(a)),l=/Safari\/([0-9\.]+)/.test(a),u=/chrome/i.test(a),d=/line/i.test(a),h=/UCBrowser/i.test(a),m=d||o||s||h,g=m&&(0,i.Q)().android(),p=(0,i.Q)().ios()&&(!l||m)&&!r.cY.isWgPackage},67819:function(e,t,n){n.d(t,{Z:function(){return a}});var i=n(55433),r=n(61082);class a{static isEmail(e){return"string"==typeof e&&/^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(e)}static isEmpty(e){return["",void 0,null].includes(e)}}(0,i.Z)(a,"isMobile",r.Z)},66780:function(e,t,n){var i=n(55433);const r=(e,t)=>""!==e?e+t.slice(0,1).toUpperCase()+t.slice(1):t;t.Z=class{constructor(){(0,i.Z)(this,"__hidden",""),(0,i.Z)(this,"__state",""),(0,i.Z)(this,"__prefixSupport",""),(0,i.Z)(this,"__kernel",["","webkit","moz","ms","o"]),(0,i.Z)(this,"__bindFn",(()=>{})),(0,i.Z)(this,"supportHidden",!1),(0,i.Z)(this,"supportState",!1),this.supportHidden=this.__isPageHiddenSupport(),this.supportState=this.__isPageVisibilitySupport()}__isPageHiddenSupport(){let e=!1;return"number"!=typeof window?.screenX||this.__kernel.forEach((t=>{const n=r(t,"hidden");!e&&n in document&&(this.__hidden=n,this.__prefixSupport=t,e=!0)})),e}__isPageVisibilitySupport(){let e=!1;return"number"!=typeof window?.screenX||this.__kernel.forEach((t=>{const n=r(t,"visibilityState");!e&&n in document&&(this.__state=r(t,"visibilityState"),e=!0)})),e}visibilityChange(e,t=!1){if((this.supportHidden||this.supportState)&&"function"==typeof e)return this.__bindFn=()=>{e.call(null,this.isShow)},this.destory(),document.addEventListener(this.__prefixSupport+"visibilitychange",this.__bindFn,t)}destory(){document.removeEventListener(this.__prefixSupport+"visibilitychange",this.__bindFn)}get isShow(){return this.supportState?"visible"===document[this.__state]:!this.supportHidden||!document[this.__hidden]}}},20670:function(e,t,n){n.d(t,{Z:function(){return a}});var i=n(55433),r=n(20144);class a{static getChilds(e,t){const n=[],i=(e,t)=>{t.$children.forEach((t=>{e(t)?n.push(t):i(e,t)}))};return i(e,t),n}}(0,i.Z)(a,"$createElement",(new r.default).$createElement)},71743:function(e,t,n){n.d(t,{Cj:function(){return h},Mg:function(){return g},R0:function(){return f},T9:function(){return d.T},Ws:function(){return p},XY:function(){return m},ii:function(){return y},x_:function(){return b}});n(82801);var i=n(93250),r=n(75990),a=n(75310),o=n(8575),s=n(91475),c=n(12832),l=n(9669),u=n.n(l),d=n(52851);const h=(e,t=((0,s.h)().useLocalSkinAssetsOnly?`${location.origin}/assets`:`${(0,s.h)().ossHost}siteadmin/skin`))=>{if("string"!=typeof e)return e;if(/^\/lobby_asset\/[\S]+/.test(e)){const{siteInfos:n,skinAssetsHash:i}=(0,s.h)(),a=n?.type,o=n?.skinTypeValue,l=n?.backgroundColor,u=c.Z.holidayThemeType,d=void 0!==a?String(a):"{layout}",h=void 0!==o?String(o):"{skin}",m=void 0!==l?String(l):"{bg}",g=void 0!==u?String(u):"{holiday}",p=e.replace(/\{layout\}/g,d).replace(/\{bg\}/g,m).replace(/\{skin\}/g,h).replace(/\{holiday\}/g,g),f=e=>{const t=(i||{})[e.replace(/^\/lobby_asset\//,"").replace(/\?[\S]+$/,"")];return t||"v4.2.8"};return(0,r.zs)(`${t}${p}`,{manualVersion:1,version:f(p)})}return e};function m(e,t,n=(()=>(0,s.h)().allPngSprite)){return{id:e,...n()?.[e]||{x:1,y:1,width:1,height:1,image:"",id:"",total_width:1,total_height:1},...t}}function g({path:e,width:t,height:n,scale:i,color:r}){return{...r?{linearGradientConfig:{colorStop:[{progress:0,color:r},{progress:1,color:r}]},useCanvas:!0}:{},..."number"==typeof i?{scale:i}:{},sprite:{x:0,y:0,width:t,height:n,image:e,total_width:t,total_height:n}}}function p(){try{const e={baseUnit:100,unit:"rem"},t=/::?(before|after)[\S\s]+\{[\S\s]*content: ('|")(\/lobby_asset\/[\S]+)('|")/,n=(0,r.TA)((e=>t.test(e.cssText))),s={};n.forEach((n=>{const[,,,i]=n.cssText.match(t)||[],r=(0,o.parse)(i,!0),{key:a="",mode:c="sprite",scale:l="1"}=r.query||{},u=m(a),d=Number(l),h="mask"===c?i:u.image;s[h]=s[h]||[],s[h].push((t=>{let i={display:"inline-block",width:`${u.width*d/e.baseUnit}${e.unit}`,height:`${u.height*d/e.baseUnit}${e.unit}`,backgroundImage:`url(${t})`,backgroundPosition:`${-u.x*d/e.baseUnit}${e.unit} ${-u.y*d/e.baseUnit}${e.unit}`,backgroundSize:`${u.total_width*d/e.baseUnit}${e.unit} ${u.total_height*d/e.baseUnit}${e.unit}`};if("mask"===c){const e=`url(${t})`;i={"mask-image":e,"-webkit-mask-image":e}}Object.assign(i,{content:'""',visibility:"visible"});for(const e in i)n.style[e]=i[e]}))})),Object.entries(s).forEach((([e,t])=>{const n=/.svg(\?(\S+))?$/.test(e);let r="";(0,i.or)((async t=>{const i=h(e,t);if(r=i,n){const e=await u().get(i);return`data:image/svg+xml;base64,${window.btoa(e.data)}`}return(await(0,a.po)(i)).src})).then((e=>{const n=e;t.forEach((e=>{e(n)}))})).catch((()=>{t.forEach((e=>{e(r)}))}))}))}catch(e){}}function f(e,t=!1){return`/lobby_asset/{layout}-{bg}-${t?"common":"{skin}"}/common/_sprite/${e}.png`}function y(e){return`/lobby_asset/common/common/_sprite/${e}.png`}function b(e,t=!1){return`/lobby_asset/${t?"common":"{layout}-{bg}-common"}/web/common/${e}.svg`}},88399:function(e,t,n){n.d(t,{B:function(){return r}});var i=n(91475);const r=(e=!1)=>{const t=60*((0,i.h)().hasLogined?1:10)*1e3;return e?0:t}},9260:function(e,t,n){n.d(t,{j:function(){return r}});var i=n(5954);const r=()=>{if((0,i.Q)().ios()){let e=0;document.addEventListener("touchstart",(function(e){e.touches.length>1&&e.preventDefault()})),document.addEventListener("touchend",(function(t){const n=(new Date).getTime();n-e<=300&&t.preventDefault(),e=n}),!1),document.addEventListener("gesturestart",(function(e){e.preventDefault()}))}}},1938:function(e,t,n){n.d(t,{F5:function(){return f},OH:function(){return h},ZP:function(){return d},_5:function(){return p},oB:function(){return m},rj:function(){return y},yi:function(){return g}});var i=n(72698),r=n(62933),a=n(63141),o=n(34068),s=n(91475),c=n(44431),l=n.n(c),u=n(79888);class d{static times(...e){return(0,o.BB)((0,o.DZ)(...e))}static div(...e){return(0,o.BB)((0,o.hi)(...e))}static deleteZero(e){const t=e.length,n=t-1;return 0===t?e:e.includes(".")&&("0"===e[n]||"."===e[n])?this.deleteZero(e.slice(0,-1)):e}static autoAddTwoZero(e){if(null==e||null==e)return e;let t=e?.toString(),n=t.indexOf(".");for(n<0&&(n=t.length,t+=".");t.length<=n+2;)t+="0";return m(t,{symbol:""},!0)}static formatMoney(e,t,n=!0,i=10){let a=(0,s.h)().getCurrencyInfoByCode(t)?.currencyType===r.Tl.CRYPTO;e.startsWith("0.")&&(a=!0);const o=new RegExp("^\\D*(\\d*(?:\\.\\d{0,"+i+"})?).*$","g"),c=a?e.replace(o,"$1"):e.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g,"$1");return n?this.deleteZero(c):c}static ceilNumber(e,t){const n=new(l())(t);return"USDT"==e||"USDC"==e||"TRX"==e?n.decimalPlaces(2,l().ROUND_UP).toFixed(2).toString():"ETH"==e||"BTC"==e?n.decimalPlaces(8,l().ROUND_UP).toFixed(8).toString():t}static formatExchange(e,t=8){const n=new RegExp("^\\D*(\\d*(?:\\.\\d{0,"+t+"})?).*$","g");return this.deleteZero(e.replace(n,"$1"))}static formGameRateMoney(e){return e.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g,"$1")}static getGameRateProportion(e,t=1,n=!1,i=!0){let r="";const a=Math.round(1/t),o=i?h(t,{precision:0,symbol:""}):t;return t<=1?(r=`${e}1=${a}`,"₫"===e&&(r=`1${e}=${a}`)):(r=`${e}${o}=1`,"₫"===e&&(r=`${o}${e}=1`)),n&&(r=r.split("=").reverse().join("=")),r}static getCurrencyFormat(e,t){return"₫"===e?`${t}${e}`:`${e}${t}`}static checkInputMoneyLimit(e){const t=e.length;return e.includes(".")?t<=15:t<=12}static getInputMoneyLimit(e){return e?e.includes(".")?e.slice(0,15):e.slice(0,12):e}static genOrderSign(e,t,n){let i="";e.username&&(i+="username="+e.username),e.amount&&(i+="&amount="+e.amount),null==e.paytype&&null==e.paytype||(i+="&paytype="+e.paytype),n||e.payplatformid&&(i+="&payplatformid="+e.payplatformid),e.time&&(i+="&time="+e.time),n&&(e.payplatformids&&(i+="&payplatformids="+e.payplatformids),e.id&&(i+="&id="+e.id)),e.platformId&&(i+="&platformId="+e.platformId),e.gameId&&(i+="&gameId="+e.gameId),e.currencyCode&&(i+="&currencyCode="+e.currencyCode),e.mobilePhone&&(i+="&mobilePhone="+e.mobilePhone),e.email&&(i+="&email="+e.email),e.cardNumber&&(i+="&cardNumber="+e.cardNumber),e.cardPassword&&(i+="&cardPassword="+e.cardPassword),e.networkMerch&&(i+="&networkMerch="+e.networkMerch),e.bankCode&&(i+="&bankCode="+e.bankCode),e.bankName&&(i+="&bankName="+e.bankName),e.merchCode&&(i+="&merchCode="+e.merchCode);const r=(0,s.h)()?.siteConfig?.siteCode||"";return["503","126","128"].includes(r)?i+="&key=fc361cdb770aebc2126cc0dac989c896":i+="&key="+t,u.Z.md5(i)}static getWalletSign(e,t){let n=Object.keys(e).sort().map((t=>`${t}=${e[t]}`)).join("&");return n+="&key="+t,u.Z.md5(n)}}function h(e,t){const{userInfos:n}=(0,s.h)(),i=n?.currency||"",r=a.oB.createOptsByCode(i),o=["BRL"].includes(i),c=(0,s.h)().getCurrencyInfoByCode(i);return(0,a.oB)(e,Object.assign({},o?r:{},"function"==typeof t?t(i):t,{".":{decimal:",",separator:"."},",":{decimal:".",separator:","}}[c?.thousandthPlace??","]))}function m(e,t,n){let i={};const{userInfos:r}=(0,s.h)();if(r&&r.currency&&"BRL"===r.currency){const e=r.currency;i=a.oB.createOptsByCode(e)}return(0,a.oB)(e,n?Object.assign({},i,t):Object.assign({},t,i))}function g(e,t=0,n=!0){if(!e&&0!==e)return"";const{userInfos:r}=(0,s.h)();let o={};return o=r?.currency===i.F.currenciesFormatConfig().BRL.code?{decimal:",",separator:".",symbol:"R$",withZero:n,template:{pos:"%s %v",neg:"-%s %v",zero:"%s %v"}}:{decimal:".",separator:",",symbol:"¥",withZero:n,template:{pos:"%s%v",neg:"-%s%v",zero:"%s%v"}},(0,a.oB)(e,Object.assign({},o,{symbol:"",precision:t}))}function p(e,t){if(!e&&0!==e||"object"==typeof e)return"";const{userInfos:n}=(0,s.h)();return(0,a.oB)(e,Object.assign({},t,{code:n?.currency,template:"%v"}))}function f(e,t,n=""){let i="";2===arguments.length?n=t??"":3===arguments.length&&(i=t??"");const r=n.split(/(\d+|\D)/).filter((e=>e)),a=r.filter((e=>isNaN(Number(e)))),o=e.split("").filter((e=>!a.includes(e))).join("");if(i&&e.length<i.length&&a.includes(i.slice(-1)))return e.slice(0,-1);let s="",c=0,l=0;for(let u=0;u<r.length&&o[c];u++){if(!isNaN(Number(r[u]))){const e=c+Number(r[u]);s+=o.slice(c,e),c=e,l+=Number(r[u])}l===s.length&&-1!==a.indexOf(r[u+1])&&(s+=r[u+1],l+=1)}return s}const y=(e,t,n)=>{const i=[r.Gm.ETH,r.Gm.BTC].includes(t);return h(e,{...{symbol:"",precision:i?8:2,withZero:!i},...n})}},75812:function(e,t,n){n.d(t,{$j:function(){return k},C1:function(){return _},HP:function(){return x},J3:function(){return G},MI:function(){return R},SH:function(){return Z},W$:function(){return B},ZP:function(){return L},jj:function(){return O},kb:function(){return N},nX:function(){return P.n},rC:function(){return D},wv:function(){return M}});var i=n(66796),r=n.n(i),a=n(50361),o=n.n(a),s=n(46851),c=n(62933),l=n(58217),u=n(9814),d=n(68226),h=n(72654),m=n(35829),g=n(5860),p=n(1507),f=n(75990),y=n(5954),b=n(55941),v=n(21615),w=n(91475),C=n(29946),I=n(56343),T=n(30381),S=n.n(T),P=n(28484);class L{static isLayoutChange(){try{const{health:e,response:t}=L.parseInjectData("apiGetSiteInfo");if(e){const e=t.data.data,n=this.lastLayout;for(const t in n)if(n[t]!==e[t])return!0;return!1}}catch(e){return!0}return!0}static isLanguateChange(){return this.lastLanguage?.language!==(0,w.h)().language}static parseInjectData(e){const t=o()(window.LOBBY_SITE_CONFIG.INJECT_DATA?.[e]),n=t?.data?.data,i=t?.data?.code===d.VH.SERVICE_CODE.SUCCESS;return{response:t,exit:!!t?.data,health:i,data:n}}static thirdPartyDesensitization(e,t="*"){return e.replace(/^(.{2}).*(.{3})$/,((n,i,r)=>i+t.repeat(e.length-5)+r))}static emailDesensitization(e,t="*"){const n=e.match(/^(\S+)@/)?.[1]||"";return i=n.length<=3?0:3,e.replace(`${n}@`,`${n.slice(0,i)}${r()(t,n.length-i)}@`);var i}static phoneNumberDesensitization(e,t=6,n="*"){if(~e.indexOf("-")){const{areaCode:i,value:a}=this.phoneNumberParse(e);return i+a.slice(0,2)+r()(n,Math.min(t,a.length-5))+a.slice(2+Math.min(t,a.length-5))}throw new Error("phone is not a correct phone number, phone = "+e)}static cpfDesensitization(e){if(!e)return"";if(/^\d+$/.test(e))return e.length<=3?r()("*",e.length):e.slice(0,2)+r()("*",e.slice(2).length);throw new Error("cpf is not a correct cpf number, cpf = "+e)}static phoneNumberParse(e){const[t,n,i,r,a,o]=e.match(/(\+\d+\-)((\d+)(\**)(\d+))/)||[];return{origin:t,areaCode:n,placeholder:a,value:i,prefix:r,suffix:o}}static iphoneOpenWindow(e=""){let t;const n=b.G6&&!b.TT;return!b.qx&&!n||v.tT||(t=window.open(e,"_blank")),t}static emailCheckParse(e){const[t,n]=e.split("@"),[i,r,a,o]=t.match(/([^\*]*)(\**)([^\*]*)/)||[];return{origin:i,prefix:r,placeholder:a,suffix:o,emaildomain:n}}static px2rem(e,t){try{const e=(0,w.h)();t=t||e.remUnit}catch(n){t=t||100}return("string"==typeof e?parseFloat(e):e)/t+"rem"}static convertPxStringToRem(e,t){return e.replace(/(\d*\.?\d+)px/g,(function(e,n){return parseFloat(n)/100*t+"rem"}))}static convertImgToRem(e,t=1){const n=document.querySelector(e)?.querySelectorAll("img");n?.forEach((e=>{e.addEventListener("load",(function(){const e=this.naturalWidth;this.style.width=L.px2rem(e*t)}))}))}static rem2px(e,t){try{t={precision:2,keepUnit:!0,...t};const n=(parseFloat(String(e))*parseFloat(window.getComputedStyle(document.documentElement).getPropertyValue("font-size"))).toFixed(t.precision);return t.keepUnit?`${n}px`:Number(n)}catch(n){return console.error(`rem2px: convert failed, args: input:${e} precision:${t.precision}`),"NaNpx"}}static format(e=new Date,t="ymdhms",n){const{language:i}=(0,w.h)(),r=s.CM.DateFormatMap[i][t]??s.CM.DateFormatMap.zh_CN.ymdhms;return I.Z.format(e,r,n)}static formatSiteOffsetTime(e,t="ymdhms"){const{siteInfos:n}=(0,w.h)(),i=S().utc(e?1e3*e:(new Date).getTime()).utcOffset(n?.timeZone??""),{language:r}=(0,w.h)(),a=s.CM.DateFormatMap[r][t]??s.CM.DateFormatMap.en_US.ymdhms;return i.format(a)}static formatDisplayDate(e,t){let n;if(!e)return"";if(e instanceof Date)n=e;else{n=new Date(e<1e10?1e3*e:e)}const i=new Date,r=new Date(i);r.setDate(i.getDate()-1);const{t:a}=(0,l.QT)();return n.toDateString()===i.toDateString()?`${a("lobby.common.date.today")} ${this.format(n,"hms",t)}`:n.toDateString()===r.toDateString()?`${a("lobby.common.date.yesterday")} ${this.format(n,"hms",t)}`:n.getFullYear()===i.getFullYear()?this.format(n,"mdhms",t):this.format(n,"ymdhms",t)}}const k=(e,t=!1)=>{if(t)return e.replace(/\/\||\/\#|\/\^|\/\-/g,"");const n={"/-":"#1678FF","/|":"#04BE02","/#":h.Ss,"/^":"#FFAA09"};for(const i in n){let t=e.indexOf(i);for(;-1!==t;){const r=n[i];t=(e=(e=e.replace(i,`<span style = "color: ${r}" >`)).replace(i,"</span>")).indexOf(i)}}return e};async function _(e,t={}){"login"==e&&C.Z.initBuried();const i=new URL(location.href).host,{urlParams:r}=(0,w.h)(),a=r.cid||void 0,o=r.id||void 0;t={...t,domain:i,cid:a,id:o};try{t.amount&&(t={...t,value:t.amount});const i=[],r=(0,w.h)()?.siteConfig?.siteCode||"";if(window.Android&&(window.Android?.eventTracker?.(e,JSON.stringify(t)),i.push({name:"Android"})),window.uni&&["238"].includes(r)&&(window.uni.postMessage({data:{eventName:e,eventValues:t}}),i.push({name:"uni"})),window.android_JSInter&&["171","226","638"].includes(r)&&(window.android_JSInter?.eventTracker(e,JSON.stringify(t)),i.push({name:"android_JSInter"})),window.jsBridge&&(window.jsBridge?.postMessage?.(e,JSON.stringify(t)),i.push({name:"jsBridge"})),["230"].includes(r)){const{getAnalytics:r,logEvent:a}=await n.e(92845).then(n.bind(n,92845));a(r(),e,t),i.push({name:"firebase"})}if(window.GTM&&(window.GTM?.options?.gtagId&&(window.GTM?.dataLayerPush("event",e,t),i.push({name:"gtag",platformId:window.GTM?.options?.gtagId})),window.GTM?.options?.gtmId&&(window.GTM?.GTMdataLayerPush("event",e,t),i.push({name:"GTM",platformId:window.GTM?.options?.gtmId}))),window.Pixel&&(window.Pixel?.pixelEventPush(e,t),i.push({name:"MetaPixel",platformId:window.Pixel?.options?.pixelId})),window.KwaiPixe&&(window.KwaiPixe?.pixelEventPush(e,t),i.push({name:"KwaiPixe",platformId:window.KwaiPixe?.options?.kwaiqID})),window.Tiktok&&(window.Tiktok?.pixelEventPush(e,t),i.push({name:"Tiktok",platformId:window.Tiktok?.options?.tiktokID})),window.Appier&&(window.Appier?.AppierEventPush(e,t),i.push({name:"Appier"})),["187"].includes(r)&&a){if("register"==e){const e=`https://appcookie.ru/click.php?cnv_id=${a}&event1=1&cnv_status=reg&cnv_status2=fb_mobile_complete_registration`;(0,f.lC)(e)}if("firstrecharge"==e){const e=`https://appcookie.ru/click.php?cnv_id=${a}&event2=1&cnv_status=dep&cnv_status2=fb_mobile_purchase`;(0,f.lC)(e)}}if(window.EVENT_CODE_MAP&&["291"].includes(r)&&i.push({name:"EVENT_CODE_MAP"}),s.xN.dispatch({type:"REPORT_MANAGER",eventName:e,payload:t}),window.postMessage({eventType:"onAppEvent",eventName:e,params:t}),"register"==e||"firstrecharge"==e||"recharge"==e){const a=(0,w.h)()?.userInfos?.username||"",o={...t,platform:i,siteCode:r,username:a};Promise.resolve().then(n.bind(n,5825)).then((({trace:t})=>{t(e,o,!0)}))}}catch(c){}}const E=()=>{const{siteInfos:e}=(0,w.h)();let t;(0,y.Q)().android()?t=0:(0,y.Q)().ios()&&(t=1);const n=Array.isArray(e?.vestBagJumpConfig)?e?.vestBagJumpConfig:[e?.vestBagJumpConfig];let i=n?.length&&n.filter((e=>e?.appType===t)).find((e=>(window.WgPackage?.name||p.tt.WgPackage)===e?.packageName))?.appJumpValue||"";return v.cY.speedPackageConfig&&!i&&(i="jsBridge.openWindow"),i};function O(e,t){const i="string"==typeof e,r=E(),a=(window.PlatNative||window.Android||window.uni)&&"window.open"!==r,o=!!["FB_","FBAN","FBAV"].find((e=>navigator.userAgent.includes(e))),c=!!["Instagram"].find((e=>navigator.userAgent.includes(e))),l=navigator.userAgent.toLowerCase().includes("iphone"),u=t?.openMode||"window.open.location",d=t?.forceOpenDirect??(v.tT||o||c),h=d||"window.open.location"!==u;Promise.resolve().then(n.bind(n,5825)).then((({trace:t})=>{t("recharge-open",{type:r,mode:u,notUseWindow:a,durl:p.yU,to:e},!0)})),t=Object.assign({keepOpener:!1,preUrl:"",createDelay:0,openDelay:h||i?0:l?100:300,notPreCreate:h,openMode:u,windowFeatures:""},t);let g=null;let f="",y=null;const b=()=>{if(h)return;const e=!!f;g=window.open(f||t?.preUrl,"_blank",t?.windowFeatures),t?.created?.(g),e&&(t?.opened?.(g),t?.keepOpener||g&&(g.opener=null))},w=t?.createDelay;w&&w>0?y=window.setTimeout((()=>{b()}),w):w||b();const C=e=>{const n=()=>{if(d)R(e);else{const n=`${location.origin}/pages/open/index.html?to=${encodeURIComponent(e)}`;if("window.open.location"===u)g?(t?.keepOpener||(g.opener=null),g.location=n,t?.opened?.(g)):f=e;else if("A"===u){const e=document.createElement("a");e.setAttribute("target","_brank"),e.setAttribute("href",n),e.click(),setTimeout((()=>{e&&document.body.removeChild(e)}),1e3)}else"iframe-route"===u&&s.sG.App.$router.push({name:m.x4.IFRAME_ROUTE,query:{to:encodeURIComponent(n)}})}};t?.openDelay&&t.openDelay>0?setTimeout(n,t.openDelay):n()};if(e instanceof Function)return e().then((e=>{C(e)})).catch((e=>(g&&g?.close?.(),y&&clearTimeout(y),Promise.reject(e))));C(e)}function R(e="",t=!1){const i=E();t&&Promise.resolve().then(n.bind(n,5825)).then((({trace:t})=>{t("recharge-wopen",{durl:p.yU,to:e,type:i,env:{jsb:!!window.jsBridge,pn:!!window.PlatNative,uni:!!window.uni,ap:!!window.Android}},!0)}));try{if(window.jsBridge&&"jsBridge.openWindow"===i)return void window.jsBridge?.postMessage("openWindow",JSON.stringify({url:e}));if(window.PlatNative&&"PlatNative.openWindow"===i)return void window.PlatNative?.event("openWindow",JSON.stringify({url:e}));if(window.Android&&"Android.openPG"===i)return void window.Android?.eventTracker("openPG",JSON.stringify({url:e}));if(window.uni&&"uni.openPG"===i)return void window.uni.postMessage({data:{eventName:"openPG",eventValues:{url:e}}});if("window.open"===i)return void window.open(e)}catch(r){}window.jsBridge&&window.jsBridge?.postMessage("openWindow",JSON.stringify({url:e})),window.PlatNative?window.PlatNative?.event("openWindow",JSON.stringify({url:e})):window.Android?window.Android?.eventTracker("openPG",JSON.stringify({url:e})):window.uni?window.uni.postMessage({data:{eventName:"openPG",eventValues:{url:e}}}):window.open(e)}let A=null;const D=e=>{const t=1e3*e.start_time-Date.now();t>0&&(s.sG.Polling.destroy(u.S.MAINTAININFO),A&&window.clearTimeout(A),A=window.setTimeout((()=>{s.sG.Polling.create({key:u.S.MAINTAININFO,leading:!0,interval:3e5,callback:()=>{s.xN.dispatch({type:"SITE_MAINTAIN"})}})}),t))},x=e=>{const{siteInfos:t}=(0,w.h)(),{start_time:n,end_time:i,site_time_zone:r}=e,a=r||t?.timeZone||I.Z.localUtcOffset;try{const e=I.Z.moment.duration(i&&n?i-n:0,"seconds").asHours(),t=Date.now(),r=e=>{const t=2*e;return Math.ceil(t)/2};return{health:t>=1e3*n&&t<=1e3*i,now:L.format(void 0,void 0,{utcOffset:a}),start:L.format(n,void 0,{utcOffset:a}),end:L.format(i,void 0,{utcOffset:a}),duration:Math.max(.5,r(e))}}catch(o){return{now:L.format(void 0,void 0,{utcOffset:a}),health:!1}}},Z=async(e=c.Pf.Normal,t)=>{const n=(0,f.cF)().uuid,i=(0,f.cF)("expirationTime").value,r=S()().endOf("day").valueOf(),a=i&&r>i||!i;if(a||e!==c.Pf.Normal){a&&(0,f.po)({value:r},"expirationTime");const i=window.location.port?":"+window.location.port:"";await(0,g.apiPointerDomain)({fingerId:n,kind:e,packKind:t,domain:window.location.hostname+i})}},N=e=>{const t=e.res,n=e.isSiteFreeze??t?.data?.code===d.VH.SERVICE_CODE.SITE_FREEZE_ERROR,i=e.isSiteFreezeAndMaintain??t?.data?.code===d.VH.SERVICE_CODE.SITE_FREEZE_AND_MAINTAIN_ERROR,r=t?.config||{};return{...e,isSiteFreeze:n,isSiteFreezeAndMaintain:i,requestInfo:{url:r?.url,xRequestId:r?.headers?.["x-request-id"],code:t?.data?.code}}},M=e=>e.split(";").reduce(((e,t)=>{const[n,i]=t.split(":");return n&&i&&(e[n.trim()]=i.trim()),e}),{}),B=e=>{try{const t=JSON.parse(e);return Array.isArray(t)}catch(t){return!1}},G=(e,t)=>{const n=(new DOMParser).parseFromString(e,"text/html");n.querySelectorAll("a").forEach((e=>{const n=e.getAttribute("href")??"";if(n&&/^(http|https):\/\/[a-zA-Z0-9-.]+\.[a-zA-Z]{2,}(\/\S*)?$/.test(n)){const i=new URL(n);Object.entries(t).forEach((([e,t])=>{i.searchParams.has(e)||i.searchParams.append(e,t)})),e.setAttribute("href",i.toString().replace(/&amp;/g,"&"))}}));return Array.from(n.body.childNodes).map((e=>e instanceof HTMLElement?e.outerHTML:e.textContent)).join("")}},28484:function(e,t,n){n.d(t,{n:function(){return r}});var i=n(662);const r=(e,t=new i.gv)=>({withIndexDB:t instanceof i.gv?t.withIndexDB:null,overwriteConfig:e,setItem:t.setItem.bind(t),getItem:t.getItem.bind(t),removeItem:t.removeItem.bind(t)})},93250:function(e,t,n){n.d(t,{$A:function(){return l},C7:function(){return c},HS:function(){return s},or:function(){return u}});var i=n(75990),r=n(91475);const a={ossCommonDomain:{},ossDomain:{},assetsPathOrigin:{}},o=function(e,t){return async n=>{const i=await e(n);try{const e=(0,r.h)()[t]||[],i=e.findIndex((e=>e===n));let o=i;for(;o>=0;){const n=e[o];a[t][n]=a[t][n]||{continuouErrorCount:0},o===i?a[t][n].continuouErrorCount=0:a[t][n].continuouErrorCount++,o--}}catch(o){}return i}},s=function(e){const t=(0,r.h)(),n=t[e]||[];return n.filter(((i,r)=>!t.useLocalSkinAssets||(()=>{if(r===n.length-1)return!0;{const t=a[e][i];return!t||t.continuouErrorCount<10}})()))},c=function(e){return(0,i.IY)(s("ossCommonDomain"),o(e,"ossCommonDomain"))},l=function(e){return(0,i.IY)(s("ossDomain"),o(e,"ossDomain"))},u=function(e){return(0,i.IY)(s("assetsPathOrigin"),o(e,"assetsPathOrigin"))}},52851:function(e,t,n){function i(e,t,n="svgSprite:all",i=(()=>"sprite.svg")){const r=window[n]?.[e]||{};let a=r.url||`/${i()}#${e}`;return a=`${{"svgSprite:all":"/lobby_asset/{layout}-{bg}-{skin}","svgSprite:festival":"/lobby_asset/festival/{holiday}/{layout}-{bg}"}[n]}${a}`,{viewBox:r?.viewBox||"0 0 20 20",url:a,id:`#${e}--${n}`,...t}}n.d(t,{T:function(){return i}})},84238:function(e,t,n){n.d(t,{I:function(){return s}});var i=n(5515),r=n(91475),a=n(5717),o=n(12832);const s=(e,t)=>{const{isTheme39:n,isTheme49:s,isTheme48:c}=o.Z.currentTheme();if((0,a.c)().isSeperateTabSkin)return!1;const{isWeb:l,hasLogined:u,homeLayoutInfos:d}=(0,r.h)();if(l||s||c)return;const{updateTabItem:h}=(0,a.c)();if(n)return void h(t);h(e&&(u?d?.loginAfterBottomLayouts:d?.loginBeforeBottomLayouts)?.find((t=>t.name===e))&&t?t:i.R.EVENT)}},26248:function(e,t,n){n.d(t,{h:function(){return c}});var i=n(46851),r=n(62933),a=n(5954),o=n(78910),s=n(21615);const c=()=>{let e=i.Uh.getDeviceOsType(),t=i.Uh.getDeviceModel();const n=s.cY.speedPackageConfig?.osType;return(s.cY.package.isVest||s.cY.package.isLite||(0,o.VK)()&&(0,a.Q)().android())&&(e=(0,a.Q)().ios()?r.wh.IOS_APP:r.wh.ANDROID_APP,t=n===+r.wh.IOS_APP?"iOS":"Android"),{deviceModel:t,deviceType:e}}},13396:function(e,t,n){n.d(t,{CD:function(){return m},Rw:function(){return f},XR:function(){return g},pm:function(){return p}});var i=n(71743),r=n(93250),a=n(75310),o=n(20507),s=n(61082);const c="maximized",l="minimized",u={x:0,y:0,ox:0,oy:0,value:!1};let d=!0;const h=e=>{if(!e)return;const t=window.innerWidth,n=window.innerHeight,i=e.clientWidth,r=e.clientHeight;d?u.x+i>t?e.style.left=t-i+"px":e.style.left=u.x<0?"0px":u.x+"px":u.x+i>t?e.style.right=t-i+"px":e.style.right=u.x<0?"0px":u.x+"px",u.y+r>n?e.style.bottom=n-r+"px":e.style.bottom=u.y<0?"0px":u.y+"px"};function m(e){if(!e)return;if((0,s.Z)().any)return e.addEventListener("touchstart",(t=>{t.stopPropagation();const n=e.getBoundingClientRect();u.ox=t.touches[0].pageX-n.left,u.oy=t.touches[0].pageY-n.top})),e.addEventListener("touchmove",(t=>{t.preventDefault(),t.stopPropagation();const n=window.innerWidth,i=window.innerHeight,r=e.getBoundingClientRect();u.x=d?t.touches[0].pageX-u.ox:n-t.touches[0].pageX-u.ox-r.width/2,u.y=i-t.touches[0].pageY-u.oy-r.height/2-15,h(e)})),void e.addEventListener("touchend",(e=>{e.preventDefault(),e.stopPropagation();const{setThirdServiceButtonCoordinate:t}=(0,o.HP)();t({x:u.x,y:u.y})}));const t={capture:!0},n=()=>{u.value=!1;const e=document.querySelector('[id="chat-widget-minimized"]');e&&(e.style.pointerEvents="auto");const{setThirdServiceButtonCoordinate:t}=(0,o.HP)();t({x:u.x,y:u.y}),document.removeEventListener("pointermove",i),document.removeEventListener("pointerup",n)},i=t=>{if(!u.value)return;const n=document.querySelector('[id="chat-widget-minimized"]');n&&(n.style.pointerEvents="none");const i=e.getBoundingClientRect(),r=window.innerWidth,a=window.innerHeight;u.x=d?t.clientX-u.ox:r-t.clientX-u.ox-i.width/2,u.y=a-t.clientY-u.oy-i.height/2-15,h(e),t.preventDefault(),t.stopPropagation()};e.addEventListener("pointerdown",(r=>{if(u.value)return;const a=e.getBoundingClientRect();u.ox=r.clientX-a.left,u.oy=r.clientY-a.top,u.value=!0,r.preventDefault(),r.stopPropagation(),document.addEventListener("pointermove",i,t),document.addEventListener("pointerup",n,t)}),t)}const g=e=>{const t=window.LiveChatWidget;if(!t)return;t.on("visibility_changed",(t=>{const n=t.visibility;[l,c].includes(n)&&(e.style.left="auto",e.style.right="auto")}))},p=()=>{const e=window.LiveChatWidget;if(!e)return;const t=()=>{e.call("hide_greeting"),e.off("greeting_displayed",t)};e.on("greeting_displayed",t)};async function f(e){b(e),y();const t=await(0,r.or)((async e=>{const t=(0,i.Cj)("/lobby_asset/common/web/support/icon_kf_drag.png",e);return(0,a.po)(t)})).catch((()=>document.createElement("img")));if(t instanceof HTMLImageElement){t.style.cssText="position: absolute; width:30px;height:30px;right:49px;bottom:54px;cursor: move;",e.appendChild(t),m(e);new MutationObserver((()=>{e.clientWidth>200?t.style.display="none":(t.style.display="block",h(e))})).observe(e,{attributes:!0})}}const y=()=>{const{thirdServiceButtonCoordinate:{x:e,y:t}}=(0,o.HP)();e===o.gV&&t===o.Jc||(u.y=t,u.x=e)},b=e=>{const t=e.style;try{const{left:e,right:n,bottom:i}=t;i&&parseInt(i)&&(u.y=parseInt(i)),e&&parseInt(e)&&(u.x=parseInt(e)),n&&parseInt(n)&&(u.x=parseInt(n),d=!1)}catch(n){}}},61082:function(e,t,n){n.d(t,{Z:function(){return v}});const i=/iPhone/i,r=/iPod/i,a=/iPad/i,o=/\biOS-universal(?:.+)Mac\b/i,s=/\bAndroid(?:.+)Mobile\b/i,c=/Android/i,l=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,u=/Silk/i,d=/Windows Phone/i,h=/\bWindows(?:.+)ARM\b/i,m=/BlackBerry/i,g=/BB10/i,p=/Opera Mini/i,f=/\b(CriOS|Chrome)(?:.+)Mobile/i,y=/Mobile(?:.+)Firefox\b/i,b=e=>void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&void 0===window.MSStream;function v(e){let t={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};let n=t.userAgent,v=n.split("[FBAN");void 0!==v[1]&&(n=v[0]),v=n.split("Twitter"),void 0!==v[1]&&(n=v[0]);const w=function(e){return t=>t.test(e)}(n),C={apple:{phone:w(i)&&!w(d),ipod:w(r),tablet:!w(i)&&(w(a)||b(t))&&!w(d),universal:w(o),device:(w(i)||w(r)||w(a)||w(o)||b(t))&&!w(d)},amazon:{phone:w(l),tablet:!w(l)&&w(u),device:w(l)||w(u)},android:{phone:!w(d)&&w(l)||!w(d)&&w(s),tablet:!w(d)&&!w(l)&&!w(s)&&(w(u)||w(c)),device:!w(d)&&(w(l)||w(u)||w(s)||w(c))||w(/\bokhttp\b/i)},windows:{phone:w(d),tablet:w(h),device:w(d)||w(h)},other:{blackberry:w(m),blackberry10:w(g),opera:w(p),firefox:w(y),chrome:w(f),device:w(m)||w(g)||w(p)||w(y)||w(f)},any:!1,phone:!1,tablet:!1};return C.any=C.apple.device||C.android.device||C.windows.device||C.other.device,C.phone=C.apple.phone||C.android.phone||C.windows.phone,C.tablet=C.apple.tablet||C.android.tablet||C.windows.tablet,C}},88781:function(e,t,n){n.d(t,{Dg:function(){return m},Xv:function(){return h},_v:function(){return d},fP:function(){return l},nI:function(){return u}});var i=n(62933),r=n(5954),a=n(38521),o=n(91475),s=n(53579),c=n(72902);const l=()=>{const e=(0,r.Q)();return e.ios()&&(e.mobile()||e.tablet())?i.wh.IOS_H5:e.androidPhone()||e.android()&&e.tablet()?i.wh.ANDROID_H5:i.wh.PC_Windows},u=()=>(0,r.Q)().desktop(),d=async(e=1e3)=>new Promise((t=>{setTimeout(t,e)})),h=()=>{const{openOptions:e}=(0,a.J)();e.from&&(c.Z.pause(),s.Z.close(e.from.modalName),c.Z.onModalClose(e.from.queueName))},m=()=>{const{openOptions:e}=(0,a.J)(),{hasLogined:t}=(0,o.h)();e.from&&!t&&c.Z.resume(),c.Z.onModalClose("loginRegister")}},34879:function(e,t,n){n.d(t,{M:function(){return i}});n(3462),n(37380),n(1118),n(23767),n(8585),n(68696);function i(e=999999,t=!0){let i;try{const e=new Uint32Array(1);window.crypto.getRandomValues(e),i=e[0]/4294967296}catch(r){i=n(44431).random()}return t?i*e:Math.floor(i*e)}},40215:function(e,t,n){n.d(t,{p:function(){return o}});var i=n(38821);class r extends i.Ie.wA{run(e,t,n){const i=this.$createElement;let r=[i("span",[e])];if(new RegExp(t).test(e)){const a=new RegExp(`(${t})`,"g");r=e.split(a).filter(Boolean).reduce(((e,r)=>(t===r?e.push(n):e.push(i("span",[r])),e)),[])}return r}}const a=new r,o=a.run.bind(a)},4441:function(e,t,n){n.d(t,{M:function(){return r}});var i=n(44586);function r(){return(0,i.Z)()}},61413:function(e,t,n){n.d(t,{L:function(){return r}});var i=n(46851);const r=e=>{if(!e)return!1;const t=new Map([[i.CM.UserRestrictReceiveEventApiKeys.includes(e),i.CM.UserRestrictCacheKey.ReceiveEvent]]).get(!0);return!!t&&`${t}-${document.documentElement.lang}`}},29310:function(e,t,n){n.d(t,{Z:function(){return u}});var i=n(55433),r=n(34879);class a{constructor(e,t){this.target=t,this.type=e}}class o extends a{constructor(e,t){super("error",t),this.message=e.message,this.error=e}}class s extends a{constructor(e=1e3,t="",n){super("close",n),(0,i.Z)(this,"wasClean",!0),this.code=e,this.reason=t}}const c=()=>{if("undefined"!=typeof WebSocket)return WebSocket},l={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+(0,r.M)(4e3),minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1};class u{constructor(e,t,n={}){(0,i.Z)(this,"_listeners",{error:[],message:[],open:[],close:[]}),(0,i.Z)(this,"_retryCount",-1),(0,i.Z)(this,"_shouldReconnect",!0),(0,i.Z)(this,"_connectLock",!1),(0,i.Z)(this,"_binaryType","blob"),(0,i.Z)(this,"_closeCalled",!1),(0,i.Z)(this,"_messageQueue",[]),(0,i.Z)(this,"onclose",null),(0,i.Z)(this,"onerror",null),(0,i.Z)(this,"onmessage",null),(0,i.Z)(this,"onopen",null),(0,i.Z)(this,"_handleOpen",(e=>{this._debug("open event");const{minUptime:t=l.minUptime}=this._options;clearTimeout(this._connectTimeout),this._uptimeTimeout=setTimeout((()=>this._acceptOpen()),t),this._ws.binaryType=this._binaryType,this._messageQueue.forEach((e=>this._ws?.send(e))),this._messageQueue=[],this.onopen&&this.onopen(e),this._listeners.open.forEach((t=>this._callEventListener(e,t)))})),(0,i.Z)(this,"_handleMessage",(e=>{this._debug("message event"),this.onmessage&&this.onmessage(e),this._listeners.message.forEach((t=>this._callEventListener(e,t)))})),(0,i.Z)(this,"_handleError",(e=>{this._debug("error event",e.message),this._disconnect(void 0,"TIMEOUT"===e.message?"timeout":void 0),this.onerror&&this.onerror(e),this._debug("exec error listeners"),this._listeners.error.forEach((t=>this._callEventListener(e,t))),this._connect()})),(0,i.Z)(this,"_handleClose",(e=>{this._debug("close event"),this._clearTimeouts(),this._shouldReconnect&&this._connect(),this.onclose&&this.onclose(e),this._listeners.close.forEach((t=>this._callEventListener(e,t)))})),this._url=e,this._protocols=t,this._options=n,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}static get CONNECTING(){return 0}static get OPEN(){return 1}static get CLOSING(){return 2}static get CLOSED(){return 3}get CONNECTING(){return u.CONNECTING}get OPEN(){return u.OPEN}get CLOSING(){return u.CLOSING}get CLOSED(){return u.CLOSED}get binaryType(){return this._ws?this._ws.binaryType:this._binaryType}set binaryType(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)}get retryCount(){return Math.max(this._retryCount,0)}get bufferedAmount(){return this._messageQueue.reduce(((e,t)=>("string"==typeof t?e+=t.length:t instanceof Blob?e+=t.size:e+=t.byteLength,e)),0)+(this._ws?this._ws.bufferedAmount:0)}get extensions(){return this._ws?this._ws.extensions:""}get protocol(){return this._ws?this._ws.protocol:""}get readyState(){return this._ws?this._ws.readyState:this._options.startClosed?u.CLOSED:u.CONNECTING}get url(){return this._ws?this._ws.url:""}close(e=1e3,t){this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),this._ws?this._ws.readyState!==this.CLOSED?this._ws.close(e,t):this._debug("close: already closed"):this._debug("close enqueued: no ws instance")}reconnect(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,this._ws&&this._ws.readyState!==this.CLOSED?(this._disconnect(e,t),this._connect()):this._connect()}send(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{const{maxEnqueuedMessages:t=l.maxEnqueuedMessages}=this._options;this._messageQueue.length<t&&(this._debug("enqueue",e),this._messageQueue.push(e))}}addEventListener(e,t){this._listeners[e]&&this._listeners[e].push(t)}dispatchEvent(e){const t=this._listeners[e.type];if(t)for(const n of t)this._callEventListener(e,n);return!0}removeEventListener(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter((e=>e!==t)))}_debug(...e){this._options.debug}_getNextDelay(){const{reconnectionDelayGrowFactor:e=l.reconnectionDelayGrowFactor,minReconnectionDelay:t=l.minReconnectionDelay,maxReconnectionDelay:n=l.maxReconnectionDelay}=this._options;let i=0;return this._retryCount>0&&(i=t*Math.pow(e,this._retryCount-1),i>n&&(i=n)),this._debug("next delay",i),i}_wait(){return new Promise((e=>{setTimeout(e,this._getNextDelay())}))}_getNextUrl(e){if("string"==typeof e)return Promise.resolve(e);if("function"==typeof e){const t=e(this);if("string"==typeof t)return Promise.resolve(t);if(t.then)return t}throw Error("Invalid URL")}_connect(){if(this._connectLock||!this._shouldReconnect)return;this._connectLock=!0;const{maxRetries:e=l.maxRetries,connectionTimeout:t=l.connectionTimeout,WebSocket:n=c()}=this._options;if(this._retryCount>=e)this._debug("max retries reached",this._retryCount,">=",e);else{if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),void 0===(i=n)||!i||2!==i.CLOSING)throw Error("No valid WebSocket class provided");var i;this._wait().then((()=>this._getNextUrl(this._url))).then((e=>{this._closeCalled||(this._debug("connect",{url:e,protocols:this._protocols}),this._ws=this._protocols?new n(e,this._protocols):new n(e),this._ws.binaryType=this._binaryType,this._connectLock=!1,this._addListeners(),this._connectTimeout=setTimeout((()=>this._handleTimeout()),t))}))}}_handleTimeout(){this._debug("timeout event"),this._handleError(new o(Error("TIMEOUT"),this))}_disconnect(e=1e3,t){if(this._clearTimeouts(),this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new s(e,t,this))}catch(n){}}}_acceptOpen(){this._debug("accept open"),this._retryCount=0}_callEventListener(e,t){"handleEvent"in t?t.handleEvent(e):t(e)}_removeListeners(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))}_addListeners(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))}_clearTimeouts(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)}}},21615:function(e,t,n){n.d(t,{R6:function(){return s},WZ:function(){return u},cY:function(){return l},tT:function(){return c}});var i=n(55433),r=(n(82801),n(32225)),a=n(1507),o=n(91475);function s(e){let t=[];try{const n=window.LOBBY_SITE_CONFIG?.INJECT_DATA?.apiGetSiteInfo?.data?.data?.vestBagJumpConfig;t=(n&&Array.isArray(n)?n:[n]).map((e=>e.packageName)).filter((t=>t?.includes(e)))}catch(n){}return t}const c=!!(window.WgPackage||window.jsBridge||window.PlatNative||window.Android||window.uni)||"true"===a.tt.isWgPackage||!!a.tt.WgPackage,l={get wgPackage(){try{window.jsBridge.getWGConfigInfo?window.WgPackage=JSON.parse(window.jsBridge.getWGConfigInfo()).WgPackage:a.tt.WgPackage&&(window.WgPackage=JSON.parse(decodeURIComponent(window.atob(String(a.tt.WgPackage)))))}catch(e){}return window.WgPackage?window.WgPackage:void 0},get isWgPackage(){if(!window.WgPackage&&a.tt.WgPackage)try{window.WgPackage=JSON.parse(decodeURIComponent(window.atob(String(a.tt.WgPackage))))}catch(e){}return!!(window.WgPackage||window.jsBridge||window.PlatNative||window.Android||window.uni)||"true"===a.tt.isWgPackage||!!a.tt.WgPackage},get isWebClip(){return"1"===a.tt["fixed.iswebclip"]},get speedPackageConfig(){try{window.jsBridge.getWGConfigInfo?window.SpeedPackaeInit=JSON.parse(window.jsBridge.getWGConfigInfo()).SpeedPackaeInit:a.tt.SpeedPackaeInit&&(window.SpeedPackaeInit=JSON.parse(decodeURIComponent(window.atob(String(a.tt.SpeedPackaeInit)))))}catch(e){}return window.SpeedPackaeInit?.isSpeedPackae?window.SpeedPackaeInit:void 0},get package(){return{isApp:this.isWgPackage,isVest:this.isWgPackage&&!this.speedPackageConfig,isLite:this.isWgPackage&&this.speedPackageConfig?.isSpeedPackae,isWebClip:this.isWebClip}}};const u=new class{constructor(){(0,i.Z)(this,"isOpen",location.search.includes("openWinBridgeTunnel")),this.init()}get phoneNumber(){return(0,o.h)().loginRegisterPhoneNumber}get username(){return(0,o.h)().userInfos?.platfromid}init(){this.isOpen&&(window.getPhoneNumber=()=>JSON.stringify({username:this.username,phone:this.phoneNumber}))}dispatch(e,t){if(window.winBridge&&"function"==typeof window.winBridge[e])try{window.winBridge[e](JSON.stringify(t))}catch(n){}}setPhoneNumber(e){setTimeout((()=>{this.isOpen&&this.phoneNumber&&this.dispatch("setPhoneNumber",{username:this.username,phone:this.phoneNumber,type:e===r.xV.Register?1:2})}))}}},8193:function(e,t,n){n.d(t,{v:function(){return s}});var i=n(82492),r=n.n(i),a=n(68924),o=n.n(a);function s(e,t={}){const n=r()({},(0,a.getDefaultWhiteList)(),{});return t=r()({whiteList:n,onIgnoreTagAttr(e,t,n){if(["data-"===t.substr(0,5),["style","class","id"].includes(t)].includes(!0))return t+'="'+(0,a.escapeAttrValue)(n)+'"'},onIgnoreTag(e,t){if([["iframe"].includes(e)][0]&&t.includes("data:text/html;"))return t}},t),o()(e,t)}},2815:function(e,t,n){n.d(t,{Z:function(){return m}});var i,r=n(55433),a=n(38821),o=n(29339),s=n(32205),c=n(1938),l=n(58217),u=n(37135),d=n(75812),h=n(53303);let m=(0,a.wA)({name:"BaseBettingRecord"})(i=class extends a.XY{constructor(...e){super(...e),(0,r.Z)(this,"reportStor",(0,u.n)())}renderTime(e,t){const n=this.$createElement,{t:i}=(0,l.QT)();return e===s.f.UNSETTLEMENT?n("span",[i("lobby.center.report.bettingRecord.unsettled")]):n("span",[d.ZP.formatSiteOffsetTime(t)])}renderValidBet(e){return(0,this.$createElement)("span",{class:h.Z.darken},[(0,c.OH)(e,{symbol:"",precision:2})])}renderNetProfit(e,t){const n=this.$createElement,i=e>=0,r=(0,c.OH)(t,{symbol:"",precision:2});return n("span",i?{class:h.Z.red}:{class:h.Z.green},[r])}renderMobileCell(e){const t=this.$createElement,{t:n}=(0,l.QT)();return t("li",{class:[h.Z.betterRecordMobileCell,h.Z.light]},[t("p",{class:h.Z.combine},[t("span",{class:h.Z.game},[e.platformName," ",e.gameCategoryName,"/",t("span",{class:h.Z.darken},[e.gameName])]),t("span",{class:h.Z.validBet},[t("span",{class:h.Z.autoEllipsis},[t("span",[n("lobby.center.report.table.betting")]),t("span",{class:h.Z.darken},[" ",this.renderValidBet(e.validBet)])]),t("span",{class:h.Z.autoEllipsis},[t("span",[n("lobby.center.report.table.win")]),t("span",[" ",this.renderNetProfit(e.netProfit,e.netProfit)])])])]),t("p",{class:h.Z.flexCenter},[t("span",{class:h.Z.createTime},[this.renderTime(e.settleStatus,e.settleTime)]),t("span",{class:h.Z.orderContext},[t("span",{class:h.Z.orderIdBox},[t("span",[n("lobby.center.report.table.no")])," ",t("span",{class:h.Z.ellipsisLeft},[e.recordId," "])]),t(o.RK,{class:h.Z.copyFont,attrs:{text:e.recordId}})])])])}})||i},32205:function(e,t,n){let i,r;n.d(t,{f:function(){return i},r:function(){return r}}),function(e){e[e.ALL=0]="ALL",e[e.UNSETTLEMENT=1]="UNSETTLEMENT",e[e.SETTLED=2]="SETTLED",e[e.REVOKE=3]="REVOKE"}(i||(i={})),function(e){e.ACCOUNT_DETAILS="3",e.BETTING_RECORD="2",e.PERSONAL_STATEMENT="1"}(r||(r={}))},37135:function(e,t,n){n.d(t,{n:function(){return r}});var i=n(75812);const r=(0,n(67476).Q_)("report",{state:()=>({accountState:{},bettingState:{},personalState:{},statistics:{},accountTotalData:{},personalTotalData:{}}),persist:{enabled:!0,strategies:[{key:"web.lobby.report",storage:(0,i.nX)(),paths:["accountState","bettingState","personalState"]}]},getters:{cacheAccountState(){return this.accountState},cacheBettingState(){return this.bettingState},cachePersonalState(){return this.personalState},cacheStatisticsState(){return this.statistics},getAccountTotalData(){return this.accountTotalData},getPersonalTotalData(){return this.personalTotalData}},actions:{setCacheAccountState(e){this.accountState=e},setCacheBettingState(e){this.bettingState=e},setCachePersonalState(e){this.personalState=e},setStatisticsState(e){this.statistics=e},setAccountTotalData(e){return this.accountTotalData=e},setPersonalTotalData(e){return this.personalTotalData=e},clearStates(){this.accountState={response:{data:[],total:0},language:""},this.bettingState={response:{data:[],total:0}},this.personalState={response:{data:[],total:0}},this.statistics={}},hooksActions(e){if("LOGOUT_BEFORE"===e)this.clearStates()}}})},99934:function(e,t,n){let i,r,a,o;n.d(t,{cz:function(){return o},pK:function(){return r},r:function(){return i}}),function(e){e[e.PHONE=0]="PHONE",e[e.CPF=1]="CPF",e[e.EMAIL=2]="EMAIL",e[e.GA=3]="GA",e[e.LOGIN_PWD=4]="LOGIN_PWD",e[e.WITHDRAWPASS=5]="WITHDRAWPASS",e[e.QUESTION=6]="QUESTION",e[e.THIRD_WAY=7]="THIRD_WAY",e[e.USER=8]="USER",e[e.WITHDRAWACCOUNT=9]="WITHDRAWACCOUNT"}(i||(i={})),function(e){e[e.FIRST_STEP=0]="FIRST_STEP",e[e.SECOND_STEP=1]="SECOND_STEP",e[e.THIRD_STEP=2]="THIRD_STEP"}(r||(r={})),function(e){e[e.NoAdd=0]="NoAdd",e[e.addButNoVerify=1]="addButNoVerify",e[e.AddAndVerify=2]="AddAndVerify"}(a||(a={})),function(e){e[e.NotVerify=0]="NotVerify",e[e.Verified=1]="Verified"}(o||(o={}))},5790:function(e,t,n){n.d(t,{R:function(){return h},q:function(){return d}});var i=n(18446),r=n.n(i),a=n(62933),o=n(99934),s=n(67476),c=n(58217),l=n(91475),u=n(84220);const d="can-click-when-force-bind",h=(0,s.Q_)("views/center/security",{state:()=>({isLoginedByPassword:!1,isLoginedByRegister:!1,isBinding:!1,loginPass:"",hasForceBindBySecondVerifyDone:!1,forceBindDone:{phone:!1,email:!1,ga:!1,withdrawPass:!1,question:!1,withdrawAccount:!1},forceBindCallback:{phone:null,email:null,ga:null,withdrawPass:null,question:null,withdrawAccount:null},hasSubmitNextVerify:!1,activeBindItem:null,systemBindConfig:{},systemAllBindList:[],systemMastBindList:[],systemUnMastBindList:[]}),actions:{setBindDone(e,t){this.forceBindDone[e]=t},setBindCallback(e,t){this.forceBindCallback[e]=n=>{t(""),this.setBindDone(e,!0),n?.hasBindBySecondVerify&&this.setHasForceBindBySecondVerifyDone()}},setHasForceBindBySecondVerifyDone(){this.hasForceBindBySecondVerifyDone=!0},setBindingStatus(e){this.isBinding=e},resetBindStatus(){this.forceBindDone.phone=!1,this.forceBindDone.email=!1,this.forceBindDone.ga=!1,this.forceBindDone.withdrawPass=!1,this.forceBindDone.question=!1,this.forceBindDone.withdrawAccount=!1},setSubmitNextVerify(e){this.hasSubmitNextVerify=e},initBindConfig(e){if(e=e??(0,l.h)().userInfos??void 0,!(0,l.h)().isRealLogined)return;const t=a.P0.OFF,n={must_bind_withdraw_pass:e?.mustBindWithdrawPass??t,must_bind_phone:e?.must_bind_phone??t,must_bind_email:e?.must_bind_email??t,must_bind_google_auth:e?.must_bind_google_auth??t,must_bind_question:e?.mustBindSecurityQuestion??t,must_bind_withdraw_account:e?.mustBindWithdrawAccount??t};if(this.isHidePhone&&Reflect.deleteProperty(n,"must_bind_phone"),this.isHideEmail&&Reflect.deleteProperty(n,"must_bind_email"),this.isHideGa&&Reflect.deleteProperty(n,"must_bind_google_auth"),r()(this.systemBindConfig,n))return;const i=[],o=[],s=[],{validateConfig:c}=(0,l.h)(),{bindKeyValues:u}=this.getBindKeyValueInfos();Object.entries(n).forEach((e=>{const t=e[0],n=e[1];c[u[t].key]||(n===a.P0.REQUIRED&&o.push(t),n===a.P0.NOT_ESSENTIAL&&s.push(t),n>=a.P0.NOT_ESSENTIAL&&i.push(t))})),this.systemBindConfig=n,this.systemAllBindList=i,this.systemMastBindList=o,this.systemUnMastBindList=s},omitActiveBindItem(e){const{activeKey:t}=this.getBindKeyValueInfos(e);if(!t)return;const n=e=>e.filter((e=>e!==t));this.systemAllBindList=n(this.systemAllBindList),this.systemMastBindList=n(this.systemMastBindList),this.systemUnMastBindList=n(this.systemUnMastBindList)},getBindKeyValueInfos(e){const{t:t}=(0,c.QT)(),n={[a.Z.WITHDRAWPASS]:{key:"hasWithdrawPwd",value:o.r.WITHDRAWPASS,label:t("lobby.center.security.withdrawalPwd.tab")},[a.Z.PHONE]:{key:"hasPhoneNumber",value:o.r.PHONE,label:t("lobby.modal.login.form.phone.label")},[a.Z.EMAIL]:{key:"hasEmail",value:o.r.EMAIL,label:t("lobby.center.security.email.tab")},[a.Z.GA]:{key:"hasGoogleAuth",value:o.r.GA,label:t("lobby.center.security.ga.tab")},[a.Z.SECRETSECURITY]:{key:"hasQuestion",value:o.r.QUESTION,label:t("lobby.common.components.auth.question.name")},[a.Z.WITHDRAWACCOUNT]:{key:"hasWithdrawAct",value:o.r.WITHDRAWACCOUNT,label:t("lobby.center.security.WithdrawAccount.title")}},i=e||this.activeBindItem?.value;let r;for(const[a,o]of Object.entries(n))if(o.value===i){r=a;break}return{bindKeyValues:n,activeKey:r,activeValue:i}}},getters:{isHidePhone:()=>["025","033","213","961"].includes(u.Z.siteCode??""),isHideEmail:()=>["025","033","213","961"].includes(u.Z.siteCode??""),isHideGa:()=>["025","033","213"].includes(u.Z.siteCode??""),isHideThirdway:()=>["025","033","213"].includes(u.Z.siteCode??""),isCanSkipPasswordValid(){return!!this.loginPass&&(this.isLoginedByPassword||this.isLoginedByRegister)&&(0,l.h)().isFromBindModal&&this.isBinding},isCanSkipSecondVerifyWhenBind(){return(0,l.h)().isFromBindModal&&this.hasForceBindBySecondVerifyDone&&this.isBinding}}})},28636:function(e,t,n){n.d(t,{GN:function(){return a},Qp:function(){return o},R$:function(){return i},dj:function(){return r},lB:function(){return l},o1:function(){return h},sN:function(){return d},sS:function(){return s},vm:function(){return c},w8:function(){return u}});const i={Open:1,Close:0},r={AllUser:0,RechargeUser:1},a={H5:0,SppedPackage:1,NormalPackage:2},o={Pwa2App:4,ChannelLink:0},s={System:0,Custom:1},c={System:0,Custom:1},l={All:0,FirstDeposit:1},u={Open:1,Close:0},d=[0,999995,999996,999997,999998,999999],h={Yes:1,Not:0}},451:function(e,t,n){n.d(t,{e:function(){return i}});const i=(0,n(67476).Q_)("channel",{state:()=>({channelInfoFromUrl:null,channelInfoFromRegister:null}),getters:{hiddenAppButton(){return this.channelInfo?.allDisplayType??1},channelInfo(){return this.channelInfoFromRegister?this.channelInfoFromRegister:this.channelInfoFromUrl?this.channelInfoFromUrl:null}},actions:{setChannelInfoFromUrl(e){this.channelInfoFromUrl=e},setChannelInfoFromRegister(e){this.channelInfoFromRegister=e}}})},22816:function(e,t,n){n.d(t,{Z:function(){return d}});var i,r,a=n(38821),o=n(36630),s=n(58217),c=n(48541),l=n(99980),u="Aldb_AEquwGt4Naeu054";!function(e){e[e.firstIndex=0]="firstIndex",e[e.secondIndex=1]="secondIndex",e[e.thirdIndex=2]="thirdIndex",e[e.fourIndex=3]="fourIndex"}(r||(r={}));let d=(0,a.wA)({name:"DiscountCodeIntroduction"})(i=class extends c.Z{render(){const e=arguments[0],t=this.eventData||{},{t:n}=(0,s.QT)();let i=[];return t?.isShowDetailTime===o.UI.Show&&(i=[this.renderIntroductionTime]),t.activeCondition&&i.push(this.renderActiveCondition),t.conditionText&&i.push(this.renderConditionText),t.content&&i.push(this.renderContent),e("div",{class:[l.Z.introduction]},[e("div",{class:[l.Z.introductionInner,u]},[i.filter((e=>!!e)).map(((e,t)=>i.length<=1?e(n("",this.getLang)):e(n(`lobby.event.${r[t]}`,this.getLang))))])])}})||i},57535:function(e,t,n){n.d(t,{Z:function(){return vt}});var i,r,a,o,s,c,l,u,d,h,m,g,p,f,y,b,v,w,C,I,T,S,P,L,k,_,E=n(82492),O=n.n(E),R=n(53158),A=n(55433),D=n(12040),x=n(36630),Z=n(38821),N=n(7174),M=n(29339),B=n(46851),G=n(72433),H=n(86943),$=n(5860),F=n(1938),q=n(39972),j=n(71743),z=n(75812),U=n(58217),V=n(91475),W=n(99934),K=n(46930),Y=n(50008),Q=n(53579),J=n(58164),X=n(22816),ee=n(30307),te=n(36568),ne=n.n(te),ie=n(27361),re=n.n(ie),ae=n(36968),oe=n.n(ae),se=n(62933),ce=n(70753),le=n(30727),ue="sEwOwpg8S8Rh1B5DlMaL",de="U8qbxjQ08yFU2gF6pJKp",he="KQNHxcziC09siVY3IRAG",me="dveNh6HthcvUv5tUMGZh",ge="in3sxFTY6sbUe3gU7yyg",pe="Su420qcBnWNUleqMYHVI",fe="PIbqlhcOOfS3PWfmaSYk",ye="zrHzqGCUK63BIwTOciU8",be="pz_yjnZmWF8GPyPDxsAl",ve="YBjGkpcTrqm6A5K1QAan",we="fMkwNR9usmJOtln1wK_b",Ce="cq9ToUcLNsEurR8F2r8m",Ie=n(41800);let Te=(i=(0,Z.wA)({name:"VeriryBindPhone"}),r=(0,Z.Rl)(),a=(0,Z.Rl)(),o=(0,Z.Rl)(),s=(0,Z.fI)({required:!1}),c=(0,Z.fI)(K.ZP.number.isRequired),l=(0,Z.fI)(K.ZP.number),u=(0,Z.fI)(K.ZP.number),d=(0,Z.fI)(K.ZP.string),h=(0,Z.fI)({required:!1,default:!1}),m=(0,Z.RL)("form.phone"),g=(0,Z.RL)("form.captcha"),p=(0,Z.y1)("complete"),f=(0,ce.WY)(),y=(0,ce.K4)(),i((v=class extends Z.XY{constructor(...e){super(...e),(0,R.Z)(this,"phoneNumberFormItemRef",w,this),(0,R.Z)(this,"formModel",C,this),(0,R.Z)(this,"smsVerificationRef",I,this),(0,A.Z)(this,"form",{username:"",userpass:"",phone:"",captcha:"",loginType:se.CM.Account}),(0,R.Z)(this,"item",T,this),(0,R.Z)(this,"activeId",S,this),(0,R.Z)(this,"codeType",P,this),(0,R.Z)(this,"bindPhone",L,this),(0,R.Z)(this,"areaCode",k,this),(0,R.Z)(this,"isHiddenCode",_,this),(0,A.Z)(this,"rules",{}),(0,A.Z)(this,"isPhoneNumberChecking",!1),(0,A.Z)(this,"isPhoneNumberPassed",null),(0,A.Z)(this,"phoneNumberValidError",null),(0,A.Z)(this,"desensitizedPhoneNumber","")}onInputValueChange(){this.onComplete()}onComplete(){return this.form}get phoneNumberFormat(){const{smsCountry:e}=(0,V.h)(),t=this.form;if(!t.phone)return"";const n=`${this.areaCode?this.areaCode:e?.phoneNumberSegment}-`;return`${this.desensitizedPhoneNumber?"":n}${t.phone}`}get isBindPhone(){return this.desensitizedPhoneNumber}get userInfos(){return(0,V.h)().userInfos}async mounted(){this.userInfos&&(this.desensitizedPhoneNumber=this.userInfos.mobile_phone),this.isBindPhone||(await le.Z.initSmsCountry(),le.Z.initSmsSegment(this.areaCode))}async onSubmit(){try{return await this.formModel.validate(),{verifyCode:this.smsVerificationRef.verificationCode,phone:this.form.phone}}catch(e){const t=B.CM.ServiceCode,n=e?.data,i=n?.code;return i!==t.LOGIN_ERROR&&i!==t.ACCOUNT_FREEZE||Q.Z.openLoginRegisterModal(),console.error(e),!1}}async validPhoneNumberInput(e){if(e.length<this.desensitizedPhoneNumber?.length)return this.isPhoneNumberPassed=null,Promise.reject(new Error);const t=(0,$.apiVerifyPhoneNumberAfterLogin)({phone:e},{customParams:{silentOnError:!0}});this.isPhoneNumberChecking=!0;const[n]=await(0,Ie.Z)(t);return this.phoneNumberValidError=n,this.isPhoneNumberChecking=!1,this.isPhoneNumberPassed=!n,n?Promise.reject(n):void 0}phoneDisable(){const e=+new Date,t=this.item?.startTime?parseInt(String(1e3*this.item.startTime)):0,n=this.item?.endTime?parseInt(String(1e3*this.item.endTime)):0;return t-e>0||n-e<0}render(){const e=arguments[0],{t:t}=(0,U.QT)(),{smsSegment:n}=(0,V.h)(),i=B.sG.FuncRender.createFormModelItem.call(this);return e("div",{class:ue},[e(N.T.Tsx,{attrs:{direction:"vertical",size:14},class:de},[e(N.au.Tsx,ne()([{ref:"formModel",attrs:{layout:"vertical",hideRequiredMark:!0},class:this.phoneDisable()?he:""},{props:{rules:this.rules,model:this.form}}]),[this.isBindPhone?[e("div",{class:ge,key:"infos"},[e("span",{class:pe},[t("lobby.common.components.auth.phone.current")]),e("span",{class:fe},[this.desensitizedPhoneNumber?.replace("-"," ")])]),i.custom({hiddenPrefix:!0,showLabel:!0,prop:"phone",model:this.form,formModelItemTsxData:{class:[ye],ref:"phoneNumberFormItemRef",props:{autoLink:!1,help:()=>e("div",{class:[be,this.isPhoneNumberPassed?Ce:""]},[!this.isPhoneNumberPassed&&e("icon-sprite",{class:ve,attrs:{sprite:(0,j.XY)("sprite_main_comm_icon_pay_4"),scale:.371}}),e("div",{class:we},[(()=>this.isPhoneNumberChecking?t("lobby.common.tips.validating"):null===this.isPhoneNumberPassed?t("lobby.common.components.auth.phone."+(this.isHiddenCode?"requiredOfActivity":"requiredNew"),{[this.isHiddenCode?"x":"length"]:z.ZP.phoneNumberParse(this.desensitizedPhoneNumber)?.placeholder.length}):!0===this.isPhoneNumberPassed?t("lobby.common.components.auth.phone.success"):!1===this.isPhoneNumberPassed?this.phoneNumberValidError?.data.code===B.CM.ServiceCode.PHONE_ERROR?t("lobby.common.components.auth.phone.error"):this.phoneNumberValidError?.data.msg:void 0)()])]),rules:[B.sG.Rules.create({trigger:["blur","change"],asyncValidator:async(e,t,n)=>{const[i]=await(0,Ie.Z)(this.validPhoneNumberInput(t));return i?n(""):n()}})]}},render:()=>e(M.Ql,{ref:"phoneAuthInputRef",on:{complete:()=>{this.phoneNumberFormItemRef?.onFieldBlur()},input:e=>{oe()(this.form,"phone",e),e&&this.phoneNumberFormItemRef?.onFieldChange()}},attrs:{disabled:this.phoneDisable()||!!this.isPhoneNumberPassed,value:re()(this.form,"phone"),phoneNumberTemplate:this.desensitizedPhoneNumber}})})]:[[n&&i.userPhoneSelect({hiddenPrefix:!1,hiddenIcon:!0,showLabel:!1,prop:"phone",model:this.form,inputTsxData:{attrs:{disabled:this.phoneDisable(),placeholder:t("lobby.center.security.phone.phonePlaceholder")}},selectTsxData:{props:{disabled:!!this.areaCode,showArrow:!this.areaCode}},onSelectChange:()=>{this.form.phone=""}})]],!this.isHiddenCode&&e(M.F0,{attrs:{hiddenPrefix:!0,showLabel:!1,prop:"captcha",getCodeFunPromise:async n=>{const{hasLogined:i}=(0,V.h)();if(!i)return Q.Z.openLoginRegisterModal(),Promise.reject();if(this.activeId&&await(0,q.l7)(this.item?.taskCondition))return Promise.reject();const[r]=await(0,Ie.Z)((0,H.X9)({areaCode:n?.split("-")[0],phone:n?.includes("-")?n?.split("-")[1]:n,activeId:this.activeId}));if(r){const n=r;return B.sG.Modal.create({title:t("lobby.receiveModal.kindTips"),width:z.ZP.px2rem(600),hiddenBtns:!0,closable:!0,content:()=>e("div",[e("p",[r?n.data.msg:""])])}),Promise.reject()}return(0,$.apiGetSmsCodeAfterLogined)({create_mode:this.isBindPhone?se.FW.Verify:se.FW.Bind,limit_type:"phone",phone_number:n})},disabled:!(!this.phoneDisable()&&!this.isBindPhone)&&!this.isPhoneNumberPassed,targetValue:this.phoneNumberFormat},ref:"smsVerificationRef",class:this.phoneDisable()?me:"",model:{value:this.form.captcha,callback:e=>{this.$set(this.form,"captcha",e)}}})])])])}},w=(0,D.Z)(v.prototype,"phoneNumberFormItemRef",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,D.Z)(v.prototype,"formModel",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,D.Z)(v.prototype,"smsVerificationRef",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,D.Z)(v.prototype,"item",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,D.Z)(v.prototype,"activeId",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P=(0,D.Z)(v.prototype,"codeType",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,D.Z)(v.prototype,"bindPhone",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,D.Z)(v.prototype,"areaCode",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=(0,D.Z)(v.prototype,"isHiddenCode",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,D.Z)(v.prototype,"onInputValueChange",[m,g],Object.getOwnPropertyDescriptor(v.prototype,"onInputValueChange"),v.prototype),(0,D.Z)(v.prototype,"onComplete",[p],Object.getOwnPropertyDescriptor(v.prototype,"onComplete"),v.prototype),(0,D.Z)(v.prototype,"onSubmit",[f,y],Object.getOwnPropertyDescriptor(v.prototype,"onSubmit"),v.prototype),b=v))||b);var Se,Pe,Le,ke,_e,Ee,Oe,Re,Ae,De,xe,Ze,Ne,Me,Be,Ge,He,$e,Fe,qe,je="UGYmmwFE1Y3qlwnceFwO",ze="zICkKi5Mo2ZSIQcykiUq",Ue="OjvwBFfb2J61X2JgrG9v",Ve="jgef5ku73xP00g02dJqQ",We="WXtn8_wEc1GzLweyXEsE",Ke="DQgWVWDtMgMs8S_b5a4j",Ye="etjWRhsZepY4TrokoqV4",Qe="mWJQqOCqOtW3rwYd5Lc8",Je="IpvHNG87re4EZxsfZG1j",Xe="oh6QhPDAAa52z_qgqBlJ",et="VMioAkeRNROWJPSXLe21",tt="A0bhXTsKi4IlZ8YVF45f",nt="H3X4SNvp0Cq2rcpqQuqm",it="fDop6CKX8PmHSzL6yDKA",rt="xlvfEiG74cSCxIDE5dhN",at="GPU_ML3B1XtH5skxbVtL",ot="leHSghgdSTLuMSEGmieS",st="qvvvUPhJQ85x67yMuF6b",ct="FWW2FFP_LzWJOoRrsS4X",lt="MfnNowGSQIRuKpv09pzM",ut="rUlGptnrVbSaqer2d_r_",dt="uC_Nm1eHF0MLZM2cElbs",ht="i1zSMFiHSjAYqWApxcA5",mt="H3faHu1RUr_P8d733uCF",gt="A95GDoKzL6McEbU3rfnQ",pt="CzAC87vEfLEhP9p7HLx2",ft="uq5QeFbJe9pQH_p8BvLk",yt="djF9npp5y4l5q001MryC",bt="vlTDaHlHmabWGvPg6z3W";!function(e){e[e.Unbound=0]="Unbound",e[e.Bound=1]="Bound"}(qe||(qe={}));let vt=(Se=(0,Z.wA)({name:"DiscountCode"}),Pe=(0,Z.Rl)(),Le=(0,Z.fI)(K.ZP.number.isRequired),ke=(0,Z.fI)({required:!1}),_e=(0,Z.fI)({required:!1}),Ee=(0,Z.fI)(K.ZP.bool.def(!1)),Oe=(0,Z.fI)(),Re=(0,Z.fI)(),Ae=(0,Z.y1)("success"),De=(0,Z.y1)("changeCodeType"),Se((Ze=class extends Z.XY{constructor(...e){super(...e),(0,A.Z)(this,"state",{discountCode:void 0,loading:!1,eventData:null,bindPhoneForm:null,tabsList:[],activeTabsIndex:0,discountConfigData:null,riskBindPhoneStatus:qe.Unbound,hasReceived:!1,isTimeoutError:!1,refreshing:!1}),(0,R.Z)(this,"veriryBindPhone",Ne,this),(0,R.Z)(this,"activeId",Me,this),(0,R.Z)(this,"title",Be,this),(0,R.Z)(this,"event",Ge,this),(0,R.Z)(this,"isModal",He,this),(0,R.Z)(this,"isAfterRechargeModal",$e,this),(0,R.Z)(this,"fetchData",Fe,this)}onSuccess(){}onChangeCodeType(){return this.contentConfig?.codeType}get eventData(){return this.event?this.event:this.state.eventData}get contentConfig(){if(!this.eventData)return null;const{activeData:e}=this.eventData||{};if(!e)return null;const{contentConfig:t}=e;return t}get columns(){const e=this.$createElement,{t:t}=(0,U.QT)(),{amountType:n}=this.contentConfig||{},i=[{title:t("lobby.event.listedRewards.ruleTabe.awardAmount"),dataIndex:"rewardAmount",key:"reward",customRender:t=>e("span",{class:at},[(0,F._5)(t)])}],r=[{title:t("lobby.event.listedRewards.ruleTabe.rewardRatio"),dataIndex:"ratio",key:"ratio",customRender:t=>e("span",{class:at},[t,"%"])},{title:t("lobby.event.listedRewards.ruleTabe.awarMaxLimit"),dataIndex:"limitReward",key:"limitReward",customRender:n=>{const i=(0,F._5)(n)?.replace(/(\.|,)00$/,"");return e("span",[n?i:t("lobby.event.discountCode.notProfitLimit")])}}];let a=[{title:t("lobby.event.discountCode.firstDepositCount"),dataIndex:"rechargeAmount",key:"rechargeAmount",customRender:t=>e("span",["≥",(0,F._5)(t)?.replace(/(\.|,)00$/,"")])}];return n===x.$l.FirstChargeRatio?a=[...a,...r]:n===x.$l.Fixed&&(a=[...a,...i]),a}get hideVerifyPhoneCode(){const e=this.contentConfig?.codeType??x.jL.InvitationLink,t=(e===x.jL.BoundPhone||e===x.jL.UnboundPhone)&&this.bindPhone===x.Im.Bound||e===x.jL.UnboundPhone&&this.bindPhone===x.Im.HasPhoneNumber;return this.contentConfig?.disableVerifySms===x.Qq.close&&t}get notInTimeRange(){const{startTime:e,endTime:t}=this.eventData||{},n=+new Date,i=e?parseInt(String(1e3*e)):0,r=t?parseInt(String(1e3*t)):0;return i-n>0||r-n<0}get bindPhone(){if(!this.eventData)return null;const{activeData:e}=this.eventData,{bindPhone:t}=e;return t}async mounted(){(this.isModal||this.isAfterRechargeModal)&&await this.featchData()}async refresh(){this.state.refreshing||(this.setState({refreshing:!0}),await this.featchData(),this.setState({refreshing:!1}))}async featchData(){if(this.isModal||this.isAfterRechargeModal){const[e,t]=await(0,Ie.Z)((0,H.EB)(this.activeId,!0));if(this.setState({isTimeoutError:!!e}),e)return;return this.setState({eventData:t}),void this.$nextTick((()=>{this.onChangeCodeType()}))}this.fetchData?.()}renderQRCode(){const e=this.$createElement,{eventData:t}=this,n=t?.receiveDeviceType??"",{errorMessage:i}=(0,q._4)(n);return e("div",[e("div",[i]),e(ee.Z)])}get showDiscountCodeLinkBtn(){return this.contentConfig?.getCodeMethod===x.hI.LinkToGet}getDiscountCodeLink(){this.contentConfig?.getCodeAppLink&&(0,z.jj)(this.contentConfig.getCodeAppLink)}async handleInvitationLinkReceive(){const e={codeType:this.contentConfig?.codeType??x.jL.InvitationLink,discountCode:"",activeId:Number(this.activeId)};this.setState({loading:!0});const[t,n]=await(0,Ie.Z)((0,H.nT)(e));if(this.setState({loading:!1}),t){const e=t,n=e?.data?.msg??"";(0,q.d3)(e)||((0,q.Kc)(n),this.featchData())}else this.handleReceiveSuccess(n)}async useDiscountCode(e,t){const{hasLogined:n,setUserInfos:i,userInfos:r}=(0,V.h)();if(!n)return void Q.Z.openLoginRegisterModal();const{discountCode:a,loading:o,riskBindPhoneStatus:s}=this.state,{eventData:c}=this;if(o||!a)return;this.state.loading=!0;const{t:l}=(0,U.QT)();if(e&&(t===x.jL.BoundPhone||t===x.jL.UnboundPhone)&&(this.bindPhone===x.Im.Bound||r?.mobile_phone)){const[t]=await(0,Ie.Z)((0,$.apiVerifyPhone)({phone:e.phone,captcha:e.verifyCode,flag:a}));if(this.state.loading=!1,t)throw this.featchData(),t}if(e&&this.bindPhone===x.Im.Unbound&&!r?.mobile_phone&&s!==qe.Bound){const t=e.phone?.includes("+")?e.phone:`${this.contentConfig?.areaCode||(0,V.h)().smsSegment}-${e.phone}`,[n]=await(0,Ie.Z)((0,$.apiRiskBindPhone)({phone:t,captcha:e.verifyCode,flag:a}));if(this.state.loading=!1,n)throw this.state.riskBindPhoneStatus=qe.Unbound,this.featchData(),n;this.state.riskBindPhoneStatus=qe.Bound,i(O()({},r,{is_verified:W.cz.Verified,mobile_phone:z.ZP.phoneNumberDesensitization(t)}))}if(a){if(!(0,q.cA)(c?.receiveDeviceType,this.renderQRCode))return void(this.state.loading=!1);if(await(0,q.l7)(c?.taskCondition,(()=>{this.isModal&&B.sG.Modal.close("discountCode")})))return void(this.state.loading=!1);if(t===x.jL.UnboundPhone){const t=e?.phone?.includes("-")?e.phone?.split("-")[0]??"":this.contentConfig?.areaCode??"",n=e?.phone?.includes("-")?e.phone?.split("-")[1]??"":e?.phone??"",{status:i}=await(0,H.gj)({areaCode:t,phoneNumber:n,activeId:Number(this.activeId)});if(i)return B.sG.Modal.message({type:"error",content:()=>{switch(i){case x.c.Invalid:return l("lobby.event.discountCode.activityIDInvalid");case x.c.NotPhoneWinnings:return l("lobby.event.discountCode.notPhoneGold");case x.c.IncorrectAreaCode:return l("lobby.event.discountCode.areaCodeIncorrect");case x.c.PhoneNotExist:return l("lobby.event.discountCode.phoneNumberNothingness");case x.c.PhoneAlreadyUse:return l("lobby.event.discountCode.phoneNumberBeUsed");default:return""}}}),this.state.loading=!1,this.featchData(),Promise.reject()}const n={codeType:this.contentConfig?.codeType||x.jL.Universal,discountCode:this.contentConfig?.codeType===x.jL.InvitationLink||this.contentConfig?.codeType===x.jL.UnboundPhone&&(this.bindPhone===x.Im.HasPhoneNumber||this.state.riskBindPhoneStatus===qe.Bound)?"":a,activeId:Number(this.activeId)},[i,r]=await(0,Ie.Z)((0,H.nT)(n));if(this.state.loading=!1,i){const e=i,t=e?.data?.msg??"";return void((0,q.d3)(e)||((0,q.Kc)(t),this.featchData()))}this.handleReceiveSuccess(r)}}handleReceiveSuccess(e){const t=this.$createElement,{t:n}=(0,U.QT)(),{audioReceivePlay:i}=(0,V.h)();if(e?.status){this.featchData();e.status===x.pH.RechargeAtLeastOnce?B.sG.Modal.open("rechargeLeastOnceTip",{content:e.message}):B.sG.Modal.create({class:gt,title:n("lobby.receiveModal.kindTips"),width:z.ZP.px2rem(600),content:()=>e.message,hiddenBtns:!0,closable:!0,okText:n("lobby.event.discountCode.payBtn").toString(),onOk:()=>{B.sG.Modal.open("payModal")}})}else e.withdrawLimit?B.sG.Modal.create({class:gt,title:n("lobby.event.discountCode.receiveSuccess"),titleType:"success",width:z.ZP.px2rem(600),content:()=>[t("inner-html",{key:"1",attrs:{text:n("lobby.event.discountCode.success",{x:`<span class="${B.CM.CssClassName.Lobby.Color.Yellow}">\n                        ${e.amount}\n                      </span>`}),type:"div"}}),t("div",{key:"2"},[n("lobby.event.discountCode.needRecharge",{x:e.withdrawLimit})])],hiddenBtns:!0,closable:!0}):B.sG.Modal.message({type:"success",content:()=>n("lobby.event.discountCode.success",{x:(0,F._5)(e.amount)})}),this.state.hasReceived=!0,i(),this.featchData(),this.onSuccess()}renderDiscountCodeComponent(){const e=this.$createElement,{t:t}=(0,U.QT)();return e("div",{class:We},[e(N.II.Tsx,{attrs:{disabled:this.notInTimeRange,placeholder:t("lobby.event.discountCode.placeholder").toString(),prefix:()=>e("span",{class:Ke},[e("icon-sprite",{attrs:{sprite:(0,j.T9)("input_icon_dhm")}})]),suffix:()=>e(M.Gy,{class:[Ye,this.notInTimeRange?Qe:""],on:{complete:e=>{this.notInTimeRange||(this.state.discountCode=e)}}})},model:{value:this.state.discountCode,callback:e=>{this.$set(this.state,"discountCode",e)}}})])}renderVeriryBindPhoneComponent(){const e=this.$createElement,{codeType:t,areaCode:n}=this.contentConfig||{},{userInfos:i}=(0,V.h)();return e(Te,{class:[ut,i?.mobile_phone?dt:""],ref:"veriryBindPhone",attrs:{activeId:this.activeId,codeType:t,bindPhone:this.bindPhone,areaCode:n,item:this.eventData,isHiddenCode:this.hideVerifyPhoneCode},on:{complete:e=>{this.state.bindPhoneForm=e}}})}get getStatusText(){const{t:e}=(0,U.QT)();return{[x.jL.Universal]:()=>e("lobby.event.discountCode.congratulationsReCode"),[x.jL.Unique]:()=>e("lobby.event.discountCode.congratulationsReCode"),[x.jL.BoundPhone]:()=>e("lobby.event.discountCode.congratulations"),[x.jL.UnboundPhone]:()=>e("lobby.event.discountCode.congratulations"),[x.jL.FirstCharge]:()=>e("lobby.event.discountCode.congratulationsReCode"),[x.jL.InvitationLink]:()=>e("lobby.event.discountCode.completedRegistration")}[this.contentConfig?.codeType]||""}renderReceivedSuccessComponent(){const e=this.$createElement;return e("div",{class:ht},[e("div",{class:mt},[e("icon-sprite",{attrs:{sprite:(0,j.T9)("comm_icon_gou")}})]),e("span",[this.getStatusText()])])}getBtnText(e){const{t:t}=(0,U.QT)();return{[x.Yq.Processing]:t("lobby.event.discountCode.confirmTheExchange"),[x.Yq.HasReceive]:t("lobby.modal.task.collected"),[x.Yq.Distributed]:t("lobby.event.discountCode.distributed")}[e]||t("lobby.event.discountCode.confirmTheExchange")}renderDiscountBtn(){const e=this.$createElement,{isWeb:t,userInfos:n,hasLogined:i}=(0,V.h)(),{codeType:r}=this.contentConfig||{},{activeData:a}=this.eventData||{},o=a,{t:s}=(0,U.QT)(),c=e("div",{class:{[Je]:!0,"discount-btn-box":!0,[nt]:this.showDiscountCodeLinkBtn}},[this.showDiscountCodeLinkBtn?e(N.zx.Tsx,{class:et,attrs:{type:"primary",ghost:!0},nativeOn:{click:this.getDiscountCodeLink}},[e(Y.Z,{class:tt,attrs:{text:s("lobby.event.discountCode.getRedeemCode")}})]):null,e(N.zx.Tsx,{class:{[Xe]:!0,[et]:this.showDiscountCodeLinkBtn},attrs:{loading:this.state.loading,type:"success",disabled:this.notInTimeRange||(()=>{const{activeData:e}=this.eventData||{},t=e;if(this.notInTimeRange||t?.amount)return!0;switch(r){case x.jL.Universal:case x.jL.FirstCharge:case x.jL.Unique:return!this.state.discountCode;case x.jL.BoundPhone:case x.jL.UnboundPhone:return this.bindPhone!==x.Im.Unbound&&this.bindPhone!==x.Im.Bound&&((this.bindPhone!==x.Im.HasPhoneNumber||0!==t?.amount)&&!(this.state.bindPhoneForm&&this.state.bindPhoneForm.phone&&this.state.bindPhoneForm.captcha));case x.jL.InvitationLink:return t?.receiveStatus===x.Yq.HasReceive;default:return!0}})()||this.state.hasReceived},nativeOn:{click:async()=>{if(!i)return void Q.Z.openLoginRegisterModal();if(r===x.jL.UnboundPhone&&this.bindPhone===x.Im.Bound)return void B.sG.Modal.create({title:s("lobby.receiveModal.kindTips"),width:z.ZP.px2rem(600),hiddenBtns:!0,closable:!0,content:()=>e("div",[e("p",[s("lobby.event.discountCode.activityDissatisfy")])])});if(this.event&&!(0,q.cA)(this.event.receiveDeviceType,this.renderQRCode))return;if(await(0,q.l7)(this.event?.taskCondition,(()=>{this.isModal&&B.sG.Modal.close("discountCode")})))this.state.loading=!1;else if(this.veriryBindPhone){if(this.hideVerifyPhoneCode&&this.veriryBindPhone.isPhoneNumberPassed)return this.state.discountCode=`active_code_${this.activeId}_${n.username}`,void this.useDiscountCode();const e=await this.veriryBindPhone.onSubmit();if(!e)return void this.featchData();this.state.discountCode=`active_code_${this.activeId}_${n.username}`,this.useDiscountCode(e,r)}else if(r===x.jL.UnboundPhone&&this.bindPhone===x.Im.HasPhoneNumber&&0===o?.amount)this.state.discountCode=`active_code_${this.activeId}_${n.username}`,this.useDiscountCode();else{if(r===x.jL.InvitationLink)return this.handleInvitationLinkReceive();this.useDiscountCode()}}}},[e(Y.Z,{attrs:{text:this.getBtnText(o.receiveStatus)}})])]);return t||this.isModal||this.isAfterRechargeModal?this.isAfterRechargeModal?e(G.h_,{attrs:{to:B.CM.PortalName.AfterRechargeActivityBottom}},[c]):c:e(G.h_,{attrs:{to:B.CM.PortalName.ActivityBottom}},[e("div",{class:bt},[c])])}renderRewardsTable(e){return(0,this.$createElement)(M.FN,{attrs:{query:async()=>({data:e?.map(((e,t)=>({...e,rowKey:t})))??[]}),columns:this.columns,rowKey:"rowKey",emptyHeight:"auto",isHiddenPagination:!0},class:[it,this.hiddenTips?rt:""]})}get hiddenTips(){const e=this.eventData?.activeData||{},{contentConfig:t}=e||{};return e&&(t?.disableShowReward===x.DK.HIDE||this.contentConfig&&this.contentConfig.codeType===x.jL.FirstCharge&&(e.amount&&e.amount<=0||!e.amount))}render(){const e=arguments[0],{t:t}=(0,U.QT)(),{amount:n,amountType:i,rate:r,codeType:a,profitLimit:o,withdrawLimit:s,showAmountRange:c}=this.contentConfig||{},{activeData:l}=this.eventData||{},u=l,{isWeb:d}=(0,V.h)(),h=()=>{switch(i){case x.$l.Fixed:case x.$l.FirstDepositBonus:return this.contentConfig&&this.contentConfig.codeType===x.jL.FirstCharge&&i===x.$l.Fixed?u?.amount&&(0,F._5)(u?.amount??0):n?(0,F._5)(n):n;case x.$l.FirstChargeRatio:return u&&u?.amount?(0,F._5)(u?.amount):t("lobby.event.discountCode.tips3",{x:r,y:n?(0,F._5)(n):n});case x.$l.Random:return u&&u?.amount?(0,F._5)(u?.amount):`${(0,F._5)(c?.split(",")[0]??0)}-${(0,F._5)(c?.split(",")[1]??0)}`}},m=(()=>o||s?0!==o&&0===s?t("lobby.event.discountCode.tipsProfitUpperLimit",{x:0!==o?`<span> ${(0,F._5)(o??0)?.replace(/(\.|,)00$/,"")||(0,F._5)(this.contentConfig?.amount??0)?.replace(/(\.|,)00$/,"")} </span>`:`<span>\n          ${t("lobby.event.discountCode.notProfitLimit")}\n        </span>`}).toString():0===o&&0!==s?t("lobby.event.discountCode.tipstipsNeedRechargeAfterProfit",{y:`<span> ${(0,F._5)(s??0)?.replace(/(\.|,)00$/,"")} </span>`}).toString():`${t("lobby.event.discountCode.tipsProfitUpperLimit",{x:0!==o?`<span> ${(0,F._5)(o||n||0)?.replace(/(\.|,)00$/,"")} </span>`:`<span> ${t("lobby.event.discountCode.notProfitLimit")} </span>`})}, ${t("lobby.event.discountCode.tipstipsNeedRechargeAfterProfit",{y:`<span> ${(0,F._5)(s??0)?.replace(/(\.|,)00$/,"")} </span>`})}`:"")(),g=!this.hiddenTips||!!m,{contentConfig:p}=u||{};return this.state.isTimeoutError?e(J.Z,{attrs:{loading:this.state.refreshing,isTimeoutError:this.state.isTimeoutError,displayType:J.F.ListData,height:z.ZP.px2rem("1040px")},on:{retry:this.refresh}}):e(M.gE,{attrs:{spinning:!(this.state.eventData||!this.isModal&&!this.isAfterRechargeModal)}},[e("div",{class:[ze,this.isModal?Ve:"",this.isAfterRechargeModal?je:"","discountCodeCotent"]},[e("div",{class:[lt,"topContent","boxShadow"]},[!this.isAfterRechargeModal&&this.isModal&&(()=>{const{isWeb:t}=(0,V.h)(),{eventData:n}=this,i={height:t?60:80,top1Width:t?62:84,top3Width:t?61:74,fontSize:t?24:30};return e("div",{class:pt},[e("my-img",{attrs:{src:"/lobby_asset/common/common/event/xrcj_top1.png",options:{type:"div"},height:i.height,width:i.top1Width}}),e("my-img",{class:ft,attrs:{src:"/lobby_asset/common/common/event/xrcj_top2.png",options:{type:"div"},height:i.height}},[e(Y.Z,{attrs:{fontSize:i.fontSize,text:n?.name??""},class:ct})]),e("my-img",{class:yt,attrs:{src:"/lobby_asset/common/common/event/xrcj_top3.png",options:{type:"div"},height:i.height,width:i.top3Width}})])})(),a&&[x.jL.Universal,x.jL.FirstCharge,x.jL.Unique].includes(a)&&!u?.amount&&this.renderDiscountCodeComponent(),a===x.jL.BoundPhone&&(this.bindPhone===x.Im.Bound||this.bindPhone===x.Im.Unbound)&&!u?.amount&&this.renderVeriryBindPhoneComponent(),a===x.jL.UnboundPhone&&(this.bindPhone===x.Im.Bound||this.bindPhone===x.Im.Unbound||this.bindPhone===x.Im.HasPhoneNumber)&&!u?.amount&&this.renderVeriryBindPhoneComponent(),u?.amount?this.renderReceivedSuccessComponent():null,this.contentConfig&&this.contentConfig.codeType===x.jL.FirstCharge&&[x.$l.Fixed,x.$l.FirstChargeRatio].includes(this.contentConfig.amountType)&&p.disableShowReward===x.DK.SHOW&&this.contentConfig?.amountList&&this.renderRewardsTable(this.contentConfig?.amountList),this.eventData&&g&&e("div",{class:Ue},[((t,n)=>{const{t:i}=(0,U.QT)();if(t===x.DK.HIDE||this.contentConfig&&this.contentConfig.codeType===x.jL.FirstCharge&&n<=0)return;const r=n>0?`${i("lobby.event.discountCode.alreadyWon")}:`:i("lobby.event.discountCode.tipsLable");return e("div",[r,e("span",[h()])])})(p?.disableShowReward,u?.amount??0),m&&e("inner-html",{attrs:{type:"p",text:`${t("lobby.modal.pay.mark")}: ${m}`}})]),this.eventData&&d&&this.renderDiscountBtn()]),e("div",{class:[ot,"discount-introduction-box",this.isModal?"boxShadow":""],directives:[{name:"show",value:!this.isAfterRechargeModal}]},[this.eventData&&e(X.Z,{attrs:{eventData:this.eventData,isShowBottom:!1}})]),this.eventData&&!d&&this.isModal&&e("div",{class:[st,"bottom-blank"]}),this.eventData&&!d&&this.renderDiscountBtn()])])}},Ne=(0,D.Z)(Ze.prototype,"veriryBindPhone",[Pe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Me=(0,D.Z)(Ze.prototype,"activeId",[Le],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Be=(0,D.Z)(Ze.prototype,"title",[ke],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ge=(0,D.Z)(Ze.prototype,"event",[_e],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),He=(0,D.Z)(Ze.prototype,"isModal",[Ee],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$e=(0,D.Z)(Ze.prototype,"isAfterRechargeModal",[Oe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fe=(0,D.Z)(Ze.prototype,"fetchData",[Re],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,D.Z)(Ze.prototype,"onSuccess",[Ae],Object.getOwnPropertyDescriptor(Ze.prototype,"onSuccess"),Ze.prototype),(0,D.Z)(Ze.prototype,"onChangeCodeType",[De],Object.getOwnPropertyDescriptor(Ze.prototype,"onChangeCodeType"),Ze.prototype),xe=Ze))||xe)},96217:function(e,t,n){n.d(t,{Z:function(){return ze}});var i=n(53158),r=n(55433),a=n(12040),o=n(36630),s=n(38821),c=n(70753),l=n(29339),u=n(72698),d=n(1938);class h extends s.Ie.wA{run(e,t,n){const i=this.$createElement;let r=[i("span",[e])];if(new RegExp(t).test(e)){const a=new RegExp(`(${t})`,"g");r=e.split(a).filter(Boolean).reduce(((e,r)=>(t===r?e.push(n):e.push(i("span",[r])),e)),[])}return r}}const m=new h,g=m.run.bind(m);var p,f,y,b,v,w,C,I,T,S,P,L,k,_,E,O,R,A,D,x,Z,N,M,B,G,H,$,F,q,j,z,U,V,W,K,Y,Q,J,X=n(39972),ee=n(58217),te=n(91475),ne=n(75812),ie=n(34710),re=n(7174),ae=n(46851),oe=n(35829),se=n(62933),ce=n(50008),le=n(53579),ue=n(30307),de="A3rclxOxOufBsHr02kLf",he="sFeTXSb6PgRy2mfCv4N0",me="r8THG0y6Z413HSZqqm9i",ge="w1KosNkx58ppadxCe24G",pe="zhy0cSDBJjp403ahRVgw",fe="iWalxYi9VmXaABhci1WE",ye="LgmcvFSf1QIVgIJbNHtr",be="BMIY2aUdxyas0w0cwv4q",ve="nDSpOMNJDHEyZbRiRtkB",we="AvqANER_tGwK2jg1ivLI",Ce="Cjd9qWmX8z_xVdGsxMlS",Ie="smV50JgG4FNoQyEOSVBc",Te="b8HY8aGTxaACKlasu9wK",Se="tylOX7erl_KRTLmi3XX4",Pe="g3Wt0uMQu4SbI55PsmFG",Le="H3J5pSGBjp_KwbiPeLDN",ke="wgwJXFMgKndGQgG3hBy2",_e="_YlBTOiY6xHrhO_ePes6",Ee="KBKjZ2hLtyLpbsZhQoWr";let Oe=(p=(0,s.wA)({name:"EventItemListedRewardsButton"}),f=(0,s.fI)(),y=(0,s.fI)(),b=(0,s.fI)(),v=(0,s.fI)(),w=(0,s.fI)(),C=(0,s.fI)(),I=(0,s.fI)(),T=(0,s.fI)(),S=(0,s.fI)(),P=(0,s.fI)(),L=(0,s.fI)(),k=(0,s.fI)(),_=(0,s.fI)(),E=(0,s.fI)(),O=(0,s.fI)(),R=(0,s.fI)(),A=(0,s.fI)(),D=(0,c.K4)(),p((Z=class extends s.XY{constructor(...e){super(...e),(0,i.Z)(this,"activeId",N,this),(0,i.Z)(this,"receiveId",M,this),(0,i.Z)(this,"receiveStatus",B,this),(0,i.Z)(this,"giveType",G,this),(0,i.Z)(this,"callback",H,this),(0,i.Z)(this,"forwardCallback",$,this),(0,i.Z)(this,"currentAmount",F,this),(0,i.Z)(this,"canReceiveTime",q,this),(0,i.Z)(this,"receiveDeviceType",j,this),(0,i.Z)(this,"taskCondition",z,this),(0,i.Z)(this,"template",U,this),(0,i.Z)(this,"orderNo",V,this),(0,i.Z)(this,"rechargeEachOrder",W,this),(0,i.Z)(this,"receiveDuration",K,this),(0,i.Z)(this,"receiveTipsText",Y,this),(0,i.Z)(this,"items",Q,this),(0,i.Z)(this,"receiveTimeType",J,this),(0,r.Z)(this,"state",{processing:!1})}renderQRCode(){const e=this.$createElement,{errorMessage:t}=(0,X._4)(this.receiveDeviceType+"");return e("div",[e("div",[t]),e(ue.Z)])}async handleCollect(e){const t=this.$createElement,{t:n}=(0,ee.QT)();if(this.receiveDuration&&this.receiveTipsText)return void(0,X.Kc)(this.receiveTipsText);const{userInfos:i}=(0,te.h)();if(i?.user_status===se.L3.ForbidReceive)return(0,X.su)(t("p",{class:"forbidContent"},[n("lobby.event.forbidReceive")]));(0,X.cA)(this.receiveDeviceType,this.renderQRCode)&&(await(0,X.l7)(this.taskCondition)||(this.setState({processing:!0}),(0,X.GC)({params:{receiveId:`${this.receiveId}`,activeId:this.activeId},onSuccess:()=>{ae.sG.Modal.message({type:"success",content:n(e?"lobby.event.invest.applySuccess":"lobby.event.invest.receiveSuccess")})},checkUserRestrictBefore:()=>{this.setState({processing:!1})},judgeResBefore:()=>{this.callback&&this.callback()}})))}handleForward(){const{hasLogined:e}=(0,te.h)();this.forwardCallback?.(),e?this.template!==o.dF.Deposit?this.template===o.dF.Wager&&this.$router.push({name:oe.x4.GAME}):ae.sG.Modal.open("payModal"):le.Z.openLoginRegisterModal()}render(){const e=arguments[0],{t:t}=(0,ee.QT)(),n=this.currentAmount>0;switch(this.receiveStatus){case o.Yq.Processing:return e(re.zx.Tsx,{class:{[Se]:!0,[Pe]:n,[Le]:!n},on:{click:()=>{this.handleForward()}}},[e(ce.Z,{attrs:{text:n?t("lobby.modal.task.processing").toString():t("lobby.modal.task.forward").toString()}})]);case o.Yq.CanReceive:return e(re.zx.Tsx,{class:Se,on:{click:async()=>{await this.handleCollect()}},attrs:{loading:this.state.processing}},[e(ce.Z,{attrs:{text:t("lobby.modal.task.collect")}})]);case o.Yq.HasReceive:return e(re.zx.Tsx,{class:Se,attrs:{disabled:!0}},[e(ce.Z,{attrs:{text:t("lobby.modal.task.collected")}})]);case o.Yq.Expired:return e(re.zx.Tsx,{class:Se,attrs:{disabled:!0}},[e(ce.Z,{attrs:{text:t("lobby.modal.task.expired")}})]);case o.Yq.Distributed:return e(re.zx.Tsx,{class:Se,attrs:{disabled:!0}},[e(ce.Z,{attrs:{text:t("lobby.modal.task.distributed")}})]);case o.Yq.Cancel:return e(re.zx.Tsx,{class:Se,attrs:{disabled:!0}},[e(ce.Z,{attrs:{text:t("lobby.modal.task.cancel")}})]);case o.Yq.PendingCheck:return this.giveType===o.Qg.ManualDistribution?e(re.zx.Tsx,{class:Se,attrs:{disabled:!0}},[e(ce.Z,{attrs:{text:t("lobby.modal.task.applied")}})]):e(re.zx.Tsx,{class:Se,on:{click:()=>{(0,X.Kc)(t("lobby.event.verifyTips"))}}},[e(ce.Z,{attrs:{text:t("lobby.modal.task.collect")}})]);case o.Yq.PendingApply:return e(re.zx.Tsx,{class:Se,on:{click:async()=>{await this.handleCollect(!0)}}},[e(ce.Z,{attrs:{text:t("lobby.modal.task.applyAward")}})]);case o.Yq.Rejected:return e(re.zx.Tsx,{class:Se,attrs:{disabled:!0}},[e(ce.Z,{attrs:{text:t("lobby.records.rejected")}})]);default:return e(re.zx.Tsx,{class:Se,attrs:{disabled:!0}},[e(ce.Z,{attrs:{text:t("lobby.modal.task.collect")}})])}}},N=(0,a.Z)(Z.prototype,"activeId",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,a.Z)(Z.prototype,"receiveId",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,a.Z)(Z.prototype,"receiveStatus",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=(0,a.Z)(Z.prototype,"giveType",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,a.Z)(Z.prototype,"callback",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=(0,a.Z)(Z.prototype,"forwardCallback",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,a.Z)(Z.prototype,"currentAmount",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=(0,a.Z)(Z.prototype,"canReceiveTime",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,a.Z)(Z.prototype,"receiveDeviceType",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,a.Z)(Z.prototype,"taskCondition",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,a.Z)(Z.prototype,"template",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,a.Z)(Z.prototype,"orderNo",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=(0,a.Z)(Z.prototype,"rechargeEachOrder",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=(0,a.Z)(Z.prototype,"receiveDuration",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=(0,a.Z)(Z.prototype,"receiveTipsText",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=(0,a.Z)(Z.prototype,"items",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=(0,a.Z)(Z.prototype,"receiveTimeType",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,a.Z)(Z.prototype,"handleCollect",[c.WY,D],Object.getOwnPropertyDescriptor(Z.prototype,"handleCollect"),Z.prototype),x=Z))||x);var Re,Ae,De,xe,Ze,Ne,Me,Be,Ge,He,$e,Fe,qe;let je;!function(e){e[e.EventPage=0]="EventPage",e[e.EventModal=1]="EventModal",e[e.PayAfterModal=2]="PayAfterModal"}(je||(je={}));let ze=(Re=(0,s.wA)({name:"EventItemListedRewards"}),Ae=(0,s.fI)(),De=(0,s.fI)({required:!0}),xe=(0,s.fI)(),Ze=(0,s.fI)(),Ne=(0,c.WY)(),Me=(0,c.K4)(),Re((Ge=class extends s.XY{constructor(...e){super(...e),(0,i.Z)(this,"styleType",He,this),(0,i.Z)(this,"event",$e,this),(0,i.Z)(this,"fetchData",Fe,this),(0,i.Z)(this,"forwardCallback",qe,this),(0,r.Z)(this,"rewardAniVisible",!1),(0,r.Z)(this,"aniType",0)}get timeMappings(){const{t:e}=(0,ee.QT)();return{[o.Lh.Daily]:e("lobby.event.listedRewards.perDay"),[o.Lh.Weekly]:e("lobby.event.listedRewards.perWeek"),[o.Lh.Monthly]:e("lobby.event.listedRewards.perMonth")}}get ruleListFirstTitle(){const{activeData:e}=this.event,{ruleType:t}=e,n=this.event.cycleType;let i="";const{t:r}=(0,ee.QT)();return i=new Map([[this.event.template!==o.dF.Deposit,r("lobby.center.report.statistics.validBetTotal")],[this.event.template===o.dF.Deposit&&n===o.Lh.Monthly&&t===o.ud.Accumulative,r("lobby.event.listedRewards.perMonthTotalPay")],[this.event.template===o.dF.Deposit&&n===o.Lh.Weekly&&t===o.ud.Accumulative,r("lobby.event.listedRewards.weeklyTotalPay")],[this.event.template===o.dF.Deposit&&n===o.Lh.Daily&&t===o.ud.Accumulative,r("lobby.event.cumulativereCharge")],[this.event.template===o.dF.Deposit&&n===o.Lh.Monthly&&t===o.ud.Single,r("lobby.event.listedRewards.perMonthPay")],[this.event.template===o.dF.Deposit&&n===o.Lh.Weekly&&t===o.ud.Single,r("lobby.event.listedRewards.weeklyPay")],[this.event.template===o.dF.Deposit&&n===o.Lh.Daily&&t===o.ud.Single,r("lobby.event.listedRewards.ruleTabe.single")],[this.event.template===o.dF.Deposit&&t===o.ud.FirstDeposit,r("lobby.event.listedRewards.firstRecharge")]]).get(!0),i}freshData(){this.fetchData?.()}receiveTipContent(e){const t=this.$createElement,{t:n}=(0,ee.QT)();if(e)return t("span",{class:Te},[g(n("lobby.reward.vip.rewardMap.rewardTips0"),"{x}",t(ie.Z,{attrs:{hasDay:!0,hasTextBorder:!1,duration:Math.abs(e)},on:{over:()=>this.freshData()}}))])}get ruleList(){const{list:e=[]}=this.event||{};return e}renderReward(e){const t=this.$createElement,{userInfos:n}=(0,te.h)(),i=u.F.commonIconMap()[n?.currency||"CNY"]?.PAY_JB;return t("div",{class:Ce},[i&&t("icon-sprite",{attrs:{sprite:i}}),t("span",[(0,d._5)(e.reward??0)||""])])}get columnsRewards(){const e=this.$createElement,{t:t}=(0,ee.QT)(),n=this.ruleList,i=n.length&&n[0]?.signType,r=[{title:t("lobby.event.listedRewards.ruleTabe.awardAmount"),dataIndex:"reward",key:"reward",customRender:t=>{if(i===o.zf.Interregional){const n=/[-,]/.exec(t);let i;return i=n?t.split(n[0]):[],e("span",{class:"reward-finance"},[i?.length?`${(0,d._5)(i[0])}-${(0,d._5)(i[1])}`:0])}return e("span",{class:"reward-finance"},[t&&(0,d._5)(t)||0])}}],a=[{title:t("lobby.event.listedRewards.ruleTabe.rewardRatio"),dataIndex:"ratio",key:"ratio",customRender:t=>e("span",{class:"task-radio-finance"},[t,"%"])},{title:t("lobby.event.listedRewards.ruleTabe.awarMaxLimit"),dataIndex:"limitReward",key:"limitReward",customRender:n=>e("span",[(0,d._5)(n)?.replace(/(\.|,)00$/,"")||t("lobby.event.discountCode.notProfitLimit")])}],s=[{title:this.ruleListFirstTitle,dataIndex:"amount",key:"amount",customRender:t=>e("span",["≥",(0,d._5)(t)?.replace(/(\.|,)00$/,"")])}];switch(i){case o.zf.Interregional:s.push(...r);break;case o.zf.Proportion:s.push(...a);break;default:s.push(...r)}return s}get eventList(){const{activeData:e}=this.event;if(!e||!this.event)return[];return e.receiveList||[]}renderRewardsTable(e){return(0,this.$createElement)(l.FN,{attrs:{query:async()=>({data:e?.map(((e,t)=>({...e,rowKey:t})))??[]}),columns:this.columnsRewards,rowKey:"rowKey",emptyHeight:"auto",isHiddenPagination:!0},class:[Ee,_e]})}renderItem(e,t){const n=this.$createElement,{list:i=[],activeData:r,ruleType:a}=this.event,s=this.styleType===je.EventPage,{rechargeEachOrder:c,receiveTimeType:l}=r||{};return n("div",{class:fe},[!s&&a!==o.ud.FirstDeposit&&n("div",{class:{[ye]:!0}},[this.timeMappings[String(this.event.cycleType)]]),n("div",{class:be},[n("div",{class:we},[g(e.text,"{reward}",this.renderReward(e))]),!!e.competedTime&&n("div",{class:ve},[ne.ZP.formatSiteOffsetTime(e.competedTime,"ymd")])]),n("div",{class:Ie},[n(Oe,s?{attrs:{receiveStatus:o.Yq.Processing,giveType:this.event.giveType,template:o.dF.Deposit,callback:this.fetchData,forwardCallback:this.forwardCallback,orderNo:i?.length&&i[t]?.subactiveid||"",rechargeEachOrder:c,items:e,receiveTimeType:l,activeId:this.event.id,receiveTipsText:(0,X.Q2)(e),receiveDuration:e.receiveDuration}}:{attrs:{activeId:this.event.id,currentAmount:e.nowAmount??0,receiveId:e.receiveId,giveType:this.event.giveType,receiveStatus:e.receiveStatus,template:this.event.template,receiveDeviceType:this.event.receiveDeviceType,taskCondition:this.event.taskCondition,callback:this.fetchData,canReceiveTime:e.canReceiveTime,forwardCallback:this.forwardCallback,receiveDuration:e.receiveDuration,items:e,receiveTimeType:l,orderNo:i?.length&&i[t]?.subactiveid||"",rechargeEachOrder:c,receiveTipsText:(0,X.Q2)(e)}}),this.receiveTipContent(e.receiveDuration)])])}render(){const e=arguments[0],{t:t}=(0,ee.QT)(),{isWeb:n}=(0,te.h)(),i=this.ruleList,r=this.eventList?.filter((e=>e.receiveStatus===o.Yq.CanReceive))||[],a=this.eventList?.filter((e=>e.receiveStatus!==o.Yq.CanReceive))||[];return e("div",{class:{[de]:n,[ke]:this.styleType===je.EventModal}},[e("div",{class:{[me]:this.styleType!==je.EventModal,[ge]:!this.eventList?.length}},[this.eventList?.length?[...r,...a]?.map(this.renderItem):e("div",{class:pe},[e("span",[t("lobby.event.listedRewards.noRewards")])])]),i?.length>0&&e("div",{class:he},[this.renderRewardsTable(i)])])}},He=(0,a.Z)(Ge.prototype,"styleType",[Ae],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$e=(0,a.Z)(Ge.prototype,"event",[De],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fe=(0,a.Z)(Ge.prototype,"fetchData",[xe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),qe=(0,a.Z)(Ge.prototype,"forwardCallback",[Ze],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,a.Z)(Ge.prototype,"freshData",[Ne,Me],Object.getOwnPropertyDescriptor(Ge.prototype,"freshData"),Ge.prototype),Be=Ge))||Be)},48541:function(e,t,n){n.d(t,{Z:function(){return P}});var i,r,a,o,s,c,l,u,d=n(63137),h=n.n(d),m=n(53158),g=n(12040),p=n(36630),f=n(38821),y=n(46851),b=n(58217),v=n(91475),w=n(75812),C=n(56343),I=n(30381),T=n.n(I),S=n(99980);!function(e){e[e.firstIndex=0]="firstIndex",e[e.secondIndex=1]="secondIndex",e[e.thirdIndex=2]="thirdIndex",e[e.fourIndex=3]="fourIndex"}(u||(u={}));let P=(i=(0,f.wA)({name:"PublicIntroduction"}),r=(0,f.fI)({required:!0}),a=(0,f.fI)({default:!1}),i((s=class extends f.XY{constructor(...e){super(...e),(0,m.Z)(this,"eventData",c,this),(0,m.Z)(this,"isShowBottom",l,this)}get getLang(){const e=h()(y.CM.ServiceLanguageMap),{language:t}=(0,v.h)(),{isDefaultLangRuleText:n,translateRuleText:i}=this.eventData||{};return n?t:e[i]}renderIntroductionTime(e){const t=this.$createElement,n=this.eventData;if(!n)return;const i=[p.dF.CutOnce,p.dF.NewCutOnce];if(n?.isShowDetailTime===p.UI.Hide&&!i.includes(n?.template))return null;const{t:r}=(0,b.QT)(),{siteInfos:a}=(0,v.h)(),o=T()().utcOffset(a?.timeZone??"").utcOffset()/60,s=e=>w.ZP.formatSiteOffsetTime(e);return t("div",[t("span",{class:S.Z.textDarken},[e,r("lobby.event.time",this.getLang),"(UTC",o>=0&&"+",o,"):"]),t("div",[t("span",[s(n.startTime)," - ",s(n.endTime)]),n.timingList&&t("div",[t("span",[r("lobby.event.validDay.renPocketTime",this.getLang),":"," "]),n.timingList.map(((e,n)=>{const i=C.Z.getFormatTime(e.timing,"HH:mm",!1),r=C.Z.getFormatTime(e.timing+e.duration,"HH:mm",!1);return t("span",{key:n},[`${n>0?",":""}${i} - ${r}`])}))])])])}renderActiveCondition(e){const t=this.$createElement,n=this.eventData;if(!n)return;const{t:i}=(0,b.QT)();return t("div",[t("span",{class:S.Z.textDarken},[e,i("lobby.event.condition",this.getLang),":"]),t("div",[t("span",[n.activeCondition])])])}renderConditionText(e){const t=this.$createElement,n=this.eventData;if(!n)return;const{t:i}=(0,b.QT)();let r;switch(n.template){case p.dF.Deposit:r=i("lobby.event.conditionDeposit",this.getLang);break;case p.dF.Wager:case p.dF.Rescue:case p.dF.LuckyWheel:case p.dF.LuckyWheelNew:case p.dF.LuckyBet:r=i("lobby.event.conditionPlatform",this.getLang)}return t("div",[t("span",{class:S.Z.textDarken},[e,r,":"]),t("div",[t("span",[n.conditionText])])])}renderContent(e){const t=this.$createElement,n=this.eventData;if(!n)return;const{t:i}=(0,b.QT)();return t("div",[t("span",{class:S.Z.textDarken},[e,i("lobby.event.content",this.getLang),":"]),t("inner-html",{attrs:{type:"div",text:n.content}})])}render(){const e=arguments[0],t=this.eventData||{},{t:n}=(0,b.QT)(),i=[this.renderIntroductionTime];return t.activeCondition&&i.push(this.renderActiveCondition),t.conditionText&&i.push(this.renderConditionText),t.content&&i.push(this.renderContent),e("div",{class:{[S.Z.introduction]:!0,[S.Z.paddingBottom]:this.isShowBottom}},[e("div",{class:S.Z.introductionInner},[i.map(((e,i)=>e(n(2===t?.isShowDetailTime&&1===i?"":`lobby.event.${u[i]}`,this.getLang))))])])}},c=(0,g.Z)(s.prototype,"eventData",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,g.Z)(s.prototype,"isShowBottom",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=s))||o)},95718:function(e,t,n){n.d(t,{Z:function(){return P}});var i=n(47037),r=n.n(i),a=n(53158),o=n(12040),s=n(36630),c=n(38821),l=n(29339);let u,d;!function(e){e[e.Open=1]="Open",e[e.Grab=2]="Grab",e[e.Send=3]="Send"}(u||(u={})),function(e){e[e.IOS=1]="IOS",e[e.ANDROID=2]="ANDROID",e[e.H5=3]="H5",e[e.PC=4]="PC"}(d||(d={}));var h,m,g,p,f,y=n(1938),b=n(58217),v="_aCnC23jUfSaa6Z9AehI",w="d5oyqBVxYlNkEtM_FCZx",C="cA7wIJdvpitqmfAGlANE",I="l8Sn2Yysuev3l_S6qJy7",T="n15WKXuYN6BAyeTtp4IP",S="quTSTxlLtqhijDK6cZnC";let P=(h=(0,c.wA)({name:"EventItemRedPack"}),m=(0,c.fI)({required:!0}),h((p=class extends c.XY{constructor(...e){super(...e),(0,a.Z)(this,"event",f,this)}get isNoContent(){return this.redContent.receive_rule===s.KB.Unconditional}get redContent(){return this.event.activeData&&r()(this.event.activeData)?JSON.parse(this.event.activeData):{}}get limitList(){return this.redContent.red_pack_type===u.Send?(this.redContent.sendRuleList?this.redContent.sendRuleList.sort(((e,t)=>Number(e.ruleValue)-Number(t.ruleValue))):[]).map((e=>({limit_value:e.ruleValue,limit_num:e.minShowAmount!==e.maxShowAmount?`${(0,y._5)(e.minShowAmount)}-${(0,y._5)(e.maxShowAmount)}`:(0,y._5)(e.maxShowAmount)}))):this.redContent.limit_list?this.redContent.limit_list.sort(((e,t)=>Number(e.limit_value)-Number(t.limit_value))):[]}get columns(){const e=this.$createElement,{t:t}=(0,b.QT)(),n=[{title:t("lobby.reward.vip.table.dayDeposit"),dataIndex:"limit_value",key:"limit_value",customRender:t=>e("span",["≥",(0,y._5)(t)?.replace(/(\.|,)00$/,"")])},{title:t("lobby.event.redPocket.grabPocketAwarMaxLimit"),dataIndex:"limit_num",key:"limit_num",customRender:n=>e("span",[t("lobby.event.redPocket.times",{x:n})])}],i=[{title:t("lobby.reward.vip.table.dayBet"),dataIndex:"limit_value",key:"limit_value",customRender:t=>e("span",["≥",(0,y._5)(t)?.replace(/(\.|,)00$/,"")])},{title:t("lobby.event.redPocket.grabPocketAwarMaxLimit"),dataIndex:"limit_num",key:"limit_num",customRender:n=>e("span",[t("lobby.event.redPocket.times",{x:n})])}],{red_pack_type:r,limit_type:a,rule_type:o}=this.redContent;let c="";switch(o){case s.D1.SendTodayRecharge:c=t("lobby.event.redPocket.todayPay");break;case s.D1.SendTodayDaMa:c=t("lobby.event.redPocket.todayBet");break;case s.D1.SendTodayMaxRecharge:c=t("lobby.event.redPocket.yesterdayOnePay");break;case s.D1.SendTodayMaxDaMa:c=t("lobby.event.redPocket.yesterdayOneBet");break;case s.D1.SendYesterdayRecharge:c=t("lobby.event.redPocket.yesterdayPay");break;case s.D1.SendYesterdayMaxDaMa:c=t("lobby.event.redPocket.yesterdayBet");break;case s.D1.SendYesterdayMaxRecharge:c=t("lobby.event.redPocket.yesterdayLoss")}const l=[{title:c,dataIndex:"limit_value",key:"limit_value",customRender:t=>e("span",["≥",(0,y._5)(t)?.replace(/(\.|,)00$/,"")])},{title:t("lobby.event.redPocket.redPocketAmount"),dataIndex:"limit_num",key:"limit_num",customRender:t=>e("span",[t])}];return new Map([[r===u.Grab&&a===s.vE.RechargeOnDay,n],[r===u.Grab&&a===s.vE.CodeOnDay,i],[r===u.Send,l]]).get(!0)??[]}get renderTip(){const{t:e}=(0,b.QT)(),{red_pack_type:t,receive_rule:n}=this.redContent;let i="",r="";n===s.KB.RechargeOnDay&&t!==u.Send&&(i=e("lobby.event.redPocket.payTip",{x:`<span>${this.redContent.receive_limit}</span>`,y:`<span>${(0,y._5)(this.redContent.totalPay)}</span>`})),n===s.KB.CodeOnDay&&t!==u.Send&&(i=e("lobby.event.redPocket.betTip",{x:`<span>${this.redContent.receive_limit}</span>`,y:`<span>${(0,y._5)(this.redContent.totalBet)}</span>`}));const{limit_num:a,total_limit_num:o,todayCount:c}=this.redContent;if(t===u.Grab&&this.redContent.total_limit_num>0&&o&&a)r=e("lobby.event.redPocket.grabTip1",{x:o,y:a,z:a-c});else if(t===u.Grab&&0===this.redContent.total_limit_num&&a>0)r=e("lobby.event.redPocket.grabTip2",{x:a,y:a-c});else if(t===u.Send&&o>0){const t=a-c;r=e("lobby.event.redPocket.sendRedPockTip",{x:o,y:t<0?0:t})}return{receiveRuleTip:i,limitTip:""}}renderRewardsTable(e){return(0,this.$createElement)(l.FN,{attrs:{query:async()=>({data:e?.map(((e,t)=>({...e,rowKey:t})))??[]}),columns:this.columns,rowKey:"rowKey",emptyHeight:"auto",isHiddenPagination:!0},class:[T]})}render(){const e=arguments[0];return e("div",{class:{[v]:!0,[w]:this.isNoContent}},[this.renderTip.receiveRuleTip&&e("inner-html",{attrs:{type:"div",text:this.renderTip.receiveRuleTip},class:S}),(this.limitList.length>0&&this.columns?.length>0||this.renderTip.limitTip)&&e("div",{class:C},[this.renderTip.limitTip&&e("inner-html",{attrs:{type:"div",text:this.renderTip.limitTip},class:I}),this.limitList.length>0&&this.columns?.length>0&&this.renderRewardsTable(this.limitList)])])}},f=(0,o.Z)(p.prototype,"event",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=p))||g)},24476:function(e,t,n){n.d(t,{Z:function(){return _}});var i,r,a,o,s,c,l,u,d,h=n(53158),m=n(55433),g=n(12040),p=n(36630),f=n(38821),y=n(46851),b=n(86943),v=n(98478),w=n(91475),C=n(32027),I=n(46930),T=n(75812),S=n(45904),P=n(56822),L=n(41800);const k=864e5;let _=(i=(0,S.ZP)({name:"EventItemSign",components:{styleType0:P.Z.createAsyncComponent({component:()=>n.e(25917).then(n.bind(n,25917))}),styleType1:P.Z.createAsyncComponent({component:()=>n.e(38598).then(n.bind(n,38598))}),styleType2:P.Z.createAsyncComponent({component:()=>n.e(53836).then(n.bind(n,53836))}),styleType3:P.Z.createAsyncComponent({component:()=>n.e(13707).then(n.bind(n,13707))}),styleType4:P.Z.createAsyncComponent({component:()=>n.e(78406).then(n.bind(n,78406))}),styleType5:P.Z.createAsyncComponent({component:()=>n.e(42685).then(n.bind(n,42685))}),styleType6:P.Z.createAsyncComponent({component:()=>n.e(41666).then(n.bind(n,41666))})}}),r=(0,f.fI)(),a=(0,f.fI)(I.ZP.number.isRequired),o=(0,f.fI)(I.ZP.bool.isRequired),i((c=class extends f.XY{constructor(...e){super(...e),(0,h.Z)(this,"isAfterRechargeModal",l,this),(0,h.Z)(this,"activeId",u,this),(0,h.Z)(this,"isHomeModal",d,this),(0,m.Z)(this,"state",{styleMode:p.Yf.Style0,loading:!0})}get signStore(){return(0,C.Y)()}mounted(){const{signCacheData:e}=(0,C.Y)(),{language:t,userInfos:n}=(0,w.h)(),i=e.find((e=>e.id===this.activeId&&e.username===String(n?.username)&&e.lang===t));this.isHomeModal&&i?this.updateData(i):this.query()}destroyed(){this.state.loading=!0}async query(e=!1){const[t,n]=await(0,L.Z)((0,b.EB)(this.activeId,e));if(this.signStore.errorInfo=t,t)return this.updateData({}),(0,v.b)().freshEventCategoryAndActivity(!0),void(0,w.h)().initGetredDot(!0);const i=T.ZP.formatSiteOffsetTime(y.sG.Site.getServerTime(),"ymd"),r=Object.assign(n,{isSignTodayAddSignDay:i}),a=n.activeData,o=a.signDay-a.signDays,s=1e3*y.sG.Site.getServerTime();0===o||0===a.signDays&&o>0?(r.preSignTime=s,this.signStore.updatePreSignTime(s,this.activeId)):a.signDays>0&&o>0&&(r.preSignTime=s-k*o,this.signStore.updatePreSignTime(s-k*o,this.activeId));const{updateSignCacheData:c,signCacheData:l}=(0,C.Y)(),{userInfos:u,language:d}=(0,w.h)();l.findIndex((e=>e.id===n.id&&String(e.username)===String(u?.username)&&e.lang===d))>-1&&c(r),this.updateData(r)}updateData(e){const t=e.activeData?.displayType??p.Yf.Style0;this.setState({styleMode:t}),this.state.loading=!1,this.signStore.updateSignData(e),this.updateIsSignModalType()}updateIsSignModalType(){const{updateSignHaveOpened:e}=(0,C.Y)();e()}render(){const e=arguments[0],t=`styleType${this.state.styleMode}`;return this.state.loading?e("div"):e(t,{attrs:{activeId:this.activeId,isHomeModal:this.isHomeModal,isAfterRechargeModal:this.isAfterRechargeModal,fetchData:async()=>this.query(!0)}})}},l=(0,g.Z)(c.prototype,"isAfterRechargeModal",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,g.Z)(c.prototype,"activeId",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,g.Z)(c.prototype,"isHomeModal",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=c))||s)},32027:function(e,t,n){n.d(t,{Y:function(){return I}});var i=n(36630),r=n(46851),a=n(85783),o=n(11522),s=n(18713),c=n(50958),l=n(67476),u=n(22924),d=n(50498);const h=new u.I;var m=n(91475),g=n(55433);class p{constructor(){const e=localStorage.getItem(p.storeKey)||"{}";this.allUserIsHaveOpenedData=JSON.parse(e)}getUserOpeningRecord(){const e=String((0,m.h)()?.userInfos?.username||"unlogin"),t={isHaveOpenedToday:!1,isHaveOpenedEver:!1},n=this.allUserIsHaveOpenedData[e];t.isHaveOpenedEver=Boolean(n);return n===(new Date).getDate()&&(t.isHaveOpenedToday=!0),t}setUserOpeningRecord(){const e=String((0,m.h)()?.userInfos?.username||"unlogin");this.allUserIsHaveOpenedData[e]=(new Date).getDate();const t=JSON.stringify(this.allUserIsHaveOpenedData);localStorage.setItem(p.storeKey,t)}}(0,g.Z)(p,"storeKey","allUserOpeningSignRecord");const f=new p;var y=n(75812),b=n(72902),v=n(30381),w=n.n(v),C=n(41800);const I=(0,l.Q_)("sign",{state:()=>({activeId:0,signData:{},signCacheData:[],signBeforeLoginPopType:a.b.never,signAfterLoginPopType:a.H.never,isSignHaveOpenedToday:f.getUserOpeningRecord().isHaveOpenedToday,isSignHaveOpenedEver:f.getUserOpeningRecord().isHaveOpenedEver,isSignTodayNoRemind:new o._({createDefault:()=>!1,storeKey:"signUserCheckTodayReminderMapper",isPersistUnLogin:!0}),isSignNeverPop:new o._({createDefault:()=>!1,storeKey:"signUserCheckNeverReminderMapper",isPersistUnLogin:!0}),signTitle:"",errorInfo:null}),persist:{enabled:!0,strategies:[{key:"web.lobby.event.sign",storage:(0,y.nX)(null,localStorage),paths:["signCacheData"]}]},getters:{getSignData(){return this.signCacheData.find((e=>e.id===this.activeId))||{}}},actions:{async freshPopData(){const[e,t]=await(0,C.Z)((0,s.t)());if(e)return;let n=(0,m.h)().userInfos?.member_level;null==n&&(n=1);const o=w()().unix(),l=t?.filter((e=>!(e?.activeData&&e.activeData?.operation&&!(0,c.g)(e.activeData.operation))&&!(e?.endShowTime>0&&o>=e?.endShowTime||e?.endTime>0&&o>=e?.endTime||e?.startTime>0&&o<=e?.startTime||!this.checkVipLevelMatch(e.activeData)))),u=l?.find((e=>{const t=e?.userLevel&&e?.userLevel?.split(",")||[];return!(0!==t.length&&!t.includes("0"))||t.includes(String(n))}));u&&(u.username=String((0,m.h)()?.userInfos?.username)),this.activeId=u?.id??0,this.signTitle=u?.name;const d=u?.activeData;if(this.signBeforeLoginPopType=d?.beforeLoginPopType??a.b.never,this.signAfterLoginPopType=d?.afterLoginPopType??a.H.never,this.signCacheData.length>0&&u){const{language:e,userInfos:t}=(0,m.h)(),n=this.signCacheData.find((n=>n.id===u.id&&n.username===String(t?.username)&&n.lang===e));if(!n)return this.signCacheData=[],void this.updateSignCacheData(u);const{preSignTime:a}=n;if(a){const e=n.activeData,{monthReset:t,signDay:o,signDays:s,signType:c}=e||{},l=r.sG.Site.getServerTime(),d=y.ZP.formatSiteOffsetTime(l,"ymd"),h=y.ZP.formatSiteOffsetTime(a/1e3,"ymd"),m=w()(h).isSame(d,"day"),g=this.getSignDataSignList(n).length;if(s>0&&s%g==0&&!m)return this.signCacheData=[],void this.updateSignCacheData(u);if(c===i.Yp.Continuous){const e=w()(h).startOf("day").add(2,"d");if(w()(1e3*l).isAfter(e))return this.signCacheData=[],void this.updateSignCacheData(u)}if(t){const e=w()(h).date(t).valueOf(),n=w()(e).month(),i=w()(e).month(n+1).valueOf();if(a-e<0&&1e3*l-e>0||a-e>0&&1e3*l-i>0)return this.signCacheData=[],void this.updateSignCacheData(u)}const p=n.isSignTodayAddSignDay!==d;p&&(e.haveBet=0,e.havePay=0),!m&&p&&o===s&&(e.signDay=+o+1,n.isSignTodayAddSignDay=d)}}else u&&this.updateSignCacheData(u)},updateSignData(e){this.signData=e},updateSignHaveOpened(){this.isSignHaveOpenedToday=!0,this.isSignHaveOpenedEver=!0,f.setUserOpeningRecord()},updateSignCacheData(e){if(e){const{language:t,userInfos:n}=(0,m.h)();e.username=String(n?.username),e.lang=t}const t=this.signCacheData.findIndex((t=>t.id===e.id&&t.username===e.username&&t.lang===e.lang)),{preSignTime:n}=this.signCacheData[t]||{};n&&(e.preSignTime=n),-1!==t?this.signCacheData.splice(t,1,e):this.signCacheData.unshift(e)},updateTodayAddSignDay(e){if(!e)return;const{language:t,userInfos:n}=(0,m.h)(),i=this.signCacheData.find((t=>t.id===e))||{};if(i?.username===String(n?.username)&&i?.lang===t){const e=y.ZP.formatSiteOffsetTime(r.sG.Site.getServerTime(),"ymd");i.isSignTodayAddSignDay=e}},updatePreSignTime(e,t){const{language:n,userInfos:i}=(0,m.h)(),a=this.signCacheData.find((e=>e.id===t));a?.username===String(i?.username)&&a?.lang===n&&(a.preSignTime=e),r.Uh.cache.cancelCacheUrls(["/active/get"])},preJudgeOpenSign(e){const{isLoginTrigger:t=!1}=e||{};if(!this.activeId)return!1;const n=this.signCacheData.find((e=>e.id===this.activeId)),i=w()().unix();return!(!n||n?.endShowTime>0&&i>n?.endShowTime)&&(e=>{const{isLoginTrigger:t,isNeverPop:n,isSignTodayNoRemind:i}=e;return!n&&!i&&(!(0,d.z)()&&!!h.run({isLoginTrigger:t}))})({isLoginTrigger:t,isNeverPop:this.isSignNeverPop.get(),isSignTodayNoRemind:this.isSignTodayNoRemind.get()})},openSignModal(){r.sG.Modal.open("sign",{activeId:this.activeId,title:this.signTitle||"",isHomeModal:!0}).then((e=>{e.$once("modal:close",(()=>{b.Z.onModalClose("sign")}))}))},switchSignPopStatus(e){"isSignTodayNoRemind"===e&&this.isSignTodayNoRemind.set(!this.isSignTodayNoRemind.get()),"isSignNeverPop"===e&&this.isSignNeverPop.set(!this.isSignNeverPop.get())},checkVipLevelMatch(e){const t=e.vipRuleList;if(t){let e=(0,m.h)().userInfos?.vip_level;null==e&&(e=1);return!!t.find((t=>t.vipLevels.split(",").includes(String(e))))}return!0},getSignDataSignList(e){const t=e.activeData.vipRuleList;if(t){let e=(0,m.h)().userInfos?.vip_level;null==e&&(e=1);const n=t.find((t=>t.vipLevels.split(",").includes(String(e))));return n?n.ruleList:t[0].ruleList}return e.activeData.signList}}})},39972:function(e,t,n){n.d(t,{B_:function(){return K},GC:function(){return Y},Hm:function(){return G},Kc:function(){return N},OQ:function(){return R},Q2:function(){return F},Yw:function(){return E},_4:function(){return A},cA:function(){return D},ci:function(){return V},d3:function(){return B},dW:function(){return x},g4:function(){return _},iP:function(){return O},l7:function(){return z},nf:function(){return $},np:function(){return W},oc:function(){return H},r8:function(){return Z},su:function(){return M},tB:function(){return Q},zd:function(){return U}});n(63137);var i=n(36630),r=n(46851),a=n(62933),o=n(35829),s=n(37205),c=n(86943),l=n(67262),u=n(1938),d=n(28199),h=(n(75990),n(12392)),m=n(1850),g=n(29472),p=n(26248),f=n(98478),y=n(58217),b=n(91475),v=n(21615),w=n(75812),C=n(2161),I=n(53579),T=n(30381),S=n.n(T),P=n(80194),L=n(66274),k=n(41800);const _=()=>{const{name:e,params:t}=P.ZP.currentRoute;return e===o.x4.EVENT_ITEM&&+t.template===i.dF.Customize&&0==+t.eventId},E=(a.wh.ANDROID_APP,a.wh.IOS_APP,a.wh.ANDROID_H5,a.wh.IOS_H5,a.wh.PC_Windows,e=>{const{ANDROID_APP:t,IOS_APP:n,PC_Windows:i,ANDROID_H5:r,IOS_H5:o,PC_H5:s}=a.wh;return e.includes(String(s))&&(e=[...new Set(e.map((e=>e===String(s)?[String(r),String(o)]:e)).flat())]),e.map((e=>{switch(e){case String(t):return t;case String(n):return n;case String(i):return i;case String(r):return r;case String(o):default:return o}}))}),O=e=>{const t=E(e?.split(",")??[]);if(v.cY.speedPackageConfig){const e=(e=>{const{ANDROID_APP:t,IOS_APP:n,PC_Windows:i,ANDROID_H5:r,IOS_H5:o}=a.wh;switch(e){case String(t):return t;case String(n):return n;case String(i):return i;case String(r):return r;case String(o):default:return o}})(v.cY.speedPackageConfig?.osType?.toString()),n=t.includes(e);if(n)return n}else{const{deviceType:e}=(0,p.h)();let n=t.includes(e);if([a.wh.PC_H5].includes(e)&&(n=t.includes(a.wh.PC_Windows)),n)return n}return!1},R=e=>{const{t:t}=(0,y.QT)(),n=(0,d.N)().some((t=>t.hide&&t.value===e)),i={[o.x4.CASHBACK]:t("lobby.event.tipsText1"),[o.x4.VIP]:t("lobby.event.tipsText2"),[o.x4.YUEBAO]:t("lobby.event.tipsText3")}[e]||"";return n&&i&&I.Z.message({type:"warning",content:()=>i}),n&&!!i},A=e=>{const{t:t}=(0,y.QT)(),{language:n}=(0,b.h)(),i=E(e?.split(",")??[]);i.sort(((e,t)=>+e-+t));const{deviceType:r}=(0,p.h)();let o=i.includes(r);if([a.wh.PC_H5].includes(r)&&(o=i.includes(a.wh.PC_Windows)),r===a.wh.IOS_APP&&i.includes(a.wh.IOS_APP)||r===a.wh.ANDROID_APP&&i.includes(a.wh.ANDROID_APP)||o)return{canReceive:!0,errorMessage:""};const s=[];i.forEach(((e,n)=>{const r=i[n-1];switch(e){case a.wh.ANDROID_APP:if(r===a.wh.IOS_APP){s.pop(),s.push(t("lobby.event.validTips.limitType_1_2"));break}case a.wh.ANDROID_H5:if(r===a.wh.IOS_H5){s.pop(),s.push(t("lobby.event.validTips.limitType_5_6"));break}case a.wh.IOS_APP:case a.wh.PC_Windows:case a.wh.IOS_H5:s.push(t(`lobby.event.validTips.limitType_${e}`))}}));let c=`${s.join("、")}`;return["zh_CN","zh_TW"].includes(n)||(c=` ${s.join(",")} `),{canReceive:o,errorMessage:t("lobby.event.validTips.limitType",{x:c})}},D=(e,t,n)=>{const{t:i}=(0,y.QT)();if(e){const{canReceive:t,errorMessage:o}=A(e);if(!t){const t=1===e?.length&&[a.wh.PC_H5,a.wh.IOS_H5,a.wh.PC_Windows,a.wh.ANDROID_H5].includes(+e),s=C.Z.Modal.create({class:L.Z.receiveTips,title:i("lobby.receiveModal.kindTips"),width:w.ZP.px2rem(600),getContainer:()=>n&&document.querySelector(`${n}`)||document.body,content:o,closable:t,hiddenBtns:t,cancelText:i("lobby.modal.task.close").toString(),okText:i("lobby.gameMenu.toDownloadApp").toString(),onOk:async()=>{r.xN.dispatch({type:"download_app"}),s.destroy()}})}return!!t}return!1},x=e=>{const{t:t}=(0,y.QT)();return{[i.Yw.UNCONDITIONAL]:t("lobby.event.unconditional"),[i.Yw.CUMULATIVECODING]:t("lobby.event.cumulativeCoding"),[i.Yw.CUMULATIVERECHARGE]:t("lobby.event.cumulativereCharge")}[e]},Z=e=>{const t=Number(e);return t?t>0?`+${(0,u._5)(t)}`:t:(0,u._5)(0)},N=(e,t,n,i)=>{if(!e)return;const{t:r}=(0,y.QT)(),a=C.Z.Modal.create({title:n||r("lobby.notice.importantNotice"),width:w.ZP.px2rem(600),titleType:"error",content:e,zIndex:8999,getContainer:()=>t&&document.querySelector(`${t}`)||document.body,closable:i??!0,hiddenBtns:i??!0,cancelButtonProps:{style:{display:"none"}},onOk:async()=>{await a.destroy()}})},M=e=>{const{t:t}=(0,y.QT)(),n=C.Z.Modal.create({title:t("lobby.notice.importantNotice"),width:w.ZP.px2rem(600),titleType:"error",content:e,zIndex:8998,closable:!0,class:L.Z.showLargeAmountModal,cancelButtonProps:{style:{display:"none"}},okText:t("lobby.modal.loginRegister.contactCustomer"),onOk:async()=>{await n.destroy(),(0,m.fL)()}})},B=(e,t)=>!(e?.data?.code!==r.CM.ServiceCode.USER_RESTRICT_ERROR||!e?.data?.msg)&&(I.Z.close("loginRegisterModal"),((e,t)=>{if(!e)return;const{t:n}=(0,y.QT)(),i=I.Z.create({title:n("lobby.notice.importantNotice"),titleType:"error",content:e,zIndex:8999,closable:!0,cancelButtonProps:{style:{display:"none"}},class:L.Z.userRestrictTip,okText:n("lobby.modal.loginRegister.contactCustomer"),afterClose:async()=>{const{userInfos:e,updateUserInfos:t}=(0,b.h)();try{const n=await(0,l.U3)();n?.restrictInfo?t({...e,...n?.restrictInfo}):(delete e?.restrictInfo,t(e))}catch(n){}},onOk:async()=>{await i.destroy(),t?.(),(0,m.fL)()}})})(e?.data?.msg,t),!0),G=()=>{(0,h.X5)((()=>{const e=(0,f.b)().currentActiveIndex,t=document.querySelector(`[data-event-index="${e}"]`),n=e=>{setTimeout((()=>{t?.scrollIntoView({block:"center"})}),e)};n(75),n(150),n(300)})),P.ZP.back()},H=e=>{const{t:t}=(0,y.QT)();return{[i.Yq.Processing]:t("lobby.modal.task.processing"),[i.Yq.CanReceive]:t("lobby.modal.task.collect"),[i.Yq.HasReceive]:t("lobby.modal.task.collected"),[i.Yq.Expired]:t("lobby.modal.task.expired"),[i.Yq.Distributed]:t("lobby.modal.task.distributed"),[i.Yq.Cancel]:t("lobby.modal.task.cancel"),[i.Yq.PendingCheck]:t("lobby.modal.task.collect"),[i.Yq.PendingApply]:t("lobby.modal.task.applyAward"),[i.Yq.Rejected]:t("lobby.records.rejected")}[e]},$=async(e,t=!1)=>{const{activeList:n,firstLoaded:a,freshEventCategoryAndActivity:o}=(0,f.b)();let s=n;a||(s=await o());const c=s.find((t=>t.activeId===e));if(c)if([i.dF.DiscountCode,i.dF.NewCutOnce,i.dF.DailyBonus,i.dF.CutOnce].includes(c.template))switch(c.template){case i.dF.DiscountCode:I.Z.open("discountCode",{title:c.activeName||"",activeId:e,isModal:!0,onSuccess:()=>I.Z.close("discountCode"),width:600});break;case i.dF.DailyBonus:I.Z.open("sign",{activeId:e,title:c.activeName||"",isModal:!0,onSuccess:()=>r.sG.Modal.close("sign")});break;case i.dF.NewCutOnce:I.Z.open("newCutOnce",{activeId:e,isModal:!0,onSuccess:()=>r.sG.Modal.close("newCutOnce")});break;case i.dF.CutOnce:I.Z.open("cutOnce",{activeId:e,isModal:!0,onSuccess:()=>r.sG.Modal.close("cutOnce")})}else await(0,g.xy)("push",String(c.template),String(c.activeId),{current:P.ZP.currentRoute.query.current});else if(t){const{t:e}=(0,y.QT)();r.sG.Modal.message({type:"error",content:e("lobby.event.discountCode.activityDissatisfy").toString()})}},F=e=>{const{t:t}=(0,y.QT)(),{receiveTimeRemark:n,canReceiveTime:r}=e;let a={};try{a="string"==typeof n?JSON.parse(n):{}}catch(u){}const{receiveTimeDay:o,receiveTimeStart:s,receiveTimeEnd:c,receiveTimeType:l}=a||{};return{[i.Ik.Now]:()=>t("lobby.event.listedRewards.canReceiveTip1",{day:w.ZP.formatSiteOffsetTime(r,"ymdhms")}),[i.Ik.NextDay]:()=>t("lobby.event.listedRewards.canReceiveTip1",{day:w.ZP.formatSiteOffsetTime(r,"ymdhms")}),[i.Ik.NextWeek]:()=>t("lobby.event.listedRewards.canReceiveTip1",{day:w.ZP.formatSiteOffsetTime(r,"ymdhms")}),[i.Ik.NextMonth]:()=>t("lobby.event.listedRewards.canReceiveTip1",{day:w.ZP.formatSiteOffsetTime(r,"ymdhms")}),[i.Ik.EveryDaily]:()=>t("lobby.event.listedRewards.canReceiveTip2",{startTime:q(s),endTime:q(c)}),[i.Ik.EveryWeek]:()=>{const e=j();return t("lobby.event.listedRewards.canReceiveTip3",{week:e[o],startTime:q(s),endTime:q(c)})},[i.Ik.Monthly]:()=>t("lobby.event.listedRewards.canReceiveTip4",{day:o,startTime:q(s),endTime:q(c)})}[l]?.()??""},q=e=>S()().startOf("day").seconds(e).format("HH:mm:ss"),j=()=>{const{t:e}=(0,y.QT)();return{1:e("lobby.event.validDay.monday"),2:e("lobby.event.validDay.tuesday"),3:e("lobby.event.validDay.wednesday"),4:e("lobby.event.validDay.thursday"),5:e("lobby.event.validDay.friday"),6:e("lobby.event.validDay.saturday"),7:e("lobby.event.validDay.sunday")}},z=async(e,t)=>{if(!e)return!1;let n="";try{n=JSON.parse(e).condition}catch(c){}if(!n)return!1;const a=n.split(","),{getActiveTaskCompleteList:o}=(0,f.b)(),s=await o();if(!s)return!1;for(let l=0;l<a.length;l++){if(s.find((e=>+e.bindType==+a[l]))?.isComplete===i.$g.undone){const e=U()[a[l]],n=()=>{e.onOk?.(),t?.()};return a[l]===i.F4.firstPay?r.sG.Modal.open("rechargeLeastOnceTip",{content:e.tips,okCallback:t}):r.sG.Modal.open("importTips",{tips:e?.tips,showForward:!!e.onOk,onOk:n}),!0}}return!1},U=()=>{const{t:e}=(0,y.QT)();return{[i.F4.SMSVerification]:{tips:e("lobby.event.validTask.unMessage"),onOk:()=>{const{validateConfig:e,initGetredDot:t}=(0,b.h)();e.hasPhoneNumber?r.sG.Modal.open("veriryBindPhone",{verifyScene:s.O.DEPOSIT_GAME_SMS_VERIFY,desensitizedPhoneNumber:e.phoneNumber,onSuccess:async()=>{r.sG.Modal.close("veriryBindPhone"),await t(),await(0,f.b)().getActiveTaskCompleteList(!0)}}):(0,m.V9)()}},[i.F4.bankBinding]:{tips:e("lobby.event.validTask.unBank"),onOk:m.qF},[i.F4.firstPay]:{tips:e("lobby.modal.task.rechargeAtLeastOnce"),onOk:m.vK},[i.F4.BindThirdPartyWallet]:{tips:e("lobby.event.validTask.bindThirdPartyWallet"),onOk:m.qF},[i.F4.emailBinding]:{tips:e("lobby.event.validTask.unEmail"),onOk:m.Yc},[i.F4.BindDigitalCurrency]:{tips:e("lobby.event.validTask.unVirtual"),onOk:m.qF},[i.F4.BindPaymentMethod]:{tips:e("lobby.event.validTask.unCollectionType"),onOk:m.qF},[i.F4.Verified]:{tips:e("lobby.event.validTask.unRealName"),onOk:m.qF},[i.F4.SimilarActivities]:{tips:e("lobby.event.validTask.similarActivities")},[i.F4.AfterDepositAndNoBet]:{tips:e("lobby.event.validTask.afterDepositAndNoBet")}}},V=(e,t=!1)=>{const n=v.cY.isWgPackage;e?.querySelectorAll("a").forEach((e=>{e.target&&"_self"!==e.target||(e.target="_top"),t&&n&&e.addEventListener("click",(t=>{t.preventDefault();const n=e.getAttribute("href");n&&(0,w.MI)(n)}))}))},W=(e,t=1e3*r.sG.Site.getServerTime())=>{const{siteInfos:n}=(0,b.h)(),i=S()(t).utcOffset(n?.timeZone??"");let a;switch(e){case"day":a=S()(t).utcOffset(n?.timeZone??"").endOf("day");break;case"week":a=S()(t).utcOffset(n?.timeZone??"").endOf("isoWeek");break;case"month":a=S()(t).utcOffset(n?.timeZone??"").endOf("month");break;default:throw new Error("Invalid type")}return a.diff(i,"seconds")},K=(e,t=750)=>{const n=document.createElement("div");n.innerHTML=e;const i=e=>{const n=e;if(n.getAttribute){const e=n.getAttribute("style");e&&n.setAttribute("style",(e=>e.replace(/border:\sthin/g,(()=>"border: 1px")))((e=>e.replace(/border:\s1px/g,(()=>"border: thin")))(e).replace(/(\d*\.?\d+)px/g,(e=>{const n=Number(parseFloat(e));return isNaN(n)?"":w.ZP.px2rem(t/750*n)}))))}for(const t of e.childNodes)i(t)};return i(n),n.innerHTML},Y=async({params:e,onError:t,onSuccess:n,followUp:a,checkUserRestrictBefore:o,judgeResBefore:s})=>{const[l,u]=await(0,k.Z)((0,c.be)(e)),d=l;if(l&&B(d))return void o?.(d);o?.(d);const{t:h}=(0,y.QT)();if(s?.(u??{}),l){t?.();const e=d?.data?.msg??h("lobby.reward.base.receivedError").toString();N(e)}else n?.(u),r.sG.Modal.open("receiveAnimation",{aniType:(u.reward||0)>=10?i.ai.TYPE_2:i.ai.TYPE_1,...a})},Q=e=>{const t=[],n=[],r=[],a=[],o=[],{activeList:s}=(0,b.h)()?.getredDot?.activeRedDot||{};return e.forEach((e=>{let c=!1;return s&&(c=!!s.find((t=>t.activeId===e.activeId))),e.status===i.l.Normal&&c?t.push(e):e.status===i.l.End&&c?n.push(e):e.status!==i.l.Normal||c?e.status!==i.l.End||c?void o.push(e):a.push(e):r.push(e)})),[...t,...n,...r,...o,...a]}},80351:function(e,t,n){n.d(t,{s:function(){return b}});var i=n(36630),r=n(85783),a=n(11522),o=n(6309),s=n(50958),c=n(75812),l=n(67476),u=n(44741),d=n(91475),h=n(72189),m=n(2161),g=n(72902),p=n(30381),f=n.n(p),y=n(41800);const b=(0,l.Q_)("newCutOnce",{state:()=>({cutOnceData:{},cutOnceTurnCount:0,cutOnceAnnouncement:[],cutOnceRecordId:0,cutOnceRuleContent:"",cutOnceRecordList:[],cutOnceReceiveStatus:!1,cutOnceCacheList:[],cutOnceSubTaskUserOptType:0,cutOnceBeforeLoginPopType:r.b.never,cutOnceAfterLoginPopType:r.H.never,isCutOnceHaveOpenedToday:h.$.getUserOpeningRecord().isHaveOpenedToday,isCutOnceHaveOpenedEver:h.$.getUserOpeningRecord().isHaveOpenedEver,isCutOnceTodayNoRemind:new a._({createDefault:()=>!1,storeKey:"newCutOnceUserCheckTodayReminderMapper",isPersistUnLogin:!0}),isCutOnceNeverPop:new a._({createDefault:()=>!1,storeKey:"newCutOnceUserCheckNeverReminderMapper",isPersistUnLogin:!0}),cutOnceTabsActive:0,rotateIdxs:[],isTimeoutError:!1,featchAnnouncementLoading:!1,featchCutOnceRecordsLoading:!1,isLoading:!1}),getters:{activeId(){return this.cutOnceData.id||0},announcementData(){const{userInfos:e}=(0,d.h)(),t=String(e?.username||"");return this.cutOnceAnnouncement.find((e=>e.username===t&&this.activeId===e.activeId))?.list||[]},getCutOnceTurnCount(){return+this.activeData.total_lottery_count-+this.activeData.current_lottery_count},activeData(){return this.cutOnceData.activeData||{}},subTaskData(){return this.activeData.SubTaskData||{}}},persist:{enabled:!0,strategies:[{key:"web.lobby.newCutOnece",storage:(0,c.nX)(),paths:["cutOnceAnnouncement","cutOnceCacheList","rotateIdxs"]}]},actions:{async featchAnnouncement(e,t=!1){this.featchAnnouncementLoading=!0;const[n,i]=await(0,y.Z)((0,o.bu)({activeId:e},t));if(n)return console.error("chopOneKnifeAnnouncement error:",n),void(this.featchAnnouncementLoading=!1);const{userInfos:r}=(0,d.h)(),a=String(r?.username||""),s={username:a,activeId:e,list:i?.Data??[]};if(this.cutOnceAnnouncement?.length){const t=JSON.parse(JSON.stringify(this.cutOnceAnnouncement||"[]")).filter((t=>!(t.activeId===e&&t.username===a)));this.cutOnceAnnouncement=[s,...t]}else this.cutOnceAnnouncement=[s];this.featchAnnouncementLoading=!1},async featchCutOnceRecords(e,t=!1){this.featchCutOnceRecordsLoading=!0;const[n,i]=await(0,y.Z)((0,o.h0)({chop_one_knife_id:e},t));n||(this.cutOnceRecordList=i?.Data??[]),this.featchCutOnceRecordsLoading=!1},updateRotateIdxs(e){const{userInfos:t}=(0,d.h)();this.rotateIdxs||(this.rotateIdxs=[]);const n=JSON.parse(JSON.stringify(this.rotateIdxs)),i=n?.find((e=>e.activeId===this.activeId&&String(e.username)===String(t?.username)));i?i.rotateDegIdx=e:n.push({rotateDegIdx:e,username:String(t?.username),activeId:this.activeId}),this.rotateIdxs=n},updateCutOnceTurnCount(e){this.cutOnceTurnCount=e},setCutOnceRecordId(e){this.cutOnceRecordId=e},updateCutOnceRule(e){this.cutOnceRuleContent=e},updateCutOnceData(e){this.cutOnceData=JSON.parse(JSON.stringify(e))},resetCutOnceRecordList(){this.cutOnceRecordList=[]},updateCutOnceReceiveStatus(e){this.cutOnceReceiveStatus=e},setCutOnceSubTaskUserOptType(e){this.cutOnceSubTaskUserOptType=e},updateNewCutOnceHaveOpened(){this.isCutOnceHaveOpenedToday=!0,this.isCutOnceHaveOpenedEver=!0,h.$.setUserOpeningRecord()},setCutOnceTabsActive(e){this.cutOnceTabsActive=e},setIsTimeoutError(e){this.isTimeoutError=e},setIsLoading(e){this.isLoading=e},updateCutOnceCacheList(e){if(e){const{language:t,userInfos:n}=(0,d.h)();e.username=String(n?.platfromid),e.lang=t}this.cutOnceCacheList.unshift(e)},preJudgeOpenNewCutOnce(e){if(!this.cutOnceCacheList?.[0])return!1;const t=this.cutOnceCacheList[0];if(!t?.activeData||!t?.id)return!1;const{isLoginTrigger:n=!1}=e||{},i=f()().unix();return!(t?.endShowTime>0&&i>=t?.endShowTime)&&(0,u.t)({isLoginTrigger:n,activeData:t.activeData,isNeverPop:this.isCutOnceNeverPop.get(),isThisTimeNoPop:this.isCutOnceTodayNoRemind.get()})},openNewCutOnceModal(){this.cutOnceCacheList[0]?.id&&m.Z.Modal.open("newCutOnce",{activeId:this.cutOnceCacheList[0]?.id,isHomeModal:!0}).then((e=>{e.$once("modal:close",(()=>{g.Z.onModalClose("newCutOnce")}))}))},async freshPopData(){const[e,t]=await(0,y.Z)((0,o.p8)());if(e)return;let n=(0,d.h)().userInfos?.member_level;null==n&&(n=1);const a=f()().unix(),c=t?.filter((e=>!(e?.endShowTime>0&&a>=e?.endShowTime||e?.activeData&&e.activeData?.operation&&!(0,s.g)(e.activeData.operation)))),l=c?.find((e=>{const t=e?.userLevel&&e?.userLevel?.split(",")||[];return!(0!==t.length&&!t.includes("0"))||t.includes(String(n))}));if(l&&(l.username=String((0,d.h)()?.userInfos?.platfromid)),this.cutOnceCacheList.length>0&&l){const e=this.cutOnceCacheList[0],t=e?.id===l?.id&&e?.username===l.username,n=e?.activeData,{cycle_type:r}=n,a=n?.time??0,o=n?.period_time??0,s=Number(a)+Number(o),c=(new Date).getTime()/1e3;(!t||s-c<0&&t&&r!==i.IN.Once)&&(this.cutOnceCacheList=[],this.updateCutOnceCacheList(l))}else l&&this.updateCutOnceCacheList(l);this.cutOnceBeforeLoginPopType=l?.activeData?.beforeLoginPopType??r.b.never,this.cutOnceAfterLoginPopType=l?.activeData?.afterLoginPopType??r.H.never},switchCutOncePopStatus(e){"isCutOnceTodayNoRemind"===e&&this.isCutOnceTodayNoRemind.set(!this.isCutOnceTodayNoRemind.get()),"isCutOnceNeverPop"===e&&this.isCutOnceNeverPop.set(!this.isCutOnceNeverPop.get())},resetCutOnceData(){this.cutOnceData={},this.cutOnceReceiveStatus=!1,this.cutOnceSubTaskUserOptType=0,this.cutOnceTurnCount=0,this.cutOnceRecordId=0,this.cutOnceRuleContent=""}}})},98478:function(e,t,n){n.d(t,{b:function(){return S}});var i=n(36630),r=n(60812),a=n(55433),o=n(20144);class s{constructor(){(0,a.Z)(this,"mapper",{}),(0,a.Z)(this,"orderList",[])}get size(){return this.orderList.length}has(e){return Object.prototype.hasOwnProperty.call(this.mapper,e)}get(e){return this.mapper[e]}keys(){return[...this.orderList]}set(e,t){this.has(e)||this.orderList.push(e),o.default.set(this.mapper,e,t)}delete(e){if(!this.has(e))return!1;const t=this.orderList.indexOf(e);return this.orderList.splice(t,1),o.default.delete(this.mapper,e),!0}forEach(e){this.orderList.forEach(((t,n)=>{const i=this.mapper[t];e(i,t,n)}))}map(e){return this.orderList.map(((t,n)=>{const i=this.mapper[t];return e(i,t,n)}))}}var c=n(85783),l=n(86943),u=n(39138),d=n(75812),h=n(67476);var m=n(44741),g=n(91475),p=n(44586),f=n(2161),y=n(72902),b=n(11522),v=n(50958),w=n(72189),C=n(30381),I=n.n(C),T=n(41800);const S=(0,h.Q_)("event",{state:()=>({showSaveShortCutGuide:!1,afterRechargeActivityList:[],afterRechargeActivityModalOpening:!1,categories:[],activeList:[],eventRedDot:null,customizeEvents:{},currentCategoryId:0,currentActiveIndex:0,collectWordsTimes:0,scrollTop:0,offsetHeight:void 0,redPockedStop:!1,isUpdate:!1,detailLoading:!1,showBottom:!1,eventItemTitle:"",saveUrlUuid:(0,p.Z)(),hasAddSaveAddress:!1,cutOnceData:{},cutOnceTurnCount:0,activeId:0,cutOnceAnnouncement:[],cutOnceRecordId:0,cutOnceRuleContent:"",cutOnceRecordList:[],cutOnceReceiveStatus:!1,cutOnceCacheList:[],cutOnceSubTaskUserOptType:0,firstLoaded:!1,featchAnnouncementLoading:!1,featchCutOnceRecordsLoading:!1,cutOnceBeforeLoginPopType:c.b.never,cutOnceAfterLoginPopType:c.H.never,isCutOnceHaveOpenedToday:w.c.getUserOpeningRecord().isHaveOpenedToday,isCutOnceHaveOpenedEver:w.c.getUserOpeningRecord().isHaveOpenedEver,isCutOnceTodayNoRemind:new b._({createDefault:()=>!1,storeKey:"cutOnceUserCheckNeverReminderMapper",isPersistUnLogin:!0}),isCutOnceNeverPop:new b._({createDefault:()=>!1,storeKey:"cutOnceUserCheckTodayReminderMapper",isPersistUnLogin:!0}),rotateIdxs:[],cutOnceTabsActive:0,activeTaskCompleteList:[],refreshing:!1,isTimeoutError:!1,isLoading:!1,eventListErrInfo:null}),getters:{getActiveListFlat(){return this.activeList},mapperCategoryIdToActivity(){((e,t)=>{if(!t)return;const n=new Map;e.forEach((e=>(e.activeCount=0,n.set(e.activeId,e))));const{activeList:i}=t.activeRedDot;i.forEach((e=>{const t=n.get(e.activeId);t&&(t.activeCount=e.activeCount,t.activeAmount=e.activeAmount)}))})(this.activeList,this.eventRedDot);const e=new s;return this.activeList.forEach((t=>{t.categories.split(",").map((e=>Number(e))).forEach((n=>{const i=e.get(n)||[];i.push(t),e.set(n,i)}))})),e.forEach((e=>{e.sort(((e,t)=>{const n=e.activeCount||0;return(t.activeCount||0)-n}))})),e},categoriesHasRedDotList(){((e,t)=>{if(!t)return;const n=new Map;e.forEach((e=>(e.activeCount=0,n.set(e.categoryId,e))));const{categoryList:i}=t.activeRedDot;i.forEach((e=>{const t=n.get(e.categoryId);t&&(t.activeCount=e.activeCount,t.activeAmount=e.activeAmount)}))})(this.categories,this.eventRedDot);const e=new Set(this.mapperCategoryIdToActivity.keys());return this.categories.filter((t=>e.has(t.categoryId)))},announcementData(){const{userInfos:e}=(0,g.h)(),t=String(e?.username||"");return this.cutOnceAnnouncement.find((e=>e.username===t&&this.cutOnceData?.id===e.activeId))?.list||[]},cutListMap(){const e=new Map;return this.cutOnceCacheList?.forEach((t=>{e.set(t.id,t)})),e}},persist:{enabled:!0,strategies:[{key:"web.lobby.event",storage:(0,d.nX)({setItem(e,t){const n=JSON.parse(t)||{},i=new s,r=n.activeList.reduce(((e,t)=>(t.categories.split(",").map((e=>Number(e))).reduce(((e,t)=>{const n=i.get(t)||0;return n<10&&(e=!0),i.set(t,n+1),e}),!1)&&e.push(t),e)),[]),a=JSON.stringify({categories:n.categories,activeList:r});localStorage.setItem(e,a)},removeItem:e=>localStorage.removeItem(e)}),paths:["categories","rotateIdxs","activeList","saveUrlUuid","hasAddSaveAddress","cutOnceAnnouncement","cutOnceCacheList","activeTaskCompleteList"]}]},actions:{setShowSaveShortCutGuide(e){this.showSaveShortCutGuide=e},setIsTimeoutError(e){this.isTimeoutError=e},async getAfterRechargeActivityList(){const[e,t]=await(0,T.Z)((0,l.V$)());return e?(console.error("AfterRechargeActivity fetch error:",e),[]):(this.afterRechargeActivityList=t||[],t||[])},setHasAddSaveAddress(e){this.hasAddSaveAddress=e},async freshEventCategoryAndActivity(e=!1){const[t,n]=await(0,T.Z)((0,l.U)(e));if(this.eventListErrInfo=t,t)return console.error("cashback fetch error:",t),[];n.categoryList?.sort(((e,t)=>e.sortNumber-t.sortNumber)),this.categories=n.categoryList;const i=I()();return this.activeList=(n.activeList||[])?.reduce(((e,t)=>{try{t.imgId&&(t.imgIdParsed=JSON.parse(t.imgId),t.imgId="")}catch(n){return e}return e.push(t),e}),[]).filter((e=>{const t=e.endShowTime;return t&&i.unix()<t||!t})),this.setFirstLoaded(!0),this.activeList},async freshEventRedDot(e=!1){if(!(0,g.h)().hasLogined)return void(this.eventRedDot=new r.PF);const[t,n]=await(0,T.Z)((0,r.K4)(e));localStorage.setItem("totalRedDotsCount",JSON.stringify(n)),t?console.error("cashback fetch error:",t):this.eventRedDot=n},async featchAnnouncement(e,t=!1){this.featchAnnouncementLoading=!0;const[n,i]=await(0,T.Z)((0,u.tU)({activeId:e},t));if(n)return console.error("chopOneKnifeAnnouncement error:",n),void(this.featchAnnouncementLoading=!1);const{userInfos:r}=(0,g.h)(),a=String(r?.username||""),o={username:a,activeId:e,list:i?.Data??[]};if(this.cutOnceAnnouncement?.length){const t=JSON.parse(JSON.stringify(this.cutOnceAnnouncement||"[]")).filter((t=>!(t.activeId===e&&t.username===a)));this.cutOnceAnnouncement=[o,...t]}else this.cutOnceAnnouncement=[o];this.featchAnnouncementLoading=!1},async featchCutOnceRecords(e,t=!1){this.featchCutOnceRecordsLoading=!0;const[n,i]=await(0,T.Z)((0,u.ON)({chop_one_knife_id:e},t));n||(this.cutOnceRecordList=i?.Data??[]),this.featchCutOnceRecordsLoading=!1},setCurrentCategoryId(e){this.currentCategoryId=e},setFirstLoaded(e){this.firstLoaded=e},setAfterRechargeActivityModalOpening(e){this.afterRechargeActivityModalOpening=e},setCurrentIndex(e){this.currentActiveIndex=e},setScrollTop(e){this.scrollTop=e},setRedPockedStop(e){this.redPockedStop=e},setOffsetHeight(e){this.offsetHeight=e},setCollectWordsTimes(e){this.collectWordsTimes=e},updateIndex(e){this.isUpdate=e},setDetailLoading(e){this.detailLoading=e},setShowBottom(e){this.showBottom=e},seteEventItemTitle(e){this.eventItemTitle=e},updateCutOnceTurnCount(e){this.cutOnceTurnCount=e},setActiveId(e){this.activeId=e},setCutOnceRecordId(e){this.cutOnceRecordId=e},updateCutOnceRule(e){this.cutOnceRuleContent=e},updateCutOnceData(e){this.cutOnceData=e},resetCutOnceRecordList(){this.cutOnceRecordList=[]},updateCutOnceReceiveStatus(e){this.cutOnceReceiveStatus=e},setCutOnceSubTaskUserOptType(e){this.cutOnceSubTaskUserOptType=e},updateNewCutOnceHaveOpened(){this.isCutOnceHaveOpenedToday=!0,this.isCutOnceHaveOpenedEver=!0,w.c.setUserOpeningRecord()},setCutOnceTabsActive(e){this.cutOnceTabsActive=e},updateRotateIdxs(e,t){const{userInfos:n}=(0,g.h)();this.rotateIdxs||(this.rotateIdxs=[]);const i=this.cutOnceData?.id,r=JSON.parse(JSON.stringify(this.rotateIdxs)),a=r?.find((e=>e.activeId===i&&String(e.username)===String(n?.platfromid)));a?(a.rotateDegIdx=e,a.count=t):r.push({rotateDegIdx:e,username:String(n?.platfromid),count:t,activeId:i}),this.rotateIdxs=r},updateCutOnceCacheList(e){if(e){const{language:t,userInfos:n}=(0,g.h)();e.username=String(n?.platfromid),e.lang=t}this.cutOnceCacheList.unshift(e)},preJudgeOpenCutOnce(e){const{cutOnceCacheList:t}=S();if(!t?.[0])return!1;const n=t[0];if(!n?.activeData||!n?.id)return!1;const{isLoginTrigger:i=!1}=e||{},r=I()().unix();return!(n?.endShowTime>0&&r>=n?.endShowTime)&&(0,m.A)({isLoginTrigger:i,activeData:n.activeData,isNeverPop:this.isCutOnceNeverPop.get(),isThisTimeNoPop:this.isCutOnceTodayNoRemind.get()})},openCutOnceModal(){const{cutOnceCacheList:e}=S();e[0]?.id&&f.Z.Modal.open("cutOnce",{activeId:e[0]?.id,isHomeModal:!0}).then((e=>{e.$once("modal:close",(()=>{y.Z.onModalClose("cutOnce")}))}))},async freshPopData(){const[e,t]=await(0,T.Z)((0,u.We)());if(e)return;let n=(0,g.h)().userInfos?.member_level;null==n&&(n=1);const r=I()().unix(),a=t?.filter((e=>!(e?.endShowTime>0&&r>=e?.endShowTime||e?.activeData&&e.activeData?.operation&&!(0,v.g)(e.activeData.operation)))),o=a?.find((e=>{const t=e?.userLevel&&e?.userLevel?.split(",")||[];return!(0!==t.length&&!t.includes("0"))||t.includes(String(n))}));if(o&&(o.username=String((0,g.h)()?.userInfos?.platfromid)),this.cutOnceCacheList.length>0&&o){const e=this.cutOnceCacheList[0],t=e?.id===o?.id&&e?.username===o.username,n=e?.activeData,{cycle_type:r}=n,a=n?.time??0,s=n?.period_time??0,c=Number(a)+Number(s),l=(new Date).getTime()/1e3;(!t||c-l<0&&t&&r!==i.IN.Once)&&(this.cutOnceCacheList=[],this.updateCutOnceCacheList(o))}else o&&this.updateCutOnceCacheList(o);this.activeId=o?.id??0,this.cutOnceBeforeLoginPopType=o?.activeData?.beforeLoginPopType??c.b.never,this.cutOnceAfterLoginPopType=o?.activeData?.afterLoginPopType??c.H.never},switchCutOncePopStatus(e){"isCutOnceTodayNoRemind"===e&&this.isCutOnceTodayNoRemind.set(!this.isCutOnceTodayNoRemind.get()),"isCutOnceNeverPop"===e&&this.isCutOnceNeverPop.set(!this.isCutOnceNeverPop.get())},resetCutOnceData(){this.cutOnceData={},this.cutOnceReceiveStatus=!1,this.cutOnceSubTaskUserOptType=0,this.cutOnceTurnCount=0,this.cutOnceRecordId=0,this.cutOnceRuleContent=""},async getActiveTaskCompleteList(e=!1){const[t,n]=await(0,T.Z)((0,l.dh)(e));if(!t)return this.activeTaskCompleteList=n,n},updateEventData(){this.refreshing||(this.refreshing=!0)}}})},50958:function(e,t,n){n.d(t,{g:function(){return a}});var i=n(91475);let r;!function(e){e[e.Channels=1]="Channels",e[e.Agents=2]="Agents"}(r||(r={}));const a=e=>{if(e){if(!e.operationStatus)return!0;const t=e.operationId?.split(",")||[],{userInfos:n,hasLogined:a}=(0,i.h)();if(!a)return!1;if(e.operationType===r.Channels&&n?.regPkgId)return t.includes(n.regPkgId?.toString());if(e.operationType===r.Agents&&n?.parentUsername)return t.includes(n.parentUsername?.toString())}return!0}},28199:function(e,t,n){n.d(t,{N:function(){return d}});var i=n(36630),r=n(26420),a=n(58217),o=n(91475),s=n(11974),c=n(12832),l=n(52204);const u=(e,t)=>{const n=e.indexOf(t);return-1===n?t:n},d=()=>{const{t:e}=(0,a.QT)(),{getActivesAuthInfos:t,getredDot:n,getReturnGoldIsHide:d,getVipSwitchIsHide:h,getRechargeFundIsHide:m,activePageSort:g}=(0,o.h)(),{isShowTaskPageEntrance:p}=(0,s.NV)(),f=g&&g?.split(",").map(Number)||[],{isTheme20:y}=c.Z.currentTheme();return[{label:e(y?"lobby.theme20_dz.event":"lobby.system.activity_u"),value:r.TabsEnum.EVENT,hide:!t.activeCount,redDot:n?.activeCount,sort:i.Iy.Active},{label:e("lobby.system.task_u"),value:r.TabsEnum.TASK,hide:c.Z.isUniversalThemeType&&!p,redDot:p?n?.taskCount:0,sort:i.Iy.Task},{label:e("lobby.footer.quickJump.vip"),value:r.TabsEnum.VIP,hide:h,redDot:n?.vipCount,sort:i.Iy.Vip},{label:e("lobby.footer.quickJump.backwater"),value:r.TabsEnum.BACKWATER,hide:d,redDot:n?.returnGoldCount,sort:i.Iy.Cashback},{label:e("lobby.system.toBeCollected_u"),value:r.TabsEnum.CANRECEIVE,redDot:n?.receiveLogCount,sort:i.Iy.CanReceive},{label:e("lobby.system.interest"),value:r.TabsEnum.INTEREST,hide:(0,l.Z)().getYuebaoSwitchIsHide,redDot:n?.yueBaoCount,sort:i.Iy.Interest},{label:e("lobby.system.pickRecord_u"),value:r.TabsEnum.RECORDS,sort:i.Iy.Records},{label:e("lobby.system.rechargeFund"),value:r.TabsEnum.RECHARGE_FUND,hide:m,redDot:n?.rechargeFundCount,sort:i.Iy.RechargeFund}].sort(((e,t)=>u(f,e.sort)-u(f,t.sort)))}},44741:function(e,t,n){n.d(t,{A:function(){return s},t:function(){return l}});var i=n(36630),r=n(7085),a=n(50498);const o=new r.f,s=e=>{const{isLoginTrigger:t,activeData:n,isNeverPop:r,isThisTimeNoPop:s}=e;if(n?.SubTaskData?.receiveStatus&&[i.Yq.HasReceive,i.Yq.Distributed].includes(n.SubTaskData?.receiveStatus))return!1;if(r||s)return!1;if((0,a.z)())return!1;return o.run({isLoginTrigger:t})},c=new r.x,l=e=>{const{isLoginTrigger:t,activeData:n,isNeverPop:r,isThisTimeNoPop:o}=e;if(n?.SubTaskData?.receiveStatus&&[i.Yq.HasReceive,i.Yq.Distributed].includes(n.SubTaskData?.receiveStatus))return!1;if(r||o)return!1;if((0,a.z)())return!1;return c.run({isLoginTrigger:t})}},72189:function(e,t,n){n.d(t,{$:function(){return c},c:function(){return o}});var i=n(55433),r=n(91475);class a{constructor(){const e=localStorage.getItem(a.storeKey)||"{}";this.allUserIsHaveOpenedData=JSON.parse(e)}getUserOpeningRecord(){const e=String((0,r.h)()?.userInfos?.username||"unlogin"),t={isHaveOpenedToday:!1,isHaveOpenedEver:!1},n=this.allUserIsHaveOpenedData[e];t.isHaveOpenedEver=Boolean(n);return n===(new Date).getDate()&&(t.isHaveOpenedToday=!0),t}setUserOpeningRecord(){const e=String((0,r.h)()?.userInfos?.username||"unlogin");this.allUserIsHaveOpenedData[e]=(new Date).getDate();const t=JSON.stringify(this.allUserIsHaveOpenedData);localStorage.setItem(a.storeKey,t)}}(0,i.Z)(a,"storeKey","allUserOpeningCutOnceRecord");const o=new a;class s{constructor(){const e=localStorage.getItem(s.storeKey)||"{}";this.allUserIsHaveOpenedData=JSON.parse(e)}getUserOpeningRecord(){const e=String((0,r.h)()?.userInfos?.username||"unlogin"),t={isHaveOpenedToday:!1,isHaveOpenedEver:!1},n=this.allUserIsHaveOpenedData[e];t.isHaveOpenedEver=Boolean(n);return n===(new Date).getDate()&&(t.isHaveOpenedToday=!0),t}setUserOpeningRecord(){const e=String((0,r.h)()?.userInfos?.username||"unlogin");this.allUserIsHaveOpenedData[e]=(new Date).getDate();const t=JSON.stringify(this.allUserIsHaveOpenedData);localStorage.setItem(s.storeKey,t)}}(0,i.Z)(s,"storeKey","allUserOpeningNewCutOnceRecord");const c=new s},36987:function(e,t,n){n.d(t,{c:function(){return r}});var i=n(75812);const r=(0,n(67476).Q_)("feedback",{state:()=>({hasCreateNewFeedback:!1,isInnerDetail:!1,availableRewards:0,unRead:0,getUserFeedbackAxiosError:null,activeKey:"0",feedbackItem:{}}),getters:{},actions:{setHasCreateNewFeedback(e){this.hasCreateNewFeedback=e},setUnRead(e){this.unRead=e},setAvailableRewards(e){this.availableRewards=e},setGetUserFeedbackAxiosError(e){this.getUserFeedbackAxiosError=e},setActiveKey(e){this.activeKey=e},setFeedbackItem(e){this.feedbackItem=e}},persist:{enabled:!0,strategies:[{key:"web.lobby.feedback",storage:(0,i.nX)(),paths:["feedbackItem"]}]}})},29436:function(e,t,n){n.d(t,{H:function(){return c}});var i=n(15996),r=n(75812),a=n(67476),o=n(91475),s=n(41800);const c=(0,a.Q_)("finance/shared",{state:()=>({onlinePayBankList:[],currency:""}),persist:{enabled:!0,strategies:[{key:"web.lobby.withdrawBank",storage:(0,r.nX)(),paths:["onlinePayBankList","currency"]}]},getters:{mainStore:()=>(0,o.h)(),userCurrency:()=>(0,o.h)().userInfos?.currency??"CNY"},actions:{async initOnlinePayBankList(e,t){const n=this.mainStore.siteCode,[r,a]=await(0,s.Z)((0,i.IE)({merchCode:e,siteCode:n,currency:t}));r?console.error("init bank list failed:",r):this.onlinePayBankList=a.data.data??[]}}})},5621:function(e,t,n){let i;n.d(t,{u:function(){return i}}),function(e){e[e.WITHDRAW=0]="WITHDRAW",e[e.WITHDRAW_RECORD=1]="WITHDRAW_RECORD",e[e.HEAVEN_RECORD=2]="HEAVEN_RECORD",e[e.ACCOUNT=3]="ACCOUNT"}(i||(i={}))},23828:function(e,t,n){n.d(t,{g:function(){return u}});var i=n(8409),r=n(67476),a=n(42790),o=n(58217),s=n(91475),c=n(56343),l=n(41800);const u=(0,r.Q_)("views/forbidden-self",{state:()=>({selfRestraintInfo:{},restrict:{},selfRestraintInfoStatusList:[{value:i.v.isRestraintGame,label:"lobby.center.forbiddenSelf.restrict1",show:!0},{value:i.v.isRestraintBenefit,label:"lobby.center.forbiddenSelf.restrict2",show:!0},{value:i.v.isRestraintLogin,label:"lobby.center.forbiddenSelf.restrict3",show:!0},{value:i.v.isRestraintDeposit,label:"lobby.center.forbiddenSelf.restrict4",show:!0}]}),actions:{async getSelfRestraintInfo(){const[e,t]=await(0,l.Z)((0,a.df)());if(!e&&t){this.selfRestraintInfo=t;const e=[{value:i.v.isRestraintGame,label:"lobby.center.forbiddenSelf.restrict1",show:t.isRestraintGame===i.j.on},{value:i.v.isRestraintBenefit,label:"lobby.center.forbiddenSelf.restrict2",show:t.isRestraintBenefit===i.j.on},{value:i.v.isRestraintLogin,label:"lobby.center.forbiddenSelf.restrict3",show:t.isRestraintLogin===i.j.on},{value:i.v.isRestraintDeposit,label:"lobby.center.forbiddenSelf.restrict4",show:t.isRestraintDeposit===i.j.on}];this.selfRestraintInfoStatusList=e.filter((e=>e.show))}},async getRestrict(){const[e,t]=await(0,l.Z)((0,a.hw)());!e&&t&&(this.restrict=t)},async updateRestrict(e){const[t,n]=await(0,l.Z)((0,a.y)(e));if(!t&&n){this.restrict=n;const{updateUserInfos:e,userInfos:t}=(0,s.h)();e({...t,restrictInfo:n})}if(t)return Promise.reject(t)},getBannedStr(e,t,n){const i=e||this.restrict.startTime,r=t||this.restrict.endTime,a=n||this.restrict.status?.[0];if(!i||!r||!a)return"";const{t:l}=(0,o.QT)(),{language:u}=(0,s.h)(),d=c.Z.format(i,"zh_CN"===u?"YYYY-MM-DD":"MM/DD/YYYY"),h=Math.round((r-i)/60/60/24/30),m=h>=12,g=m?Math.round(h/12):h,p=l(m?"lobby.center.forbiddenSelf.year":"lobby.center.forbiddenSelf.month",{num:g}),f=l(this.selfRestraintInfoStatusList.find((e=>e.value===a))?.label);return l("lobby.center.forbiddenSelf.banned",{date:d,name:f,time:p})}}})},424:function(e,t,n){let i;n.d(t,{P:function(){return i}}),function(e){e[e.Normal=-1]="Normal",e[e.Hot=0]="Hot",e[e.Recent=100]="Recent",e[e.Collenct=101]="Collenct",e[e.SearchResult=99]="SearchResult"}(i||(i={}))},37810:function(e,t,n){n.d(t,{Z:function(){return _}});var i,r,a,o,s,c,l,u,d,h,m,g,p,f,y,b=n(55433),v=n(12040),w=n(38821),C=n(59890),I=n(34731),T=n(424),S=n(65074),P=n(79026),L=n(96309),k=n(91475);let _=(i=(0,w.wA)({name:"CategoryWatchListenerMixin"}),r=(0,w.RL)("language"),a=(0,w.RL)("isLogin"),o=(0,w.RL)("currency"),s=(0,w.RL)("platformId",{immediate:!0}),c=(0,w.RL)("language"),l=(0,w.RL)("isLogin"),u=(0,w.RL)("currency"),d=(0,w.RL)("gameCategoryId",{immediate:!0}),h=(0,w.RL)("language"),m=(0,w.RL)("isLogin"),g=(0,w.RL)("currency"),p=(0,w.RL)("activeTabKey",{immediate:!0}),i((y=class extends w.XY{constructor(...e){super(...e),(0,b.Z)(this,"gameStore",(0,L.g)()),(0,b.Z)(this,"mainStore",(0,k.h)()),(0,b.Z)(this,"errors",{networkError:!1,retryApi:this.onPlatformIdChange}),(0,b.Z)(this,"activeTabKey",T.P.Hot)}get currency(){return this.mainStore.userInfos?.currency}get language(){return this.mainStore.language}get isLogin(){return this.mainStore.hasLogined}get gameCategoryId(){return S.$v.gameCategoryId}get platformId(){return S.$v.platformId}get allPlatformId(){return Number(`${this.gameCategoryId}${C.$8}`)}onPlatformIdChange(){const{fetchPlatformGameList:e}=this.gameStore,{gameCategoryId:t,platformId:n,allPlatformId:i}=this;I.rI.includes(t)&&n!==i&&this.setLoadingAndFetch((()=>e({gameCategoryId:t,platformId:n})))}onGameCategoryIdChange(){const{fetchDemoGameList:e,fetchHotGameList:t,fetchRecentGameList:n,fetchFavoriteGameList:i}=this.gameStore;if(I.Hf.includes(this.gameCategoryId))switch(this.gameCategoryId){case I.ck.Demo:this.setLoadingAndFetch(e);break;case T.P.Hot:this.setLoadingAndFetch(t);break;case T.P.Recent:this.setLoadingAndFetch(n);break;case T.P.Collenct:this.setLoadingAndFetch(i)}}async setLoadingAndFetch(e){const{setGameListLoading:t}=(0,L.g)();t(!0);let n=!1;e().catch((()=>{n=!0,this.errors={networkError:!0,retryApi:()=>this.setLoadingAndFetch(e)}})).finally((()=>{n||this.errors.networkError&&(this.errors.networkError=!1),t(!1)}))}async onActvieTabKeyChange(){const{fetchFavoriteGameList:e,fetchRecentGameList:t,fetchHotGameList:n}=(0,L.g)();switch(this.activeTabKey){case P.H.hotAll:case T.P.Hot:this.setLoadingAndFetch(n);break;case P.H.recentAll:case T.P.Recent:this.setLoadingAndFetch(t);break;case P.H.collectAll:case T.P.Collenct:this.setLoadingAndFetch(e)}}},(0,v.Z)(y.prototype,"onPlatformIdChange",[r,a,o,s],Object.getOwnPropertyDescriptor(y.prototype,"onPlatformIdChange"),y.prototype),(0,v.Z)(y.prototype,"onGameCategoryIdChange",[c,l,u,d],Object.getOwnPropertyDescriptor(y.prototype,"onGameCategoryIdChange"),y.prototype),(0,v.Z)(y.prototype,"onActvieTabKeyChange",[h,m,g,p],Object.getOwnPropertyDescriptor(y.prototype,"onActvieTabKeyChange"),y.prototype),f=y))||f)},79026:function(e,t,n){n.d(t,{H:function(){return a}});var i=n(59890),r=n(34731);const a={recentAll:Number(`${r.ck.Recent}${i.$8}`),collectAll:Number(`${r.ck.Collenct}${i.$8}`),hotAll:Number(`${r.ck.Hot}${i.$8}`)}},99323:function(e,t,n){n.d(t,{Z:function(){return b}});var i=n(53158),r=n(55433),a=n(12040),o=n(38821),s=n(6927);let c=e=>{const{Landscape:t,Square:n,Vertical:i}=s.eT,r=[t,n,i];return c=e=>r.includes(e),c(e)};var l,u,d,h,m,g,p,f=n(91475),y="R6qXmju7uQLh0gKxCyIM";let b=(l=(0,o.wA)({name:"GameListScrollDiv"}),u=(0,o.r8)(),d=(0,o.RL)("gameListConfigChange"),l((p=class extends o.XY{constructor(...e){super(...e),(0,i.Z)(this,"gameListConfigChange",g,this)}get isWeb(){return(0,f.h)().isWeb}scrollTop(){if(this.isWeb)return;const e=this.$refs.gameListScrollRef;e&&(e.scrollTop=0)}render(){return(0,arguments[0])("div",{ref:"gameListScrollRef",class:y},[this.$slots.default])}},(0,r.Z)(p,"getSubPageGameListWrapHeight",((e,t=!1)=>((e,t=!1)=>{const n={[s.eT.Square]:`calc(${window.innerHeight}px - 3.4rem)`,[s.eT.Landscape]:`calc(${window.innerHeight}px - 3.3rem)`,[s.eT.Vertical]:`calc(${window.innerHeight}px - 3.5rem)`},i=c(e)?n[e]:`calc(${window.innerHeight}px - ${e})`;return t?i:`calc(${i} + 0.7rem)`})(e,t))),m=p,g=(0,a.Z)(m.prototype,"gameListConfigChange",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,a.Z)(m.prototype,"scrollTop",[d],Object.getOwnPropertyDescriptor(m.prototype,"scrollTop"),m.prototype),h=m))||h)},63325:function(e,t,n){n.d(t,{Z:function(){return l}});var i,r=n(38821),a=n(71743),o="TgC3WbhN4Xsf37ArtVGS",s="Ae3q9LAOsTe0KgUHcW39",c="soB6BP1aJAlXkidhuwMr";let l=(0,r.wA)({name:"GuidingArrow"})(i=class extends r.XY{render(){const e=arguments[0];return e("div",{class:[o,"guiding"]},[e("icon-sprite",{attrs:{sprite:(0,a.T9)("img_scroll_jt")},class:s}),e("icon-sprite",{attrs:{sprite:(0,a.T9)("img_scroll_jt")},class:c})])}})||i},99529:function(e,t,n){n.d(t,{n3:function(){return hi},yX:function(){return q},Rc:function(){return kn}});var i,r=n(82729),a=n.n(r),o=n(55433),s=n(12040),c=n(38821),l=n(6927),u=n(29339),d=n(70753),h=n(424),m=n(23474),g=n(46851),p=n(29599),f=n(36476),y=n(71743),b=n(65074),v=n(96309),w=n(58217),C=n(94894),I=n(91475);let T=(0,c.wA)({name:"CalculateSizeDiv"})(i=class extends c.XY{constructor(...e){super(...e),(0,o.Z)(this,"mainStore",(0,I.h)())}mounted(){const{stop:e}=(0,C.Z)(this.$refs.divRef,(({height:e})=>{this.$emit("divHeightChange",e+"px")}));this.$once("hook:beforeDestroy",e)}render(){return(0,arguments[0])("div",{ref:"divRef"},[this.$slots.default])}})||i;var S,P,L,k,_,E,O,R=T,A=n(73389),D=n(12832),x=n(33442);let Z=(S=(0,c.wA)({name:"TabWatchListenerMixin"}),P=(0,c.RL)("language"),L=(0,c.RL)("isLogin"),k=(0,c.RL)("currency"),_=(0,c.RL)("activeTabKey",{immediate:!0}),S((O=class extends c.XY{constructor(...e){super(...e),(0,o.Z)(this,"gameStore",(0,v.g)()),(0,o.Z)(this,"mainStore",(0,I.h)()),(0,o.Z)(this,"errors",{networkError:!1,retryApi:this.onActvieTabKeyChange}),(0,o.Z)(this,"activeTabKey",x.P.Hot)}get currency(){return this.mainStore.userInfos?.currency}get language(){return this.mainStore.language}get isLogin(){return this.mainStore.hasLogined}async setLoadingAndFetch(e){const{setGameListLoading:t}=(0,v.g)();t(!0);let n=!1;e().catch((()=>{n=!0,this.errors={networkError:!0,retryApi:()=>this.setLoadingAndFetch(e)}})).finally((()=>{n||this.errors.networkError&&(this.errors.networkError=!1),t(!1)}))}onActvieTabKeyChange(){const{fetchFavoriteGameList:e,fetchRecentGameList:t,fetchHotGameList:n}=(0,v.g)();switch(this.activeTabKey){case x.P.Hot:this.setLoadingAndFetch(n);break;case x.P.Recent:this.setLoadingAndFetch(t);break;case x.P.Collenct:this.setLoadingAndFetch(e);break;default:this.setLoadingAndFetch(n)}}get listData(){const{currentCollectGameList:e,currentHotGameList:t,currentRecentGameList:n}=this.gameStore;switch(this.activeTabKey){case x.P.Hot:return t();case x.P.Collenct:return e();case x.P.Recent:return n();default:return t()}}},(0,s.Z)(O.prototype,"onActvieTabKeyChange",[P,L,k,_],Object.getOwnPropertyDescriptor(O.prototype,"onActvieTabKeyChange"),O.prototype),E=O))||E);var N,M,B,G,H,$,F={searchGame:"RmDh6yH83sGB_jMs62bi",searchHistory:"Ah1btv7rwwzRFZHFkBh2",recentSearch:"BbCWc5HBE29rTXaWvmW9",searchContent:"KPde_9JUTJjmM6WyyeRA",close:"KKC8g8fwEgX5oB62ad6V",isDQContent:"aUccedu3xHLFaCNRQztr",gameListBox:"q08VDIoYHmLm5ho8Vbdd",commonTabs:"Sc85gHgVp15L77J3KiRE",tabItemTitle:"DV51LQAwvietilum_pyq",tabItemName:"ZnwogonrknrNpZySmmbl",noSearchHistoryWrap:"lA1bhtfSjKD6LR4mVNne",content:"WXHWl7sXTaF4jlbVdaLe",common_bganimation:"KekHrdoI3a5E1mJV_Xp3"};let q=(N=(0,c.wA)({name:"NormalSearchGame"}),M=(0,c.RL)("mainStore.language",{immediate:!0}),B=(0,c.RL)("mainStore.userInfos.currency",{immediate:!0}),G=(0,d.K4)(500),N(($=class extends((0,c.Wr)(c.XY,Z)){constructor(...e){super(...e),(0,o.Z)(this,"gameStore",(0,v.g)()),(0,o.Z)(this,"state",{current:1,total:0,searchValue:"",gameList:[],searchHistoryHeight:"",focus:!1})}get isSearchHistory(){return this.gameStore.searchHistory.length>0}get renderSearchHistoryData(){const{searchHistory:e}=this.gameStore;return e.length>0?e.reverse():[]}get tabs(){const{t:e}=(0,w.QT)();return[{key:h.P.SearchResult,name:b.$v.isChinese?e("lobby.game.searchResults"):e("lobby.game.search"),img:A.Z.gameTab[h.P.SearchResult]},{key:h.P.Hot,name:e("lobby.game.allHot"),img:A.Z.gameTab[h.P.Hot]},{key:h.P.Recent,name:b.$v.isChinese?e("lobby.game.recent"):e("lobby.game.loadingRecent"),img:A.Z.gameTab[h.P.Recent]},{key:h.P.Collenct,name:b.$v.isChinese?e("lobby.game.collect"):e("lobby.game.loadingCollect"),img:A.Z.gameTab[h.P.Collenct]}]}get currentListData(){return this.activeTabKey===h.P.SearchResult?this.state.gameList:this.listData}updateSearchValue(e){this.setState({searchValue:e}),this.searchGame()}clearSearchHistory(){const{setSearchHistory:e}=this.gameStore;this.setState({searchValue:""}),e([])}resetErrorStatus(){this.errors.networkError&&(this.errors.networkError=!1)}deleteSearchHistory(e){const{setSearchHistory:t,searchHistory:n}=this.gameStore;t(a()(n,(t=>t!==e)))}async searchGame(){if(this.state.focus=!1,!this.state.searchValue.trim())return;this.resetErrorStatus();const{setAllGameList:e,setGameListLoading:t,searchHistory:n,setSearchHistory:i}=this.gameStore;this.activeTabKey!==h.P.SearchResult&&(this.activeTabKey=h.P.SearchResult);const r=this.state.searchValue.trim();t(!0),i([...new Set([...n.filter((e=>e!==r)),r])]);const a=await m.r.searchGameList(r).catch((()=>{this.errors={networkError:!0,retryApi:this.searchGame.bind(this)}})).finally((()=>{t(!1)})),o={key_word:r,result_number:a?.length??0};g.xN.dispatch({type:"REPORT_MANAGER",eventName:"ReturnSearchResults",payload:o}),window.ReporterMananger?.updateSerachStatus({...o,gameList:a}),this.setState({gameList:a}),e(a||[])}renderSearchHistory(){const e=this.$createElement,{t:t}=(0,w.QT)();return e("div",{class:F.searchHistory},[e("div",{class:F.recentSearch},[e("div",[e("icon-sprite",{attrs:{sprite:(0,y.T9)("comm_icon_clock")}}),e("span",[t("lobby.game.searchHistory")])]),e("div",{directives:[{name:"show",value:!this.state.focus||this.state.focus&&!this.state.searchValue}],on:{click:this.clearSearchHistory}},[e("icon-sprite",{attrs:{sprite:(0,y.T9)("comm_icon_del")}}),e("span",[t("lobby.game.deleteAll")])])]),e("ul",{class:F.searchContent},[this.renderSearchHistoryData.map(((t,n)=>e("li",{key:`${t}-${n}`,on:{click:()=>this.updateSearchValue(t)}},[e("span",[t]),e("div",{class:F.close,on:{click:e=>{e.stopPropagation(),e.stopImmediatePropagation(),this.deleteSearchHistory(t)}}},[e("icon-sprite",{attrs:{sprite:(0,y.T9)("comm_icon_x")}})])])))])])}onTrigger(){return this.state.searchValue&&this.setState({searchValue:""}),this.setState({gameList:[]}),this.resetErrorStatus(),!0}get listCardType(){return b.$v.isIconStyleVertical?l.eT.Vertical:l.eT.Square}async onInputChange(e){this.setState({searchValue:e}),e||(this.setState({gameList:[]}),window.ReporterMananger?.updateSerachStatus())}get gameListScrollHeight(){const e=this.state.searchHistoryHeight.replace("px","");return`calc(${window.innerHeight-Number(e)}px - 2.55rem)`}created(){const{activeTabkey:e}=this.$route.query,t=[h.P.Recent,h.P.Collenct];e&&t.includes(Number(e))&&(this.activeTabKey=Number(e))}render(){const e=arguments[0],{t:t}=(0,w.QT)(),{isStake:n,isDQ:i}=D.Z.currentTheme();return e(u.tK,{attrs:{titleContent:t("lobby.game.search"),showBack:!0},class:F.searchGame},[e("div",{class:{[F.noSearchHistoryWrap]:!this.isSearchHistory}},[e(p.Rj,{attrs:{value:this.state.searchValue,background:!1},on:{change:this.onInputChange,submit:()=>this.searchGame(),focus:()=>this.state.focus=!0}}),e(R,{on:{divHeightChange:e=>this.state.searchHistoryHeight=e}},[this.isSearchHistory&&this.renderSearchHistory()])]),e("div",{class:{[F.content]:!0,[F.stakeContent]:n,[F.isDQContent]:i}},[e(u.kx,{attrs:{soleId:"searchTabs",needAutoCenter:!0,tabType:f.p.LARGE_TEXT,isScrollX:!0,persistedActiveName:"",itemHeight:70,tabsLeftMargin:0,itemSpace:30,tabsNavHiddenForOne:!0,showHoverTips:!1,itemWidth:"auto",renderList:this.tabs.map((t=>({value:t.key,label:()=>e("div",{class:F.tabItemTitle},[e("my-img",{attrs:{src:t.img,alt:t.name,useSkeleton:!0,width:38,height:38}}),e("div",{class:F.tabItemName},[t.name])])})))},class:F.commonTabs,on:{trigger:this.onTrigger},scopedSlots:{default:()=>e(u.gE,{attrs:{spinning:this.gameStore.gameListLoading&&(!this.currentListData?.length||this.errors.networkError),errorPageHeight:this.gameListScrollHeight,error:this.errors.networkError},on:{retry:this.errors.retryApi}},[e("my-scroll",{attrs:{direction:"y"},style:{height:this.gameListScrollHeight},class:F.gameListBox},[this.$scopedSlots.gameListBox({listData:this.currentListData?.slice(0,100),listCardType:this.listCardType,activeTabkey:this.activeTabKey})])])},model:{value:this.activeTabKey,callback:e=>{this.activeTabKey=e}}})])])}},(0,s.Z)($.prototype,"searchGame",[M,B,G],Object.getOwnPropertyDescriptor($.prototype,"searchGame"),$.prototype),H=$))||H);var j=n(45578),z=n.n(j),U=n(57557),V=n.n(U),W=n(53158),K=n(34731),Y=n(45335),Q=n(35829),J=n(71843),X=n.n(J),ee=n(59890),te=n(79026);const ne=e=>{const{currentHotGameList:t,currentCollectGameList:n,currentRecentGameList:i}=(0,v.g)();switch(e){case te.H.hotAll:case K.ck.Hot:return t();case te.H.collectAll:case K.ck.Collenct:return n();case te.H.recentAll:case K.ck.Recent:return i();default:return[]}};var ie,re=n(11777),ae=n(37810),oe=n(99323),se=n(63325),ce="p9zAaC2kTb2r6IfHpaA2",le="OwmEDKc9Po9FB_7htPqb",ue="zh2Nr3qzB2AVgJw7jCVr",de="GAO6v_QHicmM5RsWsFwF";let he=(0,c.wA)({name:"layoutTabsContent"})(ie=class extends c.XY{render(){const e=arguments[0];return e("div",{class:[ce,"layout-tabs-content"]},[e("div",{class:[le,"tabs-box"]},[e("div",{class:{[ue]:!0}},[this.$scopedSlots?.tabs()])]),e("div",{class:de},[this.$scopedSlots?.content()])])}})||ie;class me{constructor(){(0,o.Z)(this,"vertical_default","/lobby_asset/{layout}-{bg}-{skin}/web/common/btn_zc2_2.png"),(0,o.Z)(this,"vertical_default_noBg","/lobby_asset/{layout}-{bg}-common/web/common/btn_zc2_2.png"),(0,o.Z)(this,"vertical_active","/lobby_asset/{layout}-{bg}-{skin}/web/common/btn_zc2_1.png"),(0,o.Z)(this,"horizontal_default","/lobby_asset/{layout}-{bg}-{skin}/web/common/btn_zc1_2.png"),(0,o.Z)(this,"horizontal_default_noBg","/lobby_asset/{layout}-{bg}-common/web/common/btn_zc1_2.png"),(0,o.Z)(this,"horizontal_active","/lobby_asset/{layout}-{bg}-{skin}/web/common/btn_zc1_1.png")}}let ge=e=>{const t=new me;return ge=e=>{const{direction:n,isActive:i,noBackground:r=!1}=e,a=i?"active":"default";return t[`${n}_${r&&"default"===a?"default_noBg":a}`]},ge(e)};const pe=e=>ge(e);var fe,ye,be,ve,we,Ce,Ie,Te,Se,Pe,Le,ke,_e,Ee,Oe,Re,Ae,De,xe=n(1507),Ze=n(70539),Ne="MTOMMG_SjldQ8F8cRFwX",Me="jbs5B6LWyYw3DGOtzDZL",Be="Gis2XFQG44VZ8MtMnDrj",Ge="eyiB0JR_NtbZXLPjSkgG",He="_HiW1Ow1pMDAAJOKgoP9";let $e=(fe=(0,c.wA)({name:"TabItemBox"}),ye=(0,c.r8)("curTabId"),be=(0,c.tB)("handleClickTab"),ve=(0,c.tB)("tabItemMapper"),we=(0,c.fI)(),Ce=(0,c.fI)(),Ie=(0,c.fI)({default:void 0}),Te=(0,c.fI)({default:void 0}),Se=(0,c.F1)("isActive"),fe((Le=class extends c.XY{constructor(...e){super(...e),(0,W.Z)(this,"curTabId",ke,this),(0,W.Z)(this,"tabListHandleClickTab",_e,this),(0,W.Z)(this,"tabItemMapper",Ee,this),(0,W.Z)(this,"preClickHook",Oe,this),(0,W.Z)(this,"tabId",Re,this),(0,W.Z)(this,"isActive",Ae,this),(0,W.Z)(this,"scrollOption",De,this)}created(){this.tabItemMapper&&this.tabId&&(this.tabItemMapper.set(this.tabId,this),this.$once("hook:beforeDestroy",(()=>{this.tabItemMapper.get(this.tabId)===this&&this.tabItemMapper.delete(this.tabId)})))}async handleClick(){if(this.preClickHook){if(!1===await this.preClickHook(this.tabId,this.curTabId))return}this.$emit("click",this.tabId),this.tabListHandleClickTab&&this.tabListHandleClickTab(this.tabId)}scrollIntoView(e){const t=this.scrollOption||"nearest",{inline:n=t,block:i=t}=e||{},r=this.$refs.tabDivRef;setTimeout((()=>{r.scrollIntoView({inline:n,block:i})}),0)}get localIsActive(){return"boolean"==typeof this.isActive?this.isActive:!(!this.curTabId||!this.tabId)&&this.curTabId===this.tabId}get bgImg(){const{siteInfos:e}=(0,I.h)(),{isEuropeanAmerican:t,isStake:n,isTheme18:i,isTheme19:r,isTheme20:a,isTheme21:o,isTheme28:s,isTheme29:c,isTheme41:l,isTheme10:u,isTheme43:d}=D.Z.currentTheme(),h=(t||n||u||i||r||a||s||c||o||l||d)&&e?.backgroundColor===xe.sZ.ThemeSkinBg.NO_BG;return this.localIsActive?Ze.Z.hellBigTabsActive||pe({direction:"vertical",isActive:this.localIsActive,noBackground:h}):Ze.Z.hellBigTabsBg||pe({direction:"vertical",isActive:this.localIsActive,noBackground:h})}render(){const e=arguments[0],{localIsActive:t,bgImg:n}=this,{isEuropeanAmerican:i}=D.Z.currentTheme();return e("div",{ref:"tabDivRef",attrs:{role:"tab"},class:{[Ne]:!0,[Ge]:t,[He]:i},on:{click:this.handleClick.bind(this)}},[e("div",{class:Me},[e("my-img",{class:Be,attrs:{src:n,draggable:!1}})]),this.$slots.default])}},ke=(0,s.Z)(Le.prototype,"curTabId",[ye],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_e=(0,s.Z)(Le.prototype,"tabListHandleClickTab",[be],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ee=(0,s.Z)(Le.prototype,"tabItemMapper",[ve],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Oe=(0,s.Z)(Le.prototype,"preClickHook",[we],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Re=(0,s.Z)(Le.prototype,"tabId",[Ce],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ae=(0,s.Z)(Le.prototype,"isActive",[Ie],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),De=(0,s.Z)(Le.prototype,"scrollOption",[Te],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(Le.prototype,"localIsActive",[Se],Object.getOwnPropertyDescriptor(Le.prototype,"localIsActive"),Le.prototype),Pe=Le))||Pe);var Fe,qe=n(50008),je=n(75812),ze=n(88763),Ue="JQsCqSm9cGKIDlZtAHhq",Ve="OeXho81reR17ME_LGh71",We="UmJhHI5YPiUK3A_6KL_3",Ke="ztRoycbCYUEaqt3eXaXa",Ye="hBrll1z1COeKw7N0Lh6m";let Qe=(0,c.wA)({name:"SubGameTabHoliday"})(Fe=class extends c.XY{getImage(e,t,n,i="btn_zc1_jr"){return(0,this.$createElement)("my-img",{attrs:{width:e,height:t,options:{type:"div"},alt:"",src:(0,y.Cj)(`/lobby_asset/festival/{holiday}/common/common/${i}.png`)},class:n})}renderHoliday(){const{isWeb:e}=(0,I.h)(),t=Q.x4.GAME===this.$route.name;switch(D.Z.holidayThemeType){case ze.By.MidAutumn:return[t&&this.getImage(60,48,{[Ye]:!0}),this.getImage(30,18,We,"btn_zc1_jr2")];case ze.By.NationalDay:return this.getImage(24,29,We);case ze.By.MotherOfGod:return this.getImage(24,31,Ke);case ze.By.MotherOfGod2:return this.getImage(35,35,Ke);case ze.By.Dussehra:return[this.getImage(40,50,Ve),this.getImage(40,30,Ke,"btn_zc1_jr2")];case ze.By.HalloweenPurple:case ze.By.HalloweenBlue:return this.getImage(36,23,Ke);default:return[this.getImage(e?40:50,e?40:50,Ke,"btn_zc1_jr2"),this.getImage(e?40:50,e?40:50,Ve)]}}render(){return(0,arguments[0])("div",{class:Ue},[this.renderHoliday()])}})||Fe;var Je,Xe,et,tt,nt,it,rt,at,ot,st,ct,lt="FhgIcPultEE23ZJcpVgx",ut="NKz8o_cVQQGzndzSgXZC",dt="R3YydZm0OLy0Dlc1xgQ1",ht="L8aNqebsHKA49ELg0fgB",mt="NQj8E21mAvuxEl_f2rMu",gt="Lx5QsKfocojNbO77nv7R";let pt=(Je=(0,c.wA)({name:"TabItemInner"}),Xe=(0,c.r8)("isActive"),et=(0,c.fI)(),tt=(0,c.fI)(),nt=(0,c.fI)(),Je((rt=class extends c.XY{constructor(...e){super(...e),(0,W.Z)(this,"isActive",at,this),(0,W.Z)(this,"imgUrl",ot,this),(0,W.Z)(this,"text",st,this),(0,W.Z)(this,"customImg",ct,this)}render(){const e=arguments[0],{imgUrl:t,text:n,customImg:i}=this,{isHolidayThemeVisible:r}=D.Z;return e("div",{ref:"testRef",class:{"tab-item-inner":!0,"is-active":this.isActive,[lt]:!0,[ut]:this.isActive,[gt]:r}},[this.isActive&&r&&e(Qe),e("div",{class:dt},[i||e("my-img",{class:ht,attrs:{useSkeleton:!0,src:t,draggable:!1}})]),e(qe.Z,{class:mt,attrs:{text:n,limitHeight:je.ZP.px2rem((0,I.h)().isWeb?44:48)}})])}},at=(0,s.Z)(rt.prototype,"isActive",[Xe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ot=(0,s.Z)(rt.prototype,"imgUrl",[et],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),st=(0,s.Z)(rt.prototype,"text",[tt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ct=(0,s.Z)(rt.prototype,"customImg",[nt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),it=rt))||it);var ft,yt,bt,vt,wt,Ct,It,Tt,St,Pt,Lt=n(75990),kt=n(31028),_t=n(82492),Et=n.n(_t),Ot=n(2046),Rt=n(67819);let At=(ft=(0,c.wA)({name:"InterRouteVsVal"}),yt=(0,c.yU)("value","input"),bt=(0,c.fI)({default:"current"}),vt=(0,Ot.Debounce)(),wt=(0,c.RL)("localVal",{immediate:!0}),Ct=(0,c.RL)("$route",{immediate:!0}),ft((Tt=class extends c.XY{constructor(...e){super(...e),(0,W.Z)(this,"localVal",St,this),(0,W.Z)(this,"persistedActiveName",Pt,this)}watchLocalValToWriteRoute(){this.persistedActiveName&&this.$router.replace({query:Et()({},this.$route.query,{[this.persistedActiveName]:this.localVal})})}applyPersistedActiveName(){if(this.persistedActiveName){const e=this.$route.query[this.persistedActiveName];Rt.Z.isEmpty(e)||(this.localVal=Number(e))}}render(){return this.$slots.default}},St=(0,s.Z)(Tt.prototype,"localVal",[yt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Pt=(0,s.Z)(Tt.prototype,"persistedActiveName",[bt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(Tt.prototype,"watchLocalValToWriteRoute",[vt,wt],Object.getOwnPropertyDescriptor(Tt.prototype,"watchLocalValToWriteRoute"),Tt.prototype),(0,s.Z)(Tt.prototype,"applyPersistedActiveName",[Ct],Object.getOwnPropertyDescriptor(Tt.prototype,"applyPersistedActiveName"),Tt.prototype),It=Tt))||It);var Dt,xt,Zt,Nt,Mt,Bt,Gt,Ht,$t,Ft,qt,jt,zt,Ut,Vt,Wt,Kt="FcSTqK45Cc8vUFKSIZ_h",Yt="YnE5_uCyNx1If7Cib0CT",Qt="wHkLtIFcmFsnLO3XpuPb";let Jt=(Dt=(0,c.wA)({name:"TabList"}),xt=(0,c.F1)("curTabId"),Zt=(0,c.yU)("value","input"),Nt=(0,c.DF)("handleClickTab"),Mt=(0,c.DF)("tabItemMapper"),Bt=(0,c.fI)({default:!1}),Gt=(0,c.fI)({default:"100%"}),Ht=(0,c.fI)({default:"current"}),$t=(0,c.RL)("localVal"),Dt((qt=class extends c.XY{constructor(...e){super(...e),(0,W.Z)(this,"localVal",jt,this),(0,W.Z)(this,"tabItemMapper",zt,this),(0,W.Z)(this,"isSelectedIntoView",Ut,this),(0,W.Z)(this,"scrollHeight",Vt,this),(0,W.Z)(this,"persistedActiveName",Wt,this)}handleClickTab(e){this.localVal=e,this.$emit("clickTab",e)}async watchLocalVal(e){if(this.$emit("afterTabChange",e),!this.isSelectedIntoView)return;await(0,Lt.gw)(0);const t=this.tabItemMapper.get(e);t&&t.scrollIntoView()}render(){const e=arguments[0];return e(At,{attrs:{persistedActiveName:this.persistedActiveName},model:{value:this.localVal,callback:e=>{this.localVal=e}}},[e("div",{class:Kt,style:{height:this.scrollHeight}},[e(kt.Z,{class:Yt,attrs:{direction:"y"},on:{scroll:e=>this.$emit("scrollChange",e)}},[e("div",{class:Qt,attrs:{id:"scroll-area-box"}},[this.$slots?.default])])])])}},jt=(0,s.Z)(qt.prototype,"localVal",[xt,Zt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(qt.prototype,"handleClickTab",[Nt],Object.getOwnPropertyDescriptor(qt.prototype,"handleClickTab"),qt.prototype),zt=(0,s.Z)(qt.prototype,"tabItemMapper",[Mt],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),Ut=(0,s.Z)(qt.prototype,"isSelectedIntoView",[Bt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vt=(0,s.Z)(qt.prototype,"scrollHeight",[Gt],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Wt=(0,s.Z)(qt.prototype,"persistedActiveName",[Ht],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(qt.prototype,"watchLocalVal",[$t],Object.getOwnPropertyDescriptor(qt.prototype,"watchLocalVal"),qt.prototype),Ft=qt))||Ft);var Xt,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,hn,mn,gn,pn,fn={LayoutTabsContent:he,TabList:Jt,TabItemBox:$e,TabItemInner:pt},yn="ieScjmrWi7XR3ix_qW0W",bn="esiYGAgSJqpyAhSqoAAc",vn="br78pukcs_1A6sjMAiht",wn="FaF4vFQsm9bGwm4fATU9",Cn="BK8AZD7lYwb_gwzTn3LA",In="hifJwLKuwoT7Im1Z2aEQ",Tn="csziH80tKIUz3REMmYNm",Sn="CGEGk6i8TAFXlzuGvbOd",Pn="u4lBI1gddDKAOg8xkXHN",Ln="XKucKBXQ8nuXEo2TyJwA";let kn=(Xt=(0,c.wA)({name:"NormalSubGame"}),en=(0,c.fI)(),tn=(0,c.fI)({default:!0}),nn=(0,c.F1)(),rn=(0,c.RL)("gameCategoryId",{immediate:!0}),an=(0,c.RL)("platformId",{immediate:!0}),on=(0,c.RL)("state.searchValue"),sn=(0,d.WY)(),cn=(0,d.Xo)(300),ln=(0,c.RL)("mainStore.hasLogined"),un=(0,d.Xo)(1500),Xt((pn=class extends((0,c.Wr)(c.XY,ae.Z)){constructor(...e){super(...e),(0,W.Z)(this,"customPageSize",mn,this),(0,W.Z)(this,"isShowPageNation",gn,this),(0,o.Z)(this,"state",{current:1,searchValue:"",menuActiveKey:0,tabsScrollHeight:"",isSideScrollBottom:!1})}static getIsHotRecentCollect(e){return K.UQ.includes(e)}get gameListConfigChange(){const{current:e,menuActiveKey:t}=this.state;return`${e}${t}`}created(){this.state.menuActiveKey=this.allPlatformId}updateActiveTabKey(){this.resetSearchValue(),this.activeTabKey=this.isPlatformCategories&&this.platformId===this.allPlatformId?h.P.Hot:this.allPlatformId}handlePlatformIdChange(){this.activeTabKey===h.P.Hot&&this.platformId!==this.allPlatformId&&this.isPlatformCategories&&(this.activeTabKey=this.allPlatformId)}get isPlatformCategories(){return K.rI.includes(this.gameCategoryId)}get currentListData(){const e={gameCategoryId:this.gameCategoryId,platformId:this.platformId,activeTabKey:this.activeTabKey,gameName:this.state.searchValue};return K.Aw.includes(this.gameCategoryId)?(e=>{const{gameCategoryId:t,gameName:n}=e;let i=e.activeTabKey;const{getGameListByCategoryAndPlatform:r,currentHotGameList:a,currentCollectGameList:o,currentRecentGameList:s}=(0,v.g)();let c=[];switch(i===h.P.SearchResult&&(i=t),i){case K.ck.Hot:c=a(t);break;case K.ck.Collenct:c=o(t);break;case K.ck.Recent:c=s(t);break;default:c=r({gameCategoryId:t,platformId:t}).list}const l=n.toLocaleLowerCase();return c.filter((e=>{const t=e;return t?.platformName?.toLocaleLowerCase().includes(l)||t?.brand?.toLocaleLowerCase().includes(l)}))})(V()(e,["platformId"])):this.isDemo?(e=>{const{activeTabKey:t,gameCategoryId:n=K.ck.Demo,platformId:i,gameName:r}=e,{getGameListByCategoryAndPlatform:a}=(0,v.g)(),o=a({gameCategoryId:n,platformId:i}).list,s=Number(`${n}${ee.$8}`),c=r.toLocaleLowerCase();return o.filter((e=>c?e?.gameName?.toLocaleLowerCase().includes(c):!(i!==s&&e.platformId!==i||t!==s&&e.gameCategoryId!==t)))})(e):b.$v.isHotRecentCollectionPage?(e=>{const{gameCategoryId:t,gameName:n,platformId:i}=e;let r=e.activeTabKey,a=ne(r);const o=ne(i),s=Number(`${t}${ee.$8}`);r===h.P.SearchResult&&(r=s),a=i!==s?a.filter((e=>e.platformId===i)):r!==i?X()(a,o,"gameId"):o;const c=n.toLocaleLowerCase();return a.filter((e=>e?.gameName?.toLocaleLowerCase().includes(c)))})(e):(e=>{const{activeTabKey:t,gameCategoryId:n,platformId:i,gameName:r}=e,{getGameListByCategoryAndPlatform:a,currentHotGameList:o,currentCollectGameList:s,currentRecentGameList:c,getFilteredGameList:l}=(0,v.g)();if(i===Number(`${n}${ee.$8}`))switch(t){case K.ck.Hot:return o(n);case K.ck.Collenct:return s(n);case K.ck.Recent:return c(n);case h.P.SearchResult:return l({type:"gameName",matches:r},{type:"gameCategoryId",matches:n});default:return o(n)}return a({gameCategoryId:n,platformId:i}).list})(e)}get needListData(){return(0,re.$$)(this.currentListData,this.pageCardSize)}get pageCardSize(){if(this.customPageSize)return this.customPageSize;const{isDQ:e,isStake:t,isTheme20:n,isClassicStyle:i,isTheme27:r,isTheme18:a}=D.Z.currentTheme(),{activeTabKey:o}=this,s=b.xP.getGameCategoryItem([h.P.Hot,h.P.Recent,h.P.Collenct].includes(o)||b.$v.isHotRecentCollectionPage?K.ck.Hot:this.gameCategoryId);return new Map([[b.$v.isIconStyleSquare,3*(s?.appMenuRow||10)],[b.$v.isIconStyleVertical,3*(s?.appMenuRow||10)],[b.$v.isIconStyleSquare&&b.$v.isSpecialPlatformGameCatgory&&!n,(s?.appMenuRow||30)*(t||i||r||a?4:1)],[b.$v.isIconStyleSquare&&b.$v.isPlatformGameCatgory&&o!==this.allPlatformId,4*(s?.appMenuRow||10)],[b.$v.isIconStyleVertical&&b.$v.isSpecialPlatformGameCatgory,3*(s?.appMenuRow||10)],[e,3*(s?.appMenuRow||10)],[e&&b.$v.isSpecialPlatformGameCatgory,1*(s?.appMenuRow||30)],[e&&b.$v.isPlatformGameCatgory&&o!==this.allPlatformId,4*(s?.appMenuRow||10)]]).get(!0)??10}get isAllCategoriesSelected(){return this.platformId===this.allPlatformId}get topTabs(){const{t:e}=(0,w.QT)();return[{key:h.P.SearchResult,name:e("lobby.game.searchResults"),hidden:!this.state.searchValue},{key:this.allPlatformId,name:e("lobby.game.all"),hidden:this.isAllCategoriesSelected&&this.isPlatformCategories},{key:K.ck.Hot,name:e("lobby.game.hot"),hidden:this.gameCategoryId===K.ck.Hot},{key:K.ck.Recent,name:e("lobby.game.loadingRecent"),hidden:this.gameCategoryId===K.ck.Recent},{key:K.ck.Collenct,name:e("lobby.game.loadingCollect"),hidden:this.gameCategoryId===K.ck.Collenct}].filter((e=>!e?.hidden))}get demoTabs(){const{t:e}=(0,w.QT)(),t=this.gameStore.currentCategoriesPlatformList(this.gameCategoryId),n=this.isAllCategoriesSelected?z()(t,"gameCategoryId"):t.filter((e=>e.platformId===this.platformId));return[{key:h.P.SearchResult,name:e("lobby.game.searchResults"),hidden:!this.state.searchValue},{key:this.allPlatformId,name:e("lobby.game.all")},...n.map((t=>({key:t.gameCategoryId,name:e(`lobby.gameMenu.menu${t.gameCategoryId}`)})))].filter((e=>!e?.hidden))}get isDemo(){return this.gameCategoryId===K.ck.Demo}get isGuidingArrow(){let e=z()(this.gameStore.currentCategoriesPlatformList(this.gameCategoryId),"platformId").length;const t=(this.mainStore.isWeb?90:105)*e++,n=this.state.tabsScrollHeight.replace("px","");return t>Number(n)}async searchValueChange(){this.state.searchValue&&(this.activeTabKey=h.P.SearchResult,(this.isPlatformCategories||this.isDemo||b.$v.isHotRecentCollectionPage)&&this.setState({menuActiveKey:this.allPlatformId}),this.reset()),this.state.searchValue||this.activeTabKey!==h.P.SearchResult||this.updateActiveTabKey()}onTab(e){e!==h.P.SearchResult&&(this.resetSearchValue(),this.reset(),this.activeTabKey=e,this.scrollToActive(),(K.rI.includes(this.gameCategoryId)||b.$v.isHotRecentCollectionPage)&&e!==this.allPlatformId&&this.setState({menuActiveKey:this.allPlatformId}))}pageNationChange(e){this.setState({current:e}),this.mainStore.isWeb&&g.xN.dispatch({type:"DO_HOME_SCROLL"})}get listCardType(){return b.$v.isIconStyleVertical?l.eT.Vertical:K.Aw.includes(this.gameCategoryId)&&[this.allPlatformId,h.P.SearchResult].includes(this.activeTabKey)?l.eT.Landscape:l.eT.Square}renderMain(){const e=this.$createElement,{isStake:t}=D.Z.currentTheme();return e("div",{class:{[vn]:!0,[Pn]:t}},[e(R,{ref:"mainWrapRef",class:wn,on:{divHeightChange:e=>this.state.tabsScrollHeight=e}},[e("div",{class:{[In]:!0,[Sn]:b.$v.isSpecialPlatformGameCatgory,"theme-box-shadow":!0}},[e(p.d0,{class:[Tn,"scroll-to-center"],attrs:{isButtonStyle:!0,activeTabkey:this.activeTabKey,tabChange:this.onTab,tabs:this.isDemo?this.demoTabs:this.topTabs},directives:[{name:"drag-2-scroll",value:{targetQuery:".common-tab_menu_tabs"}}]}),e(u.gE,{attrs:{spinning:this.gameStore.gameListLoading&&(!this.needListData.length||this.errors.networkError),error:this.errors.networkError,errorPageHeight:oe.Z.getSubPageGameListWrapHeight(this.listCardType)},on:{retry:this.errors.retryApi}},[this.$scopedSlots?.gameListBox?.({listCardType:this.listCardType,listData:this.needListData[this.state.current-1]||[],isPlatformGameCatgory:b.$v.isSpecialPlatformGameCatgory,activeTabkey:this.activeTabKey,pageNationConfig:{isShowPageNation:this.isShowPageNation&&this.needListData.length>1,value:this.state.current,total:this.currentListData.length,pageSize:this.pageCardSize,pageNationChange:e=>this.pageNationChange(e)}})])]),this.isShowPageNation&&this.needListData.length>1&&e("div",{class:Cn},[e(p.EO,{attrs:{value:this.state.current,total:this.currentListData.length,pageSize:this.pageCardSize},on:{change:this.pageNationChange}})])])])}resetSearchValue(){this.state.searchValue&&this.setState({searchValue:""})}handleSideScroll(e){const{scrollTop:t,clientHeight:n,scrollHeight:i}=e.target;i-(t+n)<=10?this.state.isSideScrollBottom||this.setState({isSideScrollBottom:!0}):this.state.isSideScrollBottom&&this.setState({isSideScrollBottom:!1})}reset(){this.state.current>1&&this.setState({current:1})}isLoginChange(){this.isDemo&&Y.Nh.goHomePage()}searchPlatformGame(e){if(!b.$v.isSpecialPlatformGameCatgory){const{searchGameList:t}=(0,v.g)();t(e)}}async onInputChange(e){this.setState({searchValue:e}),this.searchPlatformGame(e)}onSideTabsClick(e){return this.resetSearchValue(),this.reset(),K.rI.includes(this.gameCategoryId)&&(this.activeTabKey=e===this.allPlatformId?K.ck.Hot:this.allPlatformId),(this.isDemo||b.$v.isHotRecentCollectionPage)&&(this.activeTabKey=this.allPlatformId),!0}get title(){const{t:e}=(0,w.QT)(),t=b.$v.gameCategoryName,n={[K.ck.Hot]:e("lobby.game.loadingHot"),[K.ck.Recent]:e("lobby.game.loadingRecent"),[K.ck.Collenct]:e("lobby.game.loadingCollect"),[K.ck.Demo]:e("lobby.game.loadingDemo")};return b.xP.isHotRecentCollectionAndDemo(this.gameCategoryId)?n[this.gameCategoryId]:t}get sideTabPlatformList(){const{currentCategoriesPlatformList:e}=this.gameStore;if(b.$v.isHotRecentCollectionPage){const e=ne(this.gameCategoryId),t=z()(e,"platformId");return t.length>1?t:[]}return z()(e(this.gameCategoryId),"platformId")}goBack(){const{preGameEmbeddedParams:e,setPreGameEmbeddedParams:t}=this.gameStore;e?.name===Q.x4.SUB_GAME?(Y.Nh.goHomePage(),t({name:Q.x4.GAME})):this.$router.go(-1)}scrollToActive(){this.$nextTick((()=>{const e=document.querySelector(".common-tab_menu_tabs"),t=document.querySelector(".tab-menu-active__item");e?.scrollTo({left:t?.offsetLeft,behavior:"smooth"})}))}render(){const e=arguments[0];return e(u.tK,{attrs:{titleContent:this.title,showBack:!0,goBack:this.goBack},class:{[yn]:!0,subgameMain:!0}},[e("template",{slot:"header"},[this.$scopedSlots.header?.()]),e(p.Rj,{class:"theme-box-shadow",attrs:{value:this.state.searchValue},on:{change:this.onInputChange}}),e("div",{class:bn},[this.isPlatformCategories||this.isDemo||b.$v.isHotRecentCollectionPage?e(fn.LayoutTabsContent,[e("template",{slot:"tabs"},[e(fn.TabList,{attrs:{scrollHeight:this.state.tabsScrollHeight,isSelectedIntoView:!0,persistedActiveName:"platformId"},on:{clickTab:this.onSideTabsClick,scrollChange:this.handleSideScroll},model:{value:this.state.menuActiveKey,callback:e=>{this.$set(this.state,"menuActiveKey",e)}}},[e(fn.TabItemBox,{key:this.allPlatformId,attrs:{tabId:this.allPlatformId}},[e(fn.TabItemInner,{attrs:{imgUrl:A.Z.gameMenu[this.gameCategoryId].active,text:b.$v.gameCategoryName,customImg:e("icon-sprite",{attrs:{sprite:A.Z.gameMenu[this.gameCategoryId].normal,linearGradientConfig:{colorStop:[{progress:0,color:this.mainStore.currentTheme["--theme-aside-icon-color-0"]},{progress:1,color:this.mainStore.currentTheme["--theme-aside-icon-color-1"]}]}}})}})]),this.sideTabPlatformList.map(((t,n)=>e(fn.TabItemBox,{key:`${t.platformId}${t.gameCategoryId}${n}`,attrs:{tabId:t.platformId}},[e(fn.TabItemInner,{attrs:{imgUrl:t.platformLogo,text:t.platformName}})])))]),this.isGuidingArrow&&!this.state.isSideScrollBottom&&e("div",{class:Ln},[e(se.Z)])]),e("template",{slot:"content"},[this.renderMain()])]):this.renderMain()]),e("template",{slot:"footer"},[this.$scopedSlots.footer?.()])])}},(0,o.Z)(pn,"GameListScrollDiv",oe.Z),hn=pn,mn=(0,s.Z)(hn.prototype,"customPageSize",[en],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),gn=(0,s.Z)(hn.prototype,"isShowPageNation",[tn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(hn.prototype,"gameListConfigChange",[nn],Object.getOwnPropertyDescriptor(hn.prototype,"gameListConfigChange"),hn.prototype),(0,s.Z)(hn.prototype,"updateActiveTabKey",[rn],Object.getOwnPropertyDescriptor(hn.prototype,"updateActiveTabKey"),hn.prototype),(0,s.Z)(hn.prototype,"handlePlatformIdChange",[an],Object.getOwnPropertyDescriptor(hn.prototype,"handlePlatformIdChange"),hn.prototype),(0,s.Z)(hn.prototype,"searchValueChange",[on],Object.getOwnPropertyDescriptor(hn.prototype,"searchValueChange"),hn.prototype),(0,s.Z)(hn.prototype,"handleSideScroll",[sn,cn],Object.getOwnPropertyDescriptor(hn.prototype,"handleSideScroll"),hn.prototype),(0,s.Z)(hn.prototype,"isLoginChange",[ln],Object.getOwnPropertyDescriptor(hn.prototype,"isLoginChange"),hn.prototype),(0,s.Z)(hn.prototype,"searchPlatformGame",[un],Object.getOwnPropertyDescriptor(hn.prototype,"searchPlatformGame"),hn.prototype),dn=hn))||dn);var _n,En=n(57255),On=n(53855),Rn="LIj05jKUpegPgDeMG5EV",An="FFoiPWaj0MQT3UiNAMvg";let Dn=(0,En.wA)(_n=class extends c.XY{jumpHome(){const{preGameEmbeddedParams:e,gameParameters:t}=(0,v.g)();g.xN.dispatch({type:"REPORT_MANAGER",eventName:"gameReturnClick",payload:{name:t?.name,gameCategoryId:t?.gameInfo?.gameCategoryId,gameType:t?.gameInfo?.gameType,gameId:t?.gameInfo?.gameId}}),e?.name?this.$router.replace(e):this.$router.replace({name:Q.x4.GAME,query:{gameCategoryId:String(K.ck.Hot)}})}render(){const e=arguments[0],{t:t}=(0,w.QT)(),{homeLayoutInfos:n}=(0,I.h)(),i=n?.commonConfig.hallReturnType;return e(On.Z,{class:{[Rn]:!0,[An]:"2"===i},on:{click:this.jumpHome,...{...this.$listeners}},props:{...{...this.$attrs}}},[e("icon-sprite",{attrs:{sprite:(0,y.T9)(`game_2_style_${i||"1"}_zk`)}}),e("span",[t("lobby.game.home")])])}})||_n;var xn=n(39693),Zn=n.n(xn);let Nn;!function(e){e.Register="cocos-register",e.PlayMusic="cocos-play-music",e.Recharge="cocos-recharge",e.Gamesuc="cocos-gamesuc",e.CocosYuEBao="cocos-yuebao"}(Nn||(Nn={}));var Mn=n(86442),Bn=n(5954),Gn=n(24759);var Hn,$n,Fn,qn,jn,zn,Un,Vn=n(53579),Wn=n(30727),Kn="lO9Bytg9kUYGE_CReLfd",Yn="r_FM8VpRxsJefMYpab8f",Qn="l9sf4eW6Eb0oocAHfQDW",Jn="rxkXdfJAduaKbUnVhrQi",Xn="NKj17tlvrlJYUuUhaF9H",ei="gJ1broN1hmtzWrfOrm9k",ti=n(52204);let ni=(Hn=(0,c.wA)({name:"GameEmbedded"}),$n=(0,c.Rl)(),Fn=(0,Ot.Bind)(),qn=(0,c.RL)("gameStore.gameParameters"),Hn((zn=class extends c.XY{constructor(...e){super(...e),(0,o.Z)(this,"mainStore",(0,I.h)()),(0,o.Z)(this,"gameStore",(0,v.g)()),(0,W.Z)(this,"gameIframe",Un,this),(0,o.Z)(this,"state",{loading:!0,selfGameLoaded:!1,backupDomains:[],currentBackupDomainIndex:0,timer:null})}handleFullScreen(){const{setFullScreen:e}=(0,v.g)();e(Y.uK.isFullScreen)}handlePostRechargeEvent(){Wn.Z.guide2DemoAcountDialog()||(0,Mn.h)(Mn.w.Pay)}handlePostYuebaoEvent(){if((0,ti.Z)().getYuebaoSwitchIsHide){const{t:e}=(0,w.QT)();Vn.Z.message({type:"warning",content:e("lobby.modal.notOpen")})}else(0,Mn.h)(Mn.w.Yuebao)}handlePostMessage(e){const t=e?.data;if(t===Nn.Register)window.location.reload();else if(t===Nn.PlayMusic)Vn.Z.open("musicModal");else if(t===Nn.Recharge)this.handlePostRechargeEvent();else if(t===Nn.Gamesuc)this.state.selfGameLoaded=!0;else try{const e=JSON.parse(t);e.data===Nn.CocosYuEBao&&(this.handlePostYuebaoEvent(),e?.gold&&(0,ti.Z)().setCocosGameGold(+e.gold))}catch(n){}}mounted(){const{mobile:e}=(0,Bn.Q)();e()&&Y.uK.requestFullScreen(),this.setupGameIframeLoadEvent(),this.setupGameLoadTimeout(),Y.uK.addFullscreenEvent(this.handleFullScreen)}gameParameterChange(){const{gameParameters:e}=this.gameStore;if(e?.url&&e.platformId===ee.YH){const t=(0,Lt.Wz)("other",e.url),n=Zn()(t?.split(";"));this.state.backupDomains=n,this.handleTimeoutLogic()}}handleTimeoutLogic(){const{gameParameters:e}=(0,v.g)();this.clearTimerOut(),this.state.timer=setTimeout((()=>{this.state.selfGameLoaded||(this.state.currentBackupDomainIndex<this.state.backupDomains.length?(g.xN.dispatch({type:"REPORT_MANAGER",eventName:"GameOpenError",payload:{url:e?.url,retry:this.state.currentBackupDomainIndex+1}}),this.switchToNextBackupDomainAndRetry()):this.showNetworkErrorPopup())}),1e4)}switchToNextBackupDomainAndRetry(){const{t:e}=(0,w.QT)();Vn.Z.create({title:e("lobby.common.tips.title"),class:ei,content:e("lobby.game.gameEmbedded.switchToNextError"),onOk:()=>{const e=this.state.backupDomains[this.state.currentBackupDomainIndex];this.switchToNextBackupDomain(e),this.state.currentBackupDomainIndex++,this.handleTimeoutLogic()}})}switchToNextBackupDomain(e){const t=function(e,t){const n=new URL(e).origin,i=new RegExp(n,"g");return e.replace(i,t)}(this.gameIframe.src,e);this.gameIframe.src=t,this.state.loading=!0,this.setupGameLoadTimeout()}showNetworkErrorPopup(){const{t:e}=(0,w.QT)();Vn.Z.create({title:e("lobby.common.tips.title"),class:ei,content:e("lobby.game.gameEmbedded.networkError"),onOk:()=>{Y.Nh.goHomePage()}})}setupGameIframeLoadEvent(){this.gameIframe.onload=()=>{this.setState({loading:!1})}}setupGameLoadTimeout(){setTimeout((()=>{this.setState({loading:!1})}),5e3)}created(){window.addEventListener("message",this.handlePostMessage)}clearTimerOut(){this.state.timer&&clearTimeout(this.state.timer)}beforeDestroy(){this.clearTimerOut(),Y.uK.removeFullscreenEvent(this.handleFullScreen),window.removeEventListener("message",this.handlePostMessage)}indicator(){return(0,this.$createElement)("my-img",{attrs:{options:{useWebpOnly:(0,Gn.wH)()},src:"/lobby_asset/common/web/animated/apng_loading_game.png",width:180,height:180}})}renderFrame(){const e=this.$createElement,{gameParameters:t,isFullScreen:n}=(0,v.g)(),i="allow-scripts allow-same-origin allow-modals allow-popups allow-forms",r=t?.url??"",a=(0,re.at)()?{srcdoc:r}:{src:`data:text/html;charset=utf-8;base64,${(0,re.sL)(r)}`};return e("div",{class:{[Yn]:!0,[Jn]:n}},[e(u.gE,{class:Xn,attrs:{spinning:this.state.loading,customIndicator:this.indicator}},[e("iframe",{class:{[Qn]:!0},ref:"gameIframe",attrs:{...(0,re.Tf)(r)?a:{src:r},title:t?.name,frameborder:"0",scrolling:"auto",allow:"clipboard-write; clipboard-read; web-share",sandbox:77e4===t?.gameInfo?.gameId?`${i} allow-top-navigation allow-top-navigation-by-user-activation`:i,allowfullscreen:!1}})])])}render(){return(0,arguments[0])("div",{class:Kn},[this.renderFrame()])}},Un=(0,s.Z)(zn.prototype,"gameIframe",[$n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(zn.prototype,"handleFullScreen",[Fn],Object.getOwnPropertyDescriptor(zn.prototype,"handleFullScreen"),zn.prototype),(0,s.Z)(zn.prototype,"gameParameterChange",[qn],Object.getOwnPropertyDescriptor(zn.prototype,"gameParameterChange"),zn.prototype),jn=zn))||jn);var ii,ri="oCZdqnTBKPmspSpHH0VC";let ai=(0,c.wA)({name:"GameEmbeddedPageH5"})(ii=class extends c.XY{constructor(...e){super(...e),(0,o.Z)(this,"isDraggle",!1),(0,o.Z)(this,"showDraggleBall",!1)}handleDragging(){this.isDraggle=!0}handleDragEnd(){this.isDraggle=!1}mounted(){setTimeout((()=>{this.showDraggleBall=!0}),4e3)}render(){const e=arguments[0];return e("div",[e(ni,{class:{[ri]:this.isDraggle}}),this.showDraggleBall&&e(Dn,{on:{dragging:this.handleDragging,dragEnd:this.handleDragEnd}})])}})||ii;var oi,si,ci,li,ui=n(9814),di=n(1183);let hi=(oi=(0,c.wA)({name:"GameEmbeddedPage"}),si=(0,c.RL)("hasLogined"),oi((li=class extends((0,c.Wr)(c.XY)){constructor(...e){super(...e),(0,o.Z)(this,"mainStore",(0,I.h)()),(0,o.Z)(this,"registerOutTime",null)}setRegOutTime(e,t){this.registerOutTime=window.setTimeout((()=>{t(),this.clearRegOutTime()}),e)}clearRegOutTime(){this.registerOutTime&&(clearTimeout(this.registerOutTime),this.registerOutTime=null)}gotoReg(){const{t:e}=(0,w.QT)(),{hasLogined:t}=(0,I.h)();Vn.Z.message({type:"warning",content:e("lobby.game.demoGameToRegTip")}),setTimeout((()=>{t||Vn.Z.openLoginRegisterModal()}),2e3)}setPayModalZIndex(e){document.body.style.setProperty("--z-paymodal",e)}logoutChange(e){"LOGOUT_BEFORE"===e.type&&this.$router.back()}created(){this.subscribeGlobalEvents(this.logoutChange);const{hasLogined:e}=(0,I.h)(),{isGamePlaying:t,gameParameters:n}=(0,v.g)();t&&n?.platformId||this.$router.push({name:Q.x4.GAME}),this.setPayModalZIndex("1999"),ui.Z.pauseInManual(ui.Z.LobbyPollingType.RED_POCKETS),di.ZP.dispatch({type:"DO_HOME_SCROLL"}),e||(this.clearRegOutTime(),this.setRegOutTime(42e4,this.gotoReg))}beforeDestroy(){const{hasLogined:e,logoutAndUpdatePrize:t}=(0,I.h)(),{setGamePlaying:n,setGameParameters:i,setGameScoring:r,setGameOpening:a,gameParameters:o}=(0,v.g)();r(!1),a(!1),n(!1),e&&o&&(g.xN.dispatch({type:"REPORT_MANAGER",eventName:"gameReturnLobby",payload:{name:o?.name,gameCategoryId:o?.gameInfo?.gameCategoryId,gameType:o?.gameInfo?.gameType,gameId:o?.gameInfo?.gameId}}),t()),this.setPayModalZIndex("1000"),!e&&this.registerOutTime&&(this.gotoReg(),this.clearRegOutTime()),i(void 0),Y.uK.exitFullscreen(),ui.Z.recoverInManual(ui.Z.LobbyPollingType.RED_POCKETS)}get hasLogined(){return this.mainStore.hasLogined}updateWhenLogined(){const{gameParameters:e}=(0,v.g)();e?.gameInfo?.demoModeSupport&&this.hasLogined&&Y.Nh.goHomePage()}render(){return(0,arguments[0])(ai)}},(0,s.Z)(li.prototype,"updateWhenLogined",[si],Object.getOwnPropertyDescriptor(li.prototype,"updateWhenLogined"),li.prototype),ci=li))||ci);var mi,gi=n(32205),pi=n(17817),fi=n(2815),yi=n(56343),bi="iQsg2ls0XFO_fkDCTxKy",vi="qaHrJQct2S6PVGncw7dO",wi="Ih0Z4w2CCYko4JoU4hK3",Ci="nAMrKqpQjkAR0kdKJpTL",Ii="aqx5Bw_9HhDDXua6BAMe",Ti=n(41800);(0,c.wA)({name:"BettingRecordTable"})(mi=class extends((0,c.Wr)(fi.Z)){constructor(...e){super(...e),(0,o.Z)(this,"state",{condition:{platformId:0,gameCategoryId:0,gameIds:0,targetTime:yi.Z.getZeroTimestamp(-15)},total:0})}async query(e,t,n){const i=(0,I.h)(),r=yi.Z.timestamp(new Date,{secondsOut:!0}),[a,o]=await(0,Ti.Z)((0,pi.l6)({current:e,size:t,account:i.userInfos.username,settleTimeStart:n.targetTime||yi.Z.getZeroTimestamp(-15),settleTimeEnd:r,gameCategoryId:n.gameCategoryId,gameIds:n.gameIds,platformId:n.platformId}));if(a)return this.setState({total:0}),{data:[],total:0};const s=o.data.data?.total??0;return this.setState({total:s}),{data:o.data.data?.data??[],total:s}}get defaultColumns(){const e=this.$createElement,{t:t}=(0,w.QT)();return[{title:t("lobby.center.report.table.time"),dataIndex:"settleTime",key:"settleTime",width:je.ZP.px2rem(180),customRender:(n,i)=>i.settleStatus===gi.f.UNSETTLEMENT?e("span",[t("lobby.center.report.bettingRecord.unsettled")]):e("span",[je.ZP.format(n)])},{title:t("lobby.center.report.table.type"),dataIndex:"gameCategoryName",key:"gameCategoryName",width:je.ZP.px2rem(100)},{title:t("lobby.center.report.table.platform"),dataIndex:"platformName",key:"platformName",width:je.ZP.px2rem(100)},{title:t("lobby.center.report.table.game"),dataIndex:"gameName",key:"gameName",width:je.ZP.px2rem(150)},{title:t("lobby.center.report.table.betting"),dataIndex:"validBet",key:"validBet",width:je.ZP.px2rem(150),customRender:t=>e("span",{class:wi},[t])},{title:t("lobby.center.report.table.win"),dataIndex:"netProfit",key:"netProfit",width:je.ZP.px2rem(150),customRender:(t,n)=>{const i=n.netProfit>=0;return e("span",i?{class:Ci}:{class:Ii},[t])}},{title:t("lobby.center.report.table.no"),dataIndex:"recordId",key:"recordId",width:je.ZP.px2rem(260)},{title:"",key:"action",width:je.ZP.px2rem(58),customRender:(t,n)=>e(u.RK,{attrs:{text:n.recordId},class:vi})}]}goToMore(){this.$router.push({name:Q.x4.REPORT,query:{current:gi.r.BETTING_RECORD}})}render(){const e=arguments[0],{isWeb:t}=(0,I.h)(),{t:n}=(0,w.QT)();return e("section",{class:bi},[e("h3",[e("inner-html",{attrs:{text:n("lobby.center.report.tabs.bettingRecord")}}),this.state.total>9&&e("div",[e("span",{on:{click:this.goToMore}},[n("lobby.system.more")]),e("icon-sprite",{attrs:{sprite:(0,y.T9)("comm_icon_fh")}})])]),e(u.FN,{attrs:{listScrollHeight:"auto",isHiddenPagination:!0,query:this.query,columns:this.defaultColumns,condition:this.state.condition,rowKey:"recordId",pagination:!1,defaultPageSize:10,listMode:!t,listRenderItem:e=>this.renderMobileCell(e)}})])}})},64421:function(e,t,n){n.d(t,{Z:function(){return m}});var i=n(82492),r=n.n(i),a=n(59890),o=n(34731),s=n(45335),c=n(35829),l=n(65074),u=n(96309),d=n(91475),h=n(80194);class m{static navigateToGamePage(e){const{setActiveGameCategoryId:t}=(0,u.g)(),n=h.ZP.currentRoute;n?.name!==c.x4.GAME?s.Nh.goHomePage(e):(h.ZP.replace({name:c.x4.GAME,query:r()({},n?.query,{gameCategoryId:e.toString()})}),t(e))}static jumpToSubGameFromMenu(e){e!==o.ck.Hot?s.Nh.goSubGamePage(e,`${e}${a.$8}`):this.navigateToGamePage(e)}static scrollMenuToGameCategory(e){const{gameCategoriesAvailable:t}=(0,u.g)(),{isWeb:n}=(0,d.h)(),i=t.find((t=>t.gameCategoryId===e)),r=n?i?.pcSquare:i?.appSquare,c=n?i?.pcVertical:i?.appVertical;(l.$v.isIconStyleVertical?c:r)&&!o.ty.includes(e)?this.navigateToGamePage(e):s.Nh.goSubGamePage(e,`${e}${a.$8}`)}static isExternalLinkOrJumpPosition(e){return!!e?.externalLinks||!!e?.jumpPosition?.type}static performLinkAction(e,t=!0){this.isExternalLinkOrJumpPosition(e)?s.Nh.jumpCommon(e.jumpPosition,e.externalLinks,!0):t?this.scrollMenuToGameCategory(e.gameCategoryId):this.jumpToSubGameFromMenu(e.gameCategoryId)}static performGameCategoryAction(e,t=!1){e.gameCategoryId===o.ck.Hot?s.Nh.goSubGameHotPage():m.performLinkAction(e,t)}static performGameCategoryActionById(e){e===o.ck.Hot?s.Nh.goSubGameHotPage():m.jumpToSubGameFromMenu(e)}}},8640:function(e,t,n){n.d(t,{Z:function(){return u}});var i=n(34731),r=n(96309),a=n(58217),o=n(91475),s=n(64421),c=n(70539),l=n(73389);class u{static processGameCategories(e){const{gameIconMap:t,gameIconSelectMap:n}=c.Z.useGameShowImage(),{t:s}=(0,a.QT)(),{gameCategoriesAvailable:l}=(0,r.g)(),{hasLogined:u}=(0,o.h)(),d=[...l].reduce(((e,r)=>{const a=Object.values(i.ck).includes(r.gameCategoryId);if(r.gameCategoryId===i.ck.Hot&&e.push({...r,gameCategoryName:s("lobby.gameMenu.menu0"),display:!0,customizeIcon:t.get(i.ck.Hot),customizeIconActive:n.get(i.ck.Hot)}),(r.gameCategoryId!==i.ck.Demo||!u)&&r.display&&a){const t={...r,gameCategoryName:s(`lobby.gameMenu.menu${r.gameCategoryId}`)};e.push(t)}return e}),[]);return d.length||d.push({gameCategoryId:i.ck.Hot,gameCategoryName:s("lobby.gameMenu.menu0"),display:!0,customizeIcon:t.get(i.ck.Hot),customizeIconActive:n.get(i.ck.Hot)}),[...d,...e]}static generateExtraCategories(e=!1){const{t:t}=(0,a.QT)();return e?[{gameCategoryName:t("lobby.gameMenu.loadingRecent"),gameCategoryId:i.ck.Recent},{gameCategoryName:t("lobby.gameMenu.loadingCollect"),gameCategoryId:i.ck.Collenct}]:[]}static generateExternalLinks(){const{gameCategorieExtLink:e}=(0,r.g)();return e.map(((t,n)=>({gameCategoryName:t.linkName,gameCategoryId:i.Jj+n+e.length,customizeIcon:t.icon,...t})))}static get basicCustomCategories(){return[...this.processGameCategories([]),...this.generateExternalLinks()]}static get completeCustomCategories(){return[...this.processGameCategories([...this.generateExtraCategories(!0)]),...this.generateExternalLinks()]}static listUseSvgIcon(e,t){return e.map((e=>(s.Z.isExternalLinkOrJumpPosition(e)||(e.icon=e.customizeIcon??l.Z.gameMenu[e.gameCategoryId][t],e.iconActive=e.customizeIconActive??l.Z.gameMenu[e.gameCategoryId][t]),e)))}static getGameIcon(e,t=!1){let n=t?e.iconActive:e.icon;return n||(n=t?l.Z.gameMenu[e.gameCategoryId].active:l.Z.gameMenu[e.gameCategoryId].normalSingle),n}static get completeGameCategories(){return this.processGameCategories([...this.generateExtraCategories(!0)])}static get basicGameCategories(){return this.processGameCategories([])}static get externalLinks(){return this.generateExternalLinks()}}},63709:function(e,t,n){n.d(t,{Z:function(){return m}});var i=n(34731),r=n(59890),a=n(85497),o=n(35829),s=n(11974),c=n(39972),l=n(96309),u=n(91475),d=n(75812),h=n(80194);class m{static goSubGamePage(e,t,n=!0){const{setActiveGameCategoryId:r}=(0,l.g)(),a=Number(e),s=t?t.toString():a.toString();!n&&i.d2.includes(a)||r(a),h.ZP.push({name:o.x4.SUB_GAME,query:{gameCategoryId:a.toString(),platformId:s}})}static goSubGameHotPage(){m.goSubGamePage(i.ck.Hot,`${i.ck.Hot}${i.Jj}`)}static goSubGameCollenctPage(){m.goSubGamePage(i.ck.Collenct,`${i.ck.Collenct}${i.Jj}`)}static goSubGameRecentPage(){m.goSubGamePage(i.ck.Recent,`${i.ck.Recent}${i.Jj}`)}static goHomePage(e=i.ck.Hot){const{setActiveGameCategoryId:t}=(0,l.g)();t(e),h.ZP.push({name:o.x4.GAME,query:{gameCategoryId:e.toString()}})}static goSearchGamePage(e=i.ck.Hot){h.ZP.push({name:o.x4.GAME_SEARCH,query:{activeTabkey:e.toString()}})}static goSubGameDemoPage(){const{hasLogined:e}=(0,u.h)();e||m.goSubGamePage(i.ck.Demo,`${i.ck.Demo}${r.$8}`)}static _openExternalLink(e){const t=e.includes("://")?e:"https://"+e;(0,d.MI)(t)}static jumpCommon(e,t,n=!1){if(t)return void this._openExternalLink(t);const{type:i,value:r,value2:o}=e||{};switch(i){case a.wz.Platform:r&&o&&m.goSubGamePage(r,o);break;case a.wz.Event:r&&(0,c.nf)(Number(r),n);break;case a.wz.Task:const e=(0,s.v9)(Number(r));e&&(0,s.NV)().gotoTaskPage(e)}}}},45335:function(e,t,n){n.d(t,{xr:function(){return I.Z},go:function(){return T},vt:function(){return h},uK:function(){return m},Uk:function(){return p.Z},$K:function(){return C},Nh:function(){return g.Z}});var i=n(82729),r=n.n(i),a=n(79704),o=n(34731),s=n(39362),c=n(35475),l=n(96309),u=n(91475),d=n(88656);class h{static _updateFavoriteList(e,t){const{gameId:n}=t,{setAllFavoriteList:i,currentAllFavoriteList:a}=(0,l.g)();i(e?[...a,n]:r()(a,(e=>e!==n)))}static async _handleFavoriteAPI(e,t){const{gameId:n,platformId:i,gameCategoryId:r}=t;try{await(0,c.nn)({gameId:n,platformId:i,gameCategoryId:r},e)}catch(a){this._updateFavoriteList(!e,t)}}static async _handleAddFavorite(e){const{setTryModeCollectGameListData:t,currentCollectGameList:n}=(0,l.g)(),{isTryMode:i}=(0,u.h)();i?t([...n(),e]):(this._updateFavoriteList(!0,e),await this._handleFavoriteAPI(!0,e))}static async _handleRemoveFavorite(e){const{gameId:t}=e,{getGameListByCategoryAndPlatform:n,setGameCategoryPlatformList:i,setTryModeCollectGameListData:a,currentCollectGameList:s}=(0,l.g)(),{isTryMode:c}=(0,u.h)(),d=n({gameCategoryId:o.ck.Collenct}).list;c?a(r()(s(),(e=>e.gameId!==t))):(this._updateFavoriteList(!1,e),d.length>0&&i({gameCategoryId:o.ck.Collenct,gameList:r()(d,(e=>e.gameId!==t))}),await this._handleFavoriteAPI(!1,e))}static async collectGame(e,t){let n=e;s.w.isThisType(n)&&(n=(new d.Z).parsePlatformCategoriesItem(n),n.gameIcon=a.Z.parseGameItem(n,t));const{gameId:i}=n,{currentAllFavoriteList:r}=(0,l.g)();r?.includes(i)?await this._handleRemoveFavorite(n):await this._handleAddFavorite(n)}}class m{static _handleNotSupported(){}static get isFullScreen(){const e=document;return!!(e.fullscreen||e.mozFullScreen||e.webkitIsFullScreen||e.webkitFullScreen||e.msFullscreen)}static requestFullScreen(){try{const e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():this._handleNotSupported()}catch{}}static exitFullscreen(){try{if(this.isFullScreen){const e=document;e?.exitFullscreen?e?.exitFullscreen():e?.mozCancelFullScreen?e?.mozCancelFullScreen():e?.webkitExitFullscreen?e?.webkitExitFullscreen():this._handleNotSupported()}}catch{}}static addFullscreenEvent(e){document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("MSFullscreenChange",e)}static removeFullscreenEvent(e){document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("MSFullscreenChange",e)}}var g=n(63709),p=n(64421),f=n(59890),y=n(46851),b=n(35829),v=n(65074),w=n(80194);class C{static jumpToSubGameFromMenu(e){g.Z.goSubGamePage(e,`${e}${f.$8}`)}static scrollMenuToGameCategory(e){const{gameCategoriesAvailable:t,setScrollStickyActiveTab:n}=(0,l.g)(),{isWeb:i}=(0,u.h)(),r=t.find((t=>t.gameCategoryId===e)),a=i?r?.pcSquare:r?.appSquare,s=i?r?.pcVertical:r?.appVertical;if(!(v.$v.isIconStyleVertical?s:a)||o.ty.includes(e))return void g.Z.goSubGamePage(e,`${e}${f.$8}`);w.ZP.currentRoute?.name!==b.x4.GAME&&g.Z.goHomePage(e),n(e),y.xN.dispatch({type:"HOME_SCROLL_STICKY_TAB",payload:{activeTabKey:e}})}static isExternalLinkOrJumpPosition(e){return!!e?.externalLinks||!!e?.jumpPosition?.type}static performLinkAction(e,t=!0){this.isExternalLinkOrJumpPosition(e)?g.Z.jumpCommon(e.jumpPosition,e.externalLinks,!0):t?this.scrollMenuToGameCategory(e.gameCategoryId):this.jumpToSubGameFromMenu(e.gameCategoryId)}static performGameCategoryAction(e,t=!1){e.gameCategoryId===o.ck.Hot?g.Z.goSubGameHotPage():C.performLinkAction(e,t)}static performGameCategoryActionById(e){e===o.ck.Hot?g.Z.goSubGameHotPage():C.jumpToSubGameFromMenu(e)}}var I=n(8640);class T{static get _route(){return y.sG?.App?.$route}static get _isValidGameRoute(){return[b.x4.SUB_GAME,b.x4.GAME,b.x4.GAME_SEARCH,b.x4.GAME_EMBEDDED].includes(this._route?.name)}static get _getGameCategoryId(){const e=o.ck.Hot;return Number(this._route?.query.gameCategoryId??e)}static get currentGameCategoryId(){return this._isValidGameRoute?this._getGameCategoryId:o.ck.Normal}static get activeGameCategoryId(){return this._isValidGameRoute?(0,l.g)().activeGameCategoryId:o.ck.Normal}}},31027:function(e,t,n){n.d(t,{B:function(){return v},Z:function(){return w}});var i,r,a,o,s,c,l,u,d,h=n(53158),m=n(55433),g=n(12040),p=n(51886),f=n(38821),y=n(22923),b="lytvPZkvP3R8d3ctvQPJ";let v;!function(e){e[e.RoundedAngle=1]="RoundedAngle",e[e.ThreePicturesTied=2]="ThreePicturesTied",e[e.cascading=5]="cascading",e[e.big=6]="big"}(v||(v={}));let w=(i=(0,f.wA)({name:"CommonBannerItem"}),r=(0,f.fI)({required:!0}),a=(0,f.fI)({default:v.RoundedAngle}),o=(0,f.fI)({required:!0}),i((c=class extends f.XY{constructor(...e){super(...e),(0,h.Z)(this,"itemData",l,this),(0,h.Z)(this,"mode",u,this),(0,h.Z)(this,"isOccupied",d,this),(0,m.Z)(this,"imgsUnloadedNum",0)}created(){this.initImgsUnloadedNum()}initImgsUnloadedNum(){this.itemData.img_style===p.v4.CUSTOMIZE?this.imgsUnloadedNum=1:this.imgsUnloadedNum=2}countImgLoaded(){this.imgsUnloadedNum--,this.imgsUnloadedNum<=0&&this.$emit("imgsLoaded",this.imgMapper)}get imgMapper(){const{img_style:e,img_icon:t,img_url:n,img_color:i}=this.itemData,r={};return e===p.v4.CUSTOMIZE?r.bgImg=n:(r.bgImg=i,r.innerImg=t),r}render(){const e=arguments[0],{img_style:t,id:n,hidden:i,publicity_name:r,content:a}=this.itemData,o=[e("section",{class:"banner-publicity-img"},[e("my-img",{attrs:{useSkeleton:!0,src:this.imgMapper.innerImg,"data-id":n,syncGroupsSrc:!0,options:{immediate:!0,lazy:!1}},on:{loadedResult:this.countImgLoaded}})]),e("div",{attrs:{"data-id":n},class:"banner-content"},[i===p.lL.SHOW&&e("h1",{attrs:{"data-id":n},class:["banner-publicity-name",a?"":"no-txt"]},[r]),!!a&&e("div",{class:"banner-content-txt"},[e("my-adapter",{attrs:{unit:"rem",remUnit:40,html:a,mode:"innerHTML",needAddRootFontSize:!1}})])])];return e(y.g,{class:[b,"banner-slide-box"]},[this.isOccupied?e("template"):e("my-img",{class:["banner-slide-item",`banner-style${t}`,`banner-mode${this.mode}`],attrs:{useSkeleton:!0,src:this.imgMapper.bgImg,options:{type:"div",immediate:!0,lazy:!1},syncGroupsSrc:!0,"data-id":n},style:{backgroundPosition:"center",backgroundSize:"cover"},on:{loadedResult:this.countImgLoaded}},[t!==p.v4.CUSTOMIZE&&o])])}},l=(0,g.Z)(c.prototype,"itemData",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,g.Z)(c.prototype,"mode",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,g.Z)(c.prototype,"isOccupied",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=c))||s)},26875:function(e,t,n){n.r(t),n.d(t,{default:function(){return W}});var i=n(82492),r=n.n(i),a=n(53158),o=n(55433),s=n(12040),c=n(38821),l=n(68809),u=n(51886);const d="bannerImgSrc";class h{constructor(){(0,o.Z)(this,"storeFirstImgSrc",""),(0,o.Z)(this,"isBannerFirstImgLoaded",!1)}judgeIsBannerFirstImgLoaded(e=[]){if(this.storeFirstImgSrc=localStorage.getItem(d)||"",!e[0])return;const t=this.getCurFirstImgSrc(e);this.storeFirstImgSrc===t&&(this.isBannerFirstImgLoaded=!0)}recordFirstImgLoaded(e=[],t){if(this.isBannerFirstImgLoaded)return;const n=this.getCurFirstImgSrc(e);t===n&&(this.isBannerFirstImgLoaded=!0,this.storeFirstImgSrc=n,localStorage.setItem(d,n))}getCurFirstImgSrc(e=[]){const{img_style:t,img_url:n,img_color:i}=e[0];return t===u.v4.CUSTOMIZE?n:i}}var m=n(23279),g=n.n(m),p=n(62933);const f="swiperBannerLoadedMapper";class y{constructor(){(0,o.Z)(this,"isRecursiveLoaded",!1),(0,o.Z)(this,"swiperBannerLoadedMapper",{}),(0,o.Z)(this,"bannerList",[]),(0,o.Z)(this,"saveLoadedMapperInStore",g()((()=>{sessionStorage.setItem(f,JSON.stringify(this.swiperBannerLoadedMapper))}),30)),(0,o.Z)(this,"currentWillLoadListMapper",{}),(0,o.Z)(this,"countCurrentLoadNum",0),(0,o.Z)(this,"currentLoadLevel",0),this.swiperBannerLoadedMapper=JSON.parse(sessionStorage.getItem(f)||"{}")}setBannerList(e=[]){this.bannerList=e,this.parseBannerList(e)}parseBannerList(e){this.swiperBannerLoadedMapper=e.reduce(((e,t)=>(!0!==e[t.id]&&(e[t.id]=!1),e)),{...this.swiperBannerLoadedMapper}),this.saveLoadedMapperInStore()}getRangIndexMapper(e,t,n=1){const i={};for(let r=0;r<n;r++){let n=e-r,a=e+r;n<0&&(n=t-(r-(e+1))),a>t&&(a=r-(t-e)-1),i[r+1]=Array.from(new Set([n,a]))}return i}startLoadBanner(e,t=p.mY.default){if("number"!=typeof e)return;this.isRecursiveLoaded=!1;let n=e,i=1;t===p.mY.min&&(n=e+1,i=2),t===p.mY.cascading&&(this.isRecursiveLoaded=!0,i=2);const r=this.bannerList;this.currentWillLoadListMapper=this.getRangIndexMapper(n,r.length-1,i),this.currentLoadLevel=0,this.loadImg()}loadImg(){this.currentLoadLevel++;const e=this.currentWillLoadListMapper[this.currentLoadLevel];if(!e)return this.currentLoadLevel=0,void(this.countCurrentLoadNum=0);this.countCurrentLoadNum=0,e.forEach((e=>{this.swiperBannerLoadedMapper[this.bannerList[e].id]||(this.countCurrentLoadNum++,this.swiperBannerLoadedMapper[this.bannerList[e].id]=!0,this.saveLoadedMapperInStore())})),this.isRecursiveLoaded?0===this.countCurrentLoadNum&&this.loadImg():this.loadImg()}countImgLoaded(){this.countCurrentLoadNum--,this.countCurrentLoadNum<=0&&this.loadImg()}getIsLoadedImgByBannerIndex(e){return Boolean(this.swiperBannerLoadedMapper[this.bannerList[e]?.id])}}var b,v,w,C,I,T,S,P,L,k,_,E,O,R,A,D,x,Z,N,M=n(91475),B=n(36247),G=n(22923),H=n(75812),$=n(31027),F=n(39655),q=n(12832),j=n(36526),z="tdnERPpjam1o9h7tiIHl",U="ZwKMFJwkxXcvWeJmetwr",V="UlTJK8kPiFqGgaBS4TXu";let W=(b=(0,c.wA)({name:"CommonBanner"}),v=(0,c.fI)(),w=(0,c.fI)({default:()=>(0,l.PF)()}),C=(0,c.fI)(),I=(0,c.fI)(),T=(0,c.fI)({default:1}),S=(0,c.Rl)(),P=(0,c.Rl)(),L=(0,c.RL)("bannerList",{immediate:!0}),k=(0,c.RL)("bannerListType",{deep:!0}),b((E=class extends c.XY{constructor(...e){super(...e),(0,o.Z)(this,"state",{isInitBannerDom:!1}),(0,o.Z)(this,"mainStore",(0,M.h)()),(0,a.Z)(this,"dataList",O,this),(0,a.Z)(this,"mode",R,this),(0,a.Z)(this,"styleConfig",A,this),(0,a.Z)(this,"centerMaxWidth",D,this),(0,a.Z)(this,"scale",x,this),(0,a.Z)(this,"bannerSwiperBoxRef",Z,this),(0,a.Z)(this,"baseBannerRef",N,this),(0,o.Z)(this,"loadImgListOrderly",new y),(0,o.Z)(this,"loadImgListLazy",new h)}freshSwiperBannerLoadedMapperStatus(e){this.loadImgListOrderly.setBannerList(e),this.loadImgListLazy.judgeIsBannerFirstImgLoaded(e)}get bannerList(){let e=[];return e=this.dataList&&this.dataList.length>0?this.dataList:(0,l.UL)(),e.slice(0,20)}get lastSwiperOptions(){return(0,l.t4)({mode:this.mode,scale:this.scale||1,dataList:this.bannerList})}get bannerListType(){return(0,l.N0)({mode:this.mode,dataList:this.bannerList})}loadBannerControl(){this.loadImgListLazy.isBannerFirstImgLoaded?this.mainStore.updateBannerLoaded(!0):setTimeout((()=>{let e=25*((0,B.d)().currentLine?.ping||0);e>5e3&&(e=5e3),setTimeout((()=>{this.mainStore.updateBannerLoaded(!0)}),e)}),3e3)}mounted(){this.setCssVar(this.styleConfig),this.loadBannerControl()}beforeDestroy(){this.SwiperTimmer&&clearTimeout(this.SwiperTimmer)}bannerListTypeChange(){this.setCssVar(this.styleConfig)}setCssVar(e){const t=(0,l.Cf)(this.mode,this.scale),n=this.$el?.style,i=r()({},t,e);for(const r in i)i&&Object.prototype.hasOwnProperty.call(t,r)&&n.setProperty(`--common-banner-${r}`,H.ZP.px2rem(i[r]||0===i[r]?i[r]:t[r]))}swiperAutoPlay(e,t,n){this.bannerListType.isOnlyOnePageData||(n===e.length&&(n=0),clearTimeout(this.SwiperTimmer),this.SwiperTimmer=setTimeout((()=>{t(),this.swiperAutoPlay(e,t,n+1)}),1e3*e[n].stay_time))}renderBannerItem(e,t){const n=this.$createElement,i={[p.mY.cascading]:$.B.cascading,[p.mY.big]:$.B.big,[p.mY.default]:$.B.RoundedAngle,[p.mY.min]:$.B.ThreePicturesTied},r=!this.loadImgListOrderly.getIsLoadedImgByBannerIndex(t);return n($.Z,{attrs:{mode:i[this.mode],itemData:e,isOccupied:r},on:{imgsLoaded:e=>{this.loadImgListOrderly.countImgLoaded(),this.loadImgListLazy.recordFirstImgLoaded(this.bannerList,e.bgImg)}}})}isShowJactpot(){const{isTheme19:e,isTheme45:t,isTheme48:n}=q.Z.currentTheme();return!e&&!t&&!n}render(){const e=arguments[0];if(this.bannerListType.sholdShowOccupy&&!this.$slots?.default)return e("template");const t=this.bannerList,{isTheme10:n}=q.Z.currentTheme();return e("div",{class:[z,"common-banner",this.mode===p.mY.big?U:"",this.mode===p.mY.cascading?V:""]},[this.isShowJactpot()&&e(F.default,{attrs:{place:"banner"}}),e(j.Z,{attrs:{centerMaxWidth:this.centerMaxWidth}},[this.bannerListType.sholdShowOccupy?this.$slots?.default||this.$scopedSlots.default?.():e("div",{ref:"bannerSwiperBoxRef",class:{"banner-swiper-box":!0,"banner-swiper-skeleton":!this.mainStore.bannerLoaded}},[this.mainStore.bannerLoaded&&e(G.Z,{class:{"single-swiper":1===t.length,[`banner-swiper-mode${this.mode}`]:!0,"banner-controllable":(0,l.Wd)()},ref:"baseBannerRef",attrs:{options:this.lastSwiperOptions,isShowPagination:!this.bannerListType.isSingleBanner||n},on:{clickSlide:(e,n)=>{(0,l.yl)(t[n])},reachEnd:e=>{e&&this.mode===p.mY.cascading&&setTimeout((()=>{e?.$swiper?.slideToLoop(0,0,!1)}),0)},init:e=>{this.swiperAutoPlay(t,(()=>{try{e.$swiper?.slideNext()}catch(t){}}),0)},swiperInit:e=>{this.loadImgListOrderly.startLoadBanner(e.$swiper?.realIndex,this.mode)},swiperTransitionEnd:e=>{this.loadImgListOrderly.startLoadBanner(e.$swiper?.realIndex,this.mode),this.$emit("changeSwiper",e.$swiper?.realIndex)}}},[t.map(((e,t)=>this.renderBannerItem(e,t)))])])])])}},O=(0,s.Z)(E.prototype,"dataList",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,s.Z)(E.prototype,"mode",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,s.Z)(E.prototype,"styleConfig",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=(0,s.Z)(E.prototype,"centerMaxWidth",[I],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=(0,s.Z)(E.prototype,"scale",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=(0,s.Z)(E.prototype,"bannerSwiperBoxRef",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,s.Z)(E.prototype,"baseBannerRef",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(E.prototype,"freshSwiperBannerLoadedMapperStatus",[L],Object.getOwnPropertyDescriptor(E.prototype,"freshSwiperBannerLoadedMapperStatus"),E.prototype),(0,s.Z)(E.prototype,"bannerListTypeChange",[k],Object.getOwnPropertyDescriptor(E.prototype,"bannerListTypeChange"),E.prototype),_=E))||_)},36526:function(e,t,n){n.d(t,{Z:function(){return S}});var i,r,a,o,s,c=n(53158),l=n(12040),u=n(38821),d=n(57717),h=n(63312),m=n(70278),g=n(91475),p=n(46930),f=n(12832),y=n(68598),b="FSli9_neG2gQSUZJAEB_",v="kVkE6uZZjG0IF85rza6h",w="yiCKcwsWgxgf6lsuEZao",C="qlHLuvxr7K54g1daAv48",I="n7Dr3enqefF0C2kJUf1k",T="tE68S2EhQAjiC2mphUHi";let S=(i=(0,u.wA)({name:"BannerSuggestDownPlank"}),r=(0,u.fI)(p.ZP.string.def("12rem")),i((o=class extends u.XY{constructor(...e){super(...e),(0,c.Z)(this,"centerMaxWidth",s,this)}get showBannerTopCompactDownload(){const{isCyanBlue:e}=f.Z.currentTheme();return!!e}render(){const e=arguments[0],{bannerList:t}=(0,m.o)(),{brandLogoInfos:n}=(0,g.h)(),{isCyanBlue:i,isTheme10:r}=f.Z.currentTheme(),{guildDownloadStyle:a,bootInstallationSwitch:o}=(0,h.h)(),s=d.k4.bannerTop1===a;return e("div",{class:{[b]:!0,[C]:i,[I]:r,[w]:!this.$slots.default,[T]:!t?.length}},[n&&o&&s&&e(y.default,{attrs:{position:["pc_middle","h5_middle"],centerMaxWidth:this.centerMaxWidth},class:[v,"suggest-download-middle"]}),this.$slots.default])}},s=(0,l.Z)(o.prototype,"centerMaxWidth",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=o))||a)},68809:function(e,t,n){n.d(t,{Cf:function(){return b},N0:function(){return f},PF:function(){return m},TR:function(){return p},UL:function(){return h},Wd:function(){return w},rF:function(){return g},t4:function(){return y},yl:function(){return v}});var i=n(46851),r=n(62933),a=n(7909),o=n(12832),s=n(64073),c=n(70278),l=n(91475),u=n(75812),d=n(53579);const h=()=>{const{homeLayoutInfos:e}=(0,l.h)(),t=(0,c.o)().bannerList,{webBanner:n=r.mY.default}=e||{};return t.filter((e=>e.img_type!==r.Rk.Default&&([r.mY.big,r.mY.cascading].includes(n)?e.img_format===n:n!==r.mY.min?e.img_format&&![r.mY.big,r.mY.cascading,r.mY.min].includes(e.img_format):e.img_format===r.mY.min)))||[]},m=()=>{const{homeLayoutInfos:e}=(0,l.h)(),{webBanner:t=r.mY.default}=e||{},n=h().length||0;return 0===n?t:1===n&&[r.mY.min,r.mY.cascading].includes(t)?r.mY.default:t},g=()=>{const{bannerList:e=[]}=(0,c.o)();if(0===e?.length)return[];return e.filter((e=>e.img_format&&![r.mY.big,r.mY.cascading,r.mY.min].includes(e.img_format)))},p=(e=1)=>({base:{loop:!0,pagination:{el:`.${i.CM.CssClassName.Swiper.Pagination}`,clickable:!0},navigation:{nextEl:i.CM.CssClassName.Swiper.Button.Next,prevEl:i.CM.CssClassName.Swiper.Button.Prev}},common:{centeredSlides:!1,loopedSlides:5,effect:"coverflow",slidesPerView:"auto",spaceBetween:0,slidesPerGroup:1,grabCursor:!0,coverflowEffect:{rotate:0,stretch:(5.3*(0,l.h)().rootFontSize-15)*e,depth:336,modifier:1,slideShadows:!1}}}),f=({mode:e,dataList:t})=>({isSingleBanner:1===t?.length,sholdShowOccupy:0===t?.length,isOnlyOnePageData:e===r.mY.default&&t.length<=1||e===r.mY.min&&t.length<=3}),y=({mode:e,scale:t,dataList:n})=>{const{isSingleBanner:i}=f({mode:e,dataList:n}),a=p(t).common;switch((e!==r.mY.cascading||i)&&(a.slidesPerView=1,a.effect="slide"),e){case r.mY.min:return{spaceBetween:10,slidesPerView:3};case r.mY.default:return{...a};case r.mY.cascading:return{...a,centeredSlides:!i};default:return a}},b=(e,t=1)=>{let n=0,i=20;const a=640*t;switch(e){case r.mY.min:n=145,i=16;break;case r.mY.big:n=340,i=0;break;case r.mY.cascading:n=189.3;break;default:n=210}return{height:n*t,borderRedius:i,commonModeCardWidth:a}},v=e=>{if(!e)return;const{userInfos:t}=(0,l.h)(),{id:n,location_name:r,location_type:o,location_jump_window:c,location_value:h,location_template:m}=e;i.xN.dispatch({type:"REPORT_MANAGER",eventName:"BannerClick",payload:{banner_material_id:n,hyper_page_title:r,hyper_page_type:o,hyper_page_url:h}}),o!==a.Vo.EXTERNAL_URL?1!==t?.account_type||o===a.Vo.EVENT?e.disabled&&"0"!==e.location_value||(0,s.T)({location_type:o,location_jump_window:c,location_value:h,location_template:m}):d.Z.openLoginRegisterModal():(0,u.MI)(h)},w=()=>[o.b.EUROPEAN_AMERICAN,o.b.NORMAL,o.b.STAKE,o.b.DQ,o.b.THEME_17,o.b.THEME_18,o.b.THEME_19,o.b.THEME_20,o.b.THEME_28,o.b.THEME_29,o.b.THEME_41].includes(o.Z.skinType)},59018:function(e,t,n){n.d(t,{f:function(){return i}});const i=({style:e,cssMap:t={},isRecursive:n=!1})=>{for(const r in t)"string"==typeof t[r]?e.setProperty(r,t[r]):"[object Object]"===Object.prototype.toString.call(t[r])&&n&&i({style:e,cssMap:t[r],isRecursive:n})}},29599:function(e,t,n){n.d(t,{eC:function(){return ce.default},$C:function(){return le.Z},fA:function(){return se.Z},Rj:function(){return Ze},EO:function(){return me},d0:function(){return lt},oh:function(){return Y}});n(11351);var i=n(82492),r=n.n(i),a=n(53158),o=n(55433),s=n(12040),c=n(38821),l=n(70753);class u{constructor(){(0,o.Z)(this,"referenceElement",""),(0,o.Z)(this,"compareDirect","bottom"),(0,o.Z)(this,"referenceSide","bottom"),(0,o.Z)(this,"stickySide","bottom"),(0,o.Z)(this,"distance","0")}}var d=n(94894),h=n(75990);class m{constructor(){(0,o.Z)(this,"top",""),(0,o.Z)(this,"bottom",""),(0,o.Z)(this,"width",""),(0,o.Z)(this,"height",""),(0,o.Z)(this,"zIndex",0),(0,o.Z)(this,"opacity",1),(0,o.Z)(this,"pointerEvents","auto")}}class g{constructor(){(0,o.Z)(this,"display","none"),(0,o.Z)(this,"width",""),(0,o.Z)(this,"height","")}}const p=async(e,t=20)=>{if(!e)return null;let n;return await(0,h.gw)(t),n="string"==typeof e?document.querySelector(e):e,n||p(e,t+50)};var f,y,b,v,w,C,I,T,S;let P=(f=(0,c.wA)({name:"HideByReference"}),y=(0,c.fI)(),b=(0,c.fI)(),v=(0,c.RL)("config.referenceElement"),w=(0,l.WY)(),f((I=class extends c.XY{constructor(...e){super(...e),(0,a.Z)(this,"scrollEleSelector",T,this),(0,a.Z)(this,"config",S,this),(0,o.Z)(this,"scrollElement",null),(0,o.Z)(this,"referenceElement",null),(0,o.Z)(this,"initDebounceId",null)}async reinit(){this.uninit(),await this.init()}async mounted(){this.init()}beforeDestroy(){this.uninit()}activated(){this.init()}deactivated(){this.uninit()}get localConfig(){return{...new u,...this.config}}async init(){clearTimeout(this.initDebounceId),this.initDebounceId=setTimeout((async()=>{await Promise.all([this.initScrollEle(),this.initReferenceEle()]),this.scrollElement&&this.referenceElement&&(this.handleHideWhenScroll(),this.scrollElement.addEventListener("scroll",this.handleHideWhenScroll))}),30)}uninit(){this.scrollElement?.removeEventListener("scroll",this.handleHideWhenScroll)}async initScrollEle(){this.scrollElement=await p(this.scrollEleSelector)}async initReferenceEle(){if(this.referenceElement=await p(this.config?.referenceElement),this.referenceElement){const{stop:e}=(0,d.Z)(this.referenceElement,(()=>{this.$emit("referenceElementSizeChange")}));this.$once("hook:beforeDestroy",e)}}rem2px(e){return parseFloat(e)*parseFloat(window.getComputedStyle(document.documentElement).getPropertyValue("font-size"))}async handleHideWhenScroll(){if(await new Promise((e=>setTimeout(e))),!this.referenceElement)return;const e=this.$el.getBoundingClientRect(),t=this.referenceElement.getBoundingClientRect(),{distance:n,referenceSide:i,stickySide:r,compareDirect:a}=this.localConfig;let o=0;/.*px$/.test(n)?o=parseInt(n):/.*rem$/.test(n)&&(o=this.rem2px(n));let s=!1;s="top"===a?e[r]<t[i]+o:e[r]>t[i]+o;const c=this.$el;s?(c.style.opacity="0",c.style.pointerEvents="none"):(c.style.opacity="1",c.style.pointerEvents="auto")}render(){return this.$slots.default}},T=(0,s.Z)(I.prototype,"scrollEleSelector",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,s.Z)(I.prototype,"config",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(I.prototype,"reinit",[v],Object.getOwnPropertyDescriptor(I.prototype,"reinit"),I.prototype),(0,s.Z)(I.prototype,"handleHideWhenScroll",[w],Object.getOwnPropertyDescriptor(I.prototype,"handleHideWhenScroll"),I.prototype),C=I))||C);var L,k,_,E,O,R,A,D,x,Z,N,M,B,G,H,$,F,q,j,z,U=n(91475),V="vyjFSNuDOUv2ikbo7GrF",W="nv6JrBRbCpZutl3K9MRd",K="YDGgJkqVHasyPgpwB0EP";let Y=(L=(0,c.wA)({name:"Thumbtack"}),k=(0,c.fI)({default:!0}),_=(0,c.fI)(),E=(0,c.fI)({default:"0"}),O=(0,c.fI)(),R=(0,c.fI)(),A=(0,c.fI)({default:!1}),D=(0,c.fI)({default:"fixed"}),x=(0,c.RL)("isStickyEnable"),Z=(0,c.RL)("state.status"),N=(0,c.RL)("rootFontSize"),L((B=class extends c.XY{constructor(...e){super(...e),(0,a.Z)(this,"isStickyEnable",G,this),(0,a.Z)(this,"scrollElement",H,this),(0,a.Z)(this,"offsetTop",$,this),(0,a.Z)(this,"hideConfig",F,this),(0,a.Z)(this,"touchBottomElement",q,this),(0,a.Z)(this,"isDynamicContent",j,this),(0,a.Z)(this,"positionType",z,this),(0,o.Z)(this,"state",{stickyStyle:new m,occupiedStyle:new g,isHiden:!1,status:"nomal"})}get realContentStyle(){const e=r()(new m,this.state.stickyStyle);return"touchBtm"===this.state.status&&(e.position="absolute",e.top="",e.bottom="0.3rem"),e}rectifyByStickyEnableSwitch(){this.collatePosition()}emitStatus(e){this.$emit("statusChange",e)}async mounted(){const e=await this.initDomEle();e&&(this.createScrollListenerFun(e),this.listenerScrollToSticky(e),this.collatePosition())}async initDomEle(){const e=[p(this.scrollElement),p(this.touchBottomElement)],[t,n]=await Promise.all(e);return{scrollEle:t,touchBottomEle:n}}rem2px(e){return parseFloat(e)*parseFloat(window.getComputedStyle(document.documentElement).getPropertyValue("font-size"))}collatePosition(){this.scrollListenerEvent&&this.scrollListenerEvent()}get rootFontSize(){return(0,U.h)().rootFontSize}triggerScrollEventByRootFontSize(){this.scrollListenerEvent&&setTimeout((()=>{this.scrollListenerEvent()}),0)}recursiveRectify(e=200){this.state.stickyStyle.opacity=0;const t=this.$refs.stickyOccupiedRef;if(t)if(t.getBoundingClientRect().bottom<0){if(e<0)return;this.recursiveRectifyTimerId=setTimeout((()=>{this.recursiveRectify(--e)}),0)}else this.scrollListenerEvent(),this.state.stickyStyle.opacity=1}statusToSticky(e,t,n){const{stickyStyle:i,occupiedStyle:r}=this.state,a=this.positionType;i.position=a;const o="absolute"===a?0:e.top;i.top=o+n+"px",i.width=t.width+"px",i.height=t.height+"px",i.zIndex=98,r.display=void 0,r.width=t.width+"px",r.height=t.height+"px",this.state.status="stick"}statusToNomal(){const{stickyStyle:e,occupiedStyle:t}=this.state;e.position=void 0,e.top="",e.width="",e.height="",e.zIndex=0,t.display="none",t.width="",t.height="",this.state.status="nomal"}createScrollListenerFun(e){const{scrollEle:t,touchBottomEle:n}=e,i=this.$refs.thumbtackDivRef,r=this.$refs.stickyOccupiedRef;return this.scrollListenerEvent=()=>{try{if(!this.isStickyEnable)return void this.statusToNomal();const e=t?.getBoundingClientRect(),a=i?.getBoundingClientRect();let o=0;if(/.*px$/.test(this.offsetTop)?o=parseInt(this.offsetTop):/.*rem$/.test(this.offsetTop)&&(o=this.rem2px(this.offsetTop)),!a||!e)return;if(a.top-e.top-o<0?this.statusToSticky(e,a,o):this.statusToNomal(),n){const e=n.getBoundingClientRect(),t=r.getBoundingClientRect();t.bottom<0?(clearTimeout(this.recursiveRectifyTimerId),this.recursiveRectify(200)):e.bottom<t.bottom&&(this.state.status="touchBtm")}}catch(e){}},this.scrollListenerEvent}listenerScrollToSticky(e){const{scrollEle:t,touchBottomEle:n}=e,i=this.scrollListenerEvent;if(t.addEventListener("scroll",i),this.$once("hook:beforeDestroy",(()=>t.removeEventListener("scroll",i))),this.isDynamicContent){const e=this.$refs.dynamicContentDivRef,{stop:t}=(0,d.Z)(e,i);this.$once("hook:beforeDestroy",t)}if(n){const{stop:e}=(0,d.Z)(n,i);this.$once("hook:beforeDestroy",e)}}render(){const e=arguments[0],{stickyStyle:t,occupiedStyle:n}=this.state,{realContentStyle:i,isDynamicContent:r}=this;return e("div",{class:V,ref:"thumbtackDivRef"},[e(P,{attrs:{scrollEleSelector:this.scrollElement,config:this.hideConfig}},[e("div",{key:"realSticky",class:W,style:i},[this.$slots?.default])]),e("div",{key:"stickyOccupiedRef",class:W,ref:"stickyOccupiedRef",style:{...t,zIndex:-99,opacity:0}}),r?e("div",{key:"dynamicContentDivRef",ref:"dynamicContentDivRef",class:K},[this.$slots?.default]):e("div",{class:"occupied",style:n})])}},G=(0,s.Z)(B.prototype,"isStickyEnable",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=(0,s.Z)(B.prototype,"scrollElement",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=(0,s.Z)(B.prototype,"offsetTop",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,s.Z)(B.prototype,"hideConfig",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=(0,s.Z)(B.prototype,"touchBottomElement",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,s.Z)(B.prototype,"isDynamicContent",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,s.Z)(B.prototype,"positionType",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(B.prototype,"rectifyByStickyEnableSwitch",[x],Object.getOwnPropertyDescriptor(B.prototype,"rectifyByStickyEnableSwitch"),B.prototype),(0,s.Z)(B.prototype,"emitStatus",[Z],Object.getOwnPropertyDescriptor(B.prototype,"emitStatus"),B.prototype),(0,s.Z)(B.prototype,"triggerScrollEventByRootFontSize",[N],Object.getOwnPropertyDescriptor(B.prototype,"triggerScrollEventByRootFontSize"),B.prototype),M=B))||M);var Q,J,X,ee,te,ne,ie,re,ae,oe,se=n(86583),ce=n(26875),le=n(18376),ue=n(7174),de=n(46930),he="hUlKFVKCGSJ1YkOLWzmv";let me=(Q=(0,c.wA)({name:"SimplePageNation"}),J=(0,c.fI)(de.ZP.number.isRequired),X=(0,c.fI)(de.ZP.number.isRequired),ee=(0,c.fI)(de.ZP.number.def(10)),te=(0,c.y1)("change"),Q((ie=class extends c.XY{constructor(...e){super(...e),(0,a.Z)(this,"value",re,this),(0,a.Z)(this,"total",ae,this),(0,a.Z)(this,"pageSize",oe,this)}onChange(e){return e}render(){const e=arguments[0];return e("div",{class:he},[e(ue.tl.Tsx,{attrs:{current:this.value,total:this.total,pageSize:this.pageSize,"show-less-items":!0},on:{change:this.onChange}})])}},re=(0,s.Z)(ie.prototype,"value",[J],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ae=(0,s.Z)(ie.prototype,"total",[X],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oe=(0,s.Z)(ie.prototype,"pageSize",[ee],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(ie.prototype,"onChange",[te],Object.getOwnPropertyDescriptor(ie.prototype,"onChange"),ie.prototype),ne=ie))||ne);var ge,pe,fe,ye,be,ve,we,Ce,Ie,Te,Se,Pe=n(36568),Le=n.n(Pe),ke=n(58217),_e=n(12832),Ee="WQRH7kQFHu0625bXlsSq",Oe="nMyMkr7wz394zCP2MHiq",Re="ToGTz0tnE2M9xL46yp2a",Ae="x8w05xmSCDTH6dgcDZ6r",De="HplUacWP1RcqYfQ2jGHG",xe="tS_IZRkTVDC1HbAznAmO";let Ze=(ge=(0,c.wA)({name:"SearchBox"}),pe=(0,c.fI)(de.ZP.style.def("")),fe=(0,c.fI)(de.ZP.bool.def(!1)),ye=(0,c.fI)(de.ZP.bool.def(!0)),be=(0,c.fI)(de.ZP.string.def("")),ge((we=class extends c.XY{constructor(...e){super(...e),(0,a.Z)(this,"value",Ce,this),(0,a.Z)(this,"submitLoading",Ie,this),(0,a.Z)(this,"background",Te,this),(0,a.Z)(this,"placeholder",Se,this)}render(){const e=arguments[0],{t:t}=(0,ke.QT)(),{isWeb:n}=(0,U.h)(),{isGalaxyGold:i,isCrownGold:r}=_e.Z.currentTheme();return e("div",{class:{[Ee]:!0,[Oe]:!!this.background,"lobby-searchBox":!0}},[e(ue.II.Search.Tsx,Le()([{class:{[Re]:!0,[Ae]:i||r},attrs:{placeholder:this.placeholder||t("lobby.game.searchGame"),maxLength:100,allowClear:!0,value:this.value,loading:!n&&this.submitLoading}},{on:{pressEnter:e=>{const t=e.target;this.$emit("submit",t.value)},change:({target:e})=>{this.$emit("change",e.value)},blur:async()=>{await(0,h.gw)(300),this.$emit("submit",this.value)},focus:()=>this.$emit("focus")}}])),n&&e(ue.zx.Tsx,{class:{[De]:!0,[xe]:i},attrs:{type:"primary",loading:n&&this.submitLoading},on:{click:()=>this.$emit("submit",this.value)}},[t("lobby.game.search")])])}},Ce=(0,s.Z)(we.prototype,"value",[pe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ie=(0,s.Z)(we.prototype,"submitLoading",[fe],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Te=(0,s.Z)(we.prototype,"background",[ye],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Se=(0,s.Z)(we.prototype,"placeholder",[be],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ve=we))||ve);var Ne,Me,Be,Ge,He,$e,Fe,qe,je,ze,Ue,Ve,We,Ke=n(88763),Ye=n(35829),Qe=n(71743),Je=n(50008),Xe="Q5Cp1ihvVijTuV4My80k",et="LRD5IAAtS_64drTV4atF",tt="LsgZ8zqHFWYTFrRYGaD4",nt="zL1VEYVVZf_uMQ274PTY",it="yc7PzFtGNIacKsEe7Kep",rt="QcWyn4SCxbWJPXVIYC0H",at="vz_ZDJ5brFECPvJClbni",ot="lP3Pik8XyTmeNerdmruo",st="qN3gOmkI_gqUiUrgMRsC",ct="LK8vFkQu2Zpzcji_3nGr";let lt=(Ne=(0,c.wA)({name:"TabMenu"}),Me=(0,c.fI)(de.ZP.bool.def(!1)),Be=(0,c.fI)(de.ZP.bool.def(!1)),Ge=(0,c.fI)({required:!1}),He=(0,c.fI)({required:!0}),$e=(0,c.fI)({required:!0}),Ne((qe=class extends c.XY{constructor(...e){super(...e),(0,a.Z)(this,"showSearchBtn",je,this),(0,a.Z)(this,"isButtonStyle",ze,this),(0,a.Z)(this,"activeTabkey",Ue,this),(0,a.Z)(this,"tabChange",Ve,this),(0,a.Z)(this,"tabs",We,this)}get nationalDayBg(){const e=this.$createElement;return _e.Z.isHolidayThemeVisible&&_e.Z.holidayThemeType===Ke.By.NationalDay?e("my-img",{class:et,attrs:{width:180,src:"/lobby_asset/festival/{holiday}/common-{bg}/web/img_zs_tam_03.png"}}):e("template")}render(){const e=arguments[0],{isWeb:t}=(0,U.h)();return e("section",{class:{[Xe]:!0,"common-tab__menu":!0,[ct]:!!this.isButtonStyle}},[t&&this.nationalDayBg,e("div",{class:{[tt]:!0,[ot]:!this.showSearchBtn,"common-tab_menu_tabs":!0}},[this.tabs.map((n=>{const i=this.activeTabkey===n.key;return e("div",{key:n.key,class:[nt,"tab-menu__item"]},[e("div",{class:{[it]:!0,[rt]:i,"tab-menu-active__item":i},on:{click:()=>{this.tabChange?.(n.key)}}},[!this.isButtonStyle&&n?.img&&e("my-img",{attrs:{src:n.img,alt:n.name,useSkeleton:!0,width:t?28:38,height:t?28:38}}),e(Je.Z,{class:[at,"tab-menu-item-text"],attrs:{rowCount:2,minFontSize:t?"0.12rem":"0.14rem",text:n.name}})])])}))]),this.showSearchBtn&&e("div",{class:st,on:{click:()=>{this.$root.$emit("leaveHomePage"),this.$router.push({name:Ye.x4.GAME_SEARCH,query:{gameCategoryId:this.$route.query?.gameCategoryId||"0"}})}}},[e(ue.JO.Tsx,{attrs:{component:{functional:!0,render:()=>{const t=(0,Qe.XY)("sprite_main_icon_dt_1ss"),n=43/t.width;return e("icon-sprite",{attrs:{sprite:t,useSkeleton:!0,scale:n}})}}}})])])}},je=(0,s.Z)(qe.prototype,"showSearchBtn",[Me],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ze=(0,s.Z)(qe.prototype,"isButtonStyle",[Be],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ue=(0,s.Z)(qe.prototype,"activeTabkey",[Ge],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ve=(0,s.Z)(qe.prototype,"tabChange",[He],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),We=(0,s.Z)(qe.prototype,"tabs",[$e],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fe=qe))||Fe)},44613:function(e,t,n){n.d(t,{Ue:function(){return r},V3:function(){return l},YE:function(){return a},_U:function(){return o},hJ:function(){return s},o5:function(){return u},tN:function(){return c}});var i=n(85497);const r=5,a=120,o=new Map([["banner",i.Hh.Banner],["marquee",i.Hh.Marquee],["middlMenu",i.Hh.MiddlMenu],["popular",i.Hh.Popular],["footer",i.Hh.Footer],["platformTop",i.Hh.PlatformTop]]),s={"--jackpot-card-count-box-scale":"1","--jackpot-card-count-box-height":"1.18rem","--jackpot-card-count-to-bottom":"0.43rem","--jackpot-card-width":"12rem","--jackpot-card-height":"2.71rem","--jackpot-card-margin":"0 auto","--jackpot-font-letter-spacing":"0.0413rem","--jackpot-font-color":"var(--theme-text-color)","--jackpot-font-size":"0.75rem"},c={"--jackpot-card-count-box-scale":"1","--jackpot-card-count-box-height":"1.18rem","--jackpot-card-count-to-bottom":"0.43rem","--jackpot-card-width":"100%","--jackpot-card-height":"2.71rem","--jackpot-card-margin":"0 0 0.2rem","--jackpot-font-letter-spacing":"0.0413rem","--jackpot-font-color":"var(--theme-text-color)","--jackpot-font-size":"0.75rem"},l={"--jackpot-card-count-box-scale":"0.66","--jackpot-card-count-box-height":"0.76rem","--jackpot-card-count-to-bottom":"0.245rem","--jackpot-card-width":"100%","--jackpot-card-height":"1.64rem","--jackpot-font-letter-spacing":"0.007rem","--jackpot-card-margin":"0 0 0.2rem","--jackpot-font-color":"var(--theme-text-color)","--jackpot-font-size":"0.48rem"},u={"--jackpot-card-count-box-height":"0.52rem","--jackpot-card-count-box-scale":"0.48","--jackpot-card-count-to-bottom":"0.21rem","--jackpot-card-width":"5.20rem","--jackpot-card-height":"1.24rem","--jackpot-font-letter-spacing":"0.007rem","--jackpot-card-margin":"0 0 0.2rem","--jackpot-font-color":"var(--theme-text-color)","--jackpot-font-size":"0.33rem"}},39655:function(e,t,n){n.r(t),n.d(t,{default:function(){return J}});var i,r,a,o,s,c,l,u,d,h,m,g,p=n(53158),f=n(55433),y=n(12040),b=n(38821),v=n(85497),w=n(96478),C=n(44613),I=n(59018),T=n(68742),S=n(46930),P=n(22923),L=n(45335),k=n(2046),_="_VQdc8vOEOzzyOEUKmvZ",E="ZxUbTELPiPd0Rph8UofF",O=n(63141),R=n(91475),A=n(72698),D=n(29557);let x=(i=(0,b.wA)({name:"CommonJackpotCountItem"}),r=(0,b.fI)(S.ZP.string),a=(0,b.fI)(),o=(0,b.fI)({default:!1}),s=(0,b.RL)("value"),c=(0,b.RL)("configOptions",{deep:!0}),l=(0,k.Debounce)(300),i((d=class extends b.XY{constructor(...e){super(...e),(0,p.Z)(this,"place",h,this),(0,p.Z)(this,"configOptions",m,this),(0,p.Z)(this,"hasLeftTab",g,this),(0,f.Z)(this,"state",{isIntersecting:!1,noAnimation:!0,value:"",nextKey:0})}get value(){return(0,T.F)().getAmount(this.configOptions.id)}get valueKey(){return(0,T.F)().getAmountKey(this.configOptions.id)?.index}valueChange(){if(this.state.isIntersecting)this.setState({value:this.value});else if(this.state.nextKey&&this.valueKey===this.state.nextKey){const e=this.valueKey+4;this.setState({value:this.value,nextKey:e>=C.YE?C.YE-1:e})}}bindCssVarInDom(){const e=(0,w.ph)(this.configOptions||{},this.hasLeftTab||!1),t=this.$el?.style;(0,I.f)({style:t,cssMap:e})}mounted(){this.setState({value:this.value}),this.bindCssVarInDom(),this.lazyLoad(),setTimeout((()=>{this.setState({noAnimation:!1})}),5e3)}beforeDestroy(){this.observer&&(this.observer.unobserve(this.$el),this.observer.disconnect())}jump(e){const{jumpPosition:t,externalLinks:n}=e,i=t||{};L.Nh.jumpCommon(i,n)}lazyLoad(){if(!window.IntersectionObserver)return;const e=this.$el;this.observer=new IntersectionObserver((e=>{e.forEach((e=>{let t=this.valueKey+4;t>=C.YE&&(t=C.YE-1),e.isIntersecting&&(t=0),this.setState({isIntersecting:e.isIntersecting,nextKey:t})}))}),{rootMargin:`${window.innerHeight}px ${window.innerWidth}px`}),this.observer.observe(e)}render(){const e=arguments[0],{id:t,numericStyle:n,decimalPlaces:i}=this.configOptions;return e("my-img",{class:[_,"common-jackpot-card-item",this.place||""],attrs:{src:(0,w.ZR)(this.configOptions),options:{type:"div",immediate:!0},syncGroupsSrc:!0},key:t,nativeOn:{click:()=>this.jump(this.configOptions)}},[e("div",{class:["count-box",`bg-style-${this.configOptions.backgroundStyle}`,0===n?"count-box-customize":"",`${this.place}-box`]},[e("count-to",{class:["count-to"],attrs:{value:this.state.value,noAnimation:this.state.noAnimation,formatter:e=>{const{userInfos:t}=(0,R.h)();if(t&&t.currency&&t.currency===A.F.currenciesFormatConfig().BRL.code){let n={};const r=t.currency;return n=O.oB.createOptsByCode(r),(0,O.oB)(e,Object.assign({},n,{symbol:"",minIntergerDigits:3,precision:i||0}))}return(0,O.oB)(e,{minIntergerDigits:3,separator:",",precision:i||0})}},scopedSlots:{renderItem:t=>e("li",{attrs:{"data-text":t}},[0===n?t:e(D.Z,{attrs:{char:t,src:`/lobby_asset/common/web/home/cjc1_style_${this.configOptions.numericStyle}_font_sprite.png`}})])}})])])}},h=(0,y.Z)(d.prototype,"place",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,y.Z)(d.prototype,"configOptions",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,y.Z)(d.prototype,"hasLeftTab",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,y.Z)(d.prototype,"valueChange",[s],Object.getOwnPropertyDescriptor(d.prototype,"valueChange"),d.prototype),(0,y.Z)(d.prototype,"bindCssVarInDom",[c],Object.getOwnPropertyDescriptor(d.prototype,"bindCssVarInDom"),d.prototype),(0,y.Z)(d.prototype,"jump",[l],Object.getOwnPropertyDescriptor(d.prototype,"jump"),d.prototype),u=d))||u);var Z,N,M,B,G,H,$,F,q,j,z,U,V,W,K,Y,Q=n(9814);let J=(Z=(0,b.wA)({name:"CommonJackpotCount"}),N=(0,b.fI)(S.ZP.string),M=(0,b.fI)(S.ZP.number),B=(0,b.fI)(S.ZP.number),G=(0,b.fI)({default:!1}),H=(0,b.fI)({default:!1}),$=(0,b.RL)("hasLogined"),F=(0,b.RL)("virtualBonusPool",{deep:!0}),q=(0,b.RL)("config",{deep:!0}),Z((z=class extends b.XY{constructor(...e){super(...e),(0,p.Z)(this,"place",U,this),(0,p.Z)(this,"gameCategoryId",V,this),(0,p.Z)(this,"platformId",W,this),(0,p.Z)(this,"hasLeftTab",K,this),(0,p.Z)(this,"handleShow",Y,this),(0,f.Z)(this,"timeout",null),(0,f.Z)(this,"state",{isDelayEnd:!1})}loginChange(e){e&&Q.Z.destroy(Q.Z.LobbyPollingType.JACKPOT_PRIZE_NO_LOGIN)}bindCssVarInDom(){const e=(0,w.Cf)({place:this.lastPlace,hasLeftTab:this.hasLeftTab}),t=this.$el?.style;(0,I.f)({style:t,cssMap:e})}get isShow(){return(0,w.oz)()&&"platformCard"!==this.place||this.handleShow}mounted(){this.bindCssVarInDom(),this.timeout=setTimeout((()=>{this.setState({isDelayEnd:!0})}),8e3)}get lastPlace(){if(this.config&&!this.place){const e=JSON.parse(this.config.showPosition||"{}");return(0,w.V9)(C._U,e.type)||this.place}return this.place}get config(){return this.configs?.[0]}get configs(){if(!this.isShow)return[];const{getPlaceConfig:e}=(0,T.F)(),t=e(this.place,this.gameCategoryId);return t&&t.length>0&&!this.place?[t[0]]:t}renderContent(){const e=this.$createElement,t=[];if(this.config&&this.configs.length>1&&"platformCard"!==this.lastPlace){this.configs.forEach((n=>{n.showType!==v.y_.Carousel&&t.push(e(x,{attrs:{configOptions:n,place:this.lastPlace,hasLeftTab:this.hasLeftTab},class:0===n?.backgroundStyle?"common-jackpot-customize":""}))}));const n=this.configs.filter((e=>e.showType===v.y_.Carousel));n.length>0&&(n.length>1?t.push(e(P.Z,{attrs:{dataList:n,isShowPagination:!0,options:{loop:!0,autoplay:{delay:1e4,disableOnInteraction:!1},on:{transitionEnd:()=>{const e=this.mySwiperRef?.$swiper;if(e){const t=e.realIndex;setTimeout((()=>{e.slideToLoop(t,0,!1)}),0)}}}}},on:{init:e=>{this.mySwiperRef=e}}},[n.map((t=>e(P.g,[e(x,{key:t.key,attrs:{configOptions:t,hasLeftTab:this.hasLeftTab,place:this.lastPlace},class:0===t?.backgroundStyle?"common-jackpot-customize":""})])))])):t.push(e(x,{attrs:{configOptions:n[0],hasLeftTab:this.hasLeftTab,place:this.lastPlace},class:0===n[0]?.backgroundStyle?"common-jackpot-customize":""})))}else this.config&&"platformCard"!==this.lastPlace&&t.push(e(x,{attrs:{configOptions:this.config,place:this.lastPlace,hasLeftTab:this.hasLeftTab},class:0===this.config?.backgroundStyle?"common-jackpot-customize":""}));return t}render(){return(0,arguments[0])("div",{class:[E,"common-jackpot-card"]},[this.isShow&&this.renderContent()])}},U=(0,y.Z)(z.prototype,"place",[N],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,y.Z)(z.prototype,"gameCategoryId",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=(0,y.Z)(z.prototype,"platformId",[B],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=(0,y.Z)(z.prototype,"hasLeftTab",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=(0,y.Z)(z.prototype,"handleShow",[H],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,y.Z)(z.prototype,"loginChange",[$],Object.getOwnPropertyDescriptor(z.prototype,"loginChange"),z.prototype),(0,y.Z)(z.prototype,"bindCssVarInDom",[F,q],Object.getOwnPropertyDescriptor(z.prototype,"bindCssVarInDom"),z.prototype),j=z))||j)},96478:function(e,t,n){n.d(t,{Cf:function(){return b},JQ:function(){return v},ML:function(){return T},N:function(){return w},V9:function(){return S},ZR:function(){return y},fl:function(){return I},jq:function(){return f},oz:function(){return C},ph:function(){return p}});var i=n(85497),r=n(35829),a=n(44613),o=n(96309),s=n(68742),c=n(91475),l=n(75812),u=n(12832),d=n(30381),h=n.n(d),m=n(80194);const g=(e,t)=>(t?{big:24,middle:22,small:18}:{big:36,middle:32,small:28})[e],p=(e,t)=>{const{numericStyle:n,fontTypeface:i="{}"}=e,r=JSON.parse(i||"{}"),a={};if(0===n&&r){a["--jackpot-card-count-box-scale"]="1",a["--jackpot-font-letter-spacing"]="0";for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e))switch(e){case"fontFamily":a["--jackpot-font-family"]=r[e];break;case"textColor":a["--jackpot-font-color"]=r[e];break;case"fontSize":a["--jackpot-font-size"]=l.ZP.px2rem(g(r[e],t));break;case"textStroke":const n=l.ZP.px2rem(2*Number(r[e]));a["--jackpot-font-stroke"]=n;break;case"strokeColor":a["--jackpot-font-stroke-color"]=r[e]}}return a},f=e=>{let t="";switch(e){case",":t="dh";break;case".":t="jh";break;case"R":t="r";break;case"S":t="s";break;default:t=e}return`cjc1_style_font_${t}`},y=e=>{let t="";if(e){const{backgroundStyle:n,backgroundUrl:i}=e;t=0===n?i:`/lobby_asset/common/common/home/cjc1_style_${n}_bg.png`}return t},b=({place:e,hasLeftTab:t})=>{const{isClassicStyle:n}=u.Z.currentTheme(),{isWeb:i}=(0,c.h)();let r=i?a.tN:a.V3;return r=new Map([["platformCard"!==e&&t&&n&&!i,a.o5],[e&&["footer","banner"].includes(e)&&i,a.hJ]]).get(!0)||r,r},v=({virtualPoolTimestamp:e,virtualPoolNumbers:t})=>{const n=h()().valueOf();let i=Math.floor((n-e)/(1e3*a.Ue));return(i>t.length-1||i<0)&&(i=i<0?0:t.length-1),i},w=()=>{const{getPlaceConfig:e}=(0,s.F)();return e("platformCard").length>0&&C()},C=()=>{const{siteInfos:e}=(0,c.h)();return m.ZP.currentRoute.name===r.x4.GAME&&e&&e.type&&[u.b.NORMAL,u.b.EUROPEAN_AMERICAN,u.b.STAKE,u.b.THEME_28,u.b.THEME_29,u.b.THEME_34,u.b.THEME_19,u.b.THEME_32,u.b.THEME_41,u.b.THEME_46,u.b.THEME_45,u.b.THEME_48].includes(e.type)},I=e=>{const{setJackPotAmount:t}=(0,o.g)(),{virtualBonusPool:n}=(0,s.F)(),r=(e?.filter((e=>n.find((t=>t.id===e.id))?.showType===i.y_.Independent))||[])[0];if(r){const e=v(r);t(r.virtualPoolNumbers.length>0&&e>-1?r.virtualPoolNumbers[e]?.toString():"")}},T=()=>{const e=(0,s.F)().getPlaceConfig();return e&&e.length>0?e[0]:{}},S=(e,t)=>{for(const[n,i]of e.entries())if(i===t)return n;return null}},29557:function(e,t,n){n.d(t,{Z:function(){return f}});var i,r,a,o,s,c,l,u=n(53158),d=n(12040),h=n(38821),m=n(71743),g=n(96478),p=n(24759);let f=(i=(0,h.wA)({name:"NumIcon"}),r=(0,h.fI)(),a=(0,h.fI)(),i((s=class extends h.XY{constructor(...e){super(...e),(0,u.Z)(this,"char",c,this),(0,u.Z)(this,"src",l,this)}render(){return(0,arguments[0])("my-img",{attrs:{options:{type:"i",useWebpOnly:(0,p.wH)()},src:(0,m.Cj)(this.src)},class:[(0,g.jq)(this.char),"jackpot-card-num-icon"]})}},c=(0,d.Z)(s.prototype,"char",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,d.Z)(s.prototype,"src",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=s))||o)},68742:function(e,t,n){n.d(t,{F:function(){return g}});var i=n(85497),r=n(76914),a=n(75812),o=n(67476),s=n(96478),c=n(16818),l=n(44613),u=n(91475),d=n(63060),h=n(9814),m=n(12832);const g=(0,o.Q_)("jackPot",{state:()=>({jackPotAmount:"",virtualBonusPool:[],calculatePolling:[],amountKeys:[],retryTimes:0,numberNotDiff:!1,delayQueryTiemer:void 0}),getters:{getAmount:e=>t=>{const{virtualPoolNumbers:n=[]}=e.calculatePolling.find((e=>Number(e.id)===Number(t)))||{},i=e.amountKeys.find((e=>Number(e.id)===Number(t)))?.value;let r="0.0";return n.length>0&&void 0!==i&&(r=n[i]),r},getAmountKey:e=>t=>{const n=t?e.amountKeys.findIndex((e=>Number(e.id)===Number(t))):-1;return{amountKeyItem:n>-1?e.amountKeys[n]:void 0,index:n}},getPlaceConfig:e=>(t,n)=>{if(!t)return e.virtualBonusPool?.filter((e=>e.showType===i.y_.Independent))||[];const r=l._U.get(t);return e.virtualBonusPool.filter((e=>{const a=JSON.parse(e.showPosition||"{}");return"platformTop"===t?a.type===r&&e.showType!==i.y_.onPlatform&&a.value&&n===Number(a.value):a.type===r}))}},actions:{setJackPotAmount(e){this.jackPotAmount=e},setVirtualBonusPool(e){this.virtualBonusPool=e},setCalculatePolling(e,t=!1){const n=JSON.parse(JSON.stringify(this.calculatePolling));(0,s.fl)(e),t&&(this.amountKeys=[]),e.forEach((e=>{const t=n.findIndex((t=>Number(t.id)===Number(e.id)));t>-1?n[t]=e:n.push(e);const i=(0,s.JQ)(e);this.setAmountKeys(i||0,e.id)})),this.calculatePolling=t?e:n},setAmountKeys(e,t){const n=JSON.parse(JSON.stringify(this.amountKeys));if(t){const{amountKeyItem:i,index:r}=this.getAmountKey(t);i?n[r].value=e:n.push({id:t,value:e})}else n.forEach((t=>{t.value=e}));this.amountKeys=n},longConnectionJackpot(){const{hasLogined:e}=(0,u.h)();this.getVirtualBonusPool(),e&&r.o.includes(m.Z.skinType)&&d.Z.ws.on(d.q.JACKPOT_DATA,(e=>{e.length&&this.setCalculatePolling(e)}))},async getVirtualBonusPool(){const{data:e}=await(0,c.Yw)(),t=e?.map((e=>({id:e.id,showType:e.showType,virtualPoolNumbers:e.virtualPoolNumbers||[],timestamp:e.timestamp||0,virtualPoolTimestamp:e.virtualPoolTimestamp||0})))||[];this.setVirtualBonusPool(e),this.setCalculatePolling(t,!0),t.length>0&&this.beating()},loginedSetKey(){this.calculatePolling.forEach((e=>{const t=this.getAmountKey(e.id).amountKeyItem?.value||0;(0,s.fl)(this.calculatePolling),e.virtualPoolNumbers.length-1>t&&this.setAmountKeys(t+1,e.id)}))},noLoginedSetKey(){const e=this.calculatePolling?.[0]?.virtualPoolNumbers?.length||0,t=this.amountKeys?.[0]?.value||0;if((0,s.fl)(this.calculatePolling),e-1>t&&this.setAmountKeys(t+1),e-1<=t+1&&this.retryTimes<1){const n=e-1===t+1?Math.floor(15*Math.random())+5:0;this.getQueePolling(n),this.retryTimes+=1}else this.retryTimes>12||!this.numberNotDiff?this.retryTimes=0:this.numberNotDiff&&(this.retryTimes+=1)},getQueePolling(e){const{hasLogined:t}=(0,u.h)();t||this.delayQueryTiemer||(this.delayQueryTiemer=setTimeout((async()=>{clearTimeout(this.delayQueryTiemer),this.delayQueryTiemer=void 0;const e=await(0,c.Yw)();e?.data&&e.data.length>0&&(this.numberNotDiff=e.data.every((e=>this.calculatePolling.some((t=>t.id===e.id&&t.virtualPoolTimestamp===e.virtualPoolTimestamp))))&&e.data.length===this.calculatePolling.length,this.setCalculatePolling(e.data||[]))}),e))},beating(){const{hasLogined:e}=(0,u.h)();h.Z.create({key:h.Z.LobbyPollingType.JACKPOT_AMOUNT,callback:()=>{e?this.loginedSetKey():this.noLoginedSetKey()},interval:1e3*l.Ue})}},persist:{enabled:!0,strategies:[{key:"web.lobby.jackPot",storage:(0,a.nX)(),paths:["jackPotAmount","virtualBonusPool","calculatePolling","amountKeys"]}]}})},18376:function(e,t,n){n.d(t,{Z:function(){return H}});var i=n(36568),r=n.n(i),a=n(53158),o=n(55433),s=n(12040),c=n(38821),l=n(29339),u=n(25060),d=n(35829);var h,m,g,p,f,y,b,v,w,C,I,T,S=n(75990),P=n(71743),L=n(1850),k=n(24759),_=n(70278),E=n(91475),O=n(30859),R=n(75812),A=n(70539),D=n(58164),x=n(12832),Z=n(44159),N="uudMZ5EQkKmc4jAa3qFs",M="e9eWWmYu_zhBQNQbPsJd",B="X9Og_nzuC7mSP1fVHS3Q";const G={h5Top:"-15px",h5Left:"24px"};let H=(h=(0,c.wA)({name:"Marqueen"}),m=(0,c.fI)({default:()=>G}),g=(0,c.Rl)(),p=(0,c.RL)("storeMarqueeList"),f=(0,c.RL)("mainStore.hasLogined",{immediate:!0}),y=(0,c.RL)("mainStore.language",{immediate:!0}),b=(0,c.RL)("mainStore.userInfos.currency",{immediate:!0}),v=(0,c.RL)("state.marqueeArr"),h((C=class extends c.XY{constructor(...e){super(...e),(0,o.Z)(this,"state",{marqueeArr:[],networkError:!1,loading:!1}),(0,a.Z)(this,"tooltipsConfig",I,this),(0,a.Z)(this,"myMarquee",T,this),(0,o.Z)(this,"mainStore",(0,E.h)()),(0,o.Z)(this,"marqueeOption",{direction:"vertical",autoHeight:!0,slidesPerView:"auto"})}mounted(){const{isFirstLoading:e}=(0,_.o)();e&&this.queryMarqueeList(),this.freshMarqueeList(!0)}get storeMarqueeList(){return(0,_.o)().marquee}freshMarqueeListByStoreMarqueeList(){this.freshMarqueeList(!1)}freshMarqueeList(e=!1){const{marquee:t,isFirstLoading:n}=(0,_.o)();if(t.length)if(n){(0,_.o)().$patch({isFirstLoading:!1});e&&t.some((e=>e.content.includes("<img")))?(clearTimeout(this.delayLoadTimer),this.delayLoadTimer=setTimeout((()=>{this.updateMarqueeArr(t)}),5e3)):this.updateMarqueeArr(t)}else this.updateMarqueeArr(t)}beforeDestroy(){clearTimeout(this.delayLoadTimer),clearTimeout(this.delayQueryTimer)}updated(){this.$nextTick((()=>{document.querySelectorAll(".home-marquee-content")?.forEach((e=>{(0,S.xu)(e)}))}))}get validTooltipsConfig(){return{...G,...this.tooltipsConfig}}onLoginStatusChange(e){e&&this.queryMarqueeList()}async languageKeyChange(e,t){t&&e!==t&&this.queryMarqueeList()}onMarqueeListChange(e){e?.length&&e.length>0&&this.marqueePlay(e,0)}queryMarqueeList(){const{getMessageAllV2:e,$patch:t}=(0,_.o)(),n={page:1,type:u.V4.INDEX_PAGE};this.state.loading=!0;let i=!1;e(n).catch((()=>{i=!0,this.state.networkError=!0,this.state.marqueeArr=[],t({marquee:[]})})).finally((()=>{i||this.state.networkError&&(this.state.networkError=!1),this.state.loading=!1;const{marquee:e}=(0,_.o)();this.updateMarqueeArr(e)}))}updateMarqueeArr(e){this.setState({marqueeArr:e},(()=>{e.length&&this.marqueePlay(e,0)}))}marqueePlay(e,t){this.myMarquee&&((e,t,n)=>{e.myMarquee?.$swiper?.slideTo(n);const i=t[n]?.interval,r=e.myMarquee?.$swiper?.wrapperEl?.children[n]?.children[0];if(!r)return;const{scrollWidth:a,offsetWidth:o}=r;let s=(a-o)/77;s<i&&(s=i),r.setAttribute("style",`transform: translateX(-${a-o}px); transition: ${s}s linear 0.5s;`),clearTimeout(e.myMarqueeTimmer),e.myMarqueeTimmer=setTimeout((()=>{r.setAttribute("style","");const i=n+1>=t.length?0:n+1;e.marqueePlay(t,i)}),1e3*s+1e3)})(this,e,t)}toMoreMarquee(e){this.$router.push({name:d.x4.NOTICEDETAIL,query:{noticeType:`${u.OR.MARQUEE}`},params:{content:JSON.stringify(e)}})}renderMarquee(){const e=this.$createElement,{customizeTopIconMap:t}=A.Z.useHomeCustomizeIcon("top"),{siteInfos:n}=(0,E.h)(),{backgroundColor:i}=n,{isClassicStyle:a,isCyanBlue:o,isGalaxyGold:s,isCrownGold:c,isTheme21:l}=x.Z.currentTheme(),u={props:{}};return t.get("horseLightIcon")?u.props={src:t.get("horseLightIcon"),useSkeleton:!0}:u.props={useSkeleton:!0,src:0==i&&(a||o||s||c||l)?"/lobby_asset/{layout}-{bg}-common/web/home/icon_dt_pmd.png":"/lobby_asset/{layout}-{bg}-{skin}/web/home/icon_dt_pmd.png",options:{useWebpOnly:(0,k.wH)()}},e("my-img",r()([{},u]))}renderRightIcon(){const e=this.$createElement,{unreadMessageCount:t}=(0,O.G)(),{customizeTopIconMap:n}=A.Z.useHomeCustomizeIcon("top"),i=n.get("messageUnreadIcon")||(0,P.R0)("icon_dt_1xx_wd"),r=n.get("messageReadIcon")||(0,P.R0)("icon_dt_1xx");return e("my-img",{attrs:{src:t>0?i:r,useSkeleton:!0,width:50}})}render(){const e=arguments[0],{marqueeArr:t}=this.state,{unreadMessageCount:n}=(0,O.G)();return e(l.gE,{class:[N,"marquee-loading-box"]},[e("div",{class:"marquee"},[this.$scopedSlots?.leftIcon?.()||this.renderMarquee(),e(D.Z,{class:[M,this.state.networkError?"":B],attrs:{displayType:D.F.SufficientSpace,isTimeoutError:this.state.networkError,loading:this.state.loading},on:{retry:this.queryMarqueeList}}),e("div",{class:"marquee_wrap",directives:[{name:"show",value:!this.state.networkError}]},[e("swiper",{class:"swiper-no-swiping",ref:"myMarquee",attrs:{options:this.marqueeOption}},[t&&t.map((t=>e("swiper-slide",{key:t.id},[e("inner-html",{attrs:{type:"div",text:(0,R.$j)(t.content),format:e=>e},class:"marqueeContent home-marquee-content",on:{click:()=>{this.toMoreMarquee(t)}}})])))])]),e("div",{class:["messageBox",n>0?"messageBoxClose":"messageBoxOpen"],on:{click:()=>(0,L.rz)()}},[this.$scopedSlots?.rightIcon?.(n)||this.renderRightIcon(),n>0&&e(Z.default,{attrs:{charge:1,top:R.ZP.px2rem(this.validTooltipsConfig.h5Top),left:R.ZP.px2rem(this.validTooltipsConfig.h5Left),text:e("span",[(0,S._0)(n||0)])}})])])])}},I=(0,s.Z)(C.prototype,"tooltipsConfig",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,s.Z)(C.prototype,"myMarquee",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,s.Z)(C.prototype,"freshMarqueeListByStoreMarqueeList",[p],Object.getOwnPropertyDescriptor(C.prototype,"freshMarqueeListByStoreMarqueeList"),C.prototype),(0,s.Z)(C.prototype,"onLoginStatusChange",[f],Object.getOwnPropertyDescriptor(C.prototype,"onLoginStatusChange"),C.prototype),(0,s.Z)(C.prototype,"languageKeyChange",[y,b],Object.getOwnPropertyDescriptor(C.prototype,"languageKeyChange"),C.prototype),(0,s.Z)(C.prototype,"onMarqueeListChange",[v],Object.getOwnPropertyDescriptor(C.prototype,"onMarqueeListChange"),C.prototype),w=C))||w)},11351:function(e,t,n){n.r(t),n.d(t,{default:function(){return d}});var i,r=n(38821),a=n(88763),o=n(71743),s=n(12832),c="kZYkw_ttIEZGg4LKWJBg",l="Ln2si3WNe4EnIFqHKObR",u="TqMwwHfqIj6HuWCwi3k8";let d=(0,r.wA)({name:"MotherGodDecorate"})(i=class extends r.XY{render(){const e=arguments[0];return s.Z.holidayThemeType===a.By.MotherOfGod?e("div",{class:c},[e("my-img",{attrs:{width:74,height:72,src:`${(0,o.Cj)("/lobby_asset/festival/{holiday}/common/web/img_home_jr3.png")}`},class:l}),e("my-img",{attrs:{width:74,height:72,src:`${(0,o.Cj)("/lobby_asset/festival/{holiday}/common/web/img_home_jr4.png")}`},class:u})]):e("template")}})||i},86583:function(e,t,n){n.d(t,{Z:function(){return R}});var i,r,a,o,s,c,l,u,d,h,m,g,p=n(82492),f=n.n(p),y=n(53158),b=n(55433),v=n(12040),w=n(38821),C=n(70753),I=n(34731),T=n(46851),S=n(62933),P=n(35829),L=n(75990),k=n(96309),_=n(91475),E=n(46930),O=n(12832);let R=(i=(0,w.wA)({name:"ScrollSpyBox"}),r=(0,w.fI)(E.ZP.number.def(50)),a=(0,w.fI)(E.ZP.array.def([])),o=(0,w.Rl)(),s=(0,w.RL)("gameStore.activeGameCategoryId"),c=(0,C.Xo)(),l=(0,C.WY)(),i((d=class extends w.XY{constructor(...e){super(...e),(0,b.Z)(this,"gameStore",(0,k.g)()),(0,b.Z)(this,"mainStore",(0,_.h)()),(0,y.Z)(this,"ceilingLayoutOffsetTopDiff",h,this),(0,y.Z)(this,"relativeScrollYExtraElementsSelector",m,this),(0,y.Z)(this,"scrollSpyBoxRef",g,this),(0,b.Z)(this,"lockScroll",!1)}async activeCategoryIdChange(e,t){this.isKeptAlive||this.lockScroll||(I.Hf.includes(t)?this.initScrollTopDom():(this.setLockScroll(),this.scrollToAnchorEle(this.anchorId)))}get anchorId(){let e="";return e=this.isOtherCategoryId?this.mainStore.isWeb?"#anchor-menu":"#anchor-wrapper":`#anchor${this.gameStore.activeGameCategoryId}`,e}get isOtherCategoryId(){return I.Hf.includes(this.gameStore.activeGameCategoryId)}scrollToAnchorEle(e){const{homeLayoutInfos:t}=this.mainStore,{isDQ:n,isEuropeanAmerican:i,isStake:r,isTheme26:a,isTheme41:o,isTheme32:s}=O.Z.currentTheme(),c=document.querySelector("#home-scroll-box .my-scrollbar-wrap .my-scrollbar-content"),l=document.querySelector(e);if(!l||!c)return;const u=c?.getBoundingClientRect()?.top,d=l?.getBoundingClientRect()?.top,h=d-u,m=document.querySelector("#middle-menu")?.getBoundingClientRect().height||0,g=document.querySelector("#jackPot")?.getBoundingClientRect().height||0;let p=new Map([[t?.topLayout!==S.j4.style0||i||r||s||a||o,h-m],[n,h-m-g]]).get(!0)||h;for(const y of this.relativeScrollYExtraElementsSelector)try{const e=document.querySelector(y);e&&(p-=e.getBoundingClientRect().height||0)}catch(f){console.error(`scrollSpyBox:An error in the props.relativeScrollYExtraElementsSelector[${y}]`)}T.xN.dispatch({type:"DO_HOME_SCROLL",payload:{y:p,duration:0}})}async setLockScroll(e=50){this.lockScroll=!0,await(0,L.gw)(e),this.lockScroll=!1}async handleScroll(e){if(this.lockScroll||this.isKeptAlive)return;if(!["HOME_SCROLL","GAME_LIST_SCROLL"].includes(e.type))return;const{activeGameCategoryId:t,setActiveGameCategoryId:n}=this.gameStore,{isWeb:i,homeLayoutInfos:r}=this.mainStore,{isEuropeanAmerican:a,isClassicStyle:o,isTheme39:s,isTheme41:c,isTheme32:l,isTheme46:u}=O.Z.currentTheme(),d=!i&&(a||s||c||l||u||o&&r?.topLayout===S.j4.style1),h=document.getElementById("home-scroll-box"),m=h?.getBoundingClientRect();if(!m)return;const g=Array.from(this.scrollSpyBoxRef?.children||[])?.reverse();if(g.length<=1)return;const p=g?.find((e=>{if(e?.getBoundingClientRect()?.top-m?.top+h?.scrollTop<(d?this.ceilingLayoutOffsetTopDiff:30))return!0}));let y=Number(p?.getAttribute("id")?.replace("anchor",""));I.ty.includes(t)||y||(y=0),g&&y!==t&&(this.setLockScroll(300),this.$router.replace({name:P.x4.GAME,query:f()({},this.$route.query,{gameCategoryId:y.toString()})}),n(y))}async initScrollTopDom(){await(0,L.gw)(0);const e=document.querySelector(this.anchorId);e&&e?.getBoundingClientRect()?.top>200&&(this.setLockScroll(400),this.scrollToAnchorEle(this.anchorId))}mounted(){this.isOtherCategoryId||this.initScrollTopDom(),this.subscribeGlobalEvents(this.handleScroll)}render(){return(0,arguments[0])("div",{ref:"scrollSpyBoxRef"},[this.$slots.default])}},h=(0,v.Z)(d.prototype,"ceilingLayoutOffsetTopDiff",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,v.Z)(d.prototype,"relativeScrollYExtraElementsSelector",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,v.Z)(d.prototype,"scrollSpyBoxRef",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,v.Z)(d.prototype,"activeCategoryIdChange",[s],Object.getOwnPropertyDescriptor(d.prototype,"activeCategoryIdChange"),d.prototype),(0,v.Z)(d.prototype,"handleScroll",[c,l],Object.getOwnPropertyDescriptor(d.prototype,"handleScroll"),d.prototype),u=d))||u)},34731:function(e,t,n){let i;n.d(t,{Aw:function(){return a},Hf:function(){return c},Jj:function(){return r},P:function(){return h},S6:function(){return d},UQ:function(){return s},ck:function(){return i},d2:function(){return u},rI:function(){return o},ty:function(){return l}}),function(e){e[e.Normal=-1]="Normal",e[e.Hot=0]="Hot",e[e.Search=99]="Search",e[e.Recent=100]="Recent",e[e.Collenct=101]="Collenct",e[e.Demo=20]="Demo",e[e.Club=9]="Club",e[e.ClubFriend=10]="ClubFriend",e[e.All=0]="All",e[e.Chess=1]="Chess",e[e.Fish=2]="Fish",e[e.Electronic=3]="Electronic",e[e.Real=4]="Real",e[e.Sports=5]="Sports",e[e.Cockfighting=6]="Cockfighting",e[e.Gaming=7]="Gaming",e[e.Lottery=8]="Lottery",e[e.BlockChain=11]="BlockChain"}(i||(i={}));const r=999,a=[i.Real,i.Sports,i.Lottery,i.Cockfighting,i.Gaming],o=[i.Chess,i.Fish,i.Electronic,i.BlockChain],s=[i.Hot,i.Recent,i.Collenct],c=[...s,i.Demo],l=[i.Recent,i.Collenct,i.Demo],u=[i.Recent,i.Collenct],d=[...o,...a],h=(i.Hot,i.Demo,[i.Club,i.ClubFriend])},6927:function(e,t,n){let i,r,a,o;n.d(t,{$8:function(){return c},Cu:function(){return d},Vo:function(){return o},aZ:function(){return s},ck:function(){return i},eT:function(){return h},oU:function(){return a},pc:function(){return l}}),function(e){e[e.NORMAL=-1]="NORMAL",e[e.HOT=0]="HOT",e[e.SEARCH=99]="SEARCH",e[e.RECENT=100]="RECENT",e[e.COLLENCT=101]="COLLENCT",e[e.DEMO=20]="DEMO",e[e.CLUB=9]="CLUB",e[e.CLUBFRIEND=10]="CLUBFRIEND",e[e.ALL=0]="ALL",e[e.CHESS=1]="CHESS",e[e.FISH=2]="FISH",e[e.ELECTRONIC=3]="ELECTRONIC",e[e.REAL=4]="REAL",e[e.SPORTS=5]="SPORTS",e[e.COCKFIGHTING=6]="COCKFIGHTING",e[e.GAMING=7]="GAMING",e[e.LOTTERY=8]="LOTTERY",e[e.BLOCK_CHAIN=11]="BLOCK_CHAIN"}(i||(i={})),function(e){e[e.SELF_OPERATED=13]="SELF_OPERATED"}(r||(r={})),function(e){e[e.IOS=1]="IOS",e[e.Android=2]="Android",e[e.PC=3]="PC"}(a||(a={})),function(e){e[e.NULL=1]="NULL",e[e.EXTERNAL_URL=2]="EXTERNAL_URL",e[e.EVENT=3]="EVENT",e[e.TASK=4]="TASK",e[e.RECHARGE=5]="RECHARGE",e[e.CASHBACK=6]="CASHBACK",e[e.PROMOTE=7]="PROMOTE",e[e.VIP=8]="VIP",e[e.CLUB=9]="CLUB",e[e.YUEBAO=10]="YUEBAO",e[e.FUND=11]="FUND",e[e.GAME=12]="GAME"}(o||(o={}));i.CHESS,i.FISH,i.ELECTRONIC,i.BLOCK_CHAIN;const s=[i.REAL,i.SPORTS,i.LOTTERY,i.COCKFIGHTING,i.GAMING],c="999";let l,u;!function(e){e[e.PG=14]="PG",e[e.PG_SL=200]="PG_SL",e[e.JILI=40]="JILI",e[e.PP=301]="PP",e[e.JDB=310]="JDB",e[e.TP=117]="TP",e[e.JDB_NEW=310]="JDB_NEW"}(l||(l={})),function(e){e[e.PG=l.PG]="PG",e[e.JILI=l.JILI]="JILI",e[e.PP=l.PP]="PP",e[e.JDB=l.JDB]="JDB"}(u||(u={}));u.PG,u.JILI,u.PP,u.JDB;const d=[l.PG_SL,u.JILI,u.PP,u.JDB];let h;!function(e){e.Landscape="landscape",e.Vertical="vertical",e.Square="square"}(h||(h={}))},59890:function(e,t,n){let i;n.d(t,{$8:function(){return r},Lf:function(){return i},YH:function(){return a}}),function(e){e[e.PG=14]="PG",e[e.PG_SL=200]="PG_SL",e[e.JILI=40]="JILI",e[e.PP=301]="PP",e[e.JDB=310]="JDB",e[e.MG=7]="MG",e[e.WG=13]="WG"}(i||(i={}));const r=999,a=13;let o;!function(e){e[e.KY=2]="KY",e[e.JDB=5]="JDB",e[e.WG=13]="WG"}(o||(o={}))},7105:function(e,t,n){n.d(t,{Z:function(){return o}});var i,r=n(38821),a=n(99529);let o=(0,r.wA)({name:"EmbeddedPage"})(i=class extends r.XY{render(){return(0,arguments[0])(a.n3)}})||i},76914:function(e,t,n){n.d(t,{o:function(){return r}});var i=n(12832);const r=[i.b.EUROPEAN_AMERICAN,i.b.NORMAL,i.b.STAKE,i.b.DQ,i.b.THEME_14,i.b.THEME_15,i.b.THEME_17,i.b.THEME_16,i.b.CYAN_BLUE,i.b.THEME_13,i.b.THEME_12,i.b.THEME_27,i.b.THEME_21,i.b.THEME_28,i.b.THEME_29,i.b.THEME_20,i.b.THEME_24,i.b.THEME_36,i.b.THEME_25,i.b.THEME_33,i.b.THEME_31,i.b.THEME_19,i.b.THEME_39,i.b.THEME_34,i.b.THEME_40,i.b.THEME_41,i.b.THEME_10,i.b.THEME_46,i.b.THEME_49,i.b.THEME_43,i.b.THEME_45,i.b.THEME_42,i.b.THEME_32,i.b.THEME_46,i.b.THEME_48]},54302:function(e,t,n){n.d(t,{Z:function(){return R}});var i,r,a,o,s,c,l,u=n(55433),d=n(12040),h=n(38821),m=n(34731),g=n(46851),p=n(76914),f=n(35829),y=n(20360),b=n(62933),v=n(77477),w=n(68809),C=n(65074),I=n(98478),T=n(96309),S=n(68742),P=n(91475),L=n(91117),k=n(53663),_=n(32770),E=n(12832),O={bannerWrap:"SV2T718iUhR9ZuXZqwjQ",home:"mfggbdrmjwcm2RZQzXZV","no-padding-top":"mqRWD9grKeGyq4j0eUnw",common_bganimation:"ZZb2NEYk70vAlooEGj02"};let R=(i=(0,h.wA)({name:"HomePage",components:{..._.ZP.register({namespace:_.rO.Theme,moduleType:_.fc.HomePage})}}),r=(0,h.RL)("gameCategoriesAvailable",{immediate:!0}),a=(0,h.RL)("gameCategoryId",{immediate:!0}),o=(0,h.RL)("activeGameCategoryId",{immediate:!0}),s=(0,h.RL)("$route.name",{immediate:!0}),i((l=class extends h.XY{constructor(...e){super(...e),(0,u.Z)(this,"mainStore",(0,P.h)()),(0,u.Z)(this,"gameStore",(0,T.g)())}get renderPageComponentsName(){return _.ZP.getName({namespace:_.rO.Theme,moduleType:_.fc.HomePage,key:E.Z.skinType})}get currentGameCategoryId(){return Number(this.$route.query.gameCategoryId)}jumpDefaultCategoryId(){this.$router.push({name:f.x4.GAME,query:{gameCategoryId:m.ck.Hot.toString()}})}get gameCategoriesAvailable(){return(0,T.g)().gameCategoriesAvailable}get activeGameCategoryId(){return(0,T.g)().activeGameCategoryId}get sabaUrl(){return(0,k.P)().sabaUrl}handleSabaLogin(){const e=m.ck.Sports;if(![this.currentGameCategoryId,this.activeGameCategoryId].includes(e))return;const t=this.gameCategoriesAvailable.find((t=>{if(t.gameCategoryId===e)return!0}));if(!t)return;const n=t.list.find((e=>{if(e.gameId===y.vp)return!0}));n&&(n.maintainStatus||(0,v.LL)())}onHandleSabaLogin(){this.handleSabaLogin()}routeNameChange(){const{redPockedStop:e,setRedPockedStop:t,initRedPocket:n}=(0,L.h)();e&&C.$v.isHomePage&&(t(!1),n())}initGameCategoryId(){const{isEuropeanAmerican:e,isClassicStyle:t,isCyanBlue:n,isHK:i}=E.Z.currentTheme(),{setActiveTabkey:r,setActiveGameCategoryId:a}=this.gameStore;if(a(this.currentGameCategoryId),!Object.values(m.ck).includes(this.currentGameCategoryId))return this.jumpDefaultCategoryId(),void(e||r(m.ck.Hot));(t||n||i)&&([m.ck.Recent,m.ck.Collenct].includes(this.currentGameCategoryId)&&this.jumpDefaultCategoryId(),r(m.ck.Hot))}created(){this.initJackpotData();const{freshEventCategoryAndActivity:e,setFirstLoaded:t}=(0,I.b)();e(),t(!1)}mounted(){this.sendIndicatorA()}sendIndicatorA(){sessionStorage.getItem("IndicatorA")||(sessionStorage.setItem("IndicatorA","true"),setTimeout((()=>{g.xN.dispatch({type:"MONITOR_EVENT",eventName:"IndicatorA",payload:{}})}),1e4))}initJackpotData(){if(p.o.includes(E.Z.skinType)){const{getVirtualBonusPool:e}=(0,S.F)();e()}}render(){const e=arguments[0];return e("div",{class:[O.home,"home-page",this.currentGameCategoryId===m.ck.Hot?O.hotHome:"",(0,w.Wd)()&&(0,w.PF)()===b.mY.big?O["no-padding-top"]:""]},[e(this.renderPageComponentsName,{attrs:{"data-components-name":this.renderPageComponentsName}})])}},(0,d.Z)(l.prototype,"onHandleSabaLogin",[r,a,o],Object.getOwnPropertyDescriptor(l.prototype,"onHandleSabaLogin"),l.prototype),(0,d.Z)(l.prototype,"routeNameChange",[s],Object.getOwnPropertyDescriptor(l.prototype,"routeNameChange"),l.prototype),c=l))||c)},9289:function(e,t,n){n.d(t,{Z:function(){return u}});var i,r=n(55433),a=n(38821),o=n(96309),s=n(91475),c=n(32770),l=n(12832);let u=(0,a.wA)({name:"SearchPage",components:{...c.ZP.register({namespace:c.rO.Theme,moduleType:c.fc.SearchPage})}})(i=class extends a.XY{constructor(...e){super(...e),(0,r.Z)(this,"mainStore",(0,s.h)()),(0,r.Z)(this,"gameStore",(0,o.g)())}get renderPageComponentsName(){return c.ZP.getName({namespace:c.rO.Theme,moduleType:c.fc.SearchPage,key:l.Z.skinType})}render(){return(0,arguments[0])(this.renderPageComponentsName,{attrs:{"data-components-name":this.renderPageComponentsName}})}})||i},45227:function(e,t,n){n.d(t,{Z:function(){return u}});var i,r=n(55433),a=n(38821),o=n(96309),s=n(91475),c=n(32770),l=n(12832);let u=(0,a.wA)({name:"SubGamePage",components:{...c.ZP.register({namespace:c.rO.Theme,moduleType:c.fc.SubGamePage})}})(i=class extends a.XY{constructor(...e){super(...e),(0,r.Z)(this,"mainStore",(0,s.h)()),(0,r.Z)(this,"gameStore",(0,o.g)())}get renderPageComponentsName(){return c.ZP.getName({namespace:c.rO.Theme,moduleType:c.fc.SubGamePage,key:l.Z.skinType})}render(){return(0,arguments[0])(this.renderPageComponentsName,{attrs:{"data-components-name":this.renderPageComponentsName}})}})||i},33442:function(e,t,n){let i;n.d(t,{P:function(){return i}}),function(e){e[e.Hot=0]="Hot",e[e.Recent=100]="Recent",e[e.Collenct=101]="Collenct"}(i||(i={}))},67288:function(e,t,n){n.d(t,{Z:function(){return h},x:function(){return d}});var i=n(34731),r=n(45335),a=n(62933),o=n(46851),s=n(35829),c=n(96309),l=n(58217),u=n(91475);class d{get route(){return o.sG?.App?.$route}get mainStore(){return(0,u.h)()}get webGameIcon(){return this.mainStore?.homeLayoutInfos?.webGameIcon}get gameCategoryItem(){return r.xr.completeGameCategories.find((e=>e.gameCategoryId===this.gameCategoryId))}get platformItem(){return this.gameCategoryItem?.list?.find((e=>e.platformId===this.platformId))}get gameCategoryId(){return Number(this.route.query?.gameCategoryId||i.ck.Hot)}get isPlatformGameCatgory(){return i.Aw.includes(this.gameCategoryId)}get isSpecialPlatformGameCatgory(){return this.isPlatformGameCatgory}get isHotRecentCollectionPage(){return d.isHotRecentCollection(this.gameCategoryId)}get platformId(){return Number(this.route.query?.platformId||-1)}get isCustomSubHot(){return this.gameCategoryId===i.ck.Hot}get isChinese(){return["zh_CN","zh_TW"].includes((0,u.h)().language)}get gameCategoryName(){const e=this.gameCategoryItem?.gameCategoryName||"";return this.isChinese?e.replace(/\s/g,""):e}get platformName(){return this.platformItem?.platformName||""}get isHomePage(){return this.route.name===s.x4.GAME}get isLoginRegisterPage(){return[s.x4.LOGIN,s.x4.REGISTER].includes(this.route.name)}get isWgSubPage(){return this.route.name===s.x4.WG_GAME}get isSubGamePage(){return this.route.name===s.x4.SUB_GAME}get isGameEmbeddedPage(){return this.route.name===s.x4.GAME_EMBEDDED}get h5HomeLayoutStyle(){const{homeLayoutInfos:e}=this.mainStore,t=e?.topLayout??a.j4.style0;return[a.j4.style0,a.j4.style1].includes(t)?t:a.j4.style0}get isIconStyleVertical(){return this.webGameIcon===a.p4.VERTICAL_BOTTOM}get isIconStyleSquare(){return this.webGameIcon===a.p4.SQUARE_BELOW}get getSelfSportAndSabaStatus(){const{getSelfSportMaintainStatus:e}=(0,c.g)(),{sabaMaintenance:t}=(0,u.h)();return e||t}static getGameCategoryItem(e){const{gameCategoriesAvailable:t}=(0,c.g)();return t.find((t=>t.gameCategoryId===e))}static getGameCategoryItemName(e){const{t:t}=(0,l.QT)(),{gameCategoriesAvailable:n}=(0,c.g)(),{language:r}=(0,u.h)(),a=new Map([[i.ck.Hot,t("lobby.game.loadingHot")],[i.ck.Recent,t("lobby.game.loadingRecent")],[i.ck.Collenct,t("lobby.game.loadingCollect")],[i.ck.Demo,t("lobby.game.loadingDemo")]]).get(e)||n.find((t=>t.gameCategoryId===e))?.gameCategoryName||"";return["zh_CN","zh_TW"].includes(r)?a.replace(/\s/g,""):a}static isHotRecentCollection(e){return i.UQ.includes(e)}static isHotRecentCollectionAndDemo(e){return i.Hf.includes(e)}static isHotRecentCollectionOrPlatformCategory(e){return i.Hf.includes(e)||i.Aw.includes(e)}static isClubOrFriendCategory(e){return i.P.includes(e)}static isPlatformGameCategory(e){return i.Aw.includes(e)}}const h=new d},65074:function(e,t,n){n.d(t,{xP:function(){return ne.x},$v:function(){return ne.Z},Xr:function(){return te}});var i,r,a=n(82492),o=n.n(a),s=n(78718),c=n.n(s),l=(n(26619),n(61446)),u=n(82729),d=n.n(u),h=n(55433),m=n(12040),g=n(72698),p=n(59890),f=n(98860),y=n(70753),b=n(22382),v=n(46851),w=n(1183),C=n(58217),I=n(979),T=n(35829),S=n(1850),P=n(62933),L=n(20360),k=n(37205),_=n(35475),E=n(34068),O=n(55941),R=n(11777),A=n(21615),D=n(75990),x=n(5825),Z=n(96309),N=n(91475),M=n(75812),B=n(81354),G=n.n(B),H=n(77278),$=n(65819),F=n(53579),q=n(30867),j=n(91887),z=n(8409),U=n(28636),V=n(67262),W=n(451),K=n(23828),Y=n(39169),Q=n(80194),J=n(41800);const X="1",ee="0";const te=new(i=(0,y.K4)(500),r=class{constructor(){(0,h.Z)(this,"HTML_DATA_KEY","web_lobby_htmlData"),(0,h.Z)(this,"MY_MARKER","web_lobby_myMarker")}tryUpdatePrize(e){const{setGameScoring:t,setGamePlaying:n,gameParameters:i}=(0,Z.g)(),{logoutAndUpdatePrize:r}=(0,N.h)();if(e){const a=()=>{e?.closed?(t(!1),n(!1),v.xN.dispatch({type:"REPORT_MANAGER",eventName:"gameReturnLobby",payload:{name:i?.name,gameCategoryId:i?.gameInfo?.gameCategoryId,gameType:i?.gameInfo?.gameType,gameId:i?.gameInfo?.gameId}}),r()):(0,D.Wn)(a)};a()}}navigateToUrlAndUpdatePrize(e,t){if(t){t.opener=null;const n=(0,R.Tf)(e)?`htmlKey=${this.HTML_DATA_KEY}`:`to=${encodeURIComponent(e)}`;Y.Z.info("gameOpener3: ",`${location.origin}/pages/game/index.html?${n}`),t.location=`${location.origin}/pages/game/index.html?${n}`,this.tryUpdatePrize(t)}else{const t=document.createElement("a");t.setAttribute("href",e),t.setAttribute("target","_blank"),t.setAttribute("rel","noopener noreferrer"),t.style.display="none",document.body.appendChild(t),t.click()}}decrypt(e){return G().AES.encrypt(e,G().enc.Utf8.parse("thanks,pig4cloud"),{mode:G().mode.ECB,padding:G().pad.Pkcs7}).toString()}isSelfOpertedGame(e){return e===p.YH}generateGameInfo(e,t){const{userInfos:n,ossHost:i,language:r,apiBaseUrl:a,getCurrencyInfoByCode:o}=(0,N.h)(),{showRidTypes:s,hasLuckyBet:c}=(0,Z.g)(),l=this.decrypt(n?.session_key??""),u=this.decrypt(n?.userkey??""),d=n?.currency,h=o(d),m=t?.game_url??"",g=f.cI.test(m),p=(g?m.match(f.DG)?.[0]:`${a}/gogamesac/`)?.replace("https://","wss://"),y=(0,N.h)().withdrawPasswordDialogVisible?X:ee;let b=(0,D.zs)(m??"",{isExternalLink:e?.isExternalLink?1:0,currencyCode:d,marketCurrencyCode:h?.marketCurrencyCode,gameId:t?.gameid||t?.gameId,route:p,lang:v.CM.ServiceLanguageMap[r],sessionkey:l,userkey:u,try:n?.username,rid:Number(s?.length?!s.includes(e.gameCategoryId):!c),timestamp:(new Date).getTime(),ossDomain:i,lobbyDomain:location.origin,payPrompt:y});g||(b=b.replace(/^gogamesac\//,window?.lobby_game_url||a+"/gogameccc/"));const w=this.isSelfOpertedGame(e.platformId);let C=w?b:m;return w&&window?.lobby_game_url&&g&&(C=C.replace(f.DG,window.lobby_game_url)),{gameName:t?.gameName??"",gameUrl:C,screenDirection:t.direction}}async getSelfOperatedGameInfo(e){const{hasLogined:t}=(0,N.h)(),{platformId:n,gameId:i}=e,[r,a]=await(0,J.Z)((0,_.A)({gameid:i,platfromid:n,user_type:t?b.D$.FORMAL:b.D$.DEMO}));if(r||!a?.game_url)return Promise.reject(r);return this.generateGameInfo(e,a)}async getThreeWayGameInfo(e){const[t,n]=await(0,J.Z)((0,_.A)({gameid:e.gameId,platfromid:e.platformId,exitUrl:e?.isExternalLink?location.origin:""}));if(t)return Promise.reject(t);return{gameName:n?.gameName??"",gameUrl:n?.game_url??"",screenDirection:n?.direction??1}}handleErrorOrClosedGame(e){const{setAllGameList:t,allGameList:n}=(0,Z.g)();v.Uh.cache.cancelCacheUrls(["/api/game/hall/listPlatformGameV2"]),t(d()(n,(t=>t.platformId!==e.platformId)),!0)}handleServiceCode(e,t){const n=e.data?.code,i=I.VH.SERVICE_CODE,{t:r}=(0,C.QT)();switch(n){case i.DEMO_GAME_LINE_DISABLED:case i.DEMO_GAME_DISABLED:case i.TEST_REGISTER_GAME:l.Z.destroy.call(l.Z),F.Z.openLoginRegisterModal({onLoginSuccess:()=>this.navigateToGame(t)});break;case i.SMS_CODE_GAME:F.Z.open("veriryBindPhone",{verifyScene:k.O.DEPOSIT_GAME_SMS_VERIFY,onSuccess:()=>this.navigateToGame(t)});break;case i.FIRST_RECHARGE:l.Z.destroy.call(l.Z);const a=F.Z.create({title:r("lobby.common.tips.title"),titlePosition:"center",content:()=>r("lobby.game.needFirsstRecharge"),okText:r("lobby.center.setting.goRecharge"),onOk:()=>{a.destroy(),F.Z.open("payModal")}});break;case i.DOWNLOAD_APP:l.Z.destroy.call(l.Z),v.xN.dispatch({type:"DOWNLOAD_APP_BY_AFTER_CLICK_GAME"});break;case i.DOWNLOAD_APP_CHANNEL_BY_CALL_GAMEAPI:l.Z.destroy.call(l.Z);const{channelInfo:o}=(0,W.e)();o||v.xN.dispatch({type:"DOWNLOAD_APP_REQUIRE_FORCE_BY_CHANNEL"});const{viewDownload:s}=o,{H5:u}=U.GN;s===u?v.xN.dispatch({type:"P2A_FORCE_INSTALL_BY_CHANNEL"}):v.xN.dispatch({type:"DOWNLOAD_APP_REQUIRE_FORCE_BY_CHANNEL"});break;case i.BIND_WITHDRAW:F.Z.create({title:r("lobby.common.tips.title"),titlePosition:"center",content:()=>r("lobby.game.needBindBankCard"),okText:r("lobby.center.setting.goBind"),onOk:async()=>{Q.ZP.push({name:T.x4.WITHDRAW,query:{current:"3"}})}});break;default:this.handleErrorOrClosedGame(t);const{userInfos:d}=(0,N.h)();(0,x.trace)("game-login-fail",{errInfo:e,serviceCode:n,useInfo:c()(d,["game_gold","username","platfromid"]),gameParameters:JSON.stringify(t)})}}async queryGameInfo(e){const{setGameScoring:t,setGamePlaying:n,setGameOpening:i}=(0,Z.g)();t(!0);let r=null;try{r=this.isSelfOpertedGame(e.platformId)?await this.getSelfOperatedGameInfo(e):await this.getThreeWayGameInfo(e),v.xN.dispatch({type:"GAME_LOGIN_SUCCESS",payload:{gameInfo:e,gameUrl:r?.gameUrl}}),t(!1)}catch(a){Y.Z.info("queryGameInfo error: ",a);const r=a;throw this.handleServiceCode(r,e),t(!1),i(!1),n(!1),a}return r}async openGameInExternalLink(e,t){const{logoutAndUpdatePrize:n}=(0,N.h)(),i=async()=>t?this.generateGameInfo(e,t):this.queryGameInfo(e);if(A.tT){const t=await i();t?.gameUrl&&(window.closeGame=()=>{v.xN.dispatch({type:"REPORT_MANAGER",eventName:"gameReturnLobby",payload:{payload:{name:e?.gameName,gameCategoryId:e?.gameCategoryId,gameType:e?.gameType,gameId:e?.gameId}}}),n()},(0,M.MI)(t.gameUrl))}else{let e;O.h5?e=window.open("","_blank"):O.LU||(e=window.open("/pages/game/index.html","_blank")),i().then((t=>{if(O.Fc&&(e=window.open("/pages/game/index.html","_blank")),Y.Z.info(`gameOpener1: ${t.gameUrl}`,e),t.gameUrl&&e){const n=O.h5?window:e;(0,R.Tf)(t?.gameUrl)&&n?.sessionStorage?.setItem(this.HTML_DATA_KEY,t.gameUrl),Y.Z.info(`gameOpener2: ${e}`,n.sessionStorage.getItem(this.MY_MARKER)),setTimeout((()=>{this.navigateToUrlAndUpdatePrize(t.gameUrl,e),n?.sessionStorage?.setItem(this.MY_MARKER,"true")}),100)}else e?.close()})).catch((()=>{e?.close()}))}}async openGameInEmbedded(e,t){const{setPreGameEmbeddedParams:n,gameParameters:i,setGameParameters:r}=(0,Z.g)();n({name:Q.ZP.currentRoute.name,query:Q.ZP.currentRoute.query});const{gameCategoryId:a,platformId:o}=e;r({url:"",platformId:o,name:e.gameName||e?.brand||""}),Q.ZP.push({name:T.x4.GAME_EMBEDDED,query:{platformId:String(o),gameCategoryId:String(a)}});try{const n=t?this.generateGameInfo(e,t):await this.queryGameInfo(e);if(n.gameUrl){const{gameUrl:t,gameName:a}=n;r({...i,url:t,screenDirection:n.screenDirection,gameInfo:e,name:a,platformId:o})}}catch(s){r(void 0),Q.ZP.replace((0,Z.g)().preGameEmbeddedParams)}}shouldOpenInExternalLink(e){return A.cY.isWgPackage&&[14,200].includes(e?.platformId)||O.Fc||O.h5}handleContinueGamePrompt(e,t){const{t:n}=(0,C.QT)(),{logoutAndUpdatePrize:i}=(0,N.h)(),{setGamePlaying:r}=(0,Z.g)();F.Z.create({title:n("lobby.common.tips.title"),titlePosition:"center",closable:!0,content:n("lobby.game.continueGameTips"),onCancel:async()=>{r(!1),await i(!0),this.navigateToGame(e)},cancelText:n("lobby.game.enterCurrenctGame"),okText:n("lobby.game.continueGame"),onOk:()=>{r(!1),e.gameName=t?.gameName,e.gameId=Number(t?.gameId),e.platformId=Number(t?.platfromId),e.gameCategoryId=Number(t?.categoryId),this.navigateToGame(e,t)}})}async navigateToGame(e,t){const{isGameOpening:n,setGameOpening:i,setGamePlaying:r,setTryModeRecentGameListData:a}=(0,Z.g)(),{isTryMode:o,userInfos:s}=(0,N.h)();if(n)return;if(i(!0),(0,Z.g)().isGamePlaying){const[t,n]=await(0,J.Z)((0,_.QD)());return t&&console.error(t),i(!1),void(n?.lastGameInfo?this.handleContinueGamePrompt(e,n.lastGameInfo):(r(!1),this.navigateToGame(e)))}r(!0),this.shouldOpenInExternalLink(e)&&(e.isExternalLink=!1);const c={game_machine_type:e.platformId,game_machine_name:e.gameName,game_machine_id:e.gameId,game_machine_cp:e.platformName,game_gold:s?.game_gold,currency:s?.currency};(0,M.C1)("enterGame",c),v.xN.dispatch({type:"MONITOR_EVENT",eventName:"IndicatorC",payload:c}),e?.isExternalLink?await this.openGameInExternalLink(e,t):await this.openGameInEmbedded(e,t),i(!1),o&&a(e)}continueGameDialog(e){const{logoutAndUpdatePrize:t,hasLogined:n}=(0,N.h)();if(Q.ZP.app.$route.name!==T.x4.GAME_EMBEDDED&&n){const{setGameScoring:n}=(0,Z.g)();n(!0);const{t:i}=(0,C.QT)(),r=F.Z.create({titlePosition:"center",title:()=>i("lobby.common.tips.title"),content:()=>i("lobby.game.gameContinueTips"),onCancel:()=>{n(!1),t(!0)},onOk:()=>{const t={gameId:e.gameId,platformId:e.platfromId,categoryId:e.categoryId,gameCategoryId:e.categoryId,gameName:e.gameName,isExternalLink:!1};this.navigateToGame(t,e),r.destroy()}})}}selfRestraint(){const{t:e}=(0,C.QT)(),{userInfos:t,updateUserInfos:n}=(0,N.h)(),{getBannedStr:i}=(0,K.g)(),r=F.Z.create({title:e("lobby.notice.importantNotice"),width:M.ZP.px2rem(600),titleType:"error",content:i(t?.restrictInfo?.startTime,t?.restrictInfo?.endTime,1),closable:!0,cancelButtonProps:{style:{display:"none"}},afterClose:async()=>{try{const e=await(0,V.U3)();e?.restrictInfo?n({...t,...e?.restrictInfo}):(delete t?.restrictInfo,n(t))}catch(e){}},okText:e("lobby.modal.loginRegister.contactCustomer"),onOk:async()=>{await r.destroy(),(0,S.fL)()}});return r}async gameLogout(){const{updateUserInfos:e,userInfos:t}=(0,N.h)(),{gameParameters:n,setGameScoring:i,setGameLogoutNetError:r}=(0,Z.g)(),a=this.isSelfOpertedGame(n?.platformId),s={platformId:n?.platformId},[l,u]=await(0,J.Z)(a?(0,_.Qf)(s):(0,_.Du)(s));if(r(!!v.Uh.getErrorType(l)),l){const e=l;throw e?.data?.code!==I.VH.SERVICE_CODE.OTHER_CLIENT_GAME_LOGIN&&i(!0),Y.Z.myDebug("退出游戏发生错误: ",l),(0,x.trace)("game-logout-fail",{errInfo:e?.data,useInfo:c()(t,["game_gold","username","platfromid"]),gameParameters:JSON.stringify(n)}),l}if(u){const{lastgameinfo:t,game_gold:n,bonus:r,totalGold:a,bonusRequireBet:s}=u;t?this.continueGameDialog(t):i(!1),e(o()({},(0,N.h)().userInfos,{game_gold:n,bonus:r,totalGold:a,bonusRequireBet:s}))}}goToPlateform(e){const{platformId:t,gameCategoryId:n}=e,{setActiveTabkey:i}=(0,Z.g)();i(Number(`${n}${p.$8}`)),Q.ZP.push({name:T.x4.SUB_GAME,query:{gameCategoryId:`${n}`,platformId:`${t}`}})}handleSelfSportJump(){Q.ZP.push({name:T.x4.WG_GAME,query:{...Q.ZP.currentRoute.query,preUrl:Q.ZP.currentRoute.name}})}handleAnchorHotExternalLink(e){const t=e?.externalLink??"",n=t.includes("://")?t:"https://"+t;if(e.isExternalLink)(0,M.MI)(n);else{const{gameParameters:t,setGamePlaying:i,setGameParameters:r}=(0,Z.g)(),{gameName:a,platformId:o,gameCategoryId:s,screenDirection:c}=e;i(!0),r({...t,url:n,gameInfo:e,screenDirection:c?1:0,name:a??"",platformId:o}),Q.ZP.push({name:T.x4.GAME_EMBEDDED,query:{platformId:o?.toString(),gameCategoryId:s?.toString()}})}}async openGame(e){const t=e,{userInfos:n,hasLogined:i,getCurrencyInfoByCode:r,isDemoMode:a,updateUserInfos:o}=(0,N.h)(),{platformExchangeObj:s}=(0,Z.g)(),{t:l}=(0,C.QT)();if(window.ReporterMananger?.searchStatus){const{searchStatus:t}=window.ReporterMananger;v.xN.dispatch({type:"REPORT_MANAGER",eventName:"ClickSearchResult",payload:{key_word:t?.key_word,result_number:t?.gameList?.length??0,position_number:t?.gameList?.findIndex((t=>t.gameId==e.gameId)),game_machine_type:e.gameCategoryId,game_machine_name:e.gameName,game_machine_id:e.gameId,game_machine_cp:e.platformName}}),window.ReporterMananger?.updateSerachStatus()}if(a&&t.isAnchorHot)return void this.handleAnchorHotExternalLink(t);if(!t.gameId)return void this.goToPlateform(t);if(t.gameId===L.vp)return void this.handleSelfSportJump();if(n?.restrictInfo&&n.restrictInfo?.status.includes(z.v.isRestraintGame))return void this.selfRestraint();if(n?.user_status==P.L3.FreezeGame){F.Z.message({type:"error",content:l("lobby.center.security.freezeGame")});try{const e=await(0,V.U3)();o({...n,user_status:e?.userStatus})}catch(m){}return}if(j.default.canOpenSaveShortCutByChannel)try{return void v.xN.dispatch({type:w.ay.P2A_INSTALL_BY_CHANNEL})}catch(m){const{userInfos:e}=(0,N.h)();(0,x.trace)("pwa_install_by_channel",{errInfo:m,userInfo:c()(e,["username","platfromid","regPkgId"])})}if(q.default.canOpenSaveShortCutByChannel)return void v.xN.dispatch({type:w.ay.P2A_FORCE_INSTALL_BY_CHANNEL});if($.default.canOpenDownloadAppByChannel)try{return void v.xN.dispatch({type:w.ay.DOWNLOAD_APP_NOT_REQUIRE_FORCE_BY_CHANNEL})}catch(m){const{userInfos:e}=(0,N.h)();(0,x.trace)("download_install_by_not_require_force_channel",{errInfo:m,userInfo:c()(e,["username","platfromid","regPkgId"])})}if(H.default.canOpenDownloadAppByChannel)try{return void v.xN.dispatch({type:w.ay.DOWNLOAD_APP_REQUIRE_FORCE_BY_CHANNEL})}catch(m){const{userInfos:e}=(0,N.h)();(0,x.trace)("download_install_by_require_force_channel",{errInfo:m,userInfo:c()(e,["username","platfromid","regPkgId"])})}if(!i){if(t.demoModeSupport){const e=F.Z.create({title:l("lobby.common.tips.title"),titlePosition:"center",content:l("lobby.game.openDemoGameTip"),contentPosition:"center",okText:l("lobby.game.demo"),cancelText:l("lobby.modal.task.close"),onOk:()=>{e.destroy(),this.navigateToGame(t)}});return}return void F.Z.openLoginRegisterModal({onLoginSuccess:()=>this.navigateToGame(t)})}const u=n?.gameSession;if(!a&&!u&&n&&n?.game_gold<(t?.minimumEntryBalance||0)){const e=n.currency,i=r(e),a=g.F.currenciesFormatConfig()[e]?.symbol||i?.currencySign;return void F.Z.message({type:"warning",content:l("lobby.game.goldInadequate",{gold:i?.currencyType===P.Tl.CRYPTO?`${t.minimumEntryBalance}${a}`:`${a}${t.minimumEntryBalance}`})})}if(t.platformId!==p.YH&&5===n?.account_type)return void F.Z.message({type:"warning",content:l("lobby.game.nopermission")});const d=`${t?.platformId}_${n?.currency}`,h=s?.platformCurrencyExchange?.[d];if(h&&h!==b.U7.Have&&n){const e=s?.memberIntoThirdLimit?.[n.currency],i=n?.game_gold,r=i<e?i:e,a=(0,E.DZ)(r,h);let o=(0,E.uF)(a)?Math.floor(100*Number(a))/100:Number(a);[105,19,22,27].includes(t.platformId)&&(o=Math.floor(10*Number(a))/10);const c=F.Z.create({title:l("lobby.common.tips.title"),titlePosition:"center",content:l("lobby.game.nounConversionPrompt",{balance:r,proportion:`1:${h}`,amount:o}),contentPosition:"center",onOk:()=>{c.destroy(),this.navigateToGame(t)}})}else this.navigateToGame(t)}},(0,m.Z)(r.prototype,"openGame",[i],Object.getOwnPropertyDescriptor(r.prototype,"openGame"),r.prototype),r);var ne=n(67288)},96309:function(e,t,n){n.d(t,{g:function(){return N}});var i=n(31921),r=n.n(i),a=n(36968),o=n.n(a),s=n(45578),c=n.n(s),l=n(27361),u=n.n(l),d=n(36630),h=n(34731),m=n(62933),g=n(23474),p=n(35829);var f=n(91475);var y=n(85564),b=n.n(y);const v=(e,t)=>{const n=Array.isArray(t.matches)?t.matches:[t.matches],i=new Map;n.forEach((e=>{i.set(e,[])})),e.forEach((e=>{i.has(e.gameCategoryId)&&i.get(e.gameCategoryId).push(e)}));return b()(Array.from(i.values()))},w=(e,t)=>{const{isContainsNull:n=!1}=t,i=Array.isArray(t.matches)?t.matches:[t.matches],r=new Map;i.forEach((e=>{r.set(e,null)})),e.forEach((e=>{r.has(e.gameId)&&r.set(e.gameId,e)}));const a=Array.from(r.values());return n?a:a.filter(Boolean)},C=(e,t)=>{const n=Array.isArray(t.matches)?t.matches:[t.matches],i=new Map;n.forEach((e=>{i.set(e,[])}));const r=n.reduce(((e,t)=>(e[t]=new RegExp(t,"i"),e)),{});!function(){for(let t=0;t<e.length;t++){const a=e[t];for(let e=0;e<n.length;e++){const t=n[e];if(r[t].test(a.gameName)){i.get(t).push(a);break}}}}();return b()(Array.from(i.values()))},I=function(e,...t){const n={gameId:w,gameName:C,gameCategoryId:v};let i=e.allGameList.filter(Boolean);for(let a=0;a<t.length;a++){const e=t[a],o=e.type||"gameId";try{i=n[o](i,e)}catch(r){i=[],console.error(r)}}return i=(e=>{const{isDemoMode:t}=(0,f.h)();return t&&(e=e.filter((e=>null===e||e.anchorSupport))),e})(i),i};var T=n(59890),S=n(20360);let P;!function(e){e.GameCategorieId="gameCategoryId",e.PlatformId="platformId",e.GameName="gameName",e.GameId="gameId"}(P||(P={}));const L={Asia:1,EuropeanAmerican:2,Stake:4};var k=n(86943),_=n(35475),E=n(67476);const O=(e,t)=>h.Hf.includes(e)||h.Aw.includes(e)?`${e}`:`${e}.${t}`;var R=n(58217),A=n(75812),D=n(70539),x=n(63060),Z=n(41800);const N=(0,E.Q_)("game",{state:()=>({anchorHotGameList:[],tryModeData:{},gameCategoriesAvailable:[],gameCategorieExtLink:[],allFavoriteList:void 0,allCategoriesGameList:{[h.ck.Chess]:void 0,[h.ck.Fish]:void 0,[h.ck.BlockChain]:void 0,[h.ck.Electronic]:void 0,[h.ck.Demo]:void 0},gameCategoryPlatformList:{},allGameList:[],selectGameCategoryId:h.ck.Hot,activeTabkey:h.ck.Hot,searchHistory:[],gameListLoading:!1,gameParameters:void 0,gameTypesShowRid:{},hasLuckyBet:!1,activeGameCategoryId:h.ck.Hot,jackPotAmount:"",preGameEmbeddedParams:{name:p.x4.GAME},platformExchangeObj:{platformCurrencyExchange:{},memberIntoThirdLimit:{}},isGameOpening:!1,isGamePlaying:!1,isGameScoring:!1,isFullScreen:!1,isGameLogoutNetError:!1,gameCategoriesNetError:null,gameCategoriesNetErrorLoading:!1,scrollStickyActiveTab:h.ck.Hot}),getters:{isSupportSelfSportLayout:()=>Object.values(L).includes(1),getSelfSportMaintainStatus(){let e=!1;return this.gameCategoriesAvailable.forEach((t=>{if(t.gameCategoryId===h.ck.Sports){const n=t.list.find((e=>e.gameId===S.vp));e=void 0===n||!0===n?.maintainStatus}})),e},getWGSportIsOpen(){let e=!1;return this.gameCategoriesAvailable.forEach((t=>{if(t.gameCategoryId===h.ck.Sports){const n=t.list.find((e=>e.gameId===S.vp));e=!!n}})),e},gameMenuAvailable(){const{t:e}=(0,R.QT)(),{gameIconMap:t,gameIconSelectMap:n}=D.Z.useGameShowImage(),{hasLogined:i,sabaMaintenance:r}=(0,f.h)(),a=[...this.gameCategoriesAvailable];return[{gameCategoryId:h.ck.Hot,gameCategoryName:`${e("lobby.gameMenu.menu0")}`,customizeIcon:t.get(h.ck.Hot),customizeIconActive:n.get(h.ck.Hot)},...a.filter((e=>(e.gameCategoryId!==h.ck.Demo||!i)&&e.display)).map((i=>(i.gameCategoryName=e(`lobby.gameMenu.menu${i.gameCategoryId}`),i.customizeIcon=t.get(i.gameCategoryId),i.customizeIconActive=n.get(i.gameCategoryId),i.gameCategoryId===h.ck.Sports&&i.list.forEach((e=>{e.gameId===S.vp&&(e.maintainStatus=e.maintainStatus||r)})),i)))]},currentPlatformGameList(){const{isWeb:e,homeLayoutInfos:t}=(0,f.h)(),n=t?.webGameIcon===m.p4.VERTICAL_BOTTOM;return this.gameCategoriesAvailable.filter((t=>{const i=e?t?.pcSquare:t?.appSquare,r=n?e?t?.pcVertical:t?.appVertical:i;if(t.display&&r&&![h.ck.Club,h.ck.ClubFriend,h.ck.Demo].includes(t.gameCategoryId))return!0})).map((t=>{const i=e?3*(t?.pcSquare||2):1*(t?.appSquare||6),r=n?e?6*(t?.pcVertical||1):3*(t?.appVertical||2):i,a=t?.list||[];return{key:t.gameCategoryId,listData:a?[...a].slice(0,r):[],dataNum:r,totalData:a}}))},currentHotGameList:e=>(t=h.ck.Hot,n=!1)=>{const{isDemoMode:i,homeLayoutInfos:r}=(0,f.h)();let a=N().getGameListByCategoryAndPlatform({gameCategoryId:h.ck.Hot}).list;if(t!==h.ck.Hot&&(a=a.filter((e=>e.gameCategoryId===t))),i&&!n){const n=r?.webGameIcon===m.p4.VERTICAL_BOTTOM;let i=e.anchorHotGameList.map((e=>({...e,customLargeIcon:n})));t!==h.ck.Hot&&(i=i.filter((e=>e.gameCategoryId===t)));const o=100-i.length;return[...i,...a.slice(0,o)]}return a},getGameListByCategoryAndPlatform:e=>t=>{const{gameCategoryId:n,platformId:i,pageIndex:r,pageSize:a}=t,{isDemoMode:o}=(0,f.h)(),s=O(n,i);let c=u()(e.gameCategoryPlatformList,s,[]);o&&(c=c.filter((e=>e.anchorSupport)));let l={list:c,total:c.length};if(a&&r){const e=(r-1)*a,t=e+a;l={list:c.slice(e,t),total:c.length}}return l},currentRecentGameList:e=>(t=h.ck.Hot)=>{const{isTryMode:n,language:i,userInfos:r}=(0,f.h)(),a=n?u()(e.tryModeData,`${i}.${r?.currency}.recentGameListData`)||[]:N().getGameListByCategoryAndPlatform({gameCategoryId:h.ck.Recent}).list,o=a.filter((e=>e.gameCategoryId===t));return t===h.ck.Hot?a:o},currentCollectGameList:e=>(t=h.ck.Hot)=>{const{isTryMode:n,language:i,userInfos:r}=(0,f.h)(),a=n?u()(e.tryModeData,`${i}.${r?.currency}.collectGameListData`)||[]:N().getGameListByCategoryAndPlatform({gameCategoryId:h.ck.Collenct}).list,o=a.filter((e=>e.gameCategoryId===t));return t===h.ck.Hot?a:o},currentAllFavoriteList:e=>{const{isTryMode:t,language:n,userInfos:i}=(0,f.h)(),r=`${n}.${i?.currency}.collectGameListData`,a=u()(e.tryModeData,r)||[];return t?a.map((e=>e?.gameId)):e.allFavoriteList},currentCategoriesPlatformList:e=>t=>e.gameCategoriesAvailable.find((e=>e.gameCategoryId===t))?.list??[],currentCategoriesPlatformPageGameList:e=>(t,n,i)=>{const r=`${t}.platform-${n}.[${i-1}]`;return u()(e.allCategoriesGameList,r)||[]},getFilteredGameList:e=>(...t)=>I(e,...t),showRidTypes(){return Object.keys(this.gameTypesShowRid).map((e=>this.gameTypesShowRid[e])).flat()},hasGamePlaying(){return this.isGamePlaying&&!!this.gameParameters?.platformId}},persist:{enabled:!0,strategies:[{storage:(0,A.nX)({getItem:(e,t)=>((A.ZP.isLayoutChange()||A.ZP.isLanguateChange())&&t.removeItem(e),t.getItem(e,t))},localStorage),paths:["gameCategoriesAvailable","gameCategorieExtLink","allFavoriteList","searchHistory","allGameList","anchorHotGameList","allCategoriesGameList","tryModeData","gameCategoryPlatformList","platformExchangeObj"]},{storage:(0,A.nX)(null,localStorage),paths:["isGamePlaying"],key:"sharedGameData"}]},actions:{setGameTypesShowRid(e){Object.keys(e).forEach((t=>{this.gameTypesShowRid[t]=e[t]}))},setHasLukyBet(e){this.hasLuckyBet=e},setGameParameters(e){this.gameParameters=e},setGameListLoading(e){this.gameListLoading=e},async fetchGameCategoriesAvailable(e){const[t,n=[]]=await(0,Z.Z)(g.r.getGameCategorieList(e));this.gameCategoriesNetError=t,this.gameCategoriesNetErrorLoading=!1;const{isDemoMode:i}=(0,f.h)(),r=n.map((e=>{if([h.ck.Hot,...h.P].includes(e.gameCategoryId))return{...e,display:!1};const t=e.gameCategoryId===h.ck.Sports?this.filteredHotGameListByLayout(e.list):e.list;h.Aw.includes(e.gameCategoryId)&&this.setGameCategoryPlatformList({gameCategoryId:e.gameCategoryId,platformId:e.gameCategoryId,gameList:t});const n=i?t.filter((e=>e.anchorSupport)):t,r=!!n.length&&e.display;return{...e,display:r,list:n}}));this.gameCategoriesAvailable=r},async fetchGameCategorieExtLink(){const e=await(0,_.LG)();this.gameCategorieExtLink=e},async fetchFavoriteIdList(){const{useFastLogin:e,hasLogined:t}=(0,f.h)();if(e||t){const e=await g.r.getFavoriteGameIdList();this.allFavoriteList=e.rows.map((e=>e.game))}else this.setTryModeCollectGameListData(this.currentCollectGameList())},async fetchFavoriteGameList(e){const{isTryMode:t}=(0,f.h)();if(t)return;const n=await g.r.getFavoriteGameList(e),i=this.filterFavoriteListByLayout(n);this.setGameCategoryPlatformList({gameCategoryId:h.ck.Collenct,platformId:h.ck.Collenct,gameList:i})},async fetchRecentGameList(e){const{isTryMode:t}=(0,f.h)();if(t)return;const n=await g.r.getRecentGameList(e),i=this.filteredHotGameListByLayout(n);this.setGameCategoryPlatformList({gameCategoryId:h.ck.Recent,platformId:h.ck.Recent,gameList:i})},async fetchDemoGameList(e){const t=await g.r.getDemoGameList(e);this.setGameCategoryPlatformList({gameCategoryId:h.ck.Demo,platformId:h.ck.Demo,gameList:t})},async searchGameList(e,t){const n=e.trim();if(!n)return;const i=await g.r.searchGameList(n,t);this.setAllGameList(i)},async fetchSpecialGameList(e){const t=await g.r.getSpecialGameList(e);this.setAllGameList(t)},filterFavoriteListByLayout(e){return e.filter((e=>e.gameId!==S.vp||!!this.isSupportSelfSportLayout))},filteredHotGameListByLayout(e){return e.filter((e=>e.gameId!==S.vp||!!this.isSupportSelfSportLayout))},async fetchHotGameList(e){const{isDemoMode:t}=(0,f.h)(),n=await g.r.getHotGameList(e),i=this.filteredHotGameListByLayout(n);this.setGameCategoryPlatformList({gameCategoryId:h.ck.Hot,platformId:h.ck.Hot,gameList:i}),this.setAllGameList(i),t&&this.fetchAnchorHotList()},async fetchAnchorHotList(){const e=await g.r.getAnchorHotList();this.anchorHotGameList=e},async fetchPlatformGameList(e,t){const{gameCategoryId:n,platformId:i}=e;if(await(async()=>{0===this.gameCategoriesAvailable.length&&await this.fetchGameCategoriesAvailable();const e=(this.gameCategoriesAvailable.find((e=>e.gameCategoryId===n))?.list??[])?.find((e=>e.platformId===i));return Boolean(e?.platformId)})()){const r=await g.r.getPlatformGameList(e,t);this.setGameCategoryPlatformList({gameCategoryId:n,platformId:i,gameList:r}),this.setAllGameList(r)}},async getByTemplate(){const{hasLogined:e}=(0,f.h)();if(!e)return;const t=e=>{if(!e?.length)return[];const t=[];return e.forEach((e=>{e?.platformCategoryGame?.some((e=>e.platformId===T.YH))&&t.push(e.gameCategoryId)})),[...new Set(t)]};(0,k.xS)({template:d.dF.LuckyBet.toString()}).then((e=>{const n={};e?.length&&(this.setHasLukyBet(!0),e?.forEach((e=>{const i=e.activeData||{},{categoryPlatformGame:r}=i;n[e.id]=t(r)}))),this.setGameTypesShowRid(n)})),x.Z.ws.on(x.q.ACTIVE_DETAILS,(e=>{if(e.template!==d.dF.LuckyBet)return;const n=e.activeData||{},{categoryPlatformGame:i}=n;this.setGameTypesShowRid({[e.id]:t(i)})}))},async fetchPlatformExchangeList(){const e=await(0,_.Dg)();this.platformExchangeObj=e},setGameCategoriesAvailable(e){this.gameCategoriesAvailable=e},setAllGameList(e,t=!1){this.allGameList=t?e:c()([...e,...this.allGameList],"gameId")},setCategoriesPlatform(e,t){this.allCategoriesGameList[e]=t},setCategoriesPlatformGameList(e,t,n=1,i){const r=n-1,a={...this.allCategoriesGameList},s=`${e}.platform-${t}.[${r}]`;this.allCategoriesGameList=o()(a,s,i)},setGameCategoryPlatformList(e){const{gameCategoryId:t,platformId:n,gameList:i}=e,a=O(t,n),o={...this.gameCategoryPlatformList};this.gameCategoryPlatformList=r()(o,a,i,Object)},setSelectGameCategoryId(e){this.selectGameCategoryId=e},setActiveTabkey(e){this.activeTabkey=e},setAllFavoriteList(e){this.allFavoriteList=e},setTryModeCollectGameListData(e){const{userInfos:t,language:n}=(0,f.h)(),i=`${n}.${t?.currency}.collectGameListData`,a={...this.tryModeData};this.tryModeData=r()(a,i,e,Object)},setTryModeRecentGameListData(e){const{userInfos:t,language:n}=(0,f.h)(),i=`${n}.${t?.currency}.recentGameListData`,a={...this.tryModeData},o=u()(a,i)||[];-1===o?.findIndex((t=>t.gameId===e.gameId))&&(o.unshift(e),this.tryModeData=r()(a,i,o,Object))},setSearchHistory(e){this.searchHistory=e},setActiveGameCategoryId(e){Object.values(h.ck).includes(e)&&e!==h.ck.Normal&&(this.activeGameCategoryId=e)},setJackPotAmount(e){this.jackPotAmount=e},setPreGameEmbeddedParams(e){this.preGameEmbeddedParams=e},setGameScoring(e){this.isGameScoring=e},setGamePlaying(e){this.isGamePlaying=e},setGameOpening(e){this.isGameOpening=e},setFullScreen(e){this.isFullScreen=e},setGameLogoutNetError(e){this.isGameLogoutNetError=e},resetGamePlaying(){const{hasLogined:e}=(0,f.h)();e||(this.isGamePlaying=!1)},setScrollStickyActiveTab(e){this.scrollStickyActiveTab=e}}})}}]);