1"use strict";(self.webpackChunkdspace_angular=self.webpackChunkdspace_angular||[]).push([[6086],{66086:(sn,se,C)=>{C.d(se,{hq:()=>H,nE:()=>$t,xD:()=>on,ER:()=>I});var n=C(98678),g=C(35103),le=C(1828),v=C(43035),ce=C(35841),M=C(35879);function B(o,a){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(o,a)}const z=["*"];function he(o,a){1&o&&n.\u0275\u0275element(0,"datatable-progress")}function pe(o,a){if(1&o&&n.\u0275\u0275element(0,"datatable-summary-row",9),2&o){const e=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("rowHeight",e.summaryHeight)("offsetX",e.offsetX)("innerWidth",e.innerWidth)("rows",e.rows)("columns",e.columns)}}function ge(o,a){if(1&o){const e=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"datatable-body-row",13),n.\u0275\u0275listener("treeAction",function(){n.\u0275\u0275restoreView(e);const r=n.\u0275\u0275nextContext().$implicit,i=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(i.onTreeAction(r))})("activate",function(r){n.\u0275\u0275restoreView(e);const i=n.\u0275\u0275nextContext().index,s=n.\u0275\u0275nextContext(2),l=n.\u0275\u0275reference(1);return n.\u0275\u0275resetView(l.onActivate(r,s.indexes.first+i))}),n.\u0275\u0275elementEnd()}if(2&o){const e=n.\u0275\u0275nextContext().$implicit,t=n.\u0275\u0275nextContext(2),r=n.\u0275\u0275reference(1);n.\u0275\u0275property("isSelected",r.getRowSelected(e))("innerWidth",t.innerWidth)("offsetX",t.offsetX)("columns",t.columns)("rowHeight",t.getRowHeight(e))("row",e)("rowIndex",t.getRowIndex(e))("expanded",t.getRowExpanded(e))("rowClass",t.rowClass)("displayCheck",t.displayCheck)("treeStatus",e.treeStatus)}}function fe(o,a){if(1&o){const e=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"datatable-body-row",15),n.\u0275\u0275listener("activate",function(r){const s=n.\u0275\u0275restoreView(e).index;n.\u0275\u0275nextContext(4);const l=n.\u0275\u0275reference(1);return n.\u0275\u0275resetView(l.onActivate(r,s))}),n.\u0275\u0275elementEnd()}if(2&o){const e=a.$implicit,t=n.\u0275\u0275nextContext(2).$implicit,r=n.\u0275\u0275nextContext(2),i=n.\u0275\u0275reference(1);n.\u0275\u0275property("isSelected",i.getRowSelected(e))("innerWidth",r.innerWidth)("offsetX",r.offsetX)("columns",r.columns)("rowHeight",r.getRowHeight(e))("row",e)("group",t.value)("rowIndex",r.getRowIndex(e))("expanded",r.getRowExpanded(e))("rowClass",r.rowClass)}}function me(o,a){if(1&o&&n.\u0275\u0275template(0,fe,1,10,"datatable-body-row",14),2&o){const e=n.\u0275\u0275nextContext().$implicit,t=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("ngForOf",e.value)("ngForTrackBy",t.rowTrackingFn)}}function be(o,a){if(1&o){const e=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"datatable-row-wrapper",10),n.\u0275\u0275listener("rowContextmenu",function(r){n.\u0275\u0275restoreView(e);const i=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(i.rowContextmenu.emit(r))}),n.\u0275\u0275template(1,ge,1,11,"datatable-body-row",11),n.\u0275\u0275template(2,me,1,2,"ng-template",null,12,n.\u0275\u0275templateRefExtractor),n.\u0275\u0275elementEnd()}if(2&o){const e=a.$implicit,t=a.index,r=n.\u0275\u0275reference(3),i=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("groupedRows",i.groupedRows)("innerWidth",i.innerWidth)("ngStyle",i.getRowsStyles(e))("rowDetail",i.rowDetail)("groupHeader",i.groupHeader)("offsetX",i.offsetX)("detailRowHeight",i.getDetailRowHeight(e[t],t))("row",e)("expanded",i.getRowExpanded(e))("rowIndex",i.getRowIndex(e[t])),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!i.groupedRows)("ngIfElse",r)}}function we(o,a){if(1&o&&n.\u0275\u0275element(0,"datatable-summary-row",16),2&o){const e=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("ngStyle",e.getBottomSummaryRowStyles())("rowHeight",e.summaryHeight)("offsetX",e.offsetX)("innerWidth",e.innerWidth)("rows",e.rows)("columns",e.columns)}}function _e(o,a){if(1&o){const e=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"datatable-scroller",5),n.\u0275\u0275listener("scroll",function(r){n.\u0275\u0275restoreView(e);const i=n.\u0275\u0275nextContext();
1return n.\u0275\u0275resetView(i.onBodyScroll(r))}),n.\u0275\u0275template(1,pe,1,5,"datatable-summary-row",6),n.\u0275\u0275template(2,be,4,12,"datatable-row-wrapper",7),n.\u0275\u0275template(3,we,1,6,"datatable-summary-row",8),n.\u0275\u0275elementEnd()}if(2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275property("scrollbarV",e.scrollbarV)("scrollbarH",e.scrollbarH)("scrollHeight",e.scrollHeight)("scrollWidth",null==e.columnGroupWidths?null:e.columnGroupWidths.total),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",e.summaryRow&&"top"===e.summaryPosition),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",e.temp)("ngForTrackBy",e.rowTrackingFn),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",e.summaryRow&&"bottom"===e.summaryPosition)}}function ye(o,a){if(1&o&&n.\u0275\u0275element(0,"div",17),2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275property("innerHTML",e.emptyMessage,n.\u0275\u0275sanitizeHtml)}}function Ce(o,a){if(1&o){const e=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"datatable-header-cell",4),n.\u0275\u0275listener("resize",function(r){const s=n.\u0275\u0275restoreView(e).$implicit,l=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(l.onColumnResized(r,s))})("longPressStart",function(r){n.\u0275\u0275restoreView(e);const i=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(i.onLongPressStart(r))})("longPressEnd",function(r){n.\u0275\u0275restoreView(e);const i=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(i.onLongPressEnd(r))})("sort",function(r){n.\u0275\u0275restoreView(e);const i=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(i.onSort(r))})("select",function(r){n.\u0275\u0275restoreView(e);const i=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(i.select.emit(r))})("columnContextmenu",function(r){n.\u0275\u0275restoreView(e);const i=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(i.columnContextmenu.emit(r))}),n.\u0275\u0275elementEnd()}if(2&o){const e=a.$implicit,t=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("resizeEnabled",e.resizeable)("pressModel",e)("pressEnabled",t.reorderable&&e.draggable)("dragX",t.reorderable&&e.draggable&&e.dragging)("dragY",!1)("dragModel",e)("dragEventTarget",t.dragEventTarget)("headerHeight",t.headerHeight)("isTarget",e.isTarget)("targetMarkerTemplate",t.targetMarkerTemplate)("targetMarkerContext",e.targetMarkerContext)("column",e)("sortType",t.sortType)("sorts",t.sorts)("selectionType",t.selectionType)("sortAscendingIcon",t.sortAscendingIcon)("sortDescendingIcon",t.sortDescendingIcon)("allRowsSelected",t.allRowsSelected)}}function xe(o,a){if(1&o&&(n.\u0275\u0275elementStart(0,"div",2),n.\u0275\u0275template(1,Ce,1,18,"datatable-header-cell",3),n.\u0275\u0275elementEnd()),2&o){const e=a.$implicit,t=n.\u0275\u0275nextContext();n.\u0275\u0275classMap("datatable-row-"+e.type),n.\u0275\u0275property("ngStyle",t._styleByGroup[e.type]),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",e.columns)("ngForTrackBy",t.columnTrackingFn)}}function ve(o,a){if(1&o){const e=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"datatable-header",4),n.\u0275\u0275listener("sort",function(r){n.\u0275\u0275restoreView(e);const i=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(i.onColumnSort(r))})("resize",function(r){n.\u0275\u0275restoreView(e);const i=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(i.onColumnResize(r))})("reorder",function(r){n.\u0275\u0275restoreView(e);const i=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(i.onColumnReorder(r))})("select",function(r){n.\u0275\u0275restoreView(e);const i=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(i.onHeaderSelect(r))})("columnContextmenu",function(r){n.\u0275\u0275restoreView(e);const i=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(i.onColumnContextmenu(r))}),n.\u0275\u0275pipe(1,"async"),n.\u0275\u0275elementEnd()}if(2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275property("sorts",e.sorts)("sortType",e.sortType)("scrollbarH",e.scrollbarH)("innerWidth",e._innerWidth)("offsetX",n.\u0275\u0275pipeBind1(1,14,e._offsetX))("dealsWithGroup",void 0!==e.groupedRows)("columns",e._internalColumns)("headerHeight",e.headerHeight)("reorderable",e.reorderable)("targetMarkerTemplate",e.targetMarkerTemplate)("sortAscendingIcon",e.cssClasse
1s.sortAscending)("sortDescendingIcon",e.cssClasses.sortDescending)("allRowsSelected",e.allRowsSelected)("selectionType",e.selectionType)}}function Te(o,a){if(1&o){const e=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"datatable-footer",5),n.\u0275\u0275listener("page",function(r){n.\u0275\u0275restoreView(e);const i=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(i.onFooterPage(r))}),n.\u0275\u0275elementEnd()}if(2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275property("rowCount",e.rowCount)("pageSize",e.pageSize)("offset",e.offset)("footerHeight",e.footerHeight)("footerTemplate",e.footer)("totalMessage",e.messages.totalMessage)("pagerLeftArrowIcon",e.cssClasses.pagerLeftArrow)("pagerRightArrowIcon",e.cssClasses.pagerRightArrow)("pagerPreviousIcon",e.cssClasses.pagerPrevious)("selectedCount",e.selected.length)("selectedMessage",!!e.selectionType&&e.messages.selectedMessage)("pagerNextIcon",e.cssClasses.pagerNext)}}function De(o,a){}function Se(o,a){if(1&o&&n.\u0275\u0275template(0,De,0,0,"ng-template",5),2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275property("ngTemplateOutlet",e.targetMarkerTemplate)("ngTemplateOutletContext",e.targetMarkerContext)}}function Re(o,a){if(1&o){const e=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"label",6)(1,"input",7),n.\u0275\u0275listener("change",function(){n.\u0275\u0275restoreView(e);const r=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(r.select.emit(!r.allRowsSelected))}),n.\u0275\u0275elementEnd()()}if(2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("checked",e.allRowsSelected)}}function He(o,a){if(1&o){const e=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"span",8)(1,"span",9),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(e);const r=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(r.onSort())}),n.\u0275\u0275elementEnd()()}if(2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("innerHTML",e.name,n.\u0275\u0275sanitizeHtml)}}function Ie(o,a){}function Ee(o,a){if(1&o&&n.\u0275\u0275template(0,Ie,0,0,"ng-template",5),2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275property("ngTemplateOutlet",e.column.headerTemplate)("ngTemplateOutletContext",e.cellContext)}}function Pe(o,a){}const ke=function(o,a,e,t,r){return{rowCount:o,pageSize:a,selectedCount:e,curPage:t,offset:r}};function Me(o,a){if(1&o&&n.\u0275\u0275template(0,Pe,0,0,"ng-template",4),2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275property("ngTemplateOutlet",e.footerTemplate.template)("ngTemplateOutletContext",n.\u0275\u0275pureFunction5(2,ke,e.rowCount,e.pageSize,e.selectedCount,e.curPage,e.offset))}}function Fe(o,a){if(1&o&&(n.\u0275\u0275elementStart(0,"span"),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&o){const e=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate2(" ",null==e.selectedCount?null:e.selectedCount.toLocaleString()," ",e.selectedMessage," / ")}}function Be(o,a){if(1&o&&(n.\u0275\u0275elementStart(0,"div",5),n.\u0275\u0275template(1,Fe,2,2,"span",1),n.\u0275\u0275text(2),n.\u0275\u0275elementEnd()),2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",e.selectedMessage),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate2(" ",null==e.rowCount?null:e.rowCount.toLocaleString()," ",e.totalMessage," ")}}function ze(o,a){if(1&o){const e=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"datatable-pager",6),n.\u0275\u0275listener("change",function(r){n.\u0275\u0275restoreView(e);const i=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(i.page.emit(r))}),n.\u0275\u0275elementEnd()}if(2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275property("pagerLeftArrowIcon",e.pagerLeftArrowIcon)("pagerRightArrowIcon",e.pagerRightArrowIcon)("pagerPreviousIcon",e.pagerPreviousIcon)("pagerNextIcon",e.pagerNextIcon)("page",e.curPage)("size",e.pageSize)("count",e.rowCount)("hidden",!e.isVisible)}}const We=function(o){return{"selected-count":o}};function Ae(o,a){if(1&o){const e=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"li",6)(1,"a",7),n.\u0275\u0275listener("click",function(){const i=n.\u0275\u0275restoreView(e).$implicit,s=n.\u0275\u0275nextContext();
1return n.\u0275\u0275resetView(s.selectPage(i.number))}),n.\u0275\u0275text(2),n.\u0275\u0275elementEnd()()}if(2&o){const e=a.$implicit,t=n.\u0275\u0275nextContext();n.\u0275\u0275classProp("active",e.number===t.page),n.\u0275\u0275attribute("aria-label","page "+e.number),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate1(" ",e.text," ")}}function Ve(o,a){if(1&o){const e=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"datatable-body-cell",3),n.\u0275\u0275listener("activate",function(r){const s=n.\u0275\u0275restoreView(e).index,l=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(l.onActivate(r,s))})("treeAction",function(){n.\u0275\u0275restoreView(e);const r=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(r.onTreeAction())}),n.\u0275\u0275elementEnd()}if(2&o){const e=a.$implicit,t=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("row",t.row)("group",t.group)("expanded",t.expanded)("isSelected",t.isSelected)("rowIndex",t.rowIndex)("column",e)("rowHeight",t.rowHeight)("displayCheck",t.displayCheck)("treeStatus",t.treeStatus)}}function Oe(o,a){if(1&o&&(n.\u0275\u0275elementStart(0,"div",1),n.\u0275\u0275template(1,Ve,1,9,"datatable-body-cell",2),n.\u0275\u0275elementEnd()),2&o){const e=a.$implicit,t=n.\u0275\u0275nextContext();n.\u0275\u0275classMapInterpolate1("datatable-row-",e.type," datatable-row-group"),n.\u0275\u0275property("ngStyle",t._groupStyles[e.type]),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",e.columns)("ngForTrackBy",t.columnTrackingFn)}}function Xe(o,a){}function Ge(o,a){if(1&o&&n.\u0275\u0275template(0,Xe,0,0,"ng-template",4),2&o){const e=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("ngTemplateOutlet",e.groupHeader.template)("ngTemplateOutletContext",e.groupContext)}}function Le(o,a){if(1&o&&(n.\u0275\u0275elementStart(0,"div",3),n.\u0275\u0275template(1,Ge,1,2,null,1),n.\u0275\u0275elementEnd()),2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275property("ngStyle",e.getGroupHeaderStyle()),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",e.groupHeader&&e.groupHeader.template)}}function je(o,a){1&o&&n.\u0275\u0275projection(0,0,["*ngIf","(groupHeader && groupHeader.template && expanded) || (!groupHeader || !groupHeader.template)"])}function $e(o,a){}function Qe(o,a){if(1&o&&n.\u0275\u0275template(0,$e,0,0,"ng-template",4),2&o){const e=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("ngTemplateOutlet",e.rowDetail.template)("ngTemplateOutletContext",e.rowContext)}}function Ne(o,a){if(1&o&&(n.\u0275\u0275elementStart(0,"div",5),n.\u0275\u0275template(1,Qe,1,2,null,1),n.\u0275\u0275elementEnd()),2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("height",e.detailRowHeight,"px"),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",e.rowDetail&&e.rowDetail.template)}}const Ye=["cellTemplate"];function qe(o,a){if(1&o){const e=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"label",4)(1,"input",5),n.\u0275\u0275listener("click",function(r){n.\u0275\u0275restoreView(e);const i=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(i.onCheckboxChange(r))}),n.\u0275\u0275elementEnd()()}if(2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("checked",e.isSelected)}}function Ke(o,a){1&o&&n.\u0275\u0275element(0,"i",11)}function Ue(o,a){1&o&&n.\u0275\u0275element(0,"i",12)}function Ze(o,a){1&o&&n.\u0275\u0275element(0,"i",13)}function Je(o,a){if(1&o){const e=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",7),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(e);const r=n.\u0275\u0275nextContext(2);return n.\u0275\u0275resetView(r.onTreeAction())}),n.\u0275\u0275elementStart(1,"span"),n.\u0275\u0275template(2,Ke,1,0,"i",8),n.\u0275\u0275template(3,Ue,1,0,"i",9),n.\u0275\u0275template(4,Ze,1,0,"i",10),n.\u0275\u0275elementEnd()()}if(2&o){const e=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("disabled","disabled"===e.treeStatus),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf","loading"===e.treeStatus),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf","collapsed"===e.treeStatus),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf","expanded"===e.treeStatus||"disabled"===e.treeStatus)}}function et(o,a){}const tt=function(o){return{cellContext:o}};function nt(o,a){if(1&o&&n.\u0275\u0275template(0,et,0,0,"ng-template",14),2&o){const e=n.\u0275\u0275nextContext(2);n.\u0275\u0275property("ngTemplateOutlet",e.column.treeToggleTemplate)("ngTemplateOutletContext",n.\u0275\u0275pureFunction1(2,tt,e.cellContext))}}function ot(o,a){if(1&o&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275template(1,Je,5,4,"button",6),n.\u0275\u0275template(2,nt,1,4,null,2),n.\u0275\u0275elementContainerEnd()),2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!e.column.treeToggleTemplate),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",e.column.treeToggleTemplate)}}function rt(o,a){if(1&o&&n.\u0275\u0275element(0,"span",15),2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275property("title",e.sanitizedValue)("innerHTML",e.value,n.\u0275\u0275sanitizeHtml)}}function it(o,a){}function at(o,a){if(1&o&&n.\u0275\u0275template(0,it,0,0,"ng-template",14,16,n.\u0275\u0275templateRefExtractor),2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275property("ngTemplateOutlet",e.column.cellTemplate)("ngTemplateOutletContext",e.cellContext)}}function st(o,a){if(1&o&&n.\u0275\u0275element(0,"datatable-body-row",1),2&o){const e=n.\u0275\u0275nextContext();n.\u0275\u0275property("innerWidth",e.innerWidth)("offsetX",e.offsetX)("columns",e._internalColumns)("rowHeight",e.rowHeight)("row",e.summaryRow)("rowIndex",-1)}}let W=(()=>{class o{constructor(e){this.document=e,this.width=this.getWidth()}getWidth(){const e=this.document.createElement("div");
1e.style.visibility="hidden",e.style.width="100px",e.style.msOverflowStyle="scrollbar",this.document.body.appendChild(e);const t=e.offsetWidth;e.style.overflow="scroll";const r=this.document.createElement("div");r.style.width="100%",e.appendChild(r);const i=r.offsetWidth;return e.parentNode.removeChild(e),t-i}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275inject(g.K0))},o.\u0275prov=n.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})(),Y=(()=>{class o{getDimensions(e){return e.getBoundingClientRect()}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=n.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})(),A=(()=>{class o{constructor(){this.columnInputChanges=new le.x}get columnInputChanges$(){return this.columnInputChanges.asObservable()}onInputChange(){this.columnInputChanges.next()}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=n.\u0275\u0275defineInjectable({token:o,factory:o.\u0275fac}),o})(),lt=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(n.TemplateRef))},o.\u0275dir=n.\u0275\u0275defineDirective({type:o,selectors:[["","ngx-datatable-footer-template",""]]}),o})(),ct=(()=>{class o{constructor(e,t){this.element=e,this.zone=t,this.isVisible=!1,this.visible=new n.EventEmitter}ngOnInit(){this.runCheck()}ngOnDestroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{const{offsetHeight:t,offsetWidth:r}=this.element.nativeElement;t&&r?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),50)}))};this.timeout=setTimeout(()=>e())}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.NgZone))},o.\u0275dir=n.\u0275\u0275defineDirective({type:o,selectors:[["","visibilityObserver",""]],hostVars:2,hostBindings:function(e,t){2&e&&n.\u0275\u0275classProp("visible",t.isVisible)},outputs:{visible:"visible"}}),o})(),q=(()=>{class o{constructor(e){this.dragX=!0,this.dragY=!0,this.dragStart=new n.EventEmitter,this.dragging=new n.EventEmitter,this.dragEnd=new n.EventEmitter,this.isDragging=!1,this.element=e.nativeElement}ngOnChanges(e){e.dragEventTarget&&e.dragEventTarget.currentValue&&this.dragModel.dragging&&this.onMousedown(e.dragEventTarget.currentValue)}ngOnDestroy(){this._destroySubscription()}onMouseup(e){this.isDragging&&(this.isDragging=!1,this.element.classList.remove("dragging"),this.subscription&&(this._destroySubscription(),this.dragEnd.emit({event:e,element:this.element,model:this.dragModel})))}onMousedown(e){if(e.target.classList.contains("draggable")&&(this.dragX||this.dragY)){e.preventDefault(),this.isDragging=!0;const r={x:e.clientX,y:e.clientY},i=(0,v.R)(document,"mouseup");this.subscription=i.subscribe(l=>this.onMouseup(l));const s=(0,v.R)(document,"mousemove").pipe((0,M.R)(i)).subscribe(l=>this.move(l,r));this.subscription.add(s),this.dragStart.emit({event:e,element:this.element,model:this.dragModel})}}move(e,t){if(!this.isDragging)return;const i=e.clientY-t.y;this.dragX&&(this.element.style.left=e.clientX-t.x+"px"),this.dragY&&(this.element.style.top=`${i}px`),this.element.classList.add("dragging"),this.dragging.emit({event:e,element:this.element,model:this.dragModel})}_destroySubscription(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(n.ElementRef))},o.\u0275dir=n.\u0275\u0275defineDirective({type:o,selectors:[["","draggable",""]],inputs:{dragX:"dragX",dragY:"dragY",dragEventTarget:"dragEventTarget",dragModel:"dragModel"},outputs:{dragStart:"dragStart",dragging:"dragging",dragEnd:"dragEnd"},features:[n.\u0275\u0275NgOnChangesFeature]}),o})();typeof window<"u"&&window||global,typeof window<"u"&&window||global,typeof window<"u"&&window||global;let dt=(()=>{class o{constructor(e,t){this.renderer=t,this.resizeEnabled=!0,this.resize=new n.EventEmitter,this.resizing=!1,this.element=e.nativeElement}ngAfterViewInit(){const e=this.renderer,t=e.createElement("span");e.addClass(t,this.resizeEnabled?"resize-handle":"resize-handle--not-resizable"),e.appendChild(this.element,t)}ngOnDestroy(){this._destroySubscription()}onMouseup(){this.resizing=!1,this.subscription&&!this.subscription.closed&&(this._destroySubscription(),this.resize.emit(this.element.clientWidth))}onMousedown(e){const t=e.target.classList.contains("resize-handle"),r=this.element.clientWidth,i=e.screenX;if(t){e.stopPropagation(),this.resizing=!0;const s=(0,v.R)(document,"mouseup");this.subscription=s.subscribe(c=>this.onMouseup());const l=(0,v.R)(document,"mousemove").pipe((0,M.R)(s)).subscribe(c=>this.move(c,r,i));this.subscription.add(l)}}move(e,t,r){const s=t+(e.screenX-r);(!this.minWidth||s>=this.minWidth)&&(!this.maxWidth||s<=this.maxWidth)&&(this.element.style.width=`${s}px`)}_destroySubscription(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Ren
1derer2))},o.\u0275dir=n.\u0275\u0275defineDirective({type:o,selectors:[["","resizeable",""]],hostVars:2,hostBindings:function(e,t){1&e&&n.\u0275\u0275listener("mousedown",function(i){return t.onMousedown(i)}),2&e&&n.\u0275\u0275classProp("resizeable",t.resizeEnabled)},inputs:{resizeEnabled:"resizeEnabled",minWidth:"minWidth",maxWidth:"maxWidth"},outputs:{resize:"resize"}}),o})(),ut=(()=>{class o{constructor(e,t){this.document=t,this.reorder=new n.EventEmitter,this.targetChanged=new n.EventEmitter,this.differ=e.find({}).create()}ngAfterContentInit(){this.updateSubscriptions(),this.draggables.changes.subscribe(this.updateSubscriptions.bind(this))}ngOnDestroy(){this.draggables.forEach(e=>{e.dragStart.unsubscribe(),e.dragging.unsubscribe(),e.dragEnd.unsubscribe()})}updateSubscriptions(){const e=this.differ.diff(this.createMapDiffs());if(e){const t=({currentValue:i,previousValue:s})=>{r({previousValue:s}),i&&(i.dragStart.subscribe(this.onDragStart.bind(this)),i.dragging.subscribe(this.onDragging.bind(this)),i.dragEnd.subscribe(this.onDragEnd.bind(this)))},r=({previousValue:i})=>{i&&(i.dragStart.unsubscribe(),i.dragging.unsubscribe(),i.dragEnd.unsubscribe())};e.forEachAddedItem(t),e.forEachRemovedItem(r)}}onDragStart(){this.positions={};let e=0;for(const t of this.draggables.toArray()){const r=t.element,i=parseInt(r.offsetLeft.toString(),0);this.positions[t.dragModel.prop]={left:i,right:i+parseInt(r.offsetWidth.toString(),0),index:e++,element:r}}}onDragging({model:t,event:r}){const i=this.positions[t.prop],s=this.isTarget(t,r);s?this.lastDraggingIndex!==s.i&&(this.targetChanged.emit({prevIndex:this.lastDraggingIndex,newIndex:s.i,initialIndex:i.index}),this.lastDraggingIndex=s.i):this.lastDraggingIndex!==i.index&&(this.targetChanged.emit({prevIndex:this.lastDraggingIndex,initialIndex:i.index}),this.lastDraggingIndex=i.index)}onDragEnd({element:e,model:t,event:r}){const i=this.positions[t.prop],s=this.isTarget(t,r);s&&this.reorder.emit({prevIndex:i.index,newIndex:s.i,model:t}),this.lastDraggingIndex=void 0,e.style.left="auto"}isTarget(e,t){let r=0;const l=this.document.elementsFromPoint(t.x||t.clientX,t.y||t.clientY);for(const c in this.positions){const d=this.positions[c];if(e.prop!==c&&l.find(h=>h===d.element))return{pos:d,i:r};r++}}createMapDiffs(){return this.draggables.toArray().reduce((e,t)=>(e[t.dragModel.$$id]=t,e),{})}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(g.K0))},o.\u0275dir=n.\u0275\u0275defineDirective({type:o,selectors:[["","orderable",""]],contentQueries:function(e,t,r){if(1&e&&n.\u0275\u0275contentQuery(r,q,5),2&e){let i;n.\u0275\u0275queryRefresh(i=n.\u0275\u0275loadQuery())&&(t.draggables=i)}},outputs:{reorder:"reorder",targetChanged:"targetChanged"}}),o})(),ht=(()=>{class o{constructor(){this.pressEnabled=!0,this.duration=500,this.longPressStart=new n.EventEmitter,this.longPressing=new n.EventEmitter,this.longPressEnd=new n.EventEmitter,this.mouseX=0,this.mouseY=0}get press(){return this.pressing}get isLongPress(){return this.isLongPressing}onMouseDown(e){if(1!==e.which||!this.pressEnabled||e.target.classList.contains("resize-handle"))return;this.mouseX=e.clientX,this.mouseY=e.clientY,this.pressing=!0,this.isLongPressing=!1;const r=(0,v.R)(document,"mouseup");this.subscription=r.subscribe(i=>this.onMouseup()),this.timeout=setTimeout(()=>{this.isLongPressing=!0,this.longPressStart.emit({event:e,model:this.pressModel}),this.subscription.add((0,v.R)(document,"mousemove").pipe((0,M.R)(r)).subscribe(i=>this.onMouseMove(i))),this.loop(e)},this.duration),this.loop(e)}onMouseMove(e){if(this.pressing&&!this.isLongPressing){const t=Math.abs(e.clientX-this.mouseX)>10,r=Math.abs(e.clientY-this.mouseY)>10;(t||r)&&this.endPress()}}loop(e){this.isLongPressing&&(this.timeout=setTimeout(()=>{this.longPressing.emit({event:e,model:this.pressModel}),this.loop(e)},50))}endPress(){clearTimeout(this.timeout),this.isLongPressing=!1,this.pressing=!1,this._destroySubscription(),this.longPressEnd.emit({model:this.pressModel})}onMouseup(){this.endPress()}ngOnDestroy(){this._destroySubscription()}_destroySubscription(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)}}return o.\u0275fac=function(e){return new(e||o)}
1,o.\u0275dir=n.\u0275\u0275defineDirective({type:o,selectors:[["","long-press",""]],hostVars:4,hostBindings:function(e,t){1&e&&n.\u0275\u0275listener("mousedown",function(i){return t.onMouseDown(i)}),2&e&&n.\u0275\u0275classProp("press",t.press)("longpress",t.isLongPress)},inputs:{pressEnabled:"pressEnabled",duration:"duration",pressModel:"pressModel"},outputs:{longPressStart:"longPressStart",longPressing:"longPressing",longPressEnd:"longPressEnd"}}),o})(),K=(()=>{class o{constructor(e,t,r){this.ngZone=e,this.renderer=r,this.scrollbarV=!1,this.scrollbarH=!1,this.scroll=new n.EventEmitter,this.scrollYPos=0,this.scrollXPos=0,this.prevScrollYPos=0,this.prevScrollXPos=0,this._scrollEventListener=null,this.element=t.nativeElement}ngOnInit(){if(this.scrollbarV||this.scrollbarH){const e=this.renderer;this.parentElement=e.parentNode(e.parentNode(this.element)),this._scrollEventListener=this.onScrolled.bind(this),this.parentElement.addEventListener("scroll",this._scrollEventListener)}}ngOnDestroy(){this._scrollEventListener&&(this.parentElement.removeEventListener("scroll",this._scrollEventListener),this._scrollEventListener=null)}setOffset(e){this.parentElement&&(this.parentElement.scrollTop=e)}onScrolled(e){const t=e.currentTarget;requestAnimationFrame(()=>{this.scrollYPos=t.scrollTop,this.scrollXPos=t.scrollLeft,this.updateOffset()})}updateOffset(){let e;this.scrollYPos<this.prevScrollYPos?e="down":this.scrollYPos>this.prevScrollYPos&&(e="up"),this.scroll.emit({direction:e,scrollYPos:this.scrollYPos,scrollXPos:this.scrollXPos}),this.prevScrollYPos=this.scrollYPos,this.prevScrollXPos=this.scrollXPos}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2))},o.\u0275cmp=n.\u0275\u0275defineComponent({type:o,selectors:[["datatable-scroller"]],hostAttrs:[1,"datatable-scroll"],hostVars:4,hostBindings:function(e,t){2&e&&n.\u0275\u0275styleProp("height",t.scrollHeight,"px")("width",t.scrollWidth,"px")},inputs:{scrollbarV:"scrollbarV",scrollbarH:"scrollbarH",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth"},outputs:{scroll:"scroll"},ngContentSelectors:z,decls:1,vars:0,template:function(e,t){1&e&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),o})(),pt=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(n.TemplateRef))},o.\u0275dir=n.\u0275\u0275defineDirective({type:o,selectors:[["","ngx-datatable-group-header-template",""]]}),o})(),gt=(()=>{class o{constructor(){this.rowHeight=0,this.toggle=new n.EventEmitter}get template(){return this._templateInput||this._templateQuery}toggleExpandGroup(e){this.toggle.emit({type:"group",value:e})}expandAllGroups(){this.toggle.emit({type:"all",value:!0})}collapseAllGroups(){this.toggle.emit({type:"all",value:!1})}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=n.\u0275\u0275defineDirective({type:o,selectors:[["ngx-datatable-group-header"]],contentQueries:function(e,t,r){if(1&e&&n.\u0275\u0275contentQuery(r,pt,7,n.TemplateRef),2&e){let i;n.\u0275\u0275queryRefresh(i=n.\u0275\u0275loadQuery())&&(t._templateQuery=i.first)}},inputs:{rowHeight:"rowHeight",_templateInput:["template","_templateInput"]},outputs:{toggle:"toggle"}}),o})();function ft(){return""}function V(o){return null==o?ft:"number"==typeof o?mt:-1!==o.indexOf(".")?wt:bt}function mt(o,a){return null==o?"":o&&null!=a?o[a]??"":o}function bt(o,a){return null==o?"":o&&a?o[a]??"":o}function wt(o,a){if(null==o)return"";if(!o||!a)return o;let e=o[a];if(void 0!==e)return e;e=o;const t=a.split(".");if(t.length)for(let r=0;r<t.length;r++)if(e=e[t[r]],null==e)return"";return e}function T(o){return o&&(a=>V(o)(a,o))}function O(o,a,e){if(a&&e){const t={},r=o.length;let i=null;t[0]=new U;const s=o.reduce((c,d)=>{const h=e(d);return-1===c.indexOf(h)&&c.push(h),c},[]);for(let c=0;c<r;c++)t[e(o[c])]=new U(o[c]);for(let c=0;c<r;c++){i=t[e(o[c])];let d=0;const h=a(i.row);h&&s.indexOf(h)>-1&&(d=h),i.parent=t[d],i.row.level=i.parent.row.level+1,i.parent.children.push(i)}let l=[];return t[0].flatten(function(){l=[...l,this.row]},!0),l}return o}class U{constructor(a=null){a||(a={level:-1,treeStatus:"expanded"}),this.row=a,this.parent=null,this.children=[]}flatten(a,e){if("expanded"===this.row.treeStatus)for(let t=0,r=this.children.length;t<r;t++){const i=this.children[t];a.apply(i,Array.prototype.slice.call(arguments,2)),e&&i.flatten.apply(i,arguments)}}}function X(o){return(o=(o=(o=o.replace(/[^a-zA-Z0-9 ]/g," ")).replace(/([a-z](?=[A-Z]))/g,"$1 ")).replace(/([^a-zA-Z0-9 ])|^[0-9]+/g,"").trim().toLowerCase()).replace(/([ 0-9]+)([a-zA-Z])/g,function(a,e,t){return e.trim()+t.toUpperCase()})}function _t(o){return o.replace(/([A-Z])/g,a=>` ${a}`).replace(/^./,a=>a.toUpperCase())}
1function Z(o){if(!o)return;let a=!1;for(const e of o)e.$$id||(e.$$id=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)),D(e.prop)&&e.name&&(e.prop=X(e.name)),e.$$valueGetter||(e.$$valueGetter=V(e.prop)),!D(e.prop)&&D(e.name)&&(e.name=_t(String(e.prop))),D(e.prop)&&D(e.name)&&(e.name=""),e.hasOwnProperty("resizeable")||(e.resizeable=!0),e.hasOwnProperty("sortable")||(e.sortable=!0),e.hasOwnProperty("draggable")||(e.draggable=!0),e.hasOwnProperty("canAutoResize")||(e.canAutoResize=!0),e.hasOwnProperty("width")||(e.width=150),e.hasOwnProperty("isTreeColumn")&&e.isTreeColumn&&!a?a=!0:e.isTreeColumn=!1}function D(o){return null==o}const H={standard:"standard",flex:"flex",force:"force"},I={single:"single",multi:"multi"};let xt=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(n.TemplateRef))},o.\u0275dir=n.\u0275\u0275defineDirective({type:o,selectors:[["","ngx-datatable-header-template",""]]}),o})(),vt=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(n.TemplateRef))},o.\u0275dir=n.\u0275\u0275defineDirective({type:o,selectors:[["","ngx-datatable-cell-template",""]]}),o})(),Tt=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(n.TemplateRef))},o.\u0275dir=n.\u0275\u0275defineDirective({type:o,selectors:[["","ngx-datatable-tree-toggle",""]]}),o})(),Dt=(()=>{class o{constructor(e){this.columnChangesService=e,this.isFirstChange=!0}get cellTemplate(){return this._cellTemplateInput||this._cellTemplateQuery}get headerTemplate(){return this._headerTemplateInput||this._headerTemplateQuery}get treeToggleTemplate(){return this._treeToggleTemplateInput||this._treeToggleTemplateQuery}ngOnChanges(){this.isFirstChange?this.isFirstChange=!1:this.columnChangesService.onInputChange()}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(A))},o.\u0275dir=n.\u0275\u0275defineDirective({type:o,selectors:[["ngx-datatable-column"]],contentQueries:function(e,t,r){if(1&e&&(n.\u0275\u0275contentQuery(r,vt,7,n.TemplateRef),n.\u0275\u0275contentQuery(r,xt,7,n.TemplateRef),n.\u0275\u0275contentQuery(r,Tt,7,n.TemplateRef)),2&e){let i;n.\u0275\u0275queryRefresh(i=n.\u0275\u0275loadQuery())&&(t._cellTemplateQuery=i.first),n.\u0275\u0275queryRefresh(i=n.\u0275\u0275loadQuery())&&(t._headerTemplateQuery=i.first),n.\u0275\u0275queryRefresh(i=n.\u0275\u0275loadQuery())&&(t._treeToggleTemplateQuery=i.first)}},inputs:{name:"name",prop:"prop",frozenLeft:"frozenLeft",frozenRight:"frozenRight",flexGrow:"flexGrow",resizeable:"resizeable",comparator:"comparator",pipe:"pipe",sortable:"sortable",draggable:"draggable",canAutoResize:"canAutoResize",minWidth:"minWidth",width:"width",maxWidth:"maxWidth",checkboxable:"checkboxable",headerCheckboxable:"headerCheckboxable",headerClass:"headerClass",cellClass:"cellClass",isTreeColumn:"isTreeColumn",treeLevelIndent:"treeLevelIndent",summaryFunc:"summaryFunc",summaryTemplate:"summaryTemplate",_cellTemplateInput:["cellTemplate","_cellTemplateInput"],_headerTemplateInput:["headerTemplate","_headerTemplateInput"],_treeToggleTemplateInput:["treeToggleTemplate","_treeToggleTemplateInput"]},features:[n.\u0275\u0275NgOnChangesFeature]}),o})(),St=(()=>{class o{constructor(e){this.template=e}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(n.TemplateRef))},o.\u0275dir=n.\u0275\u0275defineDirective({type:o,selectors:[["","ngx-datatable-row-detail-template",""]]}),o})(),Rt=(()=>{class o{constructor(){this.rowHeight=0,this.toggle=new n.EventEmitter}get template(){return this._templateInput||this._templateQuery}toggleExpandRow(e){this.toggle.emit({type:"row",value:e})}expandAllRows(){this.toggle.emit({type:"all",value:!0})}collapseAllRows(){this.toggle.emit({type:"all",value:!1})}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=n.\u0275\u0275defineDirective({type:o,selectors:[["ngx-datatable-row-detail"]],contentQueries:function(e,t,r){if(1&e&&n.\u0275\u0275contentQuery(r,St,7,n.TemplateRef),2&e){let i;n.\u0275\u0275queryRefresh(i=n.\u0275\u0275loadQuery())&&(t._templateQuery=i.first)}},inputs:{rowHeight:"rowHeight",_templateInput:["template","_templateInput"]},outputs:{toggle:"toggle"}}),o})(),Ht=(()=>{class o{get template(){return this._templateInput||this._templateQuery}}return o.\u0275fac=function(e){return new(e||o)}
1,o.\u0275dir=n.\u0275\u0275defineDirective({type:o,selectors:[["ngx-datatable-footer"]],contentQueries:function(e,t,r){if(1&e&&n.\u0275\u0275contentQuery(r,lt,5,n.TemplateRef),2&e){let i;n.\u0275\u0275queryRefresh(i=n.\u0275\u0275loadQuery())&&(t._templateQuery=i.first)}},inputs:{footerHeight:"footerHeight",totalMessage:"totalMessage",selectedMessage:"selectedMessage",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon",_templateInput:["template","_templateInput"]}}),o})();function x(o){const a={left:[],center:[],right:[]};if(o)for(const e of o)e.frozenLeft?a.left.push(e):e.frozenRight?a.right.push(e):a.center.push(e);return a}function S(o,a){return{left:E(o.left),center:E(o.center),right:E(o.right),total:Math.floor(E(a))}}function E(o,a){let e=0;if(o)for(const t of o)e+=parseFloat(a&&t[a]?t[a]:t.width);return e}function ee(o){const a=[],e=x(o);return a.push({type:"left",columns:e.left}),a.push({type:"center",columns:e.center}),a.push({type:"right",columns:e.right}),a}class Et{constructor(){this.treeArray=[]}clearCache(){this.treeArray=[]}initCache(a){const{rows:e,rowHeight:t,detailRowHeight:r,externalVirtual:i,rowCount:s,rowIndexes:l,rowExpansions:c}=a,d="function"==typeof t,h="function"==typeof r;if(!d&&isNaN(t))throw new Error(`Row Height cache initialization failed. Please ensure that 'rowHeight' is a\n valid number or function value: (${t}) when 'scrollbarV' is enabled.`);if(!h&&isNaN(r))throw new Error(`Row Height cache initialization failed. Please ensure that 'detailRowHeight' is a\n valid number or function value: (${r}) when 'scrollbarV' is enabled.`);const m=i?s:e.length;this.treeArray=new Array(m);for(let u=0;u<m;++u)this.treeArray[u]=0;for(let u=0;u<m;++u){const f=e[u];let _=t;d&&(_=t(f));const $=c.get(f);f&&1===$&&(_+=h?r(f,l.get(f)):r),this.update(u,_)}}getRowIndex(a){return 0===a?0:this.calcRowIndex(a)}update(a,e){if(!this.treeArray.length)throw new Error(`Update at index ${a} with value ${e} failed:\n Row Height cache not initialized.`);const t=this.treeArray.length;for(a|=0;a<t;)this.treeArray[a]+=e,a|=a+1}query(a){if(!this.treeArray.length)throw new Error(`query at index ${a} failed: Fenwick tree array not initialized.`);let e=0;for(a|=0;a>=0;)e+=this.treeArray[a],a=(a&a+1)-1;return e}queryBetween(a,e){return this.query(e)-this.query(a-1)}calcRowIndex(a){if(!this.treeArray.length)return 0;let e=-1;const t=this.treeArray.length;for(let i=Math.pow(2,t.toString(2).length-1);0!==i;i>>=1){const s=e+i;s<t&&a>=this.treeArray[s]&&(a-=this.treeArray[s],e=s)}return e+1}}const P={},te=typeof document<"u"?document.createElement("div").style:void 0,G=function(){const o=typeof window<"u"?window.getComputedStyle(document.documentElement,""):void 0,a=typeof o<"u"?Array.prototype.slice.call(o).join("").match(/-(moz|webkit|ms)-/):null,e=null!==a?a[1]:void 0,t=typeof e<"u"?"WebKit|Moz|MS|O".match(new RegExp("("+e+")","i"))[1]:void 0;return t?{dom:t,lowercase:e,css:`-${e}-`,js:e[0].toUpperCase()+e.substr(1)}:void 0}();function k(o){const a=X(o);return P[a]||(void 0!==G&&void 0!==te[G.css+o]?P[a]=G.css+o:void 0!==te[o]&&(P[a]=o)),P[a]}const L=typeof window<"u"?k("transform"):void 0,Pt=typeof window<"u"?k("backfaceVisibility"):void 0,kt=typeof window<"u"?!!k("transform"):void 0,Mt=typeof window<"u"?!!k("perspective"):void 0,ne=typeof window<"u"?window.navigator.userAgent:"Chrome",Ft=/Safari\//.test(ne)&&!/Chrome\//.test(ne);function y(o,a,e){typeof L<"u"&&kt?!Ft&&Mt?(o[L]=`translate3d(${a}px, ${e}px, 0)`,o[Pt]="hidden"):o[X(L)]=`translate(${a}px, ${e}px)`:(o.top=`${e}px`,o.left=`${a}px`)}let oe=(()=>{class o{constructor(e){this.cd=e,this.selected=[],this.scroll=new n.EventEmitter,this.page=new n.EventEmitter,this.activate=new n.EventEmitter,this.select=new n.EventEmitter,this.detailToggle=new n.EventEmitter,this.rowContextmenu=new n.EventEmitter(!1),this.treeAction=new n.EventEmitter,this.rowHeightsCache=new Et,this.temp=[],this.offsetY=0,this.indexes={},this.rowIndexes=new Map,this.rowExpansions=new Map,this.getDetailRowHeight=(t,r)=>{if(!this.rowDetail)return 0;const i=this.rowDetail.rowHeight;return"function"==typeof i?i(t,r):i},this.rowTrackingFn=(t,r)=>{const i=this.getRowIndex(r);return this.trackByProp?r[this.trackByProp]:i}}set pageSize(e){this._pageSize=e,this.recalcLayout()}get pageSize(){return this._pageSize}set rows(e){this._rows=e,this.rowExpansions.clear(),this.recalcLayout()}get rows(){return this._rows}set columns(e){this._columns=e;const t=x(e);this.columnGroupWidths=S(t,e)}get columns(){return this._columns}set offset(e){this._offset=e,this.recalcLayout()}get offset(){return this._offset}set rowCount(e){this._rowCount=e,this.recalcLayout()}get rowCount(){return this._rowCount}get bodyWidth(){return this.scrollbarH?this.innerWidth+"px":"100%"}set bodyHeight(e){this._bodyHeight=this.scrollbarV?e+"px":"auto",this.recalcLayout()}get bodyHeight(){return this._bodyHeight}get selectEnabled(){return!!this.selectionType}get scrollHeight(){if(this.scrollbarV&&this.virtualization&&this.rowCount)return this.rowHeightsCache.query(this.rowCount-1)}ngOnInit(){this.rowDetail&&(this.listener=this.rowDetail.toggle.subscribe(({type:e,value:t})=>{"row"===e&&this.toggleRowExpansion(t),"all"===e&&this.toggleAllRows(t),this.updateIndexes(),this.updateRows(),this.cd.markForCheck()})),this.groupHeader&&(this.listener=this.groupHeader.toggle.subscribe(({type:e,value:t})=>{"group"===e&&this.toggleRowExpansion(t),"all"===e&&this.toggleAllRows(t),this.updateIndexes(),this.updateRows(),this.cd.markForCheck()}))}ngOnDestroy(){(this.rowDetail||this.groupHeader)&&this.listener.unsubscribe()}updateOffsetY(e){this.scroller&&(this.scrollbarV&&this.virtualization&&e?e=this.rowHeightsCache.query(this.pageSize*e-1):this.scrollbarV&&!this.virtualization&&(e=0),this.scroller.setOffset(e||0
1))}onBodyScroll(e){const t=e.scrollYPos,r=e.scrollXPos;(this.offsetY!==t||this.offsetX!==r)&&this.scroll.emit({offsetY:t,offsetX:r}),this.offsetY=t,this.offsetX=r,this.updateIndexes(),this.updatePage(e.direction),this.updateRows()}updatePage(e){let t=this.indexes.first/this.pageSize;"up"===e?t=Math.ceil(t):"down"===e&&(t=Math.floor(t)),void 0!==e&&!isNaN(t)&&this.page.emit({offset:t})}updateRows(){const{first:e,last:t}=this.indexes;let r=e,i=0;const s=[];if(this.rowIndexes.clear(),this.groupedRows){let l=3;for(1===this.groupedRows.length&&(l=this.groupedRows[0].value.length);r<t&&r<this.groupedRows.length;)s[i]=this.groupedRows[r],i++,r++}else for(;r<t&&r<this.rowCount;){const l=this.rows[r];l&&(this.rowIndexes.set(l,r),s[i]=l),i++,r++}this.temp=s}getRowHeight(e){return"function"==typeof this.rowHeight?this.rowHeight(e):this.rowHeight}getGroupHeight(e){let t=0;if(e.value)for(let r=0;r<e.value.length;r++)t+=this.getRowAndDetailHeight(e.value[r]);return t}getRowAndDetailHeight(e){let t=this.getRowHeight(e);return 1===this.rowExpansions.get(e)&&(t+=this.getDetailRowHeight(e)),t}getRowsStyles(e){const t={};if(this.groupedRows&&(t.width=this.columnGroupWidths.total),this.scrollbarV&&this.virtualization){let r=0;if(this.groupedRows){const s=e[e.length-1];r=s?this.getRowIndex(s):0}else r=this.getRowIndex(e);y(t,0,this.rowHeightsCache.query(r-1))}return t}getBottomSummaryRowStyles(){if(!this.scrollbarV||!this.rows||!this.rows.length)return null;const e={position:"absolute"};return y(e,0,this.rowHeightsCache.query(this.rows.length-1)),e}hideIndicator(){setTimeout(()=>this.loadingIndicator=!1,500)}updateIndexes(){let e=0,t=0;if(this.scrollbarV)if(this.virtualization){const r=parseInt(this.bodyHeight,0);e=this.rowHeightsCache.getRowIndex(this.offsetY),t=this.rowHeightsCache.getRowIndex(r+this.offsetY)+1}else e=0,t=this.rowCount;else this.externalPaging||(e=Math.max(this.offset*this.pageSize,0)),t=Math.min(e+this.pageSize,this.rowCount);this.indexes={first:e,last:t}}refreshRowHeightCache(){!this.scrollbarV||this.scrollbarV&&!this.virtualization||(this.rowHeightsCache.clearCache(),this.rows&&this.rows.length&&this.rowHeightsCache.initCache({rows:this.rows,rowHeight:this.rowHeight,detailRowHeight:this.getDetailRowHeight,externalVirtual:this.scrollbarV&&this.externalPaging,rowCount:this.rowCount,rowIndexes:this.rowIndexes,rowExpansions:this.rowExpansions}))}getAdjustedViewPortIndex(){const e=this.indexes.first;return this.scrollbarV&&this.virtualization&&this.rowHeightsCache.query(e-1)<=this.offsetY?e-1:e}toggleRowExpansion(e){const t=this.getAdjustedViewPortIndex();let r=this.rowExpansions.get(e);if(this.scrollbarV&&this.virtualization){const i=this.getDetailRowHeight(e)*(r?-1:1),s=this.getRowIndex(e);this.rowHeightsCache.update(s,i)}r=r^=1,this.rowExpansions.set(e,r),this.detailToggle.emit({rows:[e],currentIndex:t})}toggleAllRows(e){this.rowExpansions.clear();const t=e?1:0,r=this.getAdjustedViewPortIndex();for(const i of this.rows)this.rowExpansions.set(i,t);this.scrollbarV&&this.recalcLayout(),this.detailToggle.emit({rows:this.rows,currentIndex:r})}recalcLayout(){this.refreshRowHeightCache(),this.updateIndexes(),this.updateRows()}columnTrackingFn(e,t){return t.$$id}stylesByGroup(e){const t=this.columnGroupWidths,r=this.offsetX,i={width:`${t[e]}px`};if("left"===e)y(i,r,0);else if("right"===e){const s=parseInt(this.innerWidth+"",0);y(i,-1*(t.total-s-r),0)}return i}getRowExpanded(e){if(0===this.rowExpansions.size&&this.groupExpansionDefault)for(const r of this.groupedRows)this.rowExpansions.set(r,1);return 1===this.rowExpansions.get(e)}getRowIndex(e){return this.rowIndexes.get(e)||0}onTreeAction(e){this.treeAction.emit({row:e})}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(n.ChangeDetectorRef))},o.\u0275cmp=n.\u0275\u0275defineComponent({type:o,selectors:[["datatable-body"]],viewQuery:function(e,t){if(1&e&&n.\u0275\u0275viewQuery(K,5),2&e){let r;n.\u0275\u0275queryRefresh(r=n.\u0275\u0275loadQuery())&&(t.scroller=r.first)}},hostAttrs:[1,"datatable-body"],hostVars:4,hostBindings:function(e,t){2&e&&n.\u0275\u0275styleProp("width",t.bodyWidth)("height",t.bodyHeight)},inputs:{selected:"selected",pageSize:"pageSize",rows:"rows",columns:"columns",offset:"offset",rowCount:"rowCount",bodyHeight:"bodyHeight",offsetX:"offsetX",loadingIndicator:"loadingIndicator",scrollbarV:"scrollbarV",scrollbarH:"scrollbarH",externalPaging:"externalPaging",rowHeight:"rowHeight",emptyMessage:"emptyMessage",selectionType:"selectionType",rowIdentity:"rowIdentity",rowDetail:"rowDetail",groupHeader:"groupHeader",selectCheck:"selectCheck",displayCheck:"displayCheck",trackByProp:"trackByProp",rowClass:"rowClass",groupedRows:"groupedRows",groupExpansionDefault:"groupExpansionDefault",innerWidth:"innerWidth",groupRowsBy:"groupRowsBy",virtualization:"virtualization",summaryRow:"summaryRow",summaryPosition:"summaryPosition",summaryHeight:"summaryHeight"},outputs:{scroll:"scroll",page:"page",activate:"activate",select:"select",detailToggle:"detailToggle",rowContextmenu:"rowContextmenu",treeAction:"treeAction"},decls:5,vars:9,consts:[[3,"selected","rows","selectCheck","selectEnabled","selectionType","rowIdentity","select","activate"],["selector",""],[4,"ngIf"],[3,"scrollbarV","scrollbarH","scrollHeight","scrollWidth","scroll",4,"ngIf"],["class","empty-row",3,"innerHTML",4,"ngIf"],[3,"scrollbarV","scrollbarH","scrollHeight","scrollWidth","scroll"],[3,"rowHeight","offsetX","innerWidth","rows","columns",4,"ngIf"],[3,"groupedRows","innerWidth","ngStyle","rowDetail","groupHeader","offsetX","detailRowHeight","row","expanded","rowIndex","rowContextmenu",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle","rowHeight","offsetX","innerWidth","rows","columns",4,"ngIf"],[3,"rowHeight","offsetX","innerWidth","rows","columns"],[3,"groupedRows","innerWidth","ngStyle","rowDetail","groupHeader","offsetX","detailRowHeight","row","expanded","rowIndex","rowContextmenu"],["tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","rowIndex","expanded","rowClass","displayCheck","treeStatus","treeAction","activate",4,"ngIf","ngIfElse"],["groupedRowsTemplate",""],["tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","rowIndex","expanded","rowClass","displayCheck","treeStatus","treeAction","activate"],["tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","group","rowIndex","expanded","rowClass","activate",4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","group","rowIndex","expanded","rowClass","activate"],[3,"ngStyle","rowHeight","offsetX","innerWidth","rows","columns"],[1,"empty-row",3,"innerHTML"]],template:function(e,t){1&e&&(n.\u0275\u0275elementStart(0,"datatable-selection",0,1),n.\u0275\u0275listener("select",function(i){return t.select.emit(i)})("activate",function(i){return t.activate.emit(i)}),n.\u0275\u0275template(2,he,1,0,"datatable-progress",2),n.\u0275\u0275template(3,_e,4,8,"datatable-scroller",3),n.\u0275\u0275template(4,ye,1,1,"div",4),n.\u0275\u0275elementEnd()),2&e&&(n.\u0275\u0275property("selected",t.selected)("rows",t.rows)("selectCheck",t.selectCheck)("selectEnabled",t.selectEnabled)("selectionType",t.selectionType)("rowIdentity",t.rowIdentity),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",t.loadingIndicator),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",null==t.rows?null:t.rows.length),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!(null!=t.rows&&t.rows.length||t.loadingIndicator)))},dependencies:function(){return[g.sg,g.O5,g.PC,K,qt,ae,Kt,Jt,nn]},encapsulation:2,changeDetection:0}),o})(),re=(()=>{class o{constructor(e){this.cd=e,this.sort=new n.EventEmitter,this.reorder=new n.EventEmitter,this.resize=new n.EventEmitter,this.select=new n.EventEmitter,this.columnContextmenu=new n.EventEmitter(!1),this._columnGroupWidths={total:100},this._styleByGroup={left:{},center:{},right:{}}}set innerWidth(e){this._innerWidth=e,setTimeout(()=>{if(this._columns){const t=x(this._columns);this._columnGroupWidths=S(t,this._columns),this.setStylesByGroup()}})}get innerWidth(){return this._innerWidth}set headerHeight(e){this._headerHeight="auto"!==e?`${e}px`:e}get headerHeight(){return this._headerHeight}set columns(e){this._columns=e;const t=x(e);this._columnsByPin=ee(e),setTimeout(()=>{this._columnGroupWidths=S(t,e),this.setStylesByGroup()})}get columns(){return this._columns}set offsetX(e){this._offsetX=e,this.setStylesByGroup()}get offsetX(){return this._offsetX}onLongPressStart({event:e,model:t}){t.dragging=!0,this.dragEventTarget=e}onLongPressEnd({event:e,model:t}){this.dragEventTarget=e,setTimeout(()=>{const r=this._columns.find(i=>i.$$id===t.$$id);r&&(r.dragging=!1)},5)}get headerWidth(){return this.scrollbarH?this.innerWidth+"px":"100%"}trackByGroups(e,t){return t.type}columnTrackingFn(e,t){return t.$$id}onColumnResized(e,t){e<=t.minWidth?e=t.minWidth:e>=t.maxWidth&&(e=t.maxWidth),this.resize.emit({column:t,prevValue:t.width,newValue:e})}onColumnReordered({prevIndex:e,newIndex:t,model:r}){const i=this.getColumn(t);i.isTarget=!1,i.targetMarkerContext=void 0,this.reorder.emit({column:r,prevValue:e,newValue:t})}onTargetChanged({prevIndex:e,newIndex:t,initialIndex:r}){if(e||0===e){const i=this.getColumn(e);i.isTarget=!1,i.targetMarkerContext=void 0}if(t||0===t){const i=this.getColumn(t);i.isTarget=!0,r!==t&&(i.targetMarkerContext={class:"targetMarker ".concat(r>t?"dragFromRight":"dragFromLeft")})}}getColumn(e){const t=this._columnsByPin[0].columns.length;if(e<t)return this._columnsByPin[0].columns[e];const r=this._columnsByPin[1].columns.length;return e<t+r?this._columnsByPin[1].columns[e-t]:this._columnsByPin[2].columns[e-t-r]}onSort({column:e,prevValue:t,newValue:r}){if(e.dragging)return;const i=this.calcNewSorts(e,t,r);this.sort.emit({sorts:i,column:e,prevValue:t,newValue:r})}calcNewSorts(e,t,r){let i=0;this.sorts||(this.sorts=[]);const s=this.sorts.map((l,c)=>((l=Object.assign({},l)).prop===e.prop&&(i=c),l));return void 0===r?s.splice(i,1):t?s[i].dir=r:(this.sortType===I.single&&s.splice(0,this.sorts.length),s.push({dir:r,prop:e.prop})),s}
1setStylesByGroup(){this._styleByGroup.left=this.calcStylesByGroup("left"),this._styleByGroup.center=this.calcStylesByGroup("center"),this._styleByGroup.right=this.calcStylesByGroup("right"),this.cd.detectChanges()}calcStylesByGroup(e){const t=this._columnGroupWidths,i={width:`${t[e]}px`};return"center"===e?y(i,-1*this.offsetX,0):"right"===e&&y(i,-1*(t.total-this.innerWidth),0),i}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(n.ChangeDetectorRef))},o.\u0275cmp=n.\u0275\u0275defineComponent({type:o,selectors:[["datatable-header"]],hostAttrs:[1,"datatable-header"],hostVars:4,hostBindings:function(e,t){2&e&&n.\u0275\u0275styleProp("height",t.headerHeight)("width",t.headerWidth)},inputs:{innerWidth:"innerWidth",headerHeight:"headerHeight",columns:"columns",offsetX:"offsetX",sorts:"sorts",sortAscendingIcon:"sortAscendingIcon",sortDescendingIcon:"sortDescendingIcon",scrollbarH:"scrollbarH",dealsWithGroup:"dealsWithGroup",targetMarkerTemplate:"targetMarkerTemplate",sortType:"sortType",allRowsSelected:"allRowsSelected",selectionType:"selectionType",reorderable:"reorderable"},outputs:{sort:"sort",reorder:"reorder",resize:"resize",select:"select",columnContextmenu:"columnContextmenu"},decls:2,vars:4,consts:[["orderable","",1,"datatable-header-inner",3,"reorder","targetChanged"],[3,"class","ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle"],["resizeable","","long-press","","draggable","",3,"resizeEnabled","pressModel","pressEnabled","dragX","dragY","dragModel","dragEventTarget","headerHeight","isTarget","targetMarkerTemplate","targetMarkerContext","column","sortType","sorts","selectionType","sortAscendingIcon","sortDescendingIcon","allRowsSelected","resize","longPressStart","longPressEnd","sort","select","columnContextmenu",4,"ngFor","ngForOf","ngForTrackBy"],["resizeable","","long-press","","draggable","",3,"resizeEnabled","pressModel","pressEnabled","dragX","dragY","dragModel","dragEventTarget","headerHeight","isTarget","targetMarkerTemplate","targetMarkerContext","column","sortType","sorts","selectionType","sortAscendingIcon","sortDescendingIcon","allRowsSelected","resize","longPressStart","longPressEnd","sort","select","columnContextmenu"]],template:function(e,t){1&e&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275listener("reorder",function(i){return t.onColumnReordered(i)})("targetChanged",function(i){return t.onTargetChanged(i)}),n.\u0275\u0275template(1,xe,2,5,"div",1),n.\u0275\u0275elementEnd()),2&e&&(n.\u0275\u0275styleProp("width",t._columnGroupWidths.total,"px"),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",t._columnsByPin)("ngForTrackBy",t.trackByGroups))},dependencies:function(){return[g.sg,g.PC,q,dt,ut,ht,Qt]},encapsulation:2,changeDetection:0}),o})();function Bt(o,a,e){e=e||{};let t,r,i,s=null,l=0;function c(){l=!1===e.leading?0:+new Date,s=null,i=o.apply(t,r)}return function(){const d=+new Date;!l&&!1===e.leading&&(l=d);const h=a-(d-l);return t=this,r=arguments,h<=0?(clearTimeout(s),s=null,l=d,i=o.apply(t,r)):!s&&!1!==e.trailing&&(s=setTimeout(c,h)),i}}function zt(o,a){return function(t,r,i){return{configurable:!0,enumerable:i.enumerable,get:function(){return Object.defineProperty(this,r,{configurable:!0,enumerable:i.enumerable,value:Bt(i.value,o,a)}),this[r]}}}}function Xt(o,a){for(const e of a){const t=o.indexOf(e);o.splice(t,1)}}function ie(o,a=300){let e=0;for(const t of o)e+=t.width||a;return e}const b_asc="asc",b_desc="desc";function Lt(o,a){if((null===o||typeof o>"u")&&(o=0),(null===a||typeof a>"u")&&(a=0),o instanceof Date&&a instanceof Date){if(o<a)return-1;if(o>a)return 1}else if(isNaN(parseFloat(o))||!isFinite(o)||isNaN(parseFloat(a))||!isFinite(a)){if(o=String(o),a=String(a),o.toLowerCase()<a.toLowerCase())return-1;if(o.toLowerCase()>a.toLowerCase())return 1}else{if(parseFloat(o)<parseFloat(a))return-1;if(parseFloat(o)>parseFloat(a))return 1}return 0}let $t=(()=>{class o{constructor(e,t,r,i,s,l,c){this.scrollbarHelper=e,this.dimensionsHelper=t,this.cd=r,this.columnChangesService=l,this.configuration=c,this.selected=[],this.scrollbarV=!1,this.scrollbarH=!1,this.rowHeight=30,this.columnMode=H.standard,this.headerHeight=30,this.footerHeight=0,this.externalPaging=!1,this.externalSorting=!1,this.loadingIndicator=!1,this.reorderable=!0,this.swapColumns=!0,this.sortType=I.single,this.sorts=[],this.cssClasse
1s={sortAscending:"datatable-icon-up",sortDescending:"datatable-icon-down",pagerLeftArrow:"datatable-icon-left",pagerRightArrow:"datatable-icon-right",pagerPrevious:"datatable-icon-prev",pagerNext:"datatable-icon-skip"},this.messages={emptyMessage:"No data to display",totalMessage:"total",selectedMessage:"selected"},this.groupExpansionDefault=!1,this.selectAllRowsOnPage=!1,this.virtualization=!0,this.summaryRow=!1,this.summaryHeight=30,this.summaryPosition="top",this.scroll=new n.EventEmitter,this.activate=new n.EventEmitter,this.select=new n.EventEmitter,this.sort=new n.EventEmitter,this.page=new n.EventEmitter,this.reorder=new n.EventEmitter,this.resize=new n.EventEmitter,this.tableContextmenu=new n.EventEmitter(!1),this.treeAction=new n.EventEmitter,this.rowCount=0,this._offsetX=new ce.X(0),this._count=0,this._offset=0,this._subscriptions=[],this.rowIdentity=d=>d,this.element=i.nativeElement,this.rowDiffer=s.find({}).create(),this.configuration&&this.configuration.messages&&(this.messages=Object.assign({},this.configuration.messages))}set rows(e){this._rows=e,e&&(this._internalRows=[...e]),this.externalSorting||this.sortInternalRows(),this._internalRows=O(this._internalRows,T(this.treeFromRelation),T(this.treeToRelation)),this.recalculate(),this._rows&&this._groupRowsBy&&(this.groupedRows=this.groupArrayBy(this._rows,this._groupRowsBy)),this.cd.markForCheck()}get rows(){return this._rows}set groupRowsBy(e){e&&(this._groupRowsBy=e,this._rows&&this._groupRowsBy&&(this.groupedRows=this.groupArrayBy(this._rows,this._groupRowsBy)))}get groupRowsBy(){return this._groupRowsBy}set columns(e){e&&(this._internalColumns=[...e],Z(this._internalColumns),this.recalculateColumns()),this._columns=e}get columns(){return this._columns}set limit(e){this._limit=e,this.recalculate()}get limit(){return this._limit}set count(e){this._count=e,this.recalculate()}get count(){return this._count}set offset(e){this._offset=e}get offset(){return Math.max(Math.min(this._offset,Math.ceil(this.rowCount/this.pageSize)-1),0)}get isFixedHeader(){const e=this.headerHeight;return"string"!=typeof e||"auto"!==e}get isFixedRow(){return"auto"!==this.rowHeight}get isVertScroll(){return this.scrollbarV}get isVirtualized(){return this.virtualization}get isHorScroll(){return this.scrollbarH}get isSelectable(){return void 0!==this.selectionType}get isCheckboxSelection(){return"checkbox"===this.selectionType}get isCellSelection(){return"cell"===this.selectionType}get isSingleSelection(){return"single"===this.selectionType}get isMultiSelection(){return"multi"===this.selectionType}get isMultiClickSelection(){return"multiClick"===this.selectionType}set columnTemplates(e){this._columnTemplates=e,this.translateColumns(e)}get columnTemplates(){return this._columnTemplates}get allRowsSelected(){let e=this.rows&&this.selected&&this.selected.length===this.rows.length;if(this.selectAllRowsOnPage){const t=this.bodyComponent.indexes;e=this.selected.length===t.last-t.first}return this.selected&&this.rows&&0!==this.rows.length&&e}ngOnInit(){this.recalculate()}ngAfterViewInit(){this.externalSorting||this.sortInternalRows(),!(typeof requestAnimationFrame>"u")&&requestAnimationFrame(()=>{this.recalculate(),this.externalPaging&&this.scrollbarV&&this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:0})})}ngAfterContentInit(){this.columnTemplates.changes.subscribe(e=>this.translateColumns(e)),this.listenForColumnInputChanges()}translateColumns(e){if(e){const t=e.toArray();t.length&&(this._internalColumns=function Ct(o){const a=[];for(const e of o){const t={},r=Object.getOwnPropertyNames(e);for(const i of r)t[i]=e[i];e.headerTemplate&&(t.headerTemplate=e.headerTemplate),e.cellTemplate&&(t.cellTemplate=e.cellTemplate),e.summaryFunc&&(t.summaryFunc=e.summaryFunc),e.summaryTemplate&&(t.summaryTemplate=e.summaryTemplate),a.push(t)}return a}(t),Z(this._internalColumns),this.recalculateColumns(),this.sortInternalRows(),this.cd.markForCheck())}}groupArrayBy(e,t){const r=new Map;return e.forEach(l=>{const c=l[t];r.has(c)?r.get(c).push(l):r.set(c,[l])}),Array.from(r,l=>((l,c)=>({key:l,value:c}))(l[0],l[1]))}ngDoCheck(){this.rowDiffer.diff(this.rows)&&(this.externalSorting?this._internalRows=[...this.rows]:this.sortInternalRows(),this._internalRows=O(this._internalRows,T(this.treeFromRelation),T(this.treeToRelation)),this.recalculatePages(),this.cd.markForCheck())}recalculate(){this.recalculateDims(),this.recalculateColumns()}onWindowResize(){this.recalculate()}recalculateColumns(e=this._internalColumns,t=-1,r=this.scrollbarH){if(!e)return;let i=this._innerWidth;return this.scrollbarV&&(i-=this.scrollbarHelper.width),this.columnMode===H.force?function Ot(o,a,e,t,r=300){const i=o.slice(e+1,o.length).filter(u=>!1!==u.canAutoResize);for(const u of i)u.$$oldWidth||(u.$$oldWidth=u.width);let s=0,l=!1,c=ie(o,r),d=a-c;const h=[];do{s=d/i.length,l=c>=a;for(const u of i){if(l&&t)u.width=u.$$oldWidth||u.width||r;else{const f=(u.width||r)+s;u.minWidth&&f<u.minWidth?(u.width=u.minWidth,h.push(u)):u.maxWidth&&f>u.maxWidth?(u.width=u.maxWidth,h.push(u)):u.width=f}u.width=Math.max(0,u.width)}c=ie(o),d=a-c,Xt(i,h)}while(d>1&&0!==i.length)}(e,i,t,r):this.columnMode===H.flex&&function At(o,a){const e=function It(o,a){let e=0;for(const t of o)e+=a&&t[a]?t[a]:t.width;return e}(o),t=function Wt(o){let a=0;for(const e of o)a+=e.flexGrow||0;return a}(o),r=x(o);e!==a&&function Vt(o,a,e){for(const i in o)for(const s of o[i])s.canAutoResize?s.width=0:(a-=s.width,e-=s.flexGrow?s.flexGrow:0);const t={};let r=a;do{const i=r/e;r=0;for(const s in o)for(const l of o[s])if(l.canAutoResize&&!t[l.prop]){const c=l.width+l.flexGrow*i;void 0!==l.minWidth&&c<l.minWidth?(r+=c-l.minWidth,l.width=l.minWidth,t[l.prop]=!0):l.width=c}}while(0!==r)}(r,a,t)}(e,i),e}recalculateDims(){const e=this.dimensionsHelper.getDimensions(this.element);if(this._innerWidth=Math.floor(e.width),this.scrollbarV){let t=e.height;this.headerHeight&&(t-=this.headerHeight),this.footerHeight&&(t-=this.footerHeight),this.bodyHeight=t}this.recalculatePages()}recalculatePages(){this.pageSize=this.calcPageSize(),this.rowCount=this.calcRowCount()}onBodyPage({offset:e}){this.externalPaging&&!this.virtualization||(this.offset=e,this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:this.offset}))}onBodyScroll(e){this._offsetX.next(e.offsetX),this.scroll.emit(e),this.cd.detectChanges()}onFooterPage(e){this.offset=e.page-1,this.bodyComponent.updateOffsetY(this.offset),this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:this.offset}),this.selectAllRowsOnPage&&(this.selected=[],this.select.emit({selected:this.selected}))}calcPageSize(e=this.rows){if(this.scrollbarV&&this.virtualization){const t=Math.ceil(this.bodyHeight/this.rowHeight);return Math.max(t,0)}return void 0!==this.limit?this.limit:e?e.length:0}calcRowCount(e=this.rows){return this.externalPaging?this.count:e?this.groupedRows?this.groupedRows.length:null!=this.treeFromRelation&&null!=this.treeToRelation?this._internalRows.length:e.length:0}onColumnContextmenu({event:e,column:t}){this.tableContextmenu.emit({event:e,type:"header",content:t})}onRowContextmenu({event:e,row:t}){this.tableContextmenu.emit({event:e,type:"body",content:t})}onColumnResize({column:e,newValue:t}
1){if(void 0===e)return;let r;const i=this._internalColumns.map((s,l)=>((s=Object.assign({},s)).$$id===e.$$id&&(r=l,s.width=t,s.$$oldWidth=t),s));this.recalculateColumns(i,r),this._internalColumns=i,this.resize.emit({column:e,newValue:t})}onColumnReorder({column:e,newValue:t,prevValue:r}){const i=this._internalColumns.map(s=>Object.assign({},s));if(this.swapColumns){const s=i[t];i[t]=e,i[r]=s}else if(t>r){const s=i[r];for(let l=r;l<t;l++)i[l]=i[l+1];i[t]=s}else{const s=i[r];for(let l=r;l>t;l--)i[l]=i[l-1];i[t]=s}this._internalColumns=i,this.reorder.emit({column:e,newValue:t,prevValue:r})}onColumnSort(e){this.selectAllRowsOnPage&&(this.selected=[],this.select.emit({selected:this.selected})),this.sorts=e.sorts,!1===this.externalSorting&&this.sortInternalRows(),this._internalRows=O(this._internalRows,T(this.treeFromRelation),T(this.treeToRelation)),this.offset=0,this.bodyComponent.updateOffsetY(this.offset),this.sort.emit(e)}onHeaderSelect(e){if(this.selectAllRowsOnPage){const t=this.bodyComponent.indexes.first,r=this.bodyComponent.indexes.last,i=this.selected.length===r-t;this.selected=[],i||this.selected.push(...this._internalRows.slice(t,r))}else{const t=this.selected.length===this.rows.length;this.selected=[],t||this.selected.push(...this.rows)}this.select.emit({selected:this.selected})}onBodySelect(e){this.select.emit(e)}onTreeAction(e){const t=e.row,r=this._rows.findIndex(i=>i[this.treeToRelation]===e.row[this.treeToRelation]);this.treeAction.emit({row:t,rowIndex:r})}ngOnDestroy(){this._subscriptions.forEach(e=>e.unsubscribe())}listenForColumnInputChanges(){this._subscriptions.push(this.columnChangesService.columnInputChanges$.subscribe(()=>{this.columnTemplates&&this.columnTemplates.notifyOnChanges()}))}sortInternalRows(){this._internalRows=function jt(o,a,e){if(!o)return[];if(!e||!e.length||!a)return[...o];const t=new Map;o.forEach((l,c)=>t.set(l,c));const r=[...o],i=a.reduce((l,c)=>(c.comparator&&"function"==typeof c.comparator&&(l[c.prop]=c.comparator),l),{}),s=e.map(l=>{const c=l.prop;return{prop:c,dir:l.dir,valueGetter:V(c),compareFn:i[c]||Lt}});return r.sort(function(l,c){for(const d of s){const{prop:h,valueGetter:m}=d,u=m(l,h),f=m(c,h),_=d.dir!==b_desc?d.compareFn(u,f,l,c,d.dir):-d.compareFn(u,f,l,c,d.dir);if(0!==_)return _}return t.has(l)&&t.has(c)?t.get(l)<t.get(c)?-1:1:0})}(this._internalRows,this._internalColumns,this.sorts)}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(W,4),n.\u0275\u0275directiveInject(Y,4),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(A),n.\u0275\u0275directiveInject("configuration",8))},o.\u0275cmp=n.\u0275\u0275defineComponent({type:o,selectors:[["ngx-datatable"]],contentQueries:function(e,t,r){if(1&e&&(n.\u0275\u0275contentQuery(r,Rt,5),n.\u0275\u0275contentQuery(r,gt,5),n.\u0275\u0275contentQuery(r,Ht,5),n.\u0275\u0275contentQuery(r,Dt,4)),2&e){let i;n.\u0275\u0275queryRefresh(i=n.\u0275\u0275loadQuery())&&(t.rowDetail=i.first),n.\u0275\u0275queryRefresh(i=n.\u0275\u0275loadQuery())&&(t.groupHeader=i.first),n.\u0275\u0275queryRefresh(i=n.\u0275\u0275loadQuery())&&(t.footer=i.first),n.\u0275\u0275queryRefresh(i=n.\u0275\u0275loadQuery())&&(t.columnTemplates=i)}},viewQuery:function(e,t){if(1&e&&(n.\u0275\u0275viewQuery(oe,5),n.\u0275\u0275viewQuery(re,5)),2&e){let r;n.\u0275\u0275queryRefresh(r=n.\u0275\u0275loadQuery())&&(t.bodyComponent=r.first),n.\u0275\u0275queryRefresh(r=n.\u0275\u0275loadQuery())&&(t.headerComponent=r.first)}},hostAttrs:[1,"ngx-datatable"],hostVars:22,hostBindings:function(e,t){1&e&&n.\u0275\u0275listener("resize",function(){return t.onWindowResize()},!1,n.\u0275\u0275resolveWindow),2&e&&n.\u0275\u0275classProp("fixed-header",t.isFixedHeader)("fixed-row",t.isFixedRow)("scroll-vertical",t.isVertScroll)("virtualized",t.isVirtualized)("scroll-horz",t.isHorScroll)("selectable",t.isSelectable)("checkbox-selection",t.isCheckboxSelection)("cell-selection",t.isCellSelection)("single-selection",t.isSingleSelection)("multi-selection",t.isMultiSelection)("multi-click-selection",t.isMultiClickSelection)},inputs:{selected:"selected",scrollbarV:"scrollbarV",scrollbarH:"scrollbarH",rowHeight:"rowHeight",columnMode:"columnMode",headerHeight:"headerHeight",footerHeight:"footerHeight",externalPaging:"externalPaging",externalSorting:"externalSorting",loadingIndicator:"loadingIndicator",reorderable:"reorderable",swapColumns:"swapColumns",sortType:"sortType",sorts:"sorts",cssClasse
1s:"cssClasses",messages:"messages",groupExpansionDefault:"groupExpansionDefault",selectAllRowsOnPage:"selectAllRowsOnPage",virtualization:"virtualization",summaryRow:"summaryRow",summaryHeight:"summaryHeight",summaryPosition:"summaryPosition",rowIdentity:"rowIdentity",rows:"rows",groupedRows:"groupedRows",groupRowsBy:"groupRowsBy",columns:"columns",limit:"limit",count:"count",offset:"offset",targetMarkerTemplate:"targetMarkerTemplate",selectionType:"selectionType",rowClass:"rowClass",selectCheck:"selectCheck",displayCheck:"displayCheck",trackByProp:"trackByProp",treeFromRelation:"treeFromRelation",treeToRelation:"treeToRelation"},outputs:{scroll:"scroll",activate:"activate",select:"select",sort:"sort",page:"page",reorder:"reorder",resize:"resize",tableContextmenu:"tableContextmenu",treeAction:"treeAction"},decls:5,vars:34,consts:[["visibilityObserver","",3,"visible"],[3,"sorts","sortType","scrollbarH","innerWidth","offsetX","dealsWithGroup","columns","headerHeight","reorderable","targetMarkerTemplate","sortAscendingIcon","sortDescendingIcon","allRowsSelected","selectionType","sort","resize","reorder","select","columnContextmenu",4,"ngIf"],[3,"groupRowsBy","groupedRows","rows","groupExpansionDefault","scrollbarV","scrollbarH","virtualization","loadingIndicator","externalPaging","rowHeight","rowCount","offset","trackByProp","columns","pageSize","offsetX","rowDetail","groupHeader","selected","innerWidth","bodyHeight","selectionType","emptyMessage","rowIdentity","rowClass","selectCheck","displayCheck","summaryRow","summaryHeight","summaryPosition","page","activate","rowContextmenu","select","scroll","treeAction"],[3,"rowCount","pageSize","offset","footerHeight","footerTemplate","totalMessage","pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","selectedCount","selectedMessage","pagerNextIcon","page",4,"ngIf"],[3,"sorts","sortType","scrollbarH","innerWidth","offsetX","dealsWithGroup","columns","headerHeight","reorderable","targetMarkerTemplate","sortAscendingIcon","sortDescendingIcon","allRowsSelected","selectionType","sort","resize","reorder","select","columnContextmenu"],[3,"rowCount","pageSize","offset","footerHeight","footerTemplate","totalMessage","pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","selectedCount","selectedMessage","pagerNextIcon","page"]],template:function(e,t){1&e&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275listener("visible",function(){return t.recalculate()}),n.\u0275\u0275template(1,ve,2,16,"datatable-header",1),n.\u0275\u0275elementStart(2,"datatable-body",2),n.\u0275\u0275listener("page",function(i){return t.onBodyPage(i)})("activate",function(i){return t.activate.emit(i)})("rowContextmenu",function(i){return t.onRowContextmenu(i)})("select",function(i){return t.onBodySelect(i)})("scroll",function(i){return t.onBodyScroll(i)})("treeAction",function(i){return t.onTreeAction(i)}),n.\u0275\u0275pipe(3,"async"),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(4,Te,1,12,"datatable-footer",3),n.\u0275\u0275elementEnd()),2&e&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",t.headerHeight),n.\u0275\u0275advance(1),n.\u0275\u0275property("groupRowsBy",t.groupRowsBy)("groupedRows",t.groupedRows)("rows",t._internalRows)("groupExpansionDefault",t.groupExpansionDefault)("scrollbarV",t.scrollbarV)("scrollbarH",t.scrollbarH)("virtualization",t.virtualization)("loadingIndicator",t.loadingIndicator)("externalPaging",t.externalPaging)("rowHeight",t.rowHeight)("rowCount",t.rowCount)("offset",t.offset)("trackByProp",t.trackByProp)("columns",t._internalColumns)("pageSize",t.pageSize)("offsetX",n.\u0275\u0275pipeBind1(3,32,t._offsetX))("rowDetail",t.rowDetail)("groupHeader",t.groupHeader)("selected",t.selected)("innerWidth",t._innerWidth)("bodyHeight",t.bodyHeight)("selectionType",t.selectionType)("emptyMessage",t.messages.emptyMessage)("rowIdentity",t.rowIdentity)("rowClass",t.rowClass)("selectCheck",t.selectCheck)("displayCheck",t.displayCheck)("summaryRow",t.summaryRow)("summaryHeight",t.summaryHeight)("summaryPosition",t.summaryPosition),n.\u0275\u0275advance(2),n.\u0275\u0275property("ngIf",t.footerHeight))},dependencies:function(){return[g.O5,ct,re,oe,Nt,g.Ov]},styles:[".ngx-datatable{display:block;overflow:hidden;justify-content:center;position:relative;
1-webkit-transform:translate3d(0,0,0)}.ngx-datatable [hidden]{display:none!important}.ngx-datatable *,.ngx-datatable :after,.ngx-datatable :before{box-sizing:border-box}.ngx-datatable.scroll-vertical .datatable-body{overflow-y:auto}.ngx-datatable.scroll-vertical.virtualized .datatable-body .datatable-row-wrapper{position:absolute}.ngx-datatable.scroll-horz .datatable-body{overflow-x:auto;-webkit-overflow-scrolling:touch}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner{white-space:nowrap}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner .datatable-header-cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ngx-datatable.fixed-row .datatable-scroll,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row{white-space:nowrap}.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-cell,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-group-cell{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ngx-datatable .datatable-body-row,.ngx-datatable .datatable-header-inner,.ngx-datatable .datatable-row-center{display:flex;flex-direction:row;-o-flex-flow:row;flex-flow:row}.ngx-datatable .datatable-body-cell,.ngx-datatable .datatable-header-cell{overflow-x:hidden;vertical-align:top;display:inline-block;line-height:1.625}.ngx-datatable .datatable-body-cell:focus,.ngx-datatable .datatable-header-cell:focus{outline:0}.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-right{z-index:9}.ngx-datatable .datatable-row-center,.ngx-datatable .datatable-row-group,.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-right{position:relative}.ngx-datatable .datatable-header{display:block;overflow:hidden}.ngx-datatable .datatable-header .datatable-header-inner{align-items:stretch;-webkit-align-items:stretch}.ngx-datatable .datatable-header .datatable-header-cell{position:relative;display:inline-block}.ngx-datatable .datatable-header .datatable-header-cell.sortable .datatable-header-cell-wrapper{cursor:pointer}.ngx-datatable .datatable-header .datatable-header-cell.longpress .datatable-header-cell-wrapper{cursor:move}.ngx-datatable .datatable-header .datatable-header-cell .sort-btn{line-height:100%;vertical-align:middle;display:inline-block;cursor:pointer}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell .resize-handle--not-resizable{display:inline-block;position:absolute;right:0;top:0;bottom:0;width:5px;padding:0 4px;visibility:hidden}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle{cursor:ew-resize}.ngx-datatable .datatable-header .datatable-header-cell.resizeable:hover .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell:hover .resize-handle--not-resizable{visibility:visible}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker{position:absolute;top:0;bottom:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromLeft{right:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromRight{left:0}.ngx-datatable .datatable-header .datatable-header-cell .datatable-header-cell-template-wrap{height:inherit}.ngx-datatable .datatable-body{position:relative;z-index:10;display:block}.ngx-datatable .datatable-body .datatable-scroll{display:inline-block}.ngx-datatable .datatable-body .datatable-row-detail{overflow-y:hidden}.ngx-datatable .datatable-body .datatable-row-wrapper{display:flex;flex-direction:column}.ngx-datatable .datatable-body .datatable-body-row{outline:0}.ngx-datatable .datatable-body .datatable-body-row>div{display:flex}.ngx-datatable .datatable-footer{display:block;width:100%;overflow:auto}.ngx-datatable .datatable-footer .datatable-footer-inner{display:flex;align-items:center;width:100%}.ngx-datatable .datatable-footer .selected-count .page-count{flex:1 1 40%}.ngx-datatable .datatable-footer .selected-count .datatable-pager{flex:1 1 60%}.ngx-datatable .datatable-footer .page-count{flex:1 1 20%}.ngx-datatable .datatable-footer .datatable-pager{flex:1 1 80%;text-align:right}.ngx-datatable .datatable-footer .datatable-pager .pager,.ngx-datatable .datatable-footer .datatable-pager .pager li{padding:0;margin:0;display:inline-block;list-style:none}.ngx-datatable .datatable-footer .datatable-pager .pager li,.ngx-datatable .datatable-footer .datatable-pager .pager li a{outline:0}.ngx-datatable .datatable-footer .datatable-pager .pager li a{cursor:pointer;display:inline-block}.ngx-datatable .datatable-footer .datatable-pager .pager li.disabled a{curs
1or:not-allowed}"],encapsulation:2,changeDetection:0}),function de(o,a,e,t){var s,r=arguments.length,i=r<3?a:null===t?t=Object.getOwnPropertyDescriptor(a,e):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(o,a,e,t);else for(var l=o.length-1;l>=0;l--)(s=o[l])&&(i=(r<3?s(i):r>3?s(a,e,i):s(a,e))||i);r>3&&i&&Object.defineProperty(a,e,i)}([zt(5),B("design:type",Function),B("design:paramtypes",[]),B("design:returntype",void 0)],o.prototype,"onWindowResize",null),o})(),Qt=(()=>{class o{constructor(e){this.cd=e,this.sort=new n.EventEmitter,this.select=new n.EventEmitter,this.columnContextmenu=new n.EventEmitter(!1),this.sortFn=this.onSort.bind(this),this.selectFn=this.select.emit.bind(this.select),this.cellContext={column:this.column,sortDir:this.sortDir,sortFn:this.sortFn,allRowsSelected:this.allRowsSelected,selectFn:this.selectFn}}set allRowsSelected(e){this._allRowsSelected=e,this.cellContext.allRowsSelected=e}get allRowsSelected(){return this._allRowsSelected}set column(e){this._column=e,this.cellContext.column=e,this.cd.markForCheck()}get column(){return this._column}set sorts(e){this._sorts=e,this.sortDir=this.calcSortDir(e),this.cellContext.sortDir=this.sortDir,this.sortClass=this.calcSortClass(this.sortDir),this.cd.markForCheck()}get sorts(){return this._sorts}get columnCssClasses(){let e="datatable-header-cell";if(this.column.sortable&&(e+=" sortable"),this.column.resizeable&&(e+=" resizeable"),this.column.headerClass)if("string"==typeof this.column.headerClass)e+=" "+this.column.headerClass;else if("function"==typeof this.column.headerClass){const r=this.column.headerClass({column:this.column});if("string"==typeof r)e+=r;else if("object"==typeof r){const i=Object.keys(r);for(const s of i)!0===r[s]&&(e+=` ${s}`)}}const t=this.sortDir;return t&&(e+=` sort-active sort-${t}`),e}get name(){return void 0===this.column.headerTemplate?this.column.name:void 0}get minWidth(){return this.column.minWidth}get maxWidth(){return this.column.maxWidth}get width(){return this.column.width}get isCheckboxable(){return this.column.checkboxable&&this.column.headerCheckboxable&&"checkbox"===this.selectionType}onContextmenu(e){this.columnContextmenu.emit({event:e,column:this.column})}calcSortDir(e){if(e&&this.column){const t=e.find(r=>r.prop===this.column.prop);if(t)return t.dir}}onSort(){if(!this.column.sortable)return;const e=function Gt(o,a){return o===I.single?a===b_asc?b_desc:b_asc:a?a===b_asc?b_desc:void 0:b_asc}(this.sortType,this.sortDir);this.sort.emit({column:this.column,prevValue:this.sortDir,newValue:e})}calcSortClass(e){return e===b_asc?`sort-btn sort-asc ${this.sortAscendingIcon}`:e===b_desc?`sort-btn sort-desc ${this.sortDescendingIcon}`:"sort-btn"}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(n.ChangeDetectorRef))},o.\u0275cmp=n.\u0275\u0275defineComponent({type:o,selectors:[["datatable-header-cell"]],hostAttrs:[1,"datatable-header-cell"],hostVars:11,hostBindings:function(e,t){1&e&&n.\u0275\u0275listener("contextmenu",function(i){return t.onContextmenu(i)}),2&e&&(n.\u0275\u0275attribute("title",t.name),n.\u0275\u0275classMap(t.columnCssClasses),n.\u0275\u0275styleProp("min-width",t.minWidth,"px")("max-width",t.maxWidth,"px")("width",t.width,"px")("height",t.headerHeight,"px"))},inputs:{allRowsSelected:"allRowsSelected",column:"column",sorts:"sorts",sortType:"sortType",sortAscendingIcon:"sortAscendingIcon",sortDescendingIcon:"sortDescendingIcon",isTarget:"isTarget",targetMarkerTemplate:"targetMarkerTemplate",targetMarkerContext:"targetMarkerContext",selectionType:"selectionType",headerHeight:"headerHeight"},outputs:{sort:"sort",select:"select",columnContextmenu:"columnContextmenu"},decls:6,vars:6,consts:[[1,"datatable-header-cell-template-wrap"],[4,"ngIf"],["class","datatable-checkbox",4,"ngIf"],["class","datatable-header-cell-wrapper",4,"ngIf"],[3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"datatable-checkbox"],["type","checkbox",3,"checked","change"],[1,"datatable-header-cell-wrapper"],[1,"datatable-header-cell-label","draggable",3,"innerHTML","click"]],template:function(e,t){1&e&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275template(1,Se,1,2,null,1),n.\u0275\u0275template(2,Re,2,1,"label",2),n.\u0275\u0275template(3,He,2,1,"span",3),n.\u0275\u0275template(4,Ee,1,2,null,1),n.\u0275\u0275elementStart(5,"span",4),n.\u0275\u0275listener("click",function(){return t.onSort()}),n.\u0275\u0275elementEnd()()),2&e&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",t.isTarget),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",t.isCheckboxable),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!t.column.headerTemplate),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",t.column.headerTemplate),n.\u0275\u0275advance(1),n.\u0275\u0275classMap(t.sortClass))},dependencies:[g.O5,g.tP],encapsulation:2,changeDetection:0}),o})(),Nt=(()=>{class o{constructor(){this.selectedCount=0,this.page=new n.EventEmitter}get isVisible(){return this.rowCount/this.pageSize>1}get curPage(){return this.offset+1}}return o.\u0275fac=function(e){return new(e||o)}
1,o.\u0275cmp=n.\u0275\u0275defineComponent({type:o,selectors:[["datatable-footer"]],hostAttrs:[1,"datatable-footer"],inputs:{selectedCount:"selectedCount",footerHeight:"footerHeight",rowCount:"rowCount",pageSize:"pageSize",offset:"offset",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon",totalMessage:"totalMessage",footerTemplate:"footerTemplate",selectedMessage:"selectedMessage"},outputs:{page:"page"},decls:4,vars:8,consts:[[1,"datatable-footer-inner",3,"ngClass"],[4,"ngIf"],["class","page-count",4,"ngIf"],[3,"pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","pagerNextIcon","page","size","count","hidden","change",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"page-count"],[3,"pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","pagerNextIcon","page","size","count","hidden","change"]],template:function(e,t){1&e&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275template(1,Me,1,8,null,1),n.\u0275\u0275template(2,Be,3,3,"div",2),n.\u0275\u0275template(3,ze,1,8,"datatable-pager",3),n.\u0275\u0275elementEnd()),2&e&&(n.\u0275\u0275styleProp("height",t.footerHeight,"px"),n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(6,We,t.selectedMessage)),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",t.footerTemplate),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!t.footerTemplate),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!t.footerTemplate))},dependencies:function(){return[g.mk,g.O5,g.tP,Yt]},encapsulation:2,changeDetection:0}),o})(),Yt=(()=>{class o{constructor(){this.change=new n.EventEmitter,this._count=0,this._page=1,this._size=0}set size(e){this._size=e,this.pages=this.calcPages()}get size(){return this._size}set count(e){this._count=e,this.pages=this.calcPages()}get count(){return this._count}set page(e){this._page=e,this.pages=this.calcPages()}get page(){return this._page}get totalPages(){const e=this.size<1?1:Math.ceil(this.count/this.size);return Math.max(e||0,1)}canPrevious(){return this.page>1}canNext(){return this.page<this.totalPages}prevPage(){this.selectPage(this.page-1)}nextPage(){this.selectPage(this.page+1)}selectPage(e){e>0&&e<=this.totalPages&&e!==this.page&&(this.page=e,this.change.emit({page:e}))}calcPages(e){const t=[];let r=1,i=this.totalPages;e=e||this.page,5<this.totalPages&&(r=e-Math.floor(2.5),i=e+Math.floor(2.5),r<1?(r=1,i=Math.min(r+5-1,this.totalPages)):i>this.totalPages&&(r=Math.max(this.totalPages-5+1,1),i=this.totalPages));for(let c=r;c<=i;c++)t.push({number:c,text:c});return t}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=n.\u0275\u0275defineComponent({type:o,selectors:[["datatable-pager"]],hostAttrs:[1,"datatable-pager"],inputs:{size:"size",count:"count",page:"page",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon"},outputs:{change:"change"},decls:14,vars:21,consts:[[1,"pager"],["role","button","aria-label","go to first page","href","javascript:void(0)",3,"click"],["role","button","aria-label","go to previous page","href","javascript:void(0)",3,"click"],["role","button","class","pages",3,"active",4,"ngFor","ngForOf"],["role","button","aria-label","go to next page","href","javascript:void(0)",3,"click"],["role","button","aria-label","go to last page","href","javascript:void(0)",3,"click"],["role","button",1,"pages"],["href","javascript:void(0)",3,"click"]],template:function(e,t){1&e&&(n.\u0275\u0275elementStart(0,"ul",0)(1,"li")(2,"a",1),n.\u0275\u0275listener("click",function(){return t.selectPage(1)}),n.\u0275\u0275element(3,"i"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(4,"li")(5,"a",2),n.\u0275\u0275listener("click",function(){return t.prevPage()}),n.\u0275\u0275element(6,"i"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275template(7,Ae,3,4,"li",3),n.\u0275\u0275elementStart(8,"li")(9,"a",4),n.\u0275\u0275listener("click",function(){return t.nextPage()}),n.\u0275\u0275element(10,"i"),n.\u0275\u0275elementEnd()(),n.\u0275\u0275elementStart(11,"li")(12,"a",5),n.\u0275\u0275listener("click",function(){return t.selectPage(t.totalPages)}),n.\u0275\u0275element(13,"i"),n.\u0275\u0275elementEnd()()()),2&e&&(n.\u0275\u0275advance(1),n.\u0275\u0275classProp("disabled",!t.canPrevious()),n.\u0275\u0275advance(2),n.\u0275\u0275classMap(t.pagerPreviousIcon),n.\u0275\u0275advance(1),n.\u0275\u0275classProp("disabled",!t.canPrevious()),n.\u0275\u0275advance(2),n.\u0275\u0275classMap(t.pagerLeftArrowIcon),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",t.pages),n.\u0275\u0275advance(1),n.\u0275\u0275classProp("disabled",!t.canNext()),n.\u0275\u0275advance(2),n.\u0275\u0275classMap(t.pagerRightArrowIcon),n.\u0275\u0275advance(1),n.\u0275\u0275classProp("disabled",!t.canNext()),n.\u0275\u0275advance(2),n.\u0275\u0275classMap(t.pagerNextIcon))},dependencies:[g.sg],encapsulation:2,changeDetection:0}),o})(),qt=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)}
1,o.\u0275cmp=n.\u0275\u0275defineComponent({type:o,selectors:[["datatable-progress"]],decls:3,vars:0,consts:[["role","progressbar",1,"progress-linear"],[1,"container"],[1,"bar"]],template:function(e,t){1&e&&(n.\u0275\u0275elementStart(0,"div",0)(1,"div",1),n.\u0275\u0275element(2,"div",2),n.\u0275\u0275elementEnd()())},encapsulation:2,changeDetection:0}),o})();const p={up:38,down:40,return:13,escape:27,left:37,right:39};p[p.up]="up",p[p.down]="down",p[p.return]="return",p[p.escape]="escape",p[p.left]="left",p[p.right]="right";let ae=(()=>{class o{constructor(e,t,r,i){this.differs=e,this.scrollbarHelper=t,this.cd=r,this.treeStatus="collapsed",this.activate=new n.EventEmitter,this.treeAction=new n.EventEmitter,this._groupStyles={left:{},center:{},right:{}},this._element=i.nativeElement,this._rowDiffer=e.find({}).create()}set columns(e){this._columns=e,this.recalculateColumns(e),this.buildStylesByGroup()}get columns(){return this._columns}set innerWidth(e){if(this._columns){const t=x(this._columns);this._columnGroupWidths=S(t,this._columns)}this._innerWidth=e,this.recalculateColumns(),this.buildStylesByGroup()}get innerWidth(){return this._innerWidth}set offsetX(e){this._offsetX=e,this.buildStylesByGroup()}get offsetX(){return this._offsetX}get cssClass(){let e="datatable-body-row";if(this.isSelected&&(e+=" active"),this.rowIndex%2!=0&&(e+=" datatable-row-odd"),this.rowIndex%2==0&&(e+=" datatable-row-even"),this.rowClass){const t=this.rowClass(this.row);if("string"==typeof t)e+=` ${t}`;else if("object"==typeof t){const r=Object.keys(t);for(const i of r)!0===t[i]&&(e+=` ${i}`)}}return e}get columnsTotalWidths(){return this._columnGroupWidths.total}ngDoCheck(){this._rowDiffer.diff(this.row)&&this.cd.markForCheck()}trackByGroups(e,t){return t.type}columnTrackingFn(e,t){return t.$$id}buildStylesByGroup(){this._groupStyles.left=this.calcStylesByGroup("left"),this._groupStyles.center=this.calcStylesByGroup("center"),this._groupStyles.right=this.calcStylesByGroup("right"),this.cd.markForCheck()}calcStylesByGroup(e){const t=this._columnGroupWidths,r=this.offsetX,i={width:`${t[e]}px`};if("left"===e)y(i,r,0);else if("right"===e){const s=parseInt(this.innerWidth+"",0);y(i,-1*(t.total-s-r+this.scrollbarHelper.width),0)}return i}onActivate(e,t){e.cellIndex=t,e.rowElement=this._element,this.activate.emit(e)}onKeyDown(e){const t=e.keyCode;(t===p.return||t===p.down||t===p.up||t===p.left||t===p.right)&&e.target===this._element&&(e.preventDefault(),e.stopPropagation(),this.activate.emit({type:"keydown",event:e,row:this.row,rowElement:this._element}))}onMouseenter(e){this.activate.emit({type:"mouseenter",event:e,row:this.row,rowElement:this._element})}recalculateColumns(e=this.columns){this._columns=e;const t=x(this._columns);this._columnsByPin=ee(this._columns),this._columnGroupWidths=S(t,this._columns)}onTreeAction(){this.treeAction.emit()}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(W,4),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(n.ElementRef))},o.\u0275cmp=n.\u0275\u0275defineComponent({type:o,selectors:[["datatable-body-row"]],hostVars:6,hostBindings:function(e,t){1&e&&n.\u0275\u0275listener("keydown",function(i){return t.onKeyDown(i)})("mouseenter",function(i){return t.onMouseenter(i)}),2&e&&(n.\u0275\u0275classMap(t.cssClass),n.\u0275\u0275styleProp("width",t.columnsTotalWidths,"px")("height",t.rowHeight,"px"))},inputs:{treeStatus:"treeStatus",columns:"columns",innerWidth:"innerWidth",offsetX:"offsetX",expanded:"expanded",rowClass:"rowClass",row:"row",group:"group",isSelected:"isSelected",rowIndex:"rowIndex",displayCheck:"displayCheck",rowHeight:"rowHeight"},outputs:{activate:"activate",treeAction:"treeAction"},decls:1,vars:2,consts:[[3,"class","ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle"],["tabindex","-1",3,"row","group","expanded","isSelected","rowIndex","column","rowHeight","displayCheck","treeStatus","activate","treeAction",4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","-1",3,"row","group","expanded","isSelected","rowIndex","column","rowHeight","displayCheck","treeStatus","activate","treeAction"]],template:function(e,t){1&e&&n.\u0275\u0275template(0,Oe,2,6,"div",0),2&e&&n.\u0275\u0275property("ngForOf",t._columnsByPin)("ngForTrackBy",t.trackByGroups)},dependencies:function(){return[g.sg,g.PC,Ut]},encapsulation:2,changeDetection:0}),o})(),Kt=(()=>{class o{constructor(e,t){this.cd=e,this.differs=t,this.rowContextmenu=new n.EventEmitter(!1),this.groupContext={group:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this.rowContext={row:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this._expanded=!1,this.rowDiffer=t.find({}).create()}set rowIndex(e){this._rowIndex=e,this.rowContext.rowIndex=e,this.groupContext.rowIndex=e,this.cd.markForCheck()}get rowIndex(){return this._rowIndex}set expanded(e){this._expanded=e,this.groupContext.expanded=e,this.rowContext.expanded=e,this.cd.markForCheck()}get expanded(){return this._expanded}ngDoCheck(){this.rowDiffer.diff(this.row)&&(this.rowContext.row=this.row,this.groupContext.group=this.row,this.cd.markForCheck())}onContextmenu(e){this.rowContextmenu.emit({event:e,row:this.row})}getGroupHeaderStyle(){const e={};return e.transform="translate3d("+this.offsetX+"px, 0px, 0px)",e["backface-visibility"]="hidden",e.width=this.innerWidth,e}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(n.KeyValueDiffers))},o.\u0275cmp=n.\u0275\u0275defineComponent({type:o,selectors:[["datatable-row-wrapper"]],hostAttrs:[1,"datatable-row-wrapper"],hostBindings:function(e,t){1&e&&n.\u0275\u0275listener("contextmenu",function(i){return t.onContextmenu(i)})},inputs:{rowIndex:"rowIndex",expanded:"expanded",innerWidth:"innerWidth",rowDetail:"rowDetail",groupHeader:"groupHeader",offsetX:"offsetX",detailRowHeight:"detailRowHeight",row:"row",groupedRows:"groupedRows"},outputs:{rowContextmenu:"rowContextmenu"},ngContentSelectors:z,decls:3,vars:3,consts:[["class","datatable-group-header",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","datatable-row-detail",3,"height",4,"ngIf"],[1,"datatable-group-header",3,"ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"datatable-row-detail"]],template:function(e,t){1&e&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,Le,2,2,"div",0),n.\u0275\u0275template(1,je,1,0,"ng-content",1),n.\u0275\u0275template(2,Ne,2,3,"div",2)),2&e&&(n.\u0275\u0275property("ngIf",t.groupHeader&&t.groupHeader.template),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",t.groupHeader&&t.groupHeader.template&&t.expanded||!t.groupHeader||!t.groupHeader.template),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",t.rowDetail&&t.rowDetail.template&&t.expanded))},dependencies:[g.O5,g.tP,g.PC],encapsulation:2,changeDetection:0}),o})(),Ut=(()=>{class o{constructor(e,t){this.cd=t,this.activate=new n.EventEmitter,this.treeAction=new n.EventEmitter,this.isFocused=!1,this.onCheckboxChangeFn=this.onCheckboxChange.bind(this),this.activateFn=this.activate.emit.bind(this.activate),this.cellContext={onCheckboxChangeFn:this.onCheckboxChangeFn,activateFn:this.activateFn,row:this.row,group:this.group,value:this.value,column:this.column,rowHeight:this.rowHeight,isSelected:this.isSelected,rowIndex:this.rowIndex,treeStatus:this.treeStatus,onTreeAction:this.onTreeAction.bind(this)},this._element=e.nativeElement}set group(e){this._group=e,this.cellContext.group=e,this.checkValueUpdates(),this.cd.markForCheck()}get group(){return this._group}set rowHeight(e){this._rowHeight=e,this.cellContext.rowHeight=e,this.checkValueUpdates(),this.cd.markForCheck()}get rowHeight(){return this._rowHeight}
1set isSelected(e){this._isSelected=e,this.cellContext.isSelected=e,this.cd.markForCheck()}get isSelected(){return this._isSelected}set expanded(e){this._expanded=e,this.cellContext.expanded=e,this.cd.markForCheck()}get expanded(){return this._expanded}set rowIndex(e){this._rowIndex=e,this.cellContext.rowIndex=e,this.checkValueUpdates(),this.cd.markForCheck()}get rowIndex(){return this._rowIndex}set column(e){this._column=e,this.cellContext.column=e,this.checkValueUpdates(),this.cd.markForCheck()}get column(){return this._column}set row(e){this._row=e,this.cellContext.row=e,this.checkValueUpdates(),this.cd.markForCheck()}get row(){return this._row}set sorts(e){this._sorts=e,this.calcSortDir=this.calcSortDir(e)}get sorts(){return this._sorts}set treeStatus(e){this._treeStatus="collapsed"!==e&&"expanded"!==e&&"loading"!==e&&"disabled"!==e?"collapsed":e,this.cellContext.treeStatus=this._treeStatus,this.checkValueUpdates(),this.cd.markForCheck()}get treeStatus(){return this._treeStatus}get columnCssClasses(){let e="datatable-body-cell";if(this.column.cellClass)if("string"==typeof this.column.cellClass)e+=" "+this.column.cellClass;else if("function"==typeof this.column.cellClass){const t=this.column.cellClass({row:this.row,group:this.group,column:this.column,value:this.value,rowHeight:this.rowHeight});if("string"==typeof t)e+=t;else if("object"==typeof t){const r=Object.keys(t);for(const i of r)!0===t[i]&&(e+=` ${i}`)}}return this.sortDir||(e+=" sort-active"),this.isFocused&&(e+=" active"),this.sortDir===b_asc&&(e+=" sort-asc"),this.sortDir===b_desc&&(e+=" sort-desc"),e}get width(){return this.column.width}get minWidth(){return this.column.minWidth}get maxWidth(){return this.column.maxWidth}get height(){const e=this.rowHeight;return isNaN(e)?e:e+"px"}ngDoCheck(){this.checkValueUpdates()}ngOnDestroy(){this.cellTemplate&&this.cellTemplate.clear()}checkValueUpdates(){let e="";if(this.row&&this.column){const t=this.column.$$valueGetter(this.row,this.column.prop),r=this.column.pipe;r?e=r.transform(t):void 0!==e&&(e=t)}else e="";this.value!==e&&(this.value=e,this.cellContext.value=e,this.sanitizedValue=null!=e?this.stripHtml(e):e,this.cd.markForCheck())}onFocus(){this.isFocused=!0}onBlur(){this.isFocused=!1}onClick(e){this.activate.emit({type:"click",event:e,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element})}onDblClick(e){this.activate.emit({type:"dblclick",event:e,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element})}onKeyDown(e){const t=e.keyCode;(t===p.return||t===p.down||t===p.up||t===p.left||t===p.right)&&e.target===this._element&&(e.preventDefault(),e.stopPropagation(),this.activate.emit({type:"keydown",event:e,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element}))}onCheckboxChange(e){this.activate.emit({type:"checkbox",event:e,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element,treeStatus:"collapsed"})}calcSortDir(e){if(!e)return;const t=e.find(r=>r.prop===this.column.prop);return t?t.dir:void 0}stripHtml(e){return e.replace?e.replace(/<\/?[^>]+(>|$)/g,""):e}onTreeAction(){this.treeAction.emit(this.row)}calcLeftMargin(e,t){return e.isTreeColumn?t.level*(null!=e.treeLevelIndent?e.treeLevelIndent:50):0}}return o.\u0275fac=function(e){return new(e||o)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef))},o.\u0275cmp=n.\u0275\u0275defineComponent({type:o,selectors:[["datatable-body-cell"]],viewQuery:function(e,t){if(1&e&&n.\u0275\u0275viewQuery(Ye,7,n.ViewContainerRef),2&e){let r;n.\u0275\u0275queryRefresh(r=n.\u0275\u0275loadQuery())&&(t.cellTemplate=r.first)}},hostVars:10,hostBindings:function(e,t){1&e&&n.\u0275\u0275listener("focus",function(){return t.onFocus()})("blur",function(){return t.onBlur()})("click",function(i){return t.onClick(i)})("dblclick",function(i){return t.onDblClick(i)})("keydown",function(i){return t.onKeyDown(i)}
1),2&e&&(n.\u0275\u0275classMap(t.columnCssClasses),n.\u0275\u0275styleProp("width",t.width,"px")("min-width",t.minWidth,"px")("max-width",t.maxWidth,"px")("height",t.height))},inputs:{group:"group",rowHeight:"rowHeight",isSelected:"isSelected",expanded:"expanded",rowIndex:"rowIndex",column:"column",row:"row",sorts:"sorts",treeStatus:"treeStatus",displayCheck:"displayCheck"},outputs:{activate:"activate",treeAction:"treeAction"},decls:5,vars:6,consts:[[1,"datatable-body-cell-label"],["class","datatable-checkbox",4,"ngIf"],[4,"ngIf"],[3,"title","innerHTML",4,"ngIf"],[1,"datatable-checkbox"],["type","checkbox",3,"checked","click"],["class","datatable-tree-button",3,"disabled","click",4,"ngIf"],[1,"datatable-tree-button",3,"disabled","click"],["class","icon datatable-icon-collapse",4,"ngIf"],["class","icon datatable-icon-up",4,"ngIf"],["class","icon datatable-icon-down",4,"ngIf"],[1,"icon","datatable-icon-collapse"],[1,"icon","datatable-icon-up"],[1,"icon","datatable-icon-down"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"title","innerHTML"],["cellTemplate",""]],template:function(e,t){1&e&&(n.\u0275\u0275elementStart(0,"div",0),n.\u0275\u0275template(1,qe,2,1,"label",1),n.\u0275\u0275template(2,ot,3,2,"ng-container",2),n.\u0275\u0275template(3,rt,1,2,"span",3),n.\u0275\u0275template(4,at,2,2,null,2),n.\u0275\u0275elementEnd()),2&e&&(n.\u0275\u0275styleProp("margin-left",t.calcLeftMargin(t.column,t.row),"px"),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",t.column.checkboxable&&(!t.displayCheck||t.displayCheck(t.row,t.column,t.value))),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",t.column.isTreeColumn),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",!t.column.cellTemplate),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",t.column.cellTemplate))},dependencies:[g.O5,g.tP],encapsulation:2,changeDetection:0}),o})();function j(o,a,e){const t=e(a,o);return t>-1?o.splice(t,1):o.push(a),o}let Jt=(()=>{class o{constructor(){this.activate=new n.EventEmitter,this.select=new n.EventEmitter}selectRow(e,t,r){if(!this.selectEnabled)return;const i="checkbox"===this.selectionType,l="multiClick"===this.selectionType;let c=[];c="multi"===this.selectionType||i||l?e.shiftKey?function Zt(o,a,e,t,r){const i=e<t;for(let s=0;s<a.length;s++){let h={start:0,end:0};h=i?{start:e,end:t}:{start:t,end:e+1},(i&&s<=t&&s>=e||!i&&s>=t&&s<=e)&&s>=h.start&&s<=h.end&&o.push(a[s])}return o}([],this.rows,t,this.prevIndex,this.getRowSelectedIdx.bind(this)):j(e.ctrlKey||e.metaKey||l||i?[...this.selected]:[],r,this.getRowSelectedIdx.bind(this)):j([],r,this.getRowSelectedIdx.bind(this)),"function"==typeof this.selectCheck&&(c=c.filter(this.selectCheck.bind(this))),this.selected.splice(0,this.selected.length),this.selected.push(...c),this.prevIndex=t,this.select.emit({selected:c})}onActivate(e,t){const{type:r,event:i,row:s}=e,l="checkbox"===this.selectionType;!l&&("click"===r||"dblclick"===r)||l&&"checkbox"===r?this.selectRow(i,t,s):"keydown"===r&&(i.keyCode===p.return?this.selectRow(i,t,s):this.onKeyboardFocus(e)),this.activate.emit(e)}onKeyboardFocus(e){const{keyCode:t}=e.event;if(t===p.up||t===p.down||t===p.right||t===p.left){const i="cell"===this.selectionType;e.cellElement&&i?i&&this.focusCell(e.cellElement,e.rowElement,t,e.cellIndex):this.focusRow(e.rowElement,t)}}focusRow(e,t){const r=this.getPrevNextRow(e,t);r&&r.focus()}getPrevNextRow(e,t){const r=e.parentElement;if(r){let i;if(t===p.up?i=r.previousElementSibling:t===p.down&&(i=r.nextElementSibling),i&&i.children.length)return i.children[0]}}focusCell(e,t,r,i){let s;if(r===p.left)s=e.previousElementSibling;else if(r===p.right)s=e.nextElementSibling;else if(r===p.up||r===p.down){const l=this.getPrevNextRow(t,r);if(l){const c=l.getElementsByClassName("datatable-body-cell");c.length&&(s=c[i])}}s&&s.focus()}getRowSelected(e){return this.getRowSelectedIdx(e,this.selected)>-1}getRowSelectedIdx(e,t){if(!t||!t.length)return-1;const r=this.rowIdentity(e);return t.findIndex(i=>this.rowIdentity(i)===r)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=n.\u0275\u0275defineComponent({type:o,selectors:[["datatable-selection"]],inputs:{rows:"rows",selected:"selected",selectEnabled:"selectEnabled",selectionType:"selectionType",rowIdentity:"rowIdentity",selectCheck:"selectCheck"},outputs:{activate:"activate",select:"select"},ngContentSelectors:z,decls:1,vars:0,template:function(e,t){1&e&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),o})();function en(o){const a=o.filter(e=>!!e);return!a.length||a.some(e=>"number"!=typeof e)?null:a.reduce((e,t)=>
1e+t)}function tn(o){return null}let nn=(()=>{class o{constructor(){this.summaryRow={}}ngOnChanges(){!this.columns||!this.rows||(this.updateInternalColumns(),this.updateValues())}updateInternalColumns(){this._internalColumns=this.columns.map(e=>Object.assign({},e,{cellTemplate:e.summaryTemplate}))}updateValues(){this.summaryRow={},this.columns.filter(e=>!e.summaryTemplate).forEach(e=>{const t=this.rows.map(i=>i[e.prop]),r=this.getSummaryFunction(e);this.summaryRow[e.prop]=e.pipe?e.pipe.transform(r(t)):r(t)})}getSummaryFunction(e){return void 0===e.summaryFunc?en:null===e.summaryFunc?tn:e.summaryFunc}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=n.\u0275\u0275defineComponent({type:o,selectors:[["datatable-summary-row"]],hostAttrs:[1,"datatable-summary-row"],inputs:{rows:"rows",columns:"columns",rowHeight:"rowHeight",offsetX:"offsetX",innerWidth:"innerWidth"},features:[n.\u0275\u0275NgOnChangesFeature],decls:1,vars:1,consts:[["tabindex","-1",3,"innerWidth","offsetX","columns","rowHeight","row","rowIndex",4,"ngIf"],["tabindex","-1",3,"innerWidth","offsetX","columns","rowHeight","row","rowIndex"]],template:function(e,t){1&e&&n.\u0275\u0275template(0,st,1,6,"datatable-body-row",0),2&e&&n.\u0275\u0275property("ngIf",t.summaryRow&&t._internalColumns)},dependencies:[g.O5,ae],encapsulation:2}),o})(),on=(()=>{class o{static forRoot(e){return{ngModule:o,providers:[{provide:"configuration",useValue:e}]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=n.\u0275\u0275defineNgModule({type:o}),o.\u0275inj=n.\u0275\u0275defineInjector({providers:[W,Y,A],imports:[g.ez]}),o})();typeof document<"u"&&!document.elementsFromPoint&&(document.elementsFromPoint=function rn(o,a){const e=[],t=[];let r,i,s;for(;(r=document.elementFromPoint(o,a))&&-1===e.indexOf(r)&&null!=r;)e.push(r),t.push({value:r.style.getPropertyValue("pointer-events"),priority:r.style.getPropertyPriority("pointer-events")}),r.style.setProperty("pointer-events","none","important");for(i=t.length;s=t[--i];)e[i].style.setProperty("pointer-events",s.value?s.value:"",s.priority);return e})}}]);
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.