import{u as h,bZ as v,R as a,j as e,bA as b,b7 as t,Q as p,_ as j,bT as f,ck as r}from"./app-BgLa5dit.js";import{B as o}from"./BXi1HfY0.chunk.js";import{W as g}from"./MEkA24R1.chunk.js";const i="userManager.bulkUserActionsRemoveFromSchoolActionDetails";function C(s){const[,m]=h(v.BULK_USER_ACTIONS),[n,u]=a.useState(""),c=n.trim().toLowerCase()!=="remove",l=(s.countsByStatus.Disabled??0)+(s.countsByStatus.Inactive??0);a.useEffect(()=>{m("subAction","removeFromSchool")},[]);const{setDisableNext:x}=a.useContext(g);return a.useEffect(()=>{x(c)},[c]),e.jsxs(b.Provider,{value:i,children:[e.jsx("h2",{className:"h4 mb-3",children:e.jsx(t,{phrase:"remove"})}),e.jsxs("div",{className:"alert alert-warning d-flex align-items-center px-2 mb-3",children:[e.jsx(p,{svg:j,className:"svg-container me-1"}),e.jsx(t,{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(t,{namespace:i,phrase:s.userType===f.Learner?"checkboxStudent":"checkboxStaff",options:{smartCount:l}})}),e.jsx("p",{children:e.jsx(t,{phrase:"info"})}),e.jsx(o,{userType:s.userType,countsByStatus:s.countsByStatus,changeTo:{[r.Active]:o.Outcomes.NoChange,[r.Disabled]:o.Outcomes.Removed,[r.Inactive]:o.Outcomes.Removed}}),e.jsxs("div",{className:"form-group mb-0 mt-2",children:[e.jsx("label",{htmlFor:"type-remove",children:e.jsx(t,{phrase:"removeLabel"})}),e.jsx("input",{id:"type-remove",className:"form-control w-25",value:n,onChange:d=>u(d.target.value),autoComplete:"off"})]})]})]})}export{C as B};
//# sourceMappingURL=w2ThvAMV.chunk.js.map
