import{d as u,ez as b,H as f,b as y,c as g,u as _}from"./outputWidgets.397b3720.js";import{a as w}from"./asyncComputed.28fc9d36.js";import"./router.3bc1b205.js";import{M as n}from"./member.c18019ef.js";import"./columns.37df3c3d.js";import{C as I}from"./CrudView.77c1d16d.js";import"./Title.382247fb.js";import"./index.06276212.js";import"./gateway.b868389d.js";import"./activeRecord.6bb6b853.js";import"./pubsub.fe0f0397.js";import"./index.f4ac7424.js";import"./icons.5e65f599.js";import"./index.19008df2.js";import"./Form.5ce50c8f.js";import"./url.53bc193a.js";import"./index.4acaedbb.js";import"./index.c9ea7155.js";import"./index.40ca2e79.js";import"./index.e12747aa.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]="c6ac5e4f-4c2d-45b1-adb7-e5acccdbc368",e._sentryDebugIdIdentifier="sentry-dbid-c6ac5e4f-4c2d-45b1-adb7-e5acccdbc368")}catch{}})();const G=u({__name:"Members",setup(e){const r=b().params.organizationId,m=[{key:"email",label:"Email"}],s=async t=>{await n.create(r,t.email),d()},{loading:c,result:l,refetch:d}=w(()=>n.list(r)),p=f(()=>{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:_(c),title:"Organization members",description:"List all organization members.","empty-title":"No members yet",table:p.value,"create-button-text":"Add members",fields:m,onCreate:s},null,8,["loading","table"]))}});export{G as default};
//# sourceMappingURL=Members.17729308.js.map
