import{j as r,b7 as o,bi as l,F as u,ck as m}from"./app-BgLa5dit.js";import{s as c}from"./m4aqaK_l.chunk.js";const a="userManager.userList";function d(e,t){return!!e&&t===m.Active&&l.get(e,"year")>=2e3}function g(e,t){if(!d(e,t))return"-";const s=l.fromNow(e);return s==="a day ago"?u.getPhrase(a,"yesterday"):s.includes("hour")?u.getPhrase(a,"today"):Number.isNaN(+s.substr(0,1))?s.substr(0,1).toUpperCase()+s.substr(1):s}function h(e){var n,i;const t=g((n=e.user.metadata)==null?void 0:n.lastSignInTime,e.user.status),s=e.user.id.toString()===((i=e.currentUser)==null?void 0:i.id.toString());return r.jsx("span",{className:`${c.lastActiveContainer} ${s?c.isCurrentUser:""}`,children:r.jsxs("span",{className:"d-flex flex-column",children:[r.jsx("small",{children:r.jsx(o,{namespace:a,phrase:"lastActive"})}),r.jsx("span",{className:t==="-"?"ms-3":"",children:t})]})})}export{h as L,g};
//# sourceMappingURL=nb6O6S6P.chunk.js.map
