1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[5455],{34659(e,t,s){s.r(t),s.d(t,{Datepicker:()=>r.default});var r=s(45104)},223(e,t,s){s.r(t),s.d(t,{EventLogWrapper:()=>n,Header:()=>b,RowLogAction:()=>S,RowRender:()=>x,RowWrapper:()=>G});var r=s(74848),i=s(96540),a=s(5556),o=s.n(a);const l=({children:e,onClickClose:t})=>((0,i.useEffect)(()=>(document.body.classList.add("team-statistic-delete-scroll"),()=>document.body.classList.remove("team-statistic-delete-scroll")),[]),(0,r.jsxs)("div",{className:"team-statistic-event-log__wrapper",children:[(0,r.jsx)("div",{"aria-hidden":!0,className:"team-statistic-event-log__background",onClick:t}),(0,r.jsx)("div",{className:"team-statistic-event-log__container",children:e})]}));l.propTypes={onClickClose:o().func};const n=l;var d=s(38732),c=s(96307),h=s(62193),m=s.n(h),u=s(34659),p=s(97925),g=s(50768),f=s(87714);const y=(e,t,s,a,o)=>{let l=[];1===s.length&&(l=a.filter(e=>e.value===s[0]));const n=m()(s)?e:1===s.length?(0,r.jsxs)(i.Fragment,{children:[e,": ",l[0].text]}):(0,r.jsxs)(i.Fragment,{children:[t," \u2022 ",s.length]});return(0,r.jsx)("div",{className:"dropdown_trigger links_trigger",children:(0,r.jsxs)("div",{className:"button_content",children:[(0,r.jsx)("div",{className:"link_text",style:{maxWidth:"users"===o?"160px":"80px"},children:n}),(0,r.jsx)(c.default,{iconId:"angle_down",className:"team-statistic-event-log-header__dropdown-icon"})]})})},_=({t:e,employeesItems:t,activeEmployees:s,onChangeEmployees:i,modulesItems:a,activeModules:o,onChangeModules:l,startDay:n,endDay:h,renderTriggerDatePicker:m,handleChangeDatePicker:_,onClickClose:b,onChangeSearch:v,searchValue:x})=>{let R=[],w=()=>{},j=[],D=()=>{};return(0,r.jsxs)("div",{className:"team-statistic-event-log-header",children:[(0,r.jsx)("div",{className:"team-statistic-event-log-header__employees",children:(0,r.jsx)(d.default,{closeDropdown:e=>{w=e.bind(null)},items:t,itemsType:"multiselect",value:s,selectAllText:e.translate("TeamManagement::teamemployeesselectall","\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439"),triggerType:"inline",trigger:y(e.translate("teameventlogactions","\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f"),e.translate("teameventlogactionsusers","\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f"),s,t,"users"),search:!0,onSelect:e=>{R=e},dropdownFooter:(0,r.jsx)("div",{className:"tr",children:(0,r.jsx)(f.default,{onClick:()=>{R.value&&(i(R.value),w())},children:e.translate("teamapplydropdown","\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c")})})})}),(0,r.jsx)("div",{className:"team-statistic-event-log-header__modules",children:(0,r.jsx)(d.default,{closeDropdown:e=>{D=e.bind(null)},items:a,itemsType:"multiselect",value:o,selectAllText:e.translate("teammodulesselectall","\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435"),triggerType:"inline",trigger:y(e.translate("teameventlogmodule","\u041c\u043e\u0434\u0443\u043b\u044c"),e.translate("teameventlogmodules","\u041c\u043e\u0434\u0443\u043b\u0438"),o,a,"modules"),search:!0,onSelect:e=>{j=e},dropdownFooter:(0,r.jsx)("div",{className:"tr",children:(0,r.jsx)(f.default,{onClick:()=>{j.value&&(l(j.value),D())},children:e.translate("teamapplydropdown","\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c")})})})}),(0,r.jsx)("div",{children:(0,r.jsx)(u.Datepicker,{onApply:_,dateStart:n,dateEnd:h,trigger:m(),mode:p.MODE_TYPES.PERIOD,hasAside:!0,asideType:p.ASIDE_TYPES.PERIODS,hideAllTime:!0})}),(0,r.jsx)("div",{className:"team-statistic-event-log-header__search",children:(0,r.jsx)(g.default,{name:"search",placeholder:e.translate("teameventlogsearch","\u041f\u043e\u0438\u0441\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439"),className:"team-statistic-event-log-header__search-input",type:"text",autofocus:!0,onChange:v,value:x})}),(0,r.jsx)("div",{"aria-hidden":!0,className:"team-statistic-event-log-header__close",onClick:b,children:(0,r.jsx)(c.default,{iconId:"close",style:{width:"18px",height:"18px"}})})]})};_.propTypes={t:o().object,employeesItems:o().array,activeEmployees:o().array,onChangeEmployees:o().func,modulesItems:o().array,activeModules:o().array,onChangeModules:o().func};const b=_,v=({onClickRow:e,keyPrefix:t,param:s,itemText:i,iconLeft:a,iconRight:o,className:l})=>(0,r.jsxs)("div",{"aria-hidden":!0,onClick:e(t,s),className:l,children:[a&&(0,r.jsx)(c.default,{iconId:a,className:"team-statistic-event-log-list__icon"}),(0,r.jsx)("div",{children:i()}),o&&(0,r.jsx)(c.default,{iconId:o,className:"team-statistic-event-log-list__arrow-down"})]});v.propTypes={onClickRow:o().func.isRequired,keyPrefix:o().string,param:o().object.isRequired,itemText:o().func.isRequired,iconLeft:o().string,iconRight:o().string};const x=v;var R=s(54625),w=s(46942),j=s.n(w),D=s(95093),C=s.n(D);const L=({indexLog:e,isSingleUser:t,item:s})=>(0,r.jsxs)("div",{className:j()("team-statistic-event-log-list__container team-statistic-event-log-list__container_log",{"team-statistic-event-log-list__container_log_shadow":0===e&&!t}),style:{background:e%2===0?"var(--neutral_5)":null},children:[(0,r.jsx)("div",{className:"team-statistic-event-log-list__container__time",children:C()(s.date).format("HH:mm")}
1),(0,r.jsxs)("div",{className:"team-statistic-event-log-list__container__module-text",children:[s.hasOwnProperty("properties")&&s.properties.hasOwnProperty("query")&&(0,r.jsx)(R.Link,{to:s.properties.url?s.properties.url:s.properties.uri?s.properties.uri:"#",target:"_blank",className:j()("team-statistic-event-log-list__container__link",{"team-statistic-event-log-list__container__link_active":s.properties.url||s.properties.uri}),children:s.properties.query}),s.hasOwnProperty("properties")&&s.properties.hasOwnProperty("projectDomain")&&(0,r.jsx)("div",{className:"team-statistic-event-log-list__container__link",children:s.properties.projectDomain}),s.hasOwnProperty("properties")&&s.properties.hasOwnProperty("ProjectDomainName")&&(0,r.jsx)("div",{className:"team-statistic-event-log-list__container__link",children:s.properties.ProjectDomainName}),(0,r.jsx)("div",{className:"team-statistic-event-log-list__container__module",children:s.searchText})]})]},"label");L.propTypes={indexLog:o().number,isSingleUser:o().bool,item:o().object};const S=L,M=({children:e})=>(0,r.jsx)("ul",{className:"team-statistic-event-log-list",children:(0,r.jsx)("li",{className:"team-statistic-event-log-list__item",children:e})});M.propTypes={keyPrefix:o().string};const G=M},10760(e,t,s){s.r(t),s.d(t,{default:()=>Ot});var r=s(74848),i=s(96540),a=s(5556),o=s.n(a),l=s(90011),n=s(6761),d=s(96307),c=Object.defineProperty,h=Object.defineProperties,m=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,f=(e,t,s)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,y=(e,t)=>{for(var s in t||(t={}))p.call(t,s)&&f(e,s,t[s]);if(u)for(var s of u(t))g.call(t,s)&&f(e,s,t[s]);return e},_=(e,t)=>h(e,m(t)),b=(e,t)=>{var s={};for(var r in e)p.call(e,r)&&t.indexOf(r)<0&&(s[r]=e[r]);if(null!=e&&u)for(var r of u(e))t.indexOf(r)<0&&g.call(e,r)&&(s[r]=e[r]);return s},v=(e,t,s)=>f(e,"symbol"!==typeof t?t+"":t,s);class x extends i.PureComponent{constructor(e,t){super(e,t),v(this,"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1,isLeftScroll:!1,isRightScroll:!1}),v(this,"_deferredInvalidateColumnIndex",null),v(this,"_deferredInvalidateRowIndex",null),v(this,"setWidthLastColumn",()=>{var e,t,s,r,i,a;this._bottomRightGrid&&null!==(null==(e=this._bottomRightGrid)?void 0:e._scrollingContainer)&&(null==(s=null==(t=this._bottomRightGrid)?void 0:t._scrollingContainer)?void 0:s.offsetWidth)<(null==(a=null==(i=null==(r=this._bottomRightGrid)?void 0:r._scrollingContainer)?void 0:i.children[0])?void 0:a.offsetWidth)&&this.setState({isRightScroll:!0})}),v(this,"scrollBottomRightGrid",()=>{var e,t,s,r,i,a,o;this._bottomRightGrid&&this._bottomRightGrid._scrollingContainer&&this._bottomRightGrid._scrollingContainer.scrollLeft>0?this.setState({isLeftScroll:!0}):this.setState({isLeftScroll:!1}),this._bottomRightGrid&&(null==(e=this._bottomRightGrid)?void 0:e._scrollingContainer)&&(null==(s=null==(t=this._bottomRightGrid)?void 0:t._scrollingContainer)?void 0:s.scrollWidth)-(null==(i=null==(r=this._bottomRightGrid)?void 0:r._scrollingContainer)?void 0:i.scrollLeft)<=(null==(o=null==(a=this._bottomRightGrid)?void 0:a._scrollingContainer)?void 0:o.offsetWidth)?this.setState({isRightScroll:!1}):this.setState({isRightScroll:!0})}),v(this,"onClickLeft",()=>{const{widthShiftClick:e}=this.props,t=this._bottomRightGrid._scrollingContainer;t.scrollLeft-=e,0===t.scrollLeft&&this.setState({isLeftScroll:!1})}),v(this,"onClickRight",()=>{const{widthShiftClick:e}=this.props,t=this._bottomRightGrid._scrollingContainer;t.scrollLeft+=e,t.scrollWidth-t.scrollLeft===t.offsetWidth&&this.setState({isRightScroll:!1}),this.setState({isLeftScroll:!0})}),v(this,"_bottomLeftGridRef",e=>{this._bottomLeftGrid=e}),v(this,"_bottomRightGridRef",e=>{this._bottomRightGrid=e}),v(this,"_cellRendererBottomLeftGrid",e=>{var t=e,{rowIndex:s}=t,i=b(t,["rowIndex"]);const{cellRenderer:a,fixedRowCount:o,rowCount:l}=this.props;return s===l-o?(0,r.jsx)("div",{style:_(y({},i.style),{height:7})},i.key):a(_(y({},i),{parent:this,rowIndex:s+o}))}),v(this,"_cellRendererBottomRightGrid",e=>{var t=e,{columnIndex:s,rowIndex:r}=t,i=b(t,["columnIndex","rowIndex"]);const{cellRenderer:a,fixedColumnCount:o,fixedRowCount:l}=this.props;return a(_(y({},i),{columnIndex:s+o,parent:this,rowIndex:r+l}))}),v(this,"_cellRendererTopRightGrid",e=>{var t=e,{columnIndex:s}=t,i=b(t,["columnIndex"]);const{cellRenderer:a,columnCount:o,fixedColumnCount:l}=this.props;return s===o-l?(0,r.jsx)("div",{style:_(y({},i.style),{width:7})},i.key):a(_(y({},i),{columnIndex:s+l,parent:this}))}),v(this,"_columnWidthRightGrid",({index:e})=>{const{columnCount:t,fixedColumnCount:s,columnWidth:r}=this.props,{scrollbarSize:i,showHorizontalScrollbar:a}=this.state;return a&&e===t-s?i:"function"===typeof r?r({index:e+s}):r}),v(this,"_onScroll",e=>{const{scrollLeft:t,scrollTop:s}=e;this.setState({scrollLeft:t,scrollTop:s});const r=this.props.onScroll;r&&r(e)}),v(this,"_onScrollbarPresenceChange",({horizontal:e,size:t,vertical:s})=>{const{showHorizontalScrollbar:r,showVerticalScrollbar:i}=this.state;if(e!==r||s!==i){this.setState({scrollbarSize:t,showHorizontalScrollbar:e,showVerticalScrollbar:s});const{onScrollbarPresenceChange:r}=this.props;"function"===typeof r&&r({horizontal:e,size:t,vertical:s})}}),v(this,"_onScrollLeft",e=>{const{scrollLeft:t}=e;this._onScroll({scrollLeft:t,scrollTop:this.state.scrollTop})}),v(this,"_onScrollTop",e=>{const{scrollTop:t}=e;this._onScroll({scrollTop:t,scrollLeft:this.state.scrollLeft})}),v(this,"_rowHeightBottomGrid",({index:e})=>{const{fixedRowCount:t,rowCount:s,rowHeight:r}=this.props,{scrollbarSize:i,showVerticalScrollbar:a}=this.state;return a&&e===s-t?i:"function"===typeof r?r({index:e+t}):r}
1),v(this,"_topLeftGridRef",e=>{this._topLeftGrid=e}),v(this,"_topRightGridRef",e=>{this._topRightGrid=e}),this._maybeCalculateCachedStyles(!0)}forceUpdateGrids(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}invalidateCellSizeAfterRender({columnIndex:e=0,rowIndex:t=0}={}){this._deferredInvalidateColumnIndex="number"===typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,e):e,this._deferredInvalidateRowIndex="number"===typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,t):t}measureAllCells(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}recomputeGridSize({columnIndex:e=0,rowIndex:t=0}={}){const{fixedColumnCount:s,fixedRowCount:r}=this.props,i=Math.max(0,e-s),a=Math.max(0,t-r);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:e,rowIndex:a}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:i,rowIndex:a}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:e,rowIndex:t}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:i,rowIndex:t}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}static getDerivedStateFromProps(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!==e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!==e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}componentDidMount(){const{scrollLeft:e,scrollTop:t}=this.props;if(e>0||t>0){const s={};e>0&&(s.scrollLeft=e),t>0&&(s.scrollTop=t),this.setState(s)}this._handleInvalidatedGridSize(),window.addEventListener("resize",this.setWidthLastColumn()),window.addEventListener("scroll",this.scrollBottomRightGrid())}componentDidUpdate(){this._handleInvalidatedGridSize(),this.setWidthLastColumn(),this.scrollBottomRightGrid()}componentWillUnmount(){window.addEventListener("resize",this.setWidthLastColumn()),window.addEventListener("scroll",this.scrollBottomRightGrid())}render(){const e=this.props,{onScroll:t,onSectionRendered:s,onScrollbarPresenceChange:i,scrollLeft:a,scrollToColumn:o,scrollTop:l,scrollToRow:n}=e,c=b(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;const{scrollLeft:h,scrollTop:m}=this.state;return(0,r.jsxs)("div",{style:_(y({},this._containerOuterStyle),{position:"relative"}),children:[this.state.isLeftScroll&&(0,r.jsx)("div",{"aria-hidden":!0,className:"multigrid-serpstat-button__left",onClick:this.onClickLeft,style:{left:this.props.marginLeftButton},children:(0,r.jsx)(d.default,{iconId:"angle_left",className:"multigrid-serpstat-button__icon-arrow"})}),this.state.isRightScroll&&(0,r.jsx)("div",{"aria-hidden":!0,className:"multigrid-serpstat-button__right",onClick:this.onClickRight,children:(0,r.jsx)(d.default,{iconId:"angle_right",className:"multigrid-serpstat-button__icon-arrow"})}),(0,r.jsxs)("div",{style:this._containerTopStyle,children:[this._renderTopLeftGrid(c),this._renderTopRightGrid(_(y({},c),{onScroll:t,scrollLeft:h}))]}),(0,r.jsxs)("div",{style:this._containerBottomStyle,children:[this._renderBottomLeftGrid(_(y({},c),{onScroll:t,scrollTop:m})),this._renderBottomRightGrid(_(y({},c),{onScroll:t,onSectionRendered:s,scrollLeft:h,scrollToColumn:o,scrollToRow:n,scrollTop:m}))]})]})}_getBottomGridHeight(e){const{height:t}=e;return t-this._getTopGridHeight(e)}_getLeftGridWidth(e){const{fixedColumnCount:t,columnWidth:s}=e;if(!this._leftGridWidth)if("function"===typeof s){let e=0;for(let r=0;r<t;r++)e+=s({index:r});this._leftGridWidth=e}else this._leftGridWidth=s*t;return this._leftGridWidth||500}_getRightGridWidth(e){const{width:t}=e;return t-this._getLeftGridWidth(e)}_getTopGridHeight(e){const{fixedRowCount:t,rowHeight:s}=e;if(!this._topGridHeight)if("function"===typeof s){let e=0;for(let r=0;r<t;r++)e+=s({index:r});this._topGridHeight=e}else this._topGridHeight=s*t;return this._topGridHeight}_handleInvalidatedGridSize(){if("number"===typeof this._deferredInvalidateColumnIndex){const e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}_maybeCalculateCachedStyles(e){const{columnWidth:t,enableFixedColumnScroll:s,height:r,fixedColumnCount:i,fixedRowCount:a,rowHeight:o,style:l,styleBottomLeftGrid:n,styleBottomRightGrid:d,styleTopLeftGrid:c,styleTopRightGrid:h,width:m}=this.props,u=e||r!==this._lastRenderedHeight||m!==this._lastRenderedWidth,p=e||t!==this._lastRenderedColumnWidth||i!==this._lastRenderedFixedColumnCount,g=e||a!==this._lastRenderedFixedRowCount||o!==this._lastRenderedRowHeight;(e||u||l!==this._lastRenderedStyle)&&(this._containerOuterStyle=y({height:r,overflow:"visible",width:m},l)),(e||u||g)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:m},this._containerBottomStyle={height:r-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:m}),(e||n!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=y({left:0,overflowX:"hidden",overflowY:s?"auto":"hidden",position:"absolute"},n)),(e||p||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=y({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||c!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=y({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},c)),(e||p||h!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=y({left:this._getLeftGridWidth(this.props),overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},h)),this._lastRenderedColumnWidth=t,this._lastRenderedFixedColumnCount=i,this._lastRenderedFixedRowCount=a,this._lastRenderedHeight=r,this._lastRenderedRowHeight=o,this._lastRenderedStyle=l,this._lastRenderedStyleBottomLeftGrid=n,this._lastRenderedStyleBottomRightGrid=d,this._lastRenderedStyleTopLeftGrid=c,this._lastRenderedStyleTopRightGrid=h,this._lastRenderedWidth=m}_prepareForRender(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}_renderBottomLeftGrid(e){const{enableFixedColumnScroll:t,fixedColumnCount:s,fixedRowCount:i,rowCount:a,hideBottomLeftGridScrollbar:o}=e,{showVerticalScrollbar:l}=this.state;if(!s)return null;const d=l?1:0,c=this._getBottomGridHeight(e),h=this._getLeftGridWidth(e),m=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,u=o?h+m:h,p=(0,r.jsx)(n.default,_(y({},e),{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:s,height:c,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,a-i)+d,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:u}));return o?(0,r.jsx)("div",{className:"BottomLeftGrid_ScrollWrapper",style:_(y({},this._bottomLeftGridStyle),{height:c,width:h,overflowY:"hidden"}),children:p}):p}_renderBottomRightGrid(e){const{columnCount:t,fixedColumnCount:s,fixedRowCount:i,rowCount:a,scrollToColumn:o,scrollToRow:l}=e;return(0,r.jsx)(n.default,_(y({},e),{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-s),columnWidth:this._columnWidthRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,a-i),rowHeight:this._rowHeightBottomGrid,scrollToColumn:o-s,scrollToRow:l-i,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}_renderTopLeftGrid(e){const{fixedColumnCount:t,fixedRowCount:s}=e;return t&&s?(0,r.jsx)(n.default,_(y({},e),{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e)||0,ref:this._topLeftGrid
1Ref,rowCount:s,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)||0})):null}_renderTopRightGrid(e){const{columnCount:t,enableFixedRowScroll:s,fixedColumnCount:i,fixedRowCount:a,scrollLeft:o,hideTopRightGridScrollbar:l}=e,{showHorizontalScrollbar:d,scrollbarSize:c}=this.state;if(!a)return null;const h=d?1:0,m=this._getTopGridHeight(e),u=this._getRightGridWidth(e),p=d?c:0;let g=m,f=this._topRightGridStyle;l&&(g=m+p,f=_(y({},this._topRightGridStyle),{left:0}));const b=(0,r.jsx)(n.default,_(y({},e),{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-i)+h,columnWidth:this._columnWidthRightGrid,height:g,onScroll:s?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:a,scrollLeft:o,style:f,tabIndex:null,width:u}));return l?(0,r.jsx)("div",{className:"TopRightGrid_ScrollWrapper",style:_(y({},this._topRightGridStyle),{height:m,width:u,overflowX:"hidden"}),children:b}):b}}v(x,"propTypes",{classNameBottomLeftGrid:o().string.isRequired,classNameBottomRightGrid:o().string.isRequired,classNameTopLeftGrid:o().string.isRequired,classNameTopRightGrid:o().string.isRequired,enableFixedColumnScroll:o().bool.isRequired,enableFixedRowScroll:o().bool.isRequired,fixedColumnCount:o().number.isRequired,fixedRowCount:o().number.isRequired,onScrollbarPresenceChange:o().func,style:o().object.isRequired,styleBottomLeftGrid:o().object.isRequired,styleBottomRightGrid:o().object.isRequired,styleTopLeftGrid:o().object.isRequired,styleTopRightGrid:o().object.isRequired,hideTopRightGridScrollbar:o().bool,hideBottomLeftGridScrollbar:o().bool,marginLeftButton:o().number,widthShiftClick:o().number}),v(x,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1,widthShiftClick:50});const R=x;var w=s(95093),j=s.n(w),D=s(38732),C=s(87714);const L=e=>(0,r.jsx)("div",{className:"dropdown_trigger links_trigger",children:(0,r.jsxs)("div",{className:"button_content",children:[(0,r.jsx)("div",{className:"link_text",style:{maxWidth:"133px"},children:e}),(0,r.jsx)(d.default,{iconId:"angle_down",style:{width:"8px",height:"6px"}})]})}),S=({t:e,key:t,style:s,isHiddenModules:i,employeesItems:a,activeEmployees:o,onChangeEmploee:l,modulesItems:n,activeModules:d,onChangeModules:c})=>{let h=[],m=()=>{},u=[],p=()=>{};return(0,r.jsxs)("div",{className:"team-statistic-table-header",style:s,children:[(0,r.jsx)("div",{className:"team-statistic-table-header__employees",style:i?{width:"43.1%"}:null,children:(0,r.jsx)(D.default,{closeDropdown:e=>{m=e.bind(null)},items:a,itemsType:"multiselect",value:o,selectAllText:e.translate("TeamManagement::teamemployeesselectall","\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439"),triggerType:"inline",trigger:L(e.translate("teamemployees","\u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0438")),search:!0,onSelect:e=>{h=e},dropdownFooter:(0,r.jsx)("div",{className:"tr",children:(0,r.jsx)(C.default,{onClick:()=>{h.value&&(l(h.value),m())},children:e.translate("teamapplydropdown","\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c")})})})}),(0,r.jsx)("div",{className:"team-statistic-table-header__modules",style:i?{width:"19.25%"}:null,children:(0,r.jsx)(D.default,{closeDropdown:e=>{p=e.bind(null)},items:n,itemsType:"multiselect",value:d,selectAllText:e.translate("teammodulesselectall","\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435"),triggerType:"inline",trigger:L(e.translate("teammodules","\u041c\u043e\u0434\u0443\u043b\u0438")),search:!0,onSelect:e=>{u=e},dropdownFooter:(0,r.jsx)("div",{className:"tr",children:(0,r.jsx)(C.default,{onClick:()=>{u.value&&(c(u.value),p())},children:e.translate("teamapplydropdown","\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c")})})})}),(0,r.jsxs)("div",{className:"team-statistic-table-header__total",style:i?{width:"37.65%"}:null,children:[(0,r.jsx)("div",{children:e.translate("teamtotalinwork","\u0421\u0443\u043c\u043c\u0430\u0440\u043d\u043e \u0432 \u0440\u0430\u0431\u043e\u0442\u0435")}),(0,r.jsxs)("div",{className:"team-statistic-table-header__total-days",children:[(0,r.jsx)("div",{children:e.translate("teamdays","\u0414\u043d\u0435\u0439")}),(0,r.jsxs)("div",{children:[e.translate("teamdays","\u0414\u043d\u0435\u0439"),", %"]})]})]})]},t)};
1S.propTypes={t:o().object,key:o().string,style:o().object,isHiddenModules:o().bool,employeesItems:o().array,activeEmployees:o().array,onChangeEmploee:o().func,modulesItems:o().array,activeModules:o().array,onChangeModules:o().func};const M=(0,i.memo)(S);var G=Object.defineProperty,I=Object.defineProperties,T=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,Y=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,E=(e,t,s)=>t in e?G(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,P=(e,t)=>{for(var s in t||(t={}))Y.call(t,s)&&E(e,s,t[s]);if(N)for(var s of N(t))k.call(t,s)&&E(e,s,t[s]);return e};const O=({key:e,style:t,columnIndex:s,dateArray:i,day:a,month:{month:o,count:l},months:n,locale:d,isHiddenModules:c})=>{const h=i.filter(e=>e.date===j()(a).format("YYYY-MM-DD")),m=j()(a).locale(d);return(0,r.jsxs)("div",{style:(u=P({},t),p={borderRight:s===i.length-1||s===i.length?"none":null},I(u,T(p))),className:"team-statistic-table-header-right",children:[(0,r.jsx)("div",{className:"team-statistic-table-header-right__month",style:{width:2===i.length?79:o===j()(a).format("MM-YYYY")?50*(c?l-h[0].count<17?l-h[0].count:17:l-h[0].count<13?l-h[0].count:13):null,borderRight:n[n.length-1].month===j()(a).format("MM-YYYY")?"none":null},children:j()(m).format("MMMM, YYYY")}),(0,r.jsx)("div",{className:"team-statistic-table-header-right__date",style:"0"===j()(a).format("d")||"6"===j()(a).format("d")?{backgroundColor:"var(--bg-info)"}:null,children:s-1===0||void 0!==i[s-2]&&i[s-2].date!==i[s-1].date?j()(m).format("dd, DD"):null})]},e);var u,p};O.propTypes={key:o().string,style:o().object,columnIndex:o().number,dateArray:o().array,day:o().data,month:o().object,months:o().array,locale:o().string,isHiddenModules:o().bool};const A=(0,i.memo)(O);var q=s(46942),H=s.n(q),F=Object.defineProperty,U=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,z=(e,t,s)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,V=(e,t)=>{for(var s in t||(t={}))W.call(t,s)&&z(e,s,t[s]);if(U)for(var s of U(t))B.call(t,s)&&z(e,s,t[s]);return e};const $=({t:e,user:t,key:s,style:a,modulesLog:o,isHiddenModules:l,modulesName:n})=>(0,r.jsxs)("div",{className:"team-statistic-table-body-left",style:V({},a),children:[(0,r.jsxs)("div",{className:"team-statistic-table-body-left__employee",style:l?{width:"43.1%"}:null,children:[(t.firstName||t.lastName)&&(0,r.jsxs)("div",{className:H()("team-statistic-table-body-left__employee-fio",{"team-statistic-table-body-left__employee-fio_hidden":n.length<3}),children:[t.lastName," ",t.firstName]}),(0,r.jsx)("div",{className:H()("team-statistic-table-body-left__employee-email",{"team-statistic-table-body-left__employee-email_hidden":n.length<3}),children:t.email})]}),(0,r.jsx)("div",{className:"team-statistic-table-body-left__modules",style:l?{width:"19.25%"}:null,children:n.map(t=>(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"team-statistic-table-body-left__icon",style:{width:l?"100%":null},children:(0,r.jsx)(d.default,{iconId:t.icon,className:"team-statistic-table-body-left__icon-svg"})}),!l&&(0,r.jsx)("div",{className:"team-statistic-table-body-left__module-name",children:e.translate(t.value,t.text)})]},t.value))}),(0,r.jsx)("div",{className:"team-statistic-table-body-left__total",style:l?{width:"37.65%"}:null,children:n.map((e,s)=>{var a,l,n,d;return(0,r.jsx)("div",{className:"team-statistic-table-body-left__total-module",children:o[t.id]&&o[t.id][e.backendValue]?(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("div",{children:null==(l=null==(a=o[t.id][e.backendValue])?void 0:a.total)?void 0:l.workingDays}),(0,r.jsx)("div",{children:null==(d=null==(n=o[t.id][e.backendValue])?void 0:n.total)?void 0:d.percent})]}):(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("div",{}),(0,r.jsx)("div",{})]})},s)})})]},s);$.propTypes={t:o().object,user:o().object,key:o().string,style:o().object,modulesLog:o().object,rowIndex:o().number,isHiddenModules:o().bool,activeModules:o().array,modulesName:o().array};const X=(0,i.memo)($),K=({user:{id:e},key:t,style:s,modulesLog:i,date:a,rowIndex:o,columnIndex:l,dateArrayLe
1ngth:n,activeModules:d,modulesName:c})=>{const h="0"===j()(j()(a,"YYYY-MM-DD")).format("d")||"6"===j()(j()(a,"YYYY-MM-DD")).format("d");return(0,r.jsx)("div",{className:"team-statistic-table-body-right",style:s,children:c.map((t,s)=>(0,r.jsx)("div",{style:{backgroundColor:i[e]&&i[e][t.backendValue]&&i[e][t.backendValue].dates[a]&&l!==n?o%2>0?0===d.length&&8!==d.length||s%2>0?h?"var(--bg-success-primary)":"var(--bg-success-secondary)":h?"var(--bg-base-secondary)":"var(--bg-success-secondary)":0===d.length&&8!==d.length||d.length%2>0||s%2>0?h?"var(--bg-success-primary)":"var(--bg-success-secondary)":h?"var(--bg-base-secondary)":"var(--bg-success-secondary)":o%2>0?(0===d.length&&d.length,s%2>0?h?"var(--table-bg-secondary)":"var(--table-bg-primary)":h?"var(--bg-base-secondary)":"var(--table-bg-secondary)"):0===d.length&&8!==d.length?s%2>0?h?"var(--table-bg-secondary)":"var(--table-bg-primary)":h?"var(--bg-base-secondary)":"var(--table-bg-secondary)":d.length%2>0?s%2>0?h?"var(--bg-base-secondary)":"var(--table-bg-secondary)":h?"var(--table-bg-secondary)":"var(--table-bg-primary)":s%2>0?h?"var(--table-bg-secondary)":"var(--table-bg-primary)":h?"var(--bg-base-secondary)":"var(--table-bg-secondary)",width:l===n-1?"60px":null,borderRight:l===n-1||l===n?"none":null}},s))},t)};K.propTypes={user:o().object,key:o().string,style:o().object,modulesLog:o().object,rowIndex:o().number,columnIndex:o().number,date:o().string,dateArrayLength:o().number,activeModules:o().array,modulesName:o().array};const J=(0,i.memo)(K);const Q=(0,i.memo)(function(){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"45",fill:"none",viewBox:"0 0 19 45",children:[(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{fill:"var(--bg-info)",fillRule:"evenodd",d:"M3.857 4.842C1.594 4.351 0 2.316 0 0v45c0-2.316 1.594-4.35 3.857-4.843C11.983 38.391 18.07 31.156 18.07 22.5S11.983 6.61 3.857 4.842z",clipRule:"evenodd"}),(0,r.jsxs)("g",{clipPath:"url(#clip0_0_10188)",children:[(0,r.jsx)("mask",{id:"mask0_0_10188",style:{maskType:"luminance"},width:"6",height:"9",x:"4",y:"18",maskUnits:"userSpaceOnUse",children:(0,r.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M9.5 19a.458.458 0 00-.165-.351.56.56 0 00-.39-.149.56.56 0 00-.391.149l-3.889 3.499a.458.458 0 000 .704l3.889 3.5c.11.098.24.148.391.148.15 0 .28-.05.39-.148A.458.458 0 009.5 26v-7z",clipRule:"evenodd"})}),(0,r.jsx)("g",{mask:"url(#mask0_0_10188)",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{fill:"var(--text-link-white-bg)",d:"M9.5 18.5H17.5V23.5H9.5z",transform:"rotate(90 9.5 18.5)"})})})]})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_0_10188",children:(0,r.jsx)("path",{fill:"#fff",d:"M0 0H8V5H0z",transform:"rotate(90 -4.5 14)"})})})]})});const Z=(0,i.memo)(function(){return(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"45",fill:"none",viewBox:"0 0 19 45",children:[(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{fill:"var(--bg-info)",fillRule:"evenodd",d:"M3.857 4.842C1.594 4.351 0 2.316 0 0v45c0-2.316 1.594-4.35 3.857-4.843C11.983 38.391 18.07 31.156 18.07 22.5S11.983 6.61 3.857 4.842z",clipRule:"evenodd"}),(0,r.jsxs)("g",{clipPath:"url(#clip0_0_8865)",children:[(0,r.jsx)("mask",{id:"mask0_0_8865",style:{maskType:"luminance"},width:"6",height:"9",x:"4",y:"18",maskUnits:"userSpaceOnUse",children:(0,r.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M4.5 19c0-.135.055-.252.165-.351a.56.56 0 01.39-.149.56.56 0 01.391.149l3.889 3.499a.458.458 0 010 .704l-3.889 3.5a.569.569 0 01-.391.148c-.15 0-.28-.05-.39-.148A.458.458 0 014.5 26v-7z",clipRule:"evenodd"})}),(0,r.jsx)("g",{mask:"url(#mask0_0_8865)",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{fill:"var(--text-link-white-bg)",d:"M0 0H8V5H0z",transform:"matrix(0 1 1 0 4.5 18.5)"})})})]})]}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"clip0_0_8865",children:(0,r.jsx)("path",{fill:"#fff",d:"M0 0H8V5H0z",transform:"matrix(0 1 1 0 4.5 18.5)"})})})]})});var ee=Object.defineProperty,te=Object.defineProperties,se=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,oe=(e,t,s)=>t in e?ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,le=(e,t)=>
1{for(var s in t||(t={}))ie.call(t,s)&&oe(e,s,t[s]);if(re)for(var s of re(t))ae.call(t,s)&&oe(e,s,t[s]);return e},ne=(e,t)=>te(e,se(t)),de=(e,t,s)=>oe(e,"symbol"!==typeof t?t+"":t,s);class ce extends i.PureComponent{constructor(e){super(e),de(this,"columnWidth",(e,t)=>{const{dateArray:s}=this.props,r=s.length;return 0===e?t:e===r?19:e===r-1?60:50}),de(this,"getColumWidth",({index:e})=>this.columnWidth(e,538)),de(this,"getColumWidthHiddenModules",({index:e})=>this.columnWidth(e,348)),de(this,"getRowHight",({index:e})=>{const{filteredModules:t}=this.props;return 0===e?60:30*t.length}),de(this,"hiddenModules",()=>{const{isHiddenModules:e}=this.state;this.setState({isHiddenModules:!e}),this.statisticTable.recomputeGridSize(),this.statisticTable.forceUpdate()}),de(this,"onChangeEmploee",e=>{const{filterData:t,updateFilteres:s}=this.props;s(ne(le({},t),{activeUsers:e}))}),de(this,"onChangeModules",e=>{const{filterData:t,updateFilteres:s}=this.props;s(ne(le({},t),{activeModules:e}))}),de(this,"cellRenderer",({columnIndex:e,key:t,rowIndex:s,style:i})=>{const{t:a,users:o,dateArray:l,months:n,modulesLog:d,filterData:c,filteredModules:h,employeesItems:m,modulesItems:u,locale:p}=this.props,{activeModules:g,activeUsers:f}=c,{isHiddenModules:y}=this.state;if(0===e&&0===s)return(0,r.jsx)(M,{t:a,style:i,isHiddenModules:y,employeesItems:m,activeEmployees:f,onChangeEmploee:this.onChangeEmploee,modulesItems:u,activeModules:g,onChangeModules:this.onChangeModules,closeDropdown:this.closeDropdown},t);if(0!==e&&0===s){const s="endColumn"!==l[e-1].date?j()(l[e-1].date,"YYYY-MM-DD"):j()(l[e-2].date,"YYYY-MM-DD"),a=n.filter(e=>e.month===j()(s).format("MM-YYYY"));return(0,r.jsx)(A,{style:i,columnIndex:e,dateArray:l,day:s,month:a[0],months:n,activeModules:g,locale:p,isHiddenModules:y},t)}return 0===e&&0!==s?(0,r.jsx)(X,{t:a,user:o[s-1],style:i,modulesLog:d,rowIndex:s,isHiddenModules:y,activeModules:g,modulesName:h},t):0!==e&&0!==s?(0,r.jsx)(J,{user:o[s-1],style:i,modulesLog:d,rowIndex:s,columnIndex:e,dateArrayLength:l.length,date:l[e-1].date,activeModules:g,modulesName:h},t):void 0}),this.state={stateMultiGrig:{fixedColumnCount:1,fixedRowCount:1,scrollToColumn:0,scrollToRow:0},countMonth:0,isHiddenModules:!1,widthRightGrid:0,widthLastColumnRightGrid:19,isLeftScroll:!1,isRightScroll:!1},this.closeDropdown=()=>{}}componentDidUpdate(e){const{widthRightGrid:t}=this.state;t!==e.widthRightGrid&&(this.statisticTable.recomputeGridSize(),this.statisticTable.forceUpdate())}get heightTable(){const{users:e,filterData:t,filteredModules:s}=this.props,{activeModules:r,activeUsers:i}=t;return(i.length||e.length)*(r.length||s.length)*30+60+7}get widthTable(){const{dateArray:e}=this.props,{isHiddenModules:t}=this.state;return(t?348:538)+50*e.length-21}render(){const{users:e,dateArray:t,filterData:s}=this.props,{activeModules:a,activeUsers:o}=s,{isHiddenModules:n}=this.state,d=this.heightTable,c=this.widthTable;return(0,r.jsx)("div",{className:"wrapper react_table_handler",children:(0,r.jsx)(l.default,{disableHeight:!0,className:"team-statistic-table",ref:e=>this.statisticTableContainer=e,children:({width:s})=>(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("div",{"aria-hidden":!0,className:"team-statistic-table__button-hidden",onClick:this.hiddenModules,style:{left:n?"218px":null},children:n?(0,r.jsx)(Z,{}):(0,r.jsx)(Q,{})}),(0,r.jsx)("div",{className:"team-statistic-table__shadow",style:{left:n?"347px":null,height:0===a.length&&0===o.length&&3===e.length?"100%":null}}),(0,r.jsx)(R,ne(le({},this.state.stateMultiGrig),{ref:e=>this.statisticTable=e,cellRenderer:this.cellRenderer,columnCount:t.length+1,columnWidth:n?this.getColumWidthHiddenModules:this.getColumWidth,enableFixedColumnScroll:!0,enableFixedRowScroll:!0,height:780>=d&&(a.length>0||o.length>0||e.length<3)?d:780,rowHeight:this.getRowHight,rowCount:e.length+1,width:s<c?s:c,hideTopRightGridScrollbar:!0,hideBottomLeftGridScrollbar:!0,classNameBottomRightGrid:"team-statistic-table-body-right-grid",classNameTopLeftGrid:"team-statistic-table-header-grid",classNameTopRightGrid:"team-statistic-table-header-grid-right",classNameBottomLeftGrid:"team-statistic-table-body-left-grid",marginLeftButton:n?335:525}))]})})})}}de(ce,"propTypes",{t:o().object.isRequired,users:o().array.isRequired,modulesLog:o().object.isRequired,dateArray:o().array.isRequired,months:o().array.isRequired,modulesName:o().array.isRequired,filteredModules:o().array.isRequired,filterData:o().object.isRequired,updateFilteres:o().func.isRequired,employeesItems:o().array.isRequired,modulesItems:o().array.isRequired,locale:o().string.isRequired});var he=s(223),me=s(36912),ue=s(91175),pe=s(2404),ge=s.n(pe),fe=Object.defineProperty,ye=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Re=(e,t,s)=>t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,we=(e,t)=>{for(var s in t||(t={}))ve.call(t,s)&&Re(e,s,t[s]);if(be)for(var s of be(t))xe.call(t,s)&&Re(e,s,t[s]);return e},je=(e,t)=>ye(e,_e(t)),De=(e,t,s)=>Re(e,"symbol"!==typeof t?t+"":t,s);class Ce extends i.PureComponent{constructor(e){super(e),De(this,"onClickItemList",(e,t)=>s=>{const{updateArrayDateEventLog:r,usersDateArray:i,dateArray:a}=this.props;if(s.stopPropagation(),"date"===t.paramRow){r({dateArray:a.map((t,s)=>s!==e?t:je(we({},t),{isExpanded:!t.isExpanded})),newUsers:i})}if("user"===t.paramRow){r({dateArray:a,newUsers:i.map((e,s)=>s!==t.indexDate?e:e.map((e,s)=>s!==t.indexUser?e:je(we({},e),{isExpanded:!e.isExpanded})))})}
1this.logPeriod.recomputeRowHeights(),this.logPeriod.forceUpdateGrid()}),De(this,"renderItem",(e,t,s)=>{const{users:a,usersLog:o,t:l,isSingleUser:n,locale:d,dateArray:c}=this.props;let h=[];if("date"===s.paramRow){e.isExpanded?1===c.length&&n&&(h=a[t].map((s,r)=>this.renderItem(s,t+"-"+r,{date:e.date,paramRow:"user",indexDate:t,indexUser:r}))):h=a[t].map((s,r)=>this.renderItem(s,t+"-"+r,{date:e.date,paramRow:"user",indexDate:t,indexUser:r}));const o=j()(e.date).locale(d),m=()=>(0,r.jsxs)(i.Fragment,{children:[j()(o).format("DD MMMM, YYYY")," ",("0"===j()(e.date).format("d")||"6"===j()(e.date).format("d"))&&(0,r.jsxs)("span",{className:"team-statistic-event-log-list__weekend",children:["(",l.translate("teameventlogweekend","\u0412\u044b\u0445\u043e\u0434\u043d\u043e\u0439 \u0434\u0435\u043d\u044c"),")"]})]});n||h.unshift((0,r.jsx)(he.RowRender,{onClickRow:this.onClickItemList,keyPrefix:t,param:s,itemText:m,iconLeft:"calendar",iconRight:"angle_down",className:"team-statistic-event-log-list__container"},t))}if("user"===s.paramRow){const a=o.filter(t=>t.causer_type===e.email&&j()(t.date).format("YYYY-MM-DD")===s.date),d=()=>(0,r.jsxs)(i.Fragment,{children:[e.lastName||e.firstName?(0,r.jsxs)(i.Fragment,{children:[e.lastName," ",e.firstName]}):(0,r.jsx)("span",{className:"team-statistic-event-log-list__email",children:e.email}),0===a.length&&(0,r.jsxs)(i.Fragment,{children:[" ",(0,r.jsxs)("span",{className:"team-statistic-event-log-list__not-work",children:["(",l.translate("teameventlognotwork","\u0421\u0435\u0440\u0432\u0438\u0441 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f"),")"]})]})]});0===a.length?n||h.unshift((0,r.jsx)(he.RowRender,{onClickRow:this.onClickItemList,keyPrefix:t,param:s,itemText:d,iconLeft:"users_team_management",className:"team-statistic-event-log-list__container team-statistic-event-log-list__container_user team-statistic-event-log-list__container_user-not-work"},t)):(e.isExpanded?1===c.length&&n&&(h=a.map((e,s)=>this.renderItem(e,t+"-"+s,{paramRow:"log",indexLog:s}))):h=a.map((e,s)=>this.renderItem(e,t+"-"+s,{paramRow:"log",indexLog:s})),n||h.unshift((0,r.jsx)(he.RowRender,{onClickRow:this.onClickItemList,keyPrefix:t,param:s,itemText:d,iconLeft:"users_team_management",iconRight:"angle_down",className:"team-statistic-event-log-list__container team-statistic-event-log-list__container_user"},t)))}return"log"===s.paramRow&&h.unshift((0,r.jsx)(he.RowLogAction,{indexLog:s.indexLog,isSingleUser:n,item:e},t)),(0,r.jsx)(he.RowWrapper,{keyPrefix:t,children:h})}),De(this,"cellRenderer",({key:e,index:t,style:s})=>{const{dateArray:i}=this.props,a=this.renderItem(i[t],t,{date:i[t].date,paramRow:"date"});return(0,r.jsx)("ul",{style:s,children:a},e)}),De(this,"getExpandedItemCount",(e,t,s,r=null)=>{const{usersLog:i,users:a,dateArray:o,isSingleUser:l}=this.props;let n=1,d=0;if(!e.isExpanded&&"date"===s){let e=a[t].map((e,s)=>this.getExpandedItemCount(e,s,"user",t)).reduce((e,{count:t,countLog:s})=>({countLog:e.countLog+s,count:e.count+t}),{count:0,countLog:0});n+=e.count,d+=e.countLog}return e.isExpanded||"user"!==s||(d+=i.filter(t=>t.causer_type===e.email&&j()(t.date).format("YYYY-MM-DD")===o[r].date).length),l&&e.isExpanded&&1===o.length&&(d+=i.length+2,n=0),{count:n,countLog:d}}),De(this,"rowHeight",({index:e})=>{const{dateArray:t,isSingleUser:s}=this.props,r=this.getExpandedItemCount(t[e],e,"date"),i=s?100:0;return 50*r.count+60*r.countLog-i}),this.state={dateArray:e.dateArray,users:e.users}}componentDidUpdate(e){const{usersLog:t,dateArray:s,users:r,isSingleUser:i}=this.state;ge()(e.usersLog,t)&&ge()(e.dateArray,s)&&ge()(e.users,r)&&ge()(e.isSingleUser,i)||(this.logPeriod.recomputeRowHeights(),this.logPeriod.force
1UpdateGrid())}render(){const{dateArray:e}=this.props;return(0,r.jsx)(l.default,{children:({height:t,width:s})=>(0,r.jsx)(ue.default,{ref:e=>this.logPeriod=e,height:t-40,rowCount:e.length,rowHeight:this.rowHeight,rowRenderer:this.cellRenderer,width:s,overscanRowCount:10,className:"team-statistic-event-log-list-virtualized"})})}}De(Ce,"propTypes",{t:o().object.isRequired,usersLog:o().array.isRequired,dateArray:o().array.isRequired,users:o().array.isRequired,usersDateArray:o().array.isRequired,updateArrayDateEventLog:o().func.isRequired,isSingleUser:o().bool.isRequired,locale:o().string.isRequired});class Le{static getEmployeesItems(e){let t=[];try{e.forEach(e=>{t.push({text:e.lastName&&e.firstName?`${e.lastName} ${e.firstName}`:e.email,value:e.id})})}catch(e){console.error("StatisticTableHelper: getEmployeesItems ",e)}return t}static getModulesItems(e,t){let s=[];try{e.forEach(e=>{s.push({text:t.translate(`team${e.value.toLowerCase().replace(/\s/g,"")}`,e.text),value:e.value})})}catch(e){console.error("StatisticTableHelper: getModulesItems ",e)}return s}}var Se=s(25276),Me=Object.defineProperty,Ge=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,ke=(e,t,s)=>t in e?Me(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ee=(e,t)=>{for(var s in t||(t={}))Ne.call(t,s)&&ke(e,s,t[s]);if(Te)for(var s of Te(t))Ye.call(t,s)&&ke(e,s,t[s]);return e},Pe=(e,t)=>Ge(e,Ie(t)),Oe=(e,t,s)=>ke(e,"symbol"!==typeof t?t+"":t,s);class Ae extends i.PureComponent{constructor(e){super(e),Oe(this,"onChangeEmployees",e=>{const{filterData:t,updateFilteresDataEventLog:s}=this.props,{startDay:r,endDay:i}=t;1===e.length&&j()(r).format("YYYY-MM-DD")===j()(i).format("YYYY-MM-DD")?(s(Pe(Ee({},t),{isSingleUser:!0,activeUsers:e})),this.updateOneUser(e)):s(Pe(Ee({},t),{activeUsers:e,isSingleUser:!1}))}),Oe(this,"updateOneUser",e=>{const{updateArrayDateEventLog:t,usersDateArray:s,dateArray:r}=this.props;t({dateArray:r.map(e=>Pe(Ee({},e),{isExpanded:!1})),newUsers:s.map(t=>t.map(t=>Number(t.id)!==Number(e[0])?Pe(Ee({},t),{isExpanded:!0}):Pe(Ee({},t),{isExpanded:!1})))})}),Oe(this,"onChangeModules",e=>{const{filterData:t,updateFilteresDataEventLog:s}=this.props;s(Pe(Ee({},t),{activeModules:e}))}),Oe(this,"renderTriggerDatePicker",()=>{const{filterData:e}=this.props,{startDay:t,endDay:s}=e,i=j()(t).format("DD"),a=j()(s).format("DD MMM, YYYY"),o=j()(t).format("YYYY-MM-DD")===j()(s).format("YYYY-MM-DD")?a:j()(t).format("MM")!==j()(s).format("MM")?`${j()(t).format("DD MMM")} \u2014 ${a}`:j()(t).format("YYYY")!==j()(s).format("YYYY")?`${j()(t).format("DD MMM, YYYY")} \u2014 ${a}`:`${i} \u2014 ${a}`;return(0,r.jsx)("div",{className:"dropdown_trigger links_trigger",children:(0,r.jsxs)("div",{className:"button_content",children:[(0,r.jsx)("div",{className:"link_text",children:o}),(0,r.jsx)(d.default,{iconId:"angle_down",style:{width:"8px",height:"6px",marginLeft:"0.5rem"}})]})})}),Oe(this,"handleChangeDatePicker",e=>{const{filterData:t,updateFilteresDataEventLog:s,getEventLogPeriod:r,users:i}=this.props,{activeUsers:a}=t,{dateStart:o,dateEnd:l}=e,n=j()(o).format("YYYY-MM-DD"),d=j()(l).format("YYYY-MM-DD");r({start:n,end:d,users:i}),1===a.length&&n===d?(s(Pe(Ee({},t),{isSingleUser:!0,startDay:o,endDay:l})),this.updateOneUser(a)):s(Pe(Ee({},t),{startDay:o,endDay:l,isSingleUser:!1}))}),Oe(this,"onChangeSearch",e=>{const{filterData:t,updateFilteresDataEventLog:s}=this.props;s(Pe(Ee({},t),{searchValue:e}))}),this.modulesItems=[],this.state={isNullLog:!1}}static getDerivedStateFromProps(e){const{usersLog:t,usersDate:s,filterData:r}=e,{isSingleUser:i}=r;return i&&0===t.filter(e=>e.causer_type===s[0][0].email).length?{isNullLog:!0}:{isNullLog:!1}}componentDidMount(){const{users:e,getEventLogPeriod:t,filterDataTable:s,filterData:r,updateFilteresDataEventLog:i,modulesName:a,t:o}=this.props,{startDay:l,endDay:n}=s,{startDay:d,endDay:c}=r;let h=j()(d).format("YYYY-MM-DD"),m=j()(c).format("YYYY-MM-DD");this.modulesItems=Le.getModulesItems(a,o),""===d&&(h=j()(l).format("YYYY-MM-DD"),m=j()(n).format("YYYY-MM-DD"),i(Pe(Ee({},r),{startDay:l,endDay:n}))),t({start:h,end:m,users:e})}componentDidUpdate(){const{modulesName:e,t}=this.props;this.modulesItems=Le.getModulesItems(e,t)}render(){const{t:e,filterData:t,loading:s,usersLog:a,dateArray:o,usersDate:l,usersDateArray:n,updateArrayDateEventLog:d,employeesItems:c,onClickClose:h,locale:m}=this.props,{activeUsers:u,activeModules:p,startDay:g,endDay:f,searchValue:y,isSingleUser:_}=t,{isNullLog:b}=this.state;return(0,r.jsxs)(i.Fragment,{children:[this.modulesItems.length>0&&(0,r.jsx)(he.Header,{t:e,employeesItems:c,onChangeEmployees:this.onChangeEmployees,activeEmployees:u,modulesItems:this.modulesItems,activeModules:p,onChangeModules:this.onChangeModules,startDay:g,endDay:f,renderTriggerDatePicker:this.renderTriggerDatePicker,handleChangeDatePicker:this.handleChangeDatePicker,onClickClose:h,onChangeSearch:this.onChangeSearch,searchValue:y}),s||0===this.modulesItems.length?(0,r.jsx)("div",{className:"team-statistic-event-log__wrap",children:(0,r.jsx)(me.default,{})}):b?(0,r.jsxs)("div",{className:"team-statistic-event-log__wrap",children:[(0,r.jsx)(Se.Figure26,{}),(0,r.jsxs)("p",{children:[l[0][0].lastName," ",l[0][0].firstName]}),(0,r.jsx)("p",{children:e.translate("teameventlognotworkthisday","\u043d\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438 Serpstat \u0432 \u044d\u0442\u043e\u0442 \u0434\u0435\u043d\u044c")})]}):(0,r.jsx)(Ce,{t:e,usersLog:a,dateArray:o,users:l,usersDateArray:n,updateArrayDateEventLog:d,isSingleUser:_,locale:m})]})}}Oe(Ae,"propTypes",{t:o().object.isRequired,users:o().array.isRequired,updateFilteresDataEventLog:o().func.isRequired,filterData:o().object.isRequired,filterDataTable:o().object.isRequired,loading:o().bool.isRequired,getEventLogPeriod:o().func.isRequired,usersLog:o().array.isRequired,dateArray:o().array.isRequired,usersDate:o().array.isRequired,usersDateArray:o().array.isRequired,updateArrayDateEventLog:o().func.isRequired,employeesItems:o().array.isRequired,modulesItems:o().array.isRequired,modulesName:o().array.isRequired,onClickClose:o().func.isRequired,locale:o().string.isRequired});var qe=s(14644),He=s(71468),Fe=s(21552),Ue=s(55263),We=s(56682),Be=s(1081),ze=Object.defineProperty,Ve=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Qe=(e,t,s)=>t in e?ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;const Ze=(0,Be.createSelector)(e=>e.header.basicInfo.id,e=>e),et=(e,t)=>((e,t)=>t.filter(t=>Number(t.id)!==Number(e)))(e,t).map(e=>{return t=((e,t)=>{for(var s in t||(t={}))Ke.call(t,s)&&Qe(e,s,t[s]);if(Xe)for(var s of Xe(t))Je.call(t,s)&&Qe(e,s,t[s]);return e})({},e),Ve(t,$e({isExpanded:!0}));var t}),tt=(0,Be.createSelector)(e=>e.teamManagement.fetchDataStatistic.modulesLog,e=>e),st=(0,Be.createSelector)(e=>e.teamManagement.fetchDataStatistic.filterData.activeModules,e=>e),rt=e=>{if(!e)return;const t=(e=>e.teamManagement.fetchDataStatistic.modulesName)(e),s=st(e);return s.length>0?t.filter(e=>s.includes(e.value)):t},it=(0,Be.createSelector)(e=>e.teamManagement.fetchDataStatistic.filterData.activeUsers,e=>e),at=(e,t)=>
1{if(!e||!t)return;const s=et(Ze(e),t),r=it(e);return r.length>0?s.filter(e=>r.includes(Number(e.id))):s},ot=(0,Be.createSelector)(e=>e.teamManagement.fetchDataEventLog.usersLog,e=>e),lt=(0,Be.createSelector)(e=>e.teamManagement.fetchDataEventLog.filterData.activeModules,e=>e),nt=(0,Be.createSelector)(e=>e.teamManagement.fetchDataEventLog.filterData.searchValue,e=>e),dt=(e,t)=>""!==t?e.filter(e=>e.searchText.toLowerCase().includes(t.toLowerCase())):e,ct=e=>{if(!e)return;const t=lt(e),s=ot(e),r=nt(e);return t.length>0?dt(s.filter(e=>t.includes(e.subject_type)),r):dt(s,r)},ht=(0,Be.createSelector)(e=>e.teamManagement.fetchDataEventLog.usersDate,e=>e),mt=(0,Be.createSelector)(e=>e.teamManagement.fetchDataEventLog.filterData.activeUsers,e=>e),ut=e=>{if(!e)return;const t=ht(e),s=mt(e);return s.length>0?t.map(e=>e.filter(e=>s.includes(Number(e.id)))):t},pt=new Fe.Translator("TeamManagement"),gt=(0,Ue.compose)((0,He.connect)(e=>({loading:e.teamManagement.fetchDataEventLog.loading,filterData:e.teamManagement.fetchDataEventLog.filterData,filterDataTable:e.teamManagement.fetchDataStatistic.filterData,usersLog:ct(e),dateArray:e.teamManagement.fetchDataEventLog.dateArray,usersDate:ut(e),usersDateArray:e.teamManagement.fetchDataEventLog.usersDate,modulesName:e.teamManagement.fetchDataEventLog.modulesName,InputErrorsLocales:"InputErrors",t:pt,locale:e.locale}),e=>({updateFilteresDataEventLog:(0,qe.bindActionCreators)(We.updateFilteresDataEventLog,e),getEventLogPeriod:(0,qe.bindActionCreators)(We.getEventLogPeriodRequest,e),updateArrayDateEventLog:(0,qe.bindActionCreators)(We.updateArrayDateEventLog,e)})))(Ae);var ft=s(34659),yt=s(97925);const _t=()=>{const e=j()("2019-03-01"),t=j()();let s=[],r=j()(e,"YYYY-MM-DD");for(;r<=j()(t,"YYYY-MM-DD");)s.push({date:j()(r)}),r=j()(r).add(1,"days");return s};var bt=s(29526),vt=Object.defineProperty,xt=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,wt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Ct=(e,t,s)=>t in e?vt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Lt=(e,t,s)=>Ct(e,"symbol"!==typeof t?t+"":t,s);class St extends i.Component{constructor(e){super(e),Lt(this,"renderTriggerPeriod",()=>{const{filterData:e}=this.props,{startDay:t,endDay:s}=e,i=j()(t).format("DD"),a=(0,bt.formatDateWithFullMonthCommaAndYear)(s),o=j()(t).format("YYYY-MM-DD")===j()(s).format("YYYY-MM-DD")?a:j()(t).format("MM")!==j()(s).format("MM")?`${(0,bt.formatDate)(t)} \u2014 ${a}`:j()(t).format("YYYY")!==j()(s).format("YYYY")?`${(0,bt.formatDateWithFullMonthCommaAndYear)(t)} \u2014 ${a}`:`${i} \u2014 ${a}`;return(0,r.jsx)("div",{className:"dropdown_trigger links_trigger",children:(0,r.jsxs)("div",{className:"button_content",children:[(0,r.jsx)("div",{className:"link_text",children:o}),(0,r.jsx)(d.default,{iconId:"angle_down",className:"team-statistic-event-log-header__dropdown-icon"})]})})}),Lt(this,"handleChangePeriod",e=>{const{filterData:t,updateFilteres:s}=this.props,{dateStart:r,dateEnd:i}=e;var a;s((a=((e,t)=>{for(var s in t||(t={}))jt.call(t,s)&&Ct(e,s,t[s]);if(wt)for(var s of wt(t))Dt.call(t,s)&&Ct(e,s,t[s]);return e})({},t),xt(a,Rt({startDay:r,endDay:i}))))}),this.activeDays=_t()}render(){const{t:e,filterData:t,onClickEventLog:s}=this.props,{startDay:i,endDay:a}=t;return(0,r.jsx)("div",{className:"wrapper react_table_handler",children:(0,r.jsxs)("div",{className:"statistic-page-header",children:[(0,r.jsx)("div",{className:"statistic-page-header__title",children:e.translate("teamheadertitle","\u0413\u0440\u0430\u0444\u0438\u043a \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u043e\u0434\u0443\u043b\u0435\u043c")}),(0,r.jsxs)("div",{className:"statistic-page-header__other",children:[(0,r.jsx)("div",{className:"statistic-page-header__work",children:e.translate("teamdaysworking","\u0414\u043d\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c")}),(0,r.jsx)("div",{className:"statistic-page-header__weekend",children:e.translate("teamweekend","\u0412\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u043d\u0438")}
1),(0,r.jsxs)("div",{"aria-hidden":!0,className:"statistic-page-header__event-log",onClick:s,children:[(0,r.jsx)(d.default,{iconId:"event_log_team_management",className:"statistic-page-header__event-log-icon"}),e.translate("teameventlog","\u0416\u0443\u0440\u043d\u0430\u043b \u0441\u043e\u0431\u044b\u0442\u0438\u0439")]}),(0,r.jsx)(ft.Datepicker,{onApply:this.handleChangePeriod,dateStart:j()(i),dateEnd:j()(a),trigger:this.renderTriggerPeriod(),mode:yt.MODE_TYPES.PERIOD,hasAside:!0,asideType:yt.ASIDE_TYPES.PERIODS,hideAllTime:!0,activeDays:this.activeDays})]})]})})}}Lt(St,"propTypes",{t:o().object.isRequired,filterData:o().object.isRequired,updateFilteres:o().func.isRequired,onClickEventLog:o().func.isRequired});var Mt=s(18492),Gt=s(50883);const It=(0,i.memo)(({error:e})=>{const{t}=(0,Mt.useTranslation)(["TeamManagement"]);return(0,r.jsx)("div",{className:"wrapper react_table_handler team-statistic-table-null-log",children:(0,r.jsxs)("div",{className:"team-statistic-table-null-log__container",children:[(0,r.jsx)(Se.Figure26,{alt:"Serpstat"}),(0,r.jsx)("p",{className:"team-statistic-table-null-log__text",children:e.message?t((e.message||"").toLowerCase().replace(/\s/g,""),e.message):(0,r.jsxs)(r.Fragment,{children:[t("Global::something_went_wrong")," ",(0,r.jsx)("button",{onClick:Gt.openIntercomDialog,className:"button-link ml5",children:t("Global::connect_with_us")})]})})]})})});var Tt=Object.defineProperty,Nt=(e,t,s)=>((e,t,s)=>t in e?Tt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s)(e,"symbol"!==typeof t?t+"":t,s);class Yt extends i.PureComponent{constructor(e){super(e),Nt(this,"onClickEventLog",()=>{const{triggerEventLog:e,isTriggerEventLogOpen:t}=this.props;e(!t),t?document.body.classList.remove("team-statistic-delete-scroll"):document.body.classList.add("team-statistic-delete-scroll")}),this.employeesItems=[],this.modulesItems=[]}componentDidMount(){const{getTableDataRequest:e,filterData:t,users:s,modulesName:r,t:i}=this.props,{startDay:a,endDay:o}=t;this.employeesItems=Le.getEmployeesItems(s),this.modulesItems=Le.getModulesItems(r,i);e({start:j()(a).format("YYYY-MM-DD"),end:j()(o).format("YYYY-MM-DD")})}componentDidUpdate(e){const{getTableDataRequest:t,filterData:s}=this.props,{startDay:r,endDay:i}=s;ge()(e.filterData.startDay,r)&&ge()(e.filterData.endDay,i)||t({start:r,end:i})}render(){const{t:e,users:t,loading:s,modulesLog:a,modulesName:o,filterData:l,updateFilteres:n,isTriggerEventLogOpen:d,dateArray:c,months:h,filteredModules:m,filteredUsers:u,locale:p,error:g,errorData:f}=this.props;return s?(0,r.jsx)(me.default,{}):g?(0,r.jsx)(It,{error:f}):(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(St,{t:e,filterData:l,updateFilteres:n,onClickEventLog:this.onClickEventLog}),(0,r.jsx)(ce,{users:u,t:e,modulesLog:a,dateArray:c,months:h,modulesName:o,filteredModules:m,filterData:l,updateFilteres:n,employeesItems:this.employeesItems,modulesItems:this.modulesItems,locale:p}),d&&(0,r.jsx)(he.EventLogWrapper,{onClickClose:this.onClickEventLog,children:(0,r.jsx)(gt,{users:t,employeesItems:this.employeesItems,modulesItems:this.modulesItems,onClickClose:this.onClickEventLog})})]})}}Nt(Yt,"propTypes",{t:o().object.isRequired,users:o().array.isRequired,getTableDataRequest:o().func.isRequired,modulesLog:o().object.isRequired,loading:o().bool.isRequired,modulesName:o().array.isRequired,filterData:o().object.isRequired,updateFilteres:o().func.isRequired,triggerEventLog:o().func.isRequired,isTriggerEventLogOpen:o().bool.isRequired,dateArray:o().array.isRequired,months:o().array.isRequired,filteredModules:o().array.isRequired,filteredUsers:o().array.isRequired,locale:o().string.isRequired,error:o().bool.isRequired,errorData:o().object.isRequired});const kt=new Fe.Translator("TeamManagement"),Et=(0,Ue.compose)((0,He.connect)((e,{users:t})=>({users:et(Ze(e),t),filteredUsers:at(e,t),modulesLog:tt(e),loading:e.teamManagement.fetchDataStatistic.loading,modulesName:e.teamManagement.fetchDataStatistic.modulesName,filteredModules:rt(e),filterData:e.teamManagement.fetchDataStatistic.filterData,isTriggerEventLogOpen:e.teamManagement.fetchDataStatistic.isTriggerEventLogOpen,dateArray:e.teamManagement.fetchDataStatistic.dateArray,months:e.teamManagement.fetchDataStatistic.months,InputErrorsLocales:"InputErrors",t:kt,locale:e.locale,errorData:e.teamManagement.fetchDataStatistic.errorData,error:e.teamManagement.fetchDataStatistic.error}),e=>({getTableDataRequest:(0,qe.bindActionCreators)(We.getTableDataRequest,e),updateFilteres:(0,qe.bindActionCreators)(We.updateFilteresDataRequest,e),triggerEventLog:(0,qe.bindActionCreators)(We.triggerEventLog,e)})))(Yt);var Pt=s(12527);const Ot=(0,Ue.withProps)({ManagementTeamTable:Et,ManagementTeamActionBar:()=>null})(Pt.default)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.