import{d as u,ey as f,H as b,b as y,c as g,u as _}from"./registerWidgets.e46eca28.js";import{a as w}from"./asyncComputed.15fd30e0.js";import"./gateway.0d210a45.js";import{M as s}from"./member.26b1d66c.js";import"./index.05c509d5.js";import{C as I}from"./CrudView.2fb3f52f.js";import"./passwordlessManager.f4cc4f94.js";import"./pubsub.8f2ecd1e.js";import"./storage.f303ee10.js";import"./activeRecord.d83b1b14.js";import"./DropdownMenu.dd15f4e3.js";import"./Modal.47e24ea4.js";import"./LoadingIndicator.623149e9.js";import"./lottie.2b81658b.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]="fe502a24-ad8d-4133-898c-a1e46696900f",e._sentryDebugIdIdentifier="sentry-dbid-fe502a24-ad8d-4133-898c-a1e46696900f")}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),c()},{loading:l,result:d,refetch:c}=w(()=>s.list(o)),p=b(()=>{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.0a0e0af3.js.map
