import{l as a}from"./logger-C3hd40pU.chunk.mjs";var _=Object.defineProperty,w=Object.defineProperties,u=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,c=(r,i,t)=>i in r?_(r,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[i]=t,A=(r,i)=>{for(var t in i||(i={}))b.call(i,t)&&c(r,t,i[t]);if(l)for(var t of l(i))v.call(i,t)&&c(r,t,i[t]);return r},f=(r,i)=>w(r,u(i));function O(){var r,i,t,n,o,s,d;window.OCA=(r=window.OCA)!=null?r:{},window.OCA.Activity=f(A({},window.OCA.Activity),{__sidebar_actions:(t=(i=window.OCA.Activity)==null?void 0:i.__sidebar_actions)!=null?t:[],__sidebar_factories:(o=(n=window.OCA.Activity)==null?void 0:n.__sidebar_factories)!=null?o:[],__sidebar_filters:(d=(s=window.OCA.Activity)==null?void 0:s.__sidebar_filters)!=null?d:[],registerSidebarAction(e){window.OCA.Activity.__sidebar_actions.push(e),a.debug("Registered new sidebar action")},registerSidebarEntries(e){window.OCA.Activity.__sidebar_factories.push(e),a.debug("Registered new sidebar actions factory")},registerSidebarFilter(e){window.OCA.Activity.__sidebar_filters.push(e)}}),a.info("Activity API registered")}function p(){var r,i,t;return(t=(i=(r=window.OCA)==null?void 0:r.Activity)==null?void 0:i.__sidebar_actions)!=null?t:[]}async function C(r){var i,t;if(((t=(i=window.OCA)==null?void 0:i.Activity)==null?void 0:t.__sidebar_factories)===void 0)return[];const n=window.OCA.Activity.__sidebar_factories.map(async o=>await o(r));return(await Promise.all(n)).flat()}function g(){var r,i,t;return(t=(i=(r=window.OCA)==null?void 0:r.Activity)==null?void 0:i.__sidebar_filters)!=null?t:[]}export{C as a,p as b,g,O as r};
//# sourceMappingURL=api-DCJrXyKq.chunk.mjs.map
