import{c as o}from"./dc0o8kHW.js";import{b as e}from"./dG3E5dY6.js";function a(){return typeof window<"u"?window.location.origin+e:void 0}async function c(){return(await o.get("/invitations"))?.invitations??[]}async function d(n){const t={...n},i=a();return i&&(t.admin_base_url=i),o.post("/invitations",t)}async function u(n){const t={},i=a();return i&&(t.admin_base_url=i),o.post(`/invitations/${encodeURIComponent(n)}/resend`,t)}async function f(n){await o.delete(`/invitations/${encodeURIComponent(n)}`)}export{d as c,f as d,c as g,u as r};
