import{d as p,r as d,aM as v,o as h,x as y,w as a,f as e,a as l,y as r,t as n,an as i,_ as g,__tla as x}from"./index-8dc1e40a.js";import{E as w,a as I,__tla as E}from"./el-descriptions-item-bf830d0d.js";import{__tla as R}from"./Descriptions.vue_vue_type_style_index_0_scoped_aee191e8_lang-28f1a0fd.js";import{D as s,__tla as U}from"./DescriptionsItemLabel-33632d14.js";import{g as A,__tla as D}from"./index-1c0448c8.js";import{__tla as P}from"./DictTag-85aade2b.js";import"./color-6e929987.js";import{__tla as k}from"./dict-f13a3c8f.js";let m,q=Promise.all([(()=>{try{return x}catch{}})(),(()=>{try{return E}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return U}catch{}})(),(()=>{try{return D}catch{}})(),(()=>{try{return P}catch{}})(),(()=>{try{return k}catch{}})()]).then(async()=>{m=g(p({__name:"UserAccountInfo",props:{user:{type:null,required:!0}},setup(b){const u=b,c={balance:0,totalExpense:0,totalRecharge:0},o=d(c);return v(()=>u.user.id,()=>(async()=>{if(!u.user.id)return void(o.value=c);const _={userId:u.user.id};o.value=await A(_)||c})(),{immediate:!0}),(_,z)=>{const t=w,f=I;return h(),y(f,{column:2},{default:a(()=>[e(t,null,{label:a(()=>[e(l(s),{label:" \u7B49\u7EA7 ",icon:"svg-icon:member_level"})]),default:a(()=>[r(" "+n(_.user.levelName||"\u65E0"),1)]),_:1}),e(t,null,{label:a(()=>[e(l(s),{label:" \u6210\u957F\u503C ",icon:"ep:suitcase"})]),default:a(()=>[r(" "+n(_.user.experience||0),1)]),_:1}),e(t,null,{label:a(()=>[e(l(s),{label:" \u5F53\u524D\u79EF\u5206 ",icon:"ep:coin"})]),default:a(()=>[r(" "+n(_.user.point||0),1)]),_:1}),e(t,null,{label:a(()=>[e(l(s),{label:" \u603B\u79EF\u5206 ",icon:"ep:coin"})]),default:a(()=>[r(" "+n(_.user.totalPoint||0),1)]),_:1}),e(t,null,{label:a(()=>[e(l(s),{label:" \u5F53\u524D\u4F59\u989D ",icon:"svg-icon:member_balance"})]),default:a(()=>[r(" "+n(l(i)(l(o).balance||0)),1)]),_:1}),e(t,null,{label:a(()=>[e(l(s),{label:" \u652F\u51FA\u91D1\u989D ",icon:"svg-icon:member_expenditure_balance"})]),default:a(()=>[r(" "+n(l(i)(l(o).totalExpense||0)),1)]),_:1}),e(t,null,{label:a(()=>[e(l(s),{label:" \u5145\u503C\u91D1\u989D ",icon:"svg-icon:member_recharge_balance"})]),default:a(()=>[r(" "+n(l(i)(l(o).totalRecharge||0)),1)]),_:1})]),_:1})}}}),[["__scopeId","data-v-057b9a78"],["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/member/user/detail/UserAccountInfo.vue"]])});export{q as __tla,m as default};
