import{d as u,eA as b,G as f,b as y,c as g,u as _}from"./outputWidgets.3acae187.js";import{a as w}from"./asyncComputed.4acb40f3.js";import"./router.330b5ee2.js";import"./index.330e6f4e.js";import{M as n}from"./member.3c94dbe0.js";import{C as I}from"./CrudView.ad3897c2.js";import"./Form.01134ed5.js";import"./index.30e21000.js";import"./record.8667ddd6.js";import"./pubsub.bc590f31.js";import"./gateway.d73b54c4.js";import"./icons.238cb834.js";import"./index.d2e87b7c.js";import"./Title.b0254e64.js";import"./url.ba80c662.js";import"./index.a63dba09.js";import"./index.72042afd.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]="770958ac-70c6-453a-852d-2f200b54d42e",e._sentryDebugIdIdentifier="sentry-dbid-770958ac-70c6-453a-852d-2f200b54d42e")}catch{}})();const j=u({__name:"Members",setup(e){const a=b().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{j as default};
//# sourceMappingURL=Members.baef58ec.js.map
