import{j as jsxRuntimeExports,A as AIWareThemeProvider,u as useSelector,ag as selectIsFullscreenEnabled,n as hidePanel}from"./js-core.esm4.js";import{D as DynamicModuleLoader,A as AIWareIntlProvider,M as MemoizedFormattedMessage}from"./js-core.esm7.js";import{p as panelComponents}from"./js-core.esm9.js";import{l as AuditLogWidget}from"./js-core.esm8.js";import{u as useDispatch}from"./js-core.esm12.js";var TEST_ID_PANEL="audit-logs-panel",AUDIT_LOGS_PANEL_ID="AUDIT_LOGS_PANEL",SHARED_TEXT={panel:{title:jsxRuntimeExports.jsx(MemoizedFormattedMessage,{id:"os.audit-log.panel.title",defaultMessage:"Audit Log",description:"Audit Log Panel title"})}},PanelHeader=panelComponents.header,PanelContainer=panelComponents.container,PanelContent=panelComponents.content,MainLayout=function(e){var t=useDispatch(),n=useSelector(selectIsFullscreenEnabled);return jsxRuntimeExports.jsxs(PanelContainer,{testId:"".concat(TEST_ID_PANEL,"-panel-container"),panelId:AUDIT_LOGS_PANEL_ID,isFullScreen:n,children:[jsxRuntimeExports.jsx(PanelHeader,{title:SHARED_TEXT.panel.title,testId:"".concat(TEST_ID_PANEL,"-panel-header"),onPanelClose:function(){t(hidePanel(AUDIT_LOGS_PANEL_ID))}}),jsxRuntimeExports.jsx(PanelContent,{isLoading:!1,isErrored:!1,onRetry:function(){},style:{padding:"0 30px"},testId:"".concat(TEST_ID_PANEL,"-panel-content"),children:jsxRuntimeExports.jsx(AuditLogWidget,{})})]})};function _define_property(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _object_spread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);(o="function"==typeof Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})):o).forEach(function(e){_define_property(t,e,n[e])})}return t}function AuditLogPanel(e){return jsxRuntimeExports.jsx(AIWareThemeProvider,{children:jsxRuntimeExports.jsx(DynamicModuleLoader,{modules:[],children:jsxRuntimeExports.jsx(AIWareIntlProvider,{children:jsxRuntimeExports.jsx(MainLayout,_object_spread({},e))})})})}export{AuditLogPanel};
