import{d as u,K as f,b as y,t as g,z as s,J as _}from"./registerWidgets.36cee80e.js";import{a as w}from"./asyncComputed.db02d47d.js";import"./gateway.a9f7c0b4.js";import{M as i}from"./member.e18e521b.js";import"./index.87cc5adc.js";import{C as I}from"./CrudView.13ada4d2.js";import"./passwordlessManager.3acb888f.js";import"./pubsub.53791b0c.js";import"./activeRecord.650b5598.js";import"./DropdownMenu.07c3d7bf.js";import"./Modal.47c65320.js";import"./LoadingIndicator.b1eca67b.js";import"./lottie.860c5500.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]="42d5c8eb-5352-442e-ac83-0ad6dabb99d8",e._sentryDebugIdIdentifier="sentry-dbid-42d5c8eb-5352-442e-ac83-0ad6dabb99d8")}catch{}})();const K=u({__name:"Members",setup(e){const o=_().params.organizationId,m=[{key:"email",label:"Email"}],d=async t=>{await i.create(o,t.email),p()},{loading:l,result:c,refetch:p}=w(()=>i.list(o)),b=f(()=>{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(l),title:"Organization members",description:"List all organization members.","empty-title":"No members yet",table:s(b),"create-button-text":"Add members",fields:m,onCreate:d},null,8,["loading","table"]))}});export{K as default};
//# sourceMappingURL=Members.233675cb.js.map
