import{d as u,ez as f,H as b,b as y,c as g,u as _}from"./outputWidgets.1739e6b5.js";import{a as w}from"./asyncComputed.b4d87a94.js";import"./router.95125983.js";import{M as m}from"./member.cb47622c.js";import"./columns.0d2e1661.js";import{C as I}from"./CrudView.245e4133.js";import"./Title.1261c75a.js";import"./index.92715e30.js";import"./gateway.8b5d469f.js";import"./activeRecord.55a23e4a.js";import"./pubsub.e4395938.js";import"./index.f4ac7424.js";import"./icons.1c3e2bde.js";import"./Text.f4c0ef3e.js";import"./Form.6a4829ad.js";import"./url.8bddfe76.js";import"./index.aaa812ca.js";import"./index.663f575e.js";import"./index.366cf7e1.js";import"./index.8b3d4030.js";import"./index.55ff2de5.js";import"./index.fbff59b3.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]="f278cd66-7c7e-4533-898b-6e2790f6ed1a",e._sentryDebugIdIdentifier="sentry-dbid-f278cd66-7c7e-4533-898b-6e2790f6ed1a")}catch{}})();const K=u({__name:"Members",setup(e){const r=f().params.organizationId,n=[{key:"email",label:"Email"}],s=async t=>{await m.create(r,t.email),p()},{loading:l,result:d,refetch:p}=w(()=>m.list(r)),c=b(()=>{var t,a;return{columns:[{name:"Email"},{name:"Role"}],rows:(a=(t=d.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{K as default};
//# sourceMappingURL=Members.c334236e.js.map
