import{d,r as p,w as h,o as v,A as y,B as a,f as e,a as l,E as r,G as _,dx as i,__tla as g}from"./index-92ad187a.js";import{E as x,a as E,__tla as I}from"./el-descriptions-item-809b8296.js";import{__tla as w}from"./Descriptions.vue_vue_type_style_index_0_scoped_76061901_lang-92b7bab7.js";import{D as n,__tla as A}from"./DescriptionsItemLabel-630eb5a7.js";import{g as P,__tla as R}from"./index-6b3c94bd.js";import{_ as B}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as D}from"./DictTag.vue_vue_type_script_lang-96bcb962.js";import"./color-6e929987.js";import{__tla as G}from"./dict-221f3e01.js";let m,N=Promise.all([(()=>{try{return g}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return w}catch{}})(),(()=>{try{return A}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return D}catch{}})(),(()=>{try{return G}catch{}})()]).then(async()=>{m=B(d({__name:"UserAccountInfo",props:{user:{}},setup(b){const c=b,u={balance:0,totalExpense:0,totalRecharge:0},o=p(u);return h(()=>c.user.id,()=>(async()=>{if(!c.user.id)return void(o.value=u);const s={userId:c.user.id};o.value=await P(s)||u})(),{immediate:!0}),(s,U)=>{const t=x,f=E;return v(),y(f,{column:2},{default:a(()=>[e(t,null,{label:a(()=>[e(l(n),{label:" \u7B49\u7EA7 ",icon:"svg-icon:member_level"})]),default:a(()=>[r(" "+_(s.user.levelName||"\u65E0"),1)]),_:1}),e(t,null,{label:a(()=>[e(l(n),{label:" \u6210\u957F\u503C ",icon:"ep:suitcase"})]),default:a(()=>[r(" "+_(s.user.experience||0),1)]),_:1}),e(t,null,{label:a(()=>[e(l(n),{label:" \u5F53\u524D\u4F63\u91D1 ",icon:"ep:coin"})]),default:a(()=>[r(" "+_(s.user.point||0),1)]),_:1}),e(t,null,{label:a(()=>[e(l(n),{label:" \u603B\u4F63\u91D1 ",icon:"ep:coin"})]),default:a(()=>[r(" "+_(s.user.totalPoint||0),1)]),_:1}),e(t,null,{label:a(()=>[e(l(n),{label:" \u5F53\u524D\u4F59\u989D ",icon:"svg-icon:member_balance"})]),default:a(()=>[r(" "+_(l(i)(l(o).balance||0)),1)]),_:1}),e(t,null,{label:a(()=>[e(l(n),{label:" \u652F\u51FA\u91D1\u989D ",icon:"svg-icon:member_expenditure_balance"})]),default:a(()=>[r(" "+_(l(i)(l(o).totalExpense||0)),1)]),_:1}),e(t,null,{label:a(()=>[e(l(n),{label:" \u5145\u503C\u91D1\u989D ",icon:"svg-icon:member_recharge_balance"})]),default:a(()=>[r(" "+_(l(i)(l(o).totalRecharge||0)),1)]),_:1})]),_:1})}}}),[["__scopeId","data-v-edf34f0e"]])});export{N as __tla,m as default};
