1import{A as e}from'./AppDownloadBar-BRSoYDhI.js';import{T as t,R as o,L as l,S as a,G as s}from'./Scratch-D30Q21UM.js';import{G as n}from'./GoodRoadFloat-CPTVkwOd.js';import{a as i,u as r,c,s as m,b as u}from'./use-helper-0uaKdRkp.js';import{a as p,c as d,d as g,V as v,g as h}from'./index-CrWCx5FQ.js';import{u as f}from'./use-image-vDNpur_E.js';import{u as y}from'./use-user-DNoP8E0n.js';import{u as x,m as k,aD as b,P as w,bi as _,aK as j,bu as C,a1 as I,aW as S,a5 as z,n as R}from'./router-G8QecHxs.js';import{R as L}from'./RankActivityFloat-CvaWtGkG.js';import{R as T}from'./RedBagRain-BQLx7nPm.js';import{T as B}from'./Turntable-CKhQBeHb.js';import{A as P}from'./ActivityCP-BITFfn2g.js';import{l as $,a as A,c as G,ak as H,R as U,S as F,u as M,U as W,k as D,Y as E,F as N,Z as V,_ as q,X as Y,g as K,a3 as O,a1 as X,w as J,a6 as Q,a9 as Z,M as ee,e as te,a4 as oe,W as le,s as ae,v as se,V as ne,f as ie,n as re,i as ce,y as me,o as ue,p as pe}from'./vendor-vue-PrZjxzdu.js';import{d as de,S as ge,N as ve,j as he,Y as fe,q as ye,r as xe,I as ke,m as be,x as we,D as _e,f as je}from'./vant-D0wJLC7X.js';/* empty css */import{_ as Ce}from'./GoBackButton.vue_vue_type_script_setup_true_lang-CpalaY3X.js';import{u as Ie}from'./use-version-yhz4yb9Y.js';import'./use-secure-DjH-S5Zr.js';import{u as Se}from'./use-game-BSxu_11L.js';/* empty css *//* empty css */import{M as ze}from'./MainMenuPopup-KuYzVAEq.js';import{R as Re}from'./RefreshBalance-4jf-f8fC.js';import'./78-sx-C6FylzOA.js';/* empty css */import'./VipTag.vue_vue_type_style_index_0_scoped_7b98bed2_lang-BwMYuELb.js';/* empty css */import{P as Le}from'./PromotionItem-BhvjKyyi.js';import'./use-task-DlXZc7zv.js';import'./index-DqSmBSED.js';import'./vendor-utils-C8M3dJTb.js';import'./use-crypto-CkizMN_8.js';import'./use-emitter-C_oNMCkI.js';import'./use-language-JeHkxM7X.js';import'./RedBagPopup-u9DGGPtC.js';import'./Ball-DBHJ_uOv.js';import'./use-bet-form-BKYXTv-m.js';import'./use-image-local-CTMxpzWr.js';import'./use-issue-polling-DBws9C1o.js';import'./index-Dotdmiyv.js';import'./icon-base-Bohy99jk.js';/* empty css */import'./LotteryResult-BN-MgYVt.js';import'./use-icon-C66NxYA0.js';/* empty css */import'./use-refresh-DHezfvls.js';import'./use-transfer-C-iD-66_.js';import'./index-B1DQwRZI.js';import'./more-DE-BiQ2S.js';const Te={key:0,class:'home-guanggao-cp'},Be=['src'],Pe=p($({__name:'Ads',setup(e){const t=x(),{pushHelper:o}=i(),{getSystemHomeAds:l}=r(),a=A(!1),s=A(),n=()=>{s.value&&s.value.resize()};G((async()=>{a.value=!0,await l(),H(window,'resize',n)}));return(e,l)=>{var n,i,r;const c=ge,m=de;return(null==(i=null==(n=M(t).system.homeAds)?void 0:n.list)?void 0:i.length)&&M(a)?(W(),U('div',Te,[D(m,{ref_key:'swipeRef',ref:s,'show-indicators':!1,autoplay:1e3*Number((null==(r=M(t).config)?void 0:r.adSliderTimer)??3),'lazy-render':'',class:'home-guanggao h-full'},{default:E((()=>{var e;return[(W(!0),U(N,null,V(null==(e=M(t).system.homeAds)?void 0:e.list,((e,t)=>(W(),q(c,{key:t,onClick:t=>(e=>{const t=null==e?void 0:e.linkCategory,l=['1','2','3','4','5','6','8'].includes(t)?null==e?void 0:e.linkPosition:'',a='7'===t||'0'===t&&(null==e?void 0:e.linkCustom)?null==e?void 0:e.linkPosition:'',s={...e,id:null==e?void 0:e.linkPosition,gameId:l,subId:a,url:(null==e?void 0:e.linkCustom)||e.linkUrl||'',seriesId:t,openWay:(null==e?void 0:e.linkAction)||'0',gameCode:(null==e?void 0:e.gameCode)||'-1'};o(s)})(e)},{default:E((()=>[Y('img',{src:e.image,alt:'',class:'h-full w-full object-cover',loading:'lazy'},null,8,Be)])),_:2},1032,['onClick'])))),128))]})),_:1},8,['autoplay'])])):F('',!0)}}}),[['__scopeId','data-v-f51a7699']]),$e={key:0},Ae=$({__name:'AppHeader',props:{page:{},showBorder:{type:Boolean},leftText:{},color:{}},emits:['action'],setup(e,{emit:t}){x();const o=t,l=K(),a=(null==l?void 0:l.vnode.props)&&'onAction'in l.vnode.props;return(e,t)=>{const l=ve;return W(),q(l,{clickable:!1,border:!1!==e.showBorder},{left:E((()=>[O(e.$slots,'left',{},(()=>[Y('div',{class:'flex items-center',onClick:t[0]||(t[0]=e=>o('action'))},[D(Ce,{to:e.page,disableClick:M(a),color:e.color},{default:E((()=>
1[e.leftText?(W(),U('span',$e,X(e.leftText),1)):F('',!0)])),_:1},8,['to','disableClick','color']),O(e.$slots,'left-title')])]))])),title:E((()=>[O(e.$slots,'default')])),right:E((()=>[O(e.$slots,'right')])),_:3},8,['border'])}}}),Ge={class:'home-banner-wrap overflow-hidden'},He={class:'img-wrap h-full w-full'},Ue=['src','loading','fetchpriority'],Fe={class:'banner-loading'},Me=p($({__name:'Banners',setup(e){const t=x(),{onClickBanner:o}=i(),{newApiVersion:l}=Ie(),{getSystemBanners:a}=r(),s=Q((async()=>{await a()}),1e3*b);return J((()=>l(k.SystemBanners)),(async e=>{e&&await s()})),(e,l)=>{var a;const s=d,n=ge,i=de;return W(),U('div',Ge,[D(i,{autoplay:1e3*Number((null==(a=M(t).config)?void 0:a.adSliderTimer)??3),'lazy-render':'',class:'home-banners','show-indicators':!M(t).inThemes('0')},{default:E((()=>{var e;return[(W(!0),U(N,null,V(null==(e=M(t).system.banners)?void 0:e.list,((e,t)=>(W(),q(n,{key:e.id,onClick:t=>M(o)(e)},{default:E((()=>[Y('div',He,[Y('img',{src:e.pic,alt:'',class:'banner-img mx-auto h-full w-full object-cover',loading:t<3?'eager':'lazy',fetchpriority:0===t?'high':void 0,onLoad:l[0]||(l[0]=e=>e.target.classList.add('loaded'))},null,40,Ue),Y('div',Fe,[D(s,{class:'banner-loading__icon'})])])])),_:2},1032,['onClick'])))),128))]})),_:1},8,['autoplay','show-indicators'])])}}}),[['__scopeId','data-v-c277243b']]),We={key:0,class:'home-copyright-cp flex flex-col items-center'},De={key:0,class:'links flex items-center'},Ee=['href'],Ne={class:'ml-0.5'},Ve={class:'ml-0.5'},qe={key:1,class:'copyright'},Ye=p($({__name:'Copyright',setup(e){const t=x(),{showHomeCopyright:o,showHomeCopyrightLinks:l}=r();return(e,a)=>{const s=Z('router-link');return M(o)?(W(),U('div',We,[M(l)?(W(),U('div',De,[Y('a',{href:M(t).config.host+'/index2.php',class:'link'},[a[0]||(a[0]=Y('i',{class:'fa fa-tv'},null,-1)),Y('span',Ne,X(e.$t('app.computer','\u7535\u8111\u7248')),1)],8,Ee),D(s,{to:{name:M(w).Promote},class:'link pl-2'},{default:E((()=>[a[1]||(a[1]=Y('i',{class:'fa fa-gift'},null,-1)),Y('span',Ve,X(e.$t('app.home.coupon','\u4f18\u60e0\u6d3b\u52a8')),1)])),_:1,__:[1]},8,['to'])])):F('',!0),M(o)?(W(),U('div',qe,' COPYRIGHT\xa0\xa9\xa0'+X(M(t).config.webName)+'\xa0RESERVED ',1)):F('',!0)])):F('',!0)}}}),[['__scopeId','data-v-93317bad']]),Ke=['src'],Oe=['src','loading','fetchpriority'],Xe=['src'],Je=['src','loading','fetchpriority'],Qe=['src'],Ze={key:3,class:'absolute-center whitespace-nowrap text-[16px] text-white'},et={class:'game-name text-overflow mt-0.5 w-full text-center'},tt='data:image/gif;base64,R0lGODlhAQABAAAAACw=',ot=p($({__name:'GameItem',props:{item:{},iconSize:{},horizontal:{type:Boolean},theme81SiteF1001Col2:{type:Boolean},eager:{type:Boolean}},setup(e){const t=x(),o=ee(),{pushHelper:l}=i(),{getSiteImage:a,defaultLotteryIcon:s}=f(),n=te('loginRegPopup85',null),r=e,c=A(null);J((()=>t.isLogin),(e=>{if(e&&c.value){const e=c.value;c.value=null,l(e)}}));const m=e=>{if(!t.allowGuestToReal||!t.isTest)return(e=>{const{seriesId:t}=e;return t===I.Real||t===I.Fish||t===I.Game||t===I.Chess||t===I.Sports||t===I.ESports||t===I.Lottery})(e)&&!t.isLogin?(c.value=e,void(null==n||n.openLoginPopup())):void l(e);o.push({name:w.WalletWithdraw})},u=C((()=>{m(r.item)}),300),p=()=>{u(null)},d=A(!1),g=()=>{d.value=!0},v=A(!1),h=e=>{const t=e.target;v.value?(t.onerror=null,t.src=tt):(v.value=!0,t.onerror=null,t.src=r.item.seriesId===I.Lottery&&s.value||tt),d.value=!1};return(e,o)=>{const l=fe,n=he;return W(),U('div',{class:le(['game-item-cp relative flex shrink-0 flex-col items-center rounded-[100px] bg-[--home-element-bg] text-[13px] font-semibold',[!e.theme81SiteF1001Col2&&'aspect-square',e.horizontal&&'!flex-row gap-0.5 rounded-[4px] border-[1px] border-[#e6e6e6] p-1',e.theme81SiteF1001Col2&&'!min-h-[119px] !overflow-visible pt-[3.5px]',M(d)&&e.theme81SiteF1001Col2?'!shadow-[2px_2px_3px_rgba(2,2,2,0.7)]':'']]),onClick:oe(p,['prevent'])},[e.item.tipFlag===M(_).BigReward?(W(),U('img',{key:0,alt:'',src:M(a)('zdj.gif'),class:'absolute z-10 w-[70px]'},null,8,Ke)):F('',!0),Y('div',{class:le(['game-icon relative',[e.item.isMaintained&&'is-maintained',!e.horizontal&&'w-full',M(t).inThemes('76')&&'h-full']])},[e.theme81SiteF1001Col2&&!M(d)?(W(),q(n,{key:0,class:'!m-1 !p-0'},{template:E((()=>[D(l,{class:'!w-full'})])),_:1})):F('',!0),e.theme81SiteF1001Col2?(W(),U(N,{key:1},[ae(Y('img',{src:e.item.icon||M(s),alt:'',loading:e.eager?'eager':'lazy',fetchpriority:e.eager?'high':void 0,onLoad:g,onError:h}
1,null,40,Oe),[[se,M(d)]]),e.item.hotIcon?(W(),U('img',{key:0,src:e.item.hotIcon,alt:'',class:'absolute inset-0 h-full w-full object-cover',loading:'lazy'},null,8,Xe)):F('',!0)],64)):(W(),U(N,{key:2},[Y('img',{src:r.item.icon||M(s),alt:'',class:le(['aspect-square size-[60px]','mx-auto','mb-[6px] mt-[8px]']),style:ne(e.iconSize?{width:`${M(j)(e.iconSize)}rem`,height:`${M(j)(e.iconSize)}rem`}:{}),loading:e.eager?'eager':'lazy',fetchpriority:e.eager?'high':void 0,onLoad:g,onError:h},null,44,Je),e.item.hotIcon?(W(),U('img',{key:0,src:e.item.hotIcon,alt:'',class:'absolute inset-0 h-full w-full object-cover',loading:'lazy'},null,8,Qe)):F('',!0)],64)),e.item.isMaintained?(W(),U('div',Ze,' \u7ef4\u62a4\u4e2d ')):F('',!0)],2),M(t).inSites('f170')||M(t).inThemes('76')||e.theme81SiteF1001Col2?F('',!0):(W(),U('div',{key:1,class:le(['leading-[1.2]',[M(t).inThemes('80')&&'flex-1']])},[Y('div',et,X(e.item.name||e.item.title),1),Y('div',{class:le(['game-subtitle text-overflow h-[20px] w-full text-center text-[red]',[e.iconSize&&e.iconSize<60&&'mt-[-2px] scale-75']])},X(e.item.subtitle),3)],2))],2)}}}),[['__scopeId','data-v-0207ad0b']]),lt={class:'flex-center flex-col'},at=['src'],st={class:'game-list mt-[8px] grid grid-cols-3 gap-[8px]'},nt=p($({__name:'GameCategory',props:{cols:{},swipeable:{type:Boolean},fixed:{type:Boolean},topHeight:{},listTop:{}},emits:['update:fixed'],setup(e,{emit:t}){const o=x(),{getHomeGames:l}=Se(),{isVietnamSite:a}=r();i();const s=e,n=A(!1),c=A(0),m=A(),u=A();A();const p=A(),d=A(!1),g=A(),v=ie((()=>o.inThemes('76,78,79'))),h=ie((()=>o.game.homeGames.icons.filter((e=>{var t;return!!(null==(t=e.list)?void 0:t.length)})))),f=A(''),y=ie((()=>h.value.some((e=>!!e.logo)))),k=(e,t=!1)=>{var o;const l=t?null==(o=e.list)?void 0:o.slice(0,12):e.list;null==l||l.forEach((e=>{e.icon&&((new Image).src=e.icon),e.hotIcon&&((new Image).src=e.hotIcon)}))},b=new Set;G((async()=>{d.value=!0,h.value.length||await l(),re((()=>{var e,t;v.value?f.value=0:(null==(e=o.game.homeGames)?void 0:e.selectedCategoryId)&&(f.value=o.game.homeGames.selectedCategoryId);const l=null==(t=null==document?void 0:document.querySelector('.sidebar-tabs'))?void 0:t.getBoundingClientRect().height;if(l&&(c.value=l),g.value&&g.value.resize(),m.value&&u.value){const e=m.value.getBoundingClientRect().width;m.value.style.width=`${e}px`,u.value.style.width=`calc(100% - ${e}px)`}(()=>{if(!h.value.length)return;h.value.forEach((e=>{e.logo&&((new Image).src=e.logo),e.selectedLogo&&((new Image).src=e.selectedLogo)}));const e=h.value[0];e&&(k(e,!0),b.add(e.id),requestAnimationFrame((()=>{e.list&&e.list.length>12&&e.list.slice(12).forEach((e=>{e.icon&&((new Image).src=e.icon),e.hotIcon&&((new Image).src=e.hotIcon)}));const t=()=>{h.value.forEach((e=>{b.has(e.id)||(k(e),b.add(e.id))}))};'function'==typeof requestIdleCallback?requestIdleCallback(t):setTimeout(t,1e3)})))})()})),H(window,'resize',(()=>{g.value&&g.value.resize(),h.value.length>0&&S(h.value.length)}))})),J((()=>h.value.length),(e=>{e>0&&S(e)}),{immediate:!0}),J((()=>s.topHeight),(e=>{m.value&&u.value&&(m.value.style.top=`${e}px`)})),J((()=>s.listTop),(e=>{var t;n.value=!!(e&&s.topHeight&&e<=s.topHeight);const o=null==(t=p.value)?void 0:t.getBoundingClientRect().top;if(m.value&&s.topHeight&&o<=s.topHeight+c.value){const e=o-s.topHeight;m.value.style.height=(e<=0?0:e)+'px'}})),J((()=>f.value),(e=>{e&&o.game.homeGames.selectedCategoryId!==e&&o.$asyncPatch((t=>{t.game.homeGames.selectedCategoryId=e}))}),{immediate:!0}),J((()=>o.theme),(()=>{o.inThemes('76,78,79')&&(f.value=0)}));const w=({name:e})=>{const t=h.value.find((t=>t.id===e));t&&(e=>{var t;return!((null==(t=e.list)?void 0:t.length)||!e.url||(e.openWay===z.Blank?window.open(e.url):window.location.href=e.url,0))})(t)?f.value='':t&&!b.has(t.id)&&(k(t),b.add(t.id))};return(e,t)=>{const l=xe,s=ye;return W(),U('div',{class:le(['home-game-category',[M(a)&&'home-game-category-vietnam',M(y)&&'has-logo',`home-game-category-${M(o).theme}`,M(h).length<=1&&'no-category']])},[M(d)&&M(h).length>0?(W(),q(s,{key:0,onClickTab:w,active:M(f),'onUpdate:active':t[0]||(t[0]=e=>ce(f)?f.value=e:null),swipeable:!0===e.swipeable,'lazy-render':!0,ref_key:'tabsRef',ref:g,style:ne({'--tab-grow-width':5===M(h).length?'20%':'calc(100% / 6)'})},{default:E((()=>
1[(W(!0),U(N,null,V(M(h),(t=>(W(),q(l,{key:t.id,title:t.name,name:t.id},{title:E((()=>[Y('div',lt,[t.logo?(W(),U('img',{key:0,src:M(f)===t.id&&t.selectedLogo?t.selectedLogo:t.logo,alt:'',class:'size-[26px]'},null,8,at)):F('',!0),Y('div',{class:le((t.logo,''))},X(t.name),3)])])),default:E((()=>[Y('div',st,[(W(!0),U(N,null,V(t.list,((t,o)=>(W(),U('div',{key:t.id,class:le(['game-item-wrap',[`cols-${e.cols??3}`,(e.cols,'')]])},[D(ot,{item:t,eager:o<12},null,8,['item','eager'])],2)))),128))])])),_:2},1032,['title','name'])))),128))])),_:1},8,['active','swipeable','style'])):F('',!0)],2)}}}),[['__scopeId','data-v-be799845']]),it={class:'home-header-right flex items-center text-[--home-header-text]'},rt={key:0,class:'flex items-center gap-0.5'},ct=['src'],mt={class:'flex items-center'},ut=['src'],pt={key:1,class:'no-login flex items-center justify-end gap-0.5 text-[16px]'},dt=p($({__name:'HomeHeaderRight',setup(e){const{guestLogin:t}=y(),{getTemplateImage:o}=f();i();const{openRegPopup:l}=c(),a=x(),s=te('loginRegPopup85',null),n=async()=>{await t()};return(e,t)=>{const i=Z('router-link');return W(),U('div',it,[M(a).isLogin?(W(),U('div',rt,[Y('img',{src:M(o)('gezx.png'),alt:''},null,8,ct),Y('div',null,[Y('div',mt,[D(i,{to:{name:M(w).UserCenter},class:le(['underline underline-offset-4'])},{default:E((()=>[me(X(M(a).displayUserName),1)])),_:1},8,['to'])]),M(a).inSites('f176,t034,t033,f191')?(W(),q(Re,{key:0,'font-size':12})):F('',!0)]),M(a).isTest?(W(),U('div',{key:0,class:'header-button cursor-pointer',onClick:t[0]||(t[0]=()=>M(l)())},X(e.$t('app.registered','\u6ce8\u518c')),1)):F('',!0),D(ze,{class:'ml-1'},{icon:E((()=>[Y('img',{src:M(o)('munu_btn.png'),alt:'',class:'size-[28px]'},null,8,ut)])),_:1})])):(W(),U('div',pt,[M(a).inThemes('85,81,83,9')?(W(),U('div',{key:0,class:'header-button cursor-pointer',onClick:t[1]||(t[1]=e=>{var t;return null==(t=M(s))?void 0:t.openLoginPopup()})},X(e.$t('app.log.in','\u767b\u5f55')),1)):(W(),U('div',{key:1,class:'header-button cursor-pointer',onClick:t[2]||(t[2]=()=>{var e;return null==(e=M(s))?void 0:e.openLoginPopup()})},X(e.$t('app.log.in','\u767b\u5f55')),1)),M(a).inThemes('85,81,83,9')?(W(),U('div',{key:2,class:'header-button cursor-pointer',onClick:t[3]||(t[3]=e=>{var t;return null==(t=M(s))?void 0:t.openRegPopup()})},X(e.$t('app.registered','\u6ce8\u518c')),1)):(W(),U('div',{key:3,class:'header-button cursor-pointer',onClick:t[4]||(t[4]=()=>M(l)())},X(e.$t('app.registered','\u6ce8\u518c')),1)),M(a).config.guestSwitch?(W(),U('div',{key:4,class:'header-button',onClick:n},X(e.$t('app.demo1','\u8bd5\u73a9')),1)):F('',!0)]))])}}}),[['__scopeId','data-v-1a8cafb7']]),gt={class:'home-nav-default relative'},vt={key:0,class:'list flex items-center overflow-y-auto py-1'},ht=['onClick'],ft=['src'],yt=p($({__name:'NavDefault',setup(e){const t=x(),o=ee(),{getTemplateImage:l}=f(),{openPrizeUrl:a}=Se(),{openWindow:s}=i(),n=A(0),r=ie((()=>[{name:'cqk',label:'\u5b58\u6b3e/\u53d6\u6b3e',key:'',icon:'cqk.png'},{name:'appxz',label:'APP\u4e0b\u8f7d',key:'app.app.download',icon:'appxz.png'},{name:'yhhd',label:'\u6d3b\u52a8',key:'app.ios1030',icon:'yhhd.png'},{name:'kjw',label:'\u5f00\u5956\u7f51',key:'app.android.kjw',icon:'kjw.png'},{name:'lxb',label:t.yuebaoName,key:'',icon:'lxb.png'},{name:'zxkf',label:'\u5728\u7ebf\u5ba2\u670d',key:'app.online.service',icon:'zxkf.png'},{name:'hyzx',label:'\u4f1a\u5458\u4e2d\u5fc3',key:'app.ios702',icon:'hyzx.png'}])),c=()=>{n.value===r.value.length-1?n.value=0:n.value++};return J((()=>n.value),(e=>{re((()=>{const t=document.querySelector('.home-nav-default .list'),o=null==t?void 0:t.children[e];if(t&&o){const e=t.clientWidth,l=o.offsetWidth,a=o.offsetLeft-e/2+l/2;t.scrollTo({left:a,behavior:'smooth'})}}))})),(e,i)=>{const m=ke;return W(),U('div',gt,[M(t).inThemes('9')?(W(),U('div',vt,[(W(!0),U(N,null,V(M(r),((i,r)=>(W(),U('div',{key:i.name,class:'flex-center w-[75px] shrink-0 flex-col gap-0.5',onClick:e=>(e=>{var l,n;switch(e.name){case'cqk':o.push({name:w.WalletDeposit});break;case'appxz':(null==(l=t.config)?void 0:l.appDownloadUrl)&&s(t.config.appDownloadUrl);break;case'yhhd':o.push({name:w.Promote});break;case'kjw':s(a.value);break;case'lxb':o.push({name:w.UserYuebao});break;case'zxkf':(null==(n=t.config)?void 0:n.zxkfUrl)&&s(t.config.zxkfUrl);break;case'hyzx':o.push({name:w.UserCenter})}})(i)},[Y('img',{src:M(l)(i.icon),alt:'',class:'size-[30px]'}
1,null,8,ft),Y('div',{class:le(['text-[12px]',[M(n)===r&&'text-[--home-nav-active-text]']])},X(i.key?e.$t(i.key,i.label):i.label),3)],8,ht)))),128)),Y('div',{class:'flex-center absolute right-0 h-[36px] w-[10px] bg-[--primary]',onClick:c},[D(m,{name:'arrow',class:'text-[10px] font-semibold text-white'})])])):F('',!0)])}}}),[['__scopeId','data-v-98adf771']]),xt={class:'home-nav'},kt={class:'home-nav flex flex-1 items-center justify-between'},bt=['onClick'],wt=['src'],_t=p($({__name:'Nav',setup(e){const t=x();A(!1),y();const{pushHelper:o,customerServicePopupVisible:l}=i();ie((()=>t.inSites('f188,t033,t034')?'text-[#fff]':''));const a=ie((()=>{const e=[{theme:'80',count:4},{theme:'78',count:3}].find((({theme:e})=>t.inThemes(e)));return e?t.game.homeGames.navs.slice(0,e.count):t.game.homeGames.navs}));return(e,s)=>{const n=be,i=g;return W(),U('div',xt,[M(t).game.homeGames.navs.length?(W(),U('div',{key:0,class:le(['home-nav-cp flex items-center overflow-x-auto',[`theme-${M(t).theme}`,'py-[4px]']])},[Y('div',kt,[(W(!0),U(N,null,V(M(a),(e=>(W(),U('div',{key:e.id,class:le(['home-nav-item flex flex-col items-center !pt-[4px] text-[14px]',['flex-1']]),onClick:t=>(e=>{o(e)})(e)},[D(n,{content:'14'===e.gameId?M(t).userInfo.unreadMsg:0,class:'flex flex-1 flex-col items-center gap-0.5','show-zero':!1},{default:E((()=>[Y('img',{src:e.icon,class:le(['size-[36px]']),alt:''},null,8,wt),Y('span',{class:le(['whitespace-nowrap',['text-[15px]']])},X(e.name),1)])),_:2},1032,['content'])],8,bt)))),128))])],2)):M(t).inThemes('9')?(W(),q(yt,{key:1})):F('',!0),D(i,{show:M(l),'onUpdate:show':s[0]||(s[0]=e=>ce(l)?l.value=e:null)},null,8,['show'])])}}}),[['__scopeId','data-v-c874ff30']]),jt=['innerHTML'],Ct=p($({__name:'NoticeBar',setup(e){const t=x(),o=A(!1),l=A(),a=A(),s=ie((()=>{var e,o;return null==(o=null==(e=t.notice.latest)?void 0:e.scroll)?void 0:o.map((e=>e.title)).join('\u3000\u3000\u3000')})),n=()=>{s.value&&(o.value=!0)};return J([()=>t.mode,()=>t.isMember],(()=>{var e;null==(e=l.value)||e.reset()})),(e,i)=>{const r=we,c=je,u=_e;return W(),U('div',{class:le(['home-notice-bar',[`theme-${M(t).theme}`]]),ref_key:'noticeBarContentRef',ref:a},[D(r,{scrollable:'','left-icon':'volume',text:M(s),speed:90,onClick:n,ref_key:'noticeBarRef',ref:l,teleport:M(a)},null,8,['text','teleport']),D(u,{show:M(o),title:e.$t('app.notice','\u516c\u544a'),'confirm-button-text':e.$t('app.ok','\u786e\u5b9a'),'class-name':'notice-content-dialog',teleport:'body',onConfirm:i[0]||(i[0]=e=>o.value=!1)},{default:E((()=>[(W(!0),U(N,null,V(M(t).notice.latest.scroll,(e=>(W(),U('div',{key:e.id},[Y('div',{innerHTML:M(m)(e.content)},null,8,jt),D(c,{dashed:'',hairline:!1})])))),128))])),_:1},8,['show','title','confirm-button-text'])],2)}}}),[['__scopeId','data-v-6cee636b']]),It={key:0,class:'home-promotions-cp'},St={class:'promotion-list-title flex items-center justify-between p-1 font-bold'},zt={class:'ml-0.5'},Rt={class:'promotion-list-content'},Lt=p($({__name:'Promotions',setup(e){const t=ie((()=>{const e=o.system.promotions.list||[],t=o.system.promotions.m_home_promote_limit,l=Number(o.system.promotions.m_home_promote_count)||5;return t?e.slice(0,l):e})),o=x(),{getSystemPromotions:l}=r();return G((async()=>{0===o.system.promotions.list.length&&await l()})),(e,l)=>{const a=Z('router-link');return M(o).system.promotions.list.length?(W(),U('div',It,[Y('div',St,[Y('div',null,[l[0]||(l[0]=Y('i',{class:'fa fa-gift icon'},null,-1)),Y('span',zt,X(e.$t('app.home.coupon','\u4f18\u60e0\u6d3b\u52a8')),1)]),D(a,{to:{name:M(w).Promote}},{default:E((()=>[me(X(e.$t('app.more','\u67e5\u770b\u66f4\u591a>>')),1)])),_:1},8,['to'])]),Y('div',Rt,[(W(!0),U(N,null,V(M(t),(e=>(W(),q(Le,{key:e.id,item:e},null,8,['item'])))),128))])])):F('',!0)}}}),[['__scopeId','data-v-592a0ea7']]),Tt={class:'ranking-list-title flex items-center py-1 font-bold leading-[1]'},Bt={class:'ml-0.5 text-[15px]'},Pt={class:'ranking-list-content text-[13px]'},$t={class:'content-head mt-1 flex justify-between pb-0.5 font-semibold'},At={class:'content-body flex flex-col overflow-hidden'},Gt={class:'w-1/3 text-center'},Ht={class:'w-1/3 text-center'},Ut={class:'w-1/3 text-center'},Ft=p($({__name:'RankingList',setup(e){const{getSystemRankingList:t}=r();f();const o=x();G((()=>{t()}));const l=[{label:'\u7528\u6237\u540d\u79f0',key:'app.username1'},{label:'\u6e38\u620f\u540d\u79f0',key:'app.game.name'},{label:'\u4e2d\u5956\u91d1\u989d',key:'app.winning.amount'}];return(e,t)=>
1M(o).system.rankingList.length?(W(),U('div',{key:0,class:le(['home-ranking-list',[`theme-${M(o).theme}`]])},[Y('div',Tt,[t[0]||(t[0]=Y('i',{class:'fa fa-bar-chart icon'},null,-1)),Y('span',Bt,X(e.$t('\u6700\u65b0\u4e2d\u5956\u699c')),1)]),Y('div',Pt,[Y('div',$t,[(W(),U(N,null,V(l,(t=>Y('div',{key:t.key,class:'flex-1 text-center'},[Y('span',null,X(e.$t(t.key,t.label)),1)]))),64))]),Y('div',At,[D(M(v),{vertical:'',clone:'',duration:120,class:'!z-0 !w-full'},{default:E((()=>[(W(!0),U(N,null,V(M(o).system.rankingList,(e=>(W(),U('div',{key:e.actionTime+'_'+e.username,class:'ranking-item my-1 flex !w-full justify-between'},[Y('div',Gt,X(e.username),1),Y('div',Ht,X(e.type),1),Y('div',Ut,X(M(o).currencySymbol)+X(e.coin),1)])))),128))])),_:1})])])],2)):F('',!0)}}),[['__scopeId','data-v-7697c2e6']]),Mt=['src'],Wt={class:le(['flex flex-col'])},Dt={key:0,class:'online-user absolute right-[10px] top-[10px] z-10 rounded-[50px] p-[4px] text-center text-[12px] text-white'},Et={class:'online-count'},Nt=p($({__name:'index',setup(i){const m=x(),{openLoginPopup:p,openRegPopup:d}=c();pe('loginRegPopup85',{openLoginPopup:p,openRegPopup:d});const{isHomeShowPromotions:g,appDownloadAtTop:v,appDownloadBarLink:k}=r(),{getUserInfo:b}=y();f();const{getCategoryList:w}=u(),_=A(!!k.value),{isBarPeekVisible:j,reportScroll:C,reset:I}=h();J((()=>[j.value,_.value,m.theme,m.inThemes('9')]),(()=>{const e=m.inThemes('9')&&!v.value&&!R.isAppWebView&&!j.value;document.documentElement.classList.toggle('app-footer-peek-bars-hidden',e)}),{flush:'post',immediate:!0}),J(_,(e=>{m.system.showAppDownloadBar=e}),{immediate:!0});const S=A(),z=A(),$=A(!1),H=A(),K=A(0),O=A(0);G((async()=>{I(),w(),re((()=>{var e;v.value&&(K.value=null==(e=z.value)?void 0:e.getBoundingClientRect().height)}))})),ue((()=>{I(),document.documentElement.classList.remove('app-footer-peek-bars-hidden')})),J((()=>m.isLogin),(async e=>{e&&await b()}),{immediate:!0}),J((()=>_.value),(()=>{H.value&&re((()=>{var e;K.value=null==(e=z.value)?void 0:e.getBoundingClientRect().height}))}));const Q=()=>{if(H.value){const e=H.value.getBoundingClientRect().top;e&&(O.value=e)}C(S.value)};return(i,r)=>{var c,u,p,d;return W(),U(N,null,[Y('div',{class:'top',ref_key:'topRef',ref:z},[D(Ae,{class:'home-header'},{left:E((()=>[Y('img',{src:M(m).config.mobile_logo,alt:''},null,8,Mt)])),right:E((()=>[D(dt)])),_:1})],512),Y('div',{ref_key:'homePageRef',ref:S,class:le(['home-page page-content has-header',[!M(v)&&!M(R).isAppWebView&&'has-bottom-app-download-bar']]),onScroll:Q},[Y('div',Wt,[M(m).game.homeGames.onlineSwitch?(W(),U('div',Dt,[Y('span',Et,X(i.$t('app.online.num','\u5f53\u524d\u5728\u7ebf'))+':\xa0'+X(M(m).game.homeGames.onlineUserCount),1)])):F('',!0),D(Me),D(Ct)]),D(_t),D(Pe),Y('div',{ref_key:'gameCategoryListRef',ref:H},[M(m).config.mobileHomeGameTypeSwitch?(W(),q(nt,{key:0,'top-height':M(K),'list-top':M(O),class:'px-[--main-item-gap]',swipeable:!1,cols:M(m).inSites('f062a,f161a,f036c,f053b,f058b')?4:3,fixed:M($),'onUpdate:fixed':r[0]||(r[0]=e=>ce($)?$.value=e:null)},null,8,['top-height','list-top','cols','fixed'])):F('',!0)],512),M(g)?(W(),q(Lt,{key:0})):F('',!0),M(m).config.rankingListSwitch?(W(),q(Ft,{key:1})):F('',!0),D(Ye),D(t,{dom:M(S)},null,8,['dom']),Y('div',null,[(W(!0),U(N,null,V(null==(c=M(m).system.floatAds)?void 0:c.list,(e=>(W(),q(P,{key:e.id,activity:e},null,8,['activity'])))),128))]),D(n,{dom:M(S)},null,8,['dom']),D(o,{dom:M(S)},null,8,['dom']),D(L,{dom:M(S)},null,8,['dom']),D(l,{dom:M(S)},null,8,['dom']),(null==(u=M(m).userInfo.indexActivityStatus)?void 0:u.scratch)?(W(),q(a,{key:2,dom:M(S)},null,8,['dom'])):F('',!0),(null==(p=M(m).userInfo.indexActivityStatus)?void 0:p.golden_egg)?(W(),q(s,{key:3,dom:M(S)},null,8,['dom'])):F('',!0),(null==(d=M(m).userInfo.indexActivityStatus)?void 0:d.turntable)?(W(),q(B,{key:4,dom:M(S)},null,8,['dom'])):F('',!0),D(T,{dom:M(S)},null,8,['dom']),M(v)||M(R).isAppWebView?F('',!0):(W(),q(e,{key:5,show:M(_),'onUpdate:show':r[1]||(r[1]=e=>ce(_)?_.value=e:null),'footer-peek-pair':'','peek-hidden':!M(j)},null,8,['show','peek-hidden']))],34)],64)}}}),[['__scopeId','data-v-2072415b']]);export{Nt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.