import{d as u,K as f,b as y,t as g,z as s,J as _}from"./registerWidgets.1f64062d.js";import{a as w}from"./asyncComputed.be96efa9.js";import"./gateway.605923dd.js";import{M as i}from"./member.db3c7cbb.js";import"./index.0e00386b.js";import{C as I}from"./CrudView.6b95974a.js";import"./passwordlessManager.f7bf4528.js";import"./pubsub.3afe3339.js";import"./activeRecord.a4f84f22.js";import"./DropdownMenu.e0a0f092.js";import"./Modal.68e9439f.js";import"./LoadingIndicator.eb835fd7.js";import"./lottie.ec4238e0.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]="bb6555cb-e446-4b76-921c-68c5cb9ced18",e._sentryDebugIdIdentifier="sentry-dbid-bb6555cb-e446-4b76-921c-68c5cb9ced18")}catch{}})();const K=u({__name:"Members",setup(e){const r=_().params.organizationId,m=[{key:"email",label:"Email"}],l=async t=>{await i.create(r,t.email),b()},{loading:c,result:d,refetch:b}=w(()=>i.list(r)),p=f(()=>{var t,a;return{columns:[{name:"Email"},{name:"Role"}],rows:(a=(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?a:[]}});return(t,a)=>(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{K as default};
//# sourceMappingURL=Members.2aee9f05.js.map
