import{aP as y,u as A,o as U,j as n,bZ as k,aQ as B,g as I}from"./app-BgLa5dit.js";import{B as T}from"./cDnOeWfL.chunk.js";import{B as p}from"./DpUpv6rY.chunk.js";import{C as b,A as x}from"./q-IBKcuF.chunk.js";import{J as G}from"./DfIMhO3y.chunk.js";import{B as J}from"./CHg-RKg9.chunk.js";import{u as M}from"./fZ5oUMOc.chunk.js";import{u as S}from"./uQrcROFB.chunk.js";import{g as j}from"./B1ElCHu3.chunk.js";import"./CZah41G2.chunk.js";import"./KPdA3ghp.chunk.js";import"./D8ca7W7r.chunk.js";import"./CZyx6Aii.chunk.js";import"./BarWb5sR.chunk.js";import"./C16qNPRj.chunk.js";import"./CetbvyBn.chunk.js";import"./CG7zbly5.chunk.js";import"./m4aqaK_l.chunk.js";import"./MEkA24R1.chunk.js";import"./C53kfXmd.chunk.js";import"./DUpYPoLs.chunk.js";import"./EZim8aq-.chunk.js";import"./BD9MrUJP.chunk.js";import"./s6cGcwlA.chunk.js";import"./Zwjmkasg.chunk.js";import"./4qGb1BIY.chunk.js";import"./DnXDEnAR.chunk.js";import"./Dr5_kWYc.chunk.js";import"./DJ0pq8J_.chunk.js";import"./BUT90D7O.chunk.js";import"./CCcwLDvu.chunk.js";import"./DDfKZ_ng.chunk.js";import"./BxYybc33.chunk.js";import"./DkDkjje4.chunk.js";import"./B3eOBVf8.chunk.js";import"./3nM7jLnE.chunk.js";import"./CPXlV0fg.chunk.js";import"./DusGkY45.chunk.js";import"./8Im-OACs.chunk.js";import"./g56uS58q.chunk.js";function yr(r){const{users:t,count:o,isFetching:c,hasMore:d,fetchNext:g}=M(r.customerId,r.userType),l=y(),[s]=A(k.BULK_USER_ACTIONS),i=U(b.yearGroups(r.customerId)),a=j(r.customerId,r.userType),m=S({userType:r.userType,field:x.YearGroupValues,customerId:r.customerId}),f=p.useCreateJobErrorAlert();function C(){if(!s)return;const e=p.getCreateJobRequestData(s,r.customerId,r.userType);B(l,G.createJob(e,h,f))}function h(e){I.trigger({...a.bulkActionsStatus.polling,params:{userType:r.userType,jobId:e.id}})}const u=!!m&&!!i.data;return n.jsx(J,{customerId:r.customerId,appLinks:a,userType:r.userType,users:t,currentStep:"confirmation",userCount:o,hideHeader:!0,loaded:u,children:u&&n.jsx(T,{users:t,imageCdnUrl:ClickView.Config.Urls.ImageAPI,hasMoreUsers:d,isFetchingUsers:c,fetchNextUserPage:g,userType:r.userType,onClickConfirm:C,userCount:o,countsByYearGroup:m,yearGroups:i.data})})}export{yr as BulkUserActionsChangeYearGroupConfirmationView};
//# sourceMappingURL=D9PN_fb0.chunk.js.map
