import{b7 as M,b$ as z,t as W,a as O,Z as P,as as R,m as F,O as H,z as X,bM as Y,bN as k,bW as Z,c as y,aY as s,aT as n,a$ as d,bg as x,bh as j,bc as u,ba as a,b9 as S,b0 as i,b_ as q,aX as J}from"./index-xnhGKCfe.js";import{G as K}from"./guestTabs-CSCqrApc.js";import{u as Q}from"./useHomeBasic-t3qfyrNL.js";const ee={class:"app-tabber"},ae={class:"items"},te=["id","onClick"],se=["src"],ne={key:0,class:"turn"},oe={key:0,class:"tips"},ce=M({__name:"010",props:{tabs:{default:()=>[{name:"home",text:"t44"},{name:"activity",text:"t813"},{name:"turntable",text:"t719",img:"turntable_home"},{name:"promotion",text:"t720"},{name:"main",text:"t1006"}]},isShowAmount:{type:Boolean,default:!1}},setup(m){var f;z(e=>({v01b6f9d7:a(A),ab42641a:a(G)}));const{userUnreadInmailCount:b,userUnGrandMsgCount:B,getUserInfo:C}=X(),{activityCount:_}=Q(),g=m,p=W(),{getImgVal:T,getBackgroundImgVal:v}=F(),{currencySign:l,getToken:I}=O(),{giftpackInfo:w}=P(),o=R(),A=v("barBg"),G=v("turnable_mask"),r=(f=g.tabs[2])==null?void 0:f.name,N=new Set(g.tabs.map(e=>e.name)),U=y(()=>N.has(o.name)),V=y(()=>{var c;return`Get ${l.value&&l.value!=="undefined"?l.value:""}${((c=w.value)==null?void 0:c.invitedWheelTotalPrizeAmount)??0}`});function $(e){const c=o.name===e.name&&e.name!==r;return T(c?e.img||`${e.name}_a`:e.img||e.name)}const D=e=>e==="MENU"?"bellow":"menu";function E(e){if(!K.has(e)&&!I()){p.push({name:"Login"});return}p.push({name:e})}return H(()=>{C(!0)}),(e,c)=>{const L=Y("sound");return k((n(),s("div",ee,[d("div",ae,[(n(!0),s(x,null,j(m.tabs,(t,h)=>k((n(),s("div",{key:h,id:t.name,class:u(["app-tabber-item",{play:t.name===a(r)}]),onClick:()=>E(t.name)},[d("img",{src:$(t),class:u(["img_"+h,{found:a(o).name===t.name&&a(o).name!=="turntable"}])},null,10,se),d("div",{class:u(["text",{mid:t.name===a(r),active:a(o).name===t.name}])},[t.name===a(r)&&m.isShowAmount?(n(),s("p",ne,i(V.value),1)):(n(),s(x,{key:1},[q(i(e.$t(t.text)),1)],64))],2),t.name==="activity"&&a(_)?(n(),s("i",oe,i(a(_)),1)):S("",!0),t.name==="main"?(n(),s("i",{key:1,class:u(a(b)?"tips":a(B)?"tips_point":"")},i(a(b)||""),3)):S("",!0)],10,te)),[[L,void 0,D(t.name)]])),128))])],512)),[[Z,U.value]])}}}),me=J(ce,[["__scopeId","data-v-919c0fe8"]]);export{me as default};
