import{d as f,ez as u,H as b,b as y,c as g,u as _}from"./outputWidgets.8a1294ac.js";import{a as w}from"./asyncComputed.3699cd44.js";import"./router.e765b2a2.js";import{M as m}from"./member.e7d051df.js";import"./columns.a2ad5768.js";import{C as I}from"./CrudView.707fb9d1.js";import"./Title.c5e29cf7.js";import"./index.04ab96ef.js";import"./gateway.ec720fac.js";import"./activeRecord.4f50a80e.js";import"./pubsub.5ff7800d.js";import"./index.f4ac7424.js";import"./icons.25b21aee.js";import"./index.21148e20.js";import"./Form.1860c0ed.js";import"./url.9a5c0e6d.js";import"./index.d5d7d1dc.js";import"./index.4fc6eb1b.js";import"./index.91683b65.js";import"./index.bf7f5369.js";import"./index.0f4f2049.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]="aa72bf15-64dd-4fee-a1cf-db248d8fd21c",e._sentryDebugIdIdentifier="sentry-dbid-aa72bf15-64dd-4fee-a1cf-db248d8fd21c")}catch{}})();const J=f({__name:"Members",setup(e){const r=u().params.organizationId,n=[{key:"email",label:"Email"}],s=async t=>{await m.create(r,t.email),p()},{loading:d,result:l,refetch:p}=w(()=>m.list(r)),c=b(()=>{var t,a;return{columns:[{name:"Email"},{name:"Role"}],rows:(a=(t=l.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:_(d),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{J as default};
//# sourceMappingURL=Members.427cfb14.js.map
