import{d as b,eB as u,G as f,b as y,c as g,u as _}from"./outputWidgets.5836624b.js";import{a as w}from"./asyncComputed.134d378f.js";import"./router.6746eb60.js";import{M as n}from"./member.5623883e.js";import"./columns.4caf6e41.js";import{C as I}from"./CrudView.31db109e.js";import"./Base.e549b429.js";import"./transButton.c5f8a15c.js";import"./Text.f4671d75.js";import"./Title.5e396b16.js";import"./index.ba80cfa7.js";import"./gateway.681b899a.js";import"./record.07dfd257.js";import"./pubsub.a82123ee.js";import"./icons.715dfb53.js";import"./url.3b0a0ce2.js";import"./index.636b5d6d.js";import"./index.8d4f5f15.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]="bad27414-6bbb-4ce6-bac0-8464d72068ac",e._sentryDebugIdIdentifier="sentry-dbid-bad27414-6bbb-4ce6-bac0-8464d72068ac")}catch{}})();const q=b({__name:"Members",setup(e){const a=u().params.organizationId,m=[{key:"email",label:"Email"}],s=async t=>{await n.create(a,t.email),c()},{loading:l,result:d,refetch:c}=w(()=>n.list(a)),p=f(()=>{var t,r;return{columns:[{name:"Email"},{name:"Role"}],rows:(r=(t=d.value)==null?void 0:t.map(i=>({key:i.email,cells:[{text:i.email},{text:i.role}]})))!=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:m,onCreate:s},null,8,["loading","table"]))}});export{q as default};
//# sourceMappingURL=Members.b5e94a12.js.map
