import{d as u,eB as b,G as f,b as y,c as g,u as _}from"./outputWidgets.31ce2d5c.js";import{a as w}from"./asyncComputed.7e3e21f4.js";import"./router.8f071dc2.js";import"./index.e05c62e3.js";import{M as m}from"./member.c8733f7b.js";import{C as I}from"./CrudView.9d67f588.js";import"./FormItem.5f0b61bf.js";import"./hasIn.932773c2.js";import"./index.0d76378d.js";import"./index.cf4c23b9.js";import"./record.b2148451.js";import"./pubsub.2d9ab3f4.js";import"./gateway.3615e807.js";import"./icons.266b547d.js";import"./Text.46c5bec2.js";import"./Base.eeda2dae.js";import"./Form.482980d3.js";import"./Modal.32a7843c.js";import"./url.94a5ee71.js";import"./index.627ab86d.js";import"./index.ef6e34b6.js";import"./Title.951eccc5.js";import"./index.5765ee72.js";import"./index.f1d2e592.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]="ae39ce2a-9247-4aeb-93c2-9af5991a49db",e._sentryDebugIdIdentifier="sentry-dbid-ae39ce2a-9247-4aeb-93c2-9af5991a49db")}catch{}})();const Q=u({__name:"Members",setup(e){const r=b().params.organizationId,n=[{key:"email",label:"Email"}],s=async t=>{await m.create(r,t.email),d()},{loading:l,result:p,refetch:d}=w(()=>m.list(r)),c=f(()=>{var t,a;return{columns:[{name:"Email"},{name:"Role"}],rows:(a=(t=p.value)==null?void 0:t.map(i=>({key:i.email,cells:[{text:i.email},{text:i.role}]})))!=null?a:[]}});return(t,a)=>(y(),g(I,{"entity-name":"members",loading:_(l),title:"Organization members",description:"List all organization members.","empty-title":"No members yet",table:c.value,"create-button-text":"Add members",fields:n,onCreate:s},null,8,["loading","table"]))}});export{Q as default};
//# sourceMappingURL=Members.53c1285d.js.map
