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