import{d as u,ey as b,F as f,b as y,u as g,bu as _}from"./registerWidgets.b2d74d6b.js";import{a as w}from"./asyncComputed.000dd401.js";import"./gateway.eade7a58.js";import{M as s}from"./member.88dfad9f.js";import"./index.0621dc6f.js";import{C as I}from"./CrudView.9c7a617f.js";import"./passwordlessManager.1e9ad5f4.js";import"./pubsub.de7b160f.js";import"./storage.4c5a0e4a.js";import"./activeRecord.ad458e5f.js";import"./DropdownMenu.76f3715b.js";import"./Modal.6edff823.js";import"./LoadingIndicator.77ebb26b.js";import"./lottie.c84c89e3.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]="c725598d-cb96-4c6c-99e6-f9327ad50b3c",e._sentryDebugIdIdentifier="sentry-dbid-c725598d-cb96-4c6c-99e6-f9327ad50b3c")}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),d()},{loading:l,result:c,refetch:d}=w(()=>s.list(a)),p=f(()=>{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.5781c2d0.js.map
