import{d as u,eA as f,J as b,b as y,c as _,u as g}from"./outputWidgets.b43a489b.js";import{a as w}from"./asyncComputed.a42e75bb.js";import"./console.bbd86620.js";import{M as m}from"./member.e097f09b.js";import"./index.d989c562.js";import{_ as I}from"./CrudView.vue_vue_type_script_setup_true_lang.85d5e2a7.js";import"./index.42b92ee8.js";import"./Form.1797df89.js";import"./Title.47040052.js";import"./CollapsePanel.3e5384f9.js";import"./index.523f4a12.js";import"./index.65dea612.js";import"./index.9c88be1a.js";import"./dayjs.caeff4fe.js";import"./index.0279b5ff.js";import"./index.956893d2.js";import"./TabPane.b49c19a0.js";import"./index.0887e3a5.js";import"./index.a775b9cf.js";import"./index.e641ddba.js";import"./index.479accfd.js";import"./index.9367a16c.js";import"./index.8df4e710.js";import"./index.2fc0be8f.js";import"./index.8a60ee51.js";import"./index.85f24c29.js";import"./gateway.38461683.js";import"./activeRecord.2bc5cc59.js";import"./pubsub.6fd47a9d.js";import"./icons.de9af46a.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]="ad8c9a86-4133-478e-8024-d8bc8f8a5f63",e._sentryDebugIdIdentifier="sentry-dbid-ad8c9a86-4133-478e-8024-d8bc8f8a5f63")}catch{}})();const X=u({__name:"Members",setup(e){const r=f().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=b(()=>{var t,i;return{columns:[{name:"Email"},{name:"Role"}],rows:(i=(t=l.value)==null?void 0:t.map(a=>({key:a.email,cells:[{text:a.email},{text:a.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.d1848520.js.map
