import{d as u,ey as b,F as f,b as y,u as g,bu as _}from"./registerWidgets.a7f9f083.js";import{a as w}from"./asyncComputed.b85a7eae.js";import"./gateway.0b4ed6c7.js";import{M as s}from"./member.ae4dbec9.js";import"./index.384d1894.js";import{C as I}from"./CrudView.afba6907.js";import"./passwordlessManager.c97a120a.js";import"./pubsub.e3e6423a.js";import"./activeRecord.8c74a961.js";import"./DropdownMenu.bb9502d0.js";import"./Modal.9197d569.js";import"./LoadingIndicator.38364267.js";import"./lottie.0b007633.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]="d0dbee0f-919a-41cf-b114-4c2c5eb7f836",e._sentryDebugIdIdentifier="sentry-dbid-d0dbee0f-919a-41cf-b114-4c2c5eb7f836")}catch{}})();const L=u({__name:"Members",setup(e){const a=b().params.organizationId,i=[{key:"email",label:"Email"}],m=async t=>{await s.create(a,t.email),c()},{loading:l,result:d,refetch:c}=w(()=>s.list(a)),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:_(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{L as default};
//# sourceMappingURL=Members.7ff13c0a.js.map
