import{bv as n,bw as o,bs as c,bq as i,aS as m,br as p}from"./app-BgLa5dit.js";import{B as a}from"./DkDkjje4.chunk.js";const A=["userIdMap","params","action","subAction","allUsersSelected","allUsersCount","scrollContainer"],l={getAnalyticsActionName(t){if(!(t!=null&&t.action))return null;switch(t.action){case"activation":return t!=null&&t.subAction?t.subAction==="deactivate"?"Deactivate":"Reactivate":"Deactivate / reactivate";case"addToClassroom":return"Add to classroom";case"changeYearGroup":return"Change year level";case"delete":return"Delete user";case"resetEmail":return"Send password reset email";case"activationEmail":return"Send account activation email";case"resetPassword":return"Reset password";case"yearGroupRollover":return"Annual year level rollover";case"removeFromSchool":return"Remove user";default:return null}},onClickNext(t,u){if(!t)return;const e={userCount:t.userIdMap.size,step:u},r=l.getAnalyticsActionName(t);r&&(e.action=r);const s=m.omit(t,A);Object.keys(s).length&&(e.actionData=s),n.logUserAction(e,{location:p.BulkUserActionsWizard,workflowPhase:o.Next,actionType:c.BulkAction,entity:i.User})},logYearGroupRolloverEntry(t){n.logUserAction({action:l.getAnalyticsActionName({action:"yearGroupRollover"})},{entity:i.User,actionType:c.BulkAction,workflowPhase:o.Start,location:t})},getJobStatus(t){switch(t){case a.Completed:return"Success";case a.CompletedWithError:return"Completed with some errors";case a.Failed:return"Failed";default:return null}}};export{l as B};
//# sourceMappingURL=BxYybc33.chunk.js.map
