import{j as jsxRuntimeExports,A as AIWareThemeProvider,u as useSelector,ag as selectIsFullscreenEnabled,aj as lodashExports,n as hidePanel}from"./js-core.esm4.js";import{D as DynamicModuleLoader,A as AIWareIntlProvider,T as Typography,g as Divider,M as MemoizedFormattedMessage}from"./js-core.esm7.js";import{S as Stack,A as Avatar,K as DateFormatter,p as panelComponents}from"./js-core.esm9.js";import{u as useDispatch}from"./js-core.esm12.js";var TEST_ID_PANEL="audit-logs-panel-detail",AUDIT_LOGS_PANEL_DETAIL_ID="AUDIT_LOGS_PANEL_DETAIL",SHARED_TEXT={panel:{title:jsxRuntimeExports.jsx(MemoizedFormattedMessage,{id:"os.audit-log.panel.detail.title",defaultMessage:"Audit Log Detail",description:"Audit Log Panel Detail title"}),eventType:jsxRuntimeExports.jsx(MemoizedFormattedMessage,{id:"os.audit-log.panel.detail.eventType",defaultMessage:"Event Type:",description:"Audit Log Panel Detail Event type"}),eventDate:jsxRuntimeExports.jsx(MemoizedFormattedMessage,{id:"os.audit-log.panel.detail.eventDate",defaultMessage:"Event Date:",description:"Audit Log Panel Detail Event date"})}},PanelHeader=panelComponents.header,PanelContainer=panelComponents.container,PanelContent=panelComponents.content,MainLayout=function(e){var t=useDispatch(),a=useSelector(selectIsFullscreenEnabled);return jsxRuntimeExports.jsxs(PanelContainer,{testId:"".concat(TEST_ID_PANEL,"-panel-container"),panelId:AUDIT_LOGS_PANEL_DETAIL_ID,isFullScreen:a,children:[jsxRuntimeExports.jsx(PanelHeader,{title:SHARED_TEXT.panel.title,testId:"".concat(TEST_ID_PANEL,"-panel-header"),onPanelClose:function(){t(hidePanel(AUDIT_LOGS_PANEL_DETAIL_ID))}}),jsxRuntimeExports.jsx(PanelContent,{testId:"".concat(TEST_ID_PANEL,"-panel-content"),style:{padding:"30px 0"},children:jsxRuntimeExports.jsxs(Stack,{gap:4,"data-testid":"".concat(TEST_ID_PANEL,"-stack-main"),children:[jsxRuntimeExports.jsxs(Stack,{direction:"row",sx:{alignItems:"normal",gap:"14px"},style:{padding:"0 30px"},"data-testid":"".concat(TEST_ID_PANEL,"-stack-row"),children:[jsxRuntimeExports.jsx(Avatar,{sx:{width:34,height:34,backgroundColor:"#e9f3fc",border:"1px solid #d8d9e0"},src:e.userAvatar,"data-testid":"".concat(TEST_ID_PANEL,"-avatar")}),jsxRuntimeExports.jsxs(Stack,{gap:4,pt:1.5,"data-testid":"".concat(TEST_ID_PANEL,"-stack-content"),children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",fontWeight:700,"data-testid":"".concat(TEST_ID_PANEL,"-user-name"),children:e.userName}),jsxRuntimeExports.jsxs(Stack,{gap:1,"data-testid":"".concat(TEST_ID_PANEL,"-event-type-container"),children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",fontWeight:700,"data-testid":"".concat(TEST_ID_PANEL,"-event-type-label"),children:SHARED_TEXT.panel.eventType}),jsxRuntimeExports.jsx(Typography,{variant:"body2",fontWeight:500,"data-testid":"".concat(TEST_ID_PANEL,"-event-type-value"),children:lodashExports.startCase(e.eventName)})]}),jsxRuntimeExports.jsxs(Stack,{gap:1,"data-testid":"".concat(TEST_ID_PANEL,"-event-date-container"),children:[jsxRuntimeExports.jsx(Typography,{variant:"body2",fontWeight:700,"data-testid":"".concat(TEST_ID_PANEL,"-event-date-label"),children:SHARED_TEXT.panel.eventDate}),jsxRuntimeExports.jsx(Typography,{variant:"body2",fontWeight:500,"data-testid":"".concat(TEST_ID_PANEL,"-event-date-value"),children:jsxRuntimeExports.jsx(DateFormatter,{value:e.createdDateTime,orientation:"horizontal"})})]})]})]}),jsxRuntimeExports.jsx(Divider,{"data-testid":"".concat(TEST_ID_PANEL,"-divider")}),jsxRuntimeExports.jsx(Typography,{variant:"body2",fontWeight:500,style:{padding:"0 30px"},"data-testid":"".concat(TEST_ID_PANEL,"-description"),children:e.description})]})})]})};function _define_property(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _object_spread(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{},n=Object.keys(a);(n="function"==typeof Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(a).filter(function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable})):n).forEach(function(e){_define_property(t,e,a[e])})}return t}function AuditLogPanelDetail(e){return jsxRuntimeExports.jsx(AIWareThemeProvider,{children:jsxRuntimeExports.jsx(DynamicModuleLoader,{modules:[],children:jsxRuntimeExports.jsx(AIWareIntlProvider,{children:jsxRuntimeExports.jsx(MainLayout,_object_spread({},e))})})})}export{AuditLogPanelDetail};
