import{ax as l,e9 as d,iW as a,ao as s,aO as k,aq as b,bN as j,L as y,az as c,aj as M,bu as B,c4 as N,iO as S,m as L,v}from"./app-k0jcl5PQ.js";import{I as J}from"./CovT_itD.chunk.js";import{W as R}from"./BwaXQJMJ.chunk.js";import{B as w}from"./kkYLrCf4.chunk.js";import{u as I,a as W}from"./DaGep5vp.chunk.js";import{J as q}from"./hKqzfsO4.chunk.js";import"./BUELddOb.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 m="userManager.bulkUserActionsAddToClassroomConfirmation";function E(e){const[r]=l(d.BULK_USER_ACTIONS);return a.useSetWizardConfirmationCallback(e.onClickConfirm),s.jsxs(k.Provider,{value:m,children:[s.jsxs(R,{children:[s.jsx("p",{className:"fw-semibold",children:s.jsx(b,{namespace:m,phrase:"heading",options:{smartCount:e.userCount}})}),r.classroom&&s.jsx("div",{className:"rounded rounded-3 pb-2",children:s.jsx("div",{className:"d-flex",children:s.jsx(J,{selection:r.classroom})})})]}),s.jsx(w,{users:e.users,imageCdnUrl:e.imageCdnUrl,hasMore:e.hasMoreUsers,isFetching:e.isFetchingUsers,fetchNext:e.fetchNextUserPage,userType:e.userType,userCount:e.userCount})]})}const F="userManager.bulkAddToClassroomConfirmation";function oe(e){var u;const{users:r,count:o,isFetching:C,hasMore:f,fetchNext:p}=I(e.userType),[i]=l(d.BULK_USER_ACTIONS);j({title:y.getPhrase(F,"pageTitle")});const g=c(M.currentUser()),h=c(B.config()),U=N(),n=S(e.userType),x=a.useCreateJobErrorAlert();function T(){if(!i)return;const t=a.getCreateJobRequestData(i,g.data.customerId,e.userType);L(U,q.createJob(t,A,x))}function A(t){v.trigger({...n.bulkActionsStatus.polling,params:{userType:e.userType,jobId:t.id}})}return s.jsx(W,{appLinks:n,userType:e.userType,users:r,currentStep:"confirmation",userCount:o,loaded:!0,children:s.jsx(E,{users:r,imageCdnUrl:(u=h.data)==null?void 0:u.imageCdnUrl,hasMoreUsers:f,isFetchingUsers:C,fetchNextUserPage:p,userType:e.userType,onClickConfirm:T,userCount:o})})}export{oe as BulkUserActionsAddToClassroomConfirmationView};
//# sourceMappingURL=F9w7sb-a.chunk.js.map
