import{d as u,ey as f,F as b,b as y,u as g,bu as _}from"./registerWidgets.4423f919.js";import{a as w}from"./asyncComputed.39878ec5.js";import"./gateway.863d6849.js";import{M as s}from"./member.8f8e3431.js";import"./index.3e13a4a5.js";import{C as I}from"./CrudView.5fe8a1fb.js";import"./passwordlessManager.c1306433.js";import"./pubsub.7260b9d2.js";import"./storage.f7ed9f01.js";import"./activeRecord.9d71c559.js";import"./DropdownMenu.6406574f.js";import"./Modal.a1d02dc5.js";import"./LoadingIndicator.5602929a.js";import"./lottie.4638634c.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]="8456a970-321c-412e-af17-065ceea87555",e._sentryDebugIdIdentifier="sentry-dbid-8456a970-321c-412e-af17-065ceea87555")}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.7c209308.js.map
