import{d as b,ez as u,H as f,b as y,c as g,u as _}from"./outputWidgets.7bdcec0a.js";import{a as w}from"./asyncComputed.cfb98789.js";import"./router.3986149f.js";import{M as m}from"./member.1113ff10.js";import"./columns.6b51fbf2.js";import{C as I}from"./CrudView.82a1bc5a.js";import"./Title.9c0d0c5f.js";import"./index.15e46fc6.js";import"./gateway.f622b899.js";import"./activeRecord.84d52553.js";import"./pubsub.c455bec9.js";import"./index.f4ac7424.js";import"./icons.6934ad19.js";import"./Text.94a8ea41.js";import"./Form.f84b91b7.js";import"./url.5caacc63.js";import"./index.fa2fc691.js";import"./index.125aa6b3.js";import"./index.d2a75d88.js";import"./index.a9a6d5a2.js";import"./index.a2310446.js";import"./index.23129d61.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]="cab2cf59-c89b-4d80-bfbc-22002a034f10",e._sentryDebugIdIdentifier="sentry-dbid-cab2cf59-c89b-4d80-bfbc-22002a034f10")}catch{}})();const K=b({__name:"Members",setup(e){const r=u().params.organizationId,n=[{key:"email",label:"Email"}],s=async t=>{await m.create(r,t.email),c()},{loading:l,result:p,refetch:c}=w(()=>m.list(r)),d=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:d.value,"create-button-text":"Add members",fields:n,onCreate:s},null,8,["loading","table"]))}});export{K as default};
//# sourceMappingURL=Members.dd1c9ebb.js.map
