import{d as u,K as f,L as b,b as y,u as g,A as _}from"./registerWidgets.a9b9c198.js";import{a as w}from"./asyncComputed.380e0794.js";import"./gateway.ff7b2acd.js";import{M as s}from"./member.15352190.js";import"./index.6965b89d.js";import{C as I}from"./CrudView.17d5ced2.js";import"./passwordlessManager.18e9d509.js";import"./pubsub.d6cf90d7.js";import"./activeRecord.ded96690.js";import"./DropdownMenu.cf7e2976.js";import"./Modal.0c783a31.js";import"./LoadingIndicator.32e0b7e2.js";import"./lottie.cb2a87b3.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]="0f196112-6d76-49ef-a9b8-a63c32a55c1c",e._sentryDebugIdIdentifier="sentry-dbid-0f196112-6d76-49ef-a9b8-a63c32a55c1c")}catch{}})();const K=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{K as default};
//# sourceMappingURL=Members.b1ef47ee.js.map
