1import{j as e}from"./app-BZl21zSa.js";import{A as i}from"./Avatar-CifLqQ2Q.js";import{R as x}from"./RolePill-DY1NWTZR.js";import{U as n}from"./user-BrAiDhtt.js";import{M as o}from"./mail-CAnl-C9Z.js";import"./urlHelper-l-vL0Rcp.js";import"./index-Be81nlU3.js";function g({user:s,className:m,...r}){var a,l;return e.jsxs("div",{className:`w-full p-2 flex justify-start bg-white border border-gray-200 rounded-lg shadow sm:p-4 ${m} hover:shadow-md`,...r,children:[e.jsx(i,{user:s,size:20}),e.jsxs("div",{className:"flex flex-col mx-6 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("span",{className:"text-md font-bold text-gray-900",children:`${s.name} ${s.lastname||""}`}),s.has_persona&&e.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-blue-100 text-blue-800",children:[e.jsx(n,{size:12,className:"mr-1"}),"UCALP"]}),((a=s.persona)==null?void 0:a.mail_ucalp)&&e.jsxs("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800",children:[e.jsx(o,{size:12,className:"mr-1"}),"Workspace"]})]}),e.jsx("p",{className:"text-sm text-gray-500",children:s.email}),((l=s.persona)==null?void 0:l.mail_ucalp)&&e.jsxs("p",{className:"text-xs text-blue-600 mt-1",children:["ð§ ",s.persona.mail_ucalp]})]}),e.jsx("div",{className:"ml-auto",children:Array.isArray(s.roles)&&s.roles.length>0?s.roles.map(t=>e.jsx(x,{role:t,className:"m-2"},t.id)):e.jsx("span",{className:"text-gray-600 text-xs",children:"No hay roles asignados"})})]},s.id)}export{g as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.