import{j as t,b8 as f,R as n,u as C,bZ as h,b7 as o,bT as i,ek as b,g as U,bv as g,bw as k,bs as x,bq as w,br as A}from"./app-BgLa5dit.js";import{B as j}from"./fZ5oUMOc.chunk.js";import{B as y}from"./KPdA3ghp.chunk.js";import{W as S}from"./D8ca7W7r.chunk.js";const v="_partialCount_y1jm1_1",L={partialCount:v};function B(){return t.jsx("div",{className:`partial-loading-background ${L.partialCount}`})}const l="userManager.bulkUserActionsReviewAccounts";function _(e){const u=f(),a=n.useRef(null),[c,r]=C(h.BULK_USER_ACTIONS);n.useEffect(()=>{var s;r("scrollContainer",(s=a.current)==null?void 0:s.view)},[a.current]),n.useEffect(()=>{r("action",null),r("subAction",null)},[]);const d=n.useCallback(s=>t.jsx(y,{user:s,userType:e.userType,imageCdnUrl:e.imageCdnUrl,onClickRemoveUser:e.removeUser},s.id),[e.removeUser]);function m(){u.unlock(j),U.trigger(e.appLinks.userManager),g.logUserAction({userCount:e.userCount},{location:A.BulkUserActionsWizard,entity:w.User,actionType:x.BulkAction,workflowPhase:k.Back})}return t.jsxs("div",{className:"pb-3",children:[t.jsx("h2",{className:"h4",children:t.jsx(o,{namespace:l,phrase:e.userType===i.Learner?"headingStudents":"headingStaff"})}),typeof e.userCount=="number"?t.jsx("p",{className:"fw-semibold",children:t.jsx(o,{namespace:l,phrase:e.userType===i.Learner?"selectedStudents":"selectedStaff",options:{smartCount:e.userCount}})}):t.jsx(B,{}),(!c.allUsersSelected||c.allUsersCount!==e.userCount)&&t.jsx("button",{className:"btn btn-outline-dark mb-3",onClick:m,children:t.jsx(o,{namespace:l,phrase:e.userType===i.Learner?"addMoreStudents":"addMoreStaff"})}),t.jsx(S,{tableHeightOffset:e.tableHeightOffset,items:e.users,rowHeight:55,getComponent:d,ref:a,staticComponentBelowRows:!!(e.hasMore||e.isFetching)&&t.jsx(b,{isFetching:e.isFetching,fetchNext:e.fetchNext})})]})}export{_ as B};
//# sourceMappingURL=BLOoLdcu.chunk.js.map
