import{d as u,ey as f,F as b,b as y,u as g,bu as _}from"./registerWidgets.eb5d1044.js";import{a as w}from"./asyncComputed.8007047f.js";import"./gateway.f04b471b.js";import{M as s}from"./member.f98bfb2f.js";import"./index.cbadd24c.js";import{C as I}from"./CrudView.9068924c.js";import"./passwordlessManager.5b579a25.js";import"./pubsub.8f4c78dc.js";import"./storage.0943951e.js";import"./activeRecord.e38b436c.js";import"./DropdownMenu.cfd0b972.js";import"./Modal.b3432d4d.js";import"./LoadingIndicator.a6ffda8c.js";import"./lottie.083b517e.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="29ba1cfe-617c-4ac3-8ec6-a0a20f41749f",e._sentryDebugIdIdentifier="sentry-dbid-29ba1cfe-617c-4ac3-8ec6-a0a20f41749f")}catch{}})();const N=u({__name:"Members",setup(e){const o=f().params.organizationId,i=[{key:"email",label:"Email"}],m=async t=>{await s.create(o,t.email),d()},{loading:l,result:c,refetch:d}=w(()=>s.list(o)),p=b(()=>{var t,r;return{columns:[{name:"Email"},{name:"Role"}],rows:(r=(t=c.value)==null?void 0:t.map(n=>({key:n.email,cells:[{text:n.email,classes:["title","centered"]},{text:n.role,classes:["centered"]}]})))!=null?r:[]}});return(t,r)=>(y(),g(I,{"entity-name":"members",loading:_(l),title:"Organization members",description:"List all organization members.","empty-title":"No members yet",table:p.value,"create-button-text":"Add members",fields:i,onCreate:m},null,8,["loading","table"]))}});export{N as default};
//# sourceMappingURL=Members.238c2f69.js.map
