import{d as f,K as b,b as y,t as g,z as s,J as _}from"./registerWidgets.f2c3b5e5.js";import{a as w}from"./asyncComputed.fa58da50.js";import"./gateway.5ce246f2.js";import{M as i}from"./member.3d4a45cd.js";import"./index.d362f0ad.js";import{C as I}from"./CrudView.2f7a4d54.js";import"./passwordlessManager.d3eddc95.js";import"./pubsub.63528b2e.js";import"./activeRecord.55d1a6e1.js";import"./DropdownMenu.c39b37be.js";import"./Modal.201e370f.js";import"./LoadingIndicator.6255a904.js";import"./lottie.fe21059c.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]="717daf3a-11a9-42e2-a23e-d8fbdc7d897c",e._sentryDebugIdIdentifier="sentry-dbid-717daf3a-11a9-42e2-a23e-d8fbdc7d897c")}catch{}})();const K=f({__name:"Members",setup(e){const o=_().params.organizationId,m=[{key:"email",label:"Email"}],d=async t=>{await i.create(o,t.email),p()},{loading:l,result:c,refetch:p}=w(()=>i.list(o)),u=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:s(l),title:"Organization members",description:"List all organization members.","empty-title":"No members yet",table:s(u),"create-button-text":"Add members",fields:m,onCreate:d},null,8,["loading","table"]))}});export{K as default};
//# sourceMappingURL=Members.43c8d451.js.map
