import{d as b,K as f,b as y,t as g,z as s,J as _}from"./registerWidgets.240bf3ff.js";import{a as w}from"./asyncComputed.e710533c.js";import"./gateway.5b5e16cb.js";import{M as i}from"./member.7e76fcf5.js";import"./index.11c237cf.js";import{C as I}from"./CrudView.d6bbee89.js";import"./passwordlessManager.0554ad1a.js";import"./pubsub.83908d54.js";import"./activeRecord.d21ad35a.js";import"./DropdownMenu.2a857e1b.js";import"./Modal.ba42d121.js";import"./LoadingIndicator.8f6b0830.js";import"./lottie.b1d7a5e6.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]="29a607c8-4ac8-461b-ac19-e4781780fad6",e._sentryDebugIdIdentifier="sentry-dbid-29a607c8-4ac8-461b-ac19-e4781780fad6")}catch{}})();const K=b({__name:"Members",setup(e){const o=_().params.organizationId,m=[{key:"email",label:"Email"}],l=async t=>{await i.create(o,t.email),p()},{loading:c,result:d,refetch:p}=w(()=>i.list(o)),u=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(u),"create-button-text":"Add members",fields:m,onCreate:l},null,8,["loading","table"]))}});export{K as default};
//# sourceMappingURL=Members.fc8a6a90.js.map
