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