import{d as u,ey as b,F as f,b as y,u as g,bu as _}from"./registerWidgets.ff0e603c.js";import{a as w}from"./asyncComputed.47db4727.js";import"./gateway.69285524.js";import{M as s}from"./member.a47b59f6.js";import"./index.3750a98d.js";import{C as I}from"./CrudView.edc9a540.js";import"./passwordlessManager.c02d6ee2.js";import"./pubsub.bd8735a3.js";import"./storage.db287aee.js";import"./activeRecord.193d97cb.js";import"./DropdownMenu.4c2a4e7f.js";import"./Modal.61a541af.js";import"./LoadingIndicator.40ce0e4a.js";import"./lottie.0af290d8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="b8c090b2-54d4-46c0-9914-52ef3f0a2d0c",e._sentryDebugIdIdentifier="sentry-dbid-b8c090b2-54d4-46c0-9914-52ef3f0a2d0c")}catch{}})();const N=u({__name:"Members",setup(e){const a=b().params.organizationId,i=[{key:"email",label:"Email"}],m=async t=>{await s.create(a,t.email),c()},{loading:l,result:d,refetch:c}=w(()=>s.list(a)),p=f(()=>{var t,r;return{columns:[{name:"Email"},{name:"Role"}],rows:(r=(t=d.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.3948294a.js.map
