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