import{iW as i,ax as d,e9 as p,ao as s,aO as T,aq as j,L as f,ci as m,bN as y,az as l,aj as P,bu as S,c4 as B,iO as R,m as F,v as L}from"./app-k0jcl5PQ.js";import{B as M}from"./kkYLrCf4.chunk.js";import{F as N}from"./DV1GpLCe.chunk.js";import{F as W}from"./C3DvQ1wU.chunk.js";import{W as J}from"./BwaXQJMJ.chunk.js";import{u as v,a as q}from"./DaGep5vp.chunk.js";import{J as E}from"./hKqzfsO4.chunk.js";import"./9ic7OkpL.chunk.js";import"./BDviDDog.chunk.js";import"./wCY37Ze3.chunk.js";import"./DXJ2-V8v.chunk.js";import"./2FvGdRks.chunk.js";import"./Di9d6zcy.chunk.js";import"./CKctgafI.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 a="userManager.bulkUserActionsResetPasswordConfirmation";function I(e){i.useSetWizardConfirmationCallback(e.onClickConfirm);const[r]=d(p.BULK_USER_ACTIONS);return s.jsxs(T.Provider,{value:a,children:[s.jsxs(J,{children:[s.jsx("ul",{className:"mt-1 ps-3 ms-1",children:s.jsx("li",{children:s.jsx(j,{namespace:a,phrase:"ssoWarning"})})}),s.jsx(W,{onSubmit:()=>{},initialValues:{newPassword:(r==null?void 0:r.password)??""},children:s.jsx(N,{className:"w-50",name:"newPassword",label:f.getPhrase(a,"newPassword"),type:"password",disabled:!0})})]}),s.jsx(M,{users:e.users,statuses:[m.Active,m.Inactive],imageCdnUrl:e.imageCdnUrl,hasMore:e.hasMoreUsers,isFetching:e.isFetchingUsers,fetchNext:e.fetchNextUserPage,userType:e.userType,userCount:e.userCount})]})}const O="userManager.bulkResetPasswordConfirmation";function ce(e){var c;const{users:r,count:o,isFetching:g,hasMore:C,fetchNext:h}=v(e.userType),[n]=d(p.BULK_USER_ACTIONS);y({title:f.getPhrase(O,"pageTitle")});const U=l(P.currentUser()),x=l(S.config()),b=B(),u=R(e.userType),k=i.useCreateJobErrorAlert();function w(){if(!n)return;const t=i.getCreateJobRequestData(n,U.data.customerId,e.userType);F(b,E.createJob(t,A,k))}function A(t){L.trigger({...u.bulkActionsStatus.polling,params:{userType:e.userType,jobId:t.id}})}return s.jsx(q,{appLinks:u,userType:e.userType,users:r,currentStep:"confirmation",userCount:o,loaded:!0,children:s.jsx(I,{users:r,imageCdnUrl:(c=x.data)==null?void 0:c.imageCdnUrl,hasMoreUsers:C,isFetchingUsers:g,fetchNextUserPage:h,userType:e.userType,onClickConfirm:w,userCount:o})})}export{ce as BulkUserActionsResetPasswordConfirmationView};
//# sourceMappingURL=DfsMlGhn.chunk.js.map
