import{d as u,K as f,b as y,t as g,z as s,J as _}from"./registerWidgets.05268d5e.js";import{a as w}from"./asyncComputed.8f90be18.js";import"./gateway.c44af888.js";import{M as i}from"./member.7e0cab06.js";import{C as I}from"./CrudView.79f31df7.js";import"./passwordlessManager.61e5b6aa.js";import"./activeRecord.bacc466b.js";import"./DropdownMenu.7f9500ce.js";import"./Modal.ab17c1cc.js";import"./LoadingIndicator.cd761736.js";import"./lottie.ea647b01.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]="7c09632c-c4b0-4cbc-b9ba-fa44ee2822a8",e._sentryDebugIdIdentifier="sentry-dbid-7c09632c-c4b0-4cbc-b9ba-fa44ee2822a8")}catch{}})();const A=u({__name:"Members",setup(e){const o=_().params.organizationId,m=[{key:"email",label:"Email"}],l=async t=>{await i.create(o,t.email),b()},{loading:c,result:d,refetch:b}=w(()=>i.list(o)),p=f(()=>{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:s(c),title:"Organization members",description:"List all organization members.","empty-title":"No members yet",table:s(p),"create-button-text":"Add members",fields:m,onCreate:l},null,8,["loading","table"]))}});export{A as default};
//# sourceMappingURL=Members.454f8401.js.map
