import{j as e,a as d,F as b,A as h}from"./antd.c323f587.js";import{u as p,a as t}from"./Link.e66d18a6.js";import{d as j,u as x}from"./index.5fa92bd5.js";import{s as N}from"./index.a5de5d12.js";import{c as l}from"./Mustache.3156ce03.js";import"./react.dcf569d1.js";import"./Groups.164b9901.js";import"./Roles.b29dacff.js";function C({item:a}){var u,i,c,f,m;const{user:s}=j(),{openLink:v}=p(),n=x(),{value:y}=t(async()=>!a.name||a.name.length==0?(s==null?void 0:s.name)||"\u533F\u540D":await l(a.name,n)||(s==null?void 0:s.name)||"\u533F\u540D",[a.name,n,s==null?void 0:s.name]),{value:r}=t(async()=>{if(!(!a.nameSuffix||a.nameSuffix.length==0))return await l(a.nameSuffix,n)},[a.nameSuffix,n]),{value:o}=t(async()=>{if(!(!a.jobTitle||a.jobTitle.length==0))return await l(a.jobTitle,n)},[a.jobTitle,n]);return e("div",{className:N.userCard,style:(u=a.styles)==null?void 0:u.default,children:s&&d(b,{children:[e(h,{className:"avatar",src:s.avatar||"about:blank",style:(i=a.styles)==null?void 0:i.avatar}),d("div",{className:"info",children:[e("div",{className:"name",children:y}),r&&e("div",{className:"name-suffix",style:(c=a.styles)==null?void 0:c.nameSuffix,children:r}),o&&e("div",{className:"job-title",style:(f=a.styles)==null?void 0:f.jobTitle,children:o})]}),e("div",{className:"buttons",children:e("div",{className:"button",style:(m=a.styles)==null?void 0:m.button,onClick:()=>{v("@page:.home")},children:"\u8FD4\u56DE\u9996\u9875"})})]})})}export{C as default};
