import{d as b,eA as u,J as f,b as y,c as _,u as g}from"./outputWidgets.1f391ab3.js";import{a as w}from"./asyncComputed.56fb497e.js";import"./console.3edc9cde.js";import{M as a}from"./member.57ba8d70.js";import"./index.e8fb5940.js";import{_ as I}from"./CrudView.vue_vue_type_script_setup_true_lang.fc3376a4.js";import"./index.a24e4cfd.js";import"./Form.d88e907e.js";import"./Title.e19c9b7e.js";import"./CollapsePanel.ed22c9ce.js";import"./index.3daa08be.js";import"./index.beaf06d8.js";import"./index.16917afa.js";import"./dayjs.12321a58.js";import"./index.06f9a351.js";import"./index.130e9d58.js";import"./TabPane.49afc3f4.js";import"./index.a2705008.js";import"./index.257ed691.js";import"./index.72e9f57c.js";import"./index.4260e6cf.js";import"./index.f0baefdd.js";import"./index.37b8f4ea.js";import"./index.18aa8459.js";import"./index.d09067f1.js";import"./index.6e066317.js";import"./gateway.98993b50.js";import"./activeRecord.b9964a93.js";import"./pubsub.ab26e051.js";import"./icons.35fd2af6.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]="74452423-8abb-4d54-8272-e9b12944cc07",e._sentryDebugIdIdentifier="sentry-dbid-74452423-8abb-4d54-8272-e9b12944cc07")}catch{}})();const X=b({__name:"Members",setup(e){const r=u().params.organizationId,n=[{key:"email",label:"Email"}],s=async t=>{await a.create(r,t.email),d()},{loading:p,result:l,refetch:d}=w(()=>a.list(r)),c=f(()=>{var t,i;return{columns:[{name:"Email"},{name:"Role"}],rows:(i=(t=l.value)==null?void 0:t.map(m=>({key:m.email,cells:[{text:m.email},{text:m.role}]})))!=null?i:[]}});return(t,i)=>(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{X as default};
//# sourceMappingURL=Members.613c671f.js.map
