webcf2.ojwincf2.com Open in urlscan Pro
2606:4700::6812:1259  Public Scan

URL: https://webcf2.ojwincf2.com/assets/home@theme=1.cf2b730f8f98b44eb90d.js
Submission: On October 24 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

(self.webpackChunkmy_vue_app=self.webpackChunkmy_vue_app||[]).push([[76140,13403],{66678:function(t,e,o){var i=o(85990);t.exports=function(t){return i(t,4)}},50947:function(t,e,o){"use strict";let i,s,r,n;o.d(e,{L1:function(){return s},Qq:function(){return r},dz:function(){return n},qC:function(){return i}}),function(t){t[t.CLOSE=0]="CLOSE",t[t.OPEN=1]="OPEN"}(i||(i={})),function(t){t[t.NEXT_DAY=1]="NEXT_DAY",t[t.ODAY=2]="ODAY"}(s||(s={})),function(t){t[t.All=0]="All",t[t.TransferIn=1]="TransferIn",t[t.TransferOut=2]="TransferOut",t[t.Check=3]="Check",t[t.ReceiveRecord=5]="ReceiveRecord",t[t.ManualPull=6]="ManualPull"}(r||(r={})),function(t){t[t.All=0]="All",t[t.TransferIn=1]="TransferIn",t[t.TransferOutCapital=2]="TransferOutCapital",t[t.TransferOutInterest=3]="TransferOutInterest",t[t.ReceiceProfix=5]="ReceiceProfix",t[t.ManualPull=6]="ManualPull"}(n||(n={}))},33032:function(t,e,o){"use strict";o.d(e,{Z:function(){return q}});var i,s,r,n,a,l,c,h,m,d,u,p,g,y,b,f,S,C,I,L=o(53158),v=o(55433),k=o(12040),T=o(38821),E=o(2046),A=o(34731),w=o(45335),O=o(46851),R=o(35550),D=o(71743),G=o(58217),Z=o(91475),_="gZWNp8yfCa84SbK1isUh",H="wY5cQRReU5XF7mcZOsb4",P="B8h34J8oKdTmI8VELwQ3",x="O4Exl7jFIyjCQGk0s0Sv",B="WFgu2pa99tD_NlYB8xOo",M="lk2OxhaBJDBCva3nISZB",N="plO6pIFSxKrt8aVT2EX4",$="wktjOaCrpzqHHOxI5yTA",K="v5xQIYMIIMxyM1eJJSwE",W="H87B4axJGqNd_9cwzGfc",z="SeDomwcGzD2t8x0zphzR",U="FdnK8RvedNix97XLNlIT",j="TZvEr2Cdg_SKGz9SL_gj";let q=(i=(0,T.wA)({name:"Pagation"}),s=(0,T.fI)({default:1}),r=(0,T.fI)(),n=(0,T.fI)({default:0}),a=(0,T.fI)({default:!1}),l=(0,T.fI)({default:[]}),c=(0,T.fI)({default:0}),h=(0,T.DF)("setPagationLayoutStyle"),m=(0,E.Debounce)(100),d=(0,E.Bind)(),u=(0,E.delay)(3e3),i((g=class extends T.XY{constructor(...t){super(...t),(0,L.Z)(this,"cardCount",y,this),(0,L.Z)(this,"gameCategoryId",b,this),(0,L.Z)(this,"stepWidth",f,this),(0,L.Z)(this,"noTitle",S,this),(0,L.Z)(this,"listData",C,this),(0,L.Z)(this,"displayDataSize",I,this),(0,v.Z)(this,"gridLayoutStyle",{width:"initial",gap:"initial"}),(0,v.Z)(this,"currentData",[]),(0,v.Z)(this,"isDragging",!1),(0,v.Z)(this,"startX",0),(0,v.Z)(this,"isLeft",!0),(0,v.Z)(this,"isRight",!1),(0,v.Z)(this,"isLoading",!1)}setLayoutStyle(t){this.gridLayoutStyle=t}get step(){return this.stepWidth?this.stepWidth:this.container.offsetWidth}mounted(){this.initContainer()}updated(){this.setMinStep()}caculateList(){this.listData.length>this.displayDataSize&&this.listData.length%this.displayDataSize!=0&&(this.listData=[...this.listData,...this.listData.slice(0,this.displayDataSize-this.listData.length%this.displayDataSize)]);const t=Math.ceil(this.listData.length/this.displayDataSize);return new Array(t).fill("")}initContainer(){this.$nextTick((()=>{this.container=this.$el.querySelector(".scroll-pagation-container-inner"),this.container.addEventListener("scroll",this.scrollChange),this.setScrollStatus(),this.setMinStep()}))}setMinStep(){this.$nextTick((()=>{const t=this.$el.querySelectorAll(`.${O.CM.CssClassName.Lobby.CardScrollWrapList}`);for(let e=0;e<t.length;e++){const o=t[e];if(!o.style.cssText.includes("grid-template-columns")){const t=`grid-template-columns: repeat(${this.cardCount}, 1fr);`;o.style.cssText+=t}}}))}beforeDestroy(){this.removeEvtListener(),this.container.removeEventListener("scroll",this.scrollChange)}scrollChange(){this.setScrollStatus()}setScrollStatus(){this.isRight=this.container.scrollLeft+this.container.clientWidth>=this.container.scrollWidth-80,this.isLeft=this.container.scrollLeft<=80}mousedownHandler(t){this.isLoading||(this.isDragging=!0,this.startX=t.clientX,this.container.style.cursor="grabbing")}mousemoveHandler(t){if(!this.isDragging||this.isLoading)return;const e=t.clientX-this.startX;this.container.scrollLeft-=e}mouseupHandler(){this.isDragging=!1,this.container.style.cursor="grab"}removeEvtListener(){this.container.removeEventListener("mousedown",this.mousedownHandler),this.container.removeEventListener("mousemove",this.mousemoveHandler),this.container.removeEventListener("mouseup",this.mouseupHandler)}toLeftOrRight(t){this.container&&(t&&!this.isRight&&(this.container.scrollLeft+=this.step),t||this.isLeft||(this.container.scrollLeft-=this.step),this.setScrollStatus())}renderTitle(){const t=this.$createElement,{t:e}=(0,G.QT)(),o="comm_icon_fy_jt";return t("div",{class:[B,"titleWrap"]},[t("div",{class:M},[!this.noTitle&&(this.$scopedSlots.title?this.$scopedSlots.title?.():t("div",{class:U},[t("div",{class:[j,"leftTitle"]},[(new R.C).getGameCategoryImg(this.gameCategoryId,!0),(0,Z.h)().isCn&&e("lobby.game.menue")])]))]),this.$scopedSlots.holidayApng?.(),this.listData.length>0&&(this.$scopedSlots.pagation?this.$scopedSlots.pagation?.():t("div",{class:[N,"pagation"]},[t("span",{class:{[$]:!0,[W]:this.isLoading||this.isLeft},on:{click:()=>{this.toLeftOrRight()}}},[t("icon-sprite",{attrs:{sprite:(0,D.T9)(o)}})]),t("span",{class:z,on:{click:()=>this.gameCategoryId===A.ck.Hot?w.Nh.goSubGameHotPage():w.Nh.goSubGamePage(this.gameCategoryId,`${this.gameCategoryId}${A.Jj}`)}},[e("lobby.game.loadingAll")]),t("span",{class:{[K]:!0,[W]:this.isLoading||this.isRight},on:{click:()=>{this.toLeftOrRight(!0)}}},[t("icon-sprite",{attrs:{sprite:(0,D.T9)(o)}})])]))])}render(){const t=arguments[0];return t("div",{class:_},[this.$scopedSlots.toTitle?.(),this.renderTitle(),this.$scopedSlots.topContent?.(),t("div",{class:[H,"scroll-pagation-container"]},[t("div",{class:[P,"scroll-pagation-container-box"]},[t("div",{style:this.gridLayoutStyle,class:[x,"scroll-pagation-container-inner"]},[this.$scopedSlots?.gameListBox?.({data:this.listData,tempArr:this.caculateList()}),this.$scopedSlots.content?.()])])])])}},y=(0,k.Z)(g.prototype,"cardCount",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,k.Z)(g.prototype,"gameCategoryId",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,k.Z)(g.prototype,"stepWidth",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=(0,k.Z)(g.prototype,"noTitle",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,k.Z)(g.prototype,"listData",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=(0,k.Z)(g.prototype,"displayDataSize",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,k.Z)(g.prototype,"setLayoutStyle",[h],Object.getOwnPropertyDescriptor(g.prototype,"setLayoutStyle"),g.prototype),(0,k.Z)(g.prototype,"scrollChange",[m,d],Object.getOwnPropertyDescriptor(g.prototype,"scrollChange"),g.prototype),(0,k.Z)(g.prototype,"setScrollStatus",[u],Object.getOwnPropertyDescriptor(g.prototype,"setScrollStatus"),g.prototype),p=g))||p)},13403:function(t,e,o){"use strict";o.r(e),o.d(e,{default:function(){return J}});var i,s,r,n,a,l,c,h,m,d,u,p,g,y,b,f,S,C,I,L,v,k,T,E,A,w,O,R,D=o(53158),G=o(55433),Z=o(12040),_=o(38821),H=o(2046),P=o(45335),x=o(34731),B=o(65074),M=o(7174),N=o(77674),$=o(70753),K=o(71743),W=o(96309),z=o(91475),U=o(46930),j=o(50008),q=o(73389),F=o(12832),Y="avwXXc4qgxs0n6yNxABU",V="_S3Gqs7Pat3lw5JdNOCd",X="LLCEvsnIyNozmsBiz0sD",Q="xQxdPR5O2U8rhaYlHoeQ";let J=(i=(0,_.wA)({name:"H5MidMenu"}),s=(0,_.fI)({default:!0}),r=(0,_.fI)({required:!0}),n=(0,_.fI)({default:!1}),a=(0,_.fI)({default:!1}),l=(0,_.fI)({default:!1}),c=(0,_.fI)({default:!1}),h=(0,_.fI)(U.ZP.string.def("0.5rem")),m=(0,_.fI)(U.ZP.string.def("75%")),d=(0,_.fI)(U.ZP.func.def(void 0)),u=(0,_.fI)({default:!0}),p=(0,_.y1)("clickItem"),g=(0,_.RL)("navList"),y=(0,_.RL)("gameStore.activeGameCategoryId"),b=(0,$.Xo)(),f=(0,H.Bind)(),i((C=class extends _.XY{constructor(...t){super(...t),(0,G.Z)(this,"state",{isLeft:!0,isRight:!1}),(0,G.Z)(this,"gameStore",(0,W.g)()),(0,G.Z)(this,"activeKey",x.ck.Hot.toString()),(0,G.Z)(this,"listenerRemove",null),(0,D.Z)(this,"shouldScroll",I,this),(0,D.Z)(this,"navList",L,this),(0,D.Z)(this,"showPagation",v,this),(0,D.Z)(this,"showSearch",k,this),(0,D.Z)(this,"useLinearGradient",T,this),(0,D.Z)(this,"useIconRegardless",E,this),(0,D.Z)(this,"limitHeight",A,this),(0,D.Z)(this,"minFontSize",w,this),(0,D.Z)(this,"customClick",O,this),(0,D.Z)(this,"showIcon",R,this)}onClickItem(t){if(this.customClick)this.customClick(t);else{P.Uk.performLinkAction(t,this.shouldScroll);const{setActiveTabkey:e}=(0,W.g)();e(x.ck.Normal)}return t}changeNavList(t,e){t?.length>e?.length&&this.initScrollEvent()}setActiveKey(){if(this.isKeptAlive)return;const t=this.gameStore.activeGameCategoryId.toString();this.navListItemsIds.includes(t)&&(this.activeKey=t,this.setActiveLineWidth())}get navListItemsIds(){return this.navList.map((t=>t.gameCategoryId.toString()))}get linearGradientConfig(){const{currentTheme:t}=(0,z.h)();return{colorStop:[{progress:0,color:t["--theme-aside-icon-color-0"]},{progress:1,color:t["--theme-aside-icon-color-1"]}]}}async mounted(){this.setActiveKey(),this.initScrollEvent()}beforeChange(t){if(B.xP.isClubOrFriendCategory(Number(t)))return this.onChange(t),!1;const e=this.navList.find((e=>e.gameCategoryId.toString()===t));return!P.Uk.isExternalLinkOrJumpPosition(e)||(P.Uk.performLinkAction(e),!1)}onChange(t){const e=this.navList.find((e=>e.gameCategoryId.toString()===t));this.onClickItem(e)}initScrollEvent(){this.showPagation&&this.$nextTick((()=>{const t=this.tabsScrollDom;t&&(this.listenerRemove&&this.listenerRemove(),this.listenerRemove=this.addEventListener(t,"scroll",this.handleTabScroll))}))}handleTabScroll(t){const e=t.target;e&&this.setState({isLeft:e.scrollLeft<=30,isRight:e.scrollWidth-e.scrollLeft-(e.parentElement?.clientWidth??390)<=30})}get tabsScrollDom(){return this.$el.querySelector(".van-tabs__nav")||this.$el.querySelector(".van-tabs__wrap")}toLeftOrRight(t=!1){const e=this.tabsScrollDom;e&&(t?e.scrollTo({left:e.scrollLeft+e.parentElement.clientWidth,behavior:"smooth"}):e.scrollTo({left:e.scrollLeft-e.parentElement.clientWidth,behavior:"smooth"}))}setActiveLineWidth(){setTimeout((()=>{const t=document.querySelector(".h5MidMenuActive");if(t){this.$el.querySelector(".van-tabs__line").style.width=t.clientWidth+"px"}}),30)}renderPagation(){const t=this.$createElement;return[t("div",{class:{[X]:!0,leftButton:!0,hideButton:this.state.isLeft},on:{click:()=>this.toLeftOrRight()}},[this.$scopedSlots.pagationButton?this.$scopedSlots.pagationButton?.():t(M.JO.Tsx,{attrs:{component:{functional:!0,render:()=>t("icon-sprite",{attrs:{useSkeleton:!0,standalone:(0,K.x_)("img_scroll_jt",!0)}})}}})]),t("div",{class:{[Q]:!0,rightButton:!0,hideButton:this.state.isRight},on:{click:()=>this.toLeftOrRight(!0)}},[this.$scopedSlots.pagationButton?this.$scopedSlots.pagationButton?.():t(M.JO.Tsx,{attrs:{component:{functional:!0,render:()=>t("icon-sprite",{attrs:{useSkeleton:!0,standalone:(0,K.x_)("img_scroll_jt",!0)}})}}})])]}renderIcon(t){const e=this.$createElement;let o;return"string"==typeof t?(o=e("my-img",{attrs:{options:{lazy:!1,immediate:!0},src:t,useSkeleton:!0},class:[V,"navIcon","navIconUrl"]}),t.includes(".svg")&&(o=e("icon-sprite",{class:[V,"navIcon"],attrs:{standalone:t,useSkeleton:!0,linearGradientConfig:this.useLinearGradient?this.linearGradientConfig:void 0}}))):o=e("icon-sprite",{class:[V,"navIcon"],attrs:{sprite:t,useSkeleton:!0,linearGradientConfig:this.useLinearGradient?this.linearGradientConfig:void 0}}),o}render(){const t=arguments[0],{isCyanBlue:e}=F.Z.currentTheme();return t("div",{class:{[Y]:!0,midNavH5:!0,h5WithSearch:this.showSearch}},[this.showPagation&&this.renderPagation(),t("div",{class:"tabs"},[t(N.mQ,{attrs:{"lazy-render":!0,beforeChange:this.beforeChange},directives:[{name:"drag-2-scroll",value:{targetQuery:".van-tabs__nav"}}],on:{change:this.onChange,rendered:this.setActiveLineWidth},model:{value:this.activeKey,callback:t=>{this.activeKey=t}}},[this.navList.map((o=>{const i=this.activeKey===o.gameCategoryId.toString(),s=P.xr.completeCustomCategories.find((t=>t.gameCategoryId===o.gameCategoryId)),r=e&&!P.Uk.isExternalLinkOrJumpPosition(s)?q.Z.gameMenu[o.gameCategoryId].active:P.xr.getGameIcon(o,!this.useIconRegardless&&i),n=this.renderIcon(r);return o.onlyRenderShell?t(N.OK,{attrs:{name:o.gameCategoryId.toString()},key:o.gameCategoryId}):t(N.OK,{attrs:{"title-class":["h5MidMenuTab"+o.gameCategoryId,"h5MidMenuTab"],name:o.gameCategoryId.toString()},key:o.gameCategoryId},[t("div",{slot:"title"},[this.$scopedSlots.itemBg?.({active:i}),t("div",{class:["h5MidMenuTabTitle",i?"h5MidMenuActive":""]},[this.$scopedSlots.bgImg&&this.$scopedSlots.bgImg({isActive:i}),this.showIcon&&t("div",{class:"imageWrap"},[n]),t(j.Z,{class:"game-category-name",attrs:{text:o.gameCategoryName,rowCount:2,minFontSize:this.minFontSize,limitHeight:this.limitHeight}})]),i&&this.$scopedSlots.holiday?.()])])}))])])])}},I=(0,Z.Z)(C.prototype,"shouldScroll",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,Z.Z)(C.prototype,"navList",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=(0,Z.Z)(C.prototype,"showPagation",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,Z.Z)(C.prototype,"showSearch",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=(0,Z.Z)(C.prototype,"useLinearGradient",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=(0,Z.Z)(C.prototype,"useIconRegardless",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,Z.Z)(C.prototype,"limitHeight",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=(0,Z.Z)(C.prototype,"minFontSize",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O=(0,Z.Z)(C.prototype,"customClick",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=(0,Z.Z)(C.prototype,"showIcon",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,Z.Z)(C.prototype,"onClickItem",[p],Object.getOwnPropertyDescriptor(C.prototype,"onClickItem"),C.prototype),(0,Z.Z)(C.prototype,"changeNavList",[g],Object.getOwnPropertyDescriptor(C.prototype,"changeNavList"),C.prototype),(0,Z.Z)(C.prototype,"setActiveKey",[y],Object.getOwnPropertyDescriptor(C.prototype,"setActiveKey"),C.prototype),(0,Z.Z)(C.prototype,"handleTabScroll",[b,f],Object.getOwnPropertyDescriptor(C.prototype,"handleTabScroll"),C.prototype),S=C))||S)},6e3:function(t,e,o){"use strict";o.d(e,{Z:function(){return h}});var i,s=o(38821),r=o(88763),n=o(71743),a=o(91475),l=o(12832),c="L58lsd7uWrSVt9rH2iWB";let h=(0,s.wA)({name:"MiddleMenuHoliday"})(i=class extends s.XY{getImage(t,e,o="btn_zc1_jr",i="holidayMain"){return(0,this.$createElement)("my-img",{attrs:{width:t,height:e,options:{type:"div"},src:(0,n.Cj)(`/lobby_asset/festival/{holiday}/common/common/${o}.png`)},class:i})}midAutumnTheme(){const{isStake:t,isEuropeanAmerican:e,is5159:o}=l.Z.currentTheme();return t?[this.getImage(38,30),this.getImage(32,16,"btn_zc1_jr2","holidaySub")]:e||o?[this.getImage(68,54),this.getImage(40,21,"btn_zc1_jr3","holidaySub2")]:this.getImage(75,62)}mobileHolidayDecorate(){const{isTheme34:t,isTheme10:e,isTheme32:o}=l.Z.currentTheme();switch(l.Z.holidayThemeType){case r.By.MidAutumn:return this.midAutumnTheme();case r.By.NationalDay:return this.getImage(24,29);case r.By.MotherOfGod:return this.getImage(22,28);case r.By.MotherOfGod2:return this.getImage(25,25);case r.By.Dussehra:return[this.getImage(37,43),this.getImage(28,22,"btn_zc1_jr2","holidaySub")];case r.By.HalloweenPurple:return this.getImage(30,20);case r.By.HalloweenBlue:return this.getImage(27,20);default:return t||e||o?[this.getImage(50,50,"btn_zc1_jr","topLeft"),this.getImage(50,50,"btn_zc1_jr2","holidayNormal")]:this.getImage(50,50,"btn_zc1_jr2","holidayNormal")}}render(){const t=arguments[0],{isWeb:e}=(0,a.h)();return t("div",{class:{[c]:!0,midMenuHolidayWrap:!0,holidayMobile:!e}},[!e&&this.mobileHolidayDecorate()])}})||i},98828:function(t,e,o){"use strict";o.d(e,{Z:function(){return H}});var i,s,r,n,a,l,c,h,m,d,u,p,g,y,b,f,S=o(36568),C=o.n(S),I=o(53158),L=o(55433),v=o(12040),k=o(38821),T=o(45335),E=o(34731),A=o(96309),w=o(91475),O=o(46930),R=o(6e3),D=o(12832),G=o(13403),Z="wAEzyHd6yridmPs3Qf5S",_="NVrNkhWMhrIPQbst3SMg";let H=(i=(0,k.wA)({name:"MiddleMenu"}),s=(0,k.fI)({default:!0}),r=(0,k.fI)({default:!1}),n=(0,k.fI)({default:()=>[]}),a=(0,k.fI)({default:!1}),l=(0,k.fI)({default:!1}),c=(0,k.fI)(O.ZP.func.def(void 0)),h=(0,k.y1)("clickItem"),i((d=class extends((0,k.Wr)(k.XY)){constructor(...t){super(...t),(0,I.Z)(this,"shouldScroll",u,this),(0,I.Z)(this,"showPagation",p,this),(0,I.Z)(this,"navList",g,this),(0,I.Z)(this,"useLinearGradient",y,this),(0,I.Z)(this,"useIconRegardless",b,this),(0,I.Z)(this,"customClick",f,this),(0,L.Z)(this,"mainStore",(0,w.h)())}get useNavList(){const{gameCategoriesAvailable:t}=(0,A.g)();return this.navList?.length?this.navList:t.length>0?T.xr.completeCustomCategories:[]}onClickItem(t){if(this.customClick)this.customClick(t);else{T.Uk.performLinkAction(t,this.shouldScroll);const{setActiveTabkey:e}=(0,A.g)();e(E.ck.Normal)}return t}render(){const t=arguments[0];return t("div",{class:{[Z]:!0,"middle-menu":!0}},[t("div",{class:[_,"mid-nav"]},[t(G.default,C()([{attrs:{navList:this.useNavList,showPagation:this.showPagation,useLinearGradient:this.useLinearGradient,useIconRegardless:this.useIconRegardless},on:{clickItem:t=>this.onClickItem(t)}},{scopedSlots:{...this.$scopedSlots.itemBg?{itemBg:this.$scopedSlots.itemBg}:{},...this.$scopedSlots.pagationButton?{pagationButton:t=>this.$scopedSlots.pagationButton?.(t)}:{}}}]),[D.Z.isHolidayThemeVisible&&D.Z.isNormalThemeType&&t(R.Z,{slot:"holiday"})])])])}},u=(0,v.Z)(d.prototype,"shouldScroll",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,v.Z)(d.prototype,"showPagation",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=(0,v.Z)(d.prototype,"navList",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,v.Z)(d.prototype,"useLinearGradient",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,v.Z)(d.prototype,"useIconRegardless",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,v.Z)(d.prototype,"customClick",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,v.Z)(d.prototype,"onClickItem",[h],Object.getOwnPropertyDescriptor(d.prototype,"onClickItem"),d.prototype),m=d))||m)},64927:function(t,e,o){"use strict";o.d(e,{W:function(){return L}});var i=o(36568),s=o.n(i),r=o(53158),n=o(12040),a=o(38821),l=o(75572),c=o(62933),h=o(87305),m=o(65074);class d extends h.t{initPC(){return this.width=1160,this.rowCardCount=3,this.leftRightSpacing=20,this.topBotSpacing=20,this}initH5(){const t=m.$v.h5HomeLayoutStyle;return{[c.j4.style0]:()=>{this.width=520,this.rowCardCount=1,this.leftRightSpacing=0,this.topBotSpacing=20},[c.j4.style1]:()=>{this.width=640,this.rowCardCount=1,this.leftRightSpacing=0,this.topBotSpacing=44}}[t]?.(),this}}class u extends h.t{initPC(){return this.width=1160,this.rowCardCount=3,this.leftRightSpacing=20,this.topBotSpacing=20,this}initH5(){return this.width=638,this.rowCardCount=1,this.leftRightSpacing=0,this.topBotSpacing=30,this}}var p,g,y,b,f,S,C,I=o(46930);let L=(p=(0,a.wA)({name:"GameListLandscape"}),g=(0,a.fI)(I.ZP.array.def([])),y=(0,a.fI)(),p((f=class extends a.XY{constructor(...t){super(...t),(0,r.Z)(this,"listData",S,this),(0,r.Z)(this,"listLayout",C,this)}get localListLayout(){return new{home:d,subGame:u}[this.listLayout]}get cssSizeType(){return m.$v.h5HomeLayoutStyle===c.j4.style0&&"home"===this.listLayout?l.Ys.CssSizeType.Small:l.Ys.CssSizeType.Default}render(){const t=arguments[0];return t(l.VB,s()([{},{props:this.localListLayout}]),[this.listData.map((e=>t(l.Ys,s()([{attrs:{cssSizeType:this.cssSizeType},key:e.webId},{props:l.Ys.getProps(e)}]))))])}},S=(0,n.Z)(f.prototype,"listData",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),C=(0,n.Z)(f.prototype,"listLayout",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=f))||b)},69317:function(t,e,o){"use strict";o.r(e),o.d(e,{default:function(){return ht}});var i,s,r,n,a,l,c,h,m,d,u,p=o(23493),g=o.n(p),y=o(53158),b=o(55433),f=o(12040),S=o(70753),C=o(29339),I=o(38821),L=o(45335),v=o(34731),k=o(62933),T=o(65074),E=o(97175),A=o(46851),w=o(89403),O=o(29599),R=o(65086),D=o(36476),G=o(64927),Z=o(75990),_=o(70278),H=o(58217),P=o(91475),x=o(53663),B=o(5717),M=o(75812),N=o(33442),$=o(96309);let K=(i=(0,I.wA)({name:"CategoryAndTabWatchListenerMixin"}),s=(0,I.RL)("language"),r=(0,I.RL)("isLogin"),n=(0,I.RL)("currency"),a=(0,I.RL)("activeTabKey",{immediate:!0}),l=(0,I.RL)("language"),c=(0,I.RL)("isLogin"),h=(0,I.RL)("currency"),m=(0,I.RL)("gameCategoryId",{immediate:!0}),i((u=class extends I.XY{constructor(...t){super(...t),(0,b.Z)(this,"gameStore",(0,$.g)()),(0,b.Z)(this,"mainStore",(0,P.h)()),(0,b.Z)(this,"errors",{networkError:!1,retryApi:this.onActvieTabKeyChange}),(0,b.Z)(this,"activeTabKey",N.P.Hot)}get currency(){return this.mainStore.userInfos?.currency}get language(){return this.mainStore.language}get gameCategoryId(){return T.$v.gameCategoryId}get isLogin(){return this.mainStore.hasLogined}async setLoadingAndFetch(t){const{setGameListLoading:e}=(0,$.g)();e(!0);let o=!1;t().catch((()=>{o=!0,this.errors={networkError:!0,retryApi:()=>this.setLoadingAndFetch(t)}})).finally((()=>{o||this.errors.networkError&&(this.errors.networkError=!1),e(!1)}))}onActvieTabKeyChange(){const{fetchFavoriteGameList:t,fetchRecentGameList:e,fetchHotGameList:o}=(0,$.g)();switch(this.activeTabKey){case N.P.Hot:this.setLoadingAndFetch(o);break;case N.P.Recent:this.setLoadingAndFetch(e);break;case N.P.Collenct:this.setLoadingAndFetch(t);break;default:this.setLoadingAndFetch(o)}}onGameCategoryIdChange(){const{fetchHotGameList:t,fetchRecentGameList:e,fetchFavoriteGameList:o}=this.gameStore;switch(this.gameCategoryId){case N.P.Hot:this.setLoadingAndFetch(t);break;case N.P.Recent:this.setLoadingAndFetch(e);break;case N.P.Collenct:this.setLoadingAndFetch(o);break;default:this.setLoadingAndFetch(t)}}},(0,f.Z)(u.prototype,"onActvieTabKeyChange",[s,r,n,a],Object.getOwnPropertyDescriptor(u.prototype,"onActvieTabKeyChange"),u.prototype),(0,f.Z)(u.prototype,"onGameCategoryIdChange",[l,c,h,m],Object.getOwnPropertyDescriptor(u.prototype,"onGameCategoryIdChange"),u.prototype),d=u))||d);var W,z=o(98828),U="G_Jr06kXOFyoVciKIn_Q";let j=(0,I.wA)({name:"Theme1MiddleMenu"})(W=class extends I.XY{render(){return(0,arguments[0])(z.Z,{attrs:{useLinearGradient:!0},class:[U,"theme1"]})}})||W;var q,F,Y,V,X,Q,J,tt,et,ot=o(75498),it=o(58164),st=o(11494),rt=o(33032),nt=o(56822),at=o(73389),lt=o(51233),ct={main:"DjhQCqvjgVWP6GdqR1u4",mainGameBody:"RYtbb4aOK6gElKc0awje",style0:"GU7kbMDKn61pb4tr6F8e",netRetry:"ndVGUtN_Q8yfKTvpyHq0",topHotBox:"WD3BAwj0WlKTZ7Sirt0T",notData:"v7vMbsrXvWkLiCv65YR_",verticalGameBox:"uz6AhszkKaDpxkGAAfZ0",platformGameBox:"UdJwb0cLvrDXm9Y2Ho2N",verticalPlatformBox:"gAAUAxIk_oH5AmSGfwwv",guiding:"Oy7otPdMsdw5Brmyb8ML",tabsH5:"EuPm5CkH8cxf10luU_uD",sportGameHome:"K_s8mBOiD48gzoHbodnQ",jackpotCount:"Ks5gwBkzEwTSEHtNE2PQ",upper:"OLW827hAZB1JfChO6WZN",navWrap:"QDagHrn64BFo9TuByPWA",scrollSpyBox:"bZVt1IvEK6SjsXGVCygg","verticalPlatformBox-style0":"GqISgy6M2v7IwrCI5aMb","platformGameBox-style0":"yE9yrvC5PDY4gw18IT9L",landscapeListBox:"_95eQxSTlJHhLWYD_mqrw","landscapeListBox-style0":"wqArHp_o5qPLn2PkYAcv",leftMenuBox:"mG_95vVhUjR7XuAHyIVp",right:"VSBDPoqH0qslY05U3n65",activePng:"OOc8s8_M3plCNwkIy53v",isStyle1:"Wt7vpet8HN5UX3vHPDyU",common_bganimation:"c6mYbq1XjjTaPZaHOCQV"};let ht=(q=(0,I.wA)({name:"NormalPage",components:{CommonBanner:nt.Z.createAsyncComponent({component:()=>Promise.resolve().then(o.bind(o,26875))}),CommonJackpotCount:nt.Z.createAsyncComponent({component:()=>Promise.resolve().then(o.bind(o,39655))}),MotherGodDecorate:nt.Z.createAsyncComponent({component:()=>Promise.resolve().then(o.bind(o,11351))})}}),F=(0,I.Rl)("asideContentRef"),Y=(0,S.WY)(),V=(0,I.RL)("$route.name",{immediate:!0}),X=(0,I.RL)("currentTabItem",{immediate:!0}),Q=(0,I.RL)("mainStore.rootFontSize"),q((tt=class extends((0,I.Wr)(K)){constructor(...t){super(...t),(0,b.Z)(this,"homeStore",(0,_.o)()),(0,b.Z)(this,"isHeightBtn",!1),(0,y.Z)(this,"asideContentRef",et,this),(0,b.Z)(this,"state",{scrollHeight:""})}get assetsMap(){return at.Z.gameMenu}async created(){const t=g()(this.suggestHeightAnimation,500);A.xN.subscribe(t),this.$once("hook:beforeDestroy",(()=>{A.xN.unsubscribe(t)})),this.collateThumbtackPosition()}mounted(){this.initH5AsideHeight(),this.setHeightBtn();const{setActiveTabkey:t}=this.gameStore;t(v.ck.Hot)}isComputedH5AsideHeight(){let t=!0;const e=this.asideContentRef?.querySelector(".common-tabs-nav");return e||(t=!1),t}initH5AsideHeight(){if(!this.isComputedH5AsideHeight())return;this.state.ob=new MutationObserver((()=>{this.isComputedH5AsideHeight()&&this.computedH5AsideHeight()}));const t=this.asideContentRef.querySelector(".common-tabs-nav");this.state.ob.observe(t,{childList:!0,subtree:!0}),this.$once("hook:beforeDestroy",(()=>{this.state.ob?.disconnect()}))}computedH5AsideHeight(){if(!this.isComputedH5AsideHeight())return;const{isUserCloseSuggest:t}=this.homeStore,e=this.asideContentRef.querySelector(".common-tabs-nav")?.offsetHeight||0,o=document.getElementById("tabBar")?.offsetHeight||0,i=document.getElementById("headerWrap")?.offsetHeight||0,s=document.getElementById("suggest-download-h5_top")?.offsetHeight||0,r=window.innerHeight-(o+i+22+(!t&&s?s:0));this.state.scrollHeight=e-r>0?r+"px":"100%"}suggestHeightAnimation(t){"SUGGEST_STRETCH_ANIMATION"===t.type&&(this.collateThumbtackPosition(),this.computedH5AsideHeight())}get topTabs(){const{t:t}=(0,H.QT)();return[{key:v.ck.Hot,name:t("lobby.game.hot")},{key:v.ck.Recent,name:t("lobby.game.loadingRecent")},{key:v.ck.Collenct,name:t("lobby.game.loadingCollect")}]}get gameCardConfig(){const t=T.xP.getGameCategoryItem(v.ck.Hot);return this.isStyle0?{dataNum:T.$v.isIconStyleSquare?3*(t?.appSquare||3):3*(t?.appVertical||3)}:{dataNum:T.$v.isIconStyleSquare?4*(t?.appSquare||3):3*(t?.appVertical||3)}}get isStyle0(){return T.$v.h5HomeLayoutStyle===k.j4.style0}get currentTabItem(){return(0,B.c)().currentTabItem}watchCurrentTabItem(){this.collateThumbtackPosition()}collateThumbtackPosition(){this.$nextTick((()=>{this.$refs.style0ThumbtackRef?.collatePosition()}));let t=3;const e=setInterval((()=>{try{this.$refs.style0ThumbtackRef?.collatePosition(),t--,0===t&&clearInterval(e)}catch(o){clearInterval(e)}}),80)}get listData(){const{currentCollectGameList:t,currentHotGameList:e,currentRecentGameList:o}=this.gameStore;switch(this.isStyle0?this.activeTabKey:this.gameCategoryId){case v.ck.Hot:return e();case v.ck.Collenct:return t();case v.ck.Recent:return o();default:return e()}}renderStyle0(){const t=this.$createElement,{activeGameCategoryId:e}=this.gameStore;return t("div",{class:ct.style0},[t("div",{class:ct.leftMenuBox,ref:"asideContentRef"},[t(O.oh,{attrs:{offsetTop:"0.2rem",scrollElement:"#home-scroll-box .my-scrollbar-wrap",touchBottomElement:"#anchor-menu",isDynamicContent:!0},ref:"style0ThumbtackRef"},[t(C.CO,{attrs:{scrollHeight:this.state.scrollHeight,tabsWidth:150,tabsHeight:this.isHeightBtn?105:70,isScrollY:!0,renderList:this.renderSideList,persistedActiveName:"",preTriggerHook:this.onMenuClick,tabsForm:R.z.game},model:{value:e,callback:t=>{e=t}}})])]),t("div",{class:ct.right,attrs:{id:"anchor-wrapper"}},[this.renderScrollSpyBox()])])}renderStyle1(){const t=this.$createElement;return t("div",[t(O.oh,{attrs:{positionType:"absolute",scrollElement:"#home-scroll-box .my-scrollbar-wrap",hideConfig:{referenceElement:"#anchor-menu",distance:"-0.94rem"}}},[t("div",{attrs:{id:"middle-menu"}},[t(j,{attrs:{type:"normal_1"}})])]),t("div",{class:ct.scrollSpyBox,attrs:{id:"anchor-wrapper"}},[this.renderScrollSpyBox()])])}renderScrollSpyBox(){const t=this.$createElement;return t(O.fA,[this.isStyle0?t(C.kx,{attrs:{soleId:"homeNormalTabs",needAutoCenter:!1,tabType:D.p.LARGE_TEXT,isScrollX:!0,persistedActiveName:"",itemHeight:70,itemSpace:0,isLayoutCenter:!0,tabsNavHiddenForOne:!0,showHoverTips:!1,itemWidth:"auto",renderList:this.topTabs.map((t=>({value:t.key,label:()=>t.name})))},class:ct.tabsH5,scopedSlots:{default:()=>t(it.Z,{on:{retry:this.errors.retryApi},attrs:{displayType:it.F.ListData,isTimeoutError:this.errors.networkError,loading:this.gameStore.gameListLoading},class:{[ct.netRetry]:!this.errors.networkError}},[this.renderGameBox(this.listData,this.activeTabKey)])},model:{value:this.activeTabKey,callback:t=>{this.activeTabKey=t}}}):t(it.Z,{on:{retry:this.errors.retryApi},attrs:{displayType:it.F.ListData,isTimeoutError:this.errors.networkError,loading:this.gameStore.gameListLoading},class:{[ct.netRetry]:!this.errors.networkError}},[this.renderGameBox(this.listData,this.gameCategoryId)]),this.gameStore.currentPlatformGameList.map((t=>this.renderPlatformGameBox(t.totalData,t.key,t.dataNum)))])}getGameListComponent(t){if(T.$v.isIconStyleVertical)return E.m;return{capital:E.p,following:G.W}[t]}getPlatformCardCount(){return T.$v.isIconStyleVertical?3:1}getHotCardCount(){return T.$v.isIconStyleVertical||this.isStyle0?3:4}get useScroll(){const{homeLayoutInfos:t}=(0,P.h)();return t?.commonConfig?.turnPageType===k.el.HandScroll}renderPlatformGameBox(t,e=v.ck.Hot,o=0){const i=this.$createElement,s=this.getGameListComponent("following");return this.useScroll?i("div",{attrs:{id:`anchor${e}`},class:{[ct.platformGameBox]:!0,[ct["platformGameBox-style0"]]:this.isStyle0}},[i(rt.Z,{attrs:{gameCategoryId:e,cardCount:this.getPlatformCardCount(),displayDataSize:o,listData:t},scopedSlots:{gameListBox:({data:t,tempArr:e})=>e.length>0?e.map(((e,r)=>i(s,{attrs:{listData:t.slice(r*o,(r+1)*o),notHotRecentlyCollection:!0,listLayout:"home"},key:r}))):i(st.Z)}},[i("template",{slot:"topContent"},[i("common-jackpot-count",{attrs:{place:"platformTop",hasLeftTab:this.isStyle0,gameCategoryId:e}})])])]):i("div",{attrs:{id:`anchor${e}`},class:{[ct.platformGameBox]:!0,[ct["platformGameBox-style0"]]:this.isStyle0}},[i(w.uw,{attrs:{total:t.length,platformName:T.xP.getGameCategoryItemName(e)||"",pageSize:o,listData:t,gameCategoryId:e},scopedSlots:{gameListBox:({data:t})=>i("div",[i("common-jackpot-count",{attrs:{place:"platformTop",hasLeftTab:this.isStyle0,gameCategoryId:e}}),i("div",{class:{[ct.landscapeListBox]:T.$v.isIconStyleSquare,[ct.verticalPlatformBox]:T.$v.isIconStyleVertical,[ct["verticalPlatformBox-style0"]]:T.$v.isIconStyleVertical&&this.isStyle0,[ct["landscapeListBox-style0"]]:T.$v.isIconStyleSquare&&this.isStyle0}},[i(s,{attrs:{listData:t,listLayout:"home",notHotRecentlyCollection:!0}})])])}})])}renderGameBox(t,e){const o=this.$createElement,i=this.getGameListComponent("capital");return this.useScroll?o(rt.Z,{attrs:{gameCategoryId:e,cardCount:this.getHotCardCount(),displayDataSize:this.gameCardConfig.dataNum,listData:t,noTitle:!0},class:{[ct.isStyle1]:!this.isStyle0,"use-scroll-pagatioin":!0},scopedSlots:{gameListBox:({data:t,tempArr:e})=>e.length>0?e.map(((e,s)=>o(i,{attrs:{listData:t.slice(s*this.gameCardConfig.dataNum,(s+1)*this.gameCardConfig.dataNum),listLayout:"home"},key:s}))):o(st.Z)}},[o("template",{slot:"toTitle"},[o("common-jackpot-count",{attrs:{place:"platformTop",hasLeftTab:this.isStyle0,gameCategoryId:this.activeTabKey}})])]):o(w.uw,{class:{[ct.topHotBox]:!0,[ct.notData]:0===t.length},attrs:{total:t.length,platformName:T.xP.getGameCategoryItemName(e)||"",pageSize:this.gameCardConfig.dataNum,listData:t},scopedSlots:{gameListBox:({data:t})=>o(i,{attrs:{listData:t,listLayout:"home"}}),title:()=>o("common-jackpot-count",{attrs:{place:"platformTop",hasLeftTab:this.isStyle0,gameCategoryId:this.activeTabKey}})}})}setHeightBtn(){const t=getComputedStyle(document.documentElement)?.fontSize.replace("px",""),e=Number(t)/100*850;this.isHeightBtn=(0,Z.zQ)(-660)>e}get renderSideList(){const t=this.$createElement,{currentTheme:e}=(0,P.h)();return L.xr.basicCustomCategories.map((o=>({value:o.gameCategoryId,icon:i=>i?t("div",{class:ct.activePng},[o.customizeIconActive?.length?t("my-img",{attrs:{src:o.customizeIconActive,useSkeleton:!0,width:54}}):t("my-img",{attrs:{useSkeleton:!0,width:50,height:40,src:at.Z.gameMenu[o.gameCategoryId].active}})]):t("div",[o.customizeIcon?.length?t("my-img",{attrs:{useSkeleton:!0,src:o.customizeIcon,width:54}}):t("icon-sprite",{style:{height:M.ZP.px2rem(44),fontSize:M.ZP.px2rem(50)},attrs:{useSkeleton:!0,standalone:this.assetsMap[o.gameCategoryId].normalSingle,linearGradientConfig:{colorStop:[{progress:0,color:e["--theme-aside-icon-color-0"]},{progress:1,color:e["--theme-aside-icon-color-1"]}]}}})]),label:t("span",[o.gameCategoryName]),isVertical:!!this.isHeightBtn})))}onMenuClick(t){const{activeTabkey:e,setActiveTabkey:o}=this.gameStore;t.value===v.ck.Hot&&e!==v.ck.Hot&&o(v.ck.Hot);const i=L.xr.completeCustomCategories.find((e=>e.gameCategoryId===t.value));return L.Uk.isExternalLinkOrJumpPosition(i)?(L.Uk.performLinkAction(i),Promise.resolve()):(L.Uk.scrollMenuToGameCategory(t.value),this.isStyle0&&this.collateThumbtackPosition(),Promise.reject())}renderGameBody(){const t=this.$createElement;return t("div",{key:"anchor-menu",attrs:{id:"anchor-menu"},class:{[ct.mainGameBody]:!0,[ct.style0]:this.isStyle0}},[t("mother-god-decorate"),this.isStyle0?this.renderStyle0():this.renderStyle1()])}render(){const t=arguments[0],{isWgSportShowHome:e}=(0,x.P)();return t("div",{class:ct.main},[t("common-banner",{attrs:{id:"theme1-banner"}}),t("common-jackpot-count",{class:[ct.jackpotCount,"jackpot-home-area"],attrs:{place:"marquee"}}),t(O.$C,{attrs:{id:"theme1-marqueen"}}),t("div",{class:ct.navWrap,attrs:{id:"navWrap"}},[t("common-jackpot-count",{attrs:{place:"middlMenu"},class:"jackpot-home-area"}),t(ot.Z)]),t("common-jackpot-count",{class:[ct.jackpotCount,"jackpot-home-area jackpot-home-area-popular"],attrs:{place:"popular"}}),e?t(lt.Z,{class:ct.sportGameHome},[this.renderGameBody()]):this.renderGameBody(),t("common-jackpot-count",{attrs:{place:"footer"}})])}},et=(0,f.Z)(tt.prototype,"asideContentRef",[F],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,f.Z)(tt.prototype,"suggestHeightAnimation",[Y],Object.getOwnPropertyDescriptor(tt.prototype,"suggestHeightAnimation"),tt.prototype),(0,f.Z)(tt.prototype,"watchCurrentTabItem",[V,X],Object.getOwnPropertyDescriptor(tt.prototype,"watchCurrentTabItem"),tt.prototype),(0,f.Z)(tt.prototype,"setHeightBtn",[Q],Object.getOwnPropertyDescriptor(tt.prototype,"setHeightBtn"),tt.prototype),J=tt))||J)},75498:function(t,e,o){"use strict";o.d(e,{W:function(){return lt},Z:function(){return ct}});var i,s,r,n,a,l,c,h,m,d=o(53158),u=o(55433),p=o(12040),g=o(38821),y=o(48618),b=o(29339),f=o(70753),S=o(5621),C=o(46851),I=o(7174),L=o(18441),v=o(50947),k=o(32205),T=o(35829),E=o(62933),A=o(5515),w=o(99934),O=o(23247),R=o(68033),D=o(71743),G=o(60760),Z=o(58217),_=o(91475),H=o(5717),P=o(46930),x=o(50008),B=o(75812),M=o(70539),N=o(11777),$=o(1850),K=o(451),W=o(11974),z=o(53579),U=o(40074),j=o(16340),q=o(44159),F="U1VU2_ybzDB8BYq2v8VG",Y="DrSAta3RAIhChb6OSZTc",V="u4QlmP91idhF6XqB_6jL",X="XDX127gPT9Rcv_NmgXzO",Q="pFlbcXXZFoPW8cshs442",J="dAp6RGRuL3x_UZPFpZC0",tt="iA5Pa4sa54o0y6S_sxJr",et="nGxwk_oNvWwlxdYhmaMt",ot="MU_0I_BLA9LFSBe8FgeW",it="R6JnJ5r1Gimo5SZaqJCu",st="fSUCsj8Vxa0U3_foZRjt",rt="xiyqmkXrWmusOx9hTDau",nt=o(52204);const at=(0,N.v5)();let lt;!function(t){t.PAY="recharge",t.WITHDRAW="withdraw",t.VIP="vip",t.PROMOTE="promote",t.YUEBAO="yueBao",t.SERVICE="customer",t.ACTIVITY="activity",t.TASK="task",t.REBATE="rebate",t.FEEDBACK="feedback",t.SECURITY="security",t.SETTING="setting",t.DOWNLOAD="download",t.DISCOUNT="discount",t.MINE="mine",t.ACCOUNT_DETAILS="accountDetails",t.BETTING_RECORD="bettingRecord",t.PERSONAL_STATEMENT="personalStatement",t.AWARD="award",t.WITHDRAWAL_MANAGEMENT="withdrawalManagement",t.NETWORK="network",t.LANGUAGE="language",t.WALLET="wallet",t.AUDIT="audit",t.FACEBOOK="facebook",t.GOOGLE="google",t.LINE="line",t.WECHAT="wechat",t.QQ="qq",t.MORE="more",t.CANRECEIVE="canReceive",t.RECHARGE_FUND="providentFund",t.RECEIVE_RECORD="receiveRecord",t.FORBIDDEN_SELF="selfRestraint"}(lt||(lt={}));let ct=(i=(0,g.wA)({name:"Nav"}),s=(0,g.fI)(P.ZP.number),r=(0,g.Rl)(),n=(0,g.RL)("mainStore.hasLogined"),a=(0,f.K4)(),i((c=class extends g.XY{constructor(...t){super(...t),(0,d.Z)(this,"maxHeight",h,this),(0,d.Z)(this,"moreItemsRef",m,this),(0,u.Z)(this,"store",(0,nt.Z)()),(0,u.Z)(this,"mainStore",(0,_.h)()),(0,u.Z)(this,"state",{loading:{[O.I.FACEBOOK]:!1,[O.I.GOOGLE]:!1,[O.I.WECHAT]:!1,[O.I.QQ]:!1,[O.I.LINE]:!1},moreVisibled:!1})}get hiddenAppDownload(){return this.mainStore.hiddenDownload}created(){(0,_.h)().fetchActivesAuthInfos(),document.addEventListener("click",this.bodyCloseMoreItems)}updateWhenLogined(t,e){e!==t&&(t&&this.store.request(),(0,_.h)().fetchActivesAuthInfos())}get query(){return this.$route.query}get isThirdBind(){const t=this.mainStore.validateConfig.thirdType;return t===E.IH.FACEBOOK||t===E.IH.GOOGLE||t===E.IH.LINE}get singleLangList(){return(((0,_.h)()?.siteInfos?.languageInfos||[]).filter((t=>y.xD.includes(t.languageCode)))||[]).length<=1}get itemListConfig(){const t=this.$createElement,{t:e}=(0,Z.QT)(),{hasLogined:o,homeLayoutInfos:i,getActivesAuthInfos:s,getReturnGoldIsHide:r,getRechargeFundIsHide:n,brandLogoInfos:a,validateConfig:{hasWithdrawPwd:l},getredDot:c}=this.mainStore,{updateTabItem:h}=(0,H.c)(),{getYuebaoData:m}=this.store,{threeWayConfig:d}=this.mainStore,{useFacebook:u,useGoogle:p,useLine:g}=d,y=this.mainStore?.systemInfos?.questionListDisplay||0,b=this.mainStore.serviceInformation?.customer.onlineCustomers??[],{customizeMiddleIconMap:f}=M.Z.useHomeCustomizeIcon("middle"),I=o?i?.loginAfterBottomLayouts??[]:i?.loginBeforeBottomLayouts??[],R=this.mainStore?.officialChannelList,{hiddenAppButton:G}=(0,K.e)();let _=[{key:lt.YUEBAO,title:e("lobby.game.nav.Interest"),icon:f.get("yueBaoIcon")||(0,D.R0)("icon_dt_1yeb"),onClick:()=>{const t=I?.find((t=>t.name===lt.YUEBAO))?.name;h(t?A.R.INTEREST:A.R.EVENT),this.$router.push({name:T.x4.YUEBAO})},hidden:(0,nt.Z)().getYuebaoSwitchIsHide,badge:t(q.default,{attrs:{charge:1,hidden:!m.yearRate||!o||m.isPop===v.qC.CLOSE,top:B.ZP.px2rem(-20),left:B.ZP.px2rem(60),text:t("span",[`${m.yearRate}%`])}})},{key:lt.VIP,title:e("lobby.game.nav.vip"),icon:f.get("vipIcon")||(0,D.R0)("icon_dt_1vip"),hidden:this.mainStore.getVipSwitchIsHide,onClick:()=>{this.$router.push({name:T.x4.VIP,query:{...this.$route.query,tabItem:A.R.VIP}})}},{key:lt.PROMOTE,title:e("lobby.game.nav.promote"),icon:f.get("promoteIcon")||(0,D.R0)("icon_dt_1tg"),onClick:()=>{this.$router.push({name:T.x4.PROMOTE})},badge:t(q.default,{attrs:{charge:1,top:B.ZP.px2rem(-20),left:"50%",hidden:!c?.agentPromoteReward,text:t("span",{class:"promote-dot"},[c?.agentPromoteReward])}})},{key:lt.SERVICE,title:e("lobby.tabbar.service"),icon:f.get("customerIcon")||(0,D.R0)("icon_dt_1kf"),onClick:()=>{1==y&&b?.[0]?.customerUrl?(0,B.MI)(b[0].customerUrl):this.$router.push({name:T.x4.NOTICE,query:{noticeType:`${L.O.SERVICE}`}})}},{key:lt.WITHDRAW,title:e("lobby.tabbar.withDraw"),icon:f.get("withdrawIcon")||(0,D.R0)("icon_dt_1tx"),onClick:()=>this.openWithdraw()},{key:lt.PAY,title:e("lobby.tabbar.recharge"),icon:f.get("rechargeIcon")||(0,D.R0)("icon_dt_1cz"),onClick:()=>C.sG.Modal.open("payModal"),isLogin:!0},{key:lt.ACTIVITY,title:e("lobby.game.nav.discount"),icon:f.get("activityIcon")||(0,D.R0)("icon_dt_1yh"),hidden:!s.activeCount,onClick:()=>{h(A.R.EVENT),this.$router.push({name:T.x4.EVENT})}},{key:lt.TASK,title:e("lobby.game.nav.task"),icon:f.get("taskIcon")||(0,D.R0)("icon_dt_1rw"),hidden:!(0,W.NV)().isShowTaskPageEntrance,onClick:()=>(0,W.NV)().gotoTaskPage()},{key:lt.REBATE,title:e("lobby.game.nav.backwater"),icon:f.get("rebateIcon")||(0,D.R0)("icon_dt_1fs"),hidden:r,onClick:()=>{h(A.R.EVENT),this.$router.push({name:T.x4.CASHBACK})}},{key:lt.RECHARGE_FUND,title:e("lobby.system.rechargeFund"),icon:f.get("providentFundIcon")||(0,D.R0)("icon_dt_1gjj"),hidden:n,onClick:()=>{h(A.R.EVENT),this.$router.push({name:T.x4.RECHARGE_FUND})}},{key:lt.FEEDBACK,title:e("lobby.game.nav.prizeFeedback"),icon:f.get("feedbackIcon")||(0,D.R0)("icon_dt_1yjfq"),onClick:()=>{this.$router.push({name:T.x4.NOTICE,query:{noticeType:`${L.O.FEEDBACK}`}})}},{key:lt.SECURITY,title:e("lobby.game.nav.security"),icon:f.get("securityIcon")||(0,D.R0)("icon_dt_1aqzx"),onClick:()=>this.$router.push({name:T.x4.SECURITY}),isLogin:!0},{key:lt.SETTING,title:e("lobby.game.nav.settings"),icon:f.get("settingIcon")||(0,D.R0)("icon_dt_1sz"),onClick:()=>this.$router.push({name:T.x4.SETTING}),isLogin:!0},{key:lt.DOWNLOAD,title:e("lobby.tabbar.download"),icon:f.get("appDownloadIcon")||(0,D.R0)("icon_dt_1app"),onClick:()=>C.xN.dispatch({type:"download_app"}),hidden:!G||at},{key:lt.DISCOUNT,title:e("lobby.tabbar.discount"),icon:(0,D.R0)("icon_dt_1yh"),onClick:()=>{h(A.R.EVENT),this.$router.push({name:T.x4.EVENT})}},{key:lt.MINE,title:e("lobby.tabbar.mine"),icon:(0,D.R0)("icon_dt_1xx_wd"),isLogin:!0,onClick:()=>this.$router.push({name:T.x4.MINE})},{key:lt.ACCOUNT_DETAILS,title:e("lobby.game.nav.accountDetails"),icon:f.get("accountDetailsIcon")||(0,D.R0)("icon_dt_1zhmx"),onClick:()=>this.$router.push({name:T.x4.REPORT,query:{current:k.r.ACCOUNT_DETAILS}})},{key:lt.BETTING_RECORD,title:e("lobby.game.nav.bettingRecord"),icon:f.get("bettingIcon")||(0,D.R0)("icon_dt_1tzjl"),isLogin:!0,onClick:()=>this.$router.push({name:T.x4.REPORT,query:{current:k.r.BETTING_RECORD}})},{key:lt.PERSONAL_STATEMENT,title:e("lobby.game.nav.personalStatement"),icon:f.get("reportIcon")||(0,D.R0)("icon_dt_1grbb"),isLogin:!0,onClick:()=>this.$router.push({name:T.x4.REPORT,query:{current:k.r.PERSONAL_STATEMENT}})},{key:lt.AWARD,title:e("lobby.game.nav.waitingCollect"),icon:f.get("awardIcon")||(0,D.R0)("icon_dt_1jl"),isLogin:!0,onClick:()=>{h(A.R.EVENT),this.$router.push({name:T.x4.CANRECEIVE})}},{key:lt.RECEIVE_RECORD,title:e("lobby.promote.pickUpRecord"),icon:f.get("receiveRecordIcon")||(0,D.R0)("icon_dt_1lqjl"),isLogin:!0,onClick:()=>{h(A.R.EVENT),this.$router.push({name:T.x4.RECORDS})}},{key:lt.WITHDRAWAL_MANAGEMENT,title:e("lobby.game.nav.withdrawalManagement"),icon:f.get("withdrawManageIcon")||(0,D.R0)("icon_dt_1txgl"),isLogin:!0,onClick:()=>{if(l)this.$router.push({name:T.x4.WITHDRAW,query:{current:`${S.u.ACCOUNT}`}});else{const{t:t}=(0,Z.QT)();C.sG.Modal.message({type:"warning",content:t("lobby.center.security.forceBindWidthdrawPass")}),this.$router.push({name:T.x4.SECURITY,query:{current:w.r.WITHDRAWPASS.toString(),isCallbackWithdraw:S.u.ACCOUNT.toString()}})}}},{key:lt.LANGUAGE,title:e("lobby.game.nav.language"),icon:f.get("languageIcon")||(0,D.R0)("icon_dt_1yuyuan"),hidden:this.singleLangList,onClick:()=>{C.sG.Modal.open("switchLangPopup")}},{key:lt.WALLET,title:e("lobby.game.nav.wallet"),isLogin:!0,icon:(0,D.R0)("icon_dt_1zxqb")},{key:lt.AUDIT,title:e("lobby.game.nav.audit"),icon:f.get("checkIcon")||(0,D.R0)("icon_dt_1jh"),isLogin:!0,onClick:()=>this.$router.push({name:T.x4.WITHDRAW,query:{current:`${S.u.HEAVEN_RECORD}`}})},{key:lt.FORBIDDEN_SELF,title:e("lobby.center.forbiddenSelf.title"),icon:(0,D.R0)("icon_dt_1zwjz"),hidden:a?.selfRestraintEntry?.isShowEntry!=E.RS.OPEN||a?.selfRestraintEntry?.isSidebarEntry!=E.RS.OPEN,onClick:()=>{(0,$.Eg)()}},{key:lt.GOOGLE,title:e("lobby.officialChannel.thirdPartyLogin.google"),icon:(0,D.R0)("icon_dt_1google",!0),hidden:this.isThirdBind||!p||o,loadingKey:O.I.GOOGLE,onClick:()=>this.threeWayLogin(O.I.GOOGLE)},{key:lt.FACEBOOK,title:e("lobby.officialChannel.thirdPartyLogin.facebook"),icon:(0,D.R0)("icon_dt_1fb",!0),hidden:this.isThirdBind||!u||o,loadingKey:O.I.FACEBOOK,onClick:()=>this.threeWayLogin(O.I.FACEBOOK)},{key:lt.LINE,title:e("lobby.officialChannel.thirdPartyLogin.line"),icon:(0,D.R0)("icon_dt_1line",!0),hidden:this.isThirdBind||!g||o,loadingKey:O.I.LINE,onClick:()=>this.threeWayLogin(O.I.LINE)},{key:lt.WECHAT,title:e("lobby.officialChannel.thirdPartyLogin.wechat"),icon:(0,D.R0)("icon_dt_1wx",!0),hidden:o,loadingKey:O.I.WECHAT,onClick:()=>this.threeWayLogin(O.I.WECHAT)},{key:lt.QQ,title:e("lobby.officialChannel.thirdPartyLogin.qq"),icon:(0,D.R0)("icon_dt_1qq",!0),hidden:o,loadingKey:O.I.QQ,onClick:()=>this.threeWayLogin(O.I.QQ)}];this.hiddenAppDownload&&(_=_.filter((t=>t.key!==lt.DOWNLOAD)));const P=_.reduce(((t,e)=>(t[e.key]=e,t)),{}),x=t=>t.reduce(((t,e)=>(P[e.name]&&!P[e.name].hidden&&t.push(P[e.name]),t)),[]),N=x(i?.middleLayouts||[]),z=x(i?.middleLayoutsMore||[]);if(R.length>0){const t=R.map((t=>({key:t.name,title:t.name,icon:t.icon,onClick:()=>{(0,B.MI)(t.url)}})));z.push(...t)}return(i?.middleLayouts?.length||0)<4&&N.push({key:lt.MORE,title:e("lobby.promote.promote.more"),icon:f.get("moreIcon")||(0,D.R0)("icon_dt_1gd"),onClick:()=>this.state.moreVisibled=!this.state.moreVisibled}),{baseNavConfig:N,moveNavConfig:z}}threeWayLogin(t){G.Fb.handleClick(t,(()=>{this.state.loading[t]=!0}),(()=>{this.state.loading[t]=!1}))}renderItems(t){const e=this.$createElement,{hasLogined:o}=this.mainStore;return e("div",{class:Y},[t.map((t=>e("div",{key:t.key,ref:""+(t.key===lt.GOOGLE?"googleBtnRef":""),class:[et,t.key===lt.MORE?ot:""],on:{click:e=>{t.key!==lt.MORE&&t.key!==lt.GOOGLE||this.state.loading[O.I.GOOGLE]||e.stopPropagation(),!t.isLogin||o?t?.onClick?.():z.Z.openLoginRegisterModal({onLoginSuccess:()=>{t?.onClick?.()}})}}},[e(b.gE,{attrs:{spinning:!!t.loadingKey&&this.state.loading[t.loadingKey]}},[e(I.JO.Tsx,{attrs:{component:{functional:!0,render:()=>{if("string"==typeof t?.icon)return e("my-img",{attrs:{useSkeleton:!0,width:57,src:t.icon,height:50},style:"object-fit: contain"});const o=57/t.icon?.width;return e("icon-sprite",{attrs:{useSkeleton:!0,sprite:t.icon,scale:o},style:"height:0.5rem"})}}}}),e("div",{class:it},[t.title]),t?.badge])])))])}bodyCloseMoreItems(t){this.isKeptAlive||this.moreItemsRef&&!this?.moreItemsRef?.contains(t.target)&&(this.state.moreVisibled=!1)}renderModeItems(){const t=this.$createElement;return t("div",{class:st,ref:"moreItemsRef",style:{maxHeight:Number(this.maxHeight)>0?this.maxHeight+"px":void 0}},[t("div",{class:rt},[this.renderItems(this.itemListConfig.moveNavConfig)])])}openWithdraw(){const{validateConfig:{hasWithdrawPwd:t}}=this.mainStore;if(t)this.$router.push({name:T.x4.WITHDRAW,query:{current:`${S.u.WITHDRAW}`}});else{const{t:t}=(0,Z.QT)();C.sG.Modal.message({type:"warning",content:t("lobby.center.security.forceBindWidthdrawPass")}),this.$router.push({name:T.x4.SECURITY,query:{current:`${w.r.WITHDRAWPASS}`,isCallbackWithdraw:S.u.WITHDRAW.toString()}})}}renderTextNode(){const t=this.$createElement,{language:e}=this.mainStore,{t:o}=(0,Z.QT)();return t("div",{class:Q},[t("span",{class:J,on:{click:()=>z.Z.openLoginRegisterModal({login:!0})}},[o("lobby.game.nav.clickLogin")]),t("span",{class:tt},["zh_CN"!==e&&"zh_TW"!==e?` ${o("lobby.game.nav.or")} `:o("lobby.game.nav.or")]),t("span",{class:J,on:{click:()=>z.Z.openLoginRegisterModal({register:!0})}},[o("lobby.game.nav.signUp")])])}render(){const t=arguments[0],{hasLogined:e,siteInfos:o}=this.mainStore,i=o?.currencyInfos??[];return t("div",{class:F},[e?t(R.uo,{attrs:{offset:[52,8]}}):t("div",{class:{[V]:!0,[X]:i.length<=1}},[i.length>1&&t(U.default),t(x.Z,{attrs:{text:this.renderTextNode(),limitHeight:B.ZP.px2rem(30),fontSize:B.ZP.px2rem(26)}})]),t("div",{attrs:{id:"mine-hidden-div"},style:{height:0,width:0,overflow:"hidden",position:"fixed",zIndex:-99,opacity:0}},[t(j.default,{attrs:{getPopupContainer:()=>document.getElementById("mine-hidden-div")}})]),this.renderItems(this.itemListConfig.baseNavConfig),this.state.moreVisibled&&this.renderModeItems()])}},h=(0,p.Z)(c.prototype,"maxHeight",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,p.Z)(c.prototype,"moreItemsRef",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,p.Z)(c.prototype,"updateWhenLogined",[n],Object.getOwnPropertyDescriptor(c.prototype,"updateWhenLogined"),c.prototype),(0,p.Z)(c.prototype,"openWithdraw",[a],Object.getOwnPropertyDescriptor(c.prototype,"openWithdraw"),c.prototype),l=c))||l)},8648:function(t,e,o){"use strict";o.d(e,{Z:function(){return s}});const i={retry:5,interval:3e3};class s{constructor(t,e=i){this.url=t,this.es=null,this.options=e,this.retry=e.retry,this.timer=null}_onOpen(){}_onMessage(t){return e=>{let o;this.retry=this.options.retry;try{o=JSON.parse(e.data)}catch(i){}"function"==typeof t&&t(o)}}_onError(t,e){return()=>{this.es&&(this._removeAllEvent(t,e),this.unsunscribe()),this.retry>0?this.timer=window.setTimeout((()=>{this.subscribe(t,e)}),this.options.interval):this.retry--}}_removeAllEvent(t,e){this.es?.removeEventListener("open",this._onOpen),this.es?.removeEventListener(t,this._onMessage(e)),this.es?.removeEventListener("error",this._onError(t,e))}subscribe(t,e){switch(this.es=this.es??new EventSource(this.url),t){case"message":this.es.addEventListener(t,this._onMessage(e));break;case"error":case"open":this.es.addEventListener(t,e)}}unsunscribe(){this.es&&(this.es.close(),this.es=null),this.timer&&clearTimeout(this.timer)}}},76769:function(t,e,o){"use strict";o.d(e,{Z:function(){return O}});var i,s,r,n,a,l,c,h,m,d,u,p,g,y=o(55433),b=o(12040),f=o(38821),S=o(20360),C=o(85094),I=o(96309),L=o(58217),v=o(91475),k=o(53663),T=o(8648),E="BINup54Moq2YCRxnq_yF",A="MpaCh4l5Lct1PNCq2D1w",w="Kn3M43tUKNEEfC28QETt";let O=(i=(0,f.wA)({name:"MarketsCategory"}),s=(0,f.RL)("currentCategory"),r=(0,f.RL)("sportKey"),n=(0,f.RL)("state.rollingSports"),a=(0,f.RL)("sportKey"),l=(0,f.RL)("state.championSports"),c=(0,f.RL)("sportKey"),h=(0,f.RL)("state.passLeveSports"),m=(0,f.RL)("sportsStore.sabaToken"),d=(0,f.RL)("sportsStore.sabaToken"),u=(0,f.RL)("sportsStore.sabaToken"),i((g=class extends f.XY{constructor(...t){super(...t),(0,y.Z)(this,"state",{rollingSports:[],championSports:[],passLeveSports:[]}),(0,y.Z)(this,"sportsStore",(0,k.P)()),(0,y.Z)(this,"currentCategory",this.marketCategory)}get marketCategory(){return this.sportsStore.marketCategory}get categoryToCount(){return this.sportsStore.categoryToCount}get sportKey(){return this.sportsStore.sportKey}get collectLeagueList(){return this.sportsStore.collectLeagueList}get getSelfSportAndSabaStatus(){const{getSelfSportMaintainStatus:t}=(0,I.g)(),{sabaMaintenance:e}=(0,v.h)();return t||e}mounted(){this.getRollingAndTodayCount(),this.getChampionAndMorningCount(),this.getPassLeveCount()}get sportTypeList(){return Object.values(S.q$).map((t=>Number(t)))}onCategoryChange(){const{setMarketCategory:t}=this.sportsStore;t(this.currentCategory)}calcRollingCount(){const t=this.state.rollingSports.find((t=>t.sportType===this.sportsStore.sportKey)),e=t?.liveGameCount??0,o=(t?.gameCount??0)+(t?.liveGameCount??0);this.sportsStore.updateCategoryToCount({rolling:e,today:o})}calcChampionCount(){const t=this.state.championSports.find((t=>t.sportType===this.sportsStore.sportKey)),e=t?.gameCount??0,o=t?.outrightGame??0;this.sportsStore.updateCategoryToCount({champion:o,morning:e})}calcPassLeveCount(){const t=this.state.passLeveSports.find((t=>t.sportType===this.sportsStore.sportKey))?.parlayGame??0;this.sportsStore.updateCategoryToCount({passLeve:t})}getRollingAndTodayCount(){if(this.sportsStore.sabaUrl&&this.sportsStore.sabaToken&&!this.getSelfSportAndSabaStatus){const t=(0,C.iq)(S.AO.Rolling),e=`from=${t.from}&until=${t.until}`;this.rollingAndTodaySSE&&this.rollingAndTodaySSE.unsunscribe(),this.rollingAndTodaySSE=new T.Z(`${this.sportsStore.sabaUrl}/sports/stream/v1/GetSports?token=${this.sportsStore.sabaToken}&${e}`),this.rollingAndTodaySSE.subscribe("message",(t=>{if(!t)return;const{add:e,change:o,remove:i}=t?.payload?.sports||{};let{rollingSports:s}=this.state;e?.length&&(s=s.concat(e)),o?.length&&(s=s?.map((t=>{const e=o.find((e=>e.sportType===t.sportType));return e?{...t,...e}:t}))),i?.length&&(s=s?.filter((t=>!i.includes(t.sportType)))),this.setState({rollingSports:s})}))}}getChampionAndMorningCount(){if(this.sportsStore.sabaUrl&&this.sportsStore.sabaToken&&!this.getSelfSportAndSabaStatus){const t=(0,C.iq)(S.AO.Morning),e=`from=${t.from}&until=${t.until}`;this.championAndMorningSSE&&this.championAndMorningSSE.unsunscribe(),this.championAndMorningSSE=new T.Z(`${this.sportsStore.sabaUrl}/sports/stream/v1/GetSports?token=${this.sportsStore.sabaToken}&${e}`),this.championAndMorningSSE.subscribe("message",(t=>{if(!t)return;const{add:e,change:o,remove:i}=t?.payload?.sports||{};let{championSports:s}=this.state;e?.length&&(s=s.concat(e)),o?.length&&(s=s?.map((t=>{const e=o.find((e=>e.sportType===t.sportType));return e?{...t,...e}:t}))),i?.length&&(s=s?.filter((t=>!i.includes(t.sportType)))),this.setState({championSports:s})}))}}getPassLeveCount(){if(this.sportsStore.sabaUrl&&this.sportsStore.sabaToken&&!this.getSelfSportAndSabaStatus){const t=(0,C.iq)(S.AO.PassLeve),e=`from=${t.from}&until=${t.until}`;this.passLeveSSE&&this.passLeveSSE.unsunscribe(),this.passLeveSSE=new T.Z(`${this.sportsStore.sabaUrl}/sports/stream/v1/GetSports?token=${this.sportsStore.sabaToken}&${e}`),this.passLeveSSE.subscribe("message",(t=>{if(!t)return;const{add:e,change:o,remove:i}=t?.payload?.sports||{};let{passLeveSports:s}=this.state;e?.length&&(s=s.concat(e)),o?.length&&(s=s?.map((t=>{const e=o.find((e=>e.sportType===t.sportType));return e?{...t,...e}:t}))),i?.length&&(s=s?.filter((t=>!i.includes(t.sportType)))),this.setState({passLeveSports:s})}))}}get handicapTabTypeList(){const{t:t}=(0,L.QT)();return[{type:S.AO.Today,title:e=>t("lobby.selfoperatedGames.sports.todayCount",{count:0===e?"...":e})},{type:S.AO.Rolling,title:e=>t("lobby.selfoperatedGames.sports.rollingCount",{count:0===e?"...":e})},{type:S.AO.Morning,title:e=>t("lobby.selfoperatedGames.sports.morningCount",{count:0===e?"...":e})},{type:S.AO.PassLeve,title:e=>t("lobby.selfoperatedGames.sports.passLevelCount",{count:0===e?"...":e})},{type:S.AO.Champion,title:e=>t("lobby.selfoperatedGames.sports.championCount",{count:0===e?"...":e})},{type:S.AO.FocusOn,title:e=>t("lobby.selfoperatedGames.sports.focusOnCount",{count:e})}]}render(){const t=arguments[0];return t("my-scroll",{attrs:{height:"auto",direction:"x",trigger:"none",dragable:!0},class:E},[this.handicapTabTypeList.map((e=>{let o=this.categoryToCount[e.type];return e.type===S.AO.FocusOn&&(o=this.collectLeagueList?.length??0),t("span",{class:{[A]:!0,[w]:this.currentCategory===e.type},key:e.type,on:{click:()=>{this.currentCategory=e.type}}},[e.title(o)])}))])}},(0,b.Z)(g.prototype,"onCategoryChange",[s],Object.getOwnPropertyDescriptor(g.prototype,"onCategoryChange"),g.prototype),(0,b.Z)(g.prototype,"calcRollingCount",[r,n],Object.getOwnPropertyDescriptor(g.prototype,"calcRollingCount"),g.prototype),(0,b.Z)(g.prototype,"calcChampionCount",[a,l],Object.getOwnPropertyDescriptor(g.prototype,"calcChampionCount"),g.prototype),(0,b.Z)(g.prototype,"calcPassLeveCount",[c,h],Object.getOwnPropertyDescriptor(g.prototype,"calcPassLeveCount"),g.prototype),(0,b.Z)(g.prototype,"getRollingAndTodayCount",[m],Object.getOwnPropertyDescriptor(g.prototype,"getRollingAndTodayCount"),g.prototype),(0,b.Z)(g.prototype,"getChampionAndMorningCount",[d],Object.getOwnPropertyDescriptor(g.prototype,"getChampionAndMorningCount"),g.prototype),(0,b.Z)(g.prototype,"getPassLeveCount",[u],Object.getOwnPropertyDescriptor(g.prototype,"getPassLeveCount"),g.prototype),p=g))||p)},85094:function(t,e,o){"use strict";o.d(e,{DL:function(){return C},F8:function(){return A},Ic:function(){return Z},QO:function(){return L},Rn:function(){return R},Si:function(){return y},Sl:function(){return g},To:function(){return D},WT:function(){return E},YK:function(){return w},ac:function(){return f},iq:function(){return S},j2:function(){return T},j3:function(){return b},kC:function(){return v},pU:function(){return p},pl:function(){return G},sf:function(){return u},xA:function(){return k},y4:function(){return I}});var i=o(66678),s=o.n(i),r=o(50361),n=o.n(r),a=o(20360),l=o(50644),c=o(34068),h=o(58217),m=o(53663),d=o(56343);const u=[a.Im.Handicap,a.Im.OneXHandicap,a.Im.TwoXHandicap,a.Im.MatchPointHandicap],p=[a.Im.OverUnder,a.Im.OneXOverUnder,a.Im.TwoXOverUnder],g=(a.Im.HomeMatchByCricket,a.Im.AwayMatchByCricket,[a.Im.FTp1X2,a.Im.OneFtp1x2,a.Im.TwoFtp1x2]),y=[a.Im.MoneyLine,a.Im.OneMoneyLine],b=[a.Im.MatchWinner],f=t=>{const e=n()(t.events),o=t?.markets;return e.forEach((t=>{t.markets=o?.filter((e=>t.eventId===e.eventId))})),e},S=t=>{const e=t=>{const e=d.Z.moment().utcOffset()/60;return d.Z.moment(t).add(-e,"hour").format("YYYY-MM-DDTHH:mm:ss")};switch(t){case a.AO.Champion:case a.AO.Morning:return{from:e(d.Z.moment().toDate()),until:e(d.Z.moment().add(30,"day").toDate())};case a.AO.Rolling:case a.AO.Today:return{from:e(d.Z.moment().startOf("day").subtract(6,"hour").toDate()),until:e(d.Z.moment().endOf("day").toDate())};case a.AO.PassLeve:return{from:e(d.Z.moment().subtract(6,"hour").toDate()),until:e(d.Z.moment().add(30,"day").toDate())};default:return{from:e(d.Z.moment().subtract(30,"day").toDate()),until:e(d.Z.moment().add(30,"day").toDate())}}},C=t=>{const e=Math.floor(t/60),o=t%60;return`${String(e).padStart(2,"0")}:${String(o).padStart(2,"0")}`},I=(t,e="YYYY-MM-DD HH:mm:ss")=>d.Z.moment.utc(t,"YYYY-MM-DDTHH:mm:ss.SSS").local().format(e),L=t=>d.Z.moment.utc(t).locale().valueOf(),v=t=>{let e=[];return s()(t)?.forEach(((t,o)=>{if(t.selections.forEach((e=>{e.marketId=t.marketId,e.eventId=t.eventId})),0===o)e.push(t);else{const o=e.filter((e=>{if(t.betType===e.betType)return e.selections=e.selections.concat(t.selections),e.selections=e.selections.filter(((t,e,o)=>o.findIndex((e=>e.point===t.point&&e.key===t.key))===e)),!0}));0===o.length&&e.push(t)}})),e=e.sort(((t,e)=>H(t.betType)-H(e.betType))),e},k=t=>{t.forEach((t=>{const{betType:e,selections:o,marketStatus:i}=t;i!==l.$.running&&(t.marketIsDisabled=!0),[a.Im.Handicap,a.Im.OneXHandicap,a.Im.TwoXHandicap].includes(e)&&o.forEach((t=>{A(t.point)})),o.forEach((t=>{(t=>{E(t)<=0&&(t.selectionPriceIsDisabled=!0)})(t)})),(t=>{const{t:e}=(0,h.QT)();t.forEach((t=>{t.key===a.cY&&(t.keyName=e("lobby.selfoperatedGames.markets.AOSToOther"))}))})(o)}))},T=t=>{const e=[],o=[];return t.forEach((t=>{e.includes(t.betType)||(e.push(t.betType),o.push({value:t.betType.toString(),label:t.betTypeName}))})),o},E=t=>{const{handicapAreasKey:e}=(0,m.P)(),o=t.oddsPrice[e===a.H8.Europe?"decimalPrice":"hongKongPrice"];return Number(o.toFixed(2))},A=t=>{let e="";return t?.toString().includes(".25")||t?.toString().includes(".75")?(e=`${Math.abs(t)-.25}/${Math.abs(t)+.25}`,t<0&&(e="-"+e)):e=t?.toString()||"",e},w=t=>O().find((e=>{if("number"==typeof e.thirdKey)return e.thirdKey===t;{const o=e.thirdKey.split("-");return o[0]===t.toString()||o[1]===t.toString()}})),O=()=>{const{t:t}=(0,h.QT)();return[{thirdKey:a.Im.HomeMatchByCricket,name:t("lobby.selfoperatedGames.sports.homeMatchByCricket"),key:a.y5.OverUnder},{thirdKey:a.Im.AwayMatchByCricket,name:t("lobby.selfoperatedGames.sports.awayMatchByCricket"),key:a.y5.OverUnder},{thirdKey:a.Im.MatchWinner,name:t("lobby.selfoperatedGames.sports.matchWinner"),key:a.y5.SINGLE_DOUBLE},{thirdKey:a.Im.Handicap,name:t("lobby.selfoperatedGames.markets.handicap"),key:a.y5.HANDICA},{thirdKey:a.Im.OneXHandicap,name:t("lobby.selfoperatedGames.markets.handicapUp"),key:a.y5.HANDICA},{thirdKey:a.Im.TwoXHandicap,name:t("lobby.selfoperatedGames.markets.handicapDown"),key:a.y5.HANDICA},{thirdKey:a.Im.OverUnder,name:t("lobby.selfoperatedGames.markets.bigsmall"),key:a.y5.OverUnder},{thirdKey:a.Im.OneXOverUnder,name:t("lobby.selfoperatedGames.markets.bigsmallUp"),key:a.y5.OverUnder},{thirdKey:a.Im.TwoXOverUnder,name:t("lobby.selfoperatedGames.markets.bigsmallDown"),key:a.y5.OverUnder},{thirdKey:a.Im.FTp1X2,name:t("lobby.selfoperatedGames.markets.winDrawLose"),key:a.y5.SINGLE_DOUBLE},{thirdKey:a.Im.OneFtp1x2,name:t("lobby.selfoperatedGames.markets.winDrawLoseUp"),key:a.y5.SINGLE_DOUBLE},{thirdKey:a.Im.TwoFtp1x2,name:t("lobby.selfoperatedGames.markets.winDrawLoseDown"),key:a.y5.SINGLE_DOUBLE},{thirdKey:a.Im.score,name:t("lobby.selfoperatedGames.markets.score"),key:a.y5.SCORE},{thirdKey:a.Im.scoreUp,name:t("lobby.selfoperatedGames.markets.scoreUp"),key:a.y5.SCORE},{thirdKey:a.Im.scoreDown,name:t("lobby.selfoperatedGames.markets.scoreDown"),key:a.y5.SCORE},{thirdKey:a.Im.HalfAndFullCorrectScore,name:t("lobby.selfoperatedGames.markets.HalfAndFullCorrectScore"),key:a.y5.SCORE},{thirdKey:a.Im.HalfAndFullCorrectScore1,name:t("lobby.selfoperatedGames.markets.HalfAndFullCorrectScore1"),key:a.y5.SCORE},{thirdKey:a.Im.singleDouble,name:t("lobby.selfoperatedGames.markets.singleDouble"),key:a.y5.SINGLE_DOUBLE},{thirdKey:a.Im.singleDoubleUp,name:t("lobby.selfoperatedGames.markets.singleDoubleUp"),key:a.y5.SINGLE_DOUBLE},{thirdKey:a.Im.singleDoubleDown+"-"+a.Im.singleDoubleDown2,name:t("lobby.selfoperatedGames.markets.singleDoubleDown"),key:a.y5.SINGLE_DOUBLE},{thirdKey:a.Im.doubleChance,name:t("lobby.selfoperatedGames.markets.doubleChance"),key:a.y5.DOUBLE_CHANCE},{thirdKey:a.Im.doubleChanceUp+"-"+a.Im.doubleChanceUp2,name:t("lobby.selfoperatedGames.markets.doubleChanceUp"),key:a.y5.DOUBLE_CHANCE},{thirdKey:a.Im.doubleChanceDown+"-"+a.Im.doubleChanceDown2,name:t("lobby.selfoperatedGames.markets.doubleChanceDown"),key:a.y5.DOUBLE_CHANCE},{thirdKey:a.Im.totalGoal,name:t("lobby.selfoperatedGames.markets.totalGoal"),key:a.y5.TOTAL_GOAL},{thirdKey:a.Im.totalGoalUp,name:t("lobby.selfoperatedGames.markets.totalGoalUp"),key:a.y5.TOTAL_GOAL},{thirdKey:a.Im.rightTotalGoal,name:t("lobby.selfoperatedGames.markets.rightTotalGoal"),key:a.y5.TOTAL_GOAL},{thirdKey:a.Im.rightHomeTotalGoal,name:t("lobby.selfoperatedGames.markets.rightHomeTotalGoal"),key:a.y5.TOTAL_GOAL},{thirdKey:a.Im.rightAwayTotalGoal,name:t("lobby.selfoperatedGames.markets.rightAwayTotalGoal"),key:a.y5.TOTAL_GOAL},{thirdKey:a.Im.rightTotalGoalUp,name:t("lobby.selfoperatedGames.markets.rightTotalGoalUp"),key:a.y5.TOTAL_GOAL},{thirdKey:a.Im.rightTotalGoalDown,name:t("lobby.selfoperatedGames.markets.rightTotalGoalDown"),key:a.y5.TOTAL_GOAL},{thirdKey:a.Im.zeroLose,name:t("lobby.selfoperatedGames.markets.zeroLose"),key:a.y5.ZERO_LOSE},{thirdKey:a.Im.zeroLoseWinner,name:t("lobby.selfoperatedGames.markets.zeroLoseWinner"),key:a.y5.ZERO_LOSE},{thirdKey:a.Im.halfAll,name:t("lobby.selfoperatedGames.markets.halfAll"),key:a.y5.HALF_ALL},{thirdKey:a.Im.special,name:t("lobby.selfoperatedGames.markets.special"),key:a.y5.SPECIAL},{thirdKey:a.Im.winLose,name:t("lobby.selfoperatedGames.markets.winLose"),key:a.y5.WIN_LOSE}]},R=t=>{const e=[],o=[];return function i(s,r){r>=2&&e.push(o.slice());for(let e=s;e<t.length;e++)o.push(t[e]),i(e+1,r+1),o.pop()}(0,0),e},D=(t,e)=>{const o=[];return function i(s,r){r.length===e&&o.push(r.slice());for(let e=s;e<t.length;e++)r.push(t[e]),i(e+1,r),r.pop()}(0,[]),o},G=/^0/,Z=t=>(0,c.T1)(t,0),_={1:1,7:1,17:1,3:2,8:2,18:2,5:3,15:3,177:3,413:4,414:4,405:4,2:5,12:5,184:5,428:5,24:6,151:6,410:6,186:6,431:6,6:7,126:7,159:7,161:7,162:7,179:7,187:7,13:8,27:8,16:9,20:10},H=function(t){return t in _?_[t]:10}},51233:function(t,e,o){"use strict";o.d(e,{Z:function(){return y}});var i,s=o(55433),r=o(38821),n=o(20360),a=o(29599),l=o(53663),c=o(76382),h=o(76769),m=o(56822),d=o(12832),u=o(99483),p="D_4S6dcSuOlphq_hqikD",g="Q3XLBYHxujyRcZP86GKB";let y=(0,r.wA)({name:"SportGameHome",components:{SelfoperatedGamesSports:m.Z.createAsyncComponent({component:()=>o.e(12751).then(o.bind(o,27380))})}})(i=class extends r.XY{constructor(...t){super(...t),(0,s.Z)(this,"sportsStore",(0,l.P)())}mounted(){const{setSportKey:t,sportList:e}=(0,l.P)(),o=Number(this.$route.query.sportType??"-1");t(o>=0?o:d.Z.currentTheme().isTheme29?e[0].sportType:n.qg.Casino)}get isShowMiddleMenu(){const{sportKey:t}=(0,l.P)();return t===n.qg.Casino}get hideConfig(){return this.isShowMiddleMenu?{referenceElement:""}:{referenceElement:"#selfoperatedGamesSports2",compareDirect:"bottom",referenceSide:"bottom",stickySide:"bottom",distance:"-4rem"}}render(){const t=arguments[0];return t("section",[t(a.oh,{attrs:{isStickyEnable:!this.isShowMiddleMenu,positionType:"absolute",scrollElement:"#home-scroll-box .my-scrollbar-wrap",isDynamicContent:!1,hideConfig:this.hideConfig},class:[p,this.isShowMiddleMenu?"show-middle-menu":""]},[t(u.Z),!this.isShowMiddleMenu&&this.sportsStore.ipAccess&&t(h.Z,{class:g})]),t("div",{attrs:{id:"selfoperatedGamesSports2"},style:{minHeight:this.isShowMiddleMenu?"initial":"4.1rem"}},[!this.isShowMiddleMenu&&this.sportsStore.ipAccess?t("selfoperated-games-sports"):!this.isShowMiddleMenu&&t(c.Z)]),this.isShowMiddleMenu&&this.$slots.default])}})||i},99483:function(t,e,o){"use strict";o.d(e,{w:function(){return p},Z:function(){return g}});var i,s=o(55433),r=o(38821),n=o(46851),a=o(35829),l=o(58217),c=o(53663),h=o(36476),m="fzWwjIeHZnq0nMkeCxrg",d="Qpz8hyaIuCoF4Xh_PorQ",u="DXXS10m47ePAPi4FeQ7d";const p=0;let g=(0,r.wA)({name:"SportsMiddleMenu"})(i=class extends r.XY{constructor(...t){super(...t),(0,s.Z)(this,"sportsStore",(0,c.P)())}get sportList(){return[{icon:"/lobby_asset/{layout}-{bg}-common/common/home/icon_ylc.png",sportName:"lobby.footer.quickJump.recreationCity",sportType:p},...this.sportsStore.sportList]}onClickItem(t){const{setSportKey:e}=this.sportsStore;n.xN.dispatch({type:"DO_HOME_SCROLL",payload:{duration:500}}),e(t.sportType),this.$router.replace({name:a.x4.GAME,query:{sportType:String(t.sportType)}})}get renderTabs(){const t=this.$createElement,{t:e}=(0,l.QT)();return t(h.Z,{attrs:{needAutoCenter:!1,itemListWrapperClassName:m,tabsTransparent:!0,itemHeight:110,isScrollX:!0,itemSpace:10,persistedActiveName:"",resizeLineBaseDom:t=>t.querySelector(".sportsName"),soleId:"selfsportsBalls2",renderList:this.sportList.map((o=>({value:o.sportType,label:()=>t("div",{class:d,on:{click:()=>this.onClickItem(o)}},[t("my-img",{attrs:{src:o.icon,width:55},class:u}),t("span",{class:"sportsName"},[e(o.sportName)])])}))),showHoverTips:!1,value:this.sportsStore.sportKey}})}render(){return this.renderTabs}})||i}}]);