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