import{d as u,K as b,L as f,b as y,u as g,A as _}from"./registerWidgets.163fba07.js";import{a as w}from"./asyncComputed.5f7867b2.js";import"./gateway.30d62fc0.js";import{M as s}from"./member.a6455d76.js";import"./index.168a0b2d.js";import{C as I}from"./CrudView.ab6b4d67.js";import"./passwordlessManager.055571e3.js";import"./pubsub.2d612358.js";import"./activeRecord.b56127d8.js";import"./DropdownMenu.8ad1467e.js";import"./Modal.ea6a3e3a.js";import"./LoadingIndicator.787893fe.js";import"./lottie.981a9cff.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]="9620a052-c359-4e74-b18d-bdb2ed56d51e",e._sentryDebugIdIdentifier="sentry-dbid-9620a052-c359-4e74-b18d-bdb2ed56d51e")}catch{}})();const K=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:d,result:l,refetch:c}=w(()=>s.list(a)),p=f(()=>{var t,r;return{columns:[{name:"Email"},{name:"Role"}],rows:(r=(t=l.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:_(d),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{K as default};
//# sourceMappingURL=Members.b9e344d5.js.map
