import{u as m,bZ as f,j as e,b7 as a,ck as l}from"./app-BgLa5dit.js";import{B as d}from"./CZah41G2.chunk.js";import{B as h}from"./DpUpv6rY.chunk.js";import{W as g}from"./CZyx6Aii.chunk.js";import{B as x}from"./DlnxdFKU.chunk.js";const j="_infoContainer_6m6bk_1",C={infoContainer:j},i="userManager.bulkUserActionsYearGroupRolloverConfirmation";function B(r){const[n]=m(f.BULK_USER_ACTIONS);h.useSetWizardConfirmationCallback(r.onClickConfirm);function u(){const t=n==null?void 0:n.yearGroup;if(!t)return"";const s=r.yearGroups.filter(o=>o.value>=t.value);if(s.length===1)return t.name;if(s.length===2)return`${s[0].name} and ${s[1].name}`;const c=s.splice(s.length-1);return`${s.map(o=>o.name).join(", ")}, and ${c[0].name}`}return e.jsxs(e.Fragment,{children:[e.jsxs(g,{children:[e.jsx("p",{className:"fw-semibold",children:e.jsx(a,{namespace:i,phrase:"heading"})}),e.jsxs("ul",{children:[e.jsx("li",{children:e.jsx(a,{namespace:i,phrase:"info"})}),e.jsxs("li",{children:[e.jsx(a,{namespace:i,phrase:"ssoWarning"})," ",!!r.editSsoHelpArticleUrl&&e.jsx("a",{href:r.editSsoHelpArticleUrl,target:"_blank",className:"info-link",children:e.jsx(a,{namespace:i,phrase:"ssoWarningArticle"})})]}),e.jsx("li",{className:"text-danger",children:e.jsx(a,{namespace:i,phrase:"warning",options:{yearGroupList:u()}})})]}),e.jsx("div",{className:`${C.infoContainer} rounded-3 p-2`,children:e.jsx(x,{yearGroups:r.yearGroups,graduatingYearGroup:n==null?void 0:n.yearGroup,countsByYearGroup:r.countsByYearGroup})})]}),e.jsx(d,{users:r.users,imageCdnUrl:r.imageCdnUrl,statuses:[l.Active,l.Inactive],hasMore:r.hasMoreUsers,isFetching:r.isFetchingUsers,fetchNext:r.fetchNextUserPage,userType:r.userType,userCount:r.userCount})]})}export{B};
//# sourceMappingURL=BrXg1Noi.chunk.js.map
