text: "use strict";(self.webpackChunkmy_project=self.webpackChunkmy_project||[]).push([[3677],{44226:(e,t,a)=>{var l=a(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(a(67294)),r=a(23724),u=a(97132),i=a(68547),s=a(78862),o=a(62031),d=a(84686),c=a(49425),f=a(41798),p=a(52285),m=function(){var e=(0,u.useIntl)().formatMessage;(0,i.useFocusWhenNavigate)();var t=(0,d.useNotifyAT)().notifyStatus,a=(0,i.useNotification)(),l=e({id:"app.components.ListPluginsPage.title",defaultMessage:"Plugins"}),m=function(){t(e({id:"app.utils.notify.data-loaded",defaultMessage:"The {target} has loaded"},{target:l}))},g=(0,r.useQuery)("list-plugins",(function(){return(0,p.fetchPlugins)(m)}),{onError:function(){a({type:"warning",message:{id:"notification.error",defaultMessage:"An error occured"}})}}),y=g.status,h=g.data;return"success"!==y&&"error"!==y?n.default.createElement(s.Layout,null,n.default.createElement(o.Main,{"aria-busy":!0},n.default.createElement(i.LoadingIndicatorPage,null))):n.default.createElement(s.Layout,null,n.default.createElement(o.Main,null,n.default.createElement(s.HeaderLayout,{title:l,subtitle:e({id:"app.components.ListPluginsPage.description",defaultMessage:"List of the installed plugins in the project."})}),n.default.createElement(s.ContentLayout,null,n.default.createElement(f.Table,{colCount:2,rowCount:(null===h||void 0===h?void 0:h.plugins.length)+1},n.default.createElement(f.Thead,null,n.default.createElement(f.Tr,null,n.default.createElement(f.Th,null,n.default.createElement(c.Typography,{variant:"sigma",textColor:"neutral600"},e({id:"Settings.roles.list.header.name",defaultMessage:"Name"}))),n.default.createElement(f.Th,null,n.default.createElement(c.Typography,{variant:"sigma",textColor:"neutral600"},e({id:"Settings.roles.list.header.description",defaultMessage:"description"}))))),n.default.createElement(f.Tbody,null,h.plugins.map((function(e){var t=e.name,a=e.displayName,l=e.description;return n.default.createElement(f.Tr,{key:t},n.default.createElement(f.Td,null,n.default.createElement(c.Typography,{textColor:"neutral800",variant:"omega",fontWeight:"bold"},a)),n.default.createElement(f.Td,null,n.default.createElement(c.Typography,{textColor:"neutral800"},l)))})))))))};t.default=m},3505:(e,t,a)=>{var l=a(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(a(67294)),r=a(68547),u=a(15482),i=a(97132),s=l(a(13240)),o=l(a(44226)),d=function(){var e=(0,(0,i.useIntl)().formatMessage)({id:"app.components.ListPluginsPage.title",defaultMessage:"Plugins"});return n.default.createElement(r.CheckPagePermissions,{permissions:s.default.marketplace.main},n.default.createElement(u.Helmet,{title:e}),n.default.createElement(o.default,null))};t.default=d},52285:(e,t,a)=>{var l=a(95318);Object.defineProperty(t,"__esModule",{value:!0}),t.fetchPlugins=void 0;var n=l(a(87757)),r=l(a(48926)),u=a(53777),i=function(){var e=(0,r.default)(n.default.mark((function e(t){var a,l;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.axiosInstance.get("/admin/plugins");case 2:return a=e.sent,l=a.data,t(),e.abrupt("return",l);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.fetchPlugins=i}}]);