import{f as N}from"./date-20546ee0.js";import{s as S,p as V,S as w,q as C}from"./ui-ba7aaa7e.js";import{e as P,r as g,P as k,a3 as E,a4 as r,Q as I,f as u,a7 as a,H as T,ab as t,I as q,a9 as A}from"./vue-bf422dc1.js";const H={key:0,title:"账户资料"},Q={name:"EditPopup"},K=P({...Q,setup(U,{expose:h}){const e=g({}),s=g(!1);h({init:i=>{e.value={...i},s.value=!0}});const z=async()=>{s.value=!1};return(i,p)=>{const B=S,c=V,v=w,D=C;return k(),E(D,{visible:s.value,"onUpdate:visible":p[0]||(p[0]=l=>s.value=l),size:"100%","close-on-overlay-click":!1,"destroy-on-close":!0,header:"详情","on-confirm":z},{default:r(()=>[s.value?(k(),I("div",H,[u(v,{align:"center","break-line":""},{separator:r(()=>[u(c,{layout:"vertical"})]),default:r(()=>{var l,n,o,_,m,f,d,y,b,x;return[a("span",null,[u(B,{src:(l=e.value)==null?void 0:l.avatar,size:"large",style:{"margin-right":"10px"}},null,8,["src"]),T(" 账号："+t((n=e.value)==null?void 0:n.username),1)]),a("span",null,"手机号："+t((o=e.value)==null?void 0:o.mobile),1),a("span",null,"邮箱："+t((_=e.value)==null?void 0:_.email),1),a("span",null,"状态："+t(((m=e.value)==null?void 0:m.status)===1?"启用":"禁用"),1),a("span",null,"是否冻结："+t(((f=e.value)==null?void 0:f.is_freeze)===1?"是":"否"),1),a("span",null,"注册时间："+t(q(N)((d=e.value)==null?void 0:d.create_at)),1),a("span",null,"最后登录IP："+t((y=e.value)==null?void 0:y.ip),1),a("span",null,"下级商户数："+t((b=e.value)==null?void 0:b.sub_user_count),1),a("span",null,"店铺名："+t((x=e.value)==null?void 0:x.shop_name),1)]}),_:1}),u(v,{style:{"padding-left":"60px"}},{separator:r(()=>[u(c,{layout:"vertical"})]),default:r(()=>{var l,n,o;return[a("span",null,"余额："+t((l=e.value)==null?void 0:l.money),1),a("span",null,"冻结金额："+t((n=e.value)==null?void 0:n.freeze_money),1),a("span",null,"佣金："+t((o=e.value)==null?void 0:o.rebate),1)]}),_:1})])):A("",!0)]),_:1},8,["visible"])}}});export{K as _};
