import{d as c,eA as u,J as f,b as y,c as g,u as _}from"./outputWidgets.ec044eb8.js";import{a as w}from"./asyncComputed.70e28ece.js";import"./router.8cea9830.js";import{M as n}from"./member.adc31e7b.js";import"./index.ca493aff.js";import{C as I}from"./CrudView.a07f1600.js";import"./Title.85fa9137.js";import"./index.6e43b5b9.js";import"./gateway.8ffe4c25.js";import"./activeRecord.eb528dd4.js";import"./pubsub.33b79e26.js";import"./icons.a554ebda.js";import"./index.cdce8068.js";import"./Form.316ac787.js";import"./url.a1da359b.js";import"./index.67245513.js";import"./index.d97f12e1.js";import"./index.cd569242.js";import"./index.185a1704.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]="dd4fbb05-48d4-4903-988b-8a6cb7268b14",e._sentryDebugIdIdentifier="sentry-dbid-dd4fbb05-48d4-4903-988b-8a6cb7268b14")}catch{}})();const F=c({__name:"Members",setup(e){const r=u().params.organizationId,m=[{key:"email",label:"Email"}],s=async t=>{await n.create(r,t.email),p()},{loading:l,result:d,refetch:p}=w(()=>n.list(r)),b=f(()=>{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:b.value,"create-button-text":"Add members",fields:m,onCreate:s},null,8,["loading","table"]))}});export{F as default};
//# sourceMappingURL=Members.1dd73b2b.js.map
