import{ax as d,e9 as h,aI as i,i$ as x,ao as e,aO as v,aq as a,a_ as S,cb as f,ci as m,iO as y,bN as b,L as j}from"./app-k0jcl5PQ.js";import{B as c}from"./BrF8vp1I.chunk.js";import{W as A}from"./CBiwFpxE.chunk.js";import{u as T,a as U}from"./DaGep5vp.chunk.js";import{u as B}from"./VKSuH0OD.chunk.js";import{U as N,A as C}from"./9ls1F1Ve.chunk.js";import"./BgdsWk2A.chunk.js";import"./BlKMjFEf.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 l="userManager.bulkUserActionsRemoveFromSchoolActionDetails";function k(s){const[,u]=d(h.BULK_USER_ACTIONS),[o,r]=i.useState(""),t=o.trim().toLowerCase()!=="remove",n=(s.countsByStatus.Disabled??0)+(s.countsByStatus.Inactive??0);i.useEffect(()=>{u("subAction","removeFromSchool")},[]);const{setDisableNext:g}=i.useContext(x);return i.useEffect(()=>{g(t)},[t]),e.jsxs(v.Provider,{value:l,children:[e.jsx("h2",{className:"h4 mb-3",children:e.jsx(a,{phrase:"remove"})}),e.jsxs("div",{className:"alert alert-warning d-flex align-items-center px-2 mb-3",children:[e.jsx(S,{svg:A,className:"svg-container me-1"}),e.jsx(a,{phrase:"warning"})]}),e.jsxs("div",{className:"p-2 border rounded mb-3",children:[e.jsx("p",{className:"font-weight-500 mb-1",children:e.jsx(a,{namespace:l,phrase:s.userType===f.Learner?"checkboxStudent":"checkboxStaff",options:{smartCount:n}})}),e.jsx("p",{children:e.jsx(a,{phrase:"info"})}),e.jsx(c,{userType:s.userType,countsByStatus:s.countsByStatus,changeTo:{[m.Active]:c.Outcomes.NoChange,[m.Disabled]:c.Outcomes.Removed,[m.Inactive]:c.Outcomes.Removed}}),e.jsxs("div",{className:"form-group mb-0 mt-2",children:[e.jsx("label",{htmlFor:"type-remove",children:e.jsx(a,{phrase:"removeLabel"})}),e.jsx("input",{id:"type-remove",className:"form-control w-25",value:o,onChange:p=>r(p.target.value),autoComplete:"off"})]})]})]})}const L="userManager.bulkRemoveFromSchoolDetails";function $(s){const{users:u,count:o}=T(s.userType),r=y(s.userType);b({title:j.getPhrase(L,"pageTitle")});const t=B({userType:s.userType,field:C.UserProfilesStatus,getSearchAggregation:N.getSearchAggregation}),n=!!t;return e.jsx(U,{appLinks:r,userType:s.userType,users:u,currentStep:"action-details",userCount:o,loaded:n,children:!!n&&e.jsx(k,{appLinks:r,userType:s.userType,countsByStatus:t})})}export{$ as BulkUserActionsRemoveFromSchoolActionDetailsView};
//# sourceMappingURL=CO90MUsL.chunk.js.map
