1const __vite__fileDeps=["assets/vendors/vendor-swiper.BqvbXe0X.css","assets/theme-0/commonChunk.DukCAJCj.css","assets/theme-0/0_EntryLoginRegisterChunk.CkFJpDQV.css","assets/theme-0/0_GameMoreCategoryChunk.BbF3sKwp.css","assets/theme-0/0_RechargeCommonChunk.cD1Z7U3x.css","assets/theme-0/1_AgentCenterChunk.c-3wcbsC.css","assets/theme-0/0_WithdrawChunk.Bistmez9.css","assets/theme-0/1_ClubRebateChunk.z3YfvvYT.css","assets/theme-0/1_PromoteChunk.BnL3wdZz.css","assets/theme-0/1_PromotionChunk.CyEA0qWl.css","assets/theme-0/1_SearchGameChunk.eesUugnJ.css","assets/theme-0/TitleContentIndex.SfuYA9Qw.css","assets/theme-0/RedPacketIndex.Br1lfhZL.css","assets/theme-0/PacketRainIndex.CXlWQTIT.css","assets/theme-0/CategoryRewardIndex.BDXbCL2Y.css","assets/theme-0/TreasureIndex.DOYgPFyK.css","assets/theme-0/RollDiceIndex.B9ZkMDPe.css","assets/theme-0/LuckyDrawIndex.B-1MKlrV.css","assets/theme-0/MoneyTreeIndex.BEpjurTy.css","assets/theme-0/GoldenEggIndex.BDFEEUGw.css","assets/theme-0/RedPacketIndex.B5ssqn39.css","assets/theme-0/PacketRainIndex.DD0dzPi8.css","assets/theme-0/TreasureIndex.B8B-rGPj.css","assets/theme-0/RollDiceIndex.D8x9p22e.css","assets/theme-0/LuckyDrawIndex.O6baFXMR.css","assets/theme-0/MoneyTreeIndex.BjfBkSWg.css","assets/theme-0/GoldenEggIndex.CzKr2lTq.css","assets/theme-0/IconReward.DGXr-5TX.css","assets/theme-0/BadgeFundIndex.DuemJHiv.css","assets/theme-0/IconVip.DCGyXTZj.css","assets/theme-0/AgentApplyIndex.BlrlgtGR.css","assets/theme-0/AboutUsTitle.BFwwJ9O_.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); 2import{h as X,b as q,a as dt,j as Lt,D as en,w as $n,iz as Ve,m as I,J as Ma,eg as Yn,c as Tn,F as xn,iA as De,bE as ge,dk as Wo,b3 as ct,iB as xa,iC as Bt,iD as at,hv as wt,bL as Kt,iE as Ba,d$ as Fa,ci as Ue,iF as Ua,aM as vt,e0 as Ha,o as Va,f6 as ja,eL as At,dB as Ga,dt as za,cR as se,eS as $o,aQ as O,R as uo,eE as Wa,cT as $e,c_ as $a,iG as go,iH as Ya,cN as tn,cO as qn,ar as Re,cb as Bn,t as Nn,iI as mo,n as In,de as Yo,iJ as qa,cP as Qa,cQ as Ka,iK as _o,iL as ln,iM as Xa,iN as Za,iO as qo,iP as Ja,iQ as es,iR as bo,bA as tt,hQ as ts,d9 as fn,O as nn,iS as oe,iT as ns,as as Ge,v as Le,hV as po,iU as ce,iV as Qn,aI as os,iW as Pt,iX as as,al as z,iY as Qo,cV as Ko,er as on,iZ as ss,dv as is,gC as $t,i_ as j,i$ as vo,j0 as Ft,gc as rs,ea as cs,j1 as ls,gU as Fn,j2 as fo,hP as Xo,j3 as us,j4 as Zo,d3 as yn,dY as Xt,cZ as an,j5 as ds,ff as yo,gB as gs,ag as le,ct as Kn,eV as ms,eW as _s,j6 as pn,j7 as bs,ab as ps,u as Ye,bK as je,j8 as vs,by as Xn,bz as H,j9 as fs,io as Jo,ja as ea,jb as ta,jc as ys,gG as Zn,a7 as Rt,gI as lt,Q as hs,jd as Ss,ek as ho,je as Es,jf as Un,jg as Cs,hN as Hn,H as Ee,bc as wn,jh as Ts,ji as Is,jj as ws,bb as Jn,eK as eo,ht,aX as Yt,ee as na,jk as As,jl as Rs,jm as Ps,bC as be,bD as K,jn as ks,jo as hn,jp as Ls,jq as oa,bQ as aa,dI as qt,jr as Ns,js as Os,jt as Ds,ju as Ms,bk as xs,jv as Bs,jw as Fs,bx as Us,jx as So,jy as Eo,jz as Co,jA as To,K as sa,jB as ia,jC as ra,jD as Hs,jE as Vs,y as Se,di as Vn,jF as js,dA as jn,jG as Gs,ey as zs,eD as ca,dE as Ne,e7 as Ws,co as un,gE as Sn,dG as la,W as Nt,jH as $s,jI as Ys,jJ as qs,i3 as Qs,jK as Ks,c3 as ua,jL as Xs,jM as Io,jN as Zs,jO as Ot,jP as Js,jQ as da,aA as ei,an as ga,eB as ti,b6 as En,b8 as ni,jR as oi,cs as ai,fs as wo,jS as dn,d1 as Pe,$ as si,_ as ii,db as Gn,bO as mt,ej as zt,e1 as ri,eF as Ao,d5 as ci,d6 as li,ba as ui,fv as sn,jT as di,jU as ma,hd as gi,jV as mi,gF as _i,jW as bi,jX as pi,ez as vi,jY as fi,jZ as yi,fq as hi}from"./commonChunk.Dhe5lqYh.js";import{d as An,r as F,a as ze,c as E,n as _a,K as Oe,w as ft,M as Si,au as Ei,R as Ze,o as to,b as Z,f as a,F as We,h as ve,j as Dt,ad as ba,B as Ci,O as Ti,u as J,ak as Ii,y as qe,ae as yt,ai as Be,am as Fe,m as wi,at as Ai,k as Zt,l as Ri,v as Pi,G as vn,a5 as ki}from"../vendors/vendor-stable.B8ub4Ug6.js";import{bt as Li,bu as Ni,a9 as pa,aA as Ro,bv as Oi,bw as Po,bx as Di,by as ko,bz as Mi,P as xi,bd as Lo,q as zn,l as Bi,bA as Fi,bB as Ui}from"./0_EntryLoginRegisterChunk.CH23XrmN.js";import{_ as te,f as no,m as Hi,i as Vi,U as va,t as fa}from"./vendorChunk.BdsO83GQ.js";import{B as ya}from"./0_GameMoreCategoryChunk.CPz2DCY2.js";
2import{aI as de,aJ as ie,aK as ji,aL as pe,aM as xe,aN as Gi,aO as On,a3 as ha}from"./0_RechargeCommonChunk.DSN05vBz.js";import{A as zi,P as Wi,a as $i}from"../vendors/vendor-swiper.T_wbf2QY.js";var Me=(e=>(e.UN_ADD="unadd",e.UN_VERIFICATION="unverification",e.VERIFICATION="verification",e))(Me||{});function Sa(){const{t:e}=X(),t=q(),n=dt(),{trustedDeviceConfig:o,securityConfig:r,validateConfigStatus:g}=Lt(),i=c=>{en.showDialog({title:()=>e("lobby.receiveModal.kindTips"),confirmButtonText:e("lobby.modal.loginRegister.contactCustomer"),showCloseButton:!0,closeOnRouteChange:!1,message:()=>c!=null?c:e("lobby.center.security.noTrustedDeviceNotify"),onConfirm(){$n().navigateToServicePage({openType:"overlay"})}})};return{notTrustedDeviceDisableSecurity:(c,s=t.userInfos)=>{var A;const u=(A=n.systemInfos)==null?void 0:A.securityVerify.securityAssetMemberVerification,l=o(c),{verifys:d,openItems:b}=r(),_=g(),h=d.filter(U=>!Ve(U,I.LOGINPASS)),{WEBAUTHN:f,WITHDRAWACCOUNT:T,WITHDRAWPASS:p,PHONE:C,EMAIL:w}=I;if([I.THIRDPARTY].includes(c)||u!==Ma.OPEN||!b.length||t.isDemoMode||Ve(c,f)||Ve(c,T)||Ve(c,p)&&!_[p]||Ve(c,C)&&_[C]&&!(s!=null&&s.is_verified)||Ve(c,w)&&_[w]&&!(s!=null&&s.emailVerified))return;const k=!!(s!=null&&s.deposit_count)||!!(s!=null&&s.game_gold),y=h.length===0;if(k&&y&&!l)return i(),!0},showContactServiceDialog:i}}const ke=An("security",()=>{const e=Yn(),t=Tn(),n=xn("Lv1"),o=F([]),r=F({}),g=F(!1);let i=null;const v=ze({type:De.Bind,verify:void 0,form:{},loading:!1}),c=E(()=>{var L;return(L=e.value.platfromid)!=null?L:""}),s=ze({}),u=()=>{v.loading=!0},l=()=>{_a(()=>v.loading=!1)},d=L=>{o.value=L},b=L=>i||(i=xa(L).then(S=>{var R,M;return r.value=(M=(R=S==null?void 0:S.data)==null?void 0:R.data)!=null?M:{},g.value=!0,r.value}).finally(()=>{i=null}),i),_=()=>b(),h=()=>{r.value={},g.value=!1,i=null};ge("LOGOUT_SUCCESS",()=>h());const f=E(()=>{const L=r.value;return{[I.LOGINPASS]:L.loginPass,[I.QUESTION]:L.question,[I.GA]:L.googleAuth,[I.PHONE]:L.phone,[I.EMAIL]:L.email,[I.WITHDRAWPASS]:L.withdrawPass,[I.THIRDPARTY]:L.thirdParty,[I.WEBAUTHN]:L.webAuthn}}),T=L=>{var R;const S=(R=f.value[L])==null?void 0:R.status;return S===Bt.FORBIDDEN||S===Bt.ASSET_PROTECT_FORBIDDEN},p=L=>{var S;return((S=f.value[L])==null?void 0:S.status)===Bt.ASSET_PROTECT_FORBIDDEN},C=L=>{var S;return((S=f.value[L])==null?void 0:S.status)===Bt.FORBIDDEN},w=L=>{var S;return((S=f.value[L])==null?void 0:S.status)===Bt.FORCE_BIND_FORBIDDEN},k=E(()=>{const L=Wo("security").thirdPartyOptions.value;return o.value.map(S=>{const R=L.find(M=>M.thirdType===S.thirdType);return R&&(R.unbindAvailable=S.unbindStatus===ct.OPEN,R.binded=S.bindStatus===ct.OPEN,R.bindTime=S.bindTime,R.thirdAccount=S.thirdAccount),R}).filter(Boolean)}),y=E(()=>v.type===De.Verify);return{state:v,username:c,fields:(L,S)=>{var M;L=L!=null?L:v.form,S=S!=null?S:v.verify;const R={[I.PHONE]:at.PHONE,[I.EMAIL]:at.EMAIL,[I.GA]:at.GA,[I.LOGINPASS]:at.LOGIN_PWD,[I.WITHDRAWPASS]:at.WITHDRAW_PASS,[I.QUESTION]:at.QUESTIONS,[I.WEBAUTHN]:at.WEBAUTHN};return{type:(M=Oe(R,S))!=null?M:at.NONE,phone:t.format(Oe(L,"phone"))||void 0,phoneCode:Oe(L,"phoneCode"),email:Oe(L,"email"),emailCode:Oe(L,"emailCode"),googleCode:Oe(L,"gaCode"),loginPass:Oe(L,"loginPass"),passQuestionId:Oe(L,"questionId"),passQuestionAnswer:Oe(L,"questionAnswer"),withdrawPass:L.withdrawPass?`${Oe(L,"withdrawPass")}`:void 0,...wt.fmtObject(Oe(L,"webauthn"))}},initType:(L,S)=>{const R=Lt().validateConfigStatus();if(v.type=R[L]?De.Edit:De.Bind,v.isHandlingServerVerify=!1,S){v.type=De.Verify;return}if(R[L]){v.type=De.Edit;return}v.type=De.Bind},isVerifyStage:y,setLoading:u,delLoading:l,thirdPartys:o,isClubManager:n,setThirdPartys:d,thirdPartyConfig:k,securityStatus:r,securityStatusLoaded:g,securityStatusMap:f,fetchSecurityStatus:b,ensureSecurityStatus:_,isSecurityModifyForbidden:T,isSecurityAssetProtectForbidden:p,isSecurityForbidden:C,isSecurityForceBindForbidden:w,ignoreSecurityBindkey:s,getIgnoreSecurityBindkey:()=>e.value.username?s[e.value.username]:!1,setIgnoreSecurityBindkey:()=>{e.value.username&&(s[e.value.username]=!0)}}},{persist:{paths:["ignoreSecurityBindkey"]}}),md=Object.freeze(Object.defineProperty({__proto__:null,useSecurityStore:ke},Symbol.toStringTag,{value:"Module"}));function Yi(){const e=Yn(),{t}=X(),n=ke(),o=Tn(),{validateConfigStatus:r}=Lt(),{notTrustedDeviceDisableSecurity:g,showContactServiceDialog:i}=Sa(),{enableModifyPhone:v,enableModifyEmail:c,enableUsingEmail:s}=Kt(),u=E(()=>{const{enableUsingSms:_}=Kt(),h=o.codeIncludes(e.value.mobile_phone);return r()[I.PHONE]?e.value.is_verified?{type:Me.VERIFICATION,text:t("lobby.center.security.bindAndVerified")}:{type:Me.UN_VERIFICATION,text:t("lobby.center.security.addButNotBind"),canVerify:_.value&&h?!0:void 0}:{type:Me.UN_ADD,text:t("lobby.center.security.notAddBind")}}),l=E(()=>r()[I.EMAIL]?e.value.emailVerified?{type:Me.VERIFICATION,text:t("lobby.center.security.bindAndVerified")}:{type:Me.UN_VERIFICATION,text:t("lobby.center.security.addButNotBind"),canVerify:s.value?!0:void 0}:{type:Me.UN_ADD,text:t("lobby.center.security.notAddBind")});return{statusPhone:u,statusEmail:l,canEnterVerifyFlow:_=>Ve(_,I.PHONE)?!!u.value.canVerify:Ve(_,I.EMAIL)?!!l.value.canVerify:!1,statusVerification:_=>{const h=E(()=>
2{if(Ve(_.value,I.PHONE)&&u.value.canVerify&&!n.state.skipPhoneEmialVerify)return I.PHONE;if(Ve(_.value,I.EMAIL)&&l.value.canVerify&&!n.state.skipPhoneEmialVerify)return I.EMAIL}),f=E(()=>Ba(h.value)),T=E(()=>{switch(h.value){case I.PHONE:return!v.value||n.isSecurityForbidden(I.PHONE)?"":t("lobby.formItems.phone.title.editor");case I.EMAIL:return!c.value||n.isSecurityForbidden(I.EMAIL)?"":t("lobby.formItems.email.title.editor");default:return}}),p=E(()=>{switch(h.value){case I.PHONE:case I.EMAIL:return()=>{if(n.isSecurityAssetProtectForbidden(h.value)){i();return}const C={...e.value,is_verified:1,emailVerified:1};g(h.value,C)||(n.state.skipPhoneEmialVerify=!0,n.state.type=De.Edit,n.state.verify=void 0)};default:return}});return{verification:h,isVerification:f,otherLabelHtml:T,onOtherTrigger:p}}}}const qi=[de.EveryPage,de.Withdraw,de.Discount],No=e=>e.hasPop&&(e.popupPageType===de.RechargeSucc||e.popupPageType===de.WithdrawSucc)?de.EveryPage:e.popupPageType,Oo=(e,t)=>e.some(n=>!n.hasPop&&n.popupPageType===t),Qi=(e,t)=>{if(t.isRechargeSucc&&Oo(e,de.RechargeSucc))return de.RechargeSucc;if(t.isWithdrawSucc&&Oo(e,de.WithdrawSucc))return de.WithdrawSucc},Ki={[`${ie.RedPacket}`]:()=>te(()=>import("./RedPacketIndex.DLHiC6NX.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),[`${ie.PacketRain}`]:()=>te(()=>import("./PacketRainIndex.Djj3ntT6.js"),__vite__mapDeps([0,1,2,4,3,5,6,7,8,9,10,13])),[`${ie.Treasure}`]:()=>te(()=>import("./TreasureIndex.BQzmS0A3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,14,10,11,15])),[`${ie.RollDice}`]:()=>te(()=>import("./RollDiceIndex.Dv7X-tFS.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,14,10,11,16])),[`${ie.LuckyDraw}`]:()=>te(()=>import("./LuckyDrawIndex._Aq6cTRz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,17])),[`${ie.MoneyTree}`]:()=>te(()=>import("./MoneyTreeIndex.CD8njNNR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,18])),[`${ie.GoldenEgg}`]:()=>te(()=>import("./GoldenEggIndex.BHLWwA9a.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,14,10,11,19]))},Xi={[`${ie.RedPacket}`]:()=>te(()=>import("./RedPacketIndex.D8dqUhfq.js"),__vite__mapDeps([0,1,2,3,4,5,7,6,8,10,20])),[`${ie.PacketRain}`]:()=>te(()=>import("./PacketRainIndex.WPntWoOG.js"),__vite__mapDeps([0,1,2,3,4,5,7,6,8,10,21])),[`${ie.Treasure}`]:()=>te(()=>import("./TreasureIndex.ZrcC5i8t.js"),__vite__mapDeps([0,1,2,3,4,5,7,6,8,10,22])),[`${ie.RollDice}`]:()=>te(()=>import("./RollDiceIndex.BehFuUYO.js"),__vite__mapDeps([0,1,2,3,4,5,7,6,8,10,23])),[`${ie.LuckyDraw}`]:()=>te(()=>import("./LuckyDrawIndex.DErHhOVz.js"),__vite__mapDeps([0,1,2,3,4,5,7,6,8,10,24])),[`${ie.MoneyTree}`]:()=>te(()=>import("./MoneyTreeIndex.Cyf3ERpr.js"),__vite__mapDeps([0,1,2,3,4,5,7,6,8,10,25])),[`${ie.GoldenEgg}`]:()=>te(()=>import("./GoldenEggIndex.KiEwSL83.js"),__vite__mapDeps([0,1,2,3,4,5,7,6,8,10,26]))},Zi={[`${ie.RedPacket}`]:["/lobby_asset/common/common/event/ywjx/red1/ywjx_hb.png","/lobby_asset/common/common/event/ywjx/red1/pop_top1.png","/lobby_asset/common/common/event/ywjx/red1/pop_top2.png"],[`${ie.PacketRain}`]:["/lobby_asset/common/common/event/ywjx/red2/pop_top1.png","/lobby_asset/common/common/event/ywjx/red2/pop_top2_1.png","/lobby_asset/common/common/event/ywjx/red2/pop_top2.png"],[`${ie.Treasure}`]:["/lobby_asset/common/common/event/ywjx/box/ywjx_box.png","/lobby_asset/common/common/event/ywjx/box/pop_top1.png","/lobby_asset/common/common/event/ywjx/box/pop_top2.png"],[`${ie.RollDice}`]:["/lobby_asset/common/common/event/ywjx/dice/pop_top1.png","/lobby_asset/common/common/event/ywjx/dice/pop_top2.png"],[`${ie.LuckyDraw}`]:["/lobby_asset/common/common/event/ywjx/drawlots/pop_top1_1.png","/lobby_asset/common/common/event/ywjx/drawlots/pop_top2_1.png","/lobby_asset/common/common/event/ywjx/drawlots/pop_top2.png","/lobby_asset/common/common/event/ywjx/drawlots/pop_top1.png"],[`${ie.MoneyTree}`]:["/lobby_asset/common/common/event/ywjx/tree/pop_top1.png","/lobby_asset/common/common/event/ywjx/tree/pop_top2.png"],[`${ie.GoldenEgg}`]:["/lobby_asset/common/common/event/ywjx/egg/ywjx_egg.png","/lobby_asset/common/common/event/ywjx/egg/pop_top1.png","/lobby_asset/common/common/event/ywjx/egg/pop_top2.png","/lobby_asset/common/common/event/ywjx/egg/pop_top2_1.png"]},Ea=An("surprise-reward",()=>{const e=Fa(),t=Ue(),n=q(),o=Ua(),r=F([]),g=F([]),i=F([]),v=F([]),c=F(null),s=F(!0),u=F(!1),l=F(!1),d=F(!1),b=F(!1),_=F(null),h=F(null),f=E(()=>{var P;return(P=n.userInfos)==null?void 0:P.username}),T=vt("surpriseReward"),p=E(()=>{var P,D;return!(Ha().isGamePlaying||!Va()||n.isTemporaryAccountMode||!f.value||ja.isSimpleTheme||(P=n.userInfos)!=null&&P.user_status&&[At.ForbidReceive,At.FreezeManual,At.GuaranteedClaim].includes((D=n.userInfos)==null?void 0:D.user_status))}),C=E(()=>p.value?r.value:[]),w=E(()=>{var D;if(!p.value)return[];if(!((D=C.value)!=null&&D.length)||!g.value.length)return[];const P=new Set(C.value.map(G=>G.logUniqueNo));return g.value.filter(G=>P.has(G))}),k=E(()=>p.value?i.value:[]),y=E(()=>{var P;return!!((P=w.value)!=null&&P.length)});ft(y,P=>{$e().setIsShowSurpriseReward(P)},{immediate:!0});const A=E(()=>{var P,D;return(D=(P=c.value)==null?void 0:P.logBonusBigEnum)!=null?D:Ga.Reward}),U=E(()=>{var P,D;return(D=(P=c.value)==null?void 0:P.logBonusEnum)!=null?D:za.Old}),W=E(()=>{var P,D;return(D=(P=c.value)==null?void 0:P.popupRewardStyleType)!=null?D:ie.RedPacket}),V=P=>{h.value=P},L=P=>{if(!(P!=null&&P.length)||!f.value)return;const D=[...C.value];for(const G of P){const ne=D.findIndex(Te=>(Te==null?void 0:Te.logUniqueNo)===(G==null?void 0:G.logUniqueNo));ne>-1?D[ne]=G:G!=null&&G.logUniqueNo&&!k.value.includes(G.logUniqueNo)&&D.push(G),G.hasPop&&M(G==null?void 0:G.logUniqueNo)}r.value=D},S=P=>{if(!f.value)return;const D=[...g.value];R();const G=[];for(const ne of P)ne.logUniqueNo&&!k.value.includes(ne.logUniqueNo)&&(G.push(ne),(ne.hasPop||D.includes(ne.logUniqueNo))&&M(ne.logUniqueNo));r.value=G},R=()=>{g.value=[],i.value=[]},M=P=>{g.value.includes(P)||(g.value=[P,...g.value])},x=P=>{const D=g.value.filter(G=>G!==P);g.value=[...D,P]},Y=P=>{var G;const D=[...new Set([...k.value,P])];i.value=D,(G=C.value)!=null&&G.length&&(r.value=C.value.filter(ne=>ne.logUniqueNo&&!D.includes(ne.logUniqueNo)))},Q=()=>{var P;
2if(!p.value||!((P=C.value)!=null&&P.length)||T.isAcitve())return null;for(const D of C.value){if(!$(D==null?void 0:D.logUniqueNo))continue;const G=No(D),ne=G===de.EveryPage,Te=G===de.HomeFromEvent&&u.value,ot=G===de.HomeFromGame&&l.value;if(ne||Te||ot)return Te&&(u.value=!1),ot&&(l.value=!1),D}return null},me=async()=>{const P=Q();_.value=P,P&&await ye(P)},Ce=()=>{const P=_.value;return _.value=null,P},$=P=>{if(k.value.includes(P))return!1;const D=C.value.find(G=>G.logUniqueNo===P);return!(D!=null&&D.hasPop&&(D==null?void 0:D.logClientStatus)===se.PendingCheck&&(D==null?void 0:D.logClientCategory)===$o.Max)},N=async P=>{var D;if(P===de.HomeFromGame)return l.value=!0,!1;if(!p.value||(!e.isLoadedCanReceive&&t.route.name!==O.GAME&&await e.getCanReceiveRewardPop(),!((D=C.value)!=null&&D.length)))return!1;for(const G of C.value)if((G==null?void 0:G.popupPageType)===P&&$(G==null?void 0:G.logUniqueNo)){const ne=G.popupPageType===de.Recharge;return _e(G,{openType:ne?"overlay":"push"}),!0}return!1},B=async(P,D)=>{var G;if(P===O.GAME&&D===O.EVENT&&(u.value=!0),!p.value||(!e.isLoadedCanReceive&&t.route.name!==O.GAME&&await e.getCanReceiveRewardPop(),!((G=C.value)!=null&&G.length)))return!1;for(const ne of C.value){if(!$(ne==null?void 0:ne.logUniqueNo))continue;const Te=No(ne),ot=P===O.GAME,xt=Te===de.EveryPage&&!ot,Ln=Te===de.Withdraw&&P===O.WITHDRAW,cn=Te===de.Discount&&o.discountRoutes.value.includes(P);if(xt||Ln||cn)return _e(ne,{openType:"push"}),!0}return!1},ue=(P,D)=>{if(P==="all")S(D);else if(P==="update")L(D);else return;fe(Qi(C.value,{isRechargeSucc:d.value,isWithdrawSucc:b.value}))},fe=async P=>{var D;return!P||qi.includes(P)?B((D=t==null?void 0:t.route)==null?void 0:D.name):N(P)},ye=P=>{const D=`${P.popupRewardStyleType}`;return Promise.all([uo(Ki[D])(),uo(Xi[D])(),ji().preload(Zi[D])]).catch(()=>{})},ee=async(P,{openType:D="overlay"})=>{await ye(P),p.value&&(T.isAcitve()||k.value.includes(P.logUniqueNo)||((P==null?void 0:P.popupPageType)===de.RechargeSucc&&(d.value=!1),(P==null?void 0:P.popupPageType)===de.WithdrawSucc&&(b.value=!1),vt().openDialog("surpriseReward",{openType:D,options:{surpriseRewardItem:P}})))},_e=Si(ee,1e3);return{rewardList:r,currRewardList:C,tobeReopenedRewards:g,currTobeReopenedRewards:w,expiredRewards:i,currExpiredRewards:k,surpriseRewardItem:c,surpriseSetting:h,noCompleteSceneList:v,showCloseButton:s,isBackFromEvent:u,isBackFromGame:l,isRechargeSucc:d,isWithdrawSucc:b,popupBonusBigCateogry:A,popupBonusCateogry:U,popupRewardStyleType:W,isSurpriseSwitchOpen:p,isShowSurpriseReward:y,pendingHomePageReward:_,prepareHomePageReward:me,consumePendingHomePageReward:Ce,preloadRewardAssets:ye,openSurpriseDialog:ee,reopenSurpriseDialog:()=>{const P=Ei(w.value),D=C.value.find(G=>G.logUniqueNo===P);D&&ee(D,{openType:"push"})},closeSurpriseDialog:async()=>{await vt().closeDialog("surpriseReward"),await Wa(400),v.value=[]},addReopenedReward:M,moveReopenedRewardToEnd:x,eliminateReward:Y,updateSetting:V,updateRewards:L,updateAll:S,handleWsRewardPush:ue,findHomePageReward:Q,checkSurprisePageReward:B,checkSurpriseSpecialReward:N,checkSurpriseTargetReward:fe,resetSurpriseRewardCache:()=>{r.value=[],g.value=[],i.value=[],h.value=null,v.value=[],c.value=null,_.value=null,u.value=!1,l.value=!1,d.value=!1,b.value=!1}}},{persist:{paths:["surpriseSetting","rewardList","tobeReopenedRewards","expiredRewards"]}}),_d=Object.freeze(Object.defineProperty({__proto__:null,useSurpriseRewardStore:Ea},Symbol.toStringTag,{value:"Module"}));var oo=(e=>(e[e.Continuous=0]="Continuous",e[e.Grand=1]="Grand",e))(oo||{}),Ji=(e=>(e.Style0="0",e.Style1="1",e.Style2="2",e.Style3="3",e.Style4="4",e.Style5="5",e.Style6="6",e))(Ji||{}),Cn=(e=>(e[e.Fixed=0]="Fixed",e[e.Random=1]="Random",e))(Cn||{}),ao=(e=>(e[e.Cycle=0]="Cycle",e[e.CycleLastDay=1]="CycleLastDay",e[e.Normal=2]="Normal",e))(ao||{}),et=(e=>(e[e.UnSignIn=0]="UnSignIn",e[e.SignIn=1]="SignIn",e[e.Distributed=2]="Distributed",e[e.Expired=3]="Expired",e))(et||{}),Wt=(e=>(e[e.Success=0]="Success",e[e.StatusError=1]="StatusError",e[e.ConditionError=2]="ConditionError",e[e.OtherError=3]="OtherError",e))(Wt||{}),Tt=(e=>(e[e.Award=0]="Award",e[e.AdditionalRewards=1]="AdditionalRewards",e))(Tt||{});const Mt=An("eventSign",()=>{const e=$a(),t=F(0),n=F({}),o=F([]),r=F(go.never),g=F(go.never),i=F(""),v=F(null),c=F(!1),s=F({}),u=E(()=>q().userInfos),l=E(()=>o.value.find(S=>{var R;return S.id===t.value&&S.username===String((R=u.value)==null?void 0:R.username)})||{}),d=E(()=>{var M,x,Y,Q;const S=n.value.activeData,R=(M=S==null?void 0:S.vipRuleList)!=null?M:null;if(R){const me=R.find(Ce=>
2Ya(Ce.vipLevels));if(me)return me.ruleList;if((x=R[0])!=null&&x.ruleList)return(Y=R[0])==null?void 0:Y.ruleList}return(Q=S==null?void 0:S.signList)!=null?Q:[]}),b=E(()=>{const{logStatus:S}=n.value.activeData;return[se.HasReceive,se.Cancel,se.Rejected].includes(S)}),_=E(()=>{var S;return(S=n.value.activeData)==null?void 0:S.displayType}),h=E(()=>{var S;return(S=d.value)==null?void 0:S.filter(R=>R.isRecoup&&R.signStatus===et.UnSignIn).length}),f=S=>{var M,x;if(!S)return!1;const R=S==null?void 0:S.vipRuleList;if(R){const Y=((M=q().userInfos)==null?void 0:M.vip_level)||((x=dt().systemInfos)==null?void 0:x.min_vip_level)||0;return!!R.find(me=>me.vipLevels.split(",").includes(String(Y)))}return!0},T=(S,R)=>{const M=Ze().unix(),x=S==null?void 0:S.operation,Y=qa(x),Q=R!=null?R:Qa(Ka.eventSign,!0,S.activeData);return!((S==null?void 0:S.endShowTime)>0&&M>=(S==null?void 0:S.endShowTime)||(S==null?void 0:S.endTime)>0&&M>=(S==null?void 0:S.endTime)||(S==null?void 0:S.startTime)>0&&M<=(S==null?void 0:S.startTime)||!f(S.activeData))&&Y&&Q},p=async S=>{var B,ue,fe,ye;const{getTemplateList:R,handlePopConfigData:M}=tn(),x=R(qn.DailyBonus);if(!(x!=null&&x.length)){t.value=0;return}const Y=M(x),{userInfos:Q}=q();let me=Q==null?void 0:Q.member_level;me==null&&(me=1);const Ce=Y==null?void 0:Y.filter(ee=>T(ee,S)),$=Ce==null?void 0:Ce.find(ee=>{var he;const _e=(ee==null?void 0:ee.userLevel)&&((he=ee==null?void 0:ee.userLevel)==null?void 0:he.split(","))||[];return _e.length===0||_e.includes("0")?!0:_e.includes(String(me))});if($&&($.username=String(Q==null?void 0:Q.username)),t.value=(B=$==null?void 0:$.id)!=null?B:0,o.value.length>0&&$){const{language:ee}=Re();let _e=null;const he=o.value.findIndex(He=>He.id===$.id&&He.username===String(Q==null?void 0:Q.username)&&He.lang===ee);if(he!==-1&&(A($),_e=o.value[he]),!_e){o.value=[],y($);return}const{preSignTime:nt}=_e;if(nt){const He=_e.activeData,{monthReset:P,signDay:D,signDays:G,signType:ne}=_e.activeData,Te=Bn().getServerTime(),ot=Nn(Te,"ymd"),xt=Nn(nt/1e3,"ymd"),Ln=Ze(xt).isSame(ot,"day");if(ne===oo.Continuous){const gt=Ze(xt).startOf("day").add(2,"d");if(Ze(Te*1e3).isAfter(gt)){o.value=[],y($);return}}if(P){const gt=Ze(xt).date(P).valueOf(),lo=Ze(gt).month(),Da=Ze(gt).month(lo+1).valueOf();if(nt-gt<0&&Te*1e3-gt>0||nt-gt>0&&Te*1e3-Da>0){o.value=[],y($);return}}const cn=_e.isSignTodayAddSignDay!==ot;cn&&(He.haveBet=0,He.havePay=0),!Ln&&cn&&D===G&&(He.signDay=+D+1,_e.isSignTodayAddSignDay=ot,C(_e))}else y($)}else $&&y($);i.value=(ue=$==null?void 0:$.name)!=null?ue:"";const N=$==null?void 0:$.activeData;r.value=(fe=N==null?void 0:N.beforeLoginPopType)!=null?fe:mo.never,g.value=(ye=N==null?void 0:N.afterLoginPopType)!=null?ye:mo.never},C=S=>{var R;if(S.cycleType===ao.CycleLastDay){const M=(R=S.activeData)==null?void 0:R.signList.length;S.activeData.signList[M-1].signStatus=et.UnSignIn}},w=S=>{v.value=S},k=S=>{i.value=S.name,n.value=S},y=S=>{if(S){const{language:x}=Re(),{userInfos:Y}=q();S.username=String(Y==null?void 0:Y.username),S.lang=x}const R=o.value.findIndex(x=>x.id===S.id&&x.username===S.username&&x.lang===S.lang),{preSignTime:M}=o.value[R]||{};M&&(S.preSignTime=M),R!==-1?o.value.splice(R,1,S):o.value.unshift(S)},A=S=>{var Y,Q,me,Ce;const{userInfos:R}=q(),{language:M}=Re(),x=o.value.findIndex($=>$.id===S.id&&$.username===String(R==null?void 0:R.username)&&$.lang===M);if(x!==-1){const $=o.value[x].activeData||{},N=(Q=(Y=S.activeData)==null?void 0:Y.vipRuleList)==null?void 0:Q.map(fe=>{const ye={...fe};return ye.ruleList=fe.ruleList.map((ee,_e)=>{var nt,He;const he={...ee};return he.signStatus=((He=(nt=$.signList)==null?void 0:nt[_e])==null?void 0:He.signStatus)||ee.signStatus,he}),ye}),B=(Ce=(me=S.activeData)==null?void 0:me.signList)==null?void 0:Ce.map((fe,ye)=>({...fe,signStatus:$.signList[ye].signStatus})),ue={...$,...S.activeData,signDay:$.signDay,signDays:$.signDays,receiveReward:$.receiveReward,haveBet:$.haveBet,havePay:$.havePay,vipRuleList:N,signList:B||$.signList};o.value[x]={...o.value[x],...S,activeData:ue}}};return{...e,activeId:t,signData:n,signCacheData:o,signBeforeLoginPopType:r,signAfterLoginPopType:g,signTitle:i,errorInfo:v,isSigning:c,getSignData:l,signList:d,notReceiveStatus:b,signDisplayType:_,hasRecoup:h,signSucessData:s,freshPopData:p,updateErrorInfo:w,updateSignData:k,updateSignCacheData:y,updatePartOfSignCacheData:A,updatePreSignTime:(S,R)=>{const{language:M}=Re(),{userInfos:x}=q(),Y=o.value.find(Q=>Q.id===R);(Y==null?void 0:Y.username)===String(x==null?void 0:x.username)&&(Y==null?void 0:Y.lang)===M&&(Y.preSignTime=S),In.setCacheExpired(Yo)},updateTodayAddSignDay:S=>{if(!S)return;const{userInfos:R}=q(),{language:M}=Re(),{getServerTime:x}=Bn(),Y=o.value.find(Q=>Q.id===S)||{};if((Y==null?void 0:Y.username)===String(R==null?void 0:R.username)&&(Y==null?void 0:Y.lang)===M){const Q=Nn(x(),"ymd");Y.isSignTodayAddSignDay=Q}},changeIsSigning:S=>{c.value=S},setSignSucessData:S=>{s.value={...s,...S}}}},{persist:{paths:["signCacheData"]}}),Rn=An("club-apply",()=>{const{userInfos:e}=q(),{data:t,execute:n}=_o(Ja),o=ze({clubName:"",clubLogoIndex:"0",clubLogo:Za[0],clubNameStyle:{isBold:!1,isItalic:!1,fontSizeType:0,textColor:"#000000",outlineColor:""},logoType:Xa.ImageAndText,pureLogo:"",clubHost:"",clubSelectDomains:[],managerAcc:"",managerPass:"",managerWithdrawPass:"",mobile:"",mobileCode:"",email:"",emailCode:"",isOpenRegister:!0,isManagerBet:!1,applyRemark:"",totalMargin:void 0,gameTypes:[ln.WgDuel]}),r=F(),{data:g,isLoading:i,execute:v}=_o(es,{onSuccess(u){var l;o.totalMargin=u!=null&&u.minMargin?no(u.minMargin,{toFixed:{decimalPlaces:2,tailZero:!0,roundingMode:Hi.ROUND_DOWN}}).toString():"",(l=u==null?void 0:u.gameTypes)!=null&&l.length||(u.gameTypes=[ln.WgDuel,ln.WgSelfProfit,ln.ThirdParty]),r.value||(r.value=u!=null&&u.applyResult?"started":"notStarted")}}),c=async()=>{var u,l;return t.value||await n(),(u=t.value)!=null&&u.isApplyOpen&&qo(),((l=t.value)==null?void 0:l.isApplyOpen)&&!0},s=E(()=>{var u;return!!((u=t.value)!=null&&u.isApplyOpen)&&!0&&(e==null?void 0:e.user_status)!==At.GuaranteedClaim});return{applyInfo:o,canToClubApply:s,progressInfo:g,isProgressInfoLoading:i,getProgressInfo:v,goToApplyClubByConfig:c,clubApplyConfig:t,getClubApplyConfig:n,applyStatus:r}}),bd=Object.freeze(Object.defineProperty({__proto__:null,useClubApplyStore:Rn},Symbol.toStringTag,{value:"Module"})),er=()=>{const{eventIndexStyle:e}=$e();return[bo.Detail,bo.IconMenu].includes(e)?O.EVENT:O.EVENT_DETAIL},pd=[xe.TimePeriodTotalBet,xe.YesterdaySingleBet,xe.SingleCodeOnDay,xe.CodeOnDay];xe.TimePeriodTotalRecharge,xe.TimePeriodTotalRechargeTimes,xe.YesterdaySingleRecharge,xe.SingleRechargeOnDday,xe.RechargeOnDay;const vd=[xe.YesterdayLoss,xe.TimePeriodTotalLoss],fd=[pe.ValidBet,pe.TotalBet,pe.YesterdayMaxDaMa,pe.YesterdaySingleBet],yd=[pe.LossRatio,pe.LossAmount,pe.YesterdayMaxRecharge];pe.TotalRecharge,pe.TodayRecharge,pe.YesterdaySingleRecharge;const tr=[se.CanReceive,se.PendingCheck,se.PendingApply],hd=[se.HasReceive,se.Expired,se.Distributed,se.Cancel,se.Rejected],Sd=[pe.YesterdayRecharge,pe.YesterdayMaxDaMa,pe.YesterdaySingleRecharge,pe.YesterdaySingleBet,pe.YesterdayMaxRecharge,pe.LossAmount,pe.LossRatio,pe.ValidBet],Ed={recharge:"/lobby_asset/common/common/task/img_zcsc.png",bet:"/lobby_asset/common/common/task/img_tz.png",loss:"/lobby_asset/common/common/task/img_ks.png"},Cd=999999999;let gn=null;const nr=()=>({openRedPackDialog:async t=>{if(!t)return!1;const n=Gi(),o=tt(),r=ts();r.setActiveId(t);const g=n.allRedList.find(({item:i})=>i.activeId===t||i.activeid===t);if(g)return n.stopRedPocketQueue(),o.open("redPocket",{openType:"overlay",options:{redType:g.type,inHomeQueue:!1,redItem:g.item}}).finally(()=>n.restartRedPackQueue()),!0;if(gn)return!1;gn=(async()=>{var u,l,d,b;
2const i=await r.getEventItemDetail(t);if(!i)return!1;const v=typeof i.activeData=="string"?(u=fn(i.activeData))!=null?u:{}:{},c=()=>(o.open("redPackDetail",{openType:"insert",options:{eventId:t}}),!0);if(v.red_pack_type!==On.Send&&v.receive_rule===xe.Unconditional)return!1;if([On.Open,On.Send].includes(v.red_pack_type)){const _=(l=v.receiveList)!=null?l:[],h=_.some(T=>T.canReceive&&tr.includes(T.receiveStatus)),f=_.length&&_.every(T=>T.receiveStatus===se.HasReceive);return h||f?!1:c()}return((d=v.receiveRuleNow)!=null?d:0)>=((b=v.receive_limit)!=null?b:0)?!1:c()})();try{return await gn}finally{gn=null}}}),or=(e,t)=>{const n=nn(),o=F("1"),r=F("0"),g=E(()=>!0),{width:i,height:v,stop:c}=g.value?Vi(t):{width:F(0),height:F(0),stop:()=>{}},s=E(()=>typeof e.autoScale=="boolean"?e.autoScale:[oe.HOT_GAMES_ABOVE,oe.HOT_GAMES_BELOW,oe.THIRD_PARTY_GAMES_ABOVE].includes(e.place)&&n.h5HomeLayoutStyle===ns.style0);g.value&&s.value&&ft([v,i],d=>{d&&u()});const u=()=>{if(!s.value||!i.value){!e.watchVisible&&c();return}const d=Ge("7.1rem");if(i.value>d)return;const b=(i.value/d).toFixed(3);o.value=b,r.value=Le(Math.ceil(v.value*-(1-+o.value)))},l=E(()=>!s.value||!i.value?{}:`--scale: ${o.value};--transform-top:${r.value}`);return to(()=>{g.value&&u()}),{needAutoScale:s,marketingBoxStyle:l}},ar="_heartbeat_4hgom_1",sr="_left_4hgom_108",ir="_right_4hgom_113",rr="_max_4hgom_142",st={"marketing-red-dot":"_marketing-red-dot_4hgom_91",heartbeat:ar,"no-anim":"_no-anim_4hgom_104",left:sr,"red-dot":"_red-dot_4hgom_108",right:ir,max:rr},so=Z({props:{info:{type:Object},badgePosition:{type:String,default:""}},setup(e){return()=>{var n,o,r,g;const t=(o=(n=e.info)==null?void 0:n.badge)!=null?o:!1;return((g=(r=e.info)==null?void 0:r.extConfig)==null?void 0:g.openRedBadge)===ct.CLOSE||!t?null:typeof t=="number"&&t>1?a(We,null,[a("span",{class:[st["marketing-red-dot"],st[e.badgePosition],{[st["no-anim"]]:po.disableMarketingAnimation()}]},null),a("span",{class:[st["red-dot"],{[st.max]:t>99}]},[t>99?"99+":t])]):a("span",{class:[st["marketing-red-dot"],st[e.badgePosition],{[st["no-anim"]]:po.disableMarketingAnimation()}]},null)}}}),Do=[{textColor:"#ff0",strokeColor:" #006ffc",activeTextColor:" #0084FF",activeStrokeColor:"#fff"},{textColor:"#f93f49",strokeColor:" #F6FF00",activeTextColor:" #F6FF00",activeStrokeColor:"#008846"},{textColor:"#0084ff",strokeColor:" #fff",activeTextColor:" #f93f49",activeStrokeColor:"#f6ff00"},{textColor:"#fff",strokeColor:" #1461C3",activeTextColor:" #F6FF00",activeStrokeColor:"#008846"},{textColor:"#F6FF00",strokeColor:" #008846",activeTextColor:" #F93F49",activeStrokeColor:"#F6FF00"},{textColor:"#F93F49",strokeColor:" #FFF",activeTextColor:" #FF0",activeStrokeColor:"#006FFC"},{textColor:"#FFF",strokeColor:" #1461C3",activeTextColor:" #F6FF00",activeStrokeColor:"#008846"},{textColor:"#F6FF00",strokeColor:" #008846",activeTextColor:" #F93F49",activeStrokeColor:"#F6FF00"},{textColor:"#FFF",strokeColor:" #CB0FFF",activeTextColor:" #BF0059",activeStrokeColor:"#fff"},{textColor:"#fff",strokeColor:" #F77300",activeTextColor:" #0084FF",activeStrokeColor:"#FFF"},{textColor:"#FF0",strokeColor:" #F93F49",activeTextColor:" #FFF",activeStrokeColor:"#1461C3"},{textColor:"#0178FF",strokeColor:" #FFF",activeTextColor:" #F6FF00",activeStrokeColor:"#008846"},{textColor:"#FFF",strokeColor:" #0084FF",activeTextColor:" #F6FF00",activeStrokeColor:"#008846"},{textColor:"#FF6B09",strokeColor:" #FFF",activeTextColor:" #FFF",activeStrokeColor:"#16906B"},{textColor:"#F6FF00",strokeColor:" #008846",activeTextColor:" #0178FF",activeStrokeColor:"#FFF"},{textColor:"#FFF",strokeColor:" #F93F49",activeTextColor:" #0084FF",activeStrokeColor:"#FFF"},{textColor:"#1BCD9D",strokeColor:" #fff",activeTextColor:" #FF6B09",activeStrokeColor:"#FFF"},{textColor:"#04A86D",strokeColor:" #FFF",activeTextColor:" #f6ff00",activeStrokeColor:"#F93F49"},{textColor:"#F80",strokeColor:" #fff",activeTextColor:" #F6FF00",activeStrokeColor:"#008846"},{textColor:"#FFF",strokeColor:" #FF2F82",activeTextColor:" #0084FF",activeStrokeColor:"#fff"},{textColor:"#FF3CEC",strokeColor:" #FFF",activeTextColor:" #FF0",activeStrokeColor:"#F93F49"}],io={[ce.SMALL]:{className:"marketing-box-sm",defaultAutoplayDelay:2,scrollMinLength:6},[ce.MIDDLE]:{className:"marketing-box-md",defaultAutoplayDelay:2,scrollMinLength:3},[ce.BIG]:{className:"marketing-box-lg",defaultAutoplayDelay:2,scrollMinLength:1}},cr="_scroll_4tldc_91",Mo={"marketing-scroll-box":"_marketing-scroll-box_4tldc_91",scroll:cr};function lr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Dt(e)}const Ca=Z({props:{dataList:{type:Array,default:()=>[]},mode:{type:Number,required:!0}},setup(e,{slots:t,attrs:n}){const o=io[e.mode],r=E(()=>e.dataList.length>
2o.scrollMinLength),g=F(null),i=E(()=>{var v;return(v=g.value)==null?void 0:v.$el});return()=>a(Qn,{domRef:i},{default:({controller:v})=>{var s;let c;return a(os,ve(n,{forceSystemScrollbar:!0,"data-length":e.dataList.length||0,scrollbarTrigger:"none",direction:"x",draggable:!0,class:[Mo["marketing-scroll-box"],{"stop-animate":!((s=v==null?void 0:v.isActive)!=null&&s.value)},{[Mo.scroll]:r.value}],ref:g}),lr(c=e.dataList.map((u,l)=>{var d;return(d=t.item)==null?void 0:d.call(t,u,l)}))?c:{default:()=>[c]})}})}}),Ut={"marketing-item":"_marketing-item_8pjch_91","swiper-box":"_swiper-box_8pjch_98","single-box":"_single-box_8pjch_151"};function ur(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Dt(e)}const Ta=Z({props:{dataList:{type:Array,default:()=>[]},moduleConfig:{type:Object,defaulat:()=>({})},mode:{type:Number,required:!0},swiperOptions:{type:Object,default:()=>({})},showArrow:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=io[e.mode],o=E(()=>{var f,T;let h={slidesPerView:"auto",autoplay:!1,speed:500,observer:!0,loop:!1,allowTouchMove:!0,autoHeight:!1,touchMoveStopPropagation:!0,modules:[zi,Wi],spaceBetween:Ge("0.2rem"),slidesPerGroup:void 0,...e.swiperOptions};return((f=e.moduleConfig)==null?void 0:f.carouselStyle)===Pt.GROUP&&e.dataList.length>n.scrollMinLength&&(h={...h,loop:!0,autoplay:{delay:(((T=e.moduleConfig)==null?void 0:T.staySeconds)||n.defaultAutoplayDelay)*1e3},slidesPerGroup:n.scrollMinLength}),h}),r=E(()=>e.mode===ce.BIG&&e.dataList.length>1?!0:e.dataList.length>n.scrollMinLength),g=E(()=>e.showArrow===!1?e.showArrow:r.value),i=E(()=>n.scrollMinLength),v=()=>{var h;(h=s.value)==null||h.slidePrev()},c=()=>{var h;(h=s.value)==null||h.slideNext()},s=F(null),u=E(()=>o.value.loop&&r.value&&e.dataList.length/n.scrollMinLength<2?[...e.dataList,...e.dataList]:e.dataList||[]),l=F(null),d=E(()=>{var h;return r.value?(h=s.value)==null?void 0:h.el:l.value}),b=({controller:h})=>{var f;return a("div",{class:[Ut["single-box"],"single-box",{"stop-animate":!((f=h==null?void 0:h.isActive)!=null&&f.value)}],style:{"--column-gap":`${o.value.spaceBetween}px`},"data-length":e.dataList.length||0,ref:l},[u.value.map((T,p)=>{var C;return a("div",{class:[Ut["marketing-item"],"marketing-item"]},[(C=t.item)==null?void 0:C.call(t,T,p)])})])},_=({controller:h})=>{var T;let f;return a("div",{class:[Ut["swiper-box"],"swiper-box"]},[a(as,ve(o.value,{slidesPerGroup:i.value,class:[Ut.carousel,{"stop-animate":!((T=h==null?void 0:h.isActive)!=null&&T.value)}],onSwiper:p=>s.value=p}),ur(f=u.value.map((p,C)=>a($i,{class:[Ut["marketing-item"],"marketing-item"]},{default:()=>{var w;return[(w=t.item)==null?void 0:w.call(t,p,C)]}})))?f:{default:()=>[f]}),g.value&&a("div",{class:"swiper-arrow"},[a("div",{class:"arrow-item arrow-left",onClick:v},[a(z,{useSkeleton:!0,src:"/lobby_asset/common/web/common/comm_icon_fh.svg",class:"arrow-img"},null)]),a("div",{class:"arrow-item arrow-right",onClick:c},[a(z,{useSkeleton:!0,src:"/lobby_asset/common/web/common/comm_icon_fh.svg",class:"arrow-img"},null)])])])};return()=>a(Qn,{domRef:d},{default:h=>r.value?_(h):b(h)})}}),_t={"marketing-box-sm":"_marketing-box-sm_bo7zx_91","marketing-box-item":"_marketing-box-item_bo7zx_99","is-swiper":"_is-swiper_bo7zx_122","marketing-bg":"_marketing-bg_bo7zx_131","marketing-title":"_marketing-title_bo7zx_152","marketing-item-wrap":"_marketing-item-wrap_bo7zx_190"},Pn=e=>{const{t}=ba(),n=nn(),o=Ue(),{openFeedback:r}=Qo(),g=Ko(),i=on(),v=$e(),c=Re(),s=ss(),u=Rn(),l=tn(),d=Ea(),b=E(()=>{var W,V,L;const y=v.discountRedDot||{},A=(V=(W=y.taskRedDot)==null?void 0:W.find(S=>S.template===is.newBenefits))==null?void 0:V.unReceiveCount,U=v.getRedDotStatus($t.SURPRISE)?d.currTobeReopenedRewards.length:0;return{[j.VIP]:{title:()=>t("lobby.plan.tabbar.vip"),badge:y==null?void 0:y.vipCount,textBgColor:"#368DEC"},[j.DISCOUNT_CODE]:{title:()=>t("lobby.event.marketing.newbieBenefit"),badge:A,textBgColor:"#D64DED"},[j.TASK]:{title:()=>c.language==="vi"?k(t("lobby.event.marketing.task")):t("lobby.event.marketing.task"),badge:y==null?void 0:y.taskCount,textBgColor:"#368DEC"},[j.CASHBACK]:{title:()=>t("lobby.event.marketing.cashback"),badge:y==null?void 0:y.returnGoldCount,textBgColor:"#D64DED"},[j.RECHARGE_FUND]:{title:()=>t("lobby.event.marketing.rechargeFund"),badge:!!y.rechargeFundCount,textBgColor:"#FFAA09"},[j.YUEBAO]:{title:()=>t("lobby.event.marketing.yuebao"),badge:!!y.yueBaoCount,textBgColor:"#EB4545"},[j.CANRECEIVE]:{title:()=>t("lobby.event.marketing.canReceive"),badge:y==null?void 0:y.receiveLogC
2ount,textBgColor:"#FFAA09"},[j.BLINDBOX]:{title:()=>t("lobby.event.marketing.blindBox"),badge:!1,textBgColor:"#FFAA09"},[j.PROMOTE]:{title:()=>t("lobby.event.marketing.promoteAgent"),badge:!!(y!=null&&y.agentPromoteReward),textBgColor:"#D64DED"},[j.RECHARGE]:{title:()=>c.language==="vi"?k(t("lobby.tabbar.recharge")):t("lobby.tabbar.recharge"),badge:!!n.payMaxCharge||!!n.payGiftScore,textBgColor:"#1FAE68"},[j.ACTIVITY]:{title:()=>t("lobby.game.nav.active"),badge:y==null?void 0:y.activeCount,textBgColor:"#1FAE68"},[j.LUCKY_SPIN]:{title:()=>t("lobby.event.marketing.luckyWheel"),textBgColor:"#368DEC",badge:y==null?void 0:y.turntableRedDot},[j.LOAN]:{title:()=>t("lobby.event.marketing.creditLoan"),textBgColor:"#EB4545"},[j.SURPRISE]:{title:()=>t("lobby.event.marketing.surprise"),badge:U,textBgColor:"#1FAE68"},[j.COUPONS]:{title:()=>t("lobby.event.marketing.coupon"),badge:v.getRedDotStatus($t.COUPON)?g==null?void 0:g.couponListDataLength:0,textBgColor:"#EB4545"},[j.SVIP]:{title:()=>t("lobby.event.marketing.svip"),badge:(L=v.discountRedDot)==null?void 0:L.svipCount,textBgColor:"#1FAE68"},[j.FEEDBACK]:{title:()=>t("lobby.event.marketing.feedback"),textBgColor:"#FFAA09"},[j.MALL]:{title:()=>t("lobby.event.marketing.mall"),textBgColor:"#D64DED",badge:!1},[j.MOMENTS]:{title:()=>t("lobby.event.marketing.moments"),textBgColor:"#D64DED"},[j.COOPERATIVE]:{title:()=>t("lobby.event.marketing.cooperative"),textBgColor:"#FFAA09"},[j.CLAIM]:{title:()=>t("lobby.event.marketing.claim"),textBgColor:"#EB4545"},[j.PROMOTE_REMARD]:{title:()=>t("lobby.event.marketing.promoteReward"),textBgColor:"#EB4545"}}}),_=y=>{var R,M;let A={};const{openCountdown:U,countdownTimer:W,openRedBadge:V}=(y==null?void 0:y.extConfig)||{},L=s.getActiveId(y);y.jumpType===Ft.SYSTEM&&!fo.includes((R=y.jumpInfo)==null?void 0:R.insideModuleId)&&(A=((M=b.value)==null?void 0:M[L])||{}),v.getRedDotStatus($t.MARKETING)?V===ct.OPEN?Reflect.set(A,"badge",(A==null?void 0:A.badge)||!0):V===ct.CLOSE?Reflect.set(A,"badge",!1):A!=null&&A.badge&&Reflect.set(A,"badge",A==null?void 0:A.badge):Reflect.set(A,"badge",!1);const S=fn(y.actConfig)||{};return U===ct.OPEN&&W&&(S!=null&&S.startTime)&&Reflect.set(A,"activeStartTime",S==null?void 0:S.startTime),A},h=y=>E(()=>{var W;const U=((W=s.formatHomeList)==null?void 0:W[y.showPosition])||[];return U==null?void 0:U.reduce((V,L)=>{if(y.imgSize&&L.imgSize!==y.imgSize)return V;const S=L.infos.map(R=>({...R,..._(R)}));return[...V,{...L,infos:S}]},[])}),f=async y=>{var L,S;console.log("ð ~ marketingItemClick ~ item:",y);const{route:A}=o;if(y.jumpType===Ft.EXTER){const{jumpAction:R=1,jumpUrl:M=""}=y.jumpInfo;if(!M)return;if(R===1)rs(M,x=>{navigator.standalone?location.href=x:cs(x)});else{const x=A.name===O.EXTERNAL_EMBEDDED?"replace":"push";ls({url:M,type:x})}return}const U={[j.VIP]:{name:O.VIP},[j.CASHBACK]:{name:O.CASHBACK},[j.RECHARGE_FUND]:{name:O.RECHARGE_FUND},[j.YUEBAO]:{name:O.INTEREST},[j.CANRECEIVE]:{name:O.CANRECEIVE},[j.PROMOTE]:{name:i.isShowAgentShareEarn?O.GENERALPROMOTINDEX:O.PROMOTE},[j.ACTIVITY]:{name:O.EVENT},[j.LOAN]:{name:O.CREDITLOAN},[j.LUCKY_SPIN]:{name:O.LUCKY_WHELL},[j.COUPONS]:{name:O.COUPON},[j.SVIP]:{name:O.SVIP},[j.FEEDBACK]:{name:O.NOTICE,query:{noticeType:Fn.FEEDBACK}},[j.MOMENTS]:{name:O.PLAZZA},[j.CLAIM]:{name:O.CLAIM},[j.WITHDRAW]:{name:O.WITHDRAW}};if(y.jumpType===Ft.SYSTEMACTIVE||y.jumpType===Ft.SYSTEM&&fo.includes(y.jumpInfo.insideModuleId)){if(!y.activeId)return;const R=(L=l.eventsList)==null?void 0:L.find(x=>x.activeId===y.activeId),M=er();if(!R)return;if(R.template===qn.RedPocket){const x=fn(R.remark);if((x==null?void 0:x.tGReceiveType)!==ct.OPEN&&await nr().openRedPackDialog(y.activeId))return}Xo({jumpMethod:o.route.name===M?"replace":"push",activeId:y.activeId.toString(),template:R.template.toString(),payEntryId:e,query:{...A.query,current:v.eventIndexStyle?String(l.curTab):A.query.eventCurrent||A.query.current}});return}const W=(S=y.jumpInfo)==null?void 0:S.insideModuleId;if(!W)return;const V=R=>{o.push(U[R])};switch(W){case j.TASK:yo();break;case j.DISCOUNT_CODE:v.isShowTask?yo(gs.newBenefits):V(j.ACTIVITY);break;case j.BLINDBOX:ds();break;
2case j.RECHARGE:Xt({openType:"overlay",options:{payEntryId:e!=null?e:an.MARKETING_AD}});break;case j.SURPRISE:d.reopenSurpriseDialog();break;case j.WITHDRAW:yn();break;case j.COOPERATIVE:u.goToApplyClubByConfig();break;case j.MALL:Zo();break;case j.PROMOTE_REMARD:us();break;case j.FEEDBACK:r();break;default:V(W);break}},T=(y,A,U,W=0,V={})=>{const L=V||{},S=![oe.HOME_TOP_BELOW,oe.BANNER_BELOW,oe.ANNOUNCEMENT_BELOW,oe.MINE_TOP].includes(y),R=new Map([[ce.BIG,0],[ce.MIDDLE,2],[ce.SMALL,5]]).get(A)||0,M=p(y,W);return!S&&R>=U&&M?(Reflect.set(L,"lazy",!1),Reflect.set(L,"fetchpriority","high")):Reflect.set(L,"lazy",!0),L},p=(y,A)=>{var L,S,R,M,x;const U=s.formatHomeList||{};if(s.routeNameMap[vo.HOME].has(y)){const Q=((L=U[oe.HOME_TOP_BELOW])==null?void 0:L.length)||0,me=((S=U[oe.BANNER_BELOW])==null?void 0:S.length)||0,Ce=((R=U[oe.ANNOUNCEMENT_BELOW])==null?void 0:R.length)||0;switch(y){case oe.HOME_TOP_BELOW:return A<8;case oe.BANNER_BELOW:return Q+A<8;case oe.ANNOUNCEMENT_BELOW:return Q+me+A<8;case oe.HOT_GAMES_ABOVE:return Q+me+Ce+A<8;default:return!1}}const W=((M=U[oe.MINE_TOP])==null?void 0:M.length)||0,V=((x=U[oe.MINE_PROFILE_BELOW])==null?void 0:x.length)||0;if(s.routeNameMap[vo.MINE].has(y))switch(y){case oe.MINE_TOP:return A<6;case oe.MINE_PROFILE_BELOW:return W+A<6;case oe.MINE_MIDDLE:return W+V+A<6;default:return!1}return!1},C=(y,A)=>{var L,S;if(!((L=A.extConfig)!=null&&L.showName))return{};const W=((A.jumpType===Ft.SYSTEMACTIVE?A.activeId:(S=A.jumpInfo)==null?void 0:S.insideModuleId)||0)%Do.length,V=Do.at(W);return{"--default-text-color":(y==null?void 0:y.fontColor)||(V==null?void 0:V.textColor),"--default-text-stroke-color":(y==null?void 0:y.borderColor)||(V==null?void 0:V.strokeColor),"--active-text-color":(y==null?void 0:y.fontColor1)||(V==null?void 0:V.activeTextColor),"--active-text-stroke-color":(y==null?void 0:y.borderColor1)||(V==null?void 0:V.activeStrokeColor),"--font-size":y!=null&&y.fontSize?Le(y==null?void 0:y.fontSize):""}},w=y=>y.map(A=>{const U=A.infos.map(W=>({...W,..._(W)}));return{...A,infos:U}});function k(y){return y?y.toLowerCase().split(" ").map(U=>U.charAt(0).toUpperCase()+U.slice(1)).join(" "):""}return{getMarketingList:h,marketingItemClick:f,getMarketingThemeStyle:C,extendFastEntryModule:w,getformatImageProps:T,getMarketingModuleNeedLazy:p}},[dr]=le("marketing-item-sm"),gr=Z({name:dr,props:{dataList:{type:Array,default:()=>[]},moduleConfig:{type:Object,defaulat:()=>({})},imageProps:{type:Object,defaulat:()=>({})},place:{type:Number},moduleIndex:{type:Number}},emits:["item-click"],setup(e,{emit:t}){const{getformatImageProps:n}=Pn(),o=E(()=>{var c;return[Pt.SINGLE,Pt.GROUP].includes(((c=e.moduleConfig)==null?void 0:c.carouselStyle)||1)}),{isCN:r}=Re(),g=c=>{var d,b,_,h,f,T;if(((d=c==null?void 0:c.extConfig)==null?void 0:d.showName)===0)return null;const s=(_=(b=c==null?void 0:c.extConfig)==null?void 0:b.imgDesc)==null?void 0:_.at(0),u=(s==null?void 0:s.text)||((h=c==null?void 0:c.title)==null?void 0:h.call(c))||"",l={"--color":(s==null?void 0:s.fontColor)||((f=c.extConfig)==null?void 0:f.fontColor),"--bg":(s==null?void 0:s.backColor)||((T=c.extConfig)==null?void 0:T.backColor)||(c==null?void 0:c.textBgColor)};return a("h5",{class:_t["marketing-title"],style:l},[u&&a("p",{class:{[_t.zh]:r}},[u])])},i=(c,s)=>{const u=n(e.place,ce.SMALL,s,e.moduleIndex,e.imageProps);return a("div",{class:_t["marketing-item-wrap"],onClick:()=>t("item-click",c)},[a(z,ve({useSkeleton:!0,src:c.img},u,{class:["marketing-bg",_t["marketing-bg"]]}),null),a(so,{info:c},null),g(c)])},v=E(()=>["marketing-box-item",_t["marketing-box-item"],_t["marketing-box-sm"],{[_t["is-swiper"]]:o.value}]);return()=>o.value?a("div",{class:v.value},[a(Ta,{dataList:e.dataList,mode:ce.SMALL,swiperOptions:{slidesPerView:6.2,spaceBetween:Ge("0.19rem")},moduleConfig:e.moduleConfig,"data-length":e.dataList.length},{item:i})]):a(Ca,{dataList:e.dataList,mode:ce.SMALL,class:v.value},{item:i})}}),Dn={"countdown-box":"_countdown-box_wb3g2_91","lightning-icon":"_lightning-icon_wb3g2_107","marketing-countdown":"_marketing-countdown_wb3g2_111"},Ia=Z({props:{info:{type:Object}},setup(e){const t=Ci(Ze().unix());Kn(()=>{t.value=Ze().unix()});const n=F(!1),o=E(()=>{const{activeStartTime:g,extConfig:i}=e.info||{};if(!g)return!1;const{openCountdown:v,countdownTimer:c}=i||{};return v!==ct.OPEN||!c?!1:g>t.value&&t.value>c}),r=E(()=>{var g;return o.value?((g=e.info)==null?void 0:g.activeStartTime)-t.value:0});return()=>!o.value||n.value?!1:a("div",{class:Dn["countdown-box"]},[a(z,{class:Dn["lightning-icon"],src:"/lobby_asset/common/common/event/fast-time.svg"},null),a(Li,{textFormatType:ms.SimpleStart,duration:r.value,class:Dn["marketing-countdown"],durationFormat:(g,i)=>(_s(g,i)||"").replace(/\s*(\p{L}+)/gu,(c,s)=>`<i>${/[\u4e00-\u9fa5]/.test(s)?s:"d"}</i>`),onComplete:()=>n.value=!0},null)])}}),bt={"marketing-box-md":"_marketing-box-md_57nbn_91","marketing-item-wrap":"_marketing-item-wrap_57nbn_101","marketing-bg":"_marketing-bg_57nbn_107","active-img":"_active-img_57nbn_128","marketing-title":"_marketing-title_57nbn_133","marketing-wrap":"_marketing-wrap_57nbn_177"},[mr]=le("marketing-item-md"),_r=Z({name:mr,props:{dataList:{type:Array,default:()=>[]}
2,moduleConfig:{type:Object,defaulat:()=>({})},imageProps:{type:Object,defaulat:()=>({})},place:{type:Number},moduleIndex:{type:Number}},emits:["item-click"],setup(e,{emit:t}){const{getMarketingThemeStyle:n,getformatImageProps:o}=Pn(),r=E(()=>{var c;return[Pt.SINGLE,Pt.GROUP].includes(((c=e.moduleConfig)==null?void 0:c.carouselStyle)||1)}),g=c=>{var d,b,_;if(!((d=c.extConfig)!=null&&d.showName))return null;const s=(_=(b=c.extConfig)==null?void 0:b.imgDesc)==null?void 0:_.at(0),u=(s==null?void 0:s.text)||"",l=n(s,c);return a("h5",{class:[bt["marketing-title"]]},[a("p",{class:"shine","data-play":(s==null?void 0:s.changeColor)||0,style:l},[u||""])])},i=(c,s)=>{var b,_,h;const u=o(e.place,ce.MIDDLE,s,e.moduleIndex,e.imageProps),l=((b=c.extConfig)==null?void 0:b.backGroundType)===pn.CUSTOM&&c.img,d=l?c.img:(_=c.extConfig)==null?void 0:_.backGroundImage;return a("div",{class:bt["marketing-item-wrap"],onClick:()=>t("item-click",c)},[a(z,ve({useSkeleton:!0,src:d},u,{class:["marketing-bg",bt["marketing-bg"]]}),null),a("div",{class:bt["marketing-wrap"],"show-type":~~((h=c.extConfig)==null?void 0:h.imgPosition)},[l?null:a(z,ve({isApng:!0,useSkeleton:!0,src:c.img},u,{class:bt["active-img"]}),null),a(so,{info:c},null),g(c),a(Ia,{info:c},null)])])},v=E(()=>["marketing-box-item",bt["marketing-box-item"],bt["marketing-box-md"]]);return()=>r.value?a("div",{class:v.value},[a(Ta,{dataList:e.dataList,mode:ce.MIDDLE,swiperOptions:{slidesPerView:3},moduleConfig:e.moduleConfig},{item:i})]):a(Ca,{dataList:e.dataList,mode:ce.MIDDLE,class:v.value},{item:i})}}),br="_multiple_1sl8j_213",pr="_single_1sl8j_149",ae={"marketing-box-lg":"_marketing-box-lg_1sl8j_91","box-wrap":"_box-wrap_1sl8j_94","marketing-item":"_marketing-item_1sl8j_98","image-wrapper":"_image-wrapper_1sl8j_105","marketing-bg":"_marketing-bg_1sl8j_113","marketing-wrap":"_marketing-wrap_1sl8j_132","active-img":"_active-img_1sl8j_137","no-bg":"_no-bg_1sl8j_146","single-bg":"_single-bg_1sl8j_149","marketing-title":"_marketing-title_1sl8j_171",multiple:br,single:pr,"shine-first":"_shine-first_1sl8j_262","swiper-arrow":"_swiper-arrow_1sl8j_290","arrow-item":"_arrow-item_1sl8j_290","arrow-left":"_arrow-left_1sl8j_308","arrow-right":"_arrow-right_1sl8j_312"};function xo(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Dt(e)}const[vr]=le("marketing-item-lg"),fr=Z({name:vr,props:{dataList:{type:Array,default:()=>[]},moduleConfig:{type:Object,defaulat:()=>({})},imageProps:{type:Object,defaulat:()=>({})},showArrow:{type:Boolean,default:!1},place:{type:Number},moduleIndex:{type:Number}},emits:["item-click"],setup(e,{emit:t}){const n=io[ce.BIG],o=F(),r=Re(),{getformatImageProps:g}=Pn(),i=p=>{var w,k;if(!Array.isArray(p)||!p.length)return null;const C=y=>({"--default-text-color":y.fontColor||"var(--skin__text_primary)","--default-text-stroke-color":y.borderColor||"transparent","--active-text-color":y.fontColor1||y.fontColor||"var(--skin__text_primary)","--active-text-stroke-color":y.borderColor1||y.borderColor||"transparent","--font-size":y!=null&&y.fontSize?Le(y==null?void 0:y.fontSize):"0.3rem"});if(p.length===1){const y=C(p[0]);return a("p",{class:["share",ae.single],style:y},[((w=p[0])==null?void 0:w.text)||""])}return a("p",{class:["share",ae.multiple],style:C(p==null?void 0:p.at(-1)),"shine-theme":(k=p==null?void 0:p.at(-1))==null?void 0:k.changeColor},[p.map(y=>{var A,U;return a(We,null,[(U=(A=y.text)==null?void 0:A.split(""))==null?void 0:U.map((W,V)=>a("b",{class:["shine",{[ae["shine-first"]]:!V}],style:C(y)},[W]))])})])},v=(p,C)=>{var A,U,W,V,L,S,R,M,x;const w=g(e.place,ce.BIG,C,e.moduleIndex,e.imageProps),k=((A=p.extConfig)==null?void 0:A.backGroundType)===pn.CUSTOM&&p.img,y=k?p.img:(U=p.extConfig)==null?void 0:U.backGroundImage;return a("div",{class:ae["marketing-item"],onClick:()=>t("item-click",p),"data-lazy":w==null?void 0:w.lazy},[a("div",{class:ae["image-wrapper"]},[a(z,ve({useSkeleton:!0,src:y},w,{class:["marketing-bg",ae["marketing-bg"],{[ae["no-bg"]]:!k&&!((W=p.extConfig)!=null&&W.backGroundImage)},{[ae["single-bg"]]:!!k}]}),null),a("div",{class:ae["marketing-wrap"],"show-type":~~((V=p.extConfig)==null?void 0:V.imgPosition)},[k?null:a(z,ve({isApng:!0,useSkeleton:!0,src:p.img},w,{class:ae["active-img"]}),null),(L=p.extConfig)!=null&&L.showName?a("div",{class:ae["marketing-title"]},[i(r.isRtlLanguage?(M=(R=(S=p.extConfig)==null?void 0:S.imgDesc)==null?void 0:R.slice())==null?void 0:M.reverse():(x=p.extConfig)==null?void 0:x.imgDesc)]):null]),a(so,{info:p},null),a(Ia,{info:p},null)])])},c=E(()=>{var p,C;return((p=e.moduleConfig)==null?void 0:p.carouselStyle)===Pt.GROUP&&e.dataList.length>n.scrollMinLength?(((C=e.moduleConfig)==null?void 0:C.staySeconds)||n.defaultAutoplayDelay)*1e3:0}),s=ze({slidesPerView:1,duration:500,loop:!0,spaceBetween:Ge("0.2rem"),touchable:!0,autoHeight:!1,autoplay:c.value,height:0,lazyRender:!0}),u=E(()=>e.dataList.length>10?e.dataList.slice(0,10):e.dataList),l=F({width:0,height:0});ft(u,p=>{var U,W,V,L;if(p.length<=1)return;
2const C=p.at(0),k=((U=C.extConfig)==null?void 0:U.backGroundType)===pn.CUSTOM&&C.img?C.img:(W=C.extConfig)==null?void 0:W.backGroundImage;if(!((V=C.extConfig)!=null&&V.backGroundImage)&&C.img&&((L=C.extConfig)==null?void 0:L.backGroundType)===pn.SYSTEM){l.value={width:Ge("7.1rem"),height:Ge("1rem")},d();return}if(!k)return;const A=new window.Image;A.src=k,A.onload=()=>{l.value={width:A.naturalWidth,height:A.naturalHeight},d()}},{immediate:!0});const d=()=>{if(!l.value.width)return;const p=Ge("7.1rem");s.height=Math.floor(p*l.value.height/l.value.width)};window.addEventListener("resize",d),Ti(()=>{window.removeEventListener("resize",d)});const b=()=>{var p;(p=o.value)==null||p.prev()},_=()=>{var p;(p=o.value)==null||p.next()},h=F(null),f=E(()=>{var p;return u.value.length>1?(p=o.value)==null?void 0:p.$el:h.value}),T=()=>{let p;return a(We,null,[a(bs,ve(s,{class:[ae.carousel],ref:o}),xo(p=u.value.map((C,w)=>{let k;return a(ps,{class:"marketing-swiper-item"},xo(k=v(C,w))?k:{default:()=>[k]})}))?p:{default:()=>[p]}),e.showArrow&&a("div",{class:ae["swiper-arrow"]},[a("div",{class:[ae["arrow-item"],ae["arrow-left"]],onClick:b},[a(z,{useSkeleton:!0,src:"/lobby_asset/common/web/common/comm_icon_fh.svg",class:ae["arrow-img"]},null)]),a("div",{class:[ae["arrow-item"],ae["arrow-right"]],onClick:_},[a(z,{useSkeleton:!0,src:"/lobby_asset/common/web/common/comm_icon_fh.svg",class:ae["arrow-img"]},null)])])])};return()=>a("div",{"data-length":e.dataList.length||0,class:["marketing-box-item",ae["marketing-box-item"],ae["marketing-box-lg"]]},[a(Qn,{domRef:f},{default:({controller:p})=>{var C;return a("div",{class:[ae["box-wrap"],{"stop-animate":!((C=p==null?void 0:p.isActive)!=null&&C.value)}],ref:h},[u.value.length>1?T():v(u.value[0],0)])}})])}}),yr="_scale_1tcbp_104",Bo={"marketing-box":"_marketing-box_1tcbp_91",scale:yr},[hr]=le("game-marking-component"),Sr={[ce.SMALL]:gr,[ce.MIDDLE]:_r,[ce.BIG]:fr},Qt=Z({name:hr,props:{place:{type:Number,default:oe.HOME_TOP_BELOW},mode:{type:Number},imageProps:{type:Object,defaulat:()=>({})},autoScale:{type:Boolean,default:void 0},watchVisible:{type:Boolean,default:!1}},emits:["item-click"],setup(e,{emit:t}){const n=Ye(),{getMarketingList:o,marketingItemClick:r}=Pn(),g=o({showPosition:e.place,imgSize:e.mode}),i=E(()=>{var l,d;return((d=(l=g.value)==null?void 0:l.filter)==null?void 0:d.call(l,b=>b.imgSize&&[ce.SMALL,ce.MIDDLE,ce.BIG].includes(b.imgSize)))||[]}),v=l=>{t("item-click",l,g.value),r(l)},c=F(null),{needAutoScale:s,marketingBoxStyle:u}=or(e,c);return()=>{var l;return!((l=n.brandLogoInfos)!=null&&l.publicityOpen)||!i.value.length||je.enable?null:a("section",{class:[Bo["marketing-box"],"marketing-box",{[Bo.scale]:s.value}],style:u.value,ref:c},[i.value.map((d,b)=>J(Sr[d.imgSize],{moduleIndex:b,place:e.place,dataList:d.infos,moduleConfig:d.extConfig,imageProps:e.imageProps,onItemClick:v}))])}}}),Td=Object.freeze(Object.defineProperty({__proto__:null,default:Qt},Symbol.toStringTag,{value:"Module"}));var ut=(e=>(e.MODE1="1",e.MODE2="2",e.MODE3="3",e.MODE4="4",e.MODE5="5",e.MODE6="6",e.MODETHEME1656="1656",e.MODE7="7",e))(ut||{}),wa=(e=>(e.DEVICE_INFO="deviceInfo",e.FORBIDDENSELF="forbiddenSelf",e.ABOUT_US="aboutUs",e.LOGINOUT="loginOut",e.SWITCH_ACCOUNT="switchAccount",e.LANUANGE="lanuange",e.CLAIM="claim",e.MODETHEME1656="1656",e.MODE6="6",e.CLUB_LOAN="clubLoan",e.REPORT_DETAILS="reportDetail",e.MALL="mall",e.CLUB_DEPOSITE_MANAGEMENT="clubDepositeManagement",e.CLUB_WITHDRAW_MANAGEMENT="clubWithdrawManagement",e.CURRENCY="currency",e.DEPOSIT="deposit",e.NIGHTMODE="nightMode",e.SUBORDINATE_LOAN="subordinateLoan",e.CLUB_REBATE_MANAGEMENT="clubRebateManagement",e.CLUB_QUOTA_MANAGEMENT="clubQuotaManagement",e))(wa||{});const m={...vs,...wa},Er=()=>{const{skinType:e}=Xn(),t=[H.THEME_10,H.THEME_11,H.THEME_12,H.THEME_16,H.THEME_23,H.THEME_24,H.THEME_26,H.THEME_27,H.THEME_28,H.THEME_29,H.THEME_31,H.THEME_32,H.THEME_33,H.THEME_34,H.THEME_37,H.THEME_39,H.THEME_48,H.THEME_49,H.THEME_53,H.THEME_55,H.THEME_56,H.THEME_66,H.THEME_67,H.THEME_61,H.THEME_74,H.THEME_76,H.THEME_84,H.THEME_86,H.THEME_97,H.THEME_88,H.THEME_98,H.THEME_111,H.THEME_92,H.THEME_114,H.THEME_96,H.THEME_109,H.THEME_106,H.THEME_20,H.THEME_120,H.THEME_121,H.THEME_123,H.THEME_125,H.THEME_128,H.THEME_126,H.THEME_119,H.THEME_131,H.THEME_108,H.THEME_135,H.THEME_145];return{isExpandTabbar:E(()=>t.includes(e))}};var ro=(e=>(e[e.MODE_5=5]="MODE_5",e))(ro||{});const Cr="var(--skin__neutral_1)",Tr="var(--skin__primary)",It={[m.REPORT_DETAILS
2]:{icon:[{icon:"icon_wd_wlzt.svg",color:"var(--skin__neutral_1)"},{icon:"icon_wd_wlzt2.svg",color:"var(--skin__primary)"}],iconSize:50},[m.WITHDRAWMANAGEMENT]:{icon:[{icon:"icon_wd_txgl.svg"}]},[m.PROMOTE]:{icon:[{icon:"icon_wd_fxzq.svg"}],path:"",badge:null},[m.SHARE_EARN]:{icon:[{icon:"icon_wd_fxzq.svg"}],path:""},[m.CLUB_REBATE_MANAGEMENT]:{icon:[{icon:"icon_wd_fsgl.svg"}]},[m.AGENT_APPLY]:{icon:[{icon:"icon_wd_sqdl.svg"}]},[m.CLUB_APPLY]:{icon:[{icon:"icon_wd_sqjlb.svg"}]},[m.SECURITY]:{icon:[{icon:"icon_wd_aqzx.svg"}]},[m.SETTINGS]:{icon:[{icon:"icon_wd_grzl.svg"}]},[m.KYC]:{icon:[{icon:"icon_wd_sfrz.svg"}]},[m.COMMONQUESTION]:{icon:[{icon:"icon_wd_cjwt.svg"}]},[m.LANUANGE]:{icon:[{icon:"icon_wd_xzyy.svg"}]},[m.CURRENCY]:{icon:[{icon:"icon_wd_xzbz.svg"}]},[m.FEEDBACK]:{icon:[{icon:"icon_wd_yjfk.svg"}]},[m.DEVICE_INFO]:{icon:[{icon:"icon_wd_dlsb.svg"}]},[m.ABOUT_US]:{icon:[{icon:"icon_wd_gywm.svg"}]},[m.FORBIDDENSELF]:{icon:[{icon:"icon_wd_zwjz.svg"}]},[m.LOGINOUT]:{icon:[{icon:"icon_wd_aqtc.svg"}]},[m.SWITCH_ACCOUNT]:{icon:[{icon:"icon_wd_qhzh.svg"}],path:""},[m.FINDUS]:{icon:[{icon:"icon_wd_zdwm.svg"}]},[m.MALL]:{icon:[{icon:"icon_wd_yhsc.svg"}],iconRender:null},[m.RECHARGE_FUND]:{icon:[{icon:"icon_wd_gjj.svg"}]},[m.YUEBAO]:{icon:[{icon:"icon_wd_yeb.svg"}]},[m.CREDIT_LOAN]:{icon:[{icon:"icon_wd_xyjk.svg"}]},[m.MOMENTS]:{icon:[{icon:"icon_wd_fx.svg"}]},[m.GOSSIP]:{icon:[{icon:"icon_wd_cgw.svg"}],path:""},[m.SHARE_HOLDING]:{icon:[{icon:"icon_wd_zggl.svg"}],path:""},[m.CLUB_QUOTA_MANAGEMENT]:{icon:[{icon:"icon_wd_edgl.svg"}]},[m.COUPONS]:{icon:[{icon:"icon_wd_zkq.svg"},{icon:"icon_wd_zkq2.svg",color:"var(--skin__primary)"}],iconSize:50}};Object.keys(It).forEach(e=>{var o;It[e].iconSize=(o=It[e].iconSize)!=null?o:50;const[t]=It[e].icon,n=t.icon.split(".");It[e].icon=[{icon:t.icon,color:Cr},{icon:`${n[0]}2.${n[1]}`,color:Tr}]});const Ir=It;function wr(e){let t=!1,n;return(...o)=>(t||(n=Ii(!0).run(()=>e(...o)),t=!0),n)}const Je=e=>{const{updateRouterViewTransitionModeOnce:t}=fs();t("Push",async()=>{await Ue().push({name:e})})},Ar=qe(()=>te(()=>Promise.resolve().then(()=>_l),void 0)),Rr=qe(()=>te(()=>import("./IconReward.HnIsXgpR.js"),__vite__mapDeps([0,1,2,3,4,27]))),Pr=qe(()=>te(()=>
2import("./BadgeFundIndex.ciQHTjcS.js"),__vite__mapDeps([0,1,28]))),kr=qe(()=>te(()=>import("./IconVip.D5s1Crid.js"),__vite__mapDeps([0,1,2,3,4,29]))),Lr=qe(()=>te(()=>import("./IconYueBaoIndex.mSiZ4tzx.js"),__vite__mapDeps([0,1,2,3,4,27]))),Nr=()=>{const e=Ue(),t=Jo(),n=$e(),o=Ni(),r=ea(),{interstBadge:g,interstBadgeColor:i,rechargeFundBadge:v}=ta(),{t:c}=X();return{[m.BLINDBOX_LOTTERY]:{key:m.BLINDBOX_LOTTERY,title:()=>c("lobby.system.blindBoxLottery"),hidden:()=>!n.isShowBlindBox,click:()=>ys().open()},[m.CUT_ONE]:{key:m.CUT_ONE,title:()=>c("lobby.plan.tabbar.cutOne"),hidden:()=>!o.isShowSlashOnce,click:()=>o.openSlashOnce()},[m.VIP]:{key:m.VIP,title:()=>c("lobby.system.vip"),hidden:()=>!n.isShowVip,click:()=>e.push({name:O.VIP}),iconRender:()=>J(kr),userDefined:{badgeProps:()=>{var s;return{content:((s=n.discountRedDot)==null?void 0:s.vipCount)||0}}}},[m.YUEBAO]:{key:m.YUEBAO,title:()=>c("lobby.system.yuebao"),click:()=>{t.axiosError||Je(O.INTEREST)},extra:()=>J(Lr),hidden:()=>!n.isShowInterest,userDefined:{badgeContent:()=>g.value,badgeProps:()=>({content:g.value,...i.value})}},[m.RECHARGE_FUND]:{key:m.RECHARGE_FUND,title:()=>n.rechargeFundName,click:()=>{r.isError||Je(O.RECHARGE_FUND)},iconRender:s=>J(Ar,s),extra:()=>J(Rr),hidden:()=>!n.isShowRechargeFund,badge:()=>J(Pr),userDefined:{badgeProps:()=>({content:v.value,backgroundColor:"var(--skin__accent_1)",color:"#fff"})}},[m.TASK]:{key:m.TASK,title:()=>c("lobby.plan.middle.menu.task"),icon:"style_2_icon_mid_gjj",click:()=>e.push({name:O.TASK}),hidden:()=>!n.isShowTask},[m.REBATE]:{key:m.REBATE,title:()=>c("lobby.plan.middle.menu.backwater"),icon:"style_2_icon_mid_gjj",click:()=>e.push({name:O.CASHBACK}),hidden:()=>!n.isShowCashback},[m.CANRECEIVE]:{key:m.CANRECEIVE,title:()=>c("lobby.plan.middle.menu.waitingCollect"),icon:"style_2_icon_mid_gjj",click:()=>e.push({name:O.CANRECEIVE}),hidden:()=>!n.isShowDiscount},[m.CREDIT_LOAN]:{key:m.CREDIT_LOAN,title:()=>c("lobby.system.creditLoan"),icon:"style_1_icon_mid_xyjk",click:()=>Je(O.CREDITLOAN),hidden:()=>!n.isShowCreditLoan},[m.MALL]:{key:m.MALL,title:()=>c("lobby.mine.itemList.shopping"),icon:"style_1_icon_mid_sc",click:()=>Zo(),hidden:()=>!n.isShowMall}}},Or={"item-badge":"_item-badge_r9ki8_91"},[Dr]=le("badge-claim"),Mr=Z({name:Dr,setup(){const{unreadMsgCount:e}=yt(Zn());return()=>a("div",{class:[Or["item-badge"],"mine-item-badge"]},[a(Rt,{dot:!1,showZero:!1,max:99,content:e.value,position:"top-right",offset:[0,0],zIndex:9},null)])}}),Ht={"content-claim":"_content-claim_13gmv_91","color-primary":"_color-primary_13gmv_91","color-accent1":"_color-accent1_13gmv_94","color-neutral_1":"_color-neutral_1_13gmv_100"},[xr]=le("content-claim"),Br=Z({name:xr,setup(){const{t:e}=ba(),t=Ye(),n=Zn(),o=E(()=>{var v,c;return((c=(v=t==null?void 0:t.financeSetting)==null?void 0:v.claim)==null?void 0:c.marginLevel)||0}),r=E(()=>{var v;return((v=n==null?void 0:n.claimInfo)==null?void 0:v.claimAmount)||0}),g=v=>hs(v,{showGroup:!0}).toFixed({decimalPlaces:2,tailZero:!0}).toString();Kn(()=>{n.getClaimInfo()});const i=E(()=>{let v="",c=[Ht["color-primary"]];if(Number(r.value)>0)return a("p",{class:Ht["color-neutral_1"]},[g(r.value)]);switch(o.value){case lt.BASIC_WARRANTY:c=[Ht["color-primary"]];break;case lt.ADVANCED_WARRANTY:case lt.COMPREHENSIVE_WARRANTY:v=e("lobby.center.claim.highDepositPaid"),c=[Ht["color-accent1"]];break}return a("p",{class:c},[v])});return()=>a("div",{class:Ht["content-claim"]},[i.value])}}),Fr="_colorNeutral2_l3wyv_99",Ur="_colorPrimaryFont_l3wyv_103",Hr="_colorPrimary_l3wyv_103",Vr="_colorFinace_l3wyv_119",jr="_flexCenter_l3wyv_123",kt={colorNeutral2:Fr,colorPrimaryFont:Ur,colorPrimary:Hr,colorFinace:Vr,flexCenter:jr,"icon-dot-wrap":"_icon-dot-wrap_l3wyv_183"},Gr=qe(()=>te(()=>Promise.resolve().then(()=>nl),void 0)),Fo=qe(()=>te(()=>Promise.resolve().then(()=>rl),void 0)),zr=qe(()=>te(()=>Promise.resolve().then(()=>xc),void 0)),Wr=qe(()=>te(()=>import("./AgentApplyIndex.H7h9wueX.js"),__vite__mapDeps([0,1,2,30]))),$r=()=>{const{t:e}=X(),t=Ue(),n=q(),o=on(),r=$e();Ss();const g=Rn(),i=pa(),{openDialog:v}=vt(),c=Ye(),s=tn(),{openFeedback:u}=Qo(),l=d=>{const b=s.eventsList.find(f=>f.template===d);if(!b)return;const{template:_,activeId:h}=b;Xo({jumpMethod:"push",template:String(_),activeId:String(h)})};return{[m.PROMOTE]:{key:m.PROMOTE,title:()=>c.isClubSite?e("lobby.promote.shareEarn.agentCenter"):o.isShowAgentShareEarn?e("lobby.promote.promoteShare"):e("lobby.system.promoteAgent"),path:"/lobby_asset/common/common/profile/",click:()=>Cs(),extra:J(Fo),rightClass:o.axiosError.agentModeError?"promoteRight":"",hiddenArrow:!!o.axiosError.agentModeError,hidden:()=>!o.showPromoteEntry,userDefined:{badgeContent:()=>r.promoteReward,badgeProps:()=>({content:r.promoteReward,backgroundColor:Un.AWARD,gift:void 0}),badge:()=>r.promoteReward?J(Jn,{class:"promote-badge",content:r.promoteReward,backgroundColor:Un.AWARD,position:"top-right",style:{position:"absolute",right:Le(28),transform:`translate(0, ${Le(-2)})`}}):J("span")}},[m.CLAIM]:{key:m.CLAIM,title:()=>e("lobby.mine.itemList.claim"),icon:"style_1_icon_list_tgzq.svg",iconRender:()=>J(Gr),leftClass:"claimLeft",extra:J(Br),badge:J(Mr),classList:["claimItem"],click:()=>
2{if(n.isLogined){t.push({name:O.CLAIM});return}v("claimLogin",{options:{onSuccess:()=>t.push({name:O.CLAIM})}})},hidden:()=>{var d,b;return((b=(d=c.financeSetting)==null?void 0:d.claim)==null?void 0:b.cancelMargin)!==ws.NotCanceled}},[m.KYC]:{key:m.KYC,title:()=>e("lobby.header.menus.kyc"),icon:"style_1_icon_list_aqzx",click:()=>{if(!n.isLogined){wn().openLoginRegister();return}i.isKYCSuccess?Ts():v("needKycValidate",{openType:"overlay",options:{sceneCode:Is.PERCENTER,needIdSelfie:!1}})},onFilter:()=>i.isNeedShowKYCInMine,extra:()=>J("span",{style:"color:var(--skin__neutral_2)"},i.isKYCSuccess?e("lobby.center.KYC.mine.done"):e("lobby.center.KYC.mine.notYet")),hidden:()=>n.isDemoMode||n.isTemporaryAccountMode},[m.CLUB_LOAN]:{key:m.CLUB_LOAN,title:()=>e("lobby.club.loan"),icon:"style_1_icon_mid_xyjk.svg",click:Es,hidden:()=>!0},[m.CLUB_APPLY]:{key:m.CLUB_APPLY,title:()=>e("lobby.club.applyClub"),click:qo,extra:J(zr),hidden:()=>{var d;return!c.isClubSite||!((d=g.clubApplyConfig)!=null&&d.isApplyOpen)||n.isDemoMode||n.isAgent}},[m.FEEDBACK]:{key:m.FEEDBACK,title:()=>e("lobby.header.menus.feedback"),icon:"style_1_icon_list_yjfk",click:u},[m.FINDUS]:{key:m.FINDUS,title:()=>e("lobby.findUs.title"),icon:"style_1_icon_list_zdwm",click:()=>ho().openFindUs(),hidden:()=>!ho().showEntryBtn(),extra:()=>J("span",{class:kt.colorNeutral2},e("lobby.findUs.forTitle"))},[m.SHARE_EARN]:{key:m.SHARE_EARN,title:()=>e("lobby.promote.promoteShare"),click:()=>{var d;((d=n==null?void 0:n.userInfos)==null?void 0:d.account_type)===Hn.ProfessionalAgent&&Ee({type:"error",message:e("lobby.footer.quickJump.proAgentTip")}),t.push({name:O.GENERALPROMOTINDEX})},hidden:()=>!o.isShowAgentShareEarn,extra:()=>J(Fo)},[m.AGENT_APPLY]:{key:m.AGENT_APPLY,title:()=>e("lobby.footer.quickJump.applyAgent"),click:()=>v("agentApplication",{openType:"overlay"}),extra:()=>J(Wr),hidden:()=>!n.hasLogined||!c.hasAgentApplyEntry},[m.RECEIVERECORD]:{key:m.RECEIVERECORD,title:()=>e("lobby.plan.aside.menu.pickUpRecord"),click:()=>t.push({name:O.RECORDS})},[m.DEPOSIT]:{key:m.DEPOSIT,icon:"style_6_icon_list_mrqd",title:()=>e("lobby.event.eventTypes.deposit"),click:()=>l(qn.Deposit),hidden:()=>!r.isShowEvents}}},Yr=()=>{const e=xn("Lv2"),t=xn("Lv1"),n=Ue(),o=$e(),r=Ko(),g=nn(),{t:i}=X(),v=Ye(),c=on(),s=eo();return{[m.CENTERWALLET]:{key:m.CENTERWALLET,title:()=>i("lobby.finance.center.wallet.title"),icon:"style_1_icon_list_zhye",isLogin:!0,click:()=>n.push({name:O.REPORT,query:{reportCurrent:ht.CENTER_WALLET}}),hidden:je.enable}
2,[m.REPORT_DETAILS]:{key:m.REPORT_DETAILS,title:()=>i("lobby.event.cutOnce.myRecord"),iconColor:"--skin__accent_3",icon:"style_1_icon_list_zhmx",isLogin:!0,extra:()=>J("span",{style:"color:var(--skin__primary)"},`${i("lobby.mine.reportDetailDescription")}`),click:()=>n.push({name:O.REPORT,query:{reportCurrent:ht.ACCOUNT}}),hidden:()=>t.value&&je.enable},[m.ACCOUNT_DETAILS]:{key:m.ACCOUNT_DETAILS,title:()=>i("lobby.center.report.tabs.accountDetails"),iconColor:"--skin__accent_3",icon:"style_1_icon_list_zhmx",isLogin:!0,click:()=>n.push({name:O.REPORT,query:{reportCurrent:ht.ACCOUNT}}),hidden:()=>e.value&&je.enable},[m.BETTING_RECORD]:{key:m.BETTING_RECORD,title:()=>i("lobby.center.report.tabs.bettingRecord"),iconColor:"--skin__accent_1",icon:"style_1_icon_list_tzjl",isLogin:!0,click:()=>n.push({name:O.REPORT,query:{reportCurrent:ht.BETTING}}),hidden:()=>e.value&&je.enable},[m.PERSONAL_STATMENT]:{key:m.PERSONAL_STATMENT,title:()=>i("lobby.center.report.tabs.personalStatement"),icon:"style_1_icon_list_grbb",isLogin:!0,click:()=>n.push({name:O.REPORT,query:{reportCurrent:ht.PERSONAL}}),hidden:()=>e.value&&je.enable},[m.WITHDRAWMANAGEMENT]:{key:m.WITHDRAWMANAGEMENT,title:()=>i("lobby.header.menus.withdrawalManagement"),iconColor:"--skin__accent_2",icon:"style_1_icon_list_txgl",isLogin:!0,hidden:()=>v.isHideWithdrawEntry,click:()=>yn(Ro.ACCOUNT_MANAGEMENT)},[m.WITHDRAW]:{key:m.WITHDRAW,title:()=>i("lobby.plan.middle.menu.withDraw"),iconColor:"--skin__accent_2",icon:"style_1_icon_list_txgl",isLogin:!0,hidden:()=>v.isHideWithdrawEntry,click:()=>yn(Ro.WITHDRAW)},[m.CREDIT_LOAN]:{key:m.CREDIT_LOAN,title:()=>i("lobby.system.creditLoan"),icon:"style_1_icon_list_xyjk",click:()=>n.push({name:O.CREDITLOAN}),hidden:()=>!o.isShowCreditLoan},[m.RECHARGE]:{key:m.RECHARGE,title:()=>i("lobby.plan.middle.menu.recharge"),icon:"style_1_icon_mid_cz",click:()=>Xt({openType:"overlay",options:{payEntryId:an.PROFILE}},Xt),hidden:()=>v.isHideRechargeEntry,userDefined:{badgeContent:()=>s.rechargeBadgeCount.value,badgeProps:()=>({content:s.rechargeBadgeCount.value,...g.payChargeBadge})}},[m.CLUB_DEPOSITE_MANAGEMENT]:{key:m.CLUB_DEPOSITE_MANAGEMENT,title:()=>i("lobby.club.deposit.management"),click:()=>n.push({name:O.CLUB_DEPOSIT_MANAGEMENT,query:{to:"depositManage"}}),path:"/lobby_asset/common/web/club/"},[m.CLUB_WITHDRAW_MANAGEMENT]:{key:m.CLUB_WITHDRAW_MANAGEMENT,title:()=>i("lobby.club.withdraw.management"),click:()=>n.push({name:O.CLUB_WITHDRAW_MANAGEMENT}),path:"/lobby_asset/common/web/club/"},[m.CLUB_ACCOUNT_DETAILS]:{key:m.CLUB_ACCOUNT_DETAILS,title:()=>i("lobby.event.cutOnce.myRecord"),iconColor:"--skin__accent_3",icon:"style_1_icon_mid_zhmx.svg",path:"/lobby_asset/common/web/profile/",extra:()=>J("span",{style:"color:var(--skin__primary)"},`${i("lobby.mine.reportDetailDescription")}`),click:()=>n.push({name:O.REPORT,query:{reportCurrent:ht.ACCOUNT}})},[m.CLUB_PROMOTE]:{key:m.CLUB_PROMOTE,title:()=>i("lobby.promote.shareEarn.shareToEarn"),click:()=>n.push({name:O.CLUB_WITHDRAW_MANAGEMENT}),path:"/lobby_asset/common/web/club/",userDefined:{badgeContent:()=>s.rechargeBadgeCount.value}},[m.COUPONS]:{key:m.COUPONS,title:()=>i("lobby.plan.middle.menu.coupon"),iconColor:"--skin__accent_2",icon:"style_5_icon_list_zkq",hidden:()=>!o.isShowCoupon,click:()=>Je(O.COUPON),userDefined:{badgeProps:()=>({backgroundColor:"var(--skin__accent_1)",content:r.couponBadgeForMine})}},[m.SHARE_HOLDING]:{key:m.SHARE_HOLDING,title:()=>i("lobby.shareholding.title"),iconColor:"--skin__accent_2",icon:"style_1_icon_list_zggl.svg",hidden:()=>{var u;return!((u=c.agentEntryAuth)!=null&&u.equityPermission)},click:()=>Je(O.SHAREHOLDING)},[m.CLUB_REBATE_MANAGEMENT]:{key:m.CLUB_REBATE_MANAGEMENT,title:()=>i("lobby.clubRebate.title"),iconColor:"--skin__accent_2",icon:"style_1_icon_list_fsgl.svg",hidden:()=>{var u;return!((u=c.agentEntryAuth)!=null&&u.rebatePermission)},click:()=>Je(O.CLUB_REBATE_MANAGEMENT)},[m.CLUB_QUOTA_MANAGEMENT]:{key:m.CLUB_QUOTA_MANAGEMENT,title:()=>i("lobby.subordinateLoan.loanList"),iconColor:"--skin__accent_2",icon:"style_1_icon_list_edgl.svg",hidden:()=>{var u;return!((u=c.agentEntryAuth)!=null&&u.loanPermission)},click:()=>Je(O.CREDIT_MANAGE)},[m.SVIP]:{key:m.SVIP,title:()=>i("lobby.plan.aside.menu.svip"),icon:"icon_wd_svip",click:()=>Je(O.SVIP),hidden:()=>!o.isShowSVIP,userDefined:{badgeProps:()=>{var u;return{backgroundColor:"var(--skin__accent_2)",content:((u=o.discountRedDot)==null?void 0:u.svipCount)||0}}}}}};function qr(){const{t:e}=X(),t=ke();return{[I.USER]:{key:I.USER,title:()=>e("lobby.center.setting.account"),label:()=>e("lobby.center.setting.account"),bind:()=>e("lobby.center.setting.account")},[I.PHONE]:{key:I.PHONE,title:()=>e("lobby.center.security.phone.tab"),label:()=>e("lobby.center.security.phone.tab"),bind:()=>e("lobby.center.security.phone.tab")},[I.CPF]:{key:I.CPF,title:()=>e("lobby.center.security.cpf.tab"),label:()=>e("lobby.center.security.cpf.tab"),bind:()=>e("lobby.center.security.cpf.tab")},[I.EMAIL]:{key:I.EMAIL,title:()=>e("lobby.center.security.email.tab"),label:()=>e("lobby.center.security.email.tab"),bind:()=>e("lobby.center.security.email.tab")},[I.GA]:{key:I.GA,title:()=>e("lobby.formItems.ga.title.default"),label:()=>e("lobby.formItems.ga.title.default"),bind:()=>e("lobby.formItems.ga.title.default")},[I.LOGINPASS]:{key:I.LOGINPASS,title:()=>e("lobby.center.security.loginPwd.tab"),label:()=>e("lobby.center.security.loginPwd.tab"),bind:()=>e("lobby.center.security.loginPwd.tab")},[I.WITHDRAWPASS]:{key:I.WITHDRAWPASS,title:()=>Yt([[t.isClubManager,e("lobby.club.security.withdrawalPwd.tab")]],e("lobby.center.security.withdrawalPwd.tab")),label:()=>Yt([[t.isClubManager,e("lobby.club.security.withdrawalPwd.tab")]],e("lobby.center.security.withdrawalPwd.tab")),bind:()=>Yt([[t.isClubManager,e("lobby.club.security.withdrawalPwd.tab")]],e("lobby.center.security.withdrawalPwd.tab"))},[I.QUESTION]:{key:I.QUESTION,title:()=>e("lobby.center.security.question.tab"),label:()=>e("lobby.center.security.question.tab"),bind:()=>e("lobby.center.security.question.tab")},[I.WEBAUTHN]:{key:I.WEBAUTHN,title:()=>e("lobby.center.security.webAuthn.label"),label:()=>e("lobby.center.security.webAuthn.label"),bind:()=>e("lobby.common.components.auth.webAuthn.name")},[I.THIRDPARTY]:{key:I.THIRDPARTY,title:()=>e("lobby.center.security.thirdWay.tab"),label:()=>e("lobby.center.security.thirdWay.tab"),bind:()=>e("lobby.center.security.thirdWay.tab")},[I.WITHDRAWACCOUNT]:{key:I.WITHDRAWACCOUNT,title:()=>e("lobby.center.security.WithdrawAccount.title"),label:()=>e("lobby.center.security.WithdrawAccount.title"),bind:()=>e("lobby.center.security.WithdrawAccount.title")},[I.REALNAME]:{key:I.REALNAME,title:()=>"",label:()=>"",bind:()=>""}}}function Qr(){const e=Ye(),t=Oi(),n=()=>sessionStorage.getItem("abcdefg_open")||!e.siteCode?"":e.siteCode,o=()=>["025","033","213","961","2101","2537","2798"].includes(n())||t.isShutDownPhone.value,r=()=>["025","033","213","961","2798"].includes(n())||t.isShutDownEmail.value,g=()=>["025","033","213","961","2798"].includes(n()),i=()=>["025","033","213"].includes(n());
2return{omitPhone:o(),omitEmail:r(),omitGa:g(),omitThirdParty:i()}}function rn(){const{validateConfigStatus:e}=Lt(),{refActive:t}=na(),n=ke();return E(()=>{const o=e();return{bind:n.state.type===De.Bind,edit:n.state.type===De.Edit,verify:n.state.type===De.Verify,activePhone:t.value===I.PHONE,activeEmail:t.value===I.EMAIL,activeGa:t.value===I.GA,activeLoginpass:t.value===I.LOGINPASS,activeWithdrawpass:t.value===I.WITHDRAWPASS,activeQuestion:t.value===I.QUESTION,activeWebauthn:t.value===I.WEBAUTHN,activeThirdParty:t.value===I.THIRDPARTY,verifyPhone:n.state.verify===I.PHONE,verifyEmail:n.state.verify===I.EMAIL,verifyGa:n.state.verify===I.GA,verifyLoginpass:n.state.verify===I.LOGINPASS,verifyWithdrawpass:n.state.verify===I.WITHDRAWPASS,verifyQuestion:n.state.verify===I.QUESTION,verifyWebauthn:n.state.verify===I.WEBAUTHN,verifyThirdParty:n.state.verify===I.THIRDPARTY,isBinded:{phone:o[I.PHONE],email:o[I.EMAIL],ga:o[I.GA],loginPass:o[I.LOGINPASS],withdrawPass:o[I.WITHDRAWPASS],question:o[I.QUESTION]}}})}function Id(){const{t:e}=X(),t=q(),n=ke(),o=ze({googleCode:""}),r=rn(),g=F(""),i=async(s,u)=>{if(r.value.isBinded.ga)return;const l=n.fields(s,u);o.googleCode=l.googleCode;try{await ks({data:{code:o.googleCode}})}catch(d){return Promise.reject(d)}};return{apiVerify:i,apiModify:async(s,u)=>{const l=n.fields(s,u);n.isVerifyStage||(await i(),o.googleCode=l.googleCode,l.googleCode=void 0);try{await(r.value.isBinded.ga?()=>Rs({data:{switch:0,secondVerify:Be(l,Fe)}}):()=>Ps({data:{code:o.googleCode,secondVerify:Be(l,Fe)}}))(),g.value=r.value.isBinded.ga?e("lobby.formItems.ga.message.closeSuccess"):e("lobby.formItems.ga.message.openSuccess")}catch(d){const{SECURITY_CONFIG_EXPIRED:b}=K,{code:_}=be(d);return[b].includes(_)?(ge("CONFIG_CHANGE_ERR").emit(),Promise.reject()):Promise.reject(d)}},setFieldValue:async()=>{const{CLOSE:s,OPEN:u}=As;g.value&&await Ee.successSync({message:g.value}),t.updateUserInfos({is_open_google_auth:r.value.isBinded.ga?s:u})}}}function wd(){const{t:e}=X(),t=q(),n=ke(),o=Tn(),{enableUsingSms:r,enableOTPRestrict:g}=Kt(),i=ze({phone:"",code:""}),v=rn(),c=F(""),s=async(_,h)=>{const f=n.fields(_,h);if(i.phone=o.format(f.phone),i.code=f.phoneCode,!!g.value&&r.value)try{await Di({data:{...i,username:n.username,scene:aa.VERIFY_PHONE}})}catch(T){const{code:p}=be(T);return[K.PHONE_CAPTCHA_EXPIRED,K.PHONE_CAPTCHA_EMPTY].includes(p)?(ge("CONFIG_CHANGE_ERR").emit(),Promise.reject()):Promise.reject(T)}};return{form:i,apiVerify:s,apiModify:async(_,h,f)=>{const T=n.fields(_,h);r.value||(T.phoneCode=void 0),n.isVerifyStage||(await s(),i.phone=o.format(T.phone),i.code=T.phoneCode,T.phone=void 0,T.phoneCode=void 0);try{await Po({data:{phone:i.phone,phoneCode:i.code,secondVerify:Be(T,Fe)}},f!=null&&f.suppressClosedCodeToast?{error:{actionExcludes:[K.SECURITY_PHONE_CLOSED,K.PHONE_CLOSED]}}:void 0),c.value=v.value.isBinded.phone?e("lobby.formItems.phone.success.editor"):e("lobby.formItems.phone.success.bind")}catch(p){const{code:C}=be(p);return[K.PHONE_CAPTCHA_EXPIRED,K.PHONE_CAPTCHA_EMPTY].includes(C)?(ge("CONFIG_CHANGE_ERR").emit(),Promise.reject()):Promise.reject(p)}},apiVerification:async(_,h,f)=>{const T=n.fields(_,h);r.value||(T.phoneCode=void 0),i.phone=o.format(T.phone),i.code=T.phoneCode;try{await Po({data:{phone:i.phone,phoneCode:i.code,action:oa.Verify}},f!=null&&f.suppressClosedCodeToast?{error:{actionExcludes:[K.SECURITY_PHONE_CLOSED,K.PHONE_CLOSED]}}:void 0),c.value=e("lobby.formItems.phone.success.verify")}catch(p){const{code:C}=be(p);return[K.PHONE_CAPTCHA_EXPIRED,K.PHONE_CAPTCHA_EMPTY].includes(C)?(ge("CONFIG_CHANGE_ERR").emit(),Promise.reject()):Promise.reject(p)}},setFieldValue:async()=>{c.value&&await Ee.successSync({message:c.value});const{Verified:_,NotVerify:h}=hn,f=t.userInfos;f.mobile_phone=Ls(i.phone),f.permissionOpt.hasPhone=!!i.phone,f.is_verified=i.code&&r.value?_:h,t.setUserInfos(f)},updateValidated:()=>{t.updateUserInfos({is_verified:hn.Verified})}}}function Ad(){const{t:e}=X(),t=q(),n=ke(),o=ze({withdraw_pass:""}),r=va("withdrawPass"),g=rn(),i=F(""),v=async(u,l)=>{const d=n.fields(u,l);o.withdraw_pass=d.withdrawPass;try{await Os({data:o})}catch(b){const{SECURITY_CONFIG_EXPIRED:_}=K,{code:h,msg:f}=be(b);return[_].includes(h)?(ge("CONFIG_CHANGE_ERR").emit(),Promise.reject()):(h===K.SECURITY_PASSWORD_EQUAL&&r(f),Promise.reject(b))}};return{form:o,apiVerify:v,apiModify:async(u,l)=>{const d=n.fields(u,l);n.isVerifyStage||(await v(),o.withdraw_pass=d.withdrawPass,Reflect.set(d,"withdrawPass",void 0));try{await Ns({data:{withdraw_pass:o.withdraw_pass,secondVerify:Be(d,Fe)}}),i.value=g.value.isBinded.withdrawPass?Yt([[n.isClubManager,e("lobby.club.security.withdrawalPwd.update.success")]],e("lobby.center.security.withdrawalPwd.update.success")):Yt([[n.isClubManager,e("lobby.club.security.withdrawalPwd.bind.success")]],e("lobby.center.security.withdrawalPwd.bind.success"))}catch(b){const{SECURITY_CONFIG_EXPIRED:_}=K,{code:h}=be(b);return[_].includes(h)?(ge("CONFIG_CHANGE_ERR").emit(),Promise.reject()):Promise.reject(b)}},setFieldValue:async()=>{i.value&&await Ee.successSync({message:i.value});const u=t.userInfos;u.permissionOpt.hasWithdrawPasswd=!0,u.changeWithdrawPassword=qt.CLOSE,t.setUserInfos(u),t.updateWithdrawPasswordStatus(qt.CLOSE)}}}function Rd(){const{t:e}=X(),t=q(),n=ke(),o=ze({id:0,answer:""}),r=rn(),g=F("");return{apiVerify:async(s,u)=>{const l=n.fields(s,u);o.id=l.passQuestionId,o.answer=l.passQuestionAnswer},apiModify:async(s,u)=>{const l=n.fields(s,u);n.isVerifyStage||(o.id=l.passQuestionId,o.answer=l.passQuestionAnswer,l.passQuestionId=void 0,l.passQuestionAnswer=void 0);try{await(r.value.isBinded.question?()=>Ds({data:{id:o.id,answer:o.answer,secondVerify:Be(l,Fe)}}):()=>Ms({data:{id:o.id,answer:o.answer,secondVerify:Be(l,Fe)}}))(),g.value=r.value.isBinded.question?e("lobby.center.security.question.update.success"):e("lobby.center.security.question.bind.success")}catch(d){const{SECURITY_CONFIG_EXPIRED:b}=K,{code:_}=be(d);return[b].includes(_)?(ge("CONFIG_CHANGE_ERR").emit(),Promise.reject()):Promise.reject(d)}},setFieldValue:async()=>{g.value&&await Ee.successSync({message:g.value});const s=t.userInfos;s.permissionOpt.hasSecurityQuestion=!0,t.setUserInfos(s)}}}function Pd(){const{t:e}=X(),t=ke(),{editFillArray:n}=xs(),o=ze({loginPass:""}),r=va("loginPass"),g=F(""),i=async(s,u)=>{const l=t.fields(s,u);o.loginPass=l.loginPass;try{await Fs({data:{login_pass:o.loginPass}})}catch(d){const{code:b,msg:_}=be(d);return[K.SECURITY_CONFIG_EXPIRED,K.CONFIG_CHANGE_PASSWORD_FORMAT_ERR].includes(b)?(ge("CONFIG_CHANGE_ERR").emit(),Promise.reject(d)):(b===K.SECURITY_PASSWORD_EQUAL&&r(_),Promise.reject(d))}};return{form:o,apiVerify:i,apiModify:async(s,u)=>{const l=t.fields(s,u);if(!t.isVerifyStage)try{await i(),o.loginPass=l.loginPass,l.loginPass=void 0}catch(d){return Promise.reject()}try{await Bs({data:{oldpass:l.loginPass,newpass:o.loginPass,secondVerify:Be(l,Fe)}}),g.value=e("lobby.center.security.loginPwd.update.success")}catch(d){const{code:b}=be(d);return[K.SECURITY_CONFIG_EXPIRED,K.CONFIG_CHANGE_PASSWORD_FORMAT_ERR].includes(b)?(ge("CONFIG_CHANGE_ERR").emit(),Promise.reject()):Promise.reject(d)}},setFieldValue:async()=>{n({userpass:o.loginPass}),g.value&&Ee.successSync({message:g.value})}}}function kd(){const{t:e}=X(),t=ke(),n=q(),{enableUsingEmail:o}=Kt(),r=ze({email:"",code:""}),g=rn(),i=F(""),v=async(d,b)=>{const _=t.fields(d,b);if(r.email=_.email,r.code=_.emailCode,!!o.value)try{await Mi({data:{...r,username:t.username,scene:aa.VERIFY_EMAIL}})}catch(h){const{EMAIL_CAPTCHA_EXPIRED:f,EMAIL_CAPTCHA_EMPTY:T}=K,{code:p}=be(h);return[f,T].includes(p)&&!o.value?(ge("CONFIG_CHANGE_ERR").emit(),Promise.reject()):Promise.reject(h)}};return{form:r,apiVerify:v,apiModify:async(d,b,_)=>{const h=t.fields(d,b);o.value||(h.emailCode=void 0),t.isVerifyStage||(await v(),r.email=h.email,r.code=h.emailCode,h.email=void 0,h.emailCode=void 0);try{await ko({data:{email:r.email,code:r.code,secondVerify:Be(h,Fe)}},_!=null&&_.suppressClosedCodeToast?{error:{actionExcludes:[K.SECURITY_EMAIL_CLOSED,K.EMAIL_CLOSED]}}:void 0),i.value=g.value.isBinded.email?e("lobby.formItems.email.success.editor"):e("lobby.formItems.email.success.bind")}catch(f){const{EMAIL_CAPTCHA_EXPIRED:T,EMAIL_CAPTCHA_EMPTY:p}=K,{code:C}=be(f);return[T,p].includes(C)&&!o.value?(ge("CONFIG_CHANGE_ERR").emit(),Promise.reject()):Promise.reject(f)}},apiVerification:async(d,b,_)=>{const h=t.fields(d,b);o.value||(h.emailCode=void 0),r.email=h.email,r.code=h.emailCode;try{await ko({data:{email:r.email,code:r.code,action:oa.Verify}},_!=null&&_.suppressClosedCodeToast?{error:{actionExcludes:[K.SECURITY_EMAIL_CLOSED,K.EMAIL_CLOSED]}}:void 0),i.value=e("lobby.formItems.email.success.verify")}catch(f){const{EMAIL_CAPTCHA_EXPIRED:T,EMAIL_CAPTCHA_EMPTY:p}=K,{code:C}=be(f);return[T,p].includes(C)&&!o.value?(ge("CONFIG_CHANGE_ERR").emit(),Promise.reject()):Promise.reject(f)}},setFieldValue:async()=>{const{Verified:d,NotVerify:b}=hn;i.value&&await Ee.successSync({message:i.value}),n.updateUserInfos({email:Us(r.email),emailVerified:r.code&&o.value?d:b})}
2,updateValidated:()=>{n.updateUserInfos({emailVerified:hn.Verified})}}}const Kr={googleAuth:I.GA,phone:I.PHONE,email:I.EMAIL,question:I.QUESTION,webauthn:I.WEBAUTHN,loginPass:I.LOGINPASS,withdraw:I.WITHDRAWPASS},co=e=>{const t=[];for(const[n,o]of Object.entries(e)){if(!o)continue;const r=Kr[n];r!==void 0&&!t.includes(r)&&t.push(r)}return t},Aa=e=>{const{code:t}=be(e),n=Oe(e,"data.extra");if(t!==K.CONFIG_CHANGE_ERR_1||!(n!=null&&n.verifyMethods))return null;const o=co(n.verifyMethods);return o.length?o:null},Uo=e=>{const t=Aa(e);if(!t)return null;const{msg:n}=be(e);return n&&Ee.error(n),t};function Ld(){const e=q(),t=ke(),{refActive:n}=na(),o=ze({onVerify:void 0,onModify:void 0}),r=F([]),g=E(()=>e.isDemoMode?!1:r.value.length>0),i=E(()=>r.value),v=E(()=>{var f;if(e.isDemoMode)return!1;const _=n.value;if(_===void 0)return!1;const h=(f=t.securityStatusMap[_])==null?void 0:f.verifyMethods;return!!h&&co(h).length>0}),c=_=>{r.value=_};return{verifys:i,needVerify:g,preNeedVerify:v,submit:()=>{var _;(_=o.onModify)==null||_.call(o)},onVerify:_=>{o.onVerify=_},onModify:_=>{o.onModify=_},setServerVerifys:c,resetServerVerifys:()=>{r.value=[]},handleServerVerifyError:_=>{const h=Aa(_);return h?(c(h),t.state.type=De.Verify,t.state.verify=h[0],!0):!1}}}function Xr(e){const{t}=X(),n=ke(),o=q(),{back:r}=Ue(),g=tt(),i=F(),v=async(l,d)=>{const b=n.fields(l,d);try{await ia({data:{info_type:ra.WEBAUTHN,firstVerify:Be(b,Fe)}}),i.value=Be(b,Fe)}catch(_){const{SECURITY_CONFIG_EXPIRED:h,CONFIG_CHANGE_ERR_1:f}=K,{code:T}=be(_);return[h,f].includes(T)?(ge("CONFIG_CHANGE_ERR").emit(),Promise.reject()):Promise.reject(_)}},c=async l=>{var b,_,h;if(!Ve(l,I.WEBAUTHN)||((b=o.userInfos)==null?void 0:b.webauthnSwitch)===qt.OPEN)return!1;if(!o.isDemoMode){const f=n.securityStatusLoaded?co((h=(_=n.securityStatusMap[I.WEBAUTHN])==null?void 0:_.verifyMethods)!=null?h:{}):null;if(f!==null?f.length>0:Lt().securityConfig().verifys.length>0)return!1}const d=await s();return d==="failure"?!0:d==="success"?!1:await c(l)},s=async(l,d)=>{try{await So({...await wt.create(),switch:Eo.OPEN,secondVerify:i.value},l);const b=o.userInfos;return b.webauthnSwitch=qt.OPEN,o.setUserInfos(b),Co().setStatus(!0),await new Promise(_=>{d||_(null),To.openBindSuccess(()=>{_(null),ge("SECURITY_WEBAUTHN_STATUS").emit({binded:!0})})}),"success"}catch(b){const{SECURITY_CONFIG_EXPIRED:_,CONFIG_CHANGE_ERR_1:h}=K,{code:f,msg:T}=be(b);if(T.includes("NotSupport"))return Ee.error(t("lobby.center.security.webAuthn.deviceNotSupported")),Promise.reject();if(e!=null&&e.onServerVerify){const p=Uo(b);if(p)return e.onServerVerify(p,"bind"),Promise.reject()}return[_,h].includes(f)?(ge("CONFIG_CHANGE_ERR").emit(),Promise.reject()):new Promise(p=>{var w;let C;try{C=(w=JSON.parse(b))==null?void 0:w.message}catch(k){C=void 0}To.openBindFail(C,k=>{k==="confirm"?p("retry"):(sa.error(b),p("failure"))})})}};return{apiVerify:v,checkBinding:c,apiBind:s,apiUnBind:async()=>{var l,d;try{await wt.remove(),await So({switch:Eo.CLOSE,secondVerify:i.value});const b=o.userInfos;b.webauthnSwitch=qt.CLOSE,o.setUserInfos(b),await Ee.successSync(t("lobby.center.security.webAuthn.unBind.success")),Co().setStatus(!1),(l=g.stateMap.securityDialogBinding)!=null&&l.visible?ge("SECURITY_WEBAUTHN_STATUS").emit({binded:!1}):r()}catch(b){if(e!=null&&e.onServerVerify){const h=Uo(b);if(h)return e.onServerVerify(h,"unbind"),Promise.reject(b)}const{code:_}=be(b);if(_===K.THIRD_PARTY_LOGIN_UNBIND_ERROR){(d=g.stateMap.securityDialogBinding)!=null&&d.visible?ge("SECURITY_WEBAUTHN_STATUS").emit({binded:!1}):r();return}return Promise.reject(b)}}}}function Zr(){const e=ke(),t=F();return{apiVerify:async(g,i)=>{const v=e.fields(g,i);try{await ia({data:{info_type:ra.THIRD_BIND,firstVerify:Be(v,Fe)}}),t.value=Be(v,Fe)}catch(c){const{SECURITY_CONFIG_EXPIRED:s}=K,{code:u}=be(c);return[s].includes(u)?(ge("CONFIG_CHANGE_ERR").emit(),Promise.reject()):Promise.reject(c)}},getList:async(g=!0)=>{var v;const[,i]=await fa(Vs({cache:{useCache:g,setCache:!0}}));e.setThirdPartys((v=i==null?void 0:i.data.data)!=null?v:[])},unBind:async g=>{try{await Hs({data:{thirdType:g,secondVerify:t.value}})}catch(i){const{SECURITY_CONFIG_EXPIRED:v}=K,{code:c}=be(i);return[v].includes(c)?(ge("CONFIG_CHANGE_ERR").emit(),Promise.reject()):Promise.reject(i)}}}}const Jr="_menu_tp1e7_91",ec="_list_tp1e7_97",tc="_item_tp1e7_108",nc="_disabled_tp1e7_128",oc="_leftIcon_tp1e7_134",ac="_gray_tp1e7_140",sc="_green_tp1e7_143",ic="_blue_tp1e7_146",rc="_red_tp1e7_152",cc="_labelWrap_tp1e7_155",lc="_labelRedDot_tp1e7_158",uc="_label_tp1e7_155",dc="_right_tp1e7_182",gc="_account_tp1e7_187",mc="_copyAccount_tp1e7_191",_c="_suffix_tp1e7_196",bc="_binded_tp1e7_201",pc="_third_tp1e7_204",vc="_thirdIcon_tp1e7_209",fc="_bindVerify_tp1e7_216",yc="_bindUnVerify_tp1e7_219",hc="_arrows_tp1e7_222",it={menu:Jr,list:ec,item:tc,disabled:nc,leftIcon:oc,gray:ac,green:sc,blue:ic,red:rc,labelWrap:cc,labelRedDot:lc,label:uc,right:dc,account:gc,copyAccount:mc,suffix:_c,binded:bc,third:pc,thirdIcon:vc,bindVerify:fc,bindUnVerify:yc,arrows:hc};function Sc(e){const t=Yn(),n=qr(),{t:o}=X(),{rewards:r}=ha(),g=Qr(),i=ke(),v=dt(),c=Tn(),s=Yi(),{enableModifyPhone:u,enableModifyEmail:l,enableUsingSms:d,enableUsingEmail:b,enableOTPRestrict:_}=Kt(),{validateConfigStatus:h}=Lt(),f=q(),{PHONE:T,EMAIL:p,GA:C,LOGINPASS:w,WITHDRAWPASS:k,QUESTION:y,WEBAUTHN:A,THIRDPARTY:U}=I;e=wi({},{thirdParty:!0},e),f.isPureNormalMode&&Zr().getList();const W=()=>{var ue;const N=(ue=v.systemInfos)==null?void 0:ue.securityVerify,B=[];return N!=null&&N.securityPhone&&B.push(o("lobby.modal.login.form.phone.label")),N!=null&&N.securityEmail&&B.push(o("lobby.center.security.email.tab")),N!=null&&N.securityGoogle&&B.push(o("lobby.center.security.ga.tab")),N!=null&&N.securityPassQuestion&&B.push(o("lobby.common.components.auth.question.label")),wt.enable&&(N!=null&&N.securityWebauthn)&&B.push(o("lobby.common.components.auth.webAuthn.name")),B},V=N=>{en.showDialog({title:()=>o("lobby.receiveModal.kindTips"),message:()=>N.length===1?o("lobby.center.security.forceBindTitle",{bindItem:N==null?void 0:N.join()}):o("lobby.center.security.forceBindItemTitle",{bindItem:N==null?void 0:N.join("/"),length:1})})},L=N=>{const B=()=>{const{type:fe,canVerify:ye}=s.statusPhone.value,ee=fe===Me.UN_VERIFICATION;if(!(M.value&&!ee)){if(M.value){Ee({type:"error",message:o("lobby.center.security.phone.verify.notWork")});return}ee&&!ye&&Ee({type:"error",message:o("lobby.center.security.phone.verify.g2Update")})}},ue=()=>{const{type:fe,canVerify:ye}=s.statusEmail.value,ee=fe===Me.UN_VERIFICATION;if(!(x.value&&!ee)){if(x.value){Ee({type:"error",message:o("lobby.center.security.email.verify.notWork")});return}ee&&!ye&&Ee({type:"error",message:o("lobby.center.security.email.verify.g2Update")})}};if(N.key===I.PHONE)return B();if(N.key===I.EMAIL)return ue()},S=async N=>{if(L(N),N.disabled)return!1;if(!i.securityStatusLoaded){Ee.loading({duration:0,overlay:!0});try{await i.ensureSecurityStatus()}catch(B){}finally{Gs()}}if(i.isSecurityAssetProtectForbidden(N.key)&&!s.canEnterVerifyFlow(N.key))return Sa().showContactServiceDialog(),!1;if(i.isSecurityForceBindForbidden(N.key))return V(W()),!1;
2if(N.key===I.PHONE||N.key===I.EMAIL){if(N.key===I.PHONE?M.value:x.value)return!1}else if(i.isSecurityModifyForbidden(N.key))return!1;return!(zs().disableOperate()||await Xr().checkBinding(N.key))},R=E(()=>({[I.PHONE]:_.value?[r.value[Se.SMSValid],r.value[Se.BindPhone]]:[r.value[Se.BindPhone]],[I.EMAIL]:r.value[Se.BindEmail],[I.GA]:r.value[Se.SetGa],[I.WITHDRAWPASS]:r.value[Se.SetWithdrawalPin],[I.QUESTION]:r.value[Se.SetQuestion],[I.WEBAUTHN]:void 0,[I.THIRDPARTY]:Ai([r.value[Se.ThirdParty],i.thirdPartyConfig.some(B=>B.name===Vn.Nowallet)?r.value[Se.CompleteNo]:void 0])})),M=E(()=>{if(!u.value||i.isSecurityForbidden(T)){const N=s.statusPhone.value.type,B=c.codeIncludes(t.value.mobile_phone);return!(N==="unadd"||N==="unverification"&&B&&d.value)}return!1}),x=E(()=>{if(!l.value||i.isSecurityForbidden(p)){const N=s.statusEmail.value.type;return!(N==="unadd"||N==="unverification"&&b.value)}return!1}),Y=E(()=>js().clubInfo.value.isClubMember),Q=E(()=>{const N=h();return[{key:T,supported:!g.omitPhone},{key:p,supported:!g.omitEmail},{key:C,supported:!g.omitGa},{key:w,supported:!0},{key:k,supported:!0},{key:y,supported:!0},{key:A,supported:wt.enable},{key:U,supported:!g.omitThirdParty&&!jn.isActivated&&!!i.thirdPartyConfig.length}].filter(ue=>ue.supported).map(ue=>({icon:ue.key,binded:ue.key===p?N[ue.key]&&s.statusEmail.value.type===Me.VERIFICATION:N[ue.key]}))}),me=E(()=>{var ee;const N=h(),B=(ee=e.suffixs)==null?void 0:ee.call(e,N),{statusEmail:ue,statusPhone:fe}=s;return[[{key:n[I.USER].key,title:n[I.USER].title,label:n[I.USER].label,suffix:B==null?void 0:B[I.USER],icon:{src:"/lobby_asset/common/web/common/input_icon_zh.svg",class:[it.gray]},hidden:!1,disabled:!0,redDot:!1},{key:n[T].key,title:n[T].title,label:n[T].label,suffix:B==null?void 0:B[T],icon:{src:"/lobby_asset/common/web/common/input_icon_sj.svg",class:[it.blue]},hidden:!1,omitted:g.omitPhone,disabled:M.value,badge:M.value?void 0:R.value[T],redDot:fe.value.type===Me.UN_ADD},{key:n[p].key,title:n[p].title,label:n[p].label,suffix:B==null?void 0:B[p],icon:{src:"/lobby_asset/common/web/common/input_icon_yj2.svg",class:[it.gray]},hidden:!1,omitted:g.omitEmail,disabled:x.value,badge:x.value?void 0:R.value[p],redDot:ue.value.type===Me.UN_ADD},{key:n[C].key,title:n[C].title,label:n[C].label,suffix:B==null?void 0:B[C],icon:{src:"/lobby_asset/common/common/profile/icon_wd_ggyz_b.png"},hidden:!1,omitted:g.omitGa,disabled:!1,badge:R.value[C],redDot:!N[C]}],[{key:n[w].key,title:n[w].title,label:n[w].label,suffix:B==null?void 0:B[w],icon:{src:"/lobby_asset/common/web/common/input_icon_yz.svg",class:[it.green]},hidden:!1,disabled:!1,redDot:!1},{key:n[k].key,title:n[k].title,label:n[k].label,suffix:B==null?void 0:B[k],icon:{src:"/lobby_asset/common/web/common/input_icon_card.svg",class:[it.red]},hidden:!1,disabled:!1,badge:R.value[k],redDot:!N[k]},{key:n[y].key,title:n[y].title,label:n[y].label,suffix:B==null?void 0:B[y],icon:{src:"/lobby_asset/common/web/common/input_icon_mb.svg",class:[it.green]},hidden:!1,disabled:!1,badge:R.value[y],redDot:!N[y]},{key:n[A].key,title:n[A].title,label:n[A].label,suffix:B==null?void 0:B[A],icon:{src:"/lobby_asset/common/web/common/input_icon_swsb.svg",class:[it.blue]},hidden:!wt.enable,disabled:!1,badge:R.value[A],redDot:!N[A]}],[{key:n[U].key,title:n[U].title,label:n[U].label,suffix:B==null?void 0:B[U],icon:{src:"/lobby_asset/common/web/common/input_icon_dsfbd.svg",class:[it.blue]},hidden:jn.isActivated||!i.thirdPartyConfig.length,omitted:g.omitThirdParty,disabled:!1,badge:R.value[U]}]].map(_e=>_e.filter(he=>!he.hidden).map(he=>i.isSecurityForbidden(he.key)&&![T,p].includes(he.key)?{...he,disabled:!0,badge:void 0}:he))}),Ce=E(()=>me.value.map(N=>N.filter(B=>!B.hidden&&!B.omitted))),$=E(()=>me.value.map(N=>N.filter(B=>!B.hidden)));return{clubHiddenWithdrawpass:Y,disablePhone:M,disableEmail:x,onPre:S,entryStatusList:Q,list:Ce,dialogList:$}}const kn=()=>{const{rewards:e}
2=ha(),t=$e(),n=dt(),o=q(),r=ca(),{setAvatar:g,setBirthday:i,verifyEmail:v,addPhoneNoVerify:c,addSocialAcc:s,smsVerify:u}=Ne,l={wechat:Se.BindWechat,whatsapp:Se.BindWhatsApp,facebook:Se.BindFacebook,telegram:Se.BindTelegram,zalo:Se.BindZalo,line:Se.BindLine,twitter:Se.BindTwitter},d=E(()=>{var C;if(o.hasLogined)return e.value;const T=((C=r.newBenefitsBeforeLogin)==null?void 0:C.list)||[],p={};for(const w of T)p[w.bindType]={...r.getRedDotBeforeLogin(w.bindType)};return p}),b=E(()=>{var p,C,w;const T=Object.entries(Ws).filter(([k,y])=>{var A;return((A=n.systemInfos)==null?void 0:A[y])===un.OPEN}).map(([k])=>l[k]).filter(k=>k!=null);return{[i]:!0,[g]:!0,[v]:((p=n.systemInfos)==null?void 0:p.userEmailSwitch)===un.OPEN,[c]:((C=n.systemInfos)==null?void 0:C.userPhoneSwitch)===un.OPEN,[u]:((w=n.systemInfos)==null?void 0:w.userPhoneSwitch)===un.OPEN,[s]:T}}),_=T=>{let p=0,C=0;for(const k of T){const y=k.bindTypeAward||[0,0];p=Sn(p,y[0]),C=Sn(C,y[1])}if(p===0&&C===0)return null;const w=la([p,C],!1);return w==null?null:String(w).includes("-")?String(w):`+${w}`},h=E(()=>{if(!t.isShowDiscount||!t.getRedDotStatus($t.TASK))return;const T=Object.entries(b.value).reduce((p,[C,w])=>{var y;if(!w||Array.isArray(w)&&w.length===0)return p;const k=d.value[Number(C)];if(!(k!=null&&k.isPop)||!(k!=null&&k.reward))return p;if(Number(C)===s&&Array.isArray(w)){const A=((y=fn(k.content))==null?void 0:y.bindTypes)||[];w.some(W=>A.includes(W))&&p.push(k)}else p.push(k);return p},[]);return _(T)}),f=E(()=>!!h.value);return{totalProfileReward:h,showSettingDot:f,effectiveRewards:d}},Ec=()=>{const{entryStatusList:e}=Sc(),t=$e(),{totalProfileReward:n,showSettingDot:o,effectiveRewards:r}=kn(),g={[I.PHONE]:[Ne.addPhoneNoVerify,Ne.smsVerify],[I.EMAIL]:Ne.verifyEmail,[I.GA]:Ne.setupGoogleAuth,[I.WITHDRAWPASS]:Ne.setWithdrawPwd,[I.QUESTION]:Ne.setSecurityQA,[I.THIRDPARTY]:[Ne.bindQuickLogin,Ne.completeNo],[I.WEBAUTHN]:Ne.bindBiometric},{thirdPartyEnables:i}=Wo("security"),v=u=>{let l=0,d=0;for(const _ of u){const h=_.bindTypeAward||[0,0];l=Sn(l,h[0]),d=Sn(d,h[1])}if(l===0&&d===0)return null;const b=la([l,d],!1);return b==null?null:String(b).includes("-")?String(b):`+${b}`},c=E(()=>{if(!t.isShowDiscount||!t.getRedDotStatus($t.TASK))return;const u=i.value.some(_=>_.name===Vn.Nowallet),l=i.value.some(_=>_.name!==Vn.Nowallet),d=[...e.value];!d.some(_=>_.icon===I.THIRDPARTY)&&(u||l)&&d.push({icon:I.THIRDPARTY,binded:!0});const b=d.filter(_=>_.icon===I.THIRDPARTY?u||l:_.icon===I.PHONE?!0:!_.binded).reduce((_,h)=>{const f=g[h.icon];if(f==null)return _;const T=Array.isArray(f)?f:[f];for(const p of T){if(h.icon===I.THIRDPARTY&&(p===Ne.completeNo&&!u||p===Ne.bindQuickLogin&&!l))continue;const C=r.value[p];C!=null&&C.isPop&&(C!=null&&C.reward)&&_.push(C)}return _},[]);return v(b)}),s=E(()=>!!c.value);return{totalSecurityReward:c,totalProfileReward:n,showSettingDot:o,showSecurityDot:s}},Cc="_icon_4zj8j_91",Tc="_combinIcon_4zj8j_97",Ho={icon:Cc,combinIcon:Tc},[Ic]=Nt("icon"),Jt=Z({name:Ic,props:{icon:{type:[String,Array],required:!0},size:{type:Number,required:!1,default:40},iconPath:{type:String,default:""},useSkeleton:{type:Boolean,default:!1}},setup(e){const t=(o,r)=>{if(!o)return;const g={};return r&&(g.color=r),e.size&&(g.fontSize=Le(e.size)),o.includes(".svg")||(g.width=Le(e.size),g.height=Le(e.size)),a(z,{style:g,useSkeleton:e.useSkeleton,src:`${e.iconPath}${o}`},null)},n=E(()=>Array.isArray(e.icon)&&(e==null?void 0:e.icon.length)>1);return()=>{var r,g;const o=Array.isArray(e.icon)?e.icon.map(i=>t(i.icon,i.color)):t(e.icon);return a("div",{style:{width:(r=Le(e.size))!=null?r:40,height:(g=Le(e.size))!=null?g:40},class:[Ho.icon,n.value?Ho.combinIcon:""]},[o])}}}),wc=qe(()=>te(()=>import("./AboutUsTitle.CuTA2aUD.js"),__vite__mapDeps([0,1,31]))),Ac=qe(()=>te(()=>import("./IconLanguangeIndex.CXsafajX.js"),__vite__mapDeps([0,1,2,3,4]))),Rc=()=>{const e=Ue(),t=q(),n=Ye(),{navigateToQuestionPage:o,isServiceHidden:r,navigateToServicePage:g}=$n(),{t:i}=X(),v=Re(),c=$s(),s=Ys(),{homeLayoutInfos:u}=dt(),{openMiddleDownloadDialog:l}=qs(),d=Qs(),{totalSecurityReward:b,totalProfileReward:_,showSettingDot:h,showSecurityDot:f}=Ec(),T=E(()=>{var y,A;return(A=(y=u==null?void 0:u.baseConfig)==null?void 0:y.appMyPage)==null?void 0:A.toString()}),p=Ks(),C=ua(),w=E(()=>{var y,A;return((A=(y=t.userInfos)==null?void 0:y.account_type)!=null?A:Hn.Try)===Hn.Try}),k=y=>T.value===ut.MODE6?52:y!=null?y:46;return{[m.SWITCH_ACCOUNT]:{key:m.SWITCH_ACCOUNT,title:()=>i("lobby.header.menus.switchAccount"),icon:"style_1_icon_list_qhzh",path:"/lobby_asset/common/common/profile/",click:()=>wn().openSwitchAccount(),hidden:()=>Io()||!p.refOptions.value.switch.temporary&&!p.refOptions.value.switch.ordinary},[m.LOGINOUT]:{key:m.LOGINOUT,title:()=>i("lobby.header.menus.logout"),icon:"style_1_icon_list_aqtc",click:()=>Zs(),hidden:()=>!t.hasLoginedComponent||Io()||t.isTemporaryAccountMode||jn.isActivated},[m.DEVICE_INFO]:{key:m.DEVICE_INFO,title:()=>i("lobby.center.deviceInfo.title"),icon:"style_1_icon_list_dlsb",isLogin:!0,click:()=>e.push({name:O.DEVICE_INFO})},[m.ABOUT_US]:{key:m.ABOUT_US,title:()=>J(wc),icon:"style_1_icon_list_gywm",click:()=>{e.push({name:O.ABOUT_US})},hidden:()=>{var y;return((y=n.brandLogoInfos)==null?void 0:y.aboutUsStatus)!==1||je.enable}},[m.SERVICE]:{key:m.SERVICE,title:()=>i("lobby.common.components.auth.contactUS"),icon:"style_1_icon_list_kf",hidden:()=>r.value||je.enable,click:()=>g()},[m.COMMONQUESTION]:{key:m.COMMONQUESTION,title:()=>i("lobby.service.commonQuestion"),icon:"style_1_icon_list_cjwt",hidden:je.enable,click:()=>o()},[m.CURRENCY]:{key:m.CURRENCY,title:()=>i("lobby.mine.itemList.selectCurrency"),icon:"style_1_icon_list_xzbz.svg",hidden:()=>C.siteCurrencyList.length<=1&&w.value||t.hasLoginedComponent,click:()=>vt().openDialog("switchCurrency",{openType:"overlay"})},[m.LANUANGE]:{key:m.LANUANGE,title:()=>i("lobby.mine.itemList.selectLanguage"),icon:"style_1_icon_list_xzyy.svg",extra:()=>J(Ac),hidden:()=>v.langsList.length<=1,click:()=>vt().openDialog("switchLang",{openType:"overlay"})}
2,[m.SECURITY]:{key:m.SECURITY,title:()=>i("lobby.header.menus.security"),icon:"style_1_icon_list_aqzx",isLogin:!0,click:()=>e.push({name:O.SECURITY}),userDefined:{showRedDot:()=>f.value,badgeProps:()=>({content:b.value,backgroundColor:"var(--skin__accent_1)",position:"top-right"})}},[m.SETTINGS]:{key:m.SETTINGS,title:()=>i("lobby.header.menus.settings"),icon:"style_1_icon_list_grzl",isLogin:!0,click:()=>e.push({name:O.SETTING}),userDefined:{showRedDot:()=>h.value,badgeProps:()=>({content:_.value,backgroundColor:"var(--skin__accent_1)",position:"top-right"})}},[m.FORBIDDENSELF]:{key:m.FORBIDDENSELF,title:()=>i("lobby.center.forbiddenSelf.title"),icon:"style_1_icon_list_zwjz",isLogin:!0,click:()=>e.push({name:O.FORBIDDEN_SELF}),hidden:()=>!n.isForbiddenSelfShow.isMineHidden||je.enable||t.isDemoMode},[m.MOMENTS]:{key:m.MOMENTS,title:()=>c.plazzaTitle,icon:"style_2_icon_mid_fx",click:()=>e.push({name:O.PLAZZA}),hidden:()=>!c.isShowPlazza,userDefined:{showRedDot:()=>c.isShowDot}},[m.GOSSIP]:{key:m.GOSSIP,title:()=>n.gossipName,icon:"style_1_icon_cgw",path:"/lobby_asset/common/common/profile/",iconRender:n.gossipIcon?y=>J(Jt,{icon:n.gossipIcon,class:"icon icon_cgw",size:k(y==null?void 0:y.iconSize)}):void 0,click:()=>Xs(),hidden:()=>!n.isShowGossip},[m.NIGHTMODE]:{key:m.NIGHTMODE,title:()=>s.menuTitle,click:()=>s.menuClick(),hidden:()=>s.menuHidden,userDefined:{icon:()=>s.isDark?"style_1_icon_list_rjms.svg":"style_1_icon_list_yjms.svg"}},[m.DOWNLOAD]:{key:m.DOWNLOAD,title:()=>i("lobby.tabbar.download"),icon:"icon_sy_zc_xz",click:()=>l(),hidden:()=>!!d.isHiddenAppEnter}}},Pc=()=>function(){return{}},kc=()=>{ca().getNewComerBenefitAfterLogin();const{ownerBottomIconMap:e}=Ot.useOwnerCustomizeIcon(),t={...Nr(),...Yr(),...Rc(),...$r()},n=Object.keys(t),{getMenuListByKeys:o}=Js({},t),r=Pc(),g=E(()=>o(n).map(c=>({...c,hidden:!1})));return{allMenuList:g,filterMenu:(c,s)=>{const u=r();return c.reduce((l,d)=>{var T,p;const b=typeof d=="string",_=b?d:d==null?void 0:d.key,h=g.value.find(C=>C.key===_);let f=(T=s[_])!=null?T:{};if(h){typeof f=="string"&&(f={icon:f});const C=b?void 0:d,w={...h,...f,...C,...u[_]};w.badgeProps&&(w.badgeProps={...h.badgeProps,...f.badgeProps,...C==null?void 0:C.badgeProps,...(p=u[_])==null?void 0:p.badgeProps}),l.push(w)}return l},[]).filter(l=>!l.hidden&&(typeof l.onFilter=="function"?l.onFilter():!0))},getHallIcon:(c,s=e)=>({[m.PROMOTE]:s.get("promoteIcon"),[m.SHARE_EARN]:s.get("promoteIcon"),[m.ACCOUNT_DETAILS]:s.get("accountDetailsIcon"),[m.SECURITY]:s.get("securityIcon"),[m.ABOUT_US]:s.get("aboutUsIcon"),[m.LANUANGE]:s.get("languageIcon"),[m.FEEDBACK]:s.get("feedbackIcon"),[m.LOGINOUT]:s.get("securityLogoutIcon"),[m.COMMONQUESTION]:s.get("commonProblemIcon"),[m.MOMENTS]:s.get("findIcon"),[m.AGENT_APPLY]:s.get("applicationAgentIcon"),[m.BLINDBOX_LOTTERY]:s.get("blindBoxIcon"),[m.FINDUS]:s.get("findUsIcon"),[m.FORBIDDEN_SELF]:s.get("selfRestraintIcon"),[m.CLUB_APPLY]:s.get("cooperativeVentureIcon"),[m.KYC]:s.get("IdentityAuthIcon"),[m.DEVICE_INFO]:s.get("loginDeviceIcon"),[m.SWITCH_ACCOUNT]:s.get("switchAccountIcon"),[m.BETTING_RECORD]:s.get("betIcon"),[m.WITHDRAWMANAGEMENT]:s.get("withdrawManageIcon"),[m.REPORT_DETAILS
2]:s.get("myRecordsIcon"),[m.PERSONAL_STATMENT]:s.get("reportIcon"),[m.YUEBAO]:s.get("yueBaoIcon"),[m.RECHARGE_FUND]:s.get("providentFundIcon"),[m.VIP]:s.get("vipIcon"),[m.CREDIT_LOAN]:s.get("creditLoanIcon"),[m.SETTINGS]:s.get("profileIcon"),[m.COUPONS]:s.get("couponIcon"),[m.MALL]:s.get("mallIcon"),[m.CLAIM]:s.get("thirdGuaranteeIcon")})[c]}},Ra=wr(kc),Mn={"mine-avator-wrap":"_mine-avator-wrap_xoj8f_91","edit-wrap":"_edit-wrap_xoj8f_94","badge-dot":"_badge-dot_xoj8f_113"},[Lc]=le("userAvator"),Nc=Z({name:Lc,props:{showEdit:{type:Boolean,default:!1},needClick:{type:Boolean,default:!0},infoImage:{type:String,default:""},showBadgeDot:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=q(),o=Ue(),{showSettingDot:r}=kn(),g=E(()=>{var c;return((c=n.userInfos)==null?void 0:c.portrait_id)||e.infoImage||"/lobby_asset/common/common/profile/icon_wd_mrtx.png"}),i=()=>{e.needClick&&o.push({name:O.SETTING})},v=()=>{e.needClick||o.push({name:O.SETTING})};return()=>a(z,{src:g.value,class:[Mn["mine-avator-wrap"],e.showBadgeDot&&r.value&&n.hasLoginedComponent&&Mn["badge-dot"],e.showBadgeDot&&r.value&&n.hasLoginedComponent&&"global-badge-dot"],onClick:i,tag:"div"},{default:()=>{var c;return[t.default?t.default():null,e.showEdit&&a("div",{onClick:v,class:[Mn["edit-wrap"],"mine-avatar-edit-wrap"]},[((c=t==null?void 0:t.editIcon)==null?void 0:c.call(t))||a(z,{src:"/lobby_asset/common/web/profile/icon_grzl.svg"},null)])]}})}}),Oc={"color-primary":"_color-primary_1w7bl_91"},[Dc]=le("mine-club-extra"),Mc=Z({name:Dc,setup(){const{t:e}=X();return()=>a("span",{class:Oc["color-primary"]},[e("lobby.club.banking")])}}),xc=Object.freeze(Object.defineProperty({__proto__:null,default:Mc},Symbol.toStringTag,{value:"Module"})),[Bc]=le("userAvator"),Nd=Z({name:Bc,setup(){const e=q(),{getCurrencyNormalIconByMap:t}=ua(),n=()=>{var r;const o=((r=e.userInfos)==null?void 0:r.currency)||"CNY";return t(o)};return()=>a(z,{useSkeleton:!0,src:n()},null)}}),Fc={isNeedText:{type:Boolean,default:!0},iconPath:{type:Object,default:()=>({service:"",message:"",unReadMessage:"",setting:"",langIcon:"",scanCode:""}),required:!0},showSetting:{type:Boolean,default:!0},isCommonMine:{type:Boolean,default:!1},badgePosition:String,badgeOffset:Array,badgeProps:{type:Object,default:void 0},hideMessage:{type:Boolean,default:!0},iconDot:{type:Boolean,default:!1},showRedDot:{type:Boolean,default:!1},showIconBg:{type:String,default:""},showLang:{type:Boolean,default:!1}},Uc="_headerBtnWrapper_1b7u8_91",Hc="_headerLeft_1b7u8_101",Vc="_btnContainer_1b7u8_104",jc="_badgeBox_1b7u8_114",Gc="_icon_1b7u8_117",zc="_iconBg_1b7u8_123",Wc="_iconBgImg_1b7u8_134",$c="_iconText_1b7u8_141",Ke={headerBtnWrapper:Uc,headerLeft:Hc,btnContainer:Vc,"common-item":"_common-item_1b7u8_111",badgeBox:jc,icon:Gc,iconBg:zc,iconBgImg:Wc,iconText:$c};function Yc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Dt(e)}const[qc,Qc]=le("pages-mine-head-button"),Vt=Qc,Kc=Z({name:qc,props:Fc,setup(e,{slots:t}){const{t:n}=X(),o=Ue(),r=da(),g=q(),{unreadAnnouncement:i,unreadNotice:v,unReadNum:c}=yt(r),{ownerTopIconMap:s}=Ot.useOwnerCustomizeIcon(),u=Re(),{showSettingDot:l}=kn(),d=tt(),{openLoginRegister:b}=wn(),{navigateToServicePage:_,isServiceHidden:h}=$n();to(()=>{q().hasLogined&&r.getHomeList()});const f=()=>{{const w=i.value>0&&v.value===0?Fn.ANNOUNCEMENT:Fn.NOTICE;o.push({name:O.NOTICE,query:{noticeType:w}})}},T=()=>{_({})},p=E(()=>{var y;const w=c.value>0?s.get("messageUnreadIcon")||e.iconPath.unReadMessage||e.iconPath.message:s.get("messageReadIcon")||e.iconPath.message,k=s.get("customerIcon")||e.iconPath.service;return(y=[{key:"scanCode",iconText:()=>n("lobby.tabbar.service"),onClick:()=>{if(!g.hasLogined||g.isTemporaryAccountMode){b();return}d.open("clubScanQr")},itemClass:Vt("scan-code"),sort:1,icon:e.iconPath.scanCode,hidden:ei.package.isVest||!e.iconPath.scanCode},{key:"service",iconText:()=>n("lobby.tabbar.service"),icon:k,onClick:T,itemClass:Vt("service"),sort:2,iconSlots:t==null?void 0:t.service,hidden:h.value},{key:"message",iconText:()=>n("lobby.header.messages"),icon:w,onClick:f,itemClass:Vt("message"),badge:c.value>0?c.value:0,sort:3,iconSlots:t==null?void 0:t.message,hidden:!e.hideMessage},{key:"profile",iconText:()=>n("lobby.header.menus.settings"),icon:e.iconPath.setting,onClick:()=>{o.push({name:O.SETTING})}
2,itemClass:Vt("profile"),hidden:!e.showSetting,sort:4,iconSlots:t==null?void 0:t.setting,showRedDot:e.showRedDot&&l.value},{key:"lang",iconText:()=>n("lobby.plan.middle.menu.language"),icon:e.iconPath.langIcon,onClick:()=>d.open("switchLang"),itemClass:Vt("lang"),sort:5,iconSlots:t==null?void 0:t.lang,hidden:!e.showLang||u.isSingleLang}].filter(A=>!A.hidden))==null?void 0:y.sort((A,U)=>A.sort-U.sort)}),C=w=>{var y,A;const k=a(z,{src:(y=w.icon)!=null?y:"",useSkeleton:!0,class:[Ke.icon,"icon",w.key]},null);return((A=w.iconSlots)==null?void 0:A.call(w))||(e.showIconBg?a("div",{class:Ke.iconBg},[a(z,{src:e.showIconBg,class:Ke.iconBgImg},null),k]):k)};return()=>a("header",{class:[Ke.headerBtnWrapper,"header-wrapper"]},[t.left&&a("div",{class:Ke.headerLeft},[t.left()]),p.value.map(w=>{let k;return a("div",{class:{[Ke.btnContainer]:!0,"header-item":!0,[Ke["common-item"]]:e.isCommonMine,[w.itemClass]:!0,[`${kt["icon-dot-wrap"]} mine-icon-red-dot`]:w.showRedDot},onClick:w.onClick},[w!=null&&w.badge&&w.badge>0?a(Jn,ve({content:w.badge,max:99,dot:e.iconDot,position:e.badgePosition?e.badgePosition:u.isRtlLanguage?"top-left":"top-right",showZero:!1,offset:e.badgeOffset?e.badgeOffset:[Ge(`${u.isRtlLanguage?"-":""}0.04rem`),Ge("0.04rem")]},e.badgeProps,{class:Ke.badgeBox}),Yc(k=C(w))?k:{default:()=>[k]}):C(w),e.isNeedText&&a("p",{class:[Ke.iconText,"iconText"]},[w.iconText()])])})])}}),Xc="_iconClaim_it09p_92",Zc="_highProtect_it09p_102",Jc="_allProtect_it09p_105",St={iconClaim:Xc,"claim-icon":"_claim-icon_it09p_97",highProtect:Zc,"claim-second":"_claim-second_it09p_102",allProtect:Jc,"claim-first":"_claim-first_it09p_108","claim-gou":"_claim-gou_it09p_118"},[el]=le("menu-claim"),tl=Z({name:el,props:{claimIcon1:{type:String,required:!1},useThemeConfig:{type:Boolean,default:!1},themeIcons:{type:Object,required:!1},iconSize:{type:Number,default:40},iconPath:{type:String,default:""}},setup(e){const t=Ye(),n=E(()=>{var s,u;return((u=(s=t==null?void 0:t.financeSetting)==null?void 0:s.claim)==null?void 0:u.marginLevel)||0}),o=E(()=>{let s="";return n.value===lt.ADVANCED_WARRANTY&&(s="highProtect"),n.value===lt.COMPREHENSIVE_WARRANTY&&(s="allProtect"),s}),{ownerBottomIconMap:r,ownerMiddleIconMap:g}=Ot.useOwnerCustomizeIcon(),i=()=>{var l,d;const{homeLayoutInfos:s}=dt();return((d=(l=s==null?void 0:s.baseConfig)==null?void 0:l.appMyPage)==null?void 0:d.toString())===ut.MODE6?g.get("thirdGuaranteeIcon"):r.get("thirdGuaranteeIcon")},v=()=>a("div",{class:[St["claim-icon"],St[`${o.value}`]]},[a(z,{class:[St["claim-gou"],"mine-claim-gou"],src:"/lobby_asset/common/web/common/comm_icon_gou.svg"},null),a(z,{src:e.claimIcon1||"/lobby_asset/common/web/common/comm_icon_dblp_1.svg",class:[St["claim-first"],"global-claim-icon"]},null),a(z,{class:[St["claim-second"],"mine-claim-icon-2"],src:"/lobby_asset/common/web/common/comm_icon_dblp_2.svg"},null)]),c=()=>{var u,l;const s=((u=e.themeIcons)==null?void 0:u[n.value])||((l=e.themeIcons)==null?void 0:l[lt.BASIC_WARRANTY])||"";return a(Jt,{size:e.iconSize,iconPath:e.iconPath,icon:s},null)};return()=>{const s=i();return s?a(z,{src:s,class:[St["claim-icon"],"global-claim-icon"]},null):e.useThemeConfig?c():v()}}}),nl=Object.freeze(Object.defineProperty({__proto__:null,default:tl},Symbol.toStringTag,{value:"Module"})),ol="_promoteAdvertiseLabel_1foul_91",al="_promoteContent_1foul_99",mn={promoteAdvertiseLabel:ol,"icon-promote":"_icon-promote_1foul_99",promoteContent:al},[sl]=le("menu-promote"),il=Z({name:sl,setup(){const e=on(),{agentModeData:t,axiosError:n,timeoutLoadingAgent:o}=yt(e);return()=>{var r;return a("div",{class:mn["icon-promote"]},[n.value.agentModeError?a(ga,{class:mn.netRetry,loading:o.value,onRetry:()=>{e.getPromoteAdvertise()},type:"icon"},null):((r=t.value)==null?void 0:r.advertise)&&a("div",{class:mn.promoteContent},[a(ti,{class:[kt.colorPrimary,mn.promoteAdvertiseLabel],useRealWidthMath:!0,speed:50,noScrollWhenFullVisible:!0,avoidSafariBlink:!0},{default:()=>{var g;return[a(En,{html:(g=t.value)==null?void 0:g.advertise},null)]}})])])}}}),rl=Object.freeze(Object.defineProperty({__proto__:null,default:il},Symbol.toStringTag,{value:"Module"})),cl="_navItem_f525n_91",ll="_icon_f525n_97",ul="_rechargeFund_f525n_103",dl="_fundAmount_f525n_126",rt={navItem:cl,icon:ll,rechargeFund:ul,fundAmount:dl,"bg-badge":"_bg-badge_f525n_137","middle-badge-bg":"_middle-badge-bg_f525n_150","badge-bg
2-fund":"_badge-bg-fund_f525n_154"},[gl]=le("menu-promote"),ml=Z({name:gl,props:{icon:{type:[String,Array],required:!0,default:()=>"/lobby_asset/common/web/profile/style_2_icon_mid_gjj.svg"},iconSize:{type:Number,required:!1,default:40},iconPath:{type:String,default:""},offset:{type:Number,required:!1,default:-10}},setup(e){const{rechargeFundBadge:t}=ta(),{ownerBottomIconMap:n}=Ot.useOwnerCustomizeIcon(),o=E(()=>n.get("providentFundIcon")),r=E(()=>{const i=o.value||e.icon;return Array.isArray(i)?a(Jt,{iconPath:e.iconPath,icon:i,size:e.iconSize,class:[rt.icon,"icon-recharge-fund"]},null):a(z,{src:`${e.iconPath}${i}`,class:[rt.icon,"icon-recharge-fund"]},null)}),g="/lobby_asset/{layout}-{bg}-common/web/common/img_qipao_fzl";return()=>a("div",{class:[rt.navItem,"mine-nav-item-recharge-fund"],style:{"--icon-recharge-fund-size":Le(e.iconSize),"--icon-recharge-fund-offset":Le(e.offset)}},[!!t.value&&a("div",{class:[rt.rechargeFund,"recharge-fund-badge",rt["badge-bg-fund"]]},[a("div",{class:[rt["bg-badge"],"recharge-badge-fund-amount","recharge-fund-amount"]},[a(z,{src:`${g}1_1.png`,useSkeleton:!0},null),a(z,{src:`${g}2_1.png`,useSkeleton:!0,class:rt["middle-badge-bg"]},null),a(z,{src:`${g}3_1.png`,useSkeleton:!0},null)]),a("p",{class:[rt.fundAmount,"recharge-fund-amount"]},[t.value])]),r.value])}}),_l=Object.freeze(Object.defineProperty({__proto__:null,default:ml},Symbol.toStringTag,{value:"Module"})),bl={hiddenInfo:{type:Boolean,default:!1},prefixTips:{type:String,default:""},tipsLoginText:{type:String,default:""},tipsRegisterText:{type:String,default:""},hiddenBtns:{type:Boolean,default:!1},loginBtnBg:{type:String,default:""},registerBtnBg:{type:String,default:""},avatar:{type:String,default:"/lobby_asset/common/common/profile/icon_wd_mrtx.png"},showUnloginTipsLabel:{type:Boolean,default:!0},loginText:{type:String,default:""},registerText:{type:String,default:""},hiddenAvatar:{type:Boolean,default:!1},showMiniRegisterBadge:{type:Boolean,default:!1},registerBadgeOffset:Array,registerBadgePosition:{type:String,default:"right"},showRegisterButtonBadge:{type:Boolean,default:!0},designBgMode:{type:String,default:void 0},registerBadgeProps:{type:Object}},pl="_icon_8dg6d_126",vl="_tips_8dg6d_135",fl="_label_8dg6d_145",yl="_action_8dg6d_161",we={"un-login-info":"_un-login-info_8dg6d_91",icon:pl,tips:vl,label:fl,"global-un-login-tips-box":"_global-un-login-tips-box_8dg6d_148","prefix-tips":"_prefix-tips_8dg6d_151",action:yl,"login-btn":"_login-btn_8dg6d_166","register-btn":"_register-btn_8dg6d_167"},[hl,Sl]=le("unLoginBtn"),El=Z({name:hl,props:bl,setup(e,{slots:t}){const{t:n}=X(),{badgeValue:o,badgeBgColor:r}=ni(),{openLoginRegister:g}=wn(),i=q(),v=Re(),c=Zt("registerBadge"),s=E(()=>({...e.registerBadgeProps,...c})),u=()=>{const f={login:!0};i.isTemporaryAccountMode&&(f.skipTemporary=!0,f.skipGuide=!0),g(f)},l=()=>{const f={register:!0};i.isTemporaryAccountMode&&(f.skipTemporary=!0,f.skipGuide=!0),g(f)},d=()=>a("span",{class:[we.action,"un-login-info-tips-action"],onClick:l},[e.tipsRegisterText||n("lobby.mine.unLogin.tipsText2")]),b=()=>a(z,{class:[we["register-btn"],"register-btn"],src:e.registerBtnBg,onClick:l,useSkeleton:!0,tag:"div","data-theme-btn":!0,"data-theme-btn-exclude":"102"},{default:()=>[a("span",null,[e.registerText||n("lobby.modal.register.label")])]}),_=()=>a(We,null,[a("div",null,[a("span",{class:[we.label,"un-login-info-tips-label"]},[n("lobby.mine.unLogin.tipsLabel1")]),a("span",{class:[we.action,"un-login-info-tips-action"],onClick:u},[e.tipsLoginText||n("lobby.mine.unLogin.tipsText1")])]),a("div",null,[a("span",{class:[we.label,"un-login-info-tips-label"]},[n("lobby.mine.unLogin.tipsLabel2")]),e.showMiniRegisterBadge?a(Rt,ve({class:["register-badge",e.registerBadgePosition==="left"?"register-badge-position-left":""],backgroundColor:r,content:o.value,offset:[-10,-38],gift:{size:"normal",shouldOccupySpace:0},designBgMode:e.designBgMode},s.value,{autoTransformOffset:!0}),{default:()=>[a(d,null,null)]}):a(d,null,null)])]),h=()=>a(We,null,[e.showUnloginTipsLabel&&a("span",{class:[we.label,"un-login-info-tips-label"]},[n("lobby.mine.unLogin.tipsLabel1")]),a("span",{class:[we.action,"un-login-info-tips-action"],onClick:u},[e.tipsLoginText||n("lobby.mine.unLogin.tipsText1")]),a("span",{class:[we.label,"un-login-info-tips-label"]},[n("lobby.mine.unLogin.tipsLabel2")]),e.showMiniRegisterBadge?a(Rt,ve({class:["register-badge",e.registerBadgePosition==="left"?"register-badge-position-left":""],backgroundColor:r,content:o.value,offset:[-10,-38],gift:{size:"normal",shouldOccupySpace:0},designBgMode:e.designBgMode},s.value,{autoTransformOffset:!0}),{default:()=>[a(d,null,null)]}):a(d,null,null)]);return()=>{var f,T;return a("div",{class:we["un-login-info"]},[!e.hiddenInfo&&a("div",null,[!e.hiddenAvatar&&a("div",{class:[we.icon,Sl("icon")]},[(f=t==null?void 0:t.avatarBg)==null?void 0:f.call(t),a(z,{src:e.avatar,useSkeleton:!0},null)]),a("div",{class:we.tips},[e.prefixTips&&a("div",{class:we["prefix-tips"]},[e.prefixTips]),a("div",{class:[we["global-un-login-tips-box"],"global-un-login-tips-box"]}
2,[v.isRtlLanguage?_():h()])]),(T=t.renderSubTips)==null?void 0:T.call(t)]),!e.hiddenBtns&&a("div",null,[a(z,{class:[we["login-btn"],"login-btn"],src:e.loginBtnBg,onClick:u,useSkeleton:!0,tag:"div"},{default:()=>[a("span",null,[e.loginText||n("lobby.plan.header.login")])]}),e.showRegisterButtonBadge?a(Rt,ve({backgroundColor:r,content:o.value,class:["register-badge",e.registerBadgePosition==="left"?"register-badge-position-left":""],offset:e.registerBadgeOffset,gift:{size:"normal",shouldOccupySpace:0},designBgMode:e.designBgMode},s.value,{autoTransformOffset:!0}),{default:()=>[a(b,null,null)]}):a(b,null,null)])])}}}),Cl="_wrap_b01bg_91",Tl="_grid_b01bg_95",Il="_item_b01bg_104",wl="_menuItemLabel_b01bg_110",Et={wrap:Cl,grid:Tl,item:Il,menuItemLabel:wl,"grid-badge":"_grid-badge_b01bg_125"};function Al(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Dt(e)}const[Rl]=Nt("menuGrid"),Pl=Z({name:Rl,props:{gridData:{type:Array,default:[],required:!0},className:{type:Object,default:()=>({})},iconPath:{type:String,default:"/lobby_asset/common/web/profile/"},itemStyle:{type:Object,default:()=>({})}},setup(e){var c,s;const{homeLayoutInfos:t,siteConfig:n}=dt(),o=(s=(c=e.className)==null?void 0:c.menuItem)!=null?s:"",r=E(()=>{var b,_;const{ownerMiddleIconMap:u,ownerBottomIconMap:l}=Ot.useOwnerCustomizeIcon();return(n==null?void 0:n.type)===H.THEME_132?new Map([...u,...l]):[ut.MODE2,ut.MODE7].includes((_=(b=t==null?void 0:t.baseConfig)==null?void 0:b.appMyPage)==null?void 0:_.toString())?l:u}),{getHallIcon:g}=Ra(),i=u=>{const l=g(u.key,r.value);return l?a(Jt,{size:u.iconSize,icon:[{icon:l}]},null):a(Jt,{iconPath:u.path||e.iconPath,size:u.iconSize,icon:u.icon},null)},v=u=>{var d;const l=a("div",{class:[Et["icon-item-wrap"],u.showRedDot&&`${kt["icon-dot-wrap"]} mine-icon-dot-wrap`]},[i(u)]);return u.badgeContent||(d=u.badgeProps)!=null&&d.content?a(Rt,ve({class:Et["grid-badge"],content:u.badgeContent},u.badgeProps||{},{position:"top-center"}),Al(l)?l:{default:()=>[l]}):l};return()=>{var u;return a("div",{class:Et.wrap},[a("ul",{class:Et.grid,dir:"ltr"},[(u=e.gridData)==null?void 0:u.map(l=>{var b,_;const d=l.id?{id:l.id,"data-sensors-click":"true"}:{};return a("li",ve(d,{class:[kt.flexCenter,Et.item,o,l.leftClass],onClick:()=>{var h;(h=l.onClick)==null||h.call(l)},style:e.itemStyle}),[l.iconRender?l.iconRender({icon:l.icon,iconPath:l.path||e.iconPath,iconSize:l.iconSize}):v(l),a("p",{class:[Et.menuItemLabel,(_=(b=e.className)==null?void 0:b.menuItemLabel)!=null?_:""]},[l.title()]),l!=null&&l.badge&&typeof l.badge=="function"?l.badge():l.badge])})])])}}}),kl="_menuListItem_w7raw_117",Ll="_menuItemLabel82_w7raw_145",_n={"grid-list-wrap":"_grid-list-wrap_w7raw_91","grid-menu":"_grid-menu_w7raw_100",menuListItem:kl,menuItemLabel82:Ll},[Nl]=Nt("subMenuGrid"),Ol=Z({name:Nl,setup(){const{t:e}=X(),{filterMenu:t}=Ra(),n=Ye(),o=Zt("mineGridCustomIcons",Ir),r=E(()=>{var d,b;return((b=(d=n==null?void 0:n.financeSetting)==null?void 0:d.claim)==null?void 0:b.marginLevel)||0}),g=E(()=>{let d="var(--skin__lead)";return r.value===lt.ADVANCED_WARRANTY&&(d="var(--skin__primary)"),r.value===lt.COMPREHENSIVE_WARRANTY&&(d="var(--skin__accent_1)"),d}),i=E(()=>({...o,[m.CLAIM]:{icon:[{icon:"icon_wd_dbylp.svg",color:"var(--skin__neutral_1)"},{icon:"icon_wd_dbylp2.svg",color:g.value}],iconSize:50}})),v=E(()=>[...t([m.CREDIT_LOAN,m.YUEBAO,{key:m.RECHARGE_FUND,iconRender:void 0,badge:""},m.COUPONS,m.REPORT_DETAILS,m.WITHDRAWMANAGEMENT,m.PROMOTE,m.SHARE_EARN,m.SHARE_HOLDING,m.AGENT_APPLY,m.CLUB_REBATE_MANAGEMENT,m.CLUB_QUOTA_MANAGEMENT,m.CLUB_APPLY,{key:m.CLAIM,iconRender:void 0},m.SETTINGS,m.MALL],i.value).map(d=>{var b;return d.key!==m.CLAIM||!((b=o[d.key])!=null&&b.icon)?d:{...d,...o[d.key]}})]),c=E(()=>[...t([m.KYC,m.SECURITY,m.DEVICE_INFO,m.FORBIDDENSELF],o)]),s=E(()=>[...t([m.MOMENTS,m.GOSSIP,m.FINDUS,m.COMMONQUESTION,m.FEEDBACK,m.ABOUT_US],o)]),u=E(()=>[...t([m.CURRENCY,m.LANUANGE,m.SWITCH_ACCOUNT,m.LOGINOUT],o)]),l=E(()=>[{title:e("lobby.theme82_dz.mine.financeManage"),list:v.value.filter(d=>!d.hidden)},{title:e("lobby.theme82_dz.mine.accountSafe"),list:c.value.filter(d=>!d.hidden)},{title:e("lobby.theme82_dz.mine.helpSupport"),list:s.value.filter(d=>!d.hidden)},{title:e("lobby.theme82_dz.mine.setting"),list:u.value.filter(d=>!d.hidden)}].filter(d=>d.list.length>0));return()=>a("div",{class:_n["grid-list-wrap"]},[l.value.map(d=>a(We,null,[a("h5",null,[d.title]),a(Pl,{class:_n["grid-menu"],gridData:d.list,iconPath:"/lobby_asset/{layout}-{bg}-common/web/profile/",className:{menuItem:_n.menuListItem,menuItemLabel:_n.menuItemLabel82}},null)]))])}}),Vo=111,jt=6;function Dl(){const e=Mt(),t=Ue(),n=q(),{t:o}=X(),r=F(null),g=F(!1),i=F(!1),v=()=>{t.push({name:O.EVENT})},c=E(()=>e.activeId?e.signList:[]),s=E(()=>{var h,f,T,p;const _=(h=e.signData.activeData)==null?void 0:h.signDay;return!_||!((f=c.value)!=null&&f.length)||((T=c.value)==null?void 0:T.length)<=jt?0:Math.min(_-jt/2,((p=c.value)==null?void 0:p.length)-jt)}),u=()=>{if(!r.value)return;const _=r.value,h=_.scrollLeft,f=_.scrollWidth-_.clientWidth;g.value=h>0,i.value=Math.abs(h-f)>1},l=(_=jt)=>{r.value&&r.value.scrollBy({left:-wo(Vo)*_,behavior:"smooth"})},d=(_=jt)=>{r.value&&r.value.scrollBy({left:wo(Vo)*_,behavior:"smooth"})},b=async()=>
2{if(await tn().getEventCategoriesAndEvents(),await e.freshPopData(!0),!e.activeId)return;const _=await e.getEventItemDetail(e.activeId,void 0,void 0,h=>{var f;return Ee.error(((f=h==null?void 0:h.data)==null?void 0:f.msg)||o("lobby.error.networkError"))});_&&e.updateSignData(_),_a(()=>{r.value&&(r.value.removeEventListener("scroll",u),r.value.addEventListener("scroll",u),u(),s.value&&d(s.value))})};return Kn(async()=>{b()}),ft(()=>n.hasLogined,async _=>{_&&(await In.setCacheExpired(oi),b())}),ai(()=>{r.value&&r.value.removeEventListener("scroll",u)}),{store:e,signList:c,contentRef:r,showLeft:g,showRight:i,toEventList:v,slideLeft:l,slideRight:d}}const Ml={signStatus:{type:Number,require:!0,default:et.Distributed},day:{type:Number,require:!0,default:0},extraPrize:{type:Number,require:!0,default:0},icon:{type:String,require:!0,default:""},rewardType:{type:Number,require:!0,default:Cn.Fixed},prize:{type:Number,require:!0,default:0},text:{type:String,require:!0,default:""},showLine:{type:Boolean,require:!1,default:!0},isRecoup:{type:Boolean,require:!1,default:!1},needBet:{type:Number,require:!1,default:0},needPay:{type:Number,require:!1,default:0}},xl=async(e,t="normal")=>(await In.request({url:"/api/active/sing",method:"POST",data:{...e}},{cache:{useCache:!1},oss:{enable:!1},error:{action:t}})).data,Bl={"sign-sucess":"_sign-sucess_s390u_91"},[Fl]=Nt("event-item-modes-sign-components-sign-item"),Ul=Z({name:Fl,emits:["close"],setup(e,{emit:t}){const{t:n}=X(),o=F(!0),r=F(!0),g=F(!0),i=F(!1),v=F(Tt.Award),{signData:c,signSucessData:s}=yt(Mt());ft(o,d=>{d&&(r.value=d,v.value===Tt.AdditionalRewards&&c.value.activeData&&s.value.extraPrize&&(c.value.activeData.receiveReward=c.value.activeData.receiveReward+s.value.extraPrize))});const u=()=>{if(!r.value){if(s.value.extraPrize&&v.value===Tt.Award){o.value=!0,v.value=Tt.AdditionalRewards,g.value=!0;return}t("close")}},l=E(()=>g.value?"nested-loading":i.value?"retry":null);return()=>{var d,b;return a("div",{class:Bl["sign-sucess"]},[a(xi,{class:"placeholder",type:l.value},{default:()=>[o.value?a(z,{class:"canvas-wraper",src:"/lobby_asset/common/web/animated/apng_event_qiandao.png",canvasMode:{numPlays:1,onEnd:()=>{o.value=!1}},onLoad:({type:_})=>{_===dn.Success?(g.value=!1,Lo.Receive()):_===dn.Error&&(g.value=!1,i.value=!0,o.value=!1,Lo.Receive())}},null):a(z,{class:"canvas-wraper",src:"/lobby_asset/common/web/animated/apng_event_qiandao2.png",canvasMode:{numPlays:1,onEnd:()=>{r.value=!1}},onLoad:({type:_})=>{_===dn.Success?g.value=!1:_===dn.Error&&(g.value=!1,i.value=!0,r.value=!1)}},null)]}),!o.value&&a("div",{class:"sign-sucess-info"},[a(En,{tag:"div",class:"prize-text",html:v.value===Tt.AdditionalRewards?n("lobby.event.sign.extraPrizeSuccessText",{x:`<span>${Pe((d=s.value.extraPrize)!=null?d:0,2)}</span>`}):n("lobby.event.sign.successText",{x:`<span>${Pe((b=s.value.prize)!=null?b:0,2)}</span>`})},null),!r.value&&a(si,{key:"icon",onClick:u,name:ii,class:"sign-close"},null)])])}}}),Pa={"sign-dialog":"_sign-dialog_1f9zj_91","sign-sucess-dialog":"_sign-sucess-dialog_1f9zj_96"},{t:jo}=X(),Hl=e=>{var t;return Date.now()/1e3<((t=e==null?void 0:e.startTime)!=null?t:0)},Vl=e=>{var t;return Date.now()/1e3>((t=e==null?void 0:e.endTime)!=null?t:0)},jl=e=>{const{t}=X();return{[se.Processing]:()=>t("lobby.event.sign.signIn"),[se.CanReceive]:()=>t("lobby.event.sign.hasSignIn"),[se.HasReceive]:()=>t("lobby.modal.task.distributed"),[se.Expired]:()=>t("lobby.modal.task.expired"),[se.Cancel]:()=>t("lobby.modal.task.cancel"),[se.PendingCheck]:()=>t("lobby.event.sign.signIn"),[se.PendingApply]:()=>t("lobby.event.pendingApply"),[se.Rejected]:()=>t("lobby.records.rejected")}[e]},Gl=async()=>{tt().close("afterRechargeActivity"),tt().close("eventSign")},ka=async(e,t=!1)=>{var _,h,f,T,p,C,w,k;const{notReceiveStatus:n,signData:o,isSigning:r,activeId:g,changeIsSigning:i,updateSignData:v,updateSignCacheData:c}=Mt();if(r)return;if(n||!o.id||e.signStatus!==et.UnSignIn)return!1;const s={receiveDeviceType:o==null?void 0:o.receiveDeviceType,receiveDeviceLoginType:o==null?void 0:o.receiveDeviceLoginType,taskCondition:o==null?void 0:o.taskCondition,taskCallback:async()=>{tt().close("afterRechargeActivity"),tt().close("eventSign")},activeId:Number(o.id)||g,activeType:O.EVENT};if(mt.stats("discountReceiveStats","start"),mt.stats("discountReceiveStats","statsCheckTime"),await zn.check({eventData:s,checkOptions:{[zt.logined]:!0,[zt.receiveType]:!0,[zt.task]:!0,[zt.forbidReceive]:!0}}))return!1;mt.stats("discountReceiveStats","statsCheckTime"),mt.stats("discountReceiveStats","statsApi"),i(!0);const[u,l]=await fa(xl({activeId:o.id,singDay:(_=e.day)!=null?_:0,isRecoup:e.isRecoup,IsAgainSign:t},"silent"));mt.stats("discountReceiveStats","statsApi"),mt.stats("discountReceiveStats","end"),Bi(ri.sensorEvents.DiscountReceive,{...await mt.payload("discountReceiveStats"),activeId:o.id,activeType:O.EVENT}),i(!1);const d=await zn.checkRes({config:{activeId:o.id,err:u!=null?u:{data:{msg:(h=l==null?void 0:l.data)==null?void 0:h.msg,code:(f=l==null?void 0:l.data)==null?void 0:f.msgCode}},mute:!u},checkOptions:{[Ao.userRestrict]:!0,[Ao.restrictWithId]:!0}});if(u||d)return;In.setCacheExpired(Yo);const{data:b}=l;((T=b.activeData)==null?void 0:T.id)===o.id&&((p=b.receiveData)!=null&&p.extraPrize&&((C=b.activeData)!=null&&C.activeData)&&(b.activeData.activeData.receiveReward=((w=b.activeData.activeData)==null?void 0:w.receiveReward)-((k=b.receiveData)==null?void 0:k.extraPrize)),v(b.activeData)),c(b.activeData),zl(l,e)},zl=(e,t)=>
2{var s,u,l,d;const{time:n,data:o}=e,{signData:r,updatePreSignTime:g,setSignSucessData:i,updateTodayAddSignDay:v}=Mt();if(!r.id)return!1;const{t:c}=X();if(Wl(o==null?void 0:o.activeData,n),v((s=o==null?void 0:o.activeData)==null?void 0:s.id),o.singResult===Wt.Success){$e().freshDiscountRedDot(),nn().updatePrize(),g(n*1e3,r.id);const b=o==null?void 0:o.receiveData;i({show:!0,prize:(u=b.prize)!=null?u:0,extraPrize:(l=b.extraPrize)!=null?l:0}),$l()}else if(o.singResult===Wt.StatusError){const{activeData:b}=o.activeData,_=b.signType===oo.Continuous?c("lobby.event.sign.continueSign",{x:b==null?void 0:b.signDays}):c("lobby.event.sign.grandSign",{x:b==null?void 0:b.signDays});Yl(_,t)}else if(o.singResult===Wt.ConditionError){const b=(d=o.activeData)==null?void 0:d.activeData,_=(b==null?void 0:b.havePay)<(b==null?void 0:b.needPay),{canRecoup:h,needPay:f}=b;ql({isRecharge:_,canRecoup:h,needPay:f,activeData:o.activeData})}else o.singResult===Wt.OtherError&&o.bigApplyReward>0?zn.check({eventData:{receiveStatus:se.PendingCheck,receiveCategory:$o.Max,amount:o.bigApplyReward,taskCallback:Gl,noReport:!0},checkOptions:{[zt.largeAmount]:!0}}):o.msg&&Gn({message:o.msg})},Wl=(e,t)=>{var c;const{updatePreSignTime:n}=Mt(),{getServerTime:o}=Bn();t||(t=o());const r=24*3600*1e3,g=(c=e==null?void 0:e.activeData)!=null?c:{},i=e==null?void 0:e.id,v=g.signDay-g.signDays;v===0||g.signDays===0&&v>0?n(t*1e3,i):g.signDays>0&&v>0&&n(t*1e3-r*v,i)},$l=async()=>{const e=await en.showDialog({className:Pa["sign-sucess-dialog"],overlayStyle:{backgroundColor:"rgba(0, 0, 0, 0.5)"},message:()=>J(Ul,{onClose:()=>e.close()}),showCancelButton:!1,showConfirmButton:!1,showCloseButton:!1,onConfirm:()=>{e.close()}})},Yl=async(e,t)=>{const{t:n}=X(),o=await en.showDialog({className:Pa["sign-dialog"],title:()=>n("lobby.receiveModal.kindTips"),type:"error",message:()=>J("div",{},e),showCancelButton:!1,confirmButtonText:t.isRecoup?n("lobby.event.sign.reSigning"):n("lobby.event.sign.signIn"),showCloseButton:!0,onConfirm:()=>{o.close(),ka(t,!0)}})},ql=async({isRecharge:e,canRecoup:t,needPay:n,activeData:o})=>{const{t:r}=X(),{rechargeBadgeCount:g,rechargeBadgeBg:i}=eo(),v=e&&g.value?g.value:void 0,c=Re(),s=await en.showDialog({title:()=>r("lobby.event.sign.signFailed"),type:"error",className:"sign-need-dialog",message:()=>J("div",{class:c.rtlClass},[J("p",{},r(e?"lobby.event.sign.insufficientRecharge":"lobby.event.sign.underBetting")),t?J("span",{class:"dialog-resigning-tip"},`ï¼${r("lobby.event.sign.reSigningTip")}ï¼`):""]),showCancelButton:!1,confirmButtonText:r(e?"lobby.event.sign.toRecharge":"lobby.event.sign.toGame"),confirmButtonBadgeText:v,confirmButtonBadge:{backgroundColor:i.value},showCloseButton:!0,onConfirm:()=>{s.close(),e?Fi().redirectRechargeChannel({rechargeScore:n,payEntryId:an.ACTIVITY}):ci({activeType:li.EventCenter,activeId:o.id,template:o.template,activeName:o.name}),tt().close("afterRechargeActivity"),tt().close("eventSign")}})},Od=e=>{const{t}=X();return e===0?"":t("lobby.event.sign.daysReward",{n:e})},Ql=e=>Hl(e)?(Gn({message:jo("lobby.event.discountCode.activityNotStarted")}),!1):Vl(e)?(Gn({message:jo("lobby.event.discountCode.activityHasEnded")}),!1):!0,Kl="_item_7mbb0_91",Xl="_caption_7mbb0_104",Zl="_picture_7mbb0_164",Ae={item:Kl,"has-sign":"_has-sign_7mbb0_100",caption:Xl,"is-recoup":"_is-recoup_7mbb0_107","sign-btn":"_sign-btn_7mbb0_113","is-today":"_is-today_7mbb0_117","sign-badge":"_sign-badge_7mbb0_120","reward-pattern":"_reward-pattern_7mbb0_135","received-box":"_received-box_7mbb0_143","bg-receive":"_bg-receive_7mbb0_152",picture:Zl,"reward-description":"_reward-description_7mbb0_169","text-wrap":"_text-wrap_7mbb0_172","random-reward":"_random-reward_7mbb0_184"},[Jl]=Nt("event-item-modes-sign-components-sign-item"),eu=Z({name:Jl,props:Ml,setup(e){const{t}=X(),{signData:n,signList:o,isSigning:r}=yt(Mt()),g=E(()=>e.signStatus===et.SignIn),i=E(()=>{var f;return(f=n.value)==null?void 0:f.activeData}),v=E(()=>{var f,T;return(T=(f=o.value)==null?void 0:f.length)!=null?T:1}),c=E(()=>{var T,p,C;const f=(p=(T=i.value)==null?void 0:T.signDay)!=null?p:0;return((C=i.value)==null?void 0:C.cycleType)===ao.CycleLastDay?Math.min(f,v.value):f>0?f%v.value||v.value:0}),s=E(()=>{var f;return(g.value||((f=e.day)!=null?f:0)>c.value)&&!e.isRecoup}),u=async()=>{Ql(n.value)&&await ka(e)},l=E(()=>{var f,T;return g.value?Pe((f=e.prize)!=null?f:0,2):e.rewardType===Cn.Fixed&&Pe((T=e.prize)!=null?T:0,2)||e.text}),d=E(()=>e.isRecoup&&e.signStatus===et.UnSignIn),b=E(()=>e.day===c.value),_=E(()=>{var T;const{signStatus:f}=e;return d.value?t("lobby.event.sign.reSigning"):(T=jl(f!=null?f:et.Distributed))==null?void 0:T()}),h=E(()=>a(Rt,{class:Ae["sign-badge"],backgroundColor:Un.AWARD,zIndex:1,content:t("lobby.event.sign.extraPrize")},null));return()=>{var f;return a("div",{class:{[Ae.item]:!0,[Ae["has-sign"]]:g.value,[Ae["is-recoup"]]:d.value,"is-recoup":d.value,[Ae["is-today"]]:b.value}},[e.extraPrize?h.value:null,a("div",{class:Ae["reward-description"]},[a("div",{class:{[Ae["text-wrap"]]:!0,[Ae["random-reward"]]:e.rewardType===Cn.Random}},[l.value])]),a("div",{class:Ae["reward-pattern"]},[a("div",{class:Ae["received-box"]},[a(z,{class:Ae.picture,src:(f=e.icon)!=null?f:"",onClick:s.value?void 0:u},null),g.value&&a(z,{class:Ae["bg-receive"],src:"/lobby_asset/common/common/event/qd_icon_gou.svg"},null)])]),a("div",{class:Ae.caption},[s.value?t("lobby.event.sign.dayCount",{x:e.day,X:e.day}):a(ui,{class:Ae["sign-btn"],type:"success",loading:r.value,disabled:e.signStatus!==et.UnSignIn,onClick:u,id:"eventReceiveClick","data-sensors-click":!0,formatTwoChineseCharacters:!1},{default:()=>[_.value]})])])}}}),tu="_header_nuat9_102",nu="_title_nuat9_108",ou="_tip_nuat9_117",au="_content_nuat9_160",Ie={"event-sign":"_event-sign_nuat9_91",header:tu,title:nu,tip:ou,"more-btn":"_more-btn_nuat9_122","icon-gift":"_icon-gift_nuat9_136","more-activities":"_more-activities_nuat9_143","btn-icon-arrow":"_btn-icon-arrow_nuat9_150",content:au,"align-center":"_align-center_nuat9_168","arrow-left":"_arrow-left_nuat9_177","arrow-right":"_arrow-right_nuat9_178","icon-arrow":"_icon-arrow_nuat9_206"},[su]=Nt("mine-event-sign"),iu=Z({name:su,inheritAttrs:!1,props:{moreActivitiesText:{type:String,require:!1,default:""}},setup(e,{attrs:t}){console.log(e);const{t:n}=X(),{signList:o,contentRef:r,showLeft:g,showRight:i,toEventList:v,slideLeft:c,slideRight:s}=Dl();return()=>{var u,l;return a(We,null,[!!((u=o.value)!=null&&u.length)&&a("div",ve({class:[Ie["event-sign"],"event-sign"]},t),[a("div",{class:Ie.header},[a("div",{class:Ie["header-left"]},[a("div",{class:Ie.title},[n("lobby.event.eventTypes.dailySign")]),a("div",{class:[Ie.tip,"event-sign-tip"]},[n("lobby.mine.sign.tip")])]),a("div",{class:[Ie["more-btn"],"event-sign-more-btn"],onClick:v},[a(z,{class:Ie["icon-gift"],src:"/lobby_asset/common/common/event/qd_img_icon2.png"},null),a("div",{class:[Ie["more-activities"],"event-sign-more-activities"]},[e.moreActivitiesText||n("lobby.modal.event.moreActivities")]),a(z,{class:Ie["btn-icon-arrow"],src:"/lobby_asset/common/web/common/comm_icon_fh.svg"},null)])]),a("div",{class:[Ie.content,{[Ie["align-center"]]:o.value.length<6}],ref:r},[((l=o.value)!=null?l:[]).map(d=>a(eu,ve({key:d.day},d),null)),g.value&&a("div",{class:Ie["arrow-left"],onClick:()=>c()},[a(z,{class:Ie["icon-arrow"],src:"/lobby_asset/common/web/common/comm_icon_fh.svg"},null)]),i.value&&a("div",{class:Ie["arrow-right"],onClick:()=>s()},[a(z,{class:Ie["icon-arrow"],src:"/lobby_asset/common/web/common/comm_icon_fh.svg"},null)])])])])}}}),ru="_icon_n797v_107",pt={"mine-account-toggle-box":"_mine-account-toggle-box_n797v_91","mine-account-toggle":"_mine-account-toggle_n797v_91",icon:ru,"mode-2":"_mode-2_n797v_118","icon-sort":"_icon-sort_n797v_127","icon-sort-active":"_icon-sort-active_n797v_130","account-number":"_account-number_n797v_133","mode-3":"_mode-3_n797v_148","mode-4":"_mode-4_n797v_156","mode-5":"_mode-5_n797v_159"},[cu]=le("mine-account-toggle"),lu=Z({name:cu,props:{mode:{type:String,default:ut.MODE1},useImage:{type:Boolean,default:!0},customerImg:{type:String,default:""}},setup(e){const{t}=X(),n=sn(),{visible:o}=vt("switchAccount"),r=E(()=>e.customerImg||`/lobby_asset/common/common/profile/style_${e.mode}_icon_qh.svg`);return()=>a("div",{class:pt["mine-account-toggle-box"]},[a(di,{isMine:!0,class:[pt["mine-account-toggle"],pt[`mode-${e.mode}`]]},{default:()=>[a(ma,{useImage:e.useImage,class:[pt.icon,"account-toggle-icon"],src:r.value},null),a("span",null,[t("lobby.mine.account.switchAccount")]),e.mode==ut.MODE2&&a(We,null,[a(z,{class:[pt["icon-sort"],o.value?pt["icon-sort-active"]:""],src:"/lobby_asset/common/web/common/comm_icon_sort.svg"},null),Ri(a("div",{class:pt["account-number"]},[n.localAccounts.length]),[[Pi,n.localAccounts.length>1]])])]})])}}),uu="_commonCurrency_53cw8_101",du="_item_53cw8_151",gu="_label_53cw8_160",Qe={"nav-card-container":"_nav-card-container_53cw8_91","user-info-container":"_user-info-container_53cw8_101",commonCurrency:uu,"un-login-btn":"_un-login-btn_53cw8_117","user-wallet":"_user-wallet_53cw8_134","nav-card":"_nav-card_53cw8_91",item:du,label:gu},[mu]=le("HeadButton"),_u=Z({name:mu,setup(){const{ownerMiddleIconMap:e}=Ot.useOwnerCustomizeIcon(),{t}=X(),n=q(),o=eo(),r=nn(),g=F([Ge("-0.3rem"),Ge("0")]),i=Ye(),v=Zt("mineNavCardUnloginRender",null),c=()=>a("ul",{class:Qe["nav-card"]},[!i.isHideRechargeEntry&&a("li",null,[a(Jn,ve({content:o.rechargeBadgeCount.value},r.payChargeBadge,{position:"top-right"}),{default:()=>[a(z,{class:[Qe.item],onClick:()=>
2{Xt({openType:"overlay",options:{payEntryId:an.PROFILE}})},src:e.get("rechargeIcon")||"/lobby_asset/{layout}-{bg}-{skin}/common/_sprite/icon_dt_1cz.png"},null)]}),a("p",{class:Qe.label},[t("lobby.plan.header.recharge")])]),!i.isHideWithdrawEntry&&a("li",null,[a(z,{class:[Qe.item],onClick:()=>yn(),src:e.get("withdrawIcon")||"/lobby_asset/{layout}-{bg}-{skin}/common/_sprite/icon_dt_1tx.png"},null),a("p",{class:Qe.label},[t("lobby.plan.header.withdraw")])])]),s=()=>a("div",{class:Qe["user-info-container"]},[n.hasLoginedComponent?a("div",{class:Qe["user-wallet"]},[a("h5",null,[t("lobby.theme82_dz.mine.walletBalance")]),a(gi,{class:Qe.commonCurrency,placement:"bottom-start",showUnderline:!0,offset:g.value,showSymbol:!0,showPopoverBorder:!1,useImage:!0,showSymbolBgFrame:!1,arrowIcon:"/lobby_asset/common/web/common/comm_icon_sort.svg",refreshIcon:"/lobby_asset/{layout}-{bg}-common/web/common/comm_icon_sx.svg"},null)]):v?v():a(El,{class:Qe["un-login-btn"],avatar:"",showUnloginTipsLabel:!1,hiddenInfo:!0,registerBadgeOffset:[-10,-46],designBgMode:"green"},null)]);return()=>a("div",{class:Qe["nav-card-container"]},[s(),c()])}}),Go=e=>({type:Object,default:()=>({...e})}),bu={openType:"overlay",options:{payEntryId:an.PROFILE}},La={bg:"/lobby_asset/{layout}-{bg}-{skin}/common/profile/img_db_vip.png",card:"/lobby_asset/{layout}-{bg}-common/common/profile/icon_vip_{level}.png",arrow:"/lobby_asset/common/web/common/comm_icon_fh.svg"},Na={bet:"lobby.theme82_dz.mine.vipProgressValidBet",recharge:"lobby.theme82_dz.mine.vipProgressCharge"},pu={imgSrc:Go(La),i18nKey:Go(Na),onCallback:{type:Object,default:()=>({})},styleModule:{type:Object,default:void 0}},Oa=()=>{const e=sn(),t=E(()=>{var l,d,b;const s=(d=(l=e.vipLevels)==null?void 0:l.VipSettings)!=null?d:[];let u=(b=s==null?void 0:s.findIndex(_=>_.vip===e.currentVip))!=null?b:0;return u<0&&(u=0),s[u+1]}),n=E(()=>{var u,l,d,b;return`VIP ${(b=(d=(u=e.vipInfos)==null?void 0:u.next_vip)!=null?d:(l=t.value)==null?void 0:l.vip)!=null?b:"1"}`}),o=E(()=>{var s,u,l;return e.vipInfos?(s=e.vipInfos)==null?void 0:s.need_deposit:(l=(u=t.value)==null?void 0:u.level_up_deposit)!=null?l:0}),r=E(()=>{var s,u,l;return e.vipInfos?(s=e.vipInfos)==null?void 0:s.next_vip_deposit:(l=(u=t.value)==null?void 0:u.level_up_deposit)!=null?l:0}),g=E(()=>{var s,u,l;return e.vipInfos?(s=e.vipInfos)==null?void 0:s.next_vip_validbet:(l=(u=t.value)==null?void 0:u.level_up_bet)!=null?l:0}),i=E(()=>{var s,u,l;return e.vipInfos?(s=e.vipInfos)==null?void 0:s.need_validbet:(l=(u=t.value)==null?void 0:u.level_up_bet)!=null?l:0}),v=E(()=>e.isTopVip),c=E(()=>e.currentVip.toString().split(""));return{nextLevelTotalDeposit:r,nextLevelTotalValidbet:g,nextItemInfo:t,levelGap:n,needDeposit:o,needValidbet:i,isTopVip:v,vipLevelArr:c}},vu=()=>{const e=Re(),t=sn(),n=Oa(),o=q(),r=$e(),g=mi(),i=E(()=>o.hasLogined&&n.isTopVip.value&&!g.isBlackUser.value),v=E(()=>{const p=t.currentVip%10;return t.currentVip>=10&&p===0?10:p}),c=(p=0,C=0)=>
2{if(p===0&&C!==0)return 0;if(p===0&&C===0||i.value||p===C)return 100;const w=no(p).div(C).times(100).toString();return Math.min(Number(Number(w).toFixed(2)),100)},s=E(()=>{var p;return o.hasLoginedComponent?`${c((p=t.vipInfos)==null?void 0:p.user_deposit,n.nextLevelTotalDeposit.value)}%`:"0%"}),u=E(()=>{var p;return o.hasLoginedComponent?`${c((p=t.vipInfos)==null?void 0:p.user_validbet,n.nextLevelTotalValidbet.value)}%`:"0%"}),l=E(()=>o.hasLoginedComponent?Pe(n.needDeposit.value):"--.--"),d=E(()=>{var p,C;return Pe((C=(p=t.vipInfos)==null?void 0:p.nex_vip_gift)!=null?C:0)}),b=E(()=>{var p,C,w,k;return{deposit:Pe((C=(p=t.vipInfos)==null?void 0:p.user_deposit)!=null?C:0),bet:Pe((k=(w=t.vipInfos)==null?void 0:w.user_validbet)!=null?k:0)}}),_=E(()=>o.hasLoginedComponent?Pe(n.needValidbet.value):"--.--"),h=E(()=>r.isShowVip&&o.hasLoginedComponent),f=E(()=>{var p;return(p=o.userInfos)==null?void 0:p.vip_level}),T=E(()=>t.vipInfosErr?"--":o.hasLoginedComponent?n.levelGap.value:"--");return{isTopVip:i,getPercent:c,depositProcessWidth:s,validbetProcessWidth:u,needDepositText:l,needValidbetText:_,lastVipLevel:v,vipLevelArr:n.vipLevelArr,vipStore:t,vipHooks:n,userStore:o,languageStore:e,isShowVip:h,promotionBonus:d,userDepositBetData:b,userVipLevel:f,levelGapText:T}},fu="_rtlClass_zxvvz_181",Wn={"vip-container":"_vip-container_zxvvz_91","vip-bg":"_vip-bg_zxvvz_100","vip-container-bg":"_vip-container-bg_zxvvz_105","vip-info-wrap":"_vip-info-wrap_zxvvz_
2112","vip-level":"_vip-level_zxvvz_118","vip-arrow":"_vip-arrow_zxvvz_132","vip-card":"_vip-card_zxvvz_150","vip-progress-container":"_vip-progress-container_zxvvz_156","vip-progress-label":"_vip-progress-label_zxvvz_168",rtlClass:fu,"vip-progress-bar":"_vip-progress-bar_zxvvz_200","progress-bar-content":"_progress-bar-content_zxvvz_208","vip-currency":"_vip-currency_zxvvz_211","vip-footer":"_vip-footer_zxvvz_214","process-bar-bg":"_process-bar-bg_zxvvz_220","process-bar-item":"_process-bar-item_zxvvz_229","process-bar-label":"_process-bar-label_zxvvz_234","max-tips":"_max-tips_zxvvz_237","large-promotion":"_large-promotion_zxvvz_291","process-text":"_process-text_zxvvz_302"},yu=Z({name:"VipCardStyle3RechargeBetRow",props:{rechargeHtml:{type:String,required:!0},betHtml:{type:String,required:!0},onRechargeClick:{type:Function,required:!0},onBetClick:{type:Function,required:!0},rtlClass:{type:[String,Array],default:""}},setup(e){const t=E(()=>{const n=Array.isArray(e.rtlClass)?e.rtlClass.join(" "):e.rtlClass;return`${Wn["process-text"]} ${n}`.trim()});return()=>a(We,null,[e.rechargeHtml&&a(En,{onClick:e.onRechargeClick,tag:"h5",class:t.value,html:e.rechargeHtml},null),e.betHtml&&a(En,{onClick:e.onBetClick,tag:"h5",class:t.value,html:e.betHtml},null)])}}),hu="_bar_12ggc_91",Su="_netErr_12ggc_96",Eu="_barItem_12ggc_100",Cu="_barLabel_12ggc_105",Tu="_netRetry_12ggc_111",Gt={bar:hu,netErr:Su,barItem:Eu,barLabel:Cu,netRetry:Tu},[Iu]=_i("vipProgress"),zo=Z({name:Iu,props:{type:{type:String,default:"recharge"},className:Object},setup(e){const t=sn(),n=Oa(),{vipInfos:o,vipInfosErr:r,vipTimeLoading:g}=yt(t),i=q(),v=E(()=>{var b,_;return i.isTemporaryAccountMode?0:e.type==="recharge"?((b=o.value)==null?void 0:b.user_deposit)||0:((_=o.value)==null?void 0:_.user_validbet)||0}),c=E(()=>e.type==="recharge"?n.nextLevelTotalDeposit.value||0:n.nextLevelTotalValidbet.value||0),s=E(()=>i.hasLoginedComponent?`${l(v.value,c.value)}%`:"0%"),u=E(()=>i.hasLoginedComponent?`${Pe(v.value)}/${Pe(c.value)}`:"--.--/--.--"),l=(b=0,_=0)=>{if(b===0&&_!==0)return 0;if(b===0&&_===0||t.isTopVip||b===_)return 100;const h=no(b).div(_).times(100).toString();return Math.min(Number(Number(h).toFixed(2)),100)},d=b=>{var _,h;return(h=(_=e.className)==null?void 0:_[b])!=null?h:""};return()=>a("div",{class:[Gt.bar,d("bg"),r.value?Gt.netErr:""]},[a("div",{style:{width:s.value},class:[Gt.barItem,!r.value&&d("bar")]},null),i.hasLoginedComponent&&r.value?a(ga,{class:Gt.netRetry,loading:g.value,onRetry:()=>{t.getVipInfos()},type:"icon"},null):a("span",{class:[Gt.barLabel,d("label")]},[u.value])])}}),[wu]=le("vip-style3"),Au=Z({name:wu,props:pu,setup(e,{slots:t}){const{t:n}=X(),o=Re(),r=E(()=>({...La,...e.imgSrc})),g=E(()=>({...Na,...e.i18nKey})),{isTopVip:i,needDepositText:v,needValidbetText:c,lastVipLevel:s,vipStore:u,vipHooks:l,isShowVip:d,languageStore:b,userDepositBetData:_}=vu(),h=()=>{var T;(T=e.onCallback)!=null&&T.onNavigateVip?e.onCallback.onNavigateVip():Je(O.VIP)},f=T=>{var w,k,y;const p=(k=(w=e.styleModule)==null?void 0:w[T])!=null?k:"",C=(y=Wn[T])!=null?y:"";return p&&C?`${C} ${p}`:p||C};return()=>{if(!d.value)return;const T=l.nextLevelTotalDeposit.value>0,p=l.nextLevelTotalValidbet.value>0,C={bg:f("process-bar-bg"),bar:f("process-bar-item"),label:f("process-bar-label")},w=T!==p,k=[f("vip-level"),w?f("vip-level-single-progress"):"",i.value?f("vip-level-top-vip"):""];return a("div",{class:f("vip-container")},[a("div",{class:f("vip-bg")},[a(z,{tag:"div",class:f("vip-container-bg"),src:r.value.bg},{default:()=>{var y,A,U,W;return[a("div",{class:f("vip-info-wrap")},[a("div",{class:k},[a("h5",{onClick:h},[t.vipLevel?t.vipLevel({currentVip:u.currentVip,vipLevelArr:l.vipLevelArr.value,lastVipLevel:s.value,s:f}):a("span",{class:f("vip-level-text")},[vn("VIP "),a("span",null,[u.currentVip])]),a(z,{src:r.value.arrow,class:f("vip-arrow")},null)]),!i.value&&a("p",{class:b.isRtlLayoutWithLeftAlign?f("rtlClass"):""},[n("lobby.reward.vip.rewardMap.promotion"),a("span",{class:Wn["large-promotion"]},[Pe((A=(y=u.vipInfos)==null?void 0:y.nex_vip_gift)!=null?A:0)])])]),a(z,{src:r.value.card.replace("{level}",String(s.value)),class:f("vip-card"),onClick:h},null)]),i.value?t.maxTips?t.maxTips({s:f,vipStore:u,vipHooks:l,isTopVip:i}):a("p",{class:f("max-tips"),dir:o.rtlClass?"rtl":"ltr"},[n("lobby.reward.base.isTopVip")]):t.progress?t.progress({s:f,vipHooks:l}):a("div",{class:f("vip-progress-container")},[a("div",{class:f("vip-progress-label")},[a(yu,{rechargeHtml:T?n(g.value.recharge,[v.value]):"",betHtml:p?n(g.value.bet,[c.value]):"",onRechargeClick:()=>{var V;(V=e.onCallback)!=null&&V.recharge?e.onCallback.recharge():Xt(bu)},onBetClick:()=>{var V;(V=e.onCallback)!=null&&V.bet?e.onCallback.bet():bi()},rtlClass:b.isRtlLayoutWithLeftAlign?f("rtlClass"):""},null)]),a("div",{class:[f("vip-progress-bar"),p&&T?f("vip-progress-bar-2"):""]},[T&&a("div",{class:f("progress-bar-content")},[a(zo,{className:C,type:"recharge"},null)]),p&&a("div",{class:f("progress-bar-content")},[a(zo,{className:C,type:"bet"},null)])]),a("div",{class:f("vip-currency")},[T&&a("p",{class:f("vip-footer")},[a("span",{class:f("vip-footer-current")},[_.value.deposit]),a("span",{class:f("vip-footer-divider")},[vn("/")]),Pe((U=l.nextLevelTotalDeposit.value)!=null?U:0)]),p&&a("p",{class:f("vip-footer")},[a("span",{class:f("vip-footer-current")},[_.value.bet]),a("span",{class:f("vip-footer-divider")},[vn("/")]),Pe((W=l.nextLevelTotalValidbet.value)!=null?W:0)])])])]}})])])}}}),Ru="_cardBg_1ovoa_91",Pu="_wrap_1ovoa_94",ku="_subInfo_1ovoa_100",Lu="_userName_1ovoa_104",Nu="_copyButton_1ovoa_148",Ou="_tips_1ovoa_160",Du="_avatar_1ovoa_165",re={cardBg:Ru,wrap:Pu,subInfo:ku,userName:Lu,"select-custom-name":"_select-custom-name_1ovoa_108","account-toggle":"_account-toggle_1ovoa_124","temp-account-mode":"_temp-account-mode_1ovoa_133","user-info-wrap":"_user-info-wrap_1ovoa_142",copyButton:Nu,tips:Ou,"avatar-content":"_avatar-content_1ovoa_165",avatar:Du,"profile-button":"_profile-button_1ovoa_180","btn-arrow-icon":"_btn-arrow-icon_1ovoa_189","dot-wrap":"_dot-wrap_1ovoa_203","bind-no-wallet-container":"_bind-no-wallet-container_1ovoa_207"},[Mu]=le("userCard"),xu=Z({name:Mu,setup(){const e=q(),t=Ue(),n=Ye(),o=Xn(),{showSettingDot:r}=kn(),{t:g}=X(),i=Zt("vipBgSrc",void 0),v=Zt("hideMineEventComponent",!1);return()=>{var c,s,u;return a("div",{class:re.cardBg},[a("div",{class:re.gradientBG},[a("div",{class:[re.wrap]},[a("div",{class:re.subInfo},[a(z,{tag:"div",class:re["avatar-content"],src:"/lobby_asset/{layout}-{bg}-{skin}/common/profile/icon_wd_tx.png"},{default:()=>[a(Nc,{class:re.avatar},{default:()=>[!e.hasLogined&&a(z,{class:re["avatar-img"],src:"/lobby_asset/common/common/common/default_man.png"},null)]})]}),a("div",{class:re.userName},[e.hasLoginedComponent?a(We,null,[a(pi,{isShowID:!1,class:[re["select-custom-name"],e.isTemporaryAccountMode?re["temp-account-mode"]:""]},{accountToggle:()=>a(lu,{class:re["account-toggle"],customerImg:"/lobby_asset/{layout}-{bg}-common/web/home/comm_icon_qhzh.svg"},null)}),a("p",{class:re["user-info-wrap"]},[a("span",{class:re.userIdWrap},[a("span",{class:[re.label]},[vn("ID: ")]),a("span",null,[(c=e.userInfos)==null?void 0:c.username])]),a(vi,{text:String((s=e.userInfos)==null?void 0:s.username),class:re.copyButton},null)])]):a("p",{class:re.tips},[g("lobby.theme82_dz.mine.tips",[(u=n.brandLogoInfos)==null?void 0:u.brandName])])])]),e.hasLoginedComponent&&a("div",{onClick:()=>t.push({name:O.SETTING}),class:re["profile-button"]},[a("div",{class:r.value&&`${kt["icon-dot-wrap"]} ${re["dot-wrap"]}`},[a("span",{class:re["btn-text"]},[g("lobby.plan.middle.menu.settings")])]),a(ma,{class:re["btn-arrow-icon"],src:"/lobby_asset/{layout}-{bg}-common/web/common/img_scroll_jt.svg"},null)])]),a(_u,null,null),a(fi,{class:re["bind-no-wallet-container"]},null),!v&&a(We,null,[a(iu,null,null)]),a(Qt,{place:oe.MINE_PROFILE_BELOW},null),a(Au,{imgSrc:{bg:i!=null?i:`/lobby_asset/{layout}-{bg}-${o.isNoBg?"common":"{skin}"}/common/profile/img_db_vip.png`}},null)])])}}}),Bu=e=>/[\u4e00-\u9fa5]/.test(e),Fu=()=>{const e=q(),t={height:{isChinese:70,notChinese:80}},n=E(()=>{var c;const v=(c=e.userInfos)==null?void 0:c.user_status;return v===At.Discouraging||v===At.Discouraged}),o=E(()=>{var v;return n.value&&!!((v=e.userInfos)!=null&&v.frontRemark)}),r=E(()=>{var v;return Bu(((v=e.userInfos)==null?void 0:v.frontRemark)||"")}),g=E(()=>({"--discourag-height":Le(r.value?t.height.isChinese:t.height.notChinese)})),i=E(()=>!r.value);return{isDiscouragShow:n,isDiscouragVisible:o,discourageHeightStyle:g,isSmallFontSize:i}},Uu="_discourag_1hjgg_91",Hu="_icon_1hjgg_109",Vu="_text_1hjgg_115",ju="_notChinese_1hjgg_127",Gu="_mode5_1hjgg_131",zu="_noPointerEvents_1hjgg_152",Ct={discourag:Uu,icon:Hu,text:Vu,notChinese:ju,mode5:Gu,noPointerEvents:zu},[Wu]=le("UserDiscourag"),$u=Z({name:Wu,props:{iconSrc:{type:String,default:"/lobby_asset/common/web/common/comm_icon_tc_gant.svg"},mode:Number,noPointerEvents:{type:Boolean,default:!0}},setup(e){const t=q(),{isDiscouragVisible:n,discourageHeightStyle:o,isSmallFontSize:r}=Fu(),g=()=>{var i;return a("div",{style:o.value,class:[Ct.discourag,Ct[`mode${e.mode}`],e.noPointerEvents&&Ct.noPointerEvents,r.value&&Ct.notChinese,"user-discourag"]},[a(z,{class:Ct.icon,src:e.iconSrc},null),a("span",{class:Ct.text},[(i=t.userInfos)==null?void 0:i.frontRemark])])};return()=>{if(!n.value)return null;const i=e.mode===ro.MODE_5,v=i&&{height:`calc(${o.value["--discourag-height"]} + var(--discourag-bottom-to-tab, 0.2rem))`};return i?a("div",{style:v},[g()]):g()}}}),Yu="_header_qkhnb_104",qu="_headerContainer_qkhnb_110",Qu="_content_qkhnb_137",Ku="_marketingBottom_qkhnb_158",Xe={"theme82-profile":"_theme82-profile_qkhnb_91","theme-mine-bg":"_theme-mine-bg_qkhnb_96",header:Yu,headerContainer:qu,"has-unread-msg":"_has-unread-msg_qkhnb_127",content:Qu,"market-mine-top":"_market-mine-top_qkhnb_142","mine-sticky-header":"_mine-sticky-header_qkhnb_148",marketingBottom:Ku};function Xu(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Dt(e)}const[Zu]=le("mine-theme-82"),Ju=Z({name:Zu,props:{headIconConfig:{required:!1,default:{service:"/lobby_asset/{layout}-{bg}-common/web/profile/icon_top_kf.svg",message:"/lobby_asset/{layout}-{bg}-common/web/profile/icon_top_xx.svg",unReadMessage:"/lobby_asset/{layout}-{bg}-common/web/profile/icon_top_xxwd.svg",setting:"",scanCode:""}},stickyHeader:Boolean},setup(e){const t=da(),{unreadAnnouncement:n,unreadNotice:o,unReadNum:r}=yt(t),g=E(()=>n.value+o.value+r.value);return()=>{const i=a("div",{class:[Xe.header,g.value>0?Xe["has-unread-msg"]:""]},[a(ya,null,null),a(Kc,{class:Xe.headerContainer,isNeedText:!1,iconPath:e.headIconConfig},null)]);return a("div",{class:Xe["theme82-profile"]},[a(z,{class:Xe["theme-mine-bg"],tag:"div",src:"/lobby_asset/{layout}-{bg}-common/common/profile/img_topbg.png"},{default:()=>[e.stickyHeader?a(Ui,{useNative:!0,zIndex:10,class:Xe["mine-sticky-header"]},Xu(i)?i:{default:()=>[i]}):i,a("div",{class:Xe.content},[a(Qt,{class:Xe["market-mine-top"],place:oe.MINE_TOP},null),a(xu,null,null),a(Qt,{place:oe.MINE_MIDDLE}
2,null),a(Ol,null,null),a(Qt,{class:Xe.marketingBottom,place:oe.MINE_BELOW},null),a($u,{noPointerEvents:!0,mode:ro.MODE_5},null)])]})])}}}),ed="_main_5hkv1_91",td="_isExpandTabbar_5hkv1_98",nd="_back_5hkv1_176",bn={main:ed,isExpandTabbar:td,back:nd,"theme-3":"_theme-3_5hkv1_192","theme-4":"_theme-4_5hkv1_195","theme-5":"_theme-5_5hkv1_198"},[od]=le("pages-home-mine"),ad=Z({name:od,props:{layoutScrollbarTrigger:{type:String,default:"always"}},setup(e){const{homeLayoutInfos:t}=dt(),n=$e(),o=sn(),r=on(),g=Zn(),i=q();Xn();const v=Ye(),c=ea(),{getEventCategoriesAndEvents:s}=tn(),u=Rn(),{isExpandTabbar:l}=Er(),{getKYCStatus:d}=pa(),b=yi(),_=E(()=>{var p,C;return((C=(p=t==null?void 0:t.baseConfig)==null?void 0:p.appMyPage)==null?void 0:C.toString())||ut.MODE1});let h=!1;const f=async()=>{if(!h){h=!0;try{je.enable||u.getClubApplyConfig(),s(),g.getUnreadMsgCnt(),n.isShowInterest&&Jo().request(0),r.isShowPromote&&(r.getPromoteAdvertise(),v.isClubSite&&r.getPromoteAuth()),o.getVipInfos(),o.getVipDetails(),o.getVipLevelList(),Promise.all([o.getLocalAccounts(),d(),c.getCurrentPeriodReward()])}catch(T){sa.error(`mine init: ${T}`)}h=!1}};return ft(()=>{var T;return(T=i.userInfos)==null?void 0:T.game_gold},o.getLocalAccounts),ft(()=>{var T;return(T=i.userInfos)==null?void 0:T.username},()=>{var T;(T=i.userInfos)!=null&&T.username&&i.hasLogined&&f()}),to(f),ki(()=>{d()}),()=>{var T;return a(hi,{layoutScrollbarTrigger:e.layoutScrollbarTrigger,class:{[bn.main]:!0,[bn.isExpandTabbar]:l.value},"data-show-big-icon":~~((T=b.showIconPlus.value)!=null?T:0)},{default:()=>[a(ya,{class:[bn.back,bn["theme-"+_.value]]},null),a(Ju,null,null)]})}}}),Dd=Object.freeze(Object.defineProperty({__proto__:null,default:ad},Symbol.toStringTag,{value:"Module"}));export{Nc as $,Ji as A,Cn as B,Nd as C,it as D,m as E,Od as F,ao as G,oo as H,Jt as I,Wl as J,Xi as K,Ki as L,tr as M,vd as N,pd as O,yd as P,fd as Q,Ed as R,Ml as S,hd as T,Pn as U,so as V,Cd as W,co as X,Sd as Y,Uo as Z,El as _,Rn as a,md as a0,_d as a1,bd as a2,Td as a3,nl as a4,Dd as a5,Mt as b,Yi as c,Me as d,nr as e,Ea as f,er as g,kt as h,Rd as i,Ad as j,Pd as k,Id as l,kd as m,wd as n,Xr as o,qr as p,ke as q,rn as r,Zr as s,Ld as t,Sa as u,Sc as v,et as w,jl as x,Ql as y,ka as z};
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.