import{u as i,bZ as u,R as r,j as t,b7 as l,bT as d,o as f}from"./app-BgLa5dit.js";import{W as p}from"./S1bUYSnw.chunk.js";import{W as x}from"./MEkA24R1.chunk.js";const c="userManager.bulkUserActionsSelectAction";function S(s){const[e,o]=i(u.BULK_USER_ACTIONS),{setDisableNext:a}=r.useContext(x);return r.useEffect(()=>{a(!(e!=null&&e.action))},[e==null?void 0:e.action]),t.jsxs("div",{children:[t.jsx("h2",{className:"h4",children:t.jsx(l,{namespace:c,phrase:"heading"})}),t.jsx("p",{children:t.jsx(l,{namespace:c,phrase:s.userType===d.Learner?"infoStudents":"infoStaff",options:{smartCount:s.userCount}})}),t.jsx(p,{options:s.actions,setOption:n=>o("action",n),selectedAction:e==null?void 0:e.action})]})}function A(s){var a,n;const[e]=i(u.BULK_USER_ACTIONS),o=f(!!s&&s);return(a=o.data)!=null&&a.canRollover?!e.allUsersSelected||e.userIdMap.size<e.allUsersCount?{canRollover:!1,reason:"select-all-students"}:{canRollover:!0}:{canRollover:!1,reason:"cooldown",lastRolloverDate:(n=o.data)==null?void 0:n.previousRolloverDate}}export{S as B,A as u};
//# sourceMappingURL=DP992y6m.chunk.js.map
