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