import{d as u,K as b,b as y,t as g,z as s,J as _}from"./registerWidgets.726232df.js";import{a as w}from"./asyncComputed.638ec138.js";import"./gateway.459f2c9d.js";import{M as i}from"./member.aa350b17.js";import{C as I}from"./CrudView.561b4813.js";import"./passwordlessManager.3b0f9bd3.js";import"./activeRecord.acbdb8bc.js";import"./DropdownMenu.3ede6951.js";import"./Modal.bd7677ba.js";import"./LoadingIndicator.758ab81e.js";import"./lottie.1c3b7cde.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]="4f44e27d-e4e2-44e1-b538-915ff7ca74a1",e._sentryDebugIdIdentifier="sentry-dbid-4f44e27d-e4e2-44e1-b538-915ff7ca74a1")}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),f()},{loading:d,result:c,refetch:f}=w(()=>i.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:s(d),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.c8dde996.js.map
