import{iW as r,ci as g,ao as t,aO as S,aq as T,cb as x,ax as k,e9 as B,bN as v,L as j,az as l,aj as M,bu as R,c4 as L,iO as N,m as F,v as J}from"./app-k0jcl5PQ.js";import{B as q}from"./bUngC6nU.chunk.js";import{B as O}from"./kkYLrCf4.chunk.js";import{W as P}from"./BwaXQJMJ.chunk.js";import{u as W,a as w}from"./DaGep5vp.chunk.js";import{u as H}from"./VKSuH0OD.chunk.js";import{U as z,A as D}from"./9ls1F1Ve.chunk.js";import{J as E}from"./hKqzfsO4.chunk.js";import"./BrF8vp1I.chunk.js";import"./BgdsWk2A.chunk.js";import"./BlKMjFEf.chunk.js";import"./9ic7OkpL.chunk.js";import"./BDviDDog.chunk.js";import"./wCY37Ze3.chunk.js";import"./DXJ2-V8v.chunk.js";import"./2FvGdRks.chunk.js";import"./CpGXOT1_.chunk.js";import"./DkDkjje4.chunk.js";import"./Djb1f-EX.chunk.js";import"./CCtuxSlD.chunk.js";import"./CPXlV0fg.chunk.js";import"./CnmbO5oy.chunk.js";import"./fstW5ZQE.chunk.js";const f="userManager.bulkUserActionsReactivationConfirmation";function I(e){r.useSetWizardConfirmationCallback(e.onClickConfirm);const s=e.countsByStatus[g.Disabled]??0;return t.jsxs(S.Provider,{value:f,children:[t.jsxs(P,{children:[t.jsx("p",{className:"fw-semibold",children:t.jsx(T,{namespace:f,phrase:e.userType===x.Learner?"reactivateStudents":"reactivateStaff",options:{smartCount:s}})}),t.jsx(q,{type:"reactivate",userType:e.userType,countsByStatus:e.countsByStatus,disabled:!0})]}),t.jsx(O,{users:e.users,statuses:[g.Disabled],imageCdnUrl:e.imageCdnUrl,hasMore:e.hasMoreUsers,isFetching:e.isFetchingUsers,fetchNext:e.fetchNextUserPage,userType:e.userType,userCount:s,tableHeightOffset:e.tableHeightOffset})]})}const V="userManager.bulkReactivateConfirmation";function pe(e){var m;const{users:s,count:i,isFetching:d,hasMore:p,fetchNext:h}=W(e.userType),[o]=k(B.BULK_USER_ACTIONS);v({title:j.getPhrase(V,"pageTitle")});const U=l(M.currentUser()),n=l(R.config()),C=L(),u=N(e.userType),c=H({userType:e.userType,field:D.UserProfilesStatus,getSearchAggregation:z.getSearchAggregation}),y=r.useCreateJobErrorAlert();function b(){if(!o)return;const a=r.getCreateJobRequestData(o,U.data.customerId,e.userType);F(C,E.createJob(a,A,y))}function A(a){J.trigger({...u.bulkActionsStatus.polling,params:{userType:e.userType,jobId:a.id}})}return t.jsx(w,{appLinks:u,userType:e.userType,users:s,currentStep:"confirmation",userCount:i,loaded:!0,children:!!n.data&&!!c&&t.jsx(I,{users:s,imageCdnUrl:(m=n.data)==null?void 0:m.imageCdnUrl,hasMoreUsers:p,isFetchingUsers:d,fetchNextUserPage:h,userType:e.userType,onClickConfirm:b,userCount:i,countsByStatus:c})})}export{pe as BulkUserActionsReactivationConfirmationView};
//# sourceMappingURL=BQP82jUn.chunk.js.map
