dfs-page-config 0.0.12 → 0.0.14
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.
|
@@ -35911,7 +35911,7 @@ function rT(l, p, d, h, g, m) {
|
|
|
35911
35911
|
}
|
|
35912
35912
|
const nT = /* @__PURE__ */ je(oT, [["render", rT], ["__scopeId", "data-v-94f7ee6c"]]);
|
|
35913
35913
|
function sT(l) {
|
|
35914
|
-
l.use(rl).component("DfsPageConfig", nT);
|
|
35914
|
+
l.use(rl), l.component("DfsPageConfig", nT);
|
|
35915
35915
|
}
|
|
35916
35916
|
export {
|
|
35917
35917
|
sT as default
|
|
@@ -1494,4 +1494,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1494
1494
|
*/var qo=typeof dl>"u"?{}:dl;qo.HTMLElement=typeof HTMLElement>"u"?{}:HTMLElement,qo.HTMLButtonElement=typeof HTMLButtonElement>"u"?{}:HTMLButtonElement,qo.HTMLSelectElement=typeof HTMLSelectElement>"u"?{}:HTMLSelectElement,qo.HTMLInputElement=typeof HTMLInputElement>"u"?{}:HTMLInputElement,qo.Node=typeof Node>"u"?{}:Node,qo.MouseEvent=typeof MouseEvent>"u"?{}:MouseEvent;var Ph=function(){for(var i=0,t=0,e=arguments.length;t<e;t++)i+=arguments[t].length;for(var o=Array(i),r=0,t=0;t<e;t++)for(var n=arguments[t],s=0,a=n.length;s<a;s++,r++)o[r]=n[s];return o},oD=function(){function i(t,e,o,r,n,s,a,u){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=e,this.eventService=o,this.columnModel=r,this.gridApi=n,this.columnApi=s,this.beans=u,this.selectionService=a,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=i.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return i.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingTreeData=this.gridOptionsWrapper.isTreeData(),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},i.prototype.getCopyOfNodesMap=function(){return X.cloneObject(this.allNodesMap)},i.prototype.getRowNode=function(t){return this.allNodesMap[t]},i.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 o=this.rootNode,r=this.rootNode.sibling;o.childrenAfterFilter=null,o.childrenAfterGroup=null,o.childrenAfterSort=null,o.childrenMapped=null,o.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?o.allLeafChildren=t.map(function(n){return e.createNode(n,e.rootNode,i.TOP_LEVEL)}):(o.allLeafChildren=[],o.childrenAfterGroup=[]),r&&(r.childrenAfterFilter=o.childrenAfterFilter,r.childrenAfterGroup=o.childrenAfterGroup,r.childrenAfterSort=o.childrenAfterSort,r.childrenMapped=o.childrenMapped,r.allLeafChildren=o.allLeafChildren)},i.prototype.updateRowData=function(t,e){var o={remove:[],update:[],add:[]},r=[];return this.executeRemove(t,o,r),this.executeUpdate(t,o,r),this.executeAdd(t,o),this.updateSelection(r),e&&X.sortRowNodesByOrder(this.rootNode.allLeafChildren,e),o},i.prototype.updateSelection=function(t){var e=t.length>0;if(e&&t.forEach(function(r){r.setSelected(!1,!1,!0)}),this.selectionService.updateGroupsFromChildrenSelections(),e){var o={type:E.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},i.prototype.executeAdd=function(t,e){var o=this,r=t.add,n=t.addIndex;if(!X.missingOrEmpty(r)){var s=r.map(function(y){return o.createNode(y,o.rootNode,i.TOP_LEVEL)}),a=typeof n=="number"&&n>=0;if(a){var u=this.rootNode.allLeafChildren,c=u.slice(0,n),g=u.slice(n,u.length);this.rootNode.allLeafChildren=Ph(c,s,g)}else this.rootNode.allLeafChildren=Ph(this.rootNode.allLeafChildren,s);this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),e.add=s}},i.prototype.executeRemove=function(t,e,o){var r=this,n=t.remove;if(!X.missingOrEmpty(n)){var s={};n.forEach(function(a){var u=r.lookupRowNode(a);u&&(u.isSelected()&&o.push(u),u.clearRowTopAndRowIndex(),s[u.id]=!0,delete r.allNodesMap[u.id],e.remove.push(u))}),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter(function(a){return!s[a.id]}),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},i.prototype.executeUpdate=function(t,e,o){var r=this,n=t.update;X.missingOrEmpty(n)||n.forEach(function(s){var a=r.lookupRowNode(s);a&&(a.updateData(s),!a.selectable&&a.isSelected()&&o.push(a),r.setMasterForRow(a,s,i.TOP_LEVEL,!1),e.update.push(a))})},i.prototype.lookupRowNode=function(t){var e=this.gridOptionsWrapper.getRowNodeIdFunc(),o;if(X.exists(e)){var r=e(t);if(o=this.allNodesMap[r],!o)return console.error("AG Grid: could not find row id="+r+", data item was not found for this id"),null}else if(o=X.find(this.rootNode.allLeafChildren,function(n){return n.data===t}),!o)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 o},i.prototype.createNode=function(t,e,o){var r=new ae(this.beans);return r.group=!1,this.setMasterForRow(r,t,o,!0),e&&!this.suppressParentsInRowNodes&&(r.parent=e),r.level=o,r.setDataAndId(t,this.nextId.toString()),this.allNodesMap[r.id]&&console.warn("ag-grid: duplicate node id '"+r.id+"' detected from getRowNodeId callback, this could cause issues in your grid."),this.allNodesMap[r.id]=r,this.nextId++,r},i.prototype.setMasterForRow=function(t,e,o,r){if(this.doingTreeData)t.setMaster(!1),r&&(t.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?t.setMaster(this.isRowMasterFunc(e)):t.setMaster(!0):t.setMaster(!1),r){var n=this.columnModel.getRowGroupColumns(),s=n?n.length:0,a=o+s;t.expanded=t.master?this.isExpanded(a):!1}},i.prototype.isExpanded=function(t){var e=this.gridOptionsWrapper.getGroupDefaultExpanded();return e===-1?!0:t<e},i.TOP_LEVEL=0,i.ROOT_NODE_ID="ROOT_NODE_ID",i}(),rD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),He=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Ft;(function(i){i[i.Normal=0]="Normal",i[i.AfterFilter=1]="AfterFilter",i[i.AfterFilterAndSort=2]="AfterFilterAndSort",i[i.PivotNodes=3]="PivotNodes"})(Ft||(Ft={}));var nD=function(i){rD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.init=function(){var e=this.refreshModel.bind(this,{step:l.ClientSideRowModelSteps.EVERYTHING}),o=this.refreshModel.bind(this,{step:l.ClientSideRowModelSteps.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:!0});this.addManagedListener(this.eventService,E.EVENT_NEW_COLUMNS_LOADED,o),this.addManagedListener(this.eventService,E.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,E.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,E.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:l.ClientSideRowModelSteps.PIVOT})),this.addManagedListener(this.eventService,E.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,E.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,E.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var r=this.refreshModel.bind(this,{step:l.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:!0});this.addManagedListener(this.gridOptionsWrapper,q.PROP_GROUP_REMOVE_SINGLE_CHILDREN,r),this.addManagedListener(this.gridOptionsWrapper,q.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,r),this.rootNode=new ae(this.beans),this.nodeManager=new oD(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,o,r,n){var s,a=!1;do{s=!1;for(var u=this.getRowIndexAtPixel(e),c=this.getRowIndexAtPixel(o),g=Math.max(u,r),y=Math.min(c,n),w=g;w<=y;w++){var R=this.getRow(w);if(R.rowHeightEstimated){var S=this.gridOptionsWrapper.getRowHeightForNode(R);R.setRowHeight(S.height),s=!0,a=!0}}s&&this.setRowTopAndRowIndex()}while(s);return a},t.prototype.setRowTopAndRowIndex=function(){for(var e=this.gridOptionsWrapper.getDefaultRowHeight(),o=0,r=new Set,n=this.gridOptionsWrapper.getDomLayout()===D.DOM_LAYOUT_NORMAL,s=0;s<this.rowsToDisplay.length;s++){var a=this.rowsToDisplay[s];if(a.id!=null&&r.add(a.id),a.rowHeight==null){var u=this.gridOptionsWrapper.getRowHeightForNode(a,n,e);a.setRowHeight(u.height,u.estimated)}a.setRowTop(o),a.setRowIndex(s),o+=a.rowHeight}return r},t.prototype.clearRowTopAndRowIndex=function(e,o){var r=e.isActive(),n=function(a){a&&a.id!=null&&!o.has(a.id)&&a.clearRowTopAndRowIndex()},s=function(a){if(n(a),n(a.detailNode),n(a.sibling),a.hasChildren()&&a.childrenAfterGroup){var u=a.level==-1,c=r&&!u&&!a.expanded;c||a.childrenAfterGroup.forEach(s)}};s(this.rootNode)},t.prototype.ensureRowsAtPixel=function(e,o,r){var n=this;r===void 0&&(r=0);var s=this.getRowIndexAtPixel(o),a=this.getRow(s);return a===e[0]?!1:(e.forEach(function(u){X.removeFromArray(n.rootNode.allLeafChildren,u)}),e.forEach(function(u,c){X.insertIntoArray(n.rootNode.allLeafChildren,u,Math.max(s+r,0)+c)}),this.refreshModel({step:l.ClientSideRowModelSteps.EVERYTHING,keepRenderedRows:!0,animate:!0,keepEditingRows:!0}),!0)},t.prototype.highlightRowAtPixel=function(e,o){var r=o!=null?this.getRowIndexAtPixel(o):null,n=r!=null?this.getRow(r):null;if(!n||!e||n===e||o==null){this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null);return}var s=this.getHighlightPosition(o,n);this.lastHighlightedRow&&this.lastHighlightedRow!==n&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),n.setHighlighted(s),this.lastHighlightedRow=n},t.prototype.getHighlightPosition=function(e,o){if(!o){var r=this.getRowIndexAtPixel(e);if(o=this.getRow(r||0),!o)return l.RowHighlightPosition.Below}var n=o.rowTop,s=o.rowHeight;return e-n<s/2?l.RowHighlightPosition.Above:l.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 o=this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode;if(o)return e;var r=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;r.expanded&&r.childrenAfterSort&&r.childrenAfterSort.length>0;)r=r.childrenAfterSort[0];return r.rowIndex},t.prototype.getRowBounds=function(e){if(X.missing(this.rowsToDisplay))return null;var o=this.rowsToDisplay[e];return o?{rowTop:o.rowTop,rowHeight:o.rowHeight}:null},t.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:l.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:e})},t.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var o=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:l.ClientSideRowModelSteps.FILTER,keepRenderedRows:!0,animate:o})}},t.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:l.ClientSideRowModelSteps.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},t.prototype.getType=function(){return D.ROW_MODEL_TYPE_CLIENT_SIDE},t.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:l.ClientSideRowModelSteps.PIVOT}):this.refreshModel({step:l.ClientSideRowModelSteps.AGGREGATE})},t.prototype.createChangePath=function(e){var o=X.missingOrEmpty(e),r=new bn(!1,this.rootNode);return(o||this.gridOptionsWrapper.isTreeData())&&r.setInactive(),r},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsWrapper.isSuppressModelUpdateAfterUpdateTransaction()||e.rowNodeTransactions==null)return!1;var o=X.filter(e.rowNodeTransactions,function(n){return n.add!=null&&n.add.length>0||n.remove!=null&&n.remove.length>0}),r=o==null||o.length==0;return r},t.prototype.refreshModel=function(e){var o=this;if(!this.isSuppressModelUpdateAfterUpdateTransaction(e)){var r=this.createChangePath(e.rowNodeTransactions);switch(e.step){case l.ClientSideRowModelSteps.EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,r,!!e.afterColumnsChanged);case l.ClientSideRowModelSteps.FILTER:this.doFilter(r);case l.ClientSideRowModelSteps.PIVOT:this.doPivot(r);case l.ClientSideRowModelSteps.AGGREGATE:this.doAggregate(r);case l.ClientSideRowModelSteps.SORT:this.doSort(e.rowNodeTransactions,r);case l.ClientSideRowModelSteps.MAP:this.doRowsToDisplay()}var n=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(r,n);var s={type:E.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(s),this.$scope&&window.setTimeout(function(){o.$scope.$apply()},0)}},t.prototype.isEmpty=function(){var e=X.missing(this.rootNode.allLeafChildren)||this.rootNode.allLeafChildren.length===0;return X.missing(this.rootNode)||e||!this.columnModel.isReady()},t.prototype.isRowsToRender=function(){return X.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},t.prototype.getNodesInRangeForSelection=function(e,o){var r=!o,n=!1,s,a=[],u=this.gridOptionsWrapper.isGroupSelectsChildren();return this.forEachNodeAfterFilterAndSort(function(c){var g=r&&!n;r||(c===o||c===e)&&(r=!0);var y=c.group&&u;if(!y){var w=r&&!n,R=c.isParentOfNode(s);(w||R)&&a.push(c)}g&&(c===o||c===e)&&(n=!0,c===o?s=o:s=e)}),a},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 o=0,r=this.rowsToDisplay.length-1;if(e<=0)return 0;var n=X.last(this.rowsToDisplay);if(n.rowTop<=e)return this.rowsToDisplay.length-1;for(;;){var s=Math.floor((o+r)/2),a=this.rowsToDisplay[s];if(this.isRowInPixel(a,e))return s;a.rowTop<e?o=s+1:a.rowTop>e&&(r=s-1)}},t.prototype.isRowInPixel=function(e,o){var r=e.rowTop,n=e.rowTop+e.rowHeight,s=r<=o&&n>o;return s},t.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach(function(o,r){return e(o,r)})},t.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,Ft.Normal,0)},t.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterFilter,e,Ft.AfterFilter,0)},t.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,Ft.AfterFilterAndSort,0)},t.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,Ft.PivotNodes,0)},t.prototype.recursivelyWalkNodesAndCallback=function(e,o,r,n){if(!e)return n;for(var s=0;s<e.length;s++){var a=e[s];if(o(a,n++),a.hasChildren()){var u=null;switch(r){case Ft.Normal:u=a.childrenAfterGroup;break;case Ft.AfterFilter:u=a.childrenAfterFilter;break;case Ft.AfterFilterAndSort:u=a.childrenAfterSort;break;case Ft.PivotNodes:u=a.leafGroup?null:a.childrenAfterSort;break}u&&(n=this.recursivelyWalkNodesAndCallback(u,o,r,n))}}return n},t.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.expandOrCollapseAll=function(e){var o=this.gridOptionsWrapper.isTreeData();this.rootNode&&r(this.rootNode.childrenAfterGroup);function r(a){a&&a.forEach(function(u){var c=o?X.exists(u.childrenAfterGroup):u.group;c&&(u.expanded=e,r(u.childrenAfterGroup))})}this.refreshModel({step:l.ClientSideRowModelSteps.MAP});var n=e?"expandAll":"collapseAll",s={api:this.gridApi,columnApi:this.columnApi,type:E.EVENT_EXPAND_COLLAPSE_ALL,source:n};this.eventService.dispatchEvent(s)},t.prototype.doSort=function(e,o){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:o})},t.prototype.doRowGrouping=function(e,o,r,n,s){this.groupStage?(o?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:o,rowNodeOrder:r,changedPath:n}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:n,afterColumnsChanged:s}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionService.updateGroupsFromChildrenSelections(n)):(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&&X.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(o,r){typeof e[r]=="boolean"&&(o.expanded=e[r])})},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 X.traverseNodesWithKey(this.rootNode.childrenAfterGroup,function(o,r){return e[r]=o.expanded}),e},t.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},t.prototype.getRowNode=function(e){var o=typeof e=="string"&&e.indexOf(ae.ID_PREFIX_ROW_GROUP)==0;if(o){var r=void 0;return this.forEachNode(function(n){n.id===e&&(r=n)}),r}else return this.nodeManager.getRowNode(e)},t.prototype.setRowData=function(e){var o=this.getGroupState();this.nodeManager.setRowData(e);var r={type:E.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(r),this.refreshModel({step:l.ClientSideRowModelSteps.EVERYTHING,groupState:o,newData:!0})},t.prototype.batchUpdateRowData=function(e,o){var r=this;if(this.applyAsyncTransactionsTimeout==null){this.rowDataTransactionBatch=[];var n=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout(function(){r.executeBatchUpdateRowData()},n)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:o})},t.prototype.flushAsyncTransactions=function(){this.applyAsyncTransactionsTimeout!=null&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},t.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var o=[],r=[],n=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach(function(a){var u=e.nodeManager.updateRowData(a.rowDataTransaction,void 0);r.push(u),a.callback&&o.push(a.callback.bind(null,u)),typeof a.rowDataTransaction.addIndex=="number"&&(n=!0)}),this.commonUpdateRowData(r,void 0,n),o.length>0&&window.setTimeout(function(){o.forEach(function(a){return a()})},0),r.length>0){var s={api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),type:E.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:r};this.eventService.dispatchEvent(s)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},t.prototype.updateRowData=function(e,o){this.valueCache.onDataChanged();var r=this.nodeManager.updateRowData(e,o),n=typeof e.addIndex=="number";return this.commonUpdateRowData([r],o,n),r},t.prototype.createRowNodeOrder=function(){var e=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder();if(!e){var o={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var r=0;r<this.rootNode.allLeafChildren.length;r++){var n=this.rootNode.allLeafChildren[r];o[n.id]=r}return o}},t.prototype.commonUpdateRowData=function(e,o,r){r&&(o=this.createRowNodeOrder()),this.refreshModel({step:l.ClientSideRowModelSteps.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:o,keepRenderedRows:!0,animate:!0,keepEditingRows:!0});var n={type:E.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},t.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},t.prototype.onRowHeightChanged=function(){this.refreshModel({step:l.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,keepEditingRows:!0})},t.prototype.resetRowHeights=function(){var e=!1;this.forEachNode(function(o){o.setRowHeight(o.rowHeight,!0);var r=o.detailNode;r&&r.setRowHeight(r.rowHeight,!0),e=!0}),e&&this.onRowHeightChanged()},He([m("columnModel")],t.prototype,"columnModel",void 0),He([m("$scope")],t.prototype,"$scope",void 0),He([m("selectionService")],t.prototype,"selectionService",void 0),He([m("valueCache")],t.prototype,"valueCache",void 0),He([m("columnApi")],t.prototype,"columnApi",void 0),He([m("gridApi")],t.prototype,"gridApi",void 0),He([m("animationFrameService")],t.prototype,"animationFrameService",void 0),He([m("beans")],t.prototype,"beans",void 0),He([m("filterStage")],t.prototype,"filterStage",void 0),He([m("sortStage")],t.prototype,"sortStage",void 0),He([m("flattenStage")],t.prototype,"flattenStage",void 0),He([he("groupStage")],t.prototype,"groupStage",void 0),He([he("aggregationStage")],t.prototype,"aggregationStage",void 0),He([he("pivotStage")],t.prototype,"pivotStage",void 0),He([k],t.prototype,"init",null),t=He([Y("rowModel")],t),t}(V),iD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ja=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},sD=function(i){iD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.execute=function(e){var o=e.rowNode,r=e.changedPath;this.filterService.filter(r),this.selectableService.updateSelectableAfterFiltering(o)},ja([m("selectableService")],t.prototype,"selectableService",void 0),ja([m("filterService")],t.prototype,"filterService",void 0),t=ja([Y("filterStage")],t),t}(V),aD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ti=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},lD=function(i){aD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.execute=function(e){var o=this.sortController.getSortOptions(),r=X.exists(o)&&o.length>0,n=r&&X.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),s=n?this.calculateDirtyNodes(e.rowNodeTransactions):null,a=X.missingOrEmpty(this.columnModel.getValueColumns()),u=X.some(o,function(c){return!!c.column.getColDef().showRowGroup});this.sortService.sort(o,r,n,s,e.changedPath,a,u)},t.prototype.calculateDirtyNodes=function(e){var o={},r=function(n){n&&n.forEach(function(s){return o[s.id]=!0})};return e&&e.forEach(function(n){r(n.add),r(n.update),r(n.remove)}),o},ti([m("sortService")],t.prototype,"sortService",void 0),ti([m("sortController")],t.prototype,"sortController",void 0),ti([m("columnModel")],t.prototype,"columnModel",void 0),t=ti([Y("sortStage")],t),t}(V),uD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),za=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},pD=function(i){uD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.execute=function(e){var o=e.rowNode,r=[],n={value:0},s=this.columnModel.isPivotMode(),a=s&&o.leafGroup,u=a?[o]:o.childrenAfterSort;this.recursivelyAddToRowsToDisplay(u,r,n,s,0);var c=r.length>0,g=!a&&c&&this.gridOptionsWrapper.isGroupIncludeTotalFooter();return g&&(this.ensureFooterNodeExists(o),this.addRowNodeToRowsToDisplay(o.sibling,r,n,0)),r},t.prototype.recursivelyAddToRowsToDisplay=function(e,o,r,n,s){if(!X.missingOrEmpty(e))for(var a=this.gridOptionsWrapper.isGroupHideOpenParents(),u=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),c=!u&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),g=0;g<e.length;g++){var y=e[g],w=y.hasChildren(),R=n&&!w,S=u&&w&&y.childrenAfterGroup.length===1,b=c&&w&&y.leafGroup&&y.childrenAfterGroup.length===1,F=n&&y.leafGroup,B=a&&y.expanded&&!F,M=!R&&!B&&!S&&!b;if(M&&this.addRowNodeToRowsToDisplay(y,o,r,s),!(n&&y.leafGroup)){if(w){var L=S||b;if(y.expanded||L){var j=L?s:s+1;this.recursivelyAddToRowsToDisplay(y.childrenAfterSort,o,r,n,j),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(y),this.addRowNodeToRowsToDisplay(y.sibling,o,r,s))}}else if(y.master&&y.expanded){var J=this.createDetailNode(y);this.addRowNodeToRowsToDisplay(J,o,r,s)}}}},t.prototype.addRowNodeToRowsToDisplay=function(e,o,r,n){var s=this.gridOptionsWrapper.isGroupMultiAutoColumn();o.push(e),e.setUiLevel(s?0:n)},t.prototype.ensureFooterNodeExists=function(e){if(!X.exists(e.sibling)){var o=new ae(this.beans);Object.keys(e).forEach(function(r){o[r]=e[r]}),o.footer=!0,o.setRowTop(null),o.setRowIndex(null),o.oldRowTop=null,X.exists(o.id)&&(o.id="rowGroupFooter_"+o.id),o.sibling=e,e.sibling=o}},t.prototype.createDetailNode=function(e){if(X.exists(e.detailNode))return e.detailNode;var o=new ae(this.beans);return o.detail=!0,o.selectable=!1,o.parent=e,X.exists(e.id)&&(o.id="detail_"+e.id),o.data=e.data,o.level=e.level+1,e.detailNode=o,o},za([m("columnModel")],t.prototype,"columnModel",void 0),za([m("beans")],t.prototype,"beans",void 0),t=za([Y("flattenStage")],t),t}(V),cD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),oi=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},dD=function(i){cD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},t.prototype.sort=function(e,o,r,n,s,a,u){var c=this,g=this.gridOptionsWrapper.isGroupMaintainOrder(),y=X.some(this.columnModel.getAllGridColumns(),function(R){return R.isRowGroupActive()}),w=function(R){if(c.pullDownGroupDataForHideOpenParents(R.childrenAfterFilter,!0),o){var S=g&&y&&!R.leafGroup&&!u;S?R.childrenAfterSort=R.childrenAfterFilter.slice(0):R.childrenAfterSort=r?c.doDeltaSort(R,e,n,s,a):c.rowNodeSorter.doFullSort(R.childrenAfterFilter,e)}else R.childrenAfterSort=R.childrenAfterFilter.slice(0);R.sibling&&(R.sibling.childrenAfterSort=R.childrenAfterSort),c.updateChildIndexes(R),c.postSortFunc&&c.postSortFunc(R.childrenAfterSort)};s&&s.forEachChangedNodeDepthFirst(w),this.updateGroupDataForHideOpenParents(s)},t.prototype.mapNodeToSortedNode=function(e,o){return{currentPos:o,rowNode:e}},t.prototype.doDeltaSort=function(e,o,r,n,s){var a=e.childrenAfterSort.filter(function(y){var w=!r[y.id],R=s||n&&n.canSkip(y);return w&&R}).map(this.mapNodeToSortedNode.bind(this)),u={};a.forEach(function(y){return u[y.rowNode.id]=y.rowNode});var c=e.childrenAfterFilter.filter(function(y){return!u[y.id]}).map(this.mapNodeToSortedNode.bind(this));c.sort(this.rowNodeSorter.compareRowNodes.bind(this,o));var g;return c.length===0?g=a:a.length===0?g=c:g=this.mergeSortedArrays(o,a,c),g.map(function(y){return y.rowNode})},t.prototype.mergeSortedArrays=function(e,o,r){for(var n=[],s=0,a=0;s<o.length&&a<r.length;){var u=this.rowNodeSorter.compareRowNodes(e,o[s],r[a]);u<0?n.push(o[s++]):n.push(r[a++])}for(;s<o.length;)n.push(o[s++]);for(;a<r.length;)n.push(r[a++]);return n},t.prototype.updateChildIndexes=function(e){if(!X.missing(e.childrenAfterSort))for(var o=e.childrenAfterSort,r=0;r<o.length;r++){var n=o[r],s=r===0,a=r===e.childrenAfterSort.length-1;n.setFirstChild(s),n.setLastChild(a),n.setChildIndex(r)}},t.prototype.updateGroupDataForHideOpenParents=function(e){var o=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){if(this.gridOptionsWrapper.isTreeData()){var r="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 X.doOnce(function(){return console.warn(r)},"sortService.hideOpenParentsWithTreeData"),!1}var n=function(s){o.pullDownGroupDataForHideOpenParents(s.childrenAfterSort,!1),s.childrenAfterSort.forEach(function(a){a.hasChildren()&&n(a)})};e&&e.executeFromRootNode(function(s){return n(s)})}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,o){var r=this;!this.gridOptionsWrapper.isGroupHideOpenParents()||X.missing(e)||e.forEach(function(n){var s=r.columnModel.getGroupDisplayColumns();s.forEach(function(a){var u=a.getColDef().showRowGroup;if(typeof u!="string"){console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup");return}var c=u,g=r.columnModel.getPrimaryColumn(c),y=g===n.rowGroupColumn;if(!y)if(o)n.setGroupValue(a.getId(),void 0);else{var w=n.getFirstChildOfFirstChild(g);w&&n.setGroupValue(a.getId(),w.key)}})})},oi([m("columnModel")],t.prototype,"columnModel",void 0),oi([m("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),oi([k],t.prototype,"init",null),t=oi([Y("sortService")],t),t}(V),hD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),$a=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},fD=function(i){hD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.doingTreeData=this.gridOptionsWrapper.isTreeData()},t.prototype.filter=function(e){var o=this.filterManager.isAnyFilterPresent();this.filterNodes(o,e)},t.prototype.filterNodes=function(e,o){var r=this,n=function(c,g){c.hasChildren()?(e&&!g?c.childrenAfterFilter=c.childrenAfterGroup.filter(function(y){var w=y.childrenAfterFilter&&y.childrenAfterFilter.length>0,R=y.data&&r.filterManager.doesRowPassFilter({rowNode:y});return w||R}):c.childrenAfterFilter=c.childrenAfterGroup,r.setAllChildrenCount(c)):(c.childrenAfterFilter=c.childrenAfterGroup,c.setAllChildrenCount(null)),c.sibling&&(c.sibling.childrenAfterFilter=c.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var s=function(c,g){if(c.childrenAfterGroup)for(var y=0;y<c.childrenAfterGroup.length;y++){var w=c.childrenAfterGroup[y],R=g||r.filterManager.doesRowPassFilter({rowNode:w});w.childrenAfterGroup?s(c.childrenAfterGroup[y],R):n(w,R)}n(c,g)},a=function(c){return s(c,!1)};o.executeFromRootNode(a)}else{var u=function(c){return n(c,!1)};o.forEachChangedNodeDepthFirst(u,!0)}},t.prototype.setAllChildrenCountTreeData=function(e){var o=0;e.childrenAfterFilter.forEach(function(r){o++,o+=r.allChildrenCount}),e.setAllChildrenCount(o)},t.prototype.setAllChildrenCountGridGrouping=function(e){var o=0;e.childrenAfterFilter.forEach(function(r){r.group?o+=r.allChildrenCount:o++}),e.setAllChildrenCount(o)},t.prototype.setAllChildrenCount=function(e){this.doingTreeData?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e)},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},$a([m("filterManager")],t.prototype,"filterManager",void 0),$a([k],t.prototype,"postConstruct",null),t=$a([Y("filterService")],t),t}(V),gD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ka=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},vD=function(i){gD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.postConstruct=function(){this.rowModel.getType()===D.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.createTransactionForRowData=function(e){if(X.missing(this.clientSideRowModel)){console.error("AG Grid: ImmutableService only works with ClientSideRowModel");return}var o=this.gridOptionsWrapper.getRowNodeIdFunc();if(!o||X.missing(o)){console.error("AG Grid: ImmutableService requires getRowNodeId() callback to be implemented, your row data need IDs!");return}var r={remove:[],update:[],add:[]},n=this.clientSideRowModel.getCopyOfNodesMap(),s=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder(),a=s?null:{};return X.exists(e)&&e.forEach(function(u,c){var g=o(u),y=n[g];if(a&&(a[g]=c),y){var w=y.data!==u;w&&r.update.push(u),n[g]=void 0}else r.add.push(u)}),X.iterateObject(n,function(u,c){c&&r.remove.push(c.data)}),[r,a]},Ka([m("rowModel")],t.prototype,"rowModel",void 0),Ka([k],t.prototype,"postConstruct",null),t=Ka([Y("immutableService")],t),t}(V),yD={moduleName:l.ModuleNames.ClientSideRowModelModule,beans:[sD,lD,pD,dD,fD,vD],rowModels:{clientSide:nD}},mD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Ya=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Dh=function(i){mD(t,i);function t(e,o,r){var n=i.call(this,e)||this;return n.parentCache=o,n.params=r,n.startRow=e*r.blockSize,n.endRow=n.startRow+r.blockSize,n}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,o,r){!e.id&&e.alreadyRendered&&(e.alreadyRendered=!1),X.exists(o)?e.setDataAndId(o,r.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,o=this.createLoadParams();if(X.missing(this.params.datasource.getRows)){console.warn("AG Grid: datasource is missing getRows method");return}window.setTimeout(function(){e.params.datasource.getRows(o)},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,o,r){var n=this;this.rowNodes.forEach(function(s,a){var u=n.startRow+a;u<r&&e(s,o.next())})},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,o){o===void 0&&(o=!1),o||(this.lastAccessed=this.params.lastAccessedSequence.next());var r=e-this.startRow;return this.rowNodes[r]},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 o=this.startRow+e,r=new ae(this.beans);r.setRowHeight(this.params.rowHeight),r.uiLevel=0,r.setRowIndex(o),r.setRowTop(this.params.rowHeight*o),this.rowNodes.push(r)}},t.prototype.processServerResult=function(e){var o=this;this.rowNodes.forEach(function(n,s){var a=e.rowData?e.rowData[s]:void 0;o.setDataAndId(n,a,o.startRow+s)});var r=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,r)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach(function(e){e.clearRowTopAndRowIndex()})},Ya([m("beans")],t.prototype,"beans",void 0),Ya([k],t.prototype,"postConstruct",null),Ya([Ne],t.prototype,"destroyRowNodes",null),t}(qn),CD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),ri=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},wD=function(i,t){return function(e,o){t(e,o,i)}},_D=function(i){CD(t,i);function t(e){var o=i.call(this)||this;return o.lastRowIndexKnown=!1,o.blocks={},o.blockCount=0,o.rowCount=e.initialRowCount,o.params=e,o}return t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,o){o===void 0&&(o=!1);var r=Math.floor(e/this.params.blockSize),n=this.blocks[r];if(!n){if(o)return;n=this.createBlock(r)}return n.getRow(e)},t.prototype.createBlock=function(e){var o=this.createBean(new Dh(e,this,this.params));return this.blocks[o.getId()]=o,this.blockCount++,this.purgeBlocksIfNeeded(o),this.params.rowNodeBlockLoader.addBlock(o),o},t.prototype.refreshCache=function(){var e=this.blockCount==0;if(e){this.purgeCache();return}this.getBlocksInOrder().forEach(function(o){return o.setStateWaitingToLoad()}),this.params.rowNodeBlockLoader.checkBlockToLoad()},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach(function(o){return e.destroyBlock(o)})},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,o){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+e.getId()+", lastRow = "+o),this.checkRowCount(e,o),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var o=this,r=this.getBlocksInOrder().filter(function(c){return c!=e}),n=function(c,g){return g.getLastAccessed()-c.getLastAccessed()};r.sort(n);var s=this.params.maxBlocksInCache>0,a=s?this.params.maxBlocksInCache-1:null,u=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;r.forEach(function(c,g){var y=c.getState()===Dh.STATE_WAITING_TO_LOAD&&g>=u,w=s?g>=a:!1;if(y||w){if(o.isBlockCurrentlyDisplayed(c)||o.isBlockFocused(c))return;o.removeBlockFromCache(c)}})},t.prototype.isBlockFocused=function(e){var o=this.focusService.getFocusCellToUseAfterRefresh();if(!o||o.rowPinned!=null)return!1;var r=e.getStartRow(),n=e.getEndRow(),s=o.rowIndex>=r&&o.rowIndex<n;return s},t.prototype.isBlockCurrentlyDisplayed=function(e){var o=e.getStartRow(),r=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(o,r)},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkRowCount=function(e,o){if(typeof o=="number"&&o>=0)this.rowCount=o,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var r=(e.getId()+1)*this.params.blockSize,n=r+this.params.overflowSize;this.rowCount<n&&(this.rowCount=n)}},t.prototype.setRowCount=function(e,o){this.rowCount=e,X.exists(o)&&(this.lastRowIndexKnown=o),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e){var o=this,r=new co;this.getBlocksInOrder().forEach(function(n){return n.forEachNode(e,r,o.rowCount)})},t.prototype.getBlocksInOrder=function(){var e=function(r,n){return r.getId()-n.getId()},o=X.getAllValuesInObject(this.blocks).sort(e);return o},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:E.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,o=[];this.getBlocksInOrder().forEach(function(r){var n=r.getId()*e.params.blockSize;n>=e.rowCount&&o.push(r)}),o.length>0&&o.forEach(function(r){return e.destroyBlock(r)})},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach(function(o){return e.removeBlockFromCache(o)}),this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,o){var r=this,n=[],s=-1,a=!1,u=new co;X.missing(e)&&(a=!0);var c=!1;this.getBlocksInOrder().forEach(function(y){if(!c){if(a&&s+1!==y.getId()){c=!0;return}s=y.getId(),y.forEachNode(function(w){var R=w===e||w===o;(a||R)&&n.push(w),R&&(a=!a)},u,r.rowCount)}});var g=c||a;return g?[]:n},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,ri([m("rowRenderer")],t.prototype,"rowRenderer",void 0),ri([m("focusService")],t.prototype,"focusService",void 0),ri([wD(0,xe("loggerFactory"))],t.prototype,"setBeans",null),ri([Ne],t.prototype,"destroyAllBlocks",null),t}(V),ED=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),It=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},RD=function(i){ED(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,o,r,n){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.";X.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,E.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,E.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,E.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,E.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!X.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return D.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,o){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,o):[]},t.prototype.reset=function(){if(this.datasource){var e=X.exists(this.gridOptionsWrapper.getRowNodeIdFunc());e||this.selectionService.reset(),this.resetCache();var o=this.createModelUpdatedEvent();this.eventService.dispatchEvent(o)}},t.prototype.createModelUpdatedEvent=function(){return{type:E.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 co},this.infiniteCache=this.createBean(new _D(this.cacheParams))},t.prototype.defaultIfInvalid=function(e,o){return e>0?e:o},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 o=void 0;return this.forEachNode(function(r){r.id===e&&(o=r)}),o},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 o=Math.floor(e/this.rowHeight),r=this.getRowCount()-1;return o>r?r:o}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){var o=this.getRowNode(e.id);return!!o},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,o){this.infiniteCache&&this.infiniteCache.setRowCount(e,o)},It([m("filterManager")],t.prototype,"filterManager",void 0),It([m("sortController")],t.prototype,"sortController",void 0),It([m("selectionService")],t.prototype,"selectionService",void 0),It([m("gridApi")],t.prototype,"gridApi",void 0),It([m("columnApi")],t.prototype,"columnApi",void 0),It([m("rowRenderer")],t.prototype,"rowRenderer",void 0),It([m("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),It([k],t.prototype,"init",null),It([Ne],t.prototype,"destroyDatasource",null),t=It([Y("rowModel")],t),t}(V),SD={moduleName:l.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:RD}},Ah=function(){function i(){}return i.prototype.setBeans=function(t){this.beans=t},i.prototype.getFileName=function(t){var e=this.getDefaultFileExtension();return(t==null||!t.length)&&(t=this.getDefaultFileName()),t.indexOf(".")===-1?t+"."+e:t},i.prototype.getMergedParamsAndData=function(t){var e=this.mergeDefaultParams(t),o=this.beans.gridSerializer.serialize(this.createSerializingSession(e),e);return{mergedParams:e,data:o}},i.prototype.mergeDefaultParams=function(t){var e=this.getDefaultExportParams(),o={};return X.assign(o,e),X.assign(o,t),o},i}(),Th=function(){function i(t){this.groupColumns=[];var e=t.columnModel,o=t.valueService,r=t.gridOptionsWrapper,n=t.processCellCallback,s=t.processHeaderCallback,a=t.processGroupHeaderCallback,u=t.processRowGroupCallback;this.columnModel=e,this.valueService=o,this.gridOptionsWrapper=r,this.processCellCallback=n,this.processHeaderCallback=s,this.processGroupHeaderCallback=a,this.processRowGroupCallback=u}return i.prototype.prepare=function(t){this.groupColumns=X.filter(t,function(e){return!!e.getColDef().showRowGroup})},i.prototype.extractHeaderValue=function(t){var e=this.getHeaderName(this.processHeaderCallback,t);return e??""},i.prototype.extractRowCellValue=function(t,e,o,r,n){var s=this.gridOptionsWrapper.isGroupMultiAutoColumn()?n.rowGroupIndex:0,a=n&&n.group&&(e===s&&this.groupColumns.indexOf(t)!==-1||e===0&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode())),u;a?u=this.createValueForGroupNode(n):u=this.valueService.getValue(t,n);var c=this.processCell(o,n,t,u,this.processCellCallback,r);return c??""},i.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)},i.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(" -> ")},i.prototype.processCell=function(t,e,o,r,n,s){return n?n({accumulatedRowIndex:t,column:o,node:e,value:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:s}):r??""},i}(),bh=function(){function i(){}return i.download=function(t,e){var o=document.defaultView||window;if(!o){console.warn("AG Grid: There is no `window` associated with the current `document`");return}if(o.navigator.msSaveOrOpenBlob)o.navigator.msSaveOrOpenBlob(e,t);else{var r=document.createElement("a"),n=o.URL.createObjectURL(e);r.setAttribute("href",n),r.setAttribute("download",t),r.style.display="none",document.body.appendChild(r),r.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:o})),document.body.removeChild(r),o.setTimeout(function(){o.URL.revokeObjectURL(n)},0)}},i}(),OD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Nh=`\r
|
|
1495
1495
|
`,PD=function(i){OD(t,i);function t(e){var o=i.call(this,e)||this;o.isFirstLine=!0,o.result="";var r=e.suppressQuotes,n=e.columnSeparator;return o.suppressQuotes=r,o.columnSeparator=n,o}return t.prototype.addCustomContent=function(e){var o=this;e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,Nh),this.result+=e):e.forEach(function(r){o.beginNewLine(),r.forEach(function(n,s){s!==0&&(o.result+=o.columnSeparator),o.result+=o.putInQuotes(n.data.value||""),n.mergeAcross&&o.appendEmptyCells(n.mergeAcross)})}))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,o,r){o!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(r)},t.prototype.appendEmptyCells=function(e){for(var o=1;o<=e;o++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,o){o!=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,o,r){o!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,o,o,D.EXPORT_TYPE_CSV,r))},t.prototype.putInQuotes=function(e){if(this.suppressQuotes)return e;if(e==null)return'""';var o;typeof e=="string"?o=e:typeof e.toString=="function"?o=e.toString():(console.warn("unknown value type during csv conversion"),o="");var r=o.replace(/"/g,'""');return'"'+r+'"'},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+=Nh),this.isFirstLine=!1},t}(Th),DD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Xo=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n},Fh=function(i){DD(t,i);function t(){return i!==null&&i.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 o=this.getMergedParamsAndData(e),r=o.mergedParams,n=o.data,s=new Blob(["\uFEFF",n],{type:window.navigator.msSaveOrOpenBlob?this.getMimeType():"octet/stream"});return bh.download(this.getFileName(r.fileName),s),n},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 o=this,r=o.columnModel,n=o.valueService,s=o.gridOptionsWrapper,a=e,u=a.processCellCallback,c=a.processHeaderCallback,g=a.processGroupHeaderCallback,y=a.processRowGroupCallback,w=a.suppressQuotes,R=a.columnSeparator;return new PD({columnModel:r,valueService:n,gridOptionsWrapper:s,processCellCallback:u||void 0,processHeaderCallback:c||void 0,processGroupHeaderCallback:g||void 0,processRowGroupCallback:y||void 0,suppressQuotes:w||!1,columnSeparator:R||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},Xo([m("columnModel")],t.prototype,"columnModel",void 0),Xo([m("valueService")],t.prototype,"valueService",void 0),Xo([m("gridSerializer")],t.prototype,"gridSerializer",void 0),Xo([m("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),Xo([k],t.prototype,"postConstruct",null),t=Xo([Y("csvCreator")],t),t}(Ah),AD=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n])},i(t,e)};return function(t,e){i(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Qo=function(i,t,e,o){var r=arguments.length,n=r<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(i,t,e,o);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n};(function(i){i[i.HEADER_GROUPING=0]="HEADER_GROUPING",i[i.HEADER=1]="HEADER",i[i.BODY=2]="BODY"})(l.RowType||(l.RowType={}));var Ih=function(i){AD(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.serialize=function(e,o){o===void 0&&(o={});var r=this.getColumnsToExport(o.allColumns,o.columnKeys),n=X.compose(this.prepareSession(r),this.prependContent(o),this.exportColumnGroups(o,r),this.exportHeaders(o,r),this.processPinnedTopRows(o,r),this.processRows(o,r),this.processPinnedBottomRows(o,r),this.appendContent(o));return n(e).parse()},t.prototype.processRow=function(e,o,r,n){var s=o.shouldRowBeSkipped||function(){return!1},a=this.gridOptionsWrapper,u=a.getContext(),c=a.getApi(),g=a.getColumnApi(),y=a.isGroupRemoveSingleChildren(),w=a.isGroupHideOpenParents(),R=a.isGroupRemoveLowestSingleChildren(),S=this.columnModel.isPivotMode()?n.leafGroup:!n.group,b=o.skipGroups||o.skipRowGroups,F=R&&n.leafGroup,B=n.allChildrenCount===1&&(y||F);if(b&&o.skipGroups&&X.doOnce(function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")},"gridSerializer-skipGroups"),!(!S&&(o.skipRowGroups||B||w)||o.onlySelected&&!n.isSelected()||o.skipPinnedTop&&n.rowPinned==="top"||o.skipPinnedBottom&&n.rowPinned==="bottom")){var M=n.level===-1;if(!(M&&!n.leafGroup)){var L=s({node:n,api:c,context:u});if(!L){var j=e.onNewBodyRow();if(r.forEach(function(ue,te){j.onColumn(ue,te,n)}),o.getCustomContentBelowRow){var J=o.getCustomContentBelowRow({node:n,api:c,columnApi:g,context:u});J&&e.addCustomContent(J)}}}}},t.prototype.appendContent=function(e){return function(o){var r=e.customFooter||e.appendContent;return r&&(e.customFooter&&X.doOnce(function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")},"gridSerializer-customFooter"),o.addCustomContent(r)),o}},t.prototype.prependContent=function(e){return function(o){var r=e.customHeader||e.prependContent;return r&&(e.customHeader&&X.doOnce(function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")},"gridSerializer-customHeader"),o.addCustomContent(r)),o}},t.prototype.prepareSession=function(e){return function(o){return o.prepare(e),o}},t.prototype.exportColumnGroups=function(e,o){var r=this;return function(n){if(e.skipColumnGroupHeaders)e.columnGroups&&X.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 s=new ls,a=r.displayedGroupCreator.createDisplayedGroups(o,r.columnModel.getGridBalancedTree(),s,null);r.recursivelyAddHeaderGroups(a,n,e.processGroupHeaderCallback)}return n}},t.prototype.exportHeaders=function(e,o){return function(r){if(!e.skipHeader&&!e.skipColumnHeaders){var n=r.onNewHeaderRow();o.forEach(function(s,a){n.onColumn(s,a,void 0)})}else e.skipHeader&&X.doOnce(function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")},"gridSerializer-skipHeader");return r}},t.prototype.processPinnedTopRows=function(e,o){var r=this;return function(n){var s=r.processRow.bind(r,n,e,o);return r.pinnedRowModel.forEachPinnedTopRow(s),n}},t.prototype.processRows=function(e,o){var r=this;return function(n){var s=r.rowModel,a=s.getType(),u=a===D.ROW_MODEL_TYPE_CLIENT_SIDE,c=a===D.ROW_MODEL_TYPE_SERVER_SIDE,g=!u&&e.onlySelected,y=r.processRow.bind(r,n,e,o);if(r.columnModel.isPivotMode())u?s.forEachPivotNode(y):s.forEachNode(y);else if(e.onlySelectedAllPages||g){var w=r.selectionService.getSelectedNodes();w.forEach(y)}else u||c?s.forEachNodeAfterFilterAndSort(y):s.forEachNode(y);return n}},t.prototype.processPinnedBottomRows=function(e,o){var r=this;return function(n){var s=r.processRow.bind(r,n,e,o);return r.pinnedRowModel.forEachPinnedBottomRow(s),n}},t.prototype.getColumnsToExport=function(e,o){e===void 0&&(e=!1);var r=this.columnModel.isPivotMode();if(o&&o.length)return this.columnModel.getGridColumns(o);if(e&&!r){var n=this.gridOptionsWrapper.isTreeData()?this.columnModel.getGridColumns([D.GROUP_AUTO_COLUMN_ID]):[];return n.concat(this.columnModel.getAllPrimaryColumns()||[])}return this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,o,r){var n=[];e.forEach(function(s){var a=s;a.getChildren&&a.getChildren().forEach(function(u){return n.push(u)})}),e.length>0&&e[0]instanceof Fe&&this.doAddHeaderHeader(o,e,r),n&&n.length>0&&this.recursivelyAddHeaderGroups(n,o,r)},t.prototype.doAddHeaderHeader=function(e,o,r){var n=this,s=e.onNewHeaderGroupingRow(),a=0;o.forEach(function(u){var c=u,g;r?g=r({columnGroup:c,api:n.gridOptionsWrapper.getApi(),columnApi:n.gridOptionsWrapper.getColumnApi(),context:n.gridOptionsWrapper.getContext()}):g=n.columnModel.getDisplayNameForColumnGroup(c,"header"),s.onColumn(g||"",a++,c.getLeafColumns().length-1)})},Qo([m("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),Qo([m("columnModel")],t.prototype,"columnModel",void 0),Qo([m("rowModel")],t.prototype,"rowModel",void 0),Qo([m("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Qo([m("selectionService")],t.prototype,"selectionService",void 0),t=Qo([Y("gridSerializer")],t),t}(V),Lh={moduleName:l.ModuleNames.CsvExportModule,beans:[Fh,Ih]},ni=`\r
|
|
1496
1496
|
`,TD=function(){function i(){}return i.createHeader=function(t){t===void 0&&(t={});var e="<?",o="?>",r=["version"];t.version||(t.version="1.0"),t.encoding&&r.push("encoding"),t.standalone&&r.push("standalone");var n=r.map(function(s){return s+'="'+t[s]+'"'}).join(" ");return e+"xml "+n+" "+o},i.createXml=function(t,e){var o=this,r="";t.properties&&(t.properties.prefixedAttributes&&t.properties.prefixedAttributes.forEach(function(s){Object.keys(s.map).forEach(function(a){r+=o.returnAttributeIfPopulated(s.prefix+a,s.map[a],e)})}),t.properties.rawMap&&Object.keys(t.properties.rawMap).forEach(function(s){r+=o.returnAttributeIfPopulated(s,t.properties.rawMap[s],e)}));var n="<"+t.name+r;return!t.children&&t.textNode==null?n+"/>"+ni:t.textNode!=null?n+">"+t.textNode+"</"+t.name+">"+ni:(n+=">"+ni,t.children&&t.children.forEach(function(s){n+=o.createXml(s,e)}),n+"</"+t.name+">"+ni)},i.returnAttributeIfPopulated=function(t,e,o){if(!e&&e!==""&&e!==0)return"";var r=e;return typeof e=="boolean"&&o&&(r=o(e))," "+t+'="'+r+'"'},i}(),bD=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]),ND=function(){function i(){}return i.addFolders=function(t){t.forEach(this.addFolder.bind(this))},i.addFolder=function(t){this.folders.push({path:t,created:new Date,isBase64:!1})},i.addFile=function(t,e,o){o===void 0&&(o=!1),this.files.push({path:t,created:new Date,content:e,isBase64:o})},i.getContent=function(t){t===void 0&&(t="application/zip");var e=this.buildFileStream(),o=this.buildUint8Array(e);return this.clearStream(),new Blob([o],{type:t})},i.clearStream=function(){this.folders=[],this.files=[]},i.buildFileStream=function(t){t===void 0&&(t="");for(var e=this.folders.concat(this.files),o=e.length,r="",n=0,s=0,a=0,u=e;a<u.length;a++){var c=u[a],g=this.getHeader(c,n),y=g.fileHeader,w=g.folderHeader,R=g.content;n+=y.length+R.length,s+=w.length,t+=y+R,r+=w}var S=this.buildFolderEnd(o,s,n);return t+r+S},i.getHeader=function(t,e){var o=t.content,r=t.path,n=t.created,s=t.isBase64,a=X.utf8_encode,u=X.decToHex,c=a(r),g=c!==r,y=this.convertTime(n),w=this.convertDate(n),R="";if(g){var S=u(1,1)+u(this.getFromCrc32Table(c),4)+c;R="up"+u(S.length,2)+S}var b=o?this.getConvertedContent(o,s):{size:0,content:""},F=b.size,B=b.content,M=`
|
|
1497
|
-
\0`+(g?"\0\b":"\0\0")+"\0\0"+u(y,2)+u(w,2)+u(F?this.getFromCrc32Table(B):0,4)+u(F,4)+u(F,4)+u(c.length,2)+u(R.length,2),L="PK"+M+c+R,j="PK\0"+M+"\0\0\0\0\0\0"+(o?"\0\0\0\0":"\0\0\0")+u(e,4)+c+R;return{fileHeader:L,folderHeader:j,content:B||""}},i.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}},i.buildFolderEnd=function(t,e,o){var r=X.decToHex;return"PK\0\0\0\0"+r(t,2)+r(t,2)+r(e,4)+r(o,4)+"\0\0"},i.buildUint8Array=function(t){for(var e=new Uint8Array(t.length),o=0;o<e.length;o++)e[o]=t.charCodeAt(o);return e},i.getFromCrc32Table=function(t){if(!t.length)return 0;for(var e=t.length,o=new Uint8Array(e),r=0;r<e;r++)o[r]=t.charCodeAt(r);for(var n=-1,s=0,a=0,u=0,r=0;r<e;r++)s=o[r],a=(n^s)&255,u=bD[a],n=n>>>8^u;return n^-1},i.convertTime=function(t){var e=t.getHours();return e<<=6,e=e|t.getMinutes(),e<<=5,e=e|t.getSeconds()/2,e},i.convertDate=function(t){var e=t.getFullYear()-1980;return e<<=4,e=e|t.getMonth()+1,e<<=5,e=e|t.getDate(),e},i.folders=[],i.files=[],i}();oe.register(yD,!1),oe.register(SD,!1),oe.register(Lh,!1),l.AbstractHeaderCellCtrl=Er,l.AgAbstractField=At,l.AgAngleSelect=ph,l.AgCheckbox=Bo,l.AgColorPicker=ah,l.AgDialog=La,l.AgGroupComponent=th,l.AgInputNumberField=lh,l.AgInputRange=uh,l.AgInputTextArea=ih,l.AgInputTextField=Ma,l.AgPanel=Ia,l.AgPromise=Ye,l.AgRadioButton=Gd,l.AgSelect=Ks,l.AgSlider=sh,l.AgStackComponentsRegistry=wp,l.AgToggleButton=ch,l.AlignedGridsService=jd,l.AnimateShowChangeCellRenderer=Cc,l.AnimateSlideCellRenderer=wc,l.AnimationFrameService=qd,l.AutoScrollService=id,l.AutoWidthCalculator=Rd,l.Autowired=m,l.BaseComponentWrapper=tD,l.BaseCreator=Ah,l.BaseGridSerializingSession=Th,l.Bean=Y,l.BeanStub=V,l.Beans=la,l.BodyDropPivotTarget=$c,l.BodyDropTarget=Kc,l.CellComp=_h,l.CellCtrl=Yt,l.CellNavigationService=Id,l.CellPositionUtils=hh,l.ChangedPath=bn,l.CheckboxSelectionComponent=oa,l.ColDefUtil=gs,l.Color=bo,l.Column=fe,l.ColumnApi=Lc,l.ColumnFactory=up,l.ColumnGroup=Fe,l.ColumnKeyCreator=re,l.ColumnModel=fp,l.ColumnUtils=yp,l.Component=se,l.ComponentUtil=it,l.Constants=D,l.Context=rp,l.CssClassApplier=ga,l.CsvCreator=Fh,l.CsvExportModule=Lh,l.CtrlsService=Ch,l.CustomTooltipFeature=ks,l.DateFilter=Xs,l.DisplayedGroupCreator=mp,l.Downloader=bh,l.DragAndDropService=ze,l.DragService=Td,l.Environment=Yd,l.EventService=Gt,l.Events=E,l.ExpressionService=yd,l.FilterManager=od,l.FloatingFilterMapper=Yc,l.FocusService=jo,l.Grid=Ua,l.GridApi=gd,l.GridBodyComp=fd,l.GridBodyCtrl=pd,l.GridComp=Ad,l.GridCoreCreator=Sh,l.GridCtrl=Od,l.GridHeaderComp=td,l.GridHeaderCtrl=kc,l.GridOptionsWrapper=q,l.GridSerializer=Ih,l.GroupCellRenderer=ra,l.GroupCellRendererCtrl=Rc,l.GroupInstanceIdCreator=ls,l.HeaderCellCtrl=Qc,l.HeaderFilterCellComp=Vc,l.HeaderFilterCellCtrl=Xc,l.HeaderGroupCellCtrl=Jc,l.HeaderNavigationService=Bc,l.HeaderPositionUtils=vh,l.HeaderRowComp=Wc,l.HeaderRowContainerComp=xn,l.HeaderRowContainerCtrl=ed,l.HeaderRowCtrl=Gn,l.HorizontalResizeService=Sd,l.KeyCode=W,l.LargeTextCellEditor=gc,l.Logger=Wn,l.LoggerFactory=Ed,l.ManagedFocusFeature=Vt,l.ModuleRegistry=oe,l.MouseEventService=Fd,l.MoveColumnFeature=jc,l.NavigationService=Xd,l.NumberFilter=Js,l.NumberSequence=co,l.Optional=he,l.PaginationProxy=Bd,l.PinnedRowModel=fh,l.PopupComponent=Go,l.PopupEditorWrapper=wh,l.PopupSelectCellEditor=yc,l.PopupService=wd,l.PopupTextCellEditor=mc,l.PositionableFeature=nh,l.PostConstruct=k,l.PreConstruct=rs,l.PreDestroy=Ne,l.PropertyKeys=St,l.ProvidedColumnGroup=Re,l.ProvidedFilter=gr,l.Qualifier=xe,l.QuerySelector=m_,l.RefSelector=x,l.ResizeObserverService=eh,l.RowContainerComp=Eh,l.RowContainerCtrl=Hn,l.RowCtrl=qt,l.RowNode=ae,l.RowNodeBlock=qn,l.RowNodeBlockLoader=yh,l.RowNodeSorter=mh,l.RowPositionUtils=dh,l.RowRenderer=xc,l.ScalarFilter=je,l.ScrollVisibleService=Vd,l.SelectCellEditor=ta,l.SelectableService=Jd,l.SelectionService=Ic,l.SetLeftFeature=Ln,l.SimpleFilter=Ue,l.SortController=bd,l.StandardMenuFactory=Rh,l.StylingService=Wd,l.TabGuardComp=Ra,l.TabGuardCtrl=Dd,l.TabbedLayout=XP,l.TemplateService=Cd,l.TextCellEditor=Pn,l.TextFilter=On,l.TextFloatingFilter=fc,l.Timer=f_,l.TouchListener=lt,l.UserComponentFactory=Ac,l.UserComponentRegistry=Oc,l.ValueCache=Ud,l.ValueFormatterService=Md,l.ValueService=rd,l.VanillaFrameworkOverrides=xd,l.VirtualList=ZP,l.XmlFactory=TD,l.ZipContainer=ND,l._=X,l.defaultGroupComparator=eD,l.initialiseAgGridWithAngular1=zP,l.initialiseAgGridWithWebComponents=KP,l.simpleHttpRequest=QP,l.stringToArray=_p})(wt);var jt=globalThis&&globalThis.__assign||function(){return jt=Object.assign||function(l){for(var p,d=1,f=arguments.length;d<f;d++){p=arguments[d];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(l[v]=p[v])}return l},jt.apply(this,arguments)},ym=function(){function l(){}return l.getComponentDefinition=function(p,d){var f;return typeof p=="string"?(f=this.searchForComponentInstance(d,p),f.template?f=jt({},h.defineComponent(f)):f={extends:h.defineComponent(f)}):f={extends:h.defineComponent(jt({},p))},f||console.error("Could not find component with name of "+p+". Is it in Vue.components?"),f.extends&&f.extends.setup&&(f.setup=f.extends.setup),f},l.createComponentParams=function(p,d){var f={params:Object.freeze(p),parent:d};return d.componentDependencies&&d.componentDependencies.forEach(function(v){return f[v]=d[v]}),f},l.createAndMountComponent=function(p,d,f){var v=l.getComponentDefinition(p,f);if(v){var C=l.createComponentParams(d,f),_=null,O=h.defineComponent(jt(jt({},v),{data:function(){return jt(jt({},C),v.data?v.data():{})},created:function(){_=this.$root,v.created&&v.created.bind(this)()}})),P=document.createElement("div"),A=h.createApp(O);return A.mount(P),{mountedComponent:A,componentInstance:_}}},l.searchForComponentInstance=function(p,d,f){f===void 0&&(f=10);for(var v=null,C=p.$parent,_=0;!v&&C&&C.$options&&++_<f;)v=C.$options.components[d],C=C.$parent;return v||(console.error("Could not find component with name of "+d+". Is it in Vue.components?"),null)},l}(),Bu=globalThis&&globalThis.__extends||function(){var l=function(p,d){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var C in v)v.hasOwnProperty(C)&&(f[C]=v[C])},l(p,d)};return function(p,d){l(p,d);function f(){this.constructor=p}p.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}(),mm=globalThis&&globalThis.__decorate||function(l,p,d,f){var v=arguments.length,C=v<3?p:f===null?f=Object.getOwnPropertyDescriptor(p,d):f,_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(l,p,d,f);else for(var O=l.length-1;O>=0;O--)(_=l[O])&&(C=(v<3?_(C):v>3?_(p,d,C):_(p,d))||C);return v>3&&C&&Object.defineProperty(p,d,C),C},Cm=function(l){Bu(p,l);function p(d){var f=l.call(this)||this;return f.parent=d,f}return p.prototype.createWrapper=function(d){var f=this,v=function(_){Bu(O,_);function O(){return _!==null&&_.apply(this,arguments)||this}return O.prototype.init=function(P){_.prototype.init.call(this,P)},O.prototype.hasMethod=function(P){return C.getFrameworkComponentInstance()[P]!=null},O.prototype.callMethod=function(P,A){var N=this.getFrameworkComponentInstance(),G=C.getFrameworkComponentInstance();return G[P].apply(N,A)},O.prototype.addMethod=function(P,A){C[P]=A},O.prototype.overrideProcessing=function(P){return f.parent.autoParamsRefresh&&P==="refresh"},O.prototype.processMethod=function(P,A){return P==="refresh"&&(this.getFrameworkComponentInstance().params=A[0]),this.hasMethod(P)?this.callMethod(P,A):P==="refresh"},O.prototype.createComponent=function(P){return f.createComponent(d,P)},O}(wm),C=new v;return C},p.prototype.createComponent=function(d,f){return ym.createAndMountComponent(d,f,this.parent)},p.prototype.createMethodProxy=function(d,f,v){return function(){return d.overrideProcessing(f)?d.processMethod(f,arguments):d.hasMethod(f)?d.callMethod(f,arguments):(v&&console.warn("AG Grid: Framework component is missing the method "+f+"()"),null)}},p.prototype.destroy=function(){this.parent=null},p=mm([wt.Bean("frameworkComponentWrapper")],p),p}(wt.BaseComponentWrapper),wm=function(){function l(){}return l.prototype.getGui=function(){return this.componentInstance.$el},l.prototype.destroy=function(){this.mountedComponent.unmount()},l.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},l.prototype.init=function(p){var d=this.createComponent(p),f=d.mountedComponent,v=d.componentInstance;this.mountedComponent=f,this.componentInstance=v},l}(),ku=function(l){return l.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},Uu=function(l){return"on"+l.charAt(0).toUpperCase()+l.substring(1,l.length)},_m=function(){var l={gridOptions:{default:function(){return{}}},autoParamsRefresh:!1,componentDependencies:{default:function(){return[]}},modules:{default:function(){return[]}},rowDataModel:void 0},p=wt.ComponentUtil.EVENTS.map(function(v){return Uu(ku(v))});p.reduce(function(v,C){return v[C]=void 0,v},l);var d={rowDataModel:function(v,C){this.processChanges("rowData",v,C)}};wt.ComponentUtil.ALL_PROPERTIES.forEach(function(v){l[v]={},d[v]=function(C,_){this.processChanges(v,C,_)}});var f={prop:"rowDataModel",event:"data-model-changed"};return[l,d,f]},ju=function(){function l(){}return l.hasChildColumns=function(p){return p&&p.default&&p.default.length>0},l.mapChildColumnDefs=function(p){return p.default.map(function(d){return l.toColDef(d)})},l.toColDef=function(p){var d=l.createColDefFromGridColumn(p);return p.children&&p.children.length>0&&(d.children=l.getChildColDefs(p.children)),d},l.getChildColDefs=function(p){return p.map(function(d){return l.createColDefFromGridColumn(d)})},l.createColDefFromGridColumn=function(p){var d={};return l.assign(d,p.data.attrs),delete d.children,wt.ColDefUtil.BOOLEAN_PROPERTIES.forEach(function(f){var v=d;v[f]===""&&(v[f]=!0)}),d},l.assign=function(p,d){return[d].reduce(function(f,v){return Object.keys(v).forEach(function(C){f[C]=v[C]}),f},p)},l}(),Em=globalThis&&globalThis.__extends||function(){var l=function(p,d){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var C in v)v.hasOwnProperty(C)&&(f[C]=v[C])},l(p,d)};return function(p,d){l(p,d);function f(){this.constructor=p}p.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}(),Rm=globalThis&&globalThis.__decorate||function(l,p,d,f){var v=arguments.length,C=v<3?p:f===null?f=Object.getOwnPropertyDescriptor(p,d):f,_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(l,p,d,f);else for(var O=l.length-1;O>=0;O--)(_=l[O])&&(C=(v<3?_(C):v>3?_(p,d,C):_(p,d))||C);return v>3&&C&&Object.defineProperty(p,d,C),C},Yi=_m(),Sm=Yi[0],Om=Yi[1],Pm=Yi[2],Dm=function(l){Em(p,l);function p(){var f=l!==null&&l.apply(this,arguments)||this;return f.gridCreated=!1,f.isDestroyed=!1,f.gridReadyFired=!1,f.emitRowModel=null,f}d=p,p.prototype.render=function(){return h.h("div")},p.prototype.globalEventListener=function(f,v){this.isDestroyed||(f==="gridReady"&&(this.gridReadyFired=!0),this.updateModelIfUsed(f))},p.prototype.processChanges=function(f,v,C){if(this.gridCreated){if(this.skipChange(f,v,C))return;var _={};_[f]={currentValue:v,previousValue:C},wt.ComponentUtil.processOnChange(_,this.gridOptions,this.gridOptions.api,this.gridOptions.columnApi)}},p.prototype.mounted=function(){var f=this;this.emitRowModel=this.debounce(function(){f.$emit(d.DATA_MODEL_ATTR_NAME,Object.freeze(f.getRowData()))},20);var v=new Cm(this),C=$v(wt.ComponentUtil.copyAttributesToGridOptions(or(this.gridOptions),this));this.checkForBindingConflicts(),C.rowData=this.getRowDataBasedOnBindings(),ju.hasChildColumns(this.$slots)&&(C.columnDefs=ju.mapChildColumnDefs(this.$slots));var _={globalEventListener:this.globalEventListener.bind(this),providedBeanInstances:{frameworkComponentWrapper:v},modules:this.modules};new wt.Grid(this.$el,C,_),this.gridCreated=!0},p.prototype.destroyed=function(){this.gridCreated&&(this.gridOptions.api&&this.gridOptions.api.destroy(),this.isDestroyed=!0)},p.prototype.checkForBindingConflicts=function(){var f=this;(f.rowData||this.gridOptions.rowData)&&f.rowDataModel&&console.warn("ag-grid: Using both rowData and rowDataModel. rowData will be ignored.")},p.prototype.getRowData=function(){var f=[];return this.gridOptions.api.forEachNode(function(v){f.push(v.data)}),f},p.prototype.updateModelIfUsed=function(f){this.gridReadyFired&&this.$attrs[d.DATA_MODEL_ATTR_NAME]&&d.ROW_DATA_EVENTS.indexOf(f)!==-1&&this.emitRowModel&&this.emitRowModel()},p.prototype.getRowDataBasedOnBindings=function(){var f=this,v=f.rowDataModel;return v||(f.rowData?f.rowData:f.gridOptions.rowData)},p.prototype.skipChange=function(f,v,C){if(this.gridReadyFired&&f==="rowData"&&this.$attrs[d.DATA_MODEL_ATTR_NAME]){if(v===C)return!0;if(v&&C){var _=v,O=C;if(_.length===O.length){for(var P=0;P<_.length;P++)if(_[P]!==O[P])return!1;return!0}}}return!1},p.prototype.debounce=function(f,v){var C;return function(){var _=function(){f()};window.clearTimeout(C),C=window.setTimeout(_,v)}};var d;return p.VERSION="Vue 3+",p.ROW_DATA_EVENTS=["rowDataChanged","rowDataUpdated","cellValueChanged","rowValueChanged"],p.DATA_MODEL_ATTR_NAME=Uu(ku("data-model-changed")),p=d=Rm([wt.Bean("agGridVue"),vm({props:Sm,watch:Om,model:Pm})],p),p}(Wu);const Am=pf(Object.freeze(Object.defineProperty({__proto__:null,AgGridVue:Dm},Symbol.toStringTag,{value:"Module"})));(function(l){function p(d){for(var f in d)l.hasOwnProperty(f)||(l[f]=d[f])}p(Am)})(Mu);const Tm=h.defineComponent({props:{gridApi:{type:Object,default:{}},storageColumnsKey:{type:String,default:""},columnDefs:{type:Array,default:[]},columnUpdate:{type:Number,default:0}},setup(l){const p=h.ref(),d=h.reactive({show:!1,left:"",top:"",bottom:"auto",columns:[]});h.watch(()=>l.columnUpdate,()=>{d.columns=l.columnDefs.map(P=>({...P,show:!P.hide}))}),d.columns=l.columnDefs.map(P=>({...P,show:!P.hide}));function f(){d.columns.forEach(A=>{A.hide=!A.show}),C(d.columns);const P=d.columns.map(A=>({field:A.field,headerName:A.headerName,width:A.width,minWidth:A.minWidth,hide:A.hide}));localStorage.setItem(l.storageColumnsKey,JSON.stringify(P))}function v(){d.columns.forEach(P=>{P.rowGroup?(P.hide=!0,P.show=!1):(P.hide=!1,P.show=!0)}),C(d.columns),localStorage.removeItem(l.storageColumnsKey)}function C(P){l.gridApi.setColumnDefs(P),d.show=!1}function _(){d.show=!1}function O(){setTimeout(()=>{const P=document.querySelector(`.${l.storageColumnsKey} .ag-header`);P&&(P.oncontextmenu=A=>{d.left=A.pageX+"px",d.top=A.pageY+"px",setTimeout(()=>{d.show=!0,h.nextTick(()=>{const N=p.value.clientHeight,G=document.documentElement.clientHeight;N+20>G-A.pageY&&(d.top="auto",d.bottom="10px")})}),A.preventDefault()})},1e3),document.removeEventListener("click",_,!1),document.removeEventListener("contextmenu",_,!1),document.addEventListener("click",_,!1),document.addEventListener("contextmenu",_,!1)}return O(),h.onActivated(()=>{O()}),{elColumnCheckedPanel:p,...h.toRefs(d),confirm:f,reset:v}}}),EA="",bm=(l=>(h.pushScopeId("data-v-d092a466"),l=l(),h.popScopeId(),l))(()=>h.createElementVNode("p",{class:"header-checked-header"}," 自定义字段显示信息 ",-1)),Nm={class:"header-checked-body"},Fm={class:"header-checked-footer"};function Im(l,p,d,f,v,C){const _=h.resolveComponent("el-checkbox"),O=h.resolveComponent("el-button");return h.withDirectives((h.openBlock(),h.createElementBlock("div",{ref:"elColumnCheckedPanel",style:h.normalizeStyle({left:l.left,top:l.top,bottom:l.bottom}),class:"header-checked",onClick:p[0]||(p[0]=h.withModifiers(()=>{},["stop"]))},[bm,h.createElementVNode("div",Nm,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.columns,(P,A)=>h.withDirectives((h.openBlock(),h.createBlock(_,{key:P.headerName+A,modelValue:P.show,"onUpdate:modelValue":N=>P.show=N,label:P.headerName},null,8,["modelValue","onUpdate:modelValue","label"])),[[h.vShow,P.headerName!==" "]])),128))]),h.createElementVNode("div",Fm,[h.createVNode(O,{type:"default",size:"small",onClick:l.reset,style:{"margin-right":"4px"}},{default:h.withCtx(()=>[h.createTextVNode("还原")]),_:1},8,["onClick"]),h.createVNode(O,{type:"primary",size:"small",onClick:l.confirm},{default:h.withCtx(()=>[h.createTextVNode("确定")]),_:1},8,["onClick"])])],4)),[[h.vShow,l.show]])}const Lm=Pe(Tm,[["render",Im],["__scopeId","data-v-d092a466"]]),Mm=h.defineComponent({components:{AgGridVue:Mu.AgGridVue,ColumnCheck:Lm},props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},emits:["onGridReady","handleSelectionChange","onViewportChanged","onRowSelected","onRowClicked"],setup(l,p){var Be;const d=eo();let f=null;const v=l.componentOption;let C=-1,_={};const O=h.reactive({showTable:!0,defaultColDef:{resizable:!0,headerClass:(Be=v.configFlag)==null?void 0:Be.headerClass},columnDefs:v.columns,configFlag:{rowHeight:30,checkboxSelection:!1,rowSelection:"multiple",rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!0,index:!1,border:!0,isRowClick:!1,isTotal:!1,groupSelectsChildren:!1,autoGroupColumnDef:{}},pageInfo:v.pageInfo,rowData:h.computed(()=>(v.data.result.length&&setTimeout(()=>{O.showTable=!0},300),v.data.result)),totalNum:h.computed(()=>Number(v.data.totalNum)),storageColumnsKey:h.computed(()=>(v.status||"")+(v.key||"")),gridApi:null,columnUpdate:0});v.configFlag&&Object.keys(v.configFlag).forEach(z=>{O.configFlag[z]=v.configFlag[z]}),O.configFlag.isRowClick&&h.watch(()=>l.tableComp.data.result,()=>{C=-1}),O.configFlag.checkboxSelection&&(O.columnDefs=[{headerName:" ",field:" ",width:30,resizable:!1,headerCheckboxSelectionFilteredOnly:!0,headerCheckboxSelection:!0,checkboxSelection:O.configFlag.checkboxSelection,pinned:"left"},...v.columns]),O.configFlag.total&&h.watch(()=>l.tableComp.data.result,()=>{P()});function P(){const z=[];let T={};O.columnDefs.map((ie,$)=>{T.type="total",$===0?T[ie.field]="总计":ie.showTotal?T[ie.field]=A(l.tableComp.data.result,ie.field):T[ie.field]=""}),z.push(T),f.setPinnedBottomRowData(z)}function A(z,T){let ie=0;for(let $=0;$<z.length;$++)ie=ug(ie,parseFloat(z[$][T]?z[$][T]:0));return ie}h.watch(()=>v.columns,()=>{const z=v.columns.filter(T=>T.rowGroup?T:(T.hide=T.hide?T.hide:!1,!T.hide));O.configFlag.checkboxSelection?O.columnDefs=[{headerName:" ",field:" ",width:30,resizable:!1,headerCheckboxSelectionFilteredOnly:!0,headerCheckboxSelection:!0,checkboxSelection:O.configFlag.checkboxSelection,pinned:"left"},...z]:O.columnDefs=z,N(),O.columnUpdate=Date.now(),setTimeout(()=>{O.configFlag.sizeColumnsToFit&&f.sizeColumnsToFit()})});function N(){let z=localStorage.getItem(O.storageColumnsKey);z&&(JSON.parse(z).forEach((ie,$)=>{for(let Mt=0,So=O.columnDefs.length;Mt<So;Mt++){const so=O.columnDefs[Mt];if(so.headerName===ie.headerName){so.index=$,so.width=ie.width,so.minWidth=ie.minWidth,so.hide=ie.hide||!1;break}}}),O.columnDefs.sort((ie,$)=>ie.index-$.index))}N();function G(z){let T=z.api.getColumnDefs();T=T.map((ie,$)=>(ie.hide&&(O.columnDefs[$].hide=!0),{field:ie.field,headerName:ie.headerName,width:ie.width,minWidth:ie.minWidth,hide:ie.hide})),localStorage.setItem(O.storageColumnsKey,JSON.stringify(T)),O.columnUpdate=Date.now()}function H(z){const T=l.getRowStyle?l.getRowStyle(z):{},ie=z.api.getRowNode(z.rowIndex);return typeof O.configFlag.checkboxSelection=="function"&&(ie.selectable=O.configFlag.checkboxSelection(z)),z.node.isClicked===void 0?T:z.node.isClicked?{"background-color":"#ffe48d",...T}:{"background-color":"",...T}}function U(z){p.emit("onRowSelected",z)}function Z(){p.emit("onViewportChanged")}function re(z){f=O.gridApi=z.api,O.configFlag.sizeColumnsToFit&&z.api.sizeColumnsToFit(),p.emit("onGridReady",z.api)}function K(z){var T=z.api.getSelectedRows();v.onSelectionChanged&&v.onSelectionChanged(T)}function me(z){if(!z.rowPinned&&C!==z.rowIndex&&O.configFlag.isRowClick){if(C>-1){const ie=z.api.getRowNode(C);ie.isClicked=!1,ie.setData(_)}const T=z.api.getRowNode(z.rowIndex);T.isClicked=!0,T.setData(z.data),v.onRowClickedFn&&v.onRowClickedFn(z,v),C=z.rowIndex,_=z.data}}function De(z){O.configFlag.onCellClicked&&O.configFlag.onCellClicked({field:z.colDef.field,data:z.data,rowIndex:z.rowIndex,tableComp:v},z)}function le(z){v.pageInfo.pageSize=z,d.dispatch("tableQuery",{tableComp:v})}function ce(z){v.pageInfo.currentPage=z,v.pageInfo.pageNum=z,d.dispatch("tableQuery",{tableComp:v})}return{...h.toRefs(O),onGridReady:re,dragStopped:G,sizeChange:le,onSelectionChanged:K,currentChange:ce,viewportChanged:Z,onRowSelected:U,onRowClicked:me,onCellClicked:De,getRowStyle:H}}}),Gm={style:{display:"flex","justify-content":"end"}};function xm(l,p,d,f,v,C){const _=h.resolveComponent("ag-grid-vue"),O=h.resolveComponent("el-pagination"),P=h.resolveComponent("ColumnCheck");return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(_,{class:h.normalizeClass(["ag-theme-alpine",[l.storageColumnsKey]]),style:h.normalizeStyle({opacity:l.showTable?1:0}),headerHeight:"22",rowHeight:l.configFlag.rowHeight,columnDefs:l.columnDefs,defaultColDef:l.defaultColDef,rowData:l.rowData,rowSelection:"multiple",rowMultiSelectWithClick:l.configFlag.rowMultiSelectWithClick,autoGroupColumnDef:l.configFlag.autoGroupColumnDef,suppressRowDeselection:!1,suppressRowClickSelection:!!(l.configFlag.suppressRowClickSelection||!l.configFlag.suppressRowClickSelection&&l.configFlag.suppressRowClickSelection!==!1),onGridReady:l.onGridReady,onSelectionChanged:l.onSelectionChanged,getRowStyle:l.getRowStyle,enableCellTextSelection:!0,ensureDomOrder:!0,groupSelectsChildren:l.configFlag.groupSelectsChildren,onViewportChanged:l.viewportChanged,onRowSelected:l.onRowSelected,onRowClicked:l.onRowClicked,onDragStopped:l.dragStopped,onCellClicked:l.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"]),h.renderSlot(l.$slots,l.configFlag.slotName),h.createElementVNode("div",Gm,[l.pageInfo?(h.openBlock(),h.createBlock(O,{key:0,style:{"margin-top":"5px"},total:l.totalNum,pageNum:l.pageInfo.currentPage,pageSize:l.pageInfo.pageSize,layout:"total,sizes, prev, pager, next",onSizeChange:l.sizeChange,onCurrentChange:l.currentChange,"page-sizes":[20,50,100,300,500],small:""},null,8,["total","pageNum","pageSize","onSizeChange","onCurrentChange"])):h.createCommentVNode("",!0)]),h.createVNode(P,{gridApi:l.gridApi,storageColumnsKey:l.storageColumnsKey,columnDefs:l.columnDefs,columnUpdate:l.columnUpdate},null,8,["gridApi","storageColumnsKey","columnDefs","columnUpdate"])],64)}const Vm=Pe(Mm,[["render",xm]]),Hm=h.defineComponent({name:"CardText",components:{},props:{componentOption:{type:Array}},setup(){const l=h.reactive({});return{...h.toRefs(l)}}}),SA="",Wm={class:"cardTextRow"},Bm={class:"cardTextStyle",style:{"text-align":"center"}},km={key:0};function Um(l,p,d,f,v,C){const _=h.resolveComponent("el-button"),O=h.resolveComponent("el-card");return h.openBlock(),h.createElementBlock("div",Wm,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.value,(P,A)=>(h.openBlock(),h.createBlock(O,{shadow:"hover",style:{width:"200px"}},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.multipleValues,(N,G)=>(h.openBlock(),h.createElementBlock("div",Bm,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(N.valuekey,(H,U)=>(h.openBlock(),h.createElementBlock("span",null,[H.type=="text"?(h.openBlock(),h.createElementBlock("span",km,h.toDisplayString(P[H.key]),1)):h.createCommentVNode("",!0),H.type=="btn"?(h.openBlock(),h.createBlock(_,{key:1,size:"small",style:h.normalizeStyle(H.style),type:"primary"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(H.key),1)]),_:2},1032,["style"])):h.createCommentVNode("",!0)]))),256))]))),256))]),_:2},1024))),256))])}const jm=Pe(Hm,[["render",Um],["__scopeId","data-v-26a53675"]]),zm=h.defineComponent({name:"imageList",components:{},props:{componentOption:{type:Object}},setup(){const l=h.reactive({});return{...h.toRefs(l)}}}),$m=["src"];function Km(l,p,d,f,v,C){return h.openBlock(),h.createElementBlock("div",{style:h.normalizeStyle(l.componentOption.style)},[h.createElementVNode("img",{style:{width:"100%",height:"100%"},src:l.componentOption.value[0],alt:""},null,8,$m)],4)}const Ym=Pe(zm,[["render",Km]]),qm=h.defineComponent({name:"imageList",components:{},props:{componentOption:{type:Array}},setup(){const l=h.reactive({});return{...h.toRefs(l)}}}),Xm=["src"];function Qm(l,p,d,f,v,C){return h.openBlock(),h.createElementBlock("div",null,[l.componentOption.label?(h.openBlock(),h.createElementBlock("span",{key:0,class:"labelText",style:h.normalizeStyle(`width:${l.componentOption.labelWidth}`)},h.toDisplayString(l.componentOption.label)+": ",5)):h.createCommentVNode("",!0),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.value,_=>(h.openBlock(),h.createElementBlock("img",{style:h.normalizeStyle(l.componentOption.style||"width: 80px; height: 80px; margin-right: 10px"),src:_,alt:""},null,12,Xm))),256))])}const Jm=Pe(qm,[["render",Qm]]),Zm=h.defineComponent({name:"TagArr",props:{componentOption:{type:Object,default:{}}},components:{},setup(){const l=h.reactive({});return{...h.toRefs(l)}}}),eC={class:"container"},tC={key:1},oC={key:2},rC={class:"componentOptionTextStyle",style:{"text-align":"center"}},nC={key:0},iC={key:1};function sC(l,p,d,f,v,C){const _=h.resolveComponent("el-tag");return h.openBlock(),h.createElementBlock("div",eC,[l.componentOption.label?(h.openBlock(),h.createElementBlock("span",{key:0,class:"labelText",style:h.normalizeStyle(`width:${l.componentOption.labelWidth}`)},h.toDisplayString(l.componentOption.label)+": ",5)):h.createCommentVNode("",!0),l.componentOption.multipleValues?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("span",tC,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.value,O=>(h.openBlock(),h.createBlock(_,{style:{"margin-right":"5px"}},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(O),1)]),_:2},1024))),256))])),l.componentOption.multipleValues?(h.openBlock(),h.createElementBlock("span",oC,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.value,(O,P)=>(h.openBlock(),h.createBlock(_,{style:{"margin-right":"5px"}},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.multipleValues,(A,N)=>(h.openBlock(),h.createElementBlock("span",rC,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(A.valuekey,(G,H)=>(h.openBlock(),h.createElementBlock("span",null,[G.type=="text"?(h.openBlock(),h.createElementBlock("span",nC,h.toDisplayString(O[G.key]),1)):h.createCommentVNode("",!0),G.type=="array"?(h.openBlock(),h.createElementBlock("span",iC,h.toDisplayString(O[G.key])+" ",1)):h.createCommentVNode("",!0)]))),256))]))),256))]),_:2},1024))),256))])):h.createCommentVNode("",!0)])}const aC=Pe(Zm,[["render",sC]]),lC=h.defineComponent({name:"tag",props:{componentOption:{type:Object}},components:{},setup(){const l=h.reactive({});return{...h.toRefs(l)}}});function uC(l,p,d,f,v,C){const _=h.resolveComponent("el-tag");return h.openBlock(),h.createElementBlock("div",null,[l.componentOption.label?(h.openBlock(),h.createElementBlock("span",{key:0,class:"labelText",style:h.normalizeStyle(`width:${l.componentOption.labelWidth}`)},h.toDisplayString(l.componentOption.label)+": ",5)):h.createCommentVNode("",!0),h.createVNode(_,null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(l.componentOption.value),1)]),_:1})])}const pC=Pe(lC,[["render",uC]]),OA="",cC=h.defineComponent({name:"text",props:{componentOption:{type:Object}},components:{},setup(){const l=h.reactive({});return{...h.toRefs(l)}}}),PA="";function dC(l,p,d,f,v,C){return h.openBlock(),h.createElementBlock("div",null,[l.componentOption.label?(h.openBlock(),h.createElementBlock("span",{key:0,class:"labelText",style:h.normalizeStyle(`width:${l.componentOption.labelWidth}`)},h.toDisplayString(l.componentOption.label)+": ",5)):h.createCommentVNode("",!0),h.createElementVNode("span",null,h.toDisplayString(l.componentOption.value),1)])}const hC=Pe(cC,[["render",dC],["__scopeId","data-v-b6dacdbb"]]),fC=h.defineComponent({name:"TextArr",props:{componentOption:{type:Object,default:{}}},components:{},setup(){const l=h.reactive({});return{...h.toRefs(l)}}}),gC={class:"container"},vC={key:1},yC={style:{"margin-right":"5px"}},mC={key:2},CC={style:{"margin-right":"5px"}},wC={class:"componentOptionTextStyle",style:{"text-align":"center"}},_C={key:0};function EC(l,p,d,f,v,C){return h.openBlock(),h.createElementBlock("div",gC,[l.componentOption.label?(h.openBlock(),h.createElementBlock("span",{key:0,class:"labelText",style:h.normalizeStyle(`width:${l.componentOption.labelWidth}`)},h.toDisplayString(l.componentOption.label)+": ",5)):h.createCommentVNode("",!0),l.componentOption.multipleValues?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("span",vC,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.value,_=>(h.openBlock(),h.createElementBlock("span",yC,h.toDisplayString(_),1))),256))])),l.componentOption.multipleValues?(h.openBlock(),h.createElementBlock("span",mC,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.value,(_,O)=>(h.openBlock(),h.createElementBlock("span",CC,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.multipleValues,(P,A)=>(h.openBlock(),h.createElementBlock("span",wC,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(P.valuekey,(N,G)=>(h.openBlock(),h.createElementBlock("span",null,[N.type=="text"?(h.openBlock(),h.createElementBlock("span",_C,h.toDisplayString(_[N.key]),1)):h.createCommentVNode("",!0)]))),256))]))),256))]))),256))])):h.createCommentVNode("",!0)])}const RC=Pe(fC,[["render",EC]]),SC=h.defineComponent({props:{componentOption:{type:Object},pageKey:{type:String,required:!0},configOption:{type:Array},data:{type:Object,default:{}}},setup(l,p){console.log(1111111111,l.componentOption.key.value);let d=h.ref();const f=eo(),v=h.reactive({data:{},formGroup:[],buttonGroup:[],formData:{},dialog:!0});function C(){v.dialog=!0}function _(){return!1}function O(){d.value.formRef.validate(P=>{if(P){if(l.popupData.data.submitBefore&&l.popupData.data.submitBefore()===!1)return;f.commit("setLoading",!0);const A=v.data.params(l.selectedRows,v.formData);let N=v.data.method=="GET"?"params":"data";io({url:f.state.baseUrl+v.data.url,[N]:A||{},method:v.data.method||"POST"}).then(G=>{Lt.success("操作成功"),p.emit("onSuccess",G)}).catch(G=>{console.log(G)}).finally(()=>{f.commit("setLoading",!1)})}})}return{...h.toRefs(v),formRef:d,store:f,showDialog:C,submit:O,closeDialog:_}}});function OC(l,p,d,f,v,C){const _=h.resolveComponent("el-dialog");return h.openBlock(),h.createBlock(_,{modelValue:l.dialog,"onUpdate:modelValue":p[0]||(p[0]=O=>l.dialog=O),title:l.componentOption.label,width:l.componentOption.width||30,"before-close":l.handleClose,top:l.componentOption.top||"15vh",modal:l.componentOption.modal||!0,"show-close":l.componentOption.showClose||!0,"close-on-press-escape":l.componentOption.escape||!0,"close-on-click-modal":l.componentOption.clickModal||!0,center:l.componentOption.center||!1},{default:h.withCtx(()=>[h.renderSlot(l.$slots,"default",{componentOption:l.componentOption})]),_:3},8,["modelValue","title","width","before-close","top","modal","show-close","close-on-press-escape","close-on-click-modal","center"])}const PC=Pe(SC,[["render",OC]]),DC=h.defineComponent({name:"RowItem",components:{Card:Ty,Form:qy,ButtonGroup:tm,AgGridTable:Vm,CardText:jm,ImageOne:Ym,ImageList:Jm,TagArr:aC,Text:hC,Tag:pC,TextArr:RC,Dialog:PC},props:{pageKey:{type:String,required:!0},configOption:{type:Array,default:[]}}});function AC(l,p,d,f,v,C){const _=h.resolveComponent("RowItem",!0),O=h.resolveComponent("el-col"),P=h.resolveComponent("el-row");return h.openBlock(),h.createBlock(P,null,{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.configOption,(A,N)=>(h.openBlock(),h.createBlock(O,{style:h.normalizeStyle(A.style||""),class:h.normalizeClass(A.class||""),span:A.span||24,offset:A.offset||0,key:N},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(A.type),{pageKey:l.pageKey,componentOption:A},{default:h.withCtx(()=>[A.children&&A.children.length?(h.openBlock(),h.createBlock(_,{key:0,pageKey:l.pageKey,configOption:A.children},null,8,["pageKey","configOption"])):h.createCommentVNode("",!0)]),_:2},1032,["pageKey","componentOption"]))]),_:2},1032,["style","class","span","offset"]))),128))]),_:1})}const TC=Pe(DC,[["render",AC]]),bC=h.defineComponent({name:"Page",props:{pageKey:{type:String,required:!0},configOption:{type:Array,defaule:[],required:!0},data:{type:Object,default:{}}},components:{RowItem:TC},setup({configOption:l,data:p}){console.log(11111),console.log(l,p),console.log(22222),p&&d(l,p);function d(v,C){v.forEach(_=>{var O;if(_.children)d(_.children,C);else if(_.relation)if(Array.isArray(_.relation))_.value="",_.relation.forEach(P=>{const A=P.split(".");_.value+=" "+f(A,C)});else{const P=(O=_.relation)==null?void 0:O.split(".");_.value=f(P,C)}})}function f(v,C){if(v.length===1)return C;if(v.length===2)return C[v[1]];if(v.length===3)return C[v[1]][v[2]];if(v.length===4)return C[v[1]][v[2]][v[3]];if(v.length===5)return C[v[1]][v[2]][v[3]][v[4]]}return{}}}),DA="";function NC(l,p,d,f,v,C){const _=h.resolveComponent("RowItem");return h.openBlock(),h.createBlock(_,{pageKey:l.pageKey,configOption:l.configOption},null,8,["pageKey","configOption"])}const FC=Pe(bC,[["render",NC],["__scopeId","data-v-94f7ee6c"]]);function IC(l){l.use(ji).component("DfsPageConfig",FC)}return IC});
|
|
1497
|
+
\0`+(g?"\0\b":"\0\0")+"\0\0"+u(y,2)+u(w,2)+u(F?this.getFromCrc32Table(B):0,4)+u(F,4)+u(F,4)+u(c.length,2)+u(R.length,2),L="PK"+M+c+R,j="PK\0"+M+"\0\0\0\0\0\0"+(o?"\0\0\0\0":"\0\0\0")+u(e,4)+c+R;return{fileHeader:L,folderHeader:j,content:B||""}},i.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}},i.buildFolderEnd=function(t,e,o){var r=X.decToHex;return"PK\0\0\0\0"+r(t,2)+r(t,2)+r(e,4)+r(o,4)+"\0\0"},i.buildUint8Array=function(t){for(var e=new Uint8Array(t.length),o=0;o<e.length;o++)e[o]=t.charCodeAt(o);return e},i.getFromCrc32Table=function(t){if(!t.length)return 0;for(var e=t.length,o=new Uint8Array(e),r=0;r<e;r++)o[r]=t.charCodeAt(r);for(var n=-1,s=0,a=0,u=0,r=0;r<e;r++)s=o[r],a=(n^s)&255,u=bD[a],n=n>>>8^u;return n^-1},i.convertTime=function(t){var e=t.getHours();return e<<=6,e=e|t.getMinutes(),e<<=5,e=e|t.getSeconds()/2,e},i.convertDate=function(t){var e=t.getFullYear()-1980;return e<<=4,e=e|t.getMonth()+1,e<<=5,e=e|t.getDate(),e},i.folders=[],i.files=[],i}();oe.register(yD,!1),oe.register(SD,!1),oe.register(Lh,!1),l.AbstractHeaderCellCtrl=Er,l.AgAbstractField=At,l.AgAngleSelect=ph,l.AgCheckbox=Bo,l.AgColorPicker=ah,l.AgDialog=La,l.AgGroupComponent=th,l.AgInputNumberField=lh,l.AgInputRange=uh,l.AgInputTextArea=ih,l.AgInputTextField=Ma,l.AgPanel=Ia,l.AgPromise=Ye,l.AgRadioButton=Gd,l.AgSelect=Ks,l.AgSlider=sh,l.AgStackComponentsRegistry=wp,l.AgToggleButton=ch,l.AlignedGridsService=jd,l.AnimateShowChangeCellRenderer=Cc,l.AnimateSlideCellRenderer=wc,l.AnimationFrameService=qd,l.AutoScrollService=id,l.AutoWidthCalculator=Rd,l.Autowired=m,l.BaseComponentWrapper=tD,l.BaseCreator=Ah,l.BaseGridSerializingSession=Th,l.Bean=Y,l.BeanStub=V,l.Beans=la,l.BodyDropPivotTarget=$c,l.BodyDropTarget=Kc,l.CellComp=_h,l.CellCtrl=Yt,l.CellNavigationService=Id,l.CellPositionUtils=hh,l.ChangedPath=bn,l.CheckboxSelectionComponent=oa,l.ColDefUtil=gs,l.Color=bo,l.Column=fe,l.ColumnApi=Lc,l.ColumnFactory=up,l.ColumnGroup=Fe,l.ColumnKeyCreator=re,l.ColumnModel=fp,l.ColumnUtils=yp,l.Component=se,l.ComponentUtil=it,l.Constants=D,l.Context=rp,l.CssClassApplier=ga,l.CsvCreator=Fh,l.CsvExportModule=Lh,l.CtrlsService=Ch,l.CustomTooltipFeature=ks,l.DateFilter=Xs,l.DisplayedGroupCreator=mp,l.Downloader=bh,l.DragAndDropService=ze,l.DragService=Td,l.Environment=Yd,l.EventService=Gt,l.Events=E,l.ExpressionService=yd,l.FilterManager=od,l.FloatingFilterMapper=Yc,l.FocusService=jo,l.Grid=Ua,l.GridApi=gd,l.GridBodyComp=fd,l.GridBodyCtrl=pd,l.GridComp=Ad,l.GridCoreCreator=Sh,l.GridCtrl=Od,l.GridHeaderComp=td,l.GridHeaderCtrl=kc,l.GridOptionsWrapper=q,l.GridSerializer=Ih,l.GroupCellRenderer=ra,l.GroupCellRendererCtrl=Rc,l.GroupInstanceIdCreator=ls,l.HeaderCellCtrl=Qc,l.HeaderFilterCellComp=Vc,l.HeaderFilterCellCtrl=Xc,l.HeaderGroupCellCtrl=Jc,l.HeaderNavigationService=Bc,l.HeaderPositionUtils=vh,l.HeaderRowComp=Wc,l.HeaderRowContainerComp=xn,l.HeaderRowContainerCtrl=ed,l.HeaderRowCtrl=Gn,l.HorizontalResizeService=Sd,l.KeyCode=W,l.LargeTextCellEditor=gc,l.Logger=Wn,l.LoggerFactory=Ed,l.ManagedFocusFeature=Vt,l.ModuleRegistry=oe,l.MouseEventService=Fd,l.MoveColumnFeature=jc,l.NavigationService=Xd,l.NumberFilter=Js,l.NumberSequence=co,l.Optional=he,l.PaginationProxy=Bd,l.PinnedRowModel=fh,l.PopupComponent=Go,l.PopupEditorWrapper=wh,l.PopupSelectCellEditor=yc,l.PopupService=wd,l.PopupTextCellEditor=mc,l.PositionableFeature=nh,l.PostConstruct=k,l.PreConstruct=rs,l.PreDestroy=Ne,l.PropertyKeys=St,l.ProvidedColumnGroup=Re,l.ProvidedFilter=gr,l.Qualifier=xe,l.QuerySelector=m_,l.RefSelector=x,l.ResizeObserverService=eh,l.RowContainerComp=Eh,l.RowContainerCtrl=Hn,l.RowCtrl=qt,l.RowNode=ae,l.RowNodeBlock=qn,l.RowNodeBlockLoader=yh,l.RowNodeSorter=mh,l.RowPositionUtils=dh,l.RowRenderer=xc,l.ScalarFilter=je,l.ScrollVisibleService=Vd,l.SelectCellEditor=ta,l.SelectableService=Jd,l.SelectionService=Ic,l.SetLeftFeature=Ln,l.SimpleFilter=Ue,l.SortController=bd,l.StandardMenuFactory=Rh,l.StylingService=Wd,l.TabGuardComp=Ra,l.TabGuardCtrl=Dd,l.TabbedLayout=XP,l.TemplateService=Cd,l.TextCellEditor=Pn,l.TextFilter=On,l.TextFloatingFilter=fc,l.Timer=f_,l.TouchListener=lt,l.UserComponentFactory=Ac,l.UserComponentRegistry=Oc,l.ValueCache=Ud,l.ValueFormatterService=Md,l.ValueService=rd,l.VanillaFrameworkOverrides=xd,l.VirtualList=ZP,l.XmlFactory=TD,l.ZipContainer=ND,l._=X,l.defaultGroupComparator=eD,l.initialiseAgGridWithAngular1=zP,l.initialiseAgGridWithWebComponents=KP,l.simpleHttpRequest=QP,l.stringToArray=_p})(wt);var jt=globalThis&&globalThis.__assign||function(){return jt=Object.assign||function(l){for(var p,d=1,f=arguments.length;d<f;d++){p=arguments[d];for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(l[v]=p[v])}return l},jt.apply(this,arguments)},ym=function(){function l(){}return l.getComponentDefinition=function(p,d){var f;return typeof p=="string"?(f=this.searchForComponentInstance(d,p),f.template?f=jt({},h.defineComponent(f)):f={extends:h.defineComponent(f)}):f={extends:h.defineComponent(jt({},p))},f||console.error("Could not find component with name of "+p+". Is it in Vue.components?"),f.extends&&f.extends.setup&&(f.setup=f.extends.setup),f},l.createComponentParams=function(p,d){var f={params:Object.freeze(p),parent:d};return d.componentDependencies&&d.componentDependencies.forEach(function(v){return f[v]=d[v]}),f},l.createAndMountComponent=function(p,d,f){var v=l.getComponentDefinition(p,f);if(v){var C=l.createComponentParams(d,f),_=null,O=h.defineComponent(jt(jt({},v),{data:function(){return jt(jt({},C),v.data?v.data():{})},created:function(){_=this.$root,v.created&&v.created.bind(this)()}})),P=document.createElement("div"),A=h.createApp(O);return A.mount(P),{mountedComponent:A,componentInstance:_}}},l.searchForComponentInstance=function(p,d,f){f===void 0&&(f=10);for(var v=null,C=p.$parent,_=0;!v&&C&&C.$options&&++_<f;)v=C.$options.components[d],C=C.$parent;return v||(console.error("Could not find component with name of "+d+". Is it in Vue.components?"),null)},l}(),Bu=globalThis&&globalThis.__extends||function(){var l=function(p,d){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var C in v)v.hasOwnProperty(C)&&(f[C]=v[C])},l(p,d)};return function(p,d){l(p,d);function f(){this.constructor=p}p.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}(),mm=globalThis&&globalThis.__decorate||function(l,p,d,f){var v=arguments.length,C=v<3?p:f===null?f=Object.getOwnPropertyDescriptor(p,d):f,_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(l,p,d,f);else for(var O=l.length-1;O>=0;O--)(_=l[O])&&(C=(v<3?_(C):v>3?_(p,d,C):_(p,d))||C);return v>3&&C&&Object.defineProperty(p,d,C),C},Cm=function(l){Bu(p,l);function p(d){var f=l.call(this)||this;return f.parent=d,f}return p.prototype.createWrapper=function(d){var f=this,v=function(_){Bu(O,_);function O(){return _!==null&&_.apply(this,arguments)||this}return O.prototype.init=function(P){_.prototype.init.call(this,P)},O.prototype.hasMethod=function(P){return C.getFrameworkComponentInstance()[P]!=null},O.prototype.callMethod=function(P,A){var N=this.getFrameworkComponentInstance(),G=C.getFrameworkComponentInstance();return G[P].apply(N,A)},O.prototype.addMethod=function(P,A){C[P]=A},O.prototype.overrideProcessing=function(P){return f.parent.autoParamsRefresh&&P==="refresh"},O.prototype.processMethod=function(P,A){return P==="refresh"&&(this.getFrameworkComponentInstance().params=A[0]),this.hasMethod(P)?this.callMethod(P,A):P==="refresh"},O.prototype.createComponent=function(P){return f.createComponent(d,P)},O}(wm),C=new v;return C},p.prototype.createComponent=function(d,f){return ym.createAndMountComponent(d,f,this.parent)},p.prototype.createMethodProxy=function(d,f,v){return function(){return d.overrideProcessing(f)?d.processMethod(f,arguments):d.hasMethod(f)?d.callMethod(f,arguments):(v&&console.warn("AG Grid: Framework component is missing the method "+f+"()"),null)}},p.prototype.destroy=function(){this.parent=null},p=mm([wt.Bean("frameworkComponentWrapper")],p),p}(wt.BaseComponentWrapper),wm=function(){function l(){}return l.prototype.getGui=function(){return this.componentInstance.$el},l.prototype.destroy=function(){this.mountedComponent.unmount()},l.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},l.prototype.init=function(p){var d=this.createComponent(p),f=d.mountedComponent,v=d.componentInstance;this.mountedComponent=f,this.componentInstance=v},l}(),ku=function(l){return l.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},Uu=function(l){return"on"+l.charAt(0).toUpperCase()+l.substring(1,l.length)},_m=function(){var l={gridOptions:{default:function(){return{}}},autoParamsRefresh:!1,componentDependencies:{default:function(){return[]}},modules:{default:function(){return[]}},rowDataModel:void 0},p=wt.ComponentUtil.EVENTS.map(function(v){return Uu(ku(v))});p.reduce(function(v,C){return v[C]=void 0,v},l);var d={rowDataModel:function(v,C){this.processChanges("rowData",v,C)}};wt.ComponentUtil.ALL_PROPERTIES.forEach(function(v){l[v]={},d[v]=function(C,_){this.processChanges(v,C,_)}});var f={prop:"rowDataModel",event:"data-model-changed"};return[l,d,f]},ju=function(){function l(){}return l.hasChildColumns=function(p){return p&&p.default&&p.default.length>0},l.mapChildColumnDefs=function(p){return p.default.map(function(d){return l.toColDef(d)})},l.toColDef=function(p){var d=l.createColDefFromGridColumn(p);return p.children&&p.children.length>0&&(d.children=l.getChildColDefs(p.children)),d},l.getChildColDefs=function(p){return p.map(function(d){return l.createColDefFromGridColumn(d)})},l.createColDefFromGridColumn=function(p){var d={};return l.assign(d,p.data.attrs),delete d.children,wt.ColDefUtil.BOOLEAN_PROPERTIES.forEach(function(f){var v=d;v[f]===""&&(v[f]=!0)}),d},l.assign=function(p,d){return[d].reduce(function(f,v){return Object.keys(v).forEach(function(C){f[C]=v[C]}),f},p)},l}(),Em=globalThis&&globalThis.__extends||function(){var l=function(p,d){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var C in v)v.hasOwnProperty(C)&&(f[C]=v[C])},l(p,d)};return function(p,d){l(p,d);function f(){this.constructor=p}p.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}}(),Rm=globalThis&&globalThis.__decorate||function(l,p,d,f){var v=arguments.length,C=v<3?p:f===null?f=Object.getOwnPropertyDescriptor(p,d):f,_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(l,p,d,f);else for(var O=l.length-1;O>=0;O--)(_=l[O])&&(C=(v<3?_(C):v>3?_(p,d,C):_(p,d))||C);return v>3&&C&&Object.defineProperty(p,d,C),C},Yi=_m(),Sm=Yi[0],Om=Yi[1],Pm=Yi[2],Dm=function(l){Em(p,l);function p(){var f=l!==null&&l.apply(this,arguments)||this;return f.gridCreated=!1,f.isDestroyed=!1,f.gridReadyFired=!1,f.emitRowModel=null,f}d=p,p.prototype.render=function(){return h.h("div")},p.prototype.globalEventListener=function(f,v){this.isDestroyed||(f==="gridReady"&&(this.gridReadyFired=!0),this.updateModelIfUsed(f))},p.prototype.processChanges=function(f,v,C){if(this.gridCreated){if(this.skipChange(f,v,C))return;var _={};_[f]={currentValue:v,previousValue:C},wt.ComponentUtil.processOnChange(_,this.gridOptions,this.gridOptions.api,this.gridOptions.columnApi)}},p.prototype.mounted=function(){var f=this;this.emitRowModel=this.debounce(function(){f.$emit(d.DATA_MODEL_ATTR_NAME,Object.freeze(f.getRowData()))},20);var v=new Cm(this),C=$v(wt.ComponentUtil.copyAttributesToGridOptions(or(this.gridOptions),this));this.checkForBindingConflicts(),C.rowData=this.getRowDataBasedOnBindings(),ju.hasChildColumns(this.$slots)&&(C.columnDefs=ju.mapChildColumnDefs(this.$slots));var _={globalEventListener:this.globalEventListener.bind(this),providedBeanInstances:{frameworkComponentWrapper:v},modules:this.modules};new wt.Grid(this.$el,C,_),this.gridCreated=!0},p.prototype.destroyed=function(){this.gridCreated&&(this.gridOptions.api&&this.gridOptions.api.destroy(),this.isDestroyed=!0)},p.prototype.checkForBindingConflicts=function(){var f=this;(f.rowData||this.gridOptions.rowData)&&f.rowDataModel&&console.warn("ag-grid: Using both rowData and rowDataModel. rowData will be ignored.")},p.prototype.getRowData=function(){var f=[];return this.gridOptions.api.forEachNode(function(v){f.push(v.data)}),f},p.prototype.updateModelIfUsed=function(f){this.gridReadyFired&&this.$attrs[d.DATA_MODEL_ATTR_NAME]&&d.ROW_DATA_EVENTS.indexOf(f)!==-1&&this.emitRowModel&&this.emitRowModel()},p.prototype.getRowDataBasedOnBindings=function(){var f=this,v=f.rowDataModel;return v||(f.rowData?f.rowData:f.gridOptions.rowData)},p.prototype.skipChange=function(f,v,C){if(this.gridReadyFired&&f==="rowData"&&this.$attrs[d.DATA_MODEL_ATTR_NAME]){if(v===C)return!0;if(v&&C){var _=v,O=C;if(_.length===O.length){for(var P=0;P<_.length;P++)if(_[P]!==O[P])return!1;return!0}}}return!1},p.prototype.debounce=function(f,v){var C;return function(){var _=function(){f()};window.clearTimeout(C),C=window.setTimeout(_,v)}};var d;return p.VERSION="Vue 3+",p.ROW_DATA_EVENTS=["rowDataChanged","rowDataUpdated","cellValueChanged","rowValueChanged"],p.DATA_MODEL_ATTR_NAME=Uu(ku("data-model-changed")),p=d=Rm([wt.Bean("agGridVue"),vm({props:Sm,watch:Om,model:Pm})],p),p}(Wu);const Am=pf(Object.freeze(Object.defineProperty({__proto__:null,AgGridVue:Dm},Symbol.toStringTag,{value:"Module"})));(function(l){function p(d){for(var f in d)l.hasOwnProperty(f)||(l[f]=d[f])}p(Am)})(Mu);const Tm=h.defineComponent({props:{gridApi:{type:Object,default:{}},storageColumnsKey:{type:String,default:""},columnDefs:{type:Array,default:[]},columnUpdate:{type:Number,default:0}},setup(l){const p=h.ref(),d=h.reactive({show:!1,left:"",top:"",bottom:"auto",columns:[]});h.watch(()=>l.columnUpdate,()=>{d.columns=l.columnDefs.map(P=>({...P,show:!P.hide}))}),d.columns=l.columnDefs.map(P=>({...P,show:!P.hide}));function f(){d.columns.forEach(A=>{A.hide=!A.show}),C(d.columns);const P=d.columns.map(A=>({field:A.field,headerName:A.headerName,width:A.width,minWidth:A.minWidth,hide:A.hide}));localStorage.setItem(l.storageColumnsKey,JSON.stringify(P))}function v(){d.columns.forEach(P=>{P.rowGroup?(P.hide=!0,P.show=!1):(P.hide=!1,P.show=!0)}),C(d.columns),localStorage.removeItem(l.storageColumnsKey)}function C(P){l.gridApi.setColumnDefs(P),d.show=!1}function _(){d.show=!1}function O(){setTimeout(()=>{const P=document.querySelector(`.${l.storageColumnsKey} .ag-header`);P&&(P.oncontextmenu=A=>{d.left=A.pageX+"px",d.top=A.pageY+"px",setTimeout(()=>{d.show=!0,h.nextTick(()=>{const N=p.value.clientHeight,G=document.documentElement.clientHeight;N+20>G-A.pageY&&(d.top="auto",d.bottom="10px")})}),A.preventDefault()})},1e3),document.removeEventListener("click",_,!1),document.removeEventListener("contextmenu",_,!1),document.addEventListener("click",_,!1),document.addEventListener("contextmenu",_,!1)}return O(),h.onActivated(()=>{O()}),{elColumnCheckedPanel:p,...h.toRefs(d),confirm:f,reset:v}}}),EA="",bm=(l=>(h.pushScopeId("data-v-d092a466"),l=l(),h.popScopeId(),l))(()=>h.createElementVNode("p",{class:"header-checked-header"}," 自定义字段显示信息 ",-1)),Nm={class:"header-checked-body"},Fm={class:"header-checked-footer"};function Im(l,p,d,f,v,C){const _=h.resolveComponent("el-checkbox"),O=h.resolveComponent("el-button");return h.withDirectives((h.openBlock(),h.createElementBlock("div",{ref:"elColumnCheckedPanel",style:h.normalizeStyle({left:l.left,top:l.top,bottom:l.bottom}),class:"header-checked",onClick:p[0]||(p[0]=h.withModifiers(()=>{},["stop"]))},[bm,h.createElementVNode("div",Nm,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.columns,(P,A)=>h.withDirectives((h.openBlock(),h.createBlock(_,{key:P.headerName+A,modelValue:P.show,"onUpdate:modelValue":N=>P.show=N,label:P.headerName},null,8,["modelValue","onUpdate:modelValue","label"])),[[h.vShow,P.headerName!==" "]])),128))]),h.createElementVNode("div",Fm,[h.createVNode(O,{type:"default",size:"small",onClick:l.reset,style:{"margin-right":"4px"}},{default:h.withCtx(()=>[h.createTextVNode("还原")]),_:1},8,["onClick"]),h.createVNode(O,{type:"primary",size:"small",onClick:l.confirm},{default:h.withCtx(()=>[h.createTextVNode("确定")]),_:1},8,["onClick"])])],4)),[[h.vShow,l.show]])}const Lm=Pe(Tm,[["render",Im],["__scopeId","data-v-d092a466"]]),Mm=h.defineComponent({components:{AgGridVue:Mu.AgGridVue,ColumnCheck:Lm},props:{pageKey:{type:String,default:""},componentOption:{type:Object,default:{}}},emits:["onGridReady","handleSelectionChange","onViewportChanged","onRowSelected","onRowClicked"],setup(l,p){var Be;const d=eo();let f=null;const v=l.componentOption;let C=-1,_={};const O=h.reactive({showTable:!0,defaultColDef:{resizable:!0,headerClass:(Be=v.configFlag)==null?void 0:Be.headerClass},columnDefs:v.columns,configFlag:{rowHeight:30,checkboxSelection:!1,rowSelection:"multiple",rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!0,index:!1,border:!0,isRowClick:!1,isTotal:!1,groupSelectsChildren:!1,autoGroupColumnDef:{}},pageInfo:v.pageInfo,rowData:h.computed(()=>(v.data.result.length&&setTimeout(()=>{O.showTable=!0},300),v.data.result)),totalNum:h.computed(()=>Number(v.data.totalNum)),storageColumnsKey:h.computed(()=>(v.status||"")+(v.key||"")),gridApi:null,columnUpdate:0});v.configFlag&&Object.keys(v.configFlag).forEach(z=>{O.configFlag[z]=v.configFlag[z]}),O.configFlag.isRowClick&&h.watch(()=>l.tableComp.data.result,()=>{C=-1}),O.configFlag.checkboxSelection&&(O.columnDefs=[{headerName:" ",field:" ",width:30,resizable:!1,headerCheckboxSelectionFilteredOnly:!0,headerCheckboxSelection:!0,checkboxSelection:O.configFlag.checkboxSelection,pinned:"left"},...v.columns]),O.configFlag.total&&h.watch(()=>l.tableComp.data.result,()=>{P()});function P(){const z=[];let T={};O.columnDefs.map((ie,$)=>{T.type="total",$===0?T[ie.field]="总计":ie.showTotal?T[ie.field]=A(l.tableComp.data.result,ie.field):T[ie.field]=""}),z.push(T),f.setPinnedBottomRowData(z)}function A(z,T){let ie=0;for(let $=0;$<z.length;$++)ie=ug(ie,parseFloat(z[$][T]?z[$][T]:0));return ie}h.watch(()=>v.columns,()=>{const z=v.columns.filter(T=>T.rowGroup?T:(T.hide=T.hide?T.hide:!1,!T.hide));O.configFlag.checkboxSelection?O.columnDefs=[{headerName:" ",field:" ",width:30,resizable:!1,headerCheckboxSelectionFilteredOnly:!0,headerCheckboxSelection:!0,checkboxSelection:O.configFlag.checkboxSelection,pinned:"left"},...z]:O.columnDefs=z,N(),O.columnUpdate=Date.now(),setTimeout(()=>{O.configFlag.sizeColumnsToFit&&f.sizeColumnsToFit()})});function N(){let z=localStorage.getItem(O.storageColumnsKey);z&&(JSON.parse(z).forEach((ie,$)=>{for(let Mt=0,So=O.columnDefs.length;Mt<So;Mt++){const so=O.columnDefs[Mt];if(so.headerName===ie.headerName){so.index=$,so.width=ie.width,so.minWidth=ie.minWidth,so.hide=ie.hide||!1;break}}}),O.columnDefs.sort((ie,$)=>ie.index-$.index))}N();function G(z){let T=z.api.getColumnDefs();T=T.map((ie,$)=>(ie.hide&&(O.columnDefs[$].hide=!0),{field:ie.field,headerName:ie.headerName,width:ie.width,minWidth:ie.minWidth,hide:ie.hide})),localStorage.setItem(O.storageColumnsKey,JSON.stringify(T)),O.columnUpdate=Date.now()}function H(z){const T=l.getRowStyle?l.getRowStyle(z):{},ie=z.api.getRowNode(z.rowIndex);return typeof O.configFlag.checkboxSelection=="function"&&(ie.selectable=O.configFlag.checkboxSelection(z)),z.node.isClicked===void 0?T:z.node.isClicked?{"background-color":"#ffe48d",...T}:{"background-color":"",...T}}function U(z){p.emit("onRowSelected",z)}function Z(){p.emit("onViewportChanged")}function re(z){f=O.gridApi=z.api,O.configFlag.sizeColumnsToFit&&z.api.sizeColumnsToFit(),p.emit("onGridReady",z.api)}function K(z){var T=z.api.getSelectedRows();v.onSelectionChanged&&v.onSelectionChanged(T)}function me(z){if(!z.rowPinned&&C!==z.rowIndex&&O.configFlag.isRowClick){if(C>-1){const ie=z.api.getRowNode(C);ie.isClicked=!1,ie.setData(_)}const T=z.api.getRowNode(z.rowIndex);T.isClicked=!0,T.setData(z.data),v.onRowClickedFn&&v.onRowClickedFn(z,v),C=z.rowIndex,_=z.data}}function De(z){O.configFlag.onCellClicked&&O.configFlag.onCellClicked({field:z.colDef.field,data:z.data,rowIndex:z.rowIndex,tableComp:v},z)}function le(z){v.pageInfo.pageSize=z,d.dispatch("tableQuery",{tableComp:v})}function ce(z){v.pageInfo.currentPage=z,v.pageInfo.pageNum=z,d.dispatch("tableQuery",{tableComp:v})}return{...h.toRefs(O),onGridReady:re,dragStopped:G,sizeChange:le,onSelectionChanged:K,currentChange:ce,viewportChanged:Z,onRowSelected:U,onRowClicked:me,onCellClicked:De,getRowStyle:H}}}),Gm={style:{display:"flex","justify-content":"end"}};function xm(l,p,d,f,v,C){const _=h.resolveComponent("ag-grid-vue"),O=h.resolveComponent("el-pagination"),P=h.resolveComponent("ColumnCheck");return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(_,{class:h.normalizeClass(["ag-theme-alpine",[l.storageColumnsKey]]),style:h.normalizeStyle({opacity:l.showTable?1:0}),headerHeight:"22",rowHeight:l.configFlag.rowHeight,columnDefs:l.columnDefs,defaultColDef:l.defaultColDef,rowData:l.rowData,rowSelection:"multiple",rowMultiSelectWithClick:l.configFlag.rowMultiSelectWithClick,autoGroupColumnDef:l.configFlag.autoGroupColumnDef,suppressRowDeselection:!1,suppressRowClickSelection:!!(l.configFlag.suppressRowClickSelection||!l.configFlag.suppressRowClickSelection&&l.configFlag.suppressRowClickSelection!==!1),onGridReady:l.onGridReady,onSelectionChanged:l.onSelectionChanged,getRowStyle:l.getRowStyle,enableCellTextSelection:!0,ensureDomOrder:!0,groupSelectsChildren:l.configFlag.groupSelectsChildren,onViewportChanged:l.viewportChanged,onRowSelected:l.onRowSelected,onRowClicked:l.onRowClicked,onDragStopped:l.dragStopped,onCellClicked:l.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"]),h.renderSlot(l.$slots,l.configFlag.slotName),h.createElementVNode("div",Gm,[l.pageInfo?(h.openBlock(),h.createBlock(O,{key:0,style:{"margin-top":"5px"},total:l.totalNum,pageNum:l.pageInfo.currentPage,pageSize:l.pageInfo.pageSize,layout:"total,sizes, prev, pager, next",onSizeChange:l.sizeChange,onCurrentChange:l.currentChange,"page-sizes":[20,50,100,300,500],small:""},null,8,["total","pageNum","pageSize","onSizeChange","onCurrentChange"])):h.createCommentVNode("",!0)]),h.createVNode(P,{gridApi:l.gridApi,storageColumnsKey:l.storageColumnsKey,columnDefs:l.columnDefs,columnUpdate:l.columnUpdate},null,8,["gridApi","storageColumnsKey","columnDefs","columnUpdate"])],64)}const Vm=Pe(Mm,[["render",xm]]),Hm=h.defineComponent({name:"CardText",components:{},props:{componentOption:{type:Array}},setup(){const l=h.reactive({});return{...h.toRefs(l)}}}),SA="",Wm={class:"cardTextRow"},Bm={class:"cardTextStyle",style:{"text-align":"center"}},km={key:0};function Um(l,p,d,f,v,C){const _=h.resolveComponent("el-button"),O=h.resolveComponent("el-card");return h.openBlock(),h.createElementBlock("div",Wm,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.value,(P,A)=>(h.openBlock(),h.createBlock(O,{shadow:"hover",style:{width:"200px"}},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.multipleValues,(N,G)=>(h.openBlock(),h.createElementBlock("div",Bm,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(N.valuekey,(H,U)=>(h.openBlock(),h.createElementBlock("span",null,[H.type=="text"?(h.openBlock(),h.createElementBlock("span",km,h.toDisplayString(P[H.key]),1)):h.createCommentVNode("",!0),H.type=="btn"?(h.openBlock(),h.createBlock(_,{key:1,size:"small",style:h.normalizeStyle(H.style),type:"primary"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(H.key),1)]),_:2},1032,["style"])):h.createCommentVNode("",!0)]))),256))]))),256))]),_:2},1024))),256))])}const jm=Pe(Hm,[["render",Um],["__scopeId","data-v-26a53675"]]),zm=h.defineComponent({name:"imageList",components:{},props:{componentOption:{type:Object}},setup(){const l=h.reactive({});return{...h.toRefs(l)}}}),$m=["src"];function Km(l,p,d,f,v,C){return h.openBlock(),h.createElementBlock("div",{style:h.normalizeStyle(l.componentOption.style)},[h.createElementVNode("img",{style:{width:"100%",height:"100%"},src:l.componentOption.value[0],alt:""},null,8,$m)],4)}const Ym=Pe(zm,[["render",Km]]),qm=h.defineComponent({name:"imageList",components:{},props:{componentOption:{type:Array}},setup(){const l=h.reactive({});return{...h.toRefs(l)}}}),Xm=["src"];function Qm(l,p,d,f,v,C){return h.openBlock(),h.createElementBlock("div",null,[l.componentOption.label?(h.openBlock(),h.createElementBlock("span",{key:0,class:"labelText",style:h.normalizeStyle(`width:${l.componentOption.labelWidth}`)},h.toDisplayString(l.componentOption.label)+": ",5)):h.createCommentVNode("",!0),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.value,_=>(h.openBlock(),h.createElementBlock("img",{style:h.normalizeStyle(l.componentOption.style||"width: 80px; height: 80px; margin-right: 10px"),src:_,alt:""},null,12,Xm))),256))])}const Jm=Pe(qm,[["render",Qm]]),Zm=h.defineComponent({name:"TagArr",props:{componentOption:{type:Object,default:{}}},components:{},setup(){const l=h.reactive({});return{...h.toRefs(l)}}}),eC={class:"container"},tC={key:1},oC={key:2},rC={class:"componentOptionTextStyle",style:{"text-align":"center"}},nC={key:0},iC={key:1};function sC(l,p,d,f,v,C){const _=h.resolveComponent("el-tag");return h.openBlock(),h.createElementBlock("div",eC,[l.componentOption.label?(h.openBlock(),h.createElementBlock("span",{key:0,class:"labelText",style:h.normalizeStyle(`width:${l.componentOption.labelWidth}`)},h.toDisplayString(l.componentOption.label)+": ",5)):h.createCommentVNode("",!0),l.componentOption.multipleValues?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("span",tC,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.value,O=>(h.openBlock(),h.createBlock(_,{style:{"margin-right":"5px"}},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(O),1)]),_:2},1024))),256))])),l.componentOption.multipleValues?(h.openBlock(),h.createElementBlock("span",oC,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.value,(O,P)=>(h.openBlock(),h.createBlock(_,{style:{"margin-right":"5px"}},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.multipleValues,(A,N)=>(h.openBlock(),h.createElementBlock("span",rC,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(A.valuekey,(G,H)=>(h.openBlock(),h.createElementBlock("span",null,[G.type=="text"?(h.openBlock(),h.createElementBlock("span",nC,h.toDisplayString(O[G.key]),1)):h.createCommentVNode("",!0),G.type=="array"?(h.openBlock(),h.createElementBlock("span",iC,h.toDisplayString(O[G.key])+" ",1)):h.createCommentVNode("",!0)]))),256))]))),256))]),_:2},1024))),256))])):h.createCommentVNode("",!0)])}const aC=Pe(Zm,[["render",sC]]),lC=h.defineComponent({name:"tag",props:{componentOption:{type:Object}},components:{},setup(){const l=h.reactive({});return{...h.toRefs(l)}}});function uC(l,p,d,f,v,C){const _=h.resolveComponent("el-tag");return h.openBlock(),h.createElementBlock("div",null,[l.componentOption.label?(h.openBlock(),h.createElementBlock("span",{key:0,class:"labelText",style:h.normalizeStyle(`width:${l.componentOption.labelWidth}`)},h.toDisplayString(l.componentOption.label)+": ",5)):h.createCommentVNode("",!0),h.createVNode(_,null,{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(l.componentOption.value),1)]),_:1})])}const pC=Pe(lC,[["render",uC]]),OA="",cC=h.defineComponent({name:"text",props:{componentOption:{type:Object}},components:{},setup(){const l=h.reactive({});return{...h.toRefs(l)}}}),PA="";function dC(l,p,d,f,v,C){return h.openBlock(),h.createElementBlock("div",null,[l.componentOption.label?(h.openBlock(),h.createElementBlock("span",{key:0,class:"labelText",style:h.normalizeStyle(`width:${l.componentOption.labelWidth}`)},h.toDisplayString(l.componentOption.label)+": ",5)):h.createCommentVNode("",!0),h.createElementVNode("span",null,h.toDisplayString(l.componentOption.value),1)])}const hC=Pe(cC,[["render",dC],["__scopeId","data-v-b6dacdbb"]]),fC=h.defineComponent({name:"TextArr",props:{componentOption:{type:Object,default:{}}},components:{},setup(){const l=h.reactive({});return{...h.toRefs(l)}}}),gC={class:"container"},vC={key:1},yC={style:{"margin-right":"5px"}},mC={key:2},CC={style:{"margin-right":"5px"}},wC={class:"componentOptionTextStyle",style:{"text-align":"center"}},_C={key:0};function EC(l,p,d,f,v,C){return h.openBlock(),h.createElementBlock("div",gC,[l.componentOption.label?(h.openBlock(),h.createElementBlock("span",{key:0,class:"labelText",style:h.normalizeStyle(`width:${l.componentOption.labelWidth}`)},h.toDisplayString(l.componentOption.label)+": ",5)):h.createCommentVNode("",!0),l.componentOption.multipleValues?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("span",vC,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.value,_=>(h.openBlock(),h.createElementBlock("span",yC,h.toDisplayString(_),1))),256))])),l.componentOption.multipleValues?(h.openBlock(),h.createElementBlock("span",mC,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.value,(_,O)=>(h.openBlock(),h.createElementBlock("span",CC,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.componentOption.multipleValues,(P,A)=>(h.openBlock(),h.createElementBlock("span",wC,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(P.valuekey,(N,G)=>(h.openBlock(),h.createElementBlock("span",null,[N.type=="text"?(h.openBlock(),h.createElementBlock("span",_C,h.toDisplayString(_[N.key]),1)):h.createCommentVNode("",!0)]))),256))]))),256))]))),256))])):h.createCommentVNode("",!0)])}const RC=Pe(fC,[["render",EC]]),SC=h.defineComponent({props:{componentOption:{type:Object},pageKey:{type:String,required:!0},configOption:{type:Array},data:{type:Object,default:{}}},setup(l,p){console.log(1111111111,l.componentOption.key.value);let d=h.ref();const f=eo(),v=h.reactive({data:{},formGroup:[],buttonGroup:[],formData:{},dialog:!0});function C(){v.dialog=!0}function _(){return!1}function O(){d.value.formRef.validate(P=>{if(P){if(l.popupData.data.submitBefore&&l.popupData.data.submitBefore()===!1)return;f.commit("setLoading",!0);const A=v.data.params(l.selectedRows,v.formData);let N=v.data.method=="GET"?"params":"data";io({url:f.state.baseUrl+v.data.url,[N]:A||{},method:v.data.method||"POST"}).then(G=>{Lt.success("操作成功"),p.emit("onSuccess",G)}).catch(G=>{console.log(G)}).finally(()=>{f.commit("setLoading",!1)})}})}return{...h.toRefs(v),formRef:d,store:f,showDialog:C,submit:O,closeDialog:_}}});function OC(l,p,d,f,v,C){const _=h.resolveComponent("el-dialog");return h.openBlock(),h.createBlock(_,{modelValue:l.dialog,"onUpdate:modelValue":p[0]||(p[0]=O=>l.dialog=O),title:l.componentOption.label,width:l.componentOption.width||30,"before-close":l.handleClose,top:l.componentOption.top||"15vh",modal:l.componentOption.modal||!0,"show-close":l.componentOption.showClose||!0,"close-on-press-escape":l.componentOption.escape||!0,"close-on-click-modal":l.componentOption.clickModal||!0,center:l.componentOption.center||!1},{default:h.withCtx(()=>[h.renderSlot(l.$slots,"default",{componentOption:l.componentOption})]),_:3},8,["modelValue","title","width","before-close","top","modal","show-close","close-on-press-escape","close-on-click-modal","center"])}const PC=Pe(SC,[["render",OC]]),DC=h.defineComponent({name:"RowItem",components:{Card:Ty,Form:qy,ButtonGroup:tm,AgGridTable:Vm,CardText:jm,ImageOne:Ym,ImageList:Jm,TagArr:aC,Text:hC,Tag:pC,TextArr:RC,Dialog:PC},props:{pageKey:{type:String,required:!0},configOption:{type:Array,default:[]}}});function AC(l,p,d,f,v,C){const _=h.resolveComponent("RowItem",!0),O=h.resolveComponent("el-col"),P=h.resolveComponent("el-row");return h.openBlock(),h.createBlock(P,null,{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(l.configOption,(A,N)=>(h.openBlock(),h.createBlock(O,{style:h.normalizeStyle(A.style||""),class:h.normalizeClass(A.class||""),span:A.span||24,offset:A.offset||0,key:N},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(A.type),{pageKey:l.pageKey,componentOption:A},{default:h.withCtx(()=>[A.children&&A.children.length?(h.openBlock(),h.createBlock(_,{key:0,pageKey:l.pageKey,configOption:A.children},null,8,["pageKey","configOption"])):h.createCommentVNode("",!0)]),_:2},1032,["pageKey","componentOption"]))]),_:2},1032,["style","class","span","offset"]))),128))]),_:1})}const TC=Pe(DC,[["render",AC]]),bC=h.defineComponent({name:"Page",props:{pageKey:{type:String,required:!0},configOption:{type:Array,defaule:[],required:!0},data:{type:Object,default:{}}},components:{RowItem:TC},setup({configOption:l,data:p}){console.log(11111),console.log(l,p),console.log(22222),p&&d(l,p);function d(v,C){v.forEach(_=>{var O;if(_.children)d(_.children,C);else if(_.relation)if(Array.isArray(_.relation))_.value="",_.relation.forEach(P=>{const A=P.split(".");_.value+=" "+f(A,C)});else{const P=(O=_.relation)==null?void 0:O.split(".");_.value=f(P,C)}})}function f(v,C){if(v.length===1)return C;if(v.length===2)return C[v[1]];if(v.length===3)return C[v[1]][v[2]];if(v.length===4)return C[v[1]][v[2]][v[3]];if(v.length===5)return C[v[1]][v[2]][v[3]][v[4]]}return{}}}),DA="";function NC(l,p,d,f,v,C){const _=h.resolveComponent("RowItem");return h.openBlock(),h.createBlock(_,{pageKey:l.pageKey,configOption:l.configOption},null,8,["pageKey","configOption"])}const FC=Pe(bC,[["render",NC],["__scopeId","data-v-94f7ee6c"]]);function IC(l){l.use(ji),l.component("DfsPageConfig",FC)}return IC});
|