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