import{b7 as N,t as W,a as A,u as E,O as P,cF as z,c0 as J,aY as T,aT as F,a$ as i,N as t,bd as H,ba as X,m as Y,a_ as h,b0 as b,c as j,bf as u,r,bi as m,c$ as q,z as K,aX as Q}from"./index-xnhGKCfe.js";import{U as Z,a as ee}from"./menus-DBRpC2v3.js";import{U as te}from"./level-Oen3Tayd.js";import oe from"./accountAndSecurity-DV8YrjSb.js";import ne from"./settings-BjdfP4_w.js";import se from"./layoutWarning-CD_vfu6-.js";import le from"./bindEmail-BbQqsWK-.js";import ae from"./bindPassword-BqUuVNfH.js";import ie from"./LogonComp-BOHpBHfS.js";import{u as ue}from"./useNotifications-D5cP5bJF.js";import"./currency-DTUBf2lI.js";import"./info.vue_vue_type_script_setup_true_lang-Br2EH1Hy.js";import"./avatar-B_JRPXTn.js";import"./common-CGnrk9PK.js";import"./avatar-COhUS_hQ.js";import"./useCopy.hook-BtNGdOST.js";import"./index-blEDOb-M.js";import"./index-qMeHMTSW.js";/* empty css              */import"./index-D09RZK4J.js";import"./TurnstileInline-BJynT3vQ.js";import"./useLogin-B_VC5_H5.js";const re={class:"user-warpper"},me={class:"wallet_box"},ce={class:"loginDialog"},de=N({__name:"content_004",emits:["close"],setup(pe,{emit:_}){const{on:y,off:$}=z(),l=W(),{userUnreadInmailCount:U,verifyPhone:w,getUserInfo:S,userUnGrandMsgCount:B}=K(),{isOpenUserRank:O}=A(),s=_,{isMenuEnter:R}=ue(),{getImgVal:x}=Y(),{t:a}=E(),v=r(!1),c=r(!1),k=r(!1),p=r(!1),f=r(!1),d=r(!1),g=r(!1),I=()=>{s("close"),l.push({name:"withdraw"})},M=()=>{s("close"),l.push({name:"recharge"})};function D(){p.value=!1,s("close"),l.push({name:"workOrder"})}function G(n){switch(f.value=!1,n){case"password":p.value=!0;break;case"email":k.value=!0;break;case"phone":c.value=!0;break}}const L=j(()=>[{key:"Notifications",text:a("t1019"),num:U.value||B.value,icon:"icon_notifications",onClick:()=>{s("close"),l.push({name:"Message"}),R.value=!0}},{key:"BalanceRecords",text:a("t1020"),icon:"icon_balance_records",onClick:()=>{s("close"),l.push({name:"Records-Detail"})}},{key:"BetRecords",text:a("t206"),icon:"icon_nav_games_02",onClick:()=>{s("close"),l.push({name:"BetRecords"})}},{key:"GameStats",text:a("t207"),icon:"icon_nav_games_03",onClick:()=>{s("close"),l.push({name:"GameStats"})}},{key:"AccountSecurity",text:a("t1018"),icon:"icon_accountsecurity",onClick:()=>{if(!w.value){c.value=!0;return}f.value=!0}},{key:"Live Support",text:a("t1021"),icon:"icon_livesupport",onClick:()=>{s("close"),l.push({name:"workOrder"})}},{key:"Ranking",text:a("t439"),icon:"icon_ranking",isOpen:O.value,onClick:()=>{s("close"),l.push({name:"ranking"})}},{key:"Gifts",text:a("t502"),icon:"icon_gifts",onClick:()=>{s("close"),l.push({name:"gift"})}},{key:"Ticket",text:a("t754"),icon:"icon_ticket",onClick:()=>{s("close"),l.push({name:"ticket"})}},{key:"Settings",text:a("t1022"),icon:"icon_settings",onClick:()=>{g.value=!0}},{key:"Logout",text:a("t1050"),icon:"icon_logout",onClick:()=>{d.value=!0}}].filter(n=>n.isOpen===void 0||n.isOpen));async function V(n){n.HasUnread&&await S(!0)}return P(()=>{y("message",V)}),J(()=>{$("message",V)}),(n,e)=>{const C=h;return F(),T("div",re,[i("div",{class:"user-wrapper_bg",style:H({background:`url(${X(x)("slide_header")}) no-repeat center center / contain`})},null,4),t(Z),t(te,{onRouterChange:e[0]||(e[0]=o=>s("close"))}),i("div",me,[i("div",{class:"menu_item",onClick:M},[t(C,{name:"icon_deposit_menu","icon-class":"menu_icon"}),i("span",null,b(n.$t("t56")),1)]),i("div",{class:"menu_item",onClick:I},[t(C,{name:"icon_withdraw_menu","icon-class":"menu_icon"}),i("span",null,b(n.$t("t108")),1)])]),t(ee,{menus:L.value},null,8,["menus"]),t(m,{modelValue:v.value,title:n.$t("t1191"),onClose:e[1]||(e[1]=o=>v.value=!1)},{default:u(()=>[i("div",ce,[t(ie)])]),_:1},8,["modelValue","title"]),t(m,{modelValue:c.value,"onUpdate:modelValue":e[3]||(e[3]=o=>c.value=o),title:n.$t("t1015")},{default:u(()=>[t(q,{onSuccess:e[2]||(e[2]=o=>c.value=!1)})]),_:1},8,["modelValue","title"]),t(m,{modelValue:k.value,"onUpdate:modelValue":e[4]||(e[4]=o=>k.value=o),title:n.$t("t1016")},{default:u(()=>[t(le)]),_:1},8,["modelValue","title"]),t(m,{modelValue:p.value,"onUpdate:modelValue":e[6]||(e[6]=o=>p.value=o),title:n.$t("t1017")},{default:u(()=>[t(ae,{onClose:e[5]||(e[5]=o=>p.value=!1),onJumpWorkOrder:D})]),_:1},8,["modelValue","title"]),t(m,{modelValue:f.value,"onUpdate:modelValue":e[7]||(e[7]=o=>f.value=o),title:n.$t("t1018")},{default:u(()=>[t(oe,{onClickItem:G})]),_:1},8,["modelValue","title"]),t(m,{modelValue:d.value,"onUpdate:modelValue":e[11]||(e[11]=o=>d.value=o),title:n.$t("t1014"),"hide-close":!0},{default:u(()=>[t(se,{onClickSettings:e[8]||(e[8]=o=>{d.value=!1,c.value=!0}),onClose:e[9]||(e[9]=o=>{s("close"),d.value=!1}),onGestLogout:e[10]||(e[10]=o=>{d.value=!1,v.value=!0})})]),_:1},8,["modelValue","title"]),t(m,{modelValue:g.value,"onUpdate:modelValue":e[12]||(e[12]=o=>g.value=o),title:n.$t("t1022")},{default:u(()=>[t(ne)]),_:1},8,["modelValue","title"])])}}}),Ne=Q(de,[["__scopeId","data-v-93334fd1"]]);export{Ne as default};
