import{c as o}from"./CVq-Ik9t.js";import{b as e}from"./DXU0JJLc.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};
