import{ao as e,aq as t,cb as g,ci as s,t as p,u as b,aS as x}from"./app-k0jcl5PQ.js";import{W as f}from"./BgdsWk2A.chunk.js";import{R as v}from"./BlKMjFEf.chunk.js";const C="_disabledInfoContainer_x6m19_1",S="_badge_x6m19_4",y="_pending_x6m19_9",c={disabledInfoContainer:C,badge:S,pending:y},a="userManager.bulkUserActionsCountByStatus";function m(){return e.jsx(f,{children:e.jsx(t,{namespace:a,phrase:"active"})})}function j(){return e.jsx("div",{className:`badge bg-danger ${c.badge}`,children:e.jsx(t,{namespace:a,phrase:"deactivated"})})}function D(){return e.jsx("div",{children:e.jsx(t,{namespace:a,phrase:"noChange"})})}function N(){return e.jsx("div",{children:e.jsx(t,{namespace:a,phrase:"emailSent"})})}function _(){return e.jsx("div",{children:e.jsx(t,{namespace:a,phrase:"noEmailSentDisabled"})})}function A(){return e.jsx("div",{children:e.jsx(t,{namespace:a,phrase:"noEmailSent"})})}function E(){return e.jsx("div",{className:`badge bg-gray-500 ${c.badge} ${c.pending}`,children:e.jsx(t,{namespace:a,phrase:"pending"})})}function I(){return e.jsx("div",{className:`badge bg-dark ${c.badge}`,children:e.jsx(t,{namespace:a,phrase:"deleted"})})}function T(){return e.jsx("div",{className:`badge bg-dark ${c.badge}`,children:e.jsx(t,{namespace:a,phrase:"removed"})})}function B(n){switch(n.status){case s.Active:return e.jsx(m,{});case s.Disabled:return e.jsx(j,{});case s.Inactive:return e.jsx(E,{})}p.throw(new b("Object status not mapped"))}function l(n){return e.jsxs(e.Fragment,{children:[e.jsx(B,{status:n.status}),e.jsx("div",{children:e.jsx(t,{namespace:a,phrase:n.userType===g.Staff?"staffCount":"studentCount",options:{smartCount:n.countsByStatus[n.status]??0}})})]})}const h="userManager.bulkUserActionsCountByStatus";function $(n){const{userType:o,changeTo:i,countsByStatus:r}=n,u=[{left:e.jsx(t,{namespace:h,phrase:"statuses"}),right:e.jsx(t,{namespace:h,phrase:"outcome"})}];if(r[s.Active]){const d=i[s.Active];u.push({left:e.jsx(l,{userType:o,status:s.Active,countsByStatus:r}),right:e.jsx(d,{})})}if(r[s.Disabled]){const d=i[s.Disabled];u.push({left:e.jsx(l,{userType:o,status:s.Disabled,countsByStatus:r}),right:e.jsx(d,{})})}if(r[s.Inactive]){const d=i[s.Inactive];u.push({left:e.jsx(l,{userType:o,status:s.Inactive,countsByStatus:r}),right:e.jsx(d,{})})}return u}w.Outcomes={Active:m,Deactivated:j,Deleted:I,NoChange:D,EmailSent:N,NoEmailSentDisabled:_,NoEmailSent:A,Removed:T};function w(n){const o=$(n);return e.jsx("div",{className:`p-2 rounded ${n.disabled?c.disabledInfoContainer:"border"}`,children:o.map((i,r)=>e.jsxs(v,{className:"mb-2",children:[e.jsx(x,{xs:4,children:i.left}),e.jsx(x,{xs:8,children:i.right})]},r))})}export{w as B};
//# sourceMappingURL=BrF8vp1I.chunk.js.map
