import{iW as u,ax as h,e9 as U,aI as k,ao as s,aq as i,ci as a,c4 as E,bN as M,L as R,az as p,bu as N,aj as v,iO as L,m as F,v as I}from"./app-k0jcl5PQ.js";import{B as n}from"./BrF8vp1I.chunk.js";import{W as J}from"./BwaXQJMJ.chunk.js";import{B as O}from"./kkYLrCf4.chunk.js";import{u as W,a as q}from"./DaGep5vp.chunk.js";import{u as w}from"./VKSuH0OD.chunk.js";import{U as P,A as z}from"./9ls1F1Ve.chunk.js";import{J as D}from"./hKqzfsO4.chunk.js";import"./BgdsWk2A.chunk.js";import"./BlKMjFEf.chunk.js";import"./9ic7OkpL.chunk.js";import"./BDviDDog.chunk.js";import"./wCY37Ze3.chunk.js";import"./DXJ2-V8v.chunk.js";import"./2FvGdRks.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 o="userManager.bulkUserActionsResetEmailConfirmation";function V(e){u.useSetWizardConfirmationCallback(e.onClickConfirm);const[,r]=h(U.BULK_USER_ACTIONS);k.useEffect(()=>{r("subAction","resetEmail")},[]);const t=(e.countsByStatus.Active??0)+(e.countsByStatus.Inactive??0);return s.jsxs(s.Fragment,{children:[s.jsxs(J,{children:[s.jsx("p",{className:"mb-1",children:s.jsx(i,{namespace:o,phrase:"info",options:{smartCount:t}})}),s.jsxs("ul",{className:"mb-2",children:[s.jsx("li",{children:s.jsx(i,{namespace:o,phrase:"username"})}),s.jsx("li",{children:s.jsx(i,{namespace:o,phrase:"reset"})})]}),s.jsx("p",{children:s.jsx(i,{namespace:o,phrase:"ssoWarning"})}),s.jsx(n,{userType:e.userType,countsByStatus:e.countsByStatus,changeTo:{[a.Active]:n.Outcomes.EmailSent,[a.Disabled]:n.Outcomes.NoEmailSentDisabled,[a.Inactive]:n.Outcomes.EmailSent},disabled:!0})]}),s.jsx(O,{users:e.users,statuses:[a.Inactive,a.Active],imageCdnUrl:e.imageCdnUrl,hasMore:e.hasMoreUsers,isFetching:e.isFetchingUsers,fetchNext:e.fetchNextUserPage,userType:e.userType,userCount:t})]})}const _="userManager.bulkResetEmailConfirmation";function fe(e){var f;const{users:r,count:t,isFetching:C,hasMore:x,fetchNext:A}=W(e.userType),S=E(),[m]=h(U.BULK_USER_ACTIONS);M({title:R.getPhrase(_,"pageTitle")});const y=p(N.config()),b=p(v.currentUser()),l=L(e.userType),g=w({userType:e.userType,field:z.UserProfilesStatus,getSearchAggregation:P.getSearchAggregation}),T=u.useCreateJobErrorAlert();function j(){if(!m)return;const c=u.getCreateJobRequestData(m,b.data.customerId,e.userType);F(S,D.createJob(c,B,T))}function B(c){I.trigger({...l.bulkActionsStatus.polling,params:{userType:e.userType,jobId:c.id}})}const d=!!g;return s.jsx(q,{appLinks:l,userType:e.userType,users:r,currentStep:"confirmation",userCount:t,loaded:d,children:d&&s.jsx(V,{users:r,imageCdnUrl:(f=y.data)==null?void 0:f.imageCdnUrl,hasMoreUsers:x,isFetchingUsers:C,fetchNextUserPage:A,userType:e.userType,onClickConfirm:j,userCount:t,countsByStatus:g})})}export{fe as BulkUserActionsResetEmailConfirmationView};
//# sourceMappingURL=AbYSQL4I.chunk.js.map
