import{H as t,aI as r}from"./app-k0jcl5PQ.js";const l={invite(e){return{url:"{gateway}/v1/users/invites",key:"invites:colleague",normalize:!1,type:t.POST,data:e,invalidationKeys:["invites"]}},inviteByType(){return{key:"invites",url:"{gateway}/v1/users/invites?type=link&type=direct",normalize:!1}},deleteInvite(e){return{key:"invites:delete",url:`{gateway}/v1/users/invites/${e}`,type:t.DELETE,normalize:!1,invalidationKeys:["invites"]}},resendInvite(e){return{key:`invites:${e}:resend`,url:`{gateway}/v1/users/invites/email?id=${e}`,type:t.POST,normalize:!1}},createInviteLink(){return{key:"invites:create",url:"{gateway}/v1/users/invites/links",type:t.POST,normalize:!1,invalidationKeys:["invites"]}}};var s=(e=>(e.Link="link",e.Direct="direct",e))(s||{});function u(e){return r.useMemo(()=>e?e.reduce((i,n)=>n.type===s.Direct?(i.directInvites.push(n),i):(i.links.push(n),i),{directInvites:[],links:[]}):{directInvites:null,links:null},[e])}export{l as I,u};
//# sourceMappingURL=DUZrD1tR.chunk.js.map
