import{d as u,eA as b,J as f,b as y,c as _,u as g}from"./outputWidgets.eddbac36.js";import{a as w}from"./asyncComputed.fbd351ba.js";import"./console.56ba8e89.js";import{M as m}from"./member.d0083a24.js";import"./index.c1e978a8.js";import{_ as I}from"./CrudView.vue_vue_type_script_setup_true_lang.d009f8f3.js";import"./index.cc18f239.js";import"./Form.f5163eed.js";import"./Title.7ca27be1.js";import"./index.1a0ec4ff.js";import"./index.31447910.js";import"./index.9c583b89.js";import"./dayjs.d80a3524.js";import"./index.8318ec36.js";import"./index.8b693270.js";import"./TabPane.05333dfb.js";import"./index.b6a61078.js";import"./index.7a28d537.js";import"./index.d099a09e.js";import"./index.933610ff.js";import"./index.2c51d0a8.js";import"./index.b131e8f9.js";import"./index.3475d619.js";import"./index.f428cf3a.js";import"./gateway.e4ec4a58.js";import"./activeRecord.64b754df.js";import"./pubsub.9aea5614.js";import"./icons.08aaa24c.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]="a336b41e-32a6-4188-aedc-9e98a8d4d165",e._sentryDebugIdIdentifier="sentry-dbid-a336b41e-32a6-4188-aedc-9e98a8d4d165")}catch{}})();const V=u({__name:"Members",setup(e){const r=b().params.organizationId,n=[{key:"email",label:"Email"}],s=async t=>{await m.create(r,t.email),d()},{loading:p,result:l,refetch:d}=w(()=>m.list(r)),c=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(),_(I,{"entity-name":"members",loading:g(p),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{V as default};
//# sourceMappingURL=Members.fd43c2ff.js.map
