"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkAAM7T6TBjs = require('./chunk-AAM7T6TB.js');var _chunk5QLT6G7Sjs = require('./chunk-5QLT6G7S.js');var _material = require('@mui/material');var _reactvirtuoso = require('react-virtuoso');var _jsxruntime = require('react/jsx-runtime');function p(e){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(e)}function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(d){return Object.getOwnPropertyDescriptor(e,d).enumerable})),r.push.apply(r,o)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(o){C(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function C(e,t,r){return(t=T(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T(e){var t=I(e,"string");return p(t)=="symbol"?t:t+""}function I(e,t){if(p(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(p(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E=function(t){var r=t.logGroups,o=t.LoadingState,d=o===void 0?_material.CircularProgress:o,P=t.LoadingStateProps,j=t.VirtuosoProps,h=t.loadNext,O=t.hasNext,S=t.isLoadingNext,$=function(n,l){return n?_jsxruntime.jsx.call(void 0, _chunkAAM7T6TBjs.a,{sx:l?{marginBottom:"6px"}:void 0,log:n},n.id):null},L=function(){return S?_jsxruntime.jsx.call(void 0, d,b({sx:{paddingTop:3,paddingBottom:1},CircularProgressProps:{size:15},"aria-label":"loading more activity logs"},P)):_jsxruntime.jsx.call(void 0, _material.Box,{sx:{paddingTop:3}})},w=function(n){var l,i,m,s,u;return _jsxruntime.jsxs.call(void 0, _material.Box,{display:"flex",flexDirection:"column",justifyContent:"center",pt:"6px",pb:"16px",maxWidth:"568px",children:[_jsxruntime.jsxs.call(void 0, _material.Box,{display:"flex",alignItems:"center",gap:"12px",children:[_jsxruntime.jsx.call(void 0, _material.Avatar,{style:{marginBottom:"4px"},sizes:"small",src:(l=(i=n.logs[0])===null||i===void 0||(i=i.user)===null||i===void 0||(i=i.avatar)===null||i===void 0?void 0:i.url)!==null&&l!==void 0?l:"",alt:(m=(s=n.logs[0])===null||s===void 0||(s=s.user)===null||s===void 0?void 0:s.fullName)!==null&&m!==void 0?m:"User activity log avatar"}),_jsxruntime.jsx.call(void 0, _material.Typography,{variant:"subtitle2",mb:"6px",children:(u=n.logs[0])===null||u===void 0||(u=u.user)===null||u===void 0?void 0:u.fullName})]}),n.logs.map(function(N,_){return $(N,_===n.logs.length-1)}),_jsxruntime.jsx.call(void 0, _chunk5QLT6G7Sjs.a,{date:n.lastActivityTimestamp})]},n.lastActivityTimestamp)};return _jsxruntime.jsx.call(void 0, "div",{className:"overflow-x-auto hide-scrollbar",children:_jsxruntime.jsx.call(void 0, _reactvirtuoso.Virtuoso,b({useWindowScroll:!0,data:r,itemContent:function(n,l){return w(l)},components:{Footer:L},endReached:function(){O&&h(10)}},j))})},k= exports.a =E;exports.a = k;
//# sourceMappingURL=chunk-RMWWJOSA.js.map