dfs-page-config 0.0.97 → 0.0.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -56879,7 +56879,7 @@ const LX = /* @__PURE__ */ co(IX, [["render", MX]]), xX = (r) => {
56879
56879
  r.component(l.name, l);
56880
56880
  });
56881
56881
  }, HX = (r, a) => {
56882
- ["getters", "_actions"].forEach((l) => {
56882
+ ["state", "getters", "_actions"].forEach((l) => {
56883
56883
  Object.keys(rs[l]).forEach((c) => {
56884
56884
  a.store[l][c] = rs[l][c];
56885
56885
  });
@@ -1554,4 +1554,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1554
1554
  */var Ba=typeof Co>"u"?{}:Co;Ba.HTMLElement=typeof HTMLElement>"u"?{}:HTMLElement,Ba.HTMLButtonElement=typeof HTMLButtonElement>"u"?{}:HTMLButtonElement,Ba.HTMLSelectElement=typeof HTMLSelectElement>"u"?{}:HTMLSelectElement,Ba.HTMLInputElement=typeof HTMLInputElement>"u"?{}:HTMLInputElement,Ba.Node=typeof Node>"u"?{}:Node,Ba.MouseEvent=typeof MouseEvent>"u"?{}:MouseEvent;var BR=function(){for(var a=0,t=0,e=arguments.length;t<e;t++)a+=arguments[t].length;for(var n=Array(a),o=0,t=0;t<e;t++)for(var i=arguments[t],c=0,p=i.length;c<p;c++,o++)n[o]=i[c];return n},K7=function(){function a(t,e,n,o,i,c,p,v){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=e,this.eventService=n,this.columnModel=o,this.gridApi=i,this.columnApi=c,this.beans=v,this.selectionService=p,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=a.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return a.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingTreeData=this.gridOptionsWrapper.isTreeData(),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},a.prototype.getCopyOfNodesMap=function(){return xe.cloneObject(this.allNodesMap)},a.prototype.getRowNode=function(t){return this.allNodesMap[t]},a.prototype.setRowData=function(t){var e=this;if(typeof t=="string"){console.warn("AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first");return}var n=this.rootNode,o=this.rootNode.sibling;n.childrenAfterFilter=null,n.childrenAfterGroup=null,n.childrenAfterSort=null,n.childrenMapped=null,n.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?n.allLeafChildren=t.map(function(i){return e.createNode(i,e.rootNode,a.TOP_LEVEL)}):(n.allLeafChildren=[],n.childrenAfterGroup=[]),o&&(o.childrenAfterFilter=n.childrenAfterFilter,o.childrenAfterGroup=n.childrenAfterGroup,o.childrenAfterSort=n.childrenAfterSort,o.childrenMapped=n.childrenMapped,o.allLeafChildren=n.allLeafChildren)},a.prototype.updateRowData=function(t,e){var n={remove:[],update:[],add:[]},o=[];return this.executeRemove(t,n,o),this.executeUpdate(t,n,o),this.executeAdd(t,n),this.updateSelection(o),e&&xe.sortRowNodesByOrder(this.rootNode.allLeafChildren,e),n},a.prototype.updateSelection=function(t){var e=t.length>0;if(e&&t.forEach(function(o){o.setSelected(!1,!1,!0)}),this.selectionService.updateGroupsFromChildrenSelections(),e){var n={type:$.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},a.prototype.executeAdd=function(t,e){var n=this,o=t.add,i=t.addIndex;if(!xe.missingOrEmpty(o)){var c=o.map(function(N){return n.createNode(N,n.rootNode,a.TOP_LEVEL)}),p=typeof i=="number"&&i>=0;if(p){var v=this.rootNode.allLeafChildren,w=v.slice(0,i),O=v.slice(i,v.length);this.rootNode.allLeafChildren=BR(w,c,O)}else this.rootNode.allLeafChildren=BR(this.rootNode.allLeafChildren,c);this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),e.add=c}},a.prototype.executeRemove=function(t,e,n){var o=this,i=t.remove;if(!xe.missingOrEmpty(i)){var c={};i.forEach(function(p){var v=o.lookupRowNode(p);v&&(v.isSelected()&&n.push(v),v.clearRowTopAndRowIndex(),c[v.id]=!0,delete o.allNodesMap[v.id],e.remove.push(v))}),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter(function(p){return!c[p.id]}),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},a.prototype.executeUpdate=function(t,e,n){var o=this,i=t.update;xe.missingOrEmpty(i)||i.forEach(function(c){var p=o.lookupRowNode(c);p&&(p.updateData(c),!p.selectable&&p.isSelected()&&n.push(p),o.setMasterForRow(p,c,a.TOP_LEVEL,!1),e.update.push(p))})},a.prototype.lookupRowNode=function(t){var e=this.gridOptionsWrapper.getRowNodeIdFunc(),n;if(xe.exists(e)){var o=e(t);if(n=this.allNodesMap[o],!n)return console.error("AG Grid: could not find row id="+o+", data item was not found for this id"),null}else if(n=xe.find(this.rootNode.allLeafChildren,function(i){return i.data===t}),!n)return console.error("AG Grid: could not find data item as object was not found",t),console.error("Consider using getRowNodeId to help the Grid find matching row data"),null;return n},a.prototype.createNode=function(t,e,n){var o=new it(this.beans);return o.group=!1,this.setMasterForRow(o,t,n,!0),e&&!this.suppressParentsInRowNodes&&(o.parent=e),o.level=n,o.setDataAndId(t,this.nextId.toString()),this.allNodesMap[o.id]&&console.warn("ag-grid: duplicate node id '"+o.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[o.id]=o,this.nextId++,o},a.prototype.setMasterForRow=function(t,e,n,o){if(this.doingTreeData)t.setMaster(!1),o&&(t.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?t.setMaster(this.isRowMasterFunc(e)):t.setMaster(!0):t.setMaster(!1),o){var i=this.columnModel.getRowGroupColumns(),c=i?i.length:0,p=n+c;t.expanded=t.master?this.isExpanded(p):!1}},a.prototype.isExpanded=function(t){var e=this.gridOptionsWrapper.getGroupDefaultExpanded();return e===-1?!0:t<e},a.TOP_LEVEL=0,a.ROOT_NODE_ID="ROOT_NODE_ID",a}(),Y7=function(){var a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},a(t,e)};return function(t,e){a(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),bn=function(a,t,e,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,t,e,n);else for(var p=a.length-1;p>=0;p--)(c=a[p])&&(i=(o<3?c(i):o>3?c(t,e,i):c(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},ar;(function(a){a[a.Normal=0]="Normal",a[a.AfterFilter=1]="AfterFilter",a[a.AfterFilterAndSort=2]="AfterFilterAndSort",a[a.PivotNodes=3]="PivotNodes"})(ar||(ar={}));var q7=function(a){Y7(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t.prototype.init=function(){var e=this.refreshModel.bind(this,{step:r.ClientSideRowModelSteps.EVERYTHING}),n=this.refreshModel.bind(this,{step:r.ClientSideRowModelSteps.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:!0});this.addManagedListener(this.eventService,$.EVENT_NEW_COLUMNS_LOADED,n),this.addManagedListener(this.eventService,$.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,$.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,$.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:r.ClientSideRowModelSteps.PIVOT})),this.addManagedListener(this.eventService,$.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,$.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,$.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var o=this.refreshModel.bind(this,{step:r.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:!0});this.addManagedListener(this.gridOptionsWrapper,Le.PROP_GROUP_REMOVE_SINGLE_CHILDREN,o),this.addManagedListener(this.gridOptionsWrapper,Le.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,o),this.rootNode=new it(this.beans),this.nodeManager=new K7(this.rootNode,this.gridOptionsWrapper,this.eventService,this.columnModel,this.gridApi,this.columnApi,this.selectionService,this.beans)},t.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},t.prototype.ensureRowHeightsValid=function(e,n,o,i){var c,p=!1;do{c=!1;for(var v=this.getRowIndexAtPixel(e),w=this.getRowIndexAtPixel(n),O=Math.max(v,o),N=Math.min(w,i),B=O;B<=N;B++){var z=this.getRow(B);if(z.rowHeightEstimated){var q=this.gridOptionsWrapper.getRowHeightForNode(z);z.setRowHeight(q.height),c=!0,p=!0}}c&&this.setRowTopAndRowIndex()}while(c);return p},t.prototype.setRowTopAndRowIndex=function(){for(var e=this.gridOptionsWrapper.getDefaultRowHeight(),n=0,o=new Set,i=this.gridOptionsWrapper.getDomLayout()===ie.DOM_LAYOUT_NORMAL,c=0;c<this.rowsToDisplay.length;c++){var p=this.rowsToDisplay[c];if(p.id!=null&&o.add(p.id),p.rowHeight==null){var v=this.gridOptionsWrapper.getRowHeightForNode(p,i,e);p.setRowHeight(v.height,v.estimated)}p.setRowTop(n),p.setRowIndex(c),n+=p.rowHeight}return o},t.prototype.clearRowTopAndRowIndex=function(e,n){var o=e.isActive(),i=function(p){p&&p.id!=null&&!n.has(p.id)&&p.clearRowTopAndRowIndex()},c=function(p){if(i(p),i(p.detailNode),i(p.sibling),p.hasChildren()&&p.childrenAfterGroup){var v=p.level==-1,w=o&&!v&&!p.expanded;w||p.childrenAfterGroup.forEach(c)}};c(this.rootNode)},t.prototype.ensureRowsAtPixel=function(e,n,o){var i=this;o===void 0&&(o=0);var c=this.getRowIndexAtPixel(n),p=this.getRow(c);return p===e[0]?!1:(e.forEach(function(v){xe.removeFromArray(i.rootNode.allLeafChildren,v)}),e.forEach(function(v,w){xe.insertIntoArray(i.rootNode.allLeafChildren,v,Math.max(c+o,0)+w)}),this.refreshModel({step:r.ClientSideRowModelSteps.EVERYTHING,keepRenderedRows:!0,animate:!0,keepEditingRows:!0}),!0)},t.prototype.highlightRowAtPixel=function(e,n){var o=n!=null?this.getRowIndexAtPixel(n):null,i=o!=null?this.getRow(o):null;if(!i||!e||i===e||n==null){this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null);return}var c=this.getHighlightPosition(n,i);this.lastHighlightedRow&&this.lastHighlightedRow!==i&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),i.setHighlighted(c),this.lastHighlightedRow=i},t.prototype.getHighlightPosition=function(e,n){if(!n){var o=this.getRowIndexAtPixel(e);if(n=this.getRow(o||0),!n)return r.RowHighlightPosition.Below}var i=n.rowTop,c=n.rowHeight;return e-i<c/2?r.RowHighlightPosition.Above:r.RowHighlightPosition.Below},t.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},t.prototype.isLastRowIndexKnown=function(){return!0},t.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},t.prototype.getTopLevelRowCount=function(){var e=this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode;return e?1:this.rootNode.childrenAfterFilter?this.rootNode.childrenAfterFilter.length:0},t.prototype.getTopLevelRowDisplayedIndex=function(e){var n=this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode;if(n)return e;var o=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;o.expanded&&o.childrenAfterSort&&o.childrenAfterSort.length>0;)o=o.childrenAfterSort[0];return o.rowIndex},t.prototype.getRowBounds=function(e){if(xe.missing(this.rowsToDisplay))return null;var n=this.rowsToDisplay[e];return n?{rowTop:n.rowTop,rowHeight:n.rowHeight}:null},t.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:r.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:e})},t.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var n=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:r.ClientSideRowModelSteps.FILTER,keepRenderedRows:!0,animate:n})}},t.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:r.ClientSideRowModelSteps.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},t.prototype.getType=function(){return ie.ROW_MODEL_TYPE_CLIENT_SIDE},t.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:r.ClientSideRowModelSteps.PIVOT}):this.refreshModel({step:r.ClientSideRowModelSteps.AGGREGATE})},t.prototype.createChangePath=function(e){var n=xe.missingOrEmpty(e),o=new Ec(!1,this.rootNode);return(n||this.gridOptionsWrapper.isTreeData())&&o.setInactive(),o},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsWrapper.isSuppressModelUpdateAfterUpdateTransaction()||e.rowNodeTransactions==null)return!1;var n=xe.filter(e.rowNodeTransactions,function(i){return i.add!=null&&i.add.length>0||i.remove!=null&&i.remove.length>0}),o=n==null||n.length==0;return o},t.prototype.refreshModel=function(e){var n=this;if(!this.isSuppressModelUpdateAfterUpdateTransaction(e)){var o=this.createChangePath(e.rowNodeTransactions);switch(e.step){case r.ClientSideRowModelSteps.EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,o,!!e.afterColumnsChanged);case r.ClientSideRowModelSteps.FILTER:this.doFilter(o);case r.ClientSideRowModelSteps.PIVOT:this.doPivot(o);case r.ClientSideRowModelSteps.AGGREGATE:this.doAggregate(o);case r.ClientSideRowModelSteps.SORT:this.doSort(e.rowNodeTransactions,o);case r.ClientSideRowModelSteps.MAP:this.doRowsToDisplay()}var i=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(o,i);var c={type:$.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(c),this.$scope&&window.setTimeout(function(){n.$scope.$apply()},0)}},t.prototype.isEmpty=function(){var e=xe.missing(this.rootNode.allLeafChildren)||this.rootNode.allLeafChildren.length===0;return xe.missing(this.rootNode)||e||!this.columnModel.isReady()},t.prototype.isRowsToRender=function(){return xe.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},t.prototype.getNodesInRangeForSelection=function(e,n){var o=!n,i=!1,c,p=[],v=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort(function(w){var O=o&&!i;o||(w===n||w===e)&&(o=!0);var N=w.group&&v;if(!N){var B=o&&!i,z=w.isParentOfNode(c);(B||z)&&p.push(w)}O&&(w===n||w===e)&&(i=!0,w===n?c=n:c=e)}),p},t.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},t.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},t.prototype.getRootNode=function(){return this.rootNode},t.prototype.getRow=function(e){return this.rowsToDisplay[e]},t.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},t.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var n=0,o=this.rowsToDisplay.length-1;if(e<=0)return 0;var i=xe.last(this.rowsToDisplay);if(i.rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var c=Math.floor((n+o)/2),p=this.rowsToDisplay[c];if(this.isRowInPixel(p,e))return c;p.rowTop<e?n=c+1:p.rowTop>e&&(o=c-1)}},t.prototype.isRowInPixel=function(e,n){var o=e.rowTop,i=e.rowTop+e.rowHeight,c=o<=n&&i>n;return c},t.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(function(n,o){return e(n,o)})},t.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,ar.Normal,0)},t.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,ar.AfterFilter,0)},t.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,ar.AfterFilterAndSort,0)},t.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,ar.PivotNodes,0)},t.prototype.recursivelyWalkNodesAndCallback=function(e,n,o,i){if(!e)return i;for(var c=0;c<e.length;c++){var p=e[c];if(n(p,i++),p.hasChildren()){var v=null;switch(o){case ar.Normal:v=p.childrenAfterGroup;break;case ar.AfterFilter:v=p.childrenAfterFilter;break;case ar.AfterFilterAndSort:v=p.childrenAfterSort;break;case ar.PivotNodes:v=p.leafGroup?null:p.childrenAfterSort;break}v&&(i=this.recursivelyWalkNodesAndCallback(v,n,o,i))}}return i},t.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.expandOrCollapseAll=function(e){var n=this.gridOptionsWrapper.isTreeData();this.rootNode&&o(this.rootNode.childrenAfterGroup);function o(p){p&&p.forEach(function(v){var w=n?xe.exists(v.childrenAfterGroup):v.group;w&&(v.expanded=e,o(v.childrenAfterGroup))})}this.refreshModel({step:r.ClientSideRowModelSteps.MAP});var i=e?"expandAll":"collapseAll",c={api:this.gridApi,columnApi:this.columnApi,type:$.EVENT_EXPAND_COLLAPSE_ALL,source:i};this.eventService.dispatchEvent(c)},t.prototype.doSort=function(e,n){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:n})},t.prototype.doRowGrouping=function(e,n,o,i,c){this.groupStage?(n?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:n,rowNodeOrder:o,changedPath:i}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:i,afterColumnsChanged:c}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionService.updateGroupsFromChildrenSelections(i)):(this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren())},t.prototype.restoreGroupState=function(e){e&&xe.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(n,o){typeof e[o]=="boolean"&&(n.expanded=e[o])})},t.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return xe.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(n,o){return e[o]=n.expanded}),e},t.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},t.prototype.getRowNode=function(e){var n=typeof e=="string"&&e.indexOf(it.ID_PREFIX_ROW_GROUP)==0;if(n){var o=void 0;return this.forEachNode(function(i){i.id===e&&(o=i)}),o}else return this.nodeManager.getRowNode(e)},t.prototype.setRowData=function(e){var n=this.getGroupState();this.nodeManager.setRowData(e);var o={type:$.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.refreshModel({step:r.ClientSideRowModelSteps.EVERYTHING,groupState:n,newData:!0})},t.prototype.batchUpdateRowData=function(e,n){var o=this;if(this.applyAsyncTransactionsTimeout==null){this.rowDataTransactionBatch=[];var i=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout(function(){o.executeBatchUpdateRowData()},i)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:n})},t.prototype.flushAsyncTransactions=function(){this.applyAsyncTransactionsTimeout!=null&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},t.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var n=[],o=[],i=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach(function(p){var v=e.nodeManager.updateRowData(p.rowDataTransaction,void 0);o.push(v),p.callback&&n.push(p.callback.bind(null,v)),typeof p.rowDataTransaction.addIndex=="number"&&(i=!0)}),this.commonUpdateRowData(o,void 0,i),n.length>0&&window.setTimeout(function(){n.forEach(function(p){return p()})},0),o.length>0){var c={api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),type:$.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:o};this.eventService.dispatchEvent(c)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},t.prototype.updateRowData=function(e,n){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(e,n),i=typeof e.addIndex=="number";return this.commonUpdateRowData([o],n,i),o},t.prototype.createRowNodeOrder=function(){var e=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder();if(!e){var n={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var o=0;o<this.rootNode.allLeafChildren.length;o++){var i=this.rootNode.allLeafChildren[o];n[i.id]=o}return n}},t.prototype.commonUpdateRowData=function(e,n,o){o&&(n=this.createRowNodeOrder()),this.refreshModel({step:r.ClientSideRowModelSteps.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:n,keepRenderedRows:!0,animate:!0,keepEditingRows:!0});var i={type:$.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)},t.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},t.prototype.onRowHeightChanged=function(){this.refreshModel({step:r.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,keepEditingRows:!0})},t.prototype.resetRowHeights=function(){var e=!1;this.forEachNode(function(n){n.setRowHeight(n.rowHeight,!0);var o=n.detailNode;o&&o.setRowHeight(o.rowHeight,!0),e=!0}),e&&this.onRowHeightChanged()},bn([x("columnModel")],t.prototype,"columnModel",void 0),bn([x("$scope")],t.prototype,"$scope",void 0),bn([x("selectionService")],t.prototype,"selectionService",void 0),bn([x("valueCache")],t.prototype,"valueCache",void 0),bn([x("columnApi")],t.prototype,"columnApi",void 0),bn([x("gridApi")],t.prototype,"gridApi",void 0),bn([x("animationFrameService")],t.prototype,"animationFrameService",void 0),bn([x("beans")],t.prototype,"beans",void 0),bn([x("filterStage")],t.prototype,"filterStage",void 0),bn([x("sortStage")],t.prototype,"sortStage",void 0),bn([x("flattenStage")],t.prototype,"flattenStage",void 0),bn([gt("groupStage")],t.prototype,"groupStage",void 0),bn([gt("aggregationStage")],t.prototype,"aggregationStage",void 0),bn([gt("pivotStage")],t.prototype,"pivotStage",void 0),bn([De],t.prototype,"init",null),t=bn([Me("rowModel")],t),t}(Ee),X7=function(){var a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},a(t,e)};return function(t,e){a(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Gg=function(a,t,e,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,t,e,n);else for(var p=a.length-1;p>=0;p--)(c=a[p])&&(i=(o<3?c(i):o>3?c(t,e,i):c(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},Q7=function(a){X7(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t.prototype.execute=function(e){var n=e.rowNode,o=e.changedPath;this.filterService.filter(o),this.selectableService.updateSelectableAfterFiltering(n)},Gg([x("selectableService")],t.prototype,"selectableService",void 0),Gg([x("filterService")],t.prototype,"filterService",void 0),t=Gg([Me("filterStage")],t),t}(Ee),Z7=function(){var a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},a(t,e)};return function(t,e){a(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Uc=function(a,t,e,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,t,e,n);else for(var p=a.length-1;p>=0;p--)(c=a[p])&&(i=(o<3?c(i):o>3?c(t,e,i):c(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},J7=function(a){Z7(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t.prototype.execute=function(e){var n=this.sortController.getSortOptions(),o=xe.exists(n)&&n.length>0,i=o&&xe.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),c=i?this.calculateDirtyNodes(e.rowNodeTransactions):null,p=xe.missingOrEmpty(this.columnModel.getValueColumns()),v=xe.some(n,function(w){return!!w.column.getColDef().showRowGroup});this.sortService.sort(n,o,i,c,e.changedPath,p,v)},t.prototype.calculateDirtyNodes=function(e){var n={},o=function(i){i&&i.forEach(function(c){return n[c.id]=!0})};return e&&e.forEach(function(i){o(i.add),o(i.update),o(i.remove)}),n},Uc([x("sortService")],t.prototype,"sortService",void 0),Uc([x("sortController")],t.prototype,"sortController",void 0),Uc([x("columnModel")],t.prototype,"columnModel",void 0),t=Uc([Me("sortStage")],t),t}(Ee),eY=function(){var a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},a(t,e)};return function(t,e){a(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vg=function(a,t,e,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,t,e,n);else for(var p=a.length-1;p>=0;p--)(c=a[p])&&(i=(o<3?c(i):o>3?c(t,e,i):c(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},tY=function(a){eY(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t.prototype.execute=function(e){var n=e.rowNode,o=[],i={value:0},c=this.columnModel.isPivotMode(),p=c&&n.leafGroup,v=p?[n]:n.childrenAfterSort;this.recursivelyAddToRowsToDisplay(v,o,i,c,0);var w=o.length>0,O=!p&&w&&this.gridOptionsWrapper.isGroupIncludeTotalFooter();return O&&(this.ensureFooterNodeExists(n),this.addRowNodeToRowsToDisplay(n.sibling,o,i,0)),o},t.prototype.recursivelyAddToRowsToDisplay=function(e,n,o,i,c){if(!xe.missingOrEmpty(e))for(var p=this.gridOptionsWrapper.isGroupHideOpenParents(),v=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),w=!v&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),O=0;O<e.length;O++){var N=e[O],B=N.hasChildren(),z=i&&!B,q=v&&B&&N.childrenAfterGroup.length===1,se=w&&B&&N.leafGroup&&N.childrenAfterGroup.length===1,fe=i&&N.leafGroup,Te=p&&N.expanded&&!fe,Ce=!z&&!Te&&!q&&!se;if(Ce&&this.addRowNodeToRowsToDisplay(N,n,o,c),!(i&&N.leafGroup)){if(B){var me=q||se;if(N.expanded||me){var Pe=me?c:c+1;this.recursivelyAddToRowsToDisplay(N.childrenAfterSort,n,o,i,Pe),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(N),this.addRowNodeToRowsToDisplay(N.sibling,n,o,c))}}else if(N.master&&N.expanded){var He=this.createDetailNode(N);this.addRowNodeToRowsToDisplay(He,n,o,c)}}}},t.prototype.addRowNodeToRowsToDisplay=function(e,n,o,i){var c=this.gridOptionsWrapper.isGroupMultiAutoColumn();n.push(e),e.setUiLevel(c?0:i)},t.prototype.ensureFooterNodeExists=function(e){if(!xe.exists(e.sibling)){var n=new it(this.beans);Object.keys(e).forEach(function(o){n[o]=e[o]}),n.footer=!0,n.setRowTop(null),n.setRowIndex(null),n.oldRowTop=null,xe.exists(n.id)&&(n.id="rowGroupFooter_"+n.id),n.sibling=e,e.sibling=n}},t.prototype.createDetailNode=function(e){if(xe.exists(e.detailNode))return e.detailNode;var n=new it(this.beans);return n.detail=!0,n.selectable=!1,n.parent=e,xe.exists(e.id)&&(n.id="detail_"+e.id),n.data=e.data,n.level=e.level+1,e.detailNode=n,n},Vg([x("columnModel")],t.prototype,"columnModel",void 0),Vg([x("beans")],t.prototype,"beans",void 0),t=Vg([Me("flattenStage")],t),t}(Ee),nY=function(){var a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},a(t,e)};return function(t,e){a(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Kc=function(a,t,e,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,t,e,n);else for(var p=a.length-1;p>=0;p--)(c=a[p])&&(i=(o<3?c(i):o>3?c(t,e,i):c(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},oY=function(a){nY(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},t.prototype.sort=function(e,n,o,i,c,p,v){var w=this,O=this.gridOptionsWrapper.isGroupMaintainOrder(),N=xe.some(this.columnModel.getAllGridColumns(),function(z){return z.isRowGroupActive()}),B=function(z){if(w.pullDownGroupDataForHideOpenParents(z.childrenAfterFilter,!0),n){var q=O&&N&&!z.leafGroup&&!v;q?z.childrenAfterSort=z.childrenAfterFilter.slice(0):z.childrenAfterSort=o?w.doDeltaSort(z,e,i,c,p):w.rowNodeSorter.doFullSort(z.childrenAfterFilter,e)}else z.childrenAfterSort=z.childrenAfterFilter.slice(0);z.sibling&&(z.sibling.childrenAfterSort=z.childrenAfterSort),w.updateChildIndexes(z),w.postSortFunc&&w.postSortFunc(z.childrenAfterSort)};c&&c.forEachChangedNodeDepthFirst(B),this.updateGroupDataForHideOpenParents(c)},t.prototype.mapNodeToSortedNode=function(e,n){return{currentPos:n,rowNode:e}},t.prototype.doDeltaSort=function(e,n,o,i,c){var p=e.childrenAfterSort.filter(function(N){var B=!o[N.id],z=c||i&&i.canSkip(N);return B&&z}).map(this.mapNodeToSortedNode.bind(this)),v={};p.forEach(function(N){return v[N.rowNode.id]=N.rowNode});var w=e.childrenAfterFilter.filter(function(N){return!v[N.id]}).map(this.mapNodeToSortedNode.bind(this));w.sort(this.rowNodeSorter.compareRowNodes.bind(this,n));var O;return w.length===0?O=p:p.length===0?O=w:O=this.mergeSortedArrays(n,p,w),O.map(function(N){return N.rowNode})},t.prototype.mergeSortedArrays=function(e,n,o){for(var i=[],c=0,p=0;c<n.length&&p<o.length;){var v=this.rowNodeSorter.compareRowNodes(e,n[c],o[p]);v<0?i.push(n[c++]):i.push(o[p++])}for(;c<n.length;)i.push(n[c++]);for(;p<o.length;)i.push(o[p++]);return i},t.prototype.updateChildIndexes=function(e){if(!xe.missing(e.childrenAfterSort))for(var n=e.childrenAfterSort,o=0;o<n.length;o++){var i=n[o],c=o===0,p=o===e.childrenAfterSort.length-1;i.setFirstChild(c),i.setLastChild(p),i.setChildIndex(o)}},t.prototype.updateGroupDataForHideOpenParents=function(e){var n=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){if(this.gridOptionsWrapper.isTreeData()){var o="AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).";return xe.doOnce(function(){return console.warn(o)},"sortService.hideOpenParentsWithTreeData"),!1}var i=function(c){n.pullDownGroupDataForHideOpenParents(c.childrenAfterSort,!1),c.childrenAfterSort.forEach(function(p){p.hasChildren()&&i(p)})};e&&e.executeFromRootNode(function(c){return i(c)})}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,n){var o=this;!this.gridOptionsWrapper.isGroupHideOpenParents()||xe.missing(e)||e.forEach(function(i){var c=o.columnModel.getGroupDisplayColumns();c.forEach(function(p){var v=p.getColDef().showRowGroup;if(typeof v!="string"){console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup");return}var w=v,O=o.columnModel.getPrimaryColumn(w),N=O===i.rowGroupColumn;if(!N)if(n)i.setGroupValue(p.getId(),void 0);else{var B=i.getFirstChildOfFirstChild(O);B&&i.setGroupValue(p.getId(),B.key)}})})},Kc([x("columnModel")],t.prototype,"columnModel",void 0),Kc([x("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),Kc([De],t.prototype,"init",null),t=Kc([Me("sortService")],t),t}(Ee),rY=function(){var a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},a(t,e)};return function(t,e){a(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Bg=function(a,t,e,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,t,e,n);else for(var p=a.length-1;p>=0;p--)(c=a[p])&&(i=(o<3?c(i):o>3?c(t,e,i):c(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},iY=function(a){rY(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},t.prototype.filter=function(e){var n=this.filterManager.isAnyFilterPresent();this.filterNodes(n,e)},t.prototype.filterNodes=function(e,n){var o=this,i=function(w,O){w.hasChildren()?(e&&!O?w.childrenAfterFilter=w.childrenAfterGroup.filter(function(N){var B=N.childrenAfterFilter&&N.childrenAfterFilter.length>0,z=N.data&&o.filterManager.doesRowPassFilter({rowNode:N});return B||z}):w.childrenAfterFilter=w.childrenAfterGroup,o.setAllChildrenCount(w)):(w.childrenAfterFilter=w.childrenAfterGroup,w.setAllChildrenCount(null)),w.sibling&&(w.sibling.childrenAfterFilter=w.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var c=function(w,O){if(w.childrenAfterGroup)for(var N=0;N<w.childrenAfterGroup.length;N++){var B=w.childrenAfterGroup[N],z=O||o.filterManager.doesRowPassFilter({rowNode:B});B.childrenAfterGroup?c(w.childrenAfterGroup[N],z):i(B,z)}i(w,O)},p=function(w){return c(w,!1)};n.executeFromRootNode(p)}else{var v=function(w){return i(w,!1)};n.forEachChangedNodeDepthFirst(v,!0)}},t.prototype.setAllChildrenCountTreeData=function(e){var n=0;e.childrenAfterFilter.forEach(function(o){n++,n+=o.allChildrenCount}),e.setAllChildrenCount(n)},t.prototype.setAllChildrenCountGridGrouping=function(e){var n=0;e.childrenAfterFilter.forEach(function(o){o.group?n+=o.allChildrenCount:n++}),e.setAllChildrenCount(n)},t.prototype.setAllChildrenCount=function(e){this.doingTreeData?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},Bg([x("filterManager")],t.prototype,"filterManager",void 0),Bg([De],t.prototype,"postConstruct",null),t=Bg([Me("filterService")],t),t}(Ee),aY=function(){var a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},a(t,e)};return function(t,e){a(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Hg=function(a,t,e,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,t,e,n);else for(var p=a.length-1;p>=0;p--)(c=a[p])&&(i=(o<3?c(i):o>3?c(t,e,i):c(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},sY=function(a){aY(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.rowModel.getType()===ie.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.createTransactionForRowData=function(e){if(xe.missing(this.clientSideRowModel)){console.error("AG Grid: ImmutableService only works with ClientSideRowModel");return}var n=this.gridOptionsWrapper.getRowNodeIdFunc();if(!n||xe.missing(n)){console.error("AG Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!");return}var o={remove:[],update:[],add:[]},i=this.clientSideRowModel.getCopyOfNodesMap(),c=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder(),p=c?null:{};return xe.exists(e)&&e.forEach(function(v,w){var O=n(v),N=i[O];if(p&&(p[O]=w),N){var B=N.data!==v;B&&o.update.push(v),i[O]=void 0}else o.add.push(v)}),xe.iterateObject(i,function(v,w){w&&o.remove.push(w.data)}),[o,p]},Hg([x("rowModel")],t.prototype,"rowModel",void 0),Hg([De],t.prototype,"postConstruct",null),t=Hg([Me("immutableService")],t),t}(Ee),lY={moduleName:r.ModuleNames.ClientSideRowModelModule,beans:[Q7,J7,tY,oY,iY,sY],rowModels:{clientSide:q7}},uY=function(){var a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},a(t,e)};return function(t,e){a(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Wg=function(a,t,e,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,t,e,n);else for(var p=a.length-1;p>=0;p--)(c=a[p])&&(i=(o<3?c(i):o>3?c(t,e,i):c(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},HR=function(a){uY(t,a);function t(e,n,o){var i=a.call(this,e)||this;return i.parentCache=n,i.params=o,i.startRow=e*o.blockSize,i.endRow=i.startRow+o.blockSize,i}return t.prototype.postConstruct=function(){this.createRowNodes()},t.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},t.prototype.setDataAndId=function(e,n,o){!e.id&&e.alreadyRendered&&(e.alreadyRendered=!1),xe.exists(n)?e.setDataAndId(n,o.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,n=this.createLoadParams();if(xe.missing(this.params.datasource.getRows)){console.warn("AG Grid: datasource is missing getRows method");return}window.setTimeout(function(){e.params.datasource.getRows(n)},0)},t.prototype.processServerFail=function(){},t.prototype.createLoadParams=function(){var e={startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsWrapper.getContext()};return e},t.prototype.forEachNode=function(e,n,o){var i=this;this.rowNodes.forEach(function(c,p){var v=i.startRow+p;v<o&&e(c,n.next())})},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,n){n===void 0&&(n=!1),n||(this.lastAccessed=this.params.lastAccessedSequence.next());var o=e-this.startRow;return this.rowNodes[o]},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.params.blockSize;e++){var n=this.startRow+e,o=new it(this.beans);o.setRowHeight(this.params.rowHeight),o.uiLevel=0,o.setRowIndex(n),o.setRowTop(this.params.rowHeight*n),this.rowNodes.push(o)}},t.prototype.processServerResult=function(e){var n=this;this.rowNodes.forEach(function(i,c){var p=e.rowData?e.rowData[c]:void 0;n.setDataAndId(i,p,n.startRow+c)});var o=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,o)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach(function(e){e.clearRowTopAndRowIndex()})},Wg([x("beans")],t.prototype,"beans",void 0),Wg([De],t.prototype,"postConstruct",null),Wg([dn],t.prototype,"destroyRowNodes",null),t}(Bc),cY=function(){var a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},a(t,e)};return function(t,e){a(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Yc=function(a,t,e,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,t,e,n);else for(var p=a.length-1;p>=0;p--)(c=a[p])&&(i=(o<3?c(i):o>3?c(t,e,i):c(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},dY=function(a,t){return function(e,n){t(e,n,a)}},pY=function(a){cY(t,a);function t(e){var n=a.call(this)||this;return n.lastRowIndexKnown=!1,n.blocks={},n.blockCount=0,n.rowCount=e.initialRowCount,n.params=e,n}return t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,n){n===void 0&&(n=!1);var o=Math.floor(e/this.params.blockSize),i=this.blocks[o];if(!i){if(n)return;i=this.createBlock(o)}return i.getRow(e)},t.prototype.createBlock=function(e){var n=this.createBean(new HR(e,this,this.params));return this.blocks[n.getId()]=n,this.blockCount++,this.purgeBlocksIfNeeded(n),this.params.rowNodeBlockLoader.addBlock(n),n},t.prototype.refreshCache=function(){var e=this.blockCount==0;if(e){this.purgeCache();return}this.getBlocksInOrder().forEach(function(n){return n.setStateWaitingToLoad()}),this.params.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach(function(n){return e.destroyBlock(n)})},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,n){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+e.getId()+", lastRow = "+n),this.checkRowCount(e,n),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var n=this,o=this.getBlocksInOrder().filter(function(w){return w!=e}),i=function(w,O){return O.getLastAccessed()-w.getLastAccessed()};o.sort(i);var c=this.params.maxBlocksInCache>0,p=c?this.params.maxBlocksInCache-1:null,v=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;o.forEach(function(w,O){var N=w.getState()===HR.STATE_WAITING_TO_LOAD&&O>=v,B=c?O>=p:!1;if(N||B){if(n.isBlockCurrentlyDisplayed(w)||n.isBlockFocused(w))return;n.removeBlockFromCache(w)}})},t.prototype.isBlockFocused=function(e){var n=this.focusService.getFocusCellToUseAfterRefresh();if(!n||n.rowPinned!=null)return!1;var o=e.getStartRow(),i=e.getEndRow(),c=n.rowIndex>=o&&n.rowIndex<i;return c},t.prototype.isBlockCurrentlyDisplayed=function(e){var n=e.getStartRow(),o=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(n,o)},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkRowCount=function(e,n){if(typeof n=="number"&&n>=0)this.rowCount=n,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var o=(e.getId()+1)*this.params.blockSize,i=o+this.params.overflowSize;this.rowCount<i&&(this.rowCount=i)}},t.prototype.setRowCount=function(e,n){this.rowCount=e,xe.exists(n)&&(this.lastRowIndexKnown=n),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e){var n=this,o=new Ti;this.getBlocksInOrder().forEach(function(i){return i.forEachNode(e,o,n.rowCount)})},t.prototype.getBlocksInOrder=function(){var e=function(o,i){return o.getId()-i.getId()},n=xe.getAllValuesInObject(this.blocks).sort(e);return n},t.prototype.destroyBlock=function(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:$.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,n=[];this.getBlocksInOrder().forEach(function(o){var i=o.getId()*e.params.blockSize;i>=e.rowCount&&n.push(o)}),n.length>0&&n.forEach(function(o){return e.destroyBlock(o)})},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach(function(n){return e.removeBlockFromCache(n)}),this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,n){var o=this,i=[],c=-1,p=!1,v=new Ti;xe.missing(e)&&(p=!0);var w=!1;this.getBlocksInOrder().forEach(function(N){if(!w){if(p&&c+1!==N.getId()){w=!0;return}c=N.getId(),N.forEachNode(function(B){var z=B===e||B===n;(p||z)&&i.push(B),z&&(p=!p)},v,o.rowCount)}});var O=w||p;return O?[]:i},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,Yc([x("rowRenderer")],t.prototype,"rowRenderer",void 0),Yc([x("focusService")],t.prototype,"focusService",void 0),Yc([dY(0,wn("loggerFactory"))],t.prototype,"setBeans",null),Yc([dn],t.prototype,"destroyAllBlocks",null),t}(Ee),fY=function(){var a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},a(t,e)};return function(t,e){a(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),sr=function(a,t,e,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,t,e,n);else for(var p=a.length-1;p>=0;p--)(c=a[p])&&(i=(o<3?c(i):o>3?c(t,e,i):c(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},hY=function(a){fY(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,n,o,i){return!1},t.prototype.init=function(){var e=this;this.gridOptionsWrapper.isRowModelInfinite()&&(this.rowHeight=this.gridOptionsWrapper.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc(function(){return e.destroyCache()}),this.verifyProps())},t.prototype.verifyProps=function(){if(this.gridOptionsWrapper.getDefaultGroupOrderComparator()!=null){var e="AG Grid: defaultGroupOrderComparator cannot be used with Infinite Row Model. If using Infinite Row Model, then sorting is done on the server side, nothing to do with the client.";xe.doOnce(function(){return console.warn(e)},"IRM.DefaultGroupOrderComparator")}},t.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},t.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,$.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,$.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,$.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,$.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){var e;this.cacheParams?e=this.isSortModelDifferent():e=!0,e&&this.reset()},t.prototype.isSortModelDifferent=function(){return!xe.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return ie.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()},t.prototype.isEmpty=function(){return!this.infiniteCache},t.prototype.isRowsToRender=function(){return!!this.infiniteCache},t.prototype.getNodesInRangeForSelection=function(e,n){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,n):[]},t.prototype.reset=function(){if(this.datasource){var e=xe.exists(this.gridOptionsWrapper.getRowNodeIdFunc());e||this.selectionService.reset(),this.resetCache();var n=this.createModelUpdatedEvent();this.eventService.dispatchEvent(n)}},t.prototype.createModelUpdatedEvent=function(){return{type:$.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!0,animate:!1}},t.prototype.resetCache=function(){this.destroyCache();var e=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,maxConcurrentRequests:this.defaultIfInvalid(e,2),initialRowCount:this.defaultIfInvalid(this.gridOptionsWrapper.getInfiniteInitialRowCount(),1),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheOverflowSize(),1),blockSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheBlockSize(),100),lastAccessedSequence:new Ti},this.infiniteCache=this.createBean(new pY(this.cacheParams))},t.prototype.defaultIfInvalid=function(e,n){return e>0?e:n},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){if(this.infiniteCache&&!(e>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(e)},t.prototype.getRowNode=function(e){var n=void 0;return this.forEachNode(function(o){o.id===e&&(n=o)}),n},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(this.rowHeight!==0){var n=Math.floor(e/this.rowHeight),o=this.getRowCount()-1;return n>o?o:n}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){var n=this.getRowNode(e.id);return!!n},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.isLastRowIndexKnown=function(){return this.infiniteCache?this.infiniteCache.isLastRowIndexKnown():!1},t.prototype.setRowCount=function(e,n){this.infiniteCache&&this.infiniteCache.setRowCount(e,n)},sr([x("filterManager")],t.prototype,"filterManager",void 0),sr([x("sortController")],t.prototype,"sortController",void 0),sr([x("selectionService")],t.prototype,"selectionService",void 0),sr([x("gridApi")],t.prototype,"gridApi",void 0),sr([x("columnApi")],t.prototype,"columnApi",void 0),sr([x("rowRenderer")],t.prototype,"rowRenderer",void 0),sr([x("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),sr([De],t.prototype,"init",null),sr([dn],t.prototype,"destroyDatasource",null),t=sr([Me("rowModel")],t),t}(Ee),gY={moduleName:r.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:hY}},WR=function(){function a(){}return a.prototype.setBeans=function(t){this.beans=t},a.prototype.getFileName=function(t){var e=this.getDefaultFileExtension();return(t==null||!t.length)&&(t=this.getDefaultFileName()),t.indexOf(".")===-1?t+"."+e:t},a.prototype.getMergedParamsAndData=function(t){var e=this.mergeDefaultParams(t),n=this.beans.gridSerializer.serialize(this.createSerializingSession(e),e);return{mergedParams:e,data:n}},a.prototype.mergeDefaultParams=function(t){var e=this.getDefaultExportParams(),n={};return xe.assign(n,e),xe.assign(n,t),n},a}(),$R=function(){function a(t){this.groupColumns=[];var e=t.columnModel,n=t.valueService,o=t.gridOptionsWrapper,i=t.processCellCallback,c=t.processHeaderCallback,p=t.processGroupHeaderCallback,v=t.processRowGroupCallback;this.columnModel=e,this.valueService=n,this.gridOptionsWrapper=o,this.processCellCallback=i,this.processHeaderCallback=c,this.processGroupHeaderCallback=p,this.processRowGroupCallback=v}return a.prototype.prepare=function(t){this.groupColumns=xe.filter(t,function(e){return!!e.getColDef().showRowGroup})},a.prototype.extractHeaderValue=function(t){var e=this.getHeaderName(this.processHeaderCallback,t);return e??""},a.prototype.extractRowCellValue=function(t,e,n,o,i){var c=this.gridOptionsWrapper.isGroupMultiAutoColumn()?i.rowGroupIndex:0,p=i&&i.group&&(e===c&&this.groupColumns.indexOf(t)!==-1||e===0&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode())),v;p?v=this.createValueForGroupNode(i):v=this.valueService.getValue(t,i);var w=this.processCell(n,i,t,v,this.processCellCallback,o);return w??""},a.prototype.getHeaderName=function(t,e){return t?t({column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnModel.getDisplayNameForColumn(e,"csv",!0)},a.prototype.createValueForGroupNode=function(t){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});var e=[t.key];if(!this.gridOptionsWrapper.isGroupMultiAutoColumn())for(;t.parent;)t=t.parent,e.push(t.key);return e.reverse().join(" -> ")},a.prototype.processCell=function(t,e,n,o,i,c){return i?i({accumulatedRowIndex:t,column:n,node:e,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:c}):o??""},a}(),zR=function(){function a(){}return a.download=function(t,e){var n=document.defaultView||window;if(!n){console.warn("AG Grid: There is no `window` associated with the current `document`");return}if(n.navigator.msSaveOrOpenBlob)n.navigator.msSaveOrOpenBlob(e,t);else{var o=document.createElement("a"),i=n.URL.createObjectURL(e);o.setAttribute("href",i),o.setAttribute("download",t),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:n})),document.body.removeChild(o),n.setTimeout(function(){n.URL.revokeObjectURL(i)},0)}},a}(),mY=function(){var a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},a(t,e)};return function(t,e){a(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),jR=`\r
1555
1555
  `,yY=function(a){mY(t,a);function t(e){var n=a.call(this,e)||this;n.isFirstLine=!0,n.result="";var o=e.suppressQuotes,i=e.columnSeparator;return n.suppressQuotes=o,n.columnSeparator=i,n}return t.prototype.addCustomContent=function(e){var n=this;e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,jR),this.result+=e):e.forEach(function(o){n.beginNewLine(),o.forEach(function(i,c){c!==0&&(n.result+=n.columnSeparator),n.result+=n.putInQuotes(i.data.value||""),i.mergeAcross&&n.appendEmptyCells(i.mergeAcross)})}))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,n,o){n!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(o)},t.prototype.appendEmptyCells=function(e){for(var n=1;n<=e;n++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,n){n!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,n,o){n!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,n,n,ie.EXPORT_TYPE_CSV,o))},t.prototype.putInQuotes=function(e){if(this.suppressQuotes)return e;if(e==null)return'""';var n;typeof e=="string"?n=e:typeof e.toString=="function"?n=e.toString():(console.warn("unknown value type during csv conversion"),n="");var o=n.replace(/"/g,'""');return'"'+o+'"'},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+=jR),this.isFirstLine=!1},t}($R),vY=function(){var a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},a(t,e)};return function(t,e){a(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ha=function(a,t,e,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,t,e,n);else for(var p=a.length-1;p>=0;p--)(c=a[p])&&(i=(o<3?c(i):o>3?c(t,e,i):c(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i},UR=function(a){vY(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.getDefaultExportParams=function(){return this.gridOptionsWrapper.getDefaultExportParams("csv")},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("ag-grid: Export cancelled. Export is not allowed as per your configuration."),"";var n=this.getMergedParamsAndData(e),o=n.mergedParams,i=n.data,c=new Blob(["\uFEFF",i],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"});return zR.download(this.getFileName(o.fileName),c),i},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){return this.getMergedParamsAndData(e).data},t.prototype.getMimeType=function(){return"text/csv;charset=utf-8;"},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var n=this,o=n.columnModel,i=n.valueService,c=n.gridOptionsWrapper,p=e,v=p.processCellCallback,w=p.processHeaderCallback,O=p.processGroupHeaderCallback,N=p.processRowGroupCallback,B=p.suppressQuotes,z=p.columnSeparator;return new yY({columnModel:o,valueService:i,gridOptionsWrapper:c,processCellCallback:v||void 0,processHeaderCallback:w||void 0,processGroupHeaderCallback:O||void 0,processRowGroupCallback:N||void 0,suppressQuotes:B||!1,columnSeparator:z||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},Ha([x("columnModel")],t.prototype,"columnModel",void 0),Ha([x("valueService")],t.prototype,"valueService",void 0),Ha([x("gridSerializer")],t.prototype,"gridSerializer",void 0),Ha([x("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Ha([De],t.prototype,"postConstruct",null),t=Ha([Me("csvCreator")],t),t}(WR),CY=function(){var a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)o.hasOwnProperty(i)&&(n[i]=o[i])},a(t,e)};return function(t,e){a(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Wa=function(a,t,e,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(a,t,e,n);else for(var p=a.length-1;p>=0;p--)(c=a[p])&&(i=(o<3?c(i):o>3?c(t,e,i):c(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i};(function(a){a[a.HEADER_GROUPING=0]="HEADER_GROUPING",a[a.HEADER=1]="HEADER",a[a.BODY=2]="BODY"})(r.RowType||(r.RowType={}));var KR=function(a){CY(t,a);function t(){return a!==null&&a.apply(this,arguments)||this}return t.prototype.serialize=function(e,n){n===void 0&&(n={});var o=this.getColumnsToExport(n.allColumns,n.columnKeys),i=xe.compose(this.prepareSession(o),this.prependContent(n),this.exportColumnGroups(n,o),this.exportHeaders(n,o),this.processPinnedTopRows(n,o),this.processRows(n,o),this.processPinnedBottomRows(n,o),this.appendContent(n));return i(e).parse()},t.prototype.processRow=function(e,n,o,i){var c=n.shouldRowBeSkipped||function(){return!1},p=this.gridOptionsWrapper,v=p.getContext(),w=p.getApi(),O=p.getColumnApi(),N=p.isGroupRemoveSingleChildren(),B=p.isGroupHideOpenParents(),z=p.isGroupRemoveLowestSingleChildren(),q=this.columnModel.isPivotMode()?i.leafGroup:!i.group,se=n.skipGroups||n.skipRowGroups,fe=z&&i.leafGroup,Te=i.allChildrenCount===1&&(N||fe);if(se&&n.skipGroups&&xe.doOnce(function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")},"gridSerializer-skipGroups"),!(!q&&(n.skipRowGroups||Te||B)||n.onlySelected&&!i.isSelected()||n.skipPinnedTop&&i.rowPinned==="top"||n.skipPinnedBottom&&i.rowPinned==="bottom")){var Ce=i.level===-1;if(!(Ce&&!i.leafGroup)){var me=c({node:i,api:w,context:v});if(!me){var Pe=e.onNewBodyRow();if(o.forEach(function(at,Ue){Pe.onColumn(at,Ue,i)}),n.getCustomContentBelowRow){var He=n.getCustomContentBelowRow({node:i,api:w,columnApi:O,context:v});He&&e.addCustomContent(He)}}}}},t.prototype.appendContent=function(e){return function(n){var o=e.customFooter||e.appendContent;return o&&(e.customFooter&&xe.doOnce(function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")},"gridSerializer-customFooter"),n.addCustomContent(o)),n}},t.prototype.prependContent=function(e){return function(n){var o=e.customHeader||e.prependContent;return o&&(e.customHeader&&xe.doOnce(function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")},"gridSerializer-customHeader"),n.addCustomContent(o)),n}},t.prototype.prepareSession=function(e){return function(n){return n.prepare(e),n}},t.prototype.exportColumnGroups=function(e,n){var o=this;return function(i){if(e.skipColumnGroupHeaders)e.columnGroups&&xe.doOnce(function(){return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.")},"gridSerializer-columnGroups");else{var c=new nh,p=o.displayedGroupCreator.createDisplayedGroups(n,o.columnModel.getGridBalancedTree(),c,null);o.recursivelyAddHeaderGroups(p,i,e.processGroupHeaderCallback)}return i}},t.prototype.exportHeaders=function(e,n){return function(o){if(!e.skipHeader&&!e.skipColumnHeaders){var i=o.onNewHeaderRow();n.forEach(function(c,p){i.onColumn(c,p,void 0)})}else e.skipHeader&&xe.doOnce(function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")},"gridSerializer-skipHeader");return o}},t.prototype.processPinnedTopRows=function(e,n){var o=this;return function(i){var c=o.processRow.bind(o,i,e,n);return o.pinnedRowModel.forEachPinnedTopRow(c),i}},t.prototype.processRows=function(e,n){var o=this;return function(i){var c=o.rowModel,p=c.getType(),v=p===ie.ROW_MODEL_TYPE_CLIENT_SIDE,w=p===ie.ROW_MODEL_TYPE_SERVER_SIDE,O=!v&&e.onlySelected,N=o.processRow.bind(o,i,e,n);if(o.columnModel.isPivotMode())v?c.forEachPivotNode(N):c.forEachNode(N);else if(e.onlySelectedAllPages||O){var B=o.selectionService.getSelectedNodes();B.forEach(N)}else v||w?c.forEachNodeAfterFilterAndSort(N):c.forEachNode(N);return i}},t.prototype.processPinnedBottomRows=function(e,n){var o=this;return function(i){var c=o.processRow.bind(o,i,e,n);return o.pinnedRowModel.forEachPinnedBottomRow(c),i}},t.prototype.getColumnsToExport=function(e,n){e===void 0&&(e=!1);var o=this.columnModel.isPivotMode();if(n&&n.length)return this.columnModel.getGridColumns(n);if(e&&!o){var i=this.gridOptionsWrapper.isTreeData()?this.columnModel.getGridColumns([ie.GROUP_AUTO_COLUMN_ID]):[];return i.concat(this.columnModel.getAllPrimaryColumns()||[])}return this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,n,o){var i=[];e.forEach(function(c){var p=c;p.getChildren&&p.getChildren().forEach(function(v){return i.push(v)})}),e.length>0&&e[0]instanceof pn&&this.doAddHeaderHeader(n,e,o),i&&i.length>0&&this.recursivelyAddHeaderGroups(i,n,o)},t.prototype.doAddHeaderHeader=function(e,n,o){var i=this,c=e.onNewHeaderGroupingRow(),p=0;n.forEach(function(v){var w=v,O;o?O=o({columnGroup:w,api:i.gridOptionsWrapper.getApi(),columnApi:i.gridOptionsWrapper.getColumnApi(),context:i.gridOptionsWrapper.getContext()}):O=i.columnModel.getDisplayNameForColumnGroup(w,"header"),c.onColumn(O||"",p++,w.getLeafColumns().length-1)})},Wa([x("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),Wa([x("columnModel")],t.prototype,"columnModel",void 0),Wa([x("rowModel")],t.prototype,"rowModel",void 0),Wa([x("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Wa([x("selectionService")],t.prototype,"selectionService",void 0),t=Wa([Me("gridSerializer")],t),t}(Ee),YR={moduleName:r.ModuleNames.CsvExportModule,beans:[UR,KR]},qc=`\r
1556
1556
  `,wY=function(){function a(){}return a.createHeader=function(t){t===void 0&&(t={});var e="<?",n="?>",o=["version"];t.version||(t.version="1.0"),t.encoding&&o.push("encoding"),t.standalone&&o.push("standalone");var i=o.map(function(c){return c+'="'+t[c]+'"'}).join(" ");return e+"xml "+i+" "+n},a.createXml=function(t,e){var n=this,o="";t.properties&&(t.properties.prefixedAttributes&&t.properties.prefixedAttributes.forEach(function(c){Object.keys(c.map).forEach(function(p){o+=n.returnAttributeIfPopulated(c.prefix+p,c.map[p],e)})}),t.properties.rawMap&&Object.keys(t.properties.rawMap).forEach(function(c){o+=n.returnAttributeIfPopulated(c,t.properties.rawMap[c],e)}));var i="<"+t.name+o;return!t.children&&t.textNode==null?i+"/>"+qc:t.textNode!=null?i+">"+t.textNode+"</"+t.name+">"+qc:(i+=">"+qc,t.children&&t.children.forEach(function(c){i+=n.createXml(c,e)}),i+"</"+t.name+">"+qc)},a.returnAttributeIfPopulated=function(t,e,n){if(!e&&e!==""&&e!==0)return"";var o=e;return typeof e=="boolean"&&n&&(o=n(e))," "+t+'="'+o+'"'},a}(),EY=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),bY=function(){function a(){}return a.addFolders=function(t){t.forEach(this.addFolder.bind(this))},a.addFolder=function(t){this.folders.push({path:t,created:new Date,isBase64:!1})},a.addFile=function(t,e,n){n===void 0&&(n=!1),this.files.push({path:t,created:new Date,content:e,isBase64:n})},a.getContent=function(t){t===void 0&&(t="application/zip");var e=this.buildFileStream(),n=this.buildUint8Array(e);return this.clearStream(),new Blob([n],{type:t})},a.clearStream=function(){this.folders=[],this.files=[]},a.buildFileStream=function(t){t===void 0&&(t="");for(var e=this.folders.concat(this.files),n=e.length,o="",i=0,c=0,p=0,v=e;p<v.length;p++){var w=v[p],O=this.getHeader(w,i),N=O.fileHeader,B=O.folderHeader,z=O.content;i+=N.length+z.length,c+=B.length,t+=N+z,o+=B}var q=this.buildFolderEnd(n,c,i);return t+o+q},a.getHeader=function(t,e){var n=t.content,o=t.path,i=t.created,c=t.isBase64,p=xe.utf8_encode,v=xe.decToHex,w=p(o),O=w!==o,N=this.convertTime(i),B=this.convertDate(i),z="";if(O){var q=v(1,1)+v(this.getFromCrc32Table(w),4)+w;z="up"+v(q.length,2)+q}var se=n?this.getConvertedContent(n,c):{size:0,content:""},fe=se.size,Te=se.content,Ce=`
1557
- \0`+(O?"\0\b":"\0\0")+"\0\0"+v(N,2)+v(B,2)+v(fe?this.getFromCrc32Table(Te):0,4)+v(fe,4)+v(fe,4)+v(w.length,2)+v(z.length,2),me="PK"+Ce+w+z,Pe="PK\0"+Ce+"\0\0\0\0\0\0"+(n?"\0\0\0\0":"\0\0\0")+v(e,4)+w+z;return{fileHeader:me,folderHeader:Pe,content:Te||""}},a.getConvertedContent=function(t,e){return e===void 0&&(e=!1),e&&(t=t.split(";base64,")[1]),t=e?atob(t):t,{size:t.length,content:t}},a.buildFolderEnd=function(t,e,n){var o=xe.decToHex;return"PK\0\0\0\0"+o(t,2)+o(t,2)+o(e,4)+o(n,4)+"\0\0"},a.buildUint8Array=function(t){for(var e=new Uint8Array(t.length),n=0;n<e.length;n++)e[n]=t.charCodeAt(n);return e},a.getFromCrc32Table=function(t){if(!t.length)return 0;for(var e=t.length,n=new Uint8Array(e),o=0;o<e;o++)n[o]=t.charCodeAt(o);for(var i=-1,c=0,p=0,v=0,o=0;o<e;o++)c=n[o],p=(i^c)&255,v=EY[p],i=i>>>8^v;return i^-1},a.convertTime=function(t){var e=t.getHours();return e<<=6,e=e|t.getMinutes(),e<<=5,e=e|t.getSeconds()/2,e},a.convertDate=function(t){var e=t.getFullYear()-1980;return e<<=4,e=e|t.getMonth()+1,e<<=5,e=e|t.getDate(),e},a.folders=[],a.files=[],a}();Xe.register(lY,!1),Xe.register(gY,!1),Xe.register(YR,!1),r.AbstractHeaderCellCtrl=el,r.AgAbstractField=nr,r.AgAngleSelect=SR,r.AgCheckbox=Fa,r.AgColorPicker=ER,r.AgDialog=Dg,r.AgGroupComponent=gR,r.AgInputNumberField=bR,r.AgInputRange=_R,r.AgInputTextArea=CR,r.AgInputTextField=Pg,r.AgPanel=Tg,r.AgPromise=Wn,r.AgRadioButton=XS,r.AgSelect=Hh,r.AgSlider=wR,r.AgStackComponentsRegistry=Mb,r.AgToggleButton=RR,r.AlignedGridsService=rR,r.AnimateShowChangeCellRenderer=I_,r.AnimateSlideCellRenderer=M_,r.AnimationFrameService=uR,r.AutoScrollService=CS,r.AutoWidthCalculator=kS,r.Autowired=x,r.BaseComponentWrapper=U7,r.BaseCreator=WR,r.BaseGridSerializingSession=$R,r.Bean=Me,r.BeanStub=Ee,r.Beans=ng,r.BodyDropPivotTarget=aS,r.BodyDropTarget=sS,r.CellComp=LR,r.CellCtrl=Yr,r.CellNavigationService=KS,r.CellPositionUtils=TR,r.ChangedPath=Ec,r.CheckboxSelectionComponent=Xh,r.ColDefUtil=uh,r.Color=Ea,r.Column=mt,r.ColumnApi=Y_,r.ColumnFactory=_b,r.ColumnGroup=pn,r.ColumnKeyCreator=T,r.ColumnModel=Db,r.ColumnUtils=Nb,r.Component=rt,r.ComponentUtil=co,r.Constants=ie,r.Context=yb,r.CssClassApplier=ug,r.CsvCreator=UR,r.CsvExportModule=YR,r.CtrlsService=IR,r.CustomTooltipFeature=xh,r.DateFilter=zh,r.DisplayedGroupCreator=Fb,r.Downloader=zR,r.DragAndDropService=Fn,r.DragService=$S,r.Environment=lR,r.EventService=Rr,r.Events=$,r.ExpressionService=NS,r.FilterManager=mS,r.FloatingFilterMapper=lS,r.FocusService=La,r.Grid=kg,r.GridApi=PS,r.GridBodyComp=DS,r.GridBodyCtrl=SS,r.GridComp=WS,r.GridCoreCreator=GR,r.GridCtrl=VS,r.GridHeaderComp=gS,r.GridHeaderCtrl=nS,r.GridOptionsWrapper=Le,r.GridSerializer=KR,r.GroupCellRenderer=Qh,r.GroupCellRendererCtrl=k_,r.GroupInstanceIdCreator=nh,r.HeaderCellCtrl=dS,r.HeaderFilterCellComp=Z_,r.HeaderFilterCellCtrl=cS,r.HeaderGroupCellCtrl=pS,r.HeaderNavigationService=tS,r.HeaderPositionUtils=AR,r.HeaderRowComp=eS,r.HeaderRowContainerComp=Dc,r.HeaderRowContainerCtrl=hS,r.HeaderRowCtrl=Tc,r.HorizontalResizeService=GS,r.KeyCode=Oe,r.LargeTextCellEditor=P_,r.Logger=Nc,r.LoggerFactory=xS,r.ManagedFocusFeature=Tr,r.ModuleRegistry=Xe,r.MouseEventService=US,r.MoveColumnFeature=rS,r.NavigationService=cR,r.NumberFilter=Uh,r.NumberSequence=Ti,r.Optional=gt,r.PaginationProxy=tR,r.PinnedRowModel=DR,r.PopupComponent=Ta,r.PopupEditorWrapper=MR,r.PopupSelectCellEditor=N_,r.PopupService=MS,r.PopupTextCellEditor=F_,r.PositionableFeature=vR,r.PostConstruct=De,r.PreConstruct=Qf,r.PreDestroy=dn,r.PropertyKeys=Zo,r.ProvidedColumnGroup=zt,r.ProvidedFilter=Ks,r.Qualifier=wn,r.QuerySelector=u6,r.RefSelector=we,r.ResizeObserverService=hR,r.RowContainerComp=xR,r.RowContainerCtrl=Ac,r.RowCtrl=qr,r.RowNode=it,r.RowNodeBlock=Bc,r.RowNodeBlockLoader=NR,r.RowNodeSorter=FR,r.RowPositionUtils=OR,r.RowRenderer=Q_,r.ScalarFilter=Nn,r.ScrollVisibleService=ZS,r.SelectCellEditor=qh,r.SelectableService=pR,r.SelectionService=K_,r.SetLeftFeature=Rc,r.SimpleFilter=An,r.SortController=zS,r.StandardMenuFactory=kR,r.StylingService=eR,r.TabGuardComp=yg,r.TabGuardCtrl=HS,r.TabbedLayout=H7,r.TemplateService=IS,r.TextCellEditor=yc,r.TextFilter=mc,r.TextFloatingFilter=D_,r.Timer=i6,r.TouchListener=ho,r.UserComponentFactory=W_,r.UserComponentRegistry=V_,r.ValueCache=oR,r.ValueFormatterService=qS,r.ValueService=yS,r.VanillaFrameworkOverrides=QS,r.VirtualList=z7,r.XmlFactory=wY,r.ZipContainer=bY,r._=xe,r.defaultGroupComparator=j7,r.initialiseAgGridWithAngular1=x7,r.initialiseAgGridWithWebComponents=G7,r.simpleHttpRequest=W7,r.stringToArray=Lb})(qo);var jr=globalThis&&globalThis.__assign||function(){return jr=Object.assign||function(r){for(var l,u=1,d=arguments.length;u<d;u++){l=arguments[u];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(r[f]=l[f])}return r},jr.apply(this,arguments)},EU=function(){function r(){}return r.getComponentDefinition=function(l,u){var d;return typeof l=="string"?(d=this.searchForComponentInstance(u,l),d.template?d=jr({},s.defineComponent(d)):d={extends:s.defineComponent(d)}):d={extends:s.defineComponent(jr({},l))},d||console.error("Could not find component with name of "+l+". Is it in Vue.components?"),d.extends&&d.extends.setup&&(d.setup=d.extends.setup),d},r.createComponentParams=function(l,u){var d={params:Object.freeze(l),parent:u};return u.componentDependencies&&u.componentDependencies.forEach(function(f){return d[f]=u[f]}),d},r.createAndMountComponent=function(l,u,d){var f=r.getComponentDefinition(l,d);if(f){var h=r.createComponentParams(u,d),g=null,m=s.defineComponent(jr(jr({},f),{data:function(){return jr(jr({},h),f.data?f.data():{})},created:function(){g=this.$root,f.created&&f.created.bind(this)()}})),y=document.createElement("div"),C=s.createApp(m);return C.mount(y),{mountedComponent:C,componentInstance:g}}},r.searchForComponentInstance=function(l,u,d){d===void 0&&(d=10);for(var f=null,h=l.$parent,g=0;!f&&h&&h.$options&&++g<d;)f=h.$options.components[u],h=h.$parent;return f||(console.error("Could not find component with name of "+u+". Is it in Vue.components?"),null)},r}(),pb=globalThis&&globalThis.__extends||function(){var r=function(l,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)f.hasOwnProperty(h)&&(d[h]=f[h])},r(l,u)};return function(l,u){r(l,u);function d(){this.constructor=l}l.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}}(),bU=globalThis&&globalThis.__decorate||function(r,l,u,d){var f=arguments.length,h=f<3?l:d===null?d=Object.getOwnPropertyDescriptor(l,u):d,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(r,l,u,d);else for(var m=r.length-1;m>=0;m--)(g=r[m])&&(h=(f<3?g(h):f>3?g(l,u,h):g(l,u))||h);return f>3&&h&&Object.defineProperty(l,u,h),h},_U=function(r){pb(l,r);function l(u){var d=r.call(this)||this;return d.parent=u,d}return l.prototype.createWrapper=function(u){var d=this,f=function(g){pb(m,g);function m(){return g!==null&&g.apply(this,arguments)||this}return m.prototype.init=function(y){g.prototype.init.call(this,y)},m.prototype.hasMethod=function(y){return h.getFrameworkComponentInstance()[y]!=null},m.prototype.callMethod=function(y,C){var _=this.getFrameworkComponentInstance(),E=h.getFrameworkComponentInstance();return E[y].apply(_,C)},m.prototype.addMethod=function(y,C){h[y]=C},m.prototype.overrideProcessing=function(y){return d.parent.autoParamsRefresh&&y==="refresh"},m.prototype.processMethod=function(y,C){return y==="refresh"&&(this.getFrameworkComponentInstance().params=C[0]),this.hasMethod(y)?this.callMethod(y,C):y==="refresh"},m.prototype.createComponent=function(y){return d.createComponent(u,y)},m}(SU),h=new f;return h},l.prototype.createComponent=function(u,d){return EU.createAndMountComponent(u,d,this.parent)},l.prototype.createMethodProxy=function(u,d,f){return function(){return u.overrideProcessing(d)?u.processMethod(d,arguments):u.hasMethod(d)?u.callMethod(d,arguments):(f&&console.warn("AG Grid: Framework component is missing the method "+d+"()"),null)}},l.prototype.destroy=function(){this.parent=null},l=bU([qo.Bean("frameworkComponentWrapper")],l),l}(qo.BaseComponentWrapper),SU=function(){function r(){}return r.prototype.getGui=function(){return this.componentInstance.$el},r.prototype.destroy=function(){this.mountedComponent.unmount()},r.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},r.prototype.init=function(l){var u=this.createComponent(l),d=u.mountedComponent,f=u.componentInstance;this.mountedComponent=d,this.componentInstance=f},r}(),fb=function(r){return r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},hb=function(r){return"on"+r.charAt(0).toUpperCase()+r.substring(1,r.length)},RU=function(){var r={gridOptions:{default:function(){return{}}},autoParamsRefresh:!1,componentDependencies:{default:function(){return[]}},modules:{default:function(){return[]}},rowDataModel:void 0},l=qo.ComponentUtil.EVENTS.map(function(f){return hb(fb(f))});l.reduce(function(f,h){return f[h]=void 0,f},r);var u={rowDataModel:function(f,h){this.processChanges("rowData",f,h)}};qo.ComponentUtil.ALL_PROPERTIES.forEach(function(f){r[f]={},u[f]=function(h,g){this.processChanges(f,h,g)}});var d={prop:"rowDataModel",event:"data-model-changed"};return[r,u,d]},gb=function(){function r(){}return r.hasChildColumns=function(l){return l&&l.default&&l.default.length>0},r.mapChildColumnDefs=function(l){return l.default.map(function(u){return r.toColDef(u)})},r.toColDef=function(l){var u=r.createColDefFromGridColumn(l);return l.children&&l.children.length>0&&(u.children=r.getChildColDefs(l.children)),u},r.getChildColDefs=function(l){return l.map(function(u){return r.createColDefFromGridColumn(u)})},r.createColDefFromGridColumn=function(l){var u={};return r.assign(u,l.data.attrs),delete u.children,qo.ColDefUtil.BOOLEAN_PROPERTIES.forEach(function(d){var f=u;f[d]===""&&(f[d]=!0)}),u},r.assign=function(l,u){return[u].reduce(function(d,f){return Object.keys(f).forEach(function(h){d[h]=f[h]}),d},l)},r}(),OU=globalThis&&globalThis.__extends||function(){var r=function(l,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)f.hasOwnProperty(h)&&(d[h]=f[h])},r(l,u)};return function(l,u){r(l,u);function d(){this.constructor=l}l.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}}(),TU=globalThis&&globalThis.__decorate||function(r,l,u,d){var f=arguments.length,h=f<3?l:d===null?d=Object.getOwnPropertyDescriptor(l,u):d,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(r,l,u,d);else for(var m=r.length-1;m>=0;m--)(g=r[m])&&(h=(f<3?g(h):f>3?g(l,u,h):g(l,u))||h);return f>3&&h&&Object.defineProperty(l,u,h),h},Xf=RU(),DU=Xf[0],PU=Xf[1],AU=Xf[2],NU=function(r){OU(l,r);function l(){var d=r!==null&&r.apply(this,arguments)||this;return d.gridCreated=!1,d.isDestroyed=!1,d.gridReadyFired=!1,d.emitRowModel=null,d}u=l,l.prototype.render=function(){return s.h("div")},l.prototype.globalEventListener=function(d,f){this.isDestroyed||(d==="gridReady"&&(this.gridReadyFired=!0),this.updateModelIfUsed(d))},l.prototype.processChanges=function(d,f,h){if(this.gridCreated){if(this.skipChange(d,f,h))return;var g={};g[d]={currentValue:f,previousValue:h},qo.ComponentUtil.processOnChange(g,this.gridOptions,this.gridOptions.api,this.gridOptions.columnApi)}},l.prototype.mounted=function(){var d=this;this.emitRowModel=this.debounce(function(){d.$emit(u.DATA_MODEL_ATTR_NAME,Object.freeze(d.getRowData()))},20);var f=new _U(this),h=lx(qo.ComponentUtil.copyAttributesToGridOptions(ls(this.gridOptions),this));this.checkForBindingConflicts(),h.rowData=this.getRowDataBasedOnBindings(),gb.hasChildColumns(this.$slots)&&(h.columnDefs=gb.mapChildColumnDefs(this.$slots));var g={globalEventListener:this.globalEventListener.bind(this),providedBeanInstances:{frameworkComponentWrapper:f},modules:this.modules};new qo.Grid(this.$el,h,g),this.gridCreated=!0},l.prototype.destroyed=function(){this.gridCreated&&(this.gridOptions.api&&this.gridOptions.api.destroy(),this.isDestroyed=!0)},l.prototype.checkForBindingConflicts=function(){var d=this;(d.rowData||this.gridOptions.rowData)&&d.rowDataModel&&console.warn("ag-grid: Using both rowData and rowDataModel. rowData will be ignored.")},l.prototype.getRowData=function(){var d=[];return this.gridOptions.api.forEachNode(function(f){d.push(f.data)}),d},l.prototype.updateModelIfUsed=function(d){this.gridReadyFired&&this.$attrs[u.DATA_MODEL_ATTR_NAME]&&u.ROW_DATA_EVENTS.indexOf(d)!==-1&&this.emitRowModel&&this.emitRowModel()},l.prototype.getRowDataBasedOnBindings=function(){var d=this,f=d.rowDataModel;return f||(d.rowData?d.rowData:d.gridOptions.rowData)},l.prototype.skipChange=function(d,f,h){if(this.gridReadyFired&&d==="rowData"&&this.$attrs[u.DATA_MODEL_ATTR_NAME]){if(f===h)return!0;if(f&&h){var g=f,m=h;if(g.length===m.length){for(var y=0;y<g.length;y++)if(g[y]!==m[y])return!1;return!0}}}return!1},l.prototype.debounce=function(d,f){var h;return function(){var g=function(){d()};window.clearTimeout(h),h=window.setTimeout(g,f)}};var u;return l.VERSION="Vue 3+",l.ROW_DATA_EVENTS=["rowDataChanged","rowDataUpdated","cellValueChanged","rowValueChanged"],l.DATA_MODEL_ATTR_NAME=hb(fb("data-model-changed")),l=u=TU([qo.Bean("agGridVue"),wU({props:DU,watch:PU,model:AU})],l),l}(db);const FU=bO(Object.freeze(Object.defineProperty({__proto__:null,AgGridVue:NU},Symbol.toStringTag,{value:"Module"})));(function(r){function l(u){for(var d in u)r.hasOwnProperty(d)||(r[d]=u[d])}l(FU)})(ab);const IU=s.defineComponent({name:"AgTable",components:{AgGridVue:ab.AgGridVue,ColumnCheck:ib},props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},emits:["onGridReady","handleSelectionChange","onViewportChanged","onRowSelected","onRowClicked"],setup(r,l){var V;const u=Ar();let d=null;const f=r.componentOption;let h=-1,g={};const m=s.reactive({showTable:!0,defaultColDef:{resizable:!0,headerClass:(V=f.configFlag)==null?void 0:V.headerClass},columnDefs:f.columns,configFlag:{rowHeight:40,checkboxSelection:!1,rowSelection:"multiple",rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!0,index:!1,border:!0,isRowClick:!1,isTotal:!1,groupSelectsChildren:!1,autoGroupColumnDef:{}},pageInfo:f.pageInfo,rowData:s.computed(()=>{const L=f.data.result||[];return L.length&&setTimeout(()=>{m.showTable=!0},300),L}),totalNum:s.computed(()=>Number(f.data.totalNum||0)),storageColumnsKey:s.computed(()=>(f.status||"")+(f.key||"")),gridApi:null,columnUpdate:0});f.configFlag&&Object.keys(f.configFlag).forEach(L=>{m.configFlag[L]=f.configFlag[L]}),m.configFlag.isRowClick&&s.watch(()=>f.data.result,()=>{h=-1}),m.configFlag.checkboxSelection&&(m.columnDefs=[{headerName:" ",field:" ",width:30,resizable:!1,headerCheckboxSelectionFilteredOnly:!0,headerCheckboxSelection:!0,checkboxSelection:m.configFlag.checkboxSelection,pinned:"left"},...f.columns]),m.configFlag.total&&s.watch(()=>f.data.result,()=>{y()});function y(){const L=[];let G={};m.columnDefs.map((I,Q)=>{G.type="total",Q===0?G[I.field]="总计":I.showTotal?G[I.field]=C(f.data.result,I.field):G[I.field]=""}),L.push(G),d.setPinnedBottomRowData(L)}function C(L,G){let I=0;for(let Q=0;Q<L.length;Q++)I=E0(I,parseFloat(L[Q][G]?L[Q][G]:0));return I}s.watch(()=>f.columns,()=>{const L=f.columns.filter(G=>G.rowGroup?G:(G.hide=G.hide?G.hide:!1,!G.hide));m.configFlag.checkboxSelection?m.columnDefs=[{headerName:" ",field:" ",width:30,resizable:!1,headerCheckboxSelectionFilteredOnly:!0,headerCheckboxSelection:!0,checkboxSelection:m.configFlag.checkboxSelection,pinned:"left"},...L]:m.columnDefs=L,_(),m.columnUpdate=Date.now(),setTimeout(()=>{m.configFlag.sizeColumnsToFit&&d.sizeColumnsToFit()})});function _(){let L=localStorage.getItem(m.storageColumnsKey);L&&(JSON.parse(L).forEach((I,Q)=>{for(let X=0,ue=m.columnDefs.length;X<ue;X++){const te=m.columnDefs[X];if(te.headerName===I.headerName){te.index=Q,te.width=I.width,te.minWidth=I.minWidth,te.hide=I.hide||!1;break}}}),m.columnDefs.sort((I,Q)=>I.index-Q.index))}_();function E(L){let G=L.api.getColumnDefs();G=G.map((I,Q)=>(I.hide&&(m.columnDefs[Q].hide=!0),{field:I.field,headerName:I.headerName,width:I.width,minWidth:I.minWidth,hide:I.hide})),localStorage.setItem(m.storageColumnsKey,JSON.stringify(G)),m.columnUpdate=Date.now()}function b(L){const G=r.getRowStyle?r.getRowStyle(L):{},I=L.api.getRowNode(L.rowIndex);return typeof m.configFlag.checkboxSelection=="function"&&(I.selectable=m.configFlag.checkboxSelection(L)),L.node.isClicked===void 0?G:L.node.isClicked?{"background-color":"#ffe48d",...G}:{"background-color":"",...G}}function R(L){l.emit("onRowSelected",L)}function S(){l.emit("onViewportChanged")}function T(L){d=m.gridApi=L.api,m.configFlag.sizeColumnsToFit&&L.api.sizeColumnsToFit(),l.emit("onGridReady",L.api)}function D(L){var G=L.api.getSelectedRows();f.onSelectionChanged&&f.onSelectionChanged(G)}function P(L){if(!L.rowPinned&&h!==L.rowIndex&&m.configFlag.isRowClick){if(h>-1){const I=L.api.getRowNode(h);I.isClicked=!1,I.setData(g)}const G=L.api.getRowNode(L.rowIndex);G.isClicked=!0,G.setData(L.data),f.onRowClickedFn&&f.onRowClickedFn(L,f),h=L.rowIndex,g=L.data}}function F(L){m.configFlag.onCellClicked&&m.configFlag.onCellClicked({field:L.colDef.field,data:L.data,rowIndex:L.rowIndex,tableComp:f},L)}function A(L){f.pageInfo.pageSize=L,u.dispatch("_TABLE_QUERY",{tableComp:f,pageKey:r.pageKey})}function M(L){f.pageInfo.currentPage=L,f.pageInfo.pageNum=L,u.dispatch("_TABLE_QUERY",{tableComp:f,pageKey:r.pageKey})}return{...s.toRefs(m),onGridReady:T,dragStopped:E,sizeChange:A,onSelectionChanged:D,currentChange:M,viewportChanged:S,onRowSelected:R,onRowClicked:P,onCellClicked:F,getRowStyle:b}}}),MU={style:{display:"flex","justify-content":"end"}};function LU(r,l,u,d,f,h){const g=s.resolveComponent("ag-grid-vue"),m=oE,y=ib;return s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(g,{class:s.normalizeClass(["ag-theme-alpine",[r.storageColumnsKey]]),style:s.normalizeStyle({opacity:r.showTable?1:0}),headerHeight:"22",rowHeight:r.configFlag.rowHeight,columnDefs:r.columnDefs,defaultColDef:r.defaultColDef,rowData:r.rowData,rowSelection:"multiple",rowMultiSelectWithClick:r.configFlag.rowMultiSelectWithClick,autoGroupColumnDef:r.configFlag.autoGroupColumnDef,suppressRowDeselection:!1,suppressRowClickSelection:!!(r.configFlag.suppressRowClickSelection||!r.configFlag.suppressRowClickSelection&&r.configFlag.suppressRowClickSelection!==!1),onGridReady:r.onGridReady,onSelectionChanged:r.onSelectionChanged,getRowStyle:r.getRowStyle,enableCellTextSelection:!0,ensureDomOrder:!0,groupSelectsChildren:r.configFlag.groupSelectsChildren,onViewportChanged:r.viewportChanged,onRowSelected:r.onRowSelected,onRowClicked:r.onRowClicked,onDragStopped:r.dragStopped,onCellClicked:r.onCellClicked,suppressAggFuncInHeader:!0,suppressContextMenu:!0},null,8,["class","style","rowHeight","columnDefs","defaultColDef","rowData","rowMultiSelectWithClick","autoGroupColumnDef","suppressRowClickSelection","onGridReady","onSelectionChanged","getRowStyle","groupSelectsChildren","onViewportChanged","onRowSelected","onRowClicked","onDragStopped","onCellClicked"]),s.renderSlot(r.$slots,r.configFlag.slotName),s.createElementVNode("div",MU,[r.pageInfo?(s.openBlock(),s.createBlock(m,{key:0,style:{"margin-top":"5px"},total:r.totalNum,pageNum:r.pageInfo.currentPage,pageSize:r.pageInfo.pageSize,layout:"total,sizes, prev, pager, next",onSizeChange:r.sizeChange,onCurrentChange:r.currentChange,"page-sizes":[20,50,100,300,500],small:""},null,8,["total","pageNum","pageSize","onSizeChange","onCurrentChange"])):s.createCommentVNode("",!0)]),s.createVNode(y,{gridApi:r.gridApi,storageColumnsKey:r.storageColumnsKey,columnDefs:r.columnDefs,columnUpdate:r.columnUpdate},null,8,["gridApi","storageColumnsKey","columnDefs","columnUpdate"])],64)}const xU=Tn(IU,[["render",LU]]),mX="",yX="",kU=s.defineComponent({name:"Descriptions",props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},setup(){}});function GU(r,l,u,d,f,h){const g=PH,m=DH;return s.openBlock(),s.createBlock(m,{title:r.componentOption.title,direction:r.componentOption.vertical||"horizontal",column:r.componentOption.column||1,size:r.componentOption.size,border:r.componentOption.border,style:s.normalizeStyle([r.componentOption.style,{"margin-bottom":"10px"}])},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.componentOption.children,y=>(s.openBlock(),s.createBlock(g,{key:y.text,label:y.label,span:y.span,align:y.align||"left"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(y.text),1)]),_:2},1032,["label","span","align"]))),128))]),_:1},8,["title","direction","column","size","border","style"])}const VU=Tn(kU,[["render",GU]]),BU=r=>{[Tj,Uj,eU,xU,FE,Af,VU].map(u=>{r.component(u.name,u)})},HU=(r,l)=>{["getters","_actions"].forEach(u=>{Object.keys(wi[u]).forEach(d=>{l.store[u][d]=wi[u][d]})}),l.store.state._BASE_URL=l.baseUrl,wi.commit("saveUrl",l.baseUrl),wi.commit("saveState",l.store),BU(r),r.component("DfsPageConfig",Hz)};Zt.EleTable=Ku,Zt.default=HU,Object.defineProperties(Zt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1557
+ \0`+(O?"\0\b":"\0\0")+"\0\0"+v(N,2)+v(B,2)+v(fe?this.getFromCrc32Table(Te):0,4)+v(fe,4)+v(fe,4)+v(w.length,2)+v(z.length,2),me="PK"+Ce+w+z,Pe="PK\0"+Ce+"\0\0\0\0\0\0"+(n?"\0\0\0\0":"\0\0\0")+v(e,4)+w+z;return{fileHeader:me,folderHeader:Pe,content:Te||""}},a.getConvertedContent=function(t,e){return e===void 0&&(e=!1),e&&(t=t.split(";base64,")[1]),t=e?atob(t):t,{size:t.length,content:t}},a.buildFolderEnd=function(t,e,n){var o=xe.decToHex;return"PK\0\0\0\0"+o(t,2)+o(t,2)+o(e,4)+o(n,4)+"\0\0"},a.buildUint8Array=function(t){for(var e=new Uint8Array(t.length),n=0;n<e.length;n++)e[n]=t.charCodeAt(n);return e},a.getFromCrc32Table=function(t){if(!t.length)return 0;for(var e=t.length,n=new Uint8Array(e),o=0;o<e;o++)n[o]=t.charCodeAt(o);for(var i=-1,c=0,p=0,v=0,o=0;o<e;o++)c=n[o],p=(i^c)&255,v=EY[p],i=i>>>8^v;return i^-1},a.convertTime=function(t){var e=t.getHours();return e<<=6,e=e|t.getMinutes(),e<<=5,e=e|t.getSeconds()/2,e},a.convertDate=function(t){var e=t.getFullYear()-1980;return e<<=4,e=e|t.getMonth()+1,e<<=5,e=e|t.getDate(),e},a.folders=[],a.files=[],a}();Xe.register(lY,!1),Xe.register(gY,!1),Xe.register(YR,!1),r.AbstractHeaderCellCtrl=el,r.AgAbstractField=nr,r.AgAngleSelect=SR,r.AgCheckbox=Fa,r.AgColorPicker=ER,r.AgDialog=Dg,r.AgGroupComponent=gR,r.AgInputNumberField=bR,r.AgInputRange=_R,r.AgInputTextArea=CR,r.AgInputTextField=Pg,r.AgPanel=Tg,r.AgPromise=Wn,r.AgRadioButton=XS,r.AgSelect=Hh,r.AgSlider=wR,r.AgStackComponentsRegistry=Mb,r.AgToggleButton=RR,r.AlignedGridsService=rR,r.AnimateShowChangeCellRenderer=I_,r.AnimateSlideCellRenderer=M_,r.AnimationFrameService=uR,r.AutoScrollService=CS,r.AutoWidthCalculator=kS,r.Autowired=x,r.BaseComponentWrapper=U7,r.BaseCreator=WR,r.BaseGridSerializingSession=$R,r.Bean=Me,r.BeanStub=Ee,r.Beans=ng,r.BodyDropPivotTarget=aS,r.BodyDropTarget=sS,r.CellComp=LR,r.CellCtrl=Yr,r.CellNavigationService=KS,r.CellPositionUtils=TR,r.ChangedPath=Ec,r.CheckboxSelectionComponent=Xh,r.ColDefUtil=uh,r.Color=Ea,r.Column=mt,r.ColumnApi=Y_,r.ColumnFactory=_b,r.ColumnGroup=pn,r.ColumnKeyCreator=T,r.ColumnModel=Db,r.ColumnUtils=Nb,r.Component=rt,r.ComponentUtil=co,r.Constants=ie,r.Context=yb,r.CssClassApplier=ug,r.CsvCreator=UR,r.CsvExportModule=YR,r.CtrlsService=IR,r.CustomTooltipFeature=xh,r.DateFilter=zh,r.DisplayedGroupCreator=Fb,r.Downloader=zR,r.DragAndDropService=Fn,r.DragService=$S,r.Environment=lR,r.EventService=Rr,r.Events=$,r.ExpressionService=NS,r.FilterManager=mS,r.FloatingFilterMapper=lS,r.FocusService=La,r.Grid=kg,r.GridApi=PS,r.GridBodyComp=DS,r.GridBodyCtrl=SS,r.GridComp=WS,r.GridCoreCreator=GR,r.GridCtrl=VS,r.GridHeaderComp=gS,r.GridHeaderCtrl=nS,r.GridOptionsWrapper=Le,r.GridSerializer=KR,r.GroupCellRenderer=Qh,r.GroupCellRendererCtrl=k_,r.GroupInstanceIdCreator=nh,r.HeaderCellCtrl=dS,r.HeaderFilterCellComp=Z_,r.HeaderFilterCellCtrl=cS,r.HeaderGroupCellCtrl=pS,r.HeaderNavigationService=tS,r.HeaderPositionUtils=AR,r.HeaderRowComp=eS,r.HeaderRowContainerComp=Dc,r.HeaderRowContainerCtrl=hS,r.HeaderRowCtrl=Tc,r.HorizontalResizeService=GS,r.KeyCode=Oe,r.LargeTextCellEditor=P_,r.Logger=Nc,r.LoggerFactory=xS,r.ManagedFocusFeature=Tr,r.ModuleRegistry=Xe,r.MouseEventService=US,r.MoveColumnFeature=rS,r.NavigationService=cR,r.NumberFilter=Uh,r.NumberSequence=Ti,r.Optional=gt,r.PaginationProxy=tR,r.PinnedRowModel=DR,r.PopupComponent=Ta,r.PopupEditorWrapper=MR,r.PopupSelectCellEditor=N_,r.PopupService=MS,r.PopupTextCellEditor=F_,r.PositionableFeature=vR,r.PostConstruct=De,r.PreConstruct=Qf,r.PreDestroy=dn,r.PropertyKeys=Zo,r.ProvidedColumnGroup=zt,r.ProvidedFilter=Ks,r.Qualifier=wn,r.QuerySelector=u6,r.RefSelector=we,r.ResizeObserverService=hR,r.RowContainerComp=xR,r.RowContainerCtrl=Ac,r.RowCtrl=qr,r.RowNode=it,r.RowNodeBlock=Bc,r.RowNodeBlockLoader=NR,r.RowNodeSorter=FR,r.RowPositionUtils=OR,r.RowRenderer=Q_,r.ScalarFilter=Nn,r.ScrollVisibleService=ZS,r.SelectCellEditor=qh,r.SelectableService=pR,r.SelectionService=K_,r.SetLeftFeature=Rc,r.SimpleFilter=An,r.SortController=zS,r.StandardMenuFactory=kR,r.StylingService=eR,r.TabGuardComp=yg,r.TabGuardCtrl=HS,r.TabbedLayout=H7,r.TemplateService=IS,r.TextCellEditor=yc,r.TextFilter=mc,r.TextFloatingFilter=D_,r.Timer=i6,r.TouchListener=ho,r.UserComponentFactory=W_,r.UserComponentRegistry=V_,r.ValueCache=oR,r.ValueFormatterService=qS,r.ValueService=yS,r.VanillaFrameworkOverrides=QS,r.VirtualList=z7,r.XmlFactory=wY,r.ZipContainer=bY,r._=xe,r.defaultGroupComparator=j7,r.initialiseAgGridWithAngular1=x7,r.initialiseAgGridWithWebComponents=G7,r.simpleHttpRequest=W7,r.stringToArray=Lb})(qo);var jr=globalThis&&globalThis.__assign||function(){return jr=Object.assign||function(r){for(var l,u=1,d=arguments.length;u<d;u++){l=arguments[u];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(r[f]=l[f])}return r},jr.apply(this,arguments)},EU=function(){function r(){}return r.getComponentDefinition=function(l,u){var d;return typeof l=="string"?(d=this.searchForComponentInstance(u,l),d.template?d=jr({},s.defineComponent(d)):d={extends:s.defineComponent(d)}):d={extends:s.defineComponent(jr({},l))},d||console.error("Could not find component with name of "+l+". Is it in Vue.components?"),d.extends&&d.extends.setup&&(d.setup=d.extends.setup),d},r.createComponentParams=function(l,u){var d={params:Object.freeze(l),parent:u};return u.componentDependencies&&u.componentDependencies.forEach(function(f){return d[f]=u[f]}),d},r.createAndMountComponent=function(l,u,d){var f=r.getComponentDefinition(l,d);if(f){var h=r.createComponentParams(u,d),g=null,m=s.defineComponent(jr(jr({},f),{data:function(){return jr(jr({},h),f.data?f.data():{})},created:function(){g=this.$root,f.created&&f.created.bind(this)()}})),y=document.createElement("div"),C=s.createApp(m);return C.mount(y),{mountedComponent:C,componentInstance:g}}},r.searchForComponentInstance=function(l,u,d){d===void 0&&(d=10);for(var f=null,h=l.$parent,g=0;!f&&h&&h.$options&&++g<d;)f=h.$options.components[u],h=h.$parent;return f||(console.error("Could not find component with name of "+u+". Is it in Vue.components?"),null)},r}(),pb=globalThis&&globalThis.__extends||function(){var r=function(l,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)f.hasOwnProperty(h)&&(d[h]=f[h])},r(l,u)};return function(l,u){r(l,u);function d(){this.constructor=l}l.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}}(),bU=globalThis&&globalThis.__decorate||function(r,l,u,d){var f=arguments.length,h=f<3?l:d===null?d=Object.getOwnPropertyDescriptor(l,u):d,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(r,l,u,d);else for(var m=r.length-1;m>=0;m--)(g=r[m])&&(h=(f<3?g(h):f>3?g(l,u,h):g(l,u))||h);return f>3&&h&&Object.defineProperty(l,u,h),h},_U=function(r){pb(l,r);function l(u){var d=r.call(this)||this;return d.parent=u,d}return l.prototype.createWrapper=function(u){var d=this,f=function(g){pb(m,g);function m(){return g!==null&&g.apply(this,arguments)||this}return m.prototype.init=function(y){g.prototype.init.call(this,y)},m.prototype.hasMethod=function(y){return h.getFrameworkComponentInstance()[y]!=null},m.prototype.callMethod=function(y,C){var _=this.getFrameworkComponentInstance(),E=h.getFrameworkComponentInstance();return E[y].apply(_,C)},m.prototype.addMethod=function(y,C){h[y]=C},m.prototype.overrideProcessing=function(y){return d.parent.autoParamsRefresh&&y==="refresh"},m.prototype.processMethod=function(y,C){return y==="refresh"&&(this.getFrameworkComponentInstance().params=C[0]),this.hasMethod(y)?this.callMethod(y,C):y==="refresh"},m.prototype.createComponent=function(y){return d.createComponent(u,y)},m}(SU),h=new f;return h},l.prototype.createComponent=function(u,d){return EU.createAndMountComponent(u,d,this.parent)},l.prototype.createMethodProxy=function(u,d,f){return function(){return u.overrideProcessing(d)?u.processMethod(d,arguments):u.hasMethod(d)?u.callMethod(d,arguments):(f&&console.warn("AG Grid: Framework component is missing the method "+d+"()"),null)}},l.prototype.destroy=function(){this.parent=null},l=bU([qo.Bean("frameworkComponentWrapper")],l),l}(qo.BaseComponentWrapper),SU=function(){function r(){}return r.prototype.getGui=function(){return this.componentInstance.$el},r.prototype.destroy=function(){this.mountedComponent.unmount()},r.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},r.prototype.init=function(l){var u=this.createComponent(l),d=u.mountedComponent,f=u.componentInstance;this.mountedComponent=d,this.componentInstance=f},r}(),fb=function(r){return r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},hb=function(r){return"on"+r.charAt(0).toUpperCase()+r.substring(1,r.length)},RU=function(){var r={gridOptions:{default:function(){return{}}},autoParamsRefresh:!1,componentDependencies:{default:function(){return[]}},modules:{default:function(){return[]}},rowDataModel:void 0},l=qo.ComponentUtil.EVENTS.map(function(f){return hb(fb(f))});l.reduce(function(f,h){return f[h]=void 0,f},r);var u={rowDataModel:function(f,h){this.processChanges("rowData",f,h)}};qo.ComponentUtil.ALL_PROPERTIES.forEach(function(f){r[f]={},u[f]=function(h,g){this.processChanges(f,h,g)}});var d={prop:"rowDataModel",event:"data-model-changed"};return[r,u,d]},gb=function(){function r(){}return r.hasChildColumns=function(l){return l&&l.default&&l.default.length>0},r.mapChildColumnDefs=function(l){return l.default.map(function(u){return r.toColDef(u)})},r.toColDef=function(l){var u=r.createColDefFromGridColumn(l);return l.children&&l.children.length>0&&(u.children=r.getChildColDefs(l.children)),u},r.getChildColDefs=function(l){return l.map(function(u){return r.createColDefFromGridColumn(u)})},r.createColDefFromGridColumn=function(l){var u={};return r.assign(u,l.data.attrs),delete u.children,qo.ColDefUtil.BOOLEAN_PROPERTIES.forEach(function(d){var f=u;f[d]===""&&(f[d]=!0)}),u},r.assign=function(l,u){return[u].reduce(function(d,f){return Object.keys(f).forEach(function(h){d[h]=f[h]}),d},l)},r}(),OU=globalThis&&globalThis.__extends||function(){var r=function(l,u){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var h in f)f.hasOwnProperty(h)&&(d[h]=f[h])},r(l,u)};return function(l,u){r(l,u);function d(){this.constructor=l}l.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}}(),TU=globalThis&&globalThis.__decorate||function(r,l,u,d){var f=arguments.length,h=f<3?l:d===null?d=Object.getOwnPropertyDescriptor(l,u):d,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(r,l,u,d);else for(var m=r.length-1;m>=0;m--)(g=r[m])&&(h=(f<3?g(h):f>3?g(l,u,h):g(l,u))||h);return f>3&&h&&Object.defineProperty(l,u,h),h},Xf=RU(),DU=Xf[0],PU=Xf[1],AU=Xf[2],NU=function(r){OU(l,r);function l(){var d=r!==null&&r.apply(this,arguments)||this;return d.gridCreated=!1,d.isDestroyed=!1,d.gridReadyFired=!1,d.emitRowModel=null,d}u=l,l.prototype.render=function(){return s.h("div")},l.prototype.globalEventListener=function(d,f){this.isDestroyed||(d==="gridReady"&&(this.gridReadyFired=!0),this.updateModelIfUsed(d))},l.prototype.processChanges=function(d,f,h){if(this.gridCreated){if(this.skipChange(d,f,h))return;var g={};g[d]={currentValue:f,previousValue:h},qo.ComponentUtil.processOnChange(g,this.gridOptions,this.gridOptions.api,this.gridOptions.columnApi)}},l.prototype.mounted=function(){var d=this;this.emitRowModel=this.debounce(function(){d.$emit(u.DATA_MODEL_ATTR_NAME,Object.freeze(d.getRowData()))},20);var f=new _U(this),h=lx(qo.ComponentUtil.copyAttributesToGridOptions(ls(this.gridOptions),this));this.checkForBindingConflicts(),h.rowData=this.getRowDataBasedOnBindings(),gb.hasChildColumns(this.$slots)&&(h.columnDefs=gb.mapChildColumnDefs(this.$slots));var g={globalEventListener:this.globalEventListener.bind(this),providedBeanInstances:{frameworkComponentWrapper:f},modules:this.modules};new qo.Grid(this.$el,h,g),this.gridCreated=!0},l.prototype.destroyed=function(){this.gridCreated&&(this.gridOptions.api&&this.gridOptions.api.destroy(),this.isDestroyed=!0)},l.prototype.checkForBindingConflicts=function(){var d=this;(d.rowData||this.gridOptions.rowData)&&d.rowDataModel&&console.warn("ag-grid: Using both rowData and rowDataModel. rowData will be ignored.")},l.prototype.getRowData=function(){var d=[];return this.gridOptions.api.forEachNode(function(f){d.push(f.data)}),d},l.prototype.updateModelIfUsed=function(d){this.gridReadyFired&&this.$attrs[u.DATA_MODEL_ATTR_NAME]&&u.ROW_DATA_EVENTS.indexOf(d)!==-1&&this.emitRowModel&&this.emitRowModel()},l.prototype.getRowDataBasedOnBindings=function(){var d=this,f=d.rowDataModel;return f||(d.rowData?d.rowData:d.gridOptions.rowData)},l.prototype.skipChange=function(d,f,h){if(this.gridReadyFired&&d==="rowData"&&this.$attrs[u.DATA_MODEL_ATTR_NAME]){if(f===h)return!0;if(f&&h){var g=f,m=h;if(g.length===m.length){for(var y=0;y<g.length;y++)if(g[y]!==m[y])return!1;return!0}}}return!1},l.prototype.debounce=function(d,f){var h;return function(){var g=function(){d()};window.clearTimeout(h),h=window.setTimeout(g,f)}};var u;return l.VERSION="Vue 3+",l.ROW_DATA_EVENTS=["rowDataChanged","rowDataUpdated","cellValueChanged","rowValueChanged"],l.DATA_MODEL_ATTR_NAME=hb(fb("data-model-changed")),l=u=TU([qo.Bean("agGridVue"),wU({props:DU,watch:PU,model:AU})],l),l}(db);const FU=bO(Object.freeze(Object.defineProperty({__proto__:null,AgGridVue:NU},Symbol.toStringTag,{value:"Module"})));(function(r){function l(u){for(var d in u)r.hasOwnProperty(d)||(r[d]=u[d])}l(FU)})(ab);const IU=s.defineComponent({name:"AgTable",components:{AgGridVue:ab.AgGridVue,ColumnCheck:ib},props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},emits:["onGridReady","handleSelectionChange","onViewportChanged","onRowSelected","onRowClicked"],setup(r,l){var V;const u=Ar();let d=null;const f=r.componentOption;let h=-1,g={};const m=s.reactive({showTable:!0,defaultColDef:{resizable:!0,headerClass:(V=f.configFlag)==null?void 0:V.headerClass},columnDefs:f.columns,configFlag:{rowHeight:40,checkboxSelection:!1,rowSelection:"multiple",rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!0,index:!1,border:!0,isRowClick:!1,isTotal:!1,groupSelectsChildren:!1,autoGroupColumnDef:{}},pageInfo:f.pageInfo,rowData:s.computed(()=>{const L=f.data.result||[];return L.length&&setTimeout(()=>{m.showTable=!0},300),L}),totalNum:s.computed(()=>Number(f.data.totalNum||0)),storageColumnsKey:s.computed(()=>(f.status||"")+(f.key||"")),gridApi:null,columnUpdate:0});f.configFlag&&Object.keys(f.configFlag).forEach(L=>{m.configFlag[L]=f.configFlag[L]}),m.configFlag.isRowClick&&s.watch(()=>f.data.result,()=>{h=-1}),m.configFlag.checkboxSelection&&(m.columnDefs=[{headerName:" ",field:" ",width:30,resizable:!1,headerCheckboxSelectionFilteredOnly:!0,headerCheckboxSelection:!0,checkboxSelection:m.configFlag.checkboxSelection,pinned:"left"},...f.columns]),m.configFlag.total&&s.watch(()=>f.data.result,()=>{y()});function y(){const L=[];let G={};m.columnDefs.map((I,Q)=>{G.type="total",Q===0?G[I.field]="总计":I.showTotal?G[I.field]=C(f.data.result,I.field):G[I.field]=""}),L.push(G),d.setPinnedBottomRowData(L)}function C(L,G){let I=0;for(let Q=0;Q<L.length;Q++)I=E0(I,parseFloat(L[Q][G]?L[Q][G]:0));return I}s.watch(()=>f.columns,()=>{const L=f.columns.filter(G=>G.rowGroup?G:(G.hide=G.hide?G.hide:!1,!G.hide));m.configFlag.checkboxSelection?m.columnDefs=[{headerName:" ",field:" ",width:30,resizable:!1,headerCheckboxSelectionFilteredOnly:!0,headerCheckboxSelection:!0,checkboxSelection:m.configFlag.checkboxSelection,pinned:"left"},...L]:m.columnDefs=L,_(),m.columnUpdate=Date.now(),setTimeout(()=>{m.configFlag.sizeColumnsToFit&&d.sizeColumnsToFit()})});function _(){let L=localStorage.getItem(m.storageColumnsKey);L&&(JSON.parse(L).forEach((I,Q)=>{for(let X=0,ue=m.columnDefs.length;X<ue;X++){const te=m.columnDefs[X];if(te.headerName===I.headerName){te.index=Q,te.width=I.width,te.minWidth=I.minWidth,te.hide=I.hide||!1;break}}}),m.columnDefs.sort((I,Q)=>I.index-Q.index))}_();function E(L){let G=L.api.getColumnDefs();G=G.map((I,Q)=>(I.hide&&(m.columnDefs[Q].hide=!0),{field:I.field,headerName:I.headerName,width:I.width,minWidth:I.minWidth,hide:I.hide})),localStorage.setItem(m.storageColumnsKey,JSON.stringify(G)),m.columnUpdate=Date.now()}function b(L){const G=r.getRowStyle?r.getRowStyle(L):{},I=L.api.getRowNode(L.rowIndex);return typeof m.configFlag.checkboxSelection=="function"&&(I.selectable=m.configFlag.checkboxSelection(L)),L.node.isClicked===void 0?G:L.node.isClicked?{"background-color":"#ffe48d",...G}:{"background-color":"",...G}}function R(L){l.emit("onRowSelected",L)}function S(){l.emit("onViewportChanged")}function T(L){d=m.gridApi=L.api,m.configFlag.sizeColumnsToFit&&L.api.sizeColumnsToFit(),l.emit("onGridReady",L.api)}function D(L){var G=L.api.getSelectedRows();f.onSelectionChanged&&f.onSelectionChanged(G)}function P(L){if(!L.rowPinned&&h!==L.rowIndex&&m.configFlag.isRowClick){if(h>-1){const I=L.api.getRowNode(h);I.isClicked=!1,I.setData(g)}const G=L.api.getRowNode(L.rowIndex);G.isClicked=!0,G.setData(L.data),f.onRowClickedFn&&f.onRowClickedFn(L,f),h=L.rowIndex,g=L.data}}function F(L){m.configFlag.onCellClicked&&m.configFlag.onCellClicked({field:L.colDef.field,data:L.data,rowIndex:L.rowIndex,tableComp:f},L)}function A(L){f.pageInfo.pageSize=L,u.dispatch("_TABLE_QUERY",{tableComp:f,pageKey:r.pageKey})}function M(L){f.pageInfo.currentPage=L,f.pageInfo.pageNum=L,u.dispatch("_TABLE_QUERY",{tableComp:f,pageKey:r.pageKey})}return{...s.toRefs(m),onGridReady:T,dragStopped:E,sizeChange:A,onSelectionChanged:D,currentChange:M,viewportChanged:S,onRowSelected:R,onRowClicked:P,onCellClicked:F,getRowStyle:b}}}),MU={style:{display:"flex","justify-content":"end"}};function LU(r,l,u,d,f,h){const g=s.resolveComponent("ag-grid-vue"),m=oE,y=ib;return s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(g,{class:s.normalizeClass(["ag-theme-alpine",[r.storageColumnsKey]]),style:s.normalizeStyle({opacity:r.showTable?1:0}),headerHeight:"22",rowHeight:r.configFlag.rowHeight,columnDefs:r.columnDefs,defaultColDef:r.defaultColDef,rowData:r.rowData,rowSelection:"multiple",rowMultiSelectWithClick:r.configFlag.rowMultiSelectWithClick,autoGroupColumnDef:r.configFlag.autoGroupColumnDef,suppressRowDeselection:!1,suppressRowClickSelection:!!(r.configFlag.suppressRowClickSelection||!r.configFlag.suppressRowClickSelection&&r.configFlag.suppressRowClickSelection!==!1),onGridReady:r.onGridReady,onSelectionChanged:r.onSelectionChanged,getRowStyle:r.getRowStyle,enableCellTextSelection:!0,ensureDomOrder:!0,groupSelectsChildren:r.configFlag.groupSelectsChildren,onViewportChanged:r.viewportChanged,onRowSelected:r.onRowSelected,onRowClicked:r.onRowClicked,onDragStopped:r.dragStopped,onCellClicked:r.onCellClicked,suppressAggFuncInHeader:!0,suppressContextMenu:!0},null,8,["class","style","rowHeight","columnDefs","defaultColDef","rowData","rowMultiSelectWithClick","autoGroupColumnDef","suppressRowClickSelection","onGridReady","onSelectionChanged","getRowStyle","groupSelectsChildren","onViewportChanged","onRowSelected","onRowClicked","onDragStopped","onCellClicked"]),s.renderSlot(r.$slots,r.configFlag.slotName),s.createElementVNode("div",MU,[r.pageInfo?(s.openBlock(),s.createBlock(m,{key:0,style:{"margin-top":"5px"},total:r.totalNum,pageNum:r.pageInfo.currentPage,pageSize:r.pageInfo.pageSize,layout:"total,sizes, prev, pager, next",onSizeChange:r.sizeChange,onCurrentChange:r.currentChange,"page-sizes":[20,50,100,300,500],small:""},null,8,["total","pageNum","pageSize","onSizeChange","onCurrentChange"])):s.createCommentVNode("",!0)]),s.createVNode(y,{gridApi:r.gridApi,storageColumnsKey:r.storageColumnsKey,columnDefs:r.columnDefs,columnUpdate:r.columnUpdate},null,8,["gridApi","storageColumnsKey","columnDefs","columnUpdate"])],64)}const xU=Tn(IU,[["render",LU]]),mX="",yX="",kU=s.defineComponent({name:"Descriptions",props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},setup(){}});function GU(r,l,u,d,f,h){const g=PH,m=DH;return s.openBlock(),s.createBlock(m,{title:r.componentOption.title,direction:r.componentOption.vertical||"horizontal",column:r.componentOption.column||1,size:r.componentOption.size,border:r.componentOption.border,style:s.normalizeStyle([r.componentOption.style,{"margin-bottom":"10px"}])},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.componentOption.children,y=>(s.openBlock(),s.createBlock(g,{key:y.text,label:y.label,span:y.span,align:y.align||"left"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(y.text),1)]),_:2},1032,["label","span","align"]))),128))]),_:1},8,["title","direction","column","size","border","style"])}const VU=Tn(kU,[["render",GU]]),BU=r=>{[Tj,Uj,eU,xU,FE,Af,VU].map(u=>{r.component(u.name,u)})},HU=(r,l)=>{["state","getters","_actions"].forEach(u=>{Object.keys(wi[u]).forEach(d=>{l.store[u][d]=wi[u][d]})}),l.store.state._BASE_URL=l.baseUrl,wi.commit("saveUrl",l.baseUrl),wi.commit("saveState",l.store),BU(r),r.component("DfsPageConfig",Hz)};Zt.EleTable=Ku,Zt.default=HU,Object.defineProperties(Zt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dfs-page-config",
3
- "version": "0.0.97",
3
+ "version": "0.0.98",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"