1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | "use strict";
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | function e(e){return null==e||""===e?null:e}function t(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)}function o(e){return!t(e)}function r(e){return null==e||0===e.length}function i(e){return null!=e&&"function"==typeof e.toString?e.toString():null}function n(e){if(void 0!==e){if(null===e||""===e)return null;if("number"==typeof e)return isNaN(e)?void 0:e;var t=parseInt(e,10);return isNaN(t)?void 0:t}}function s(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"==typeof e?e:/true/i.test(e))}function a(e){if(e instanceof Set||e instanceof Map){var t=[];return e.forEach((function(e){return t.push(e)})),t}return Object.values(e)}Object.defineProperty(exports,"__esModule",{value:!0});var l=Object.freeze({makeNull:e,exists:t,missing:o,missingOrEmpty:r,toStringOrNull:i,attrToNumber:n,attrToBoolean:s,attrToString:function(e){if(null!=e&&""!==e)return e},referenceCompare:function(e,t){return null==e&&null==t||(null!=e||null==t)&&((null==e||null!=t)&&e===t)},jsonEquals:function(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)},defaultComparator:function(e,t,o){void 0===o&&(o=!1);var r=null==e,i=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),r&&i)return 0;if(r)return-1;if(i)return 1;function n(e,t){return e>t?1:e<t?-1:0}if("string"!=typeof e)return n(e,t);if(!o)return n(e,t);try{return e.localeCompare(t)}catch(o){return n(e,t)}},values:a}),u=function(){function e(){this.existingKeys={}}return e.prototype.addExistingKeys=function(e){for(var t=0;t<e.length;t++)this.existingKeys[e[t]]=!0},e.prototype.getUniqueKey=function(e,t){e=i(e);for(var o=0;;){var r=void 0;if(e?(r=e,0!==o&&(r+="_"+o)):t?(r=t,0!==o&&(r+="_"+o)):r=""+o,!this.existingKeys[r])return this.existingKeys[r]=!0,r;o++}},e}();
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | function c(e,t){null!=e&&(Array.isArray(e)?e.forEach((function(e,o){return t(""+o,e)})):Object.keys(e).forEach((function(o){return t(o,e[o])})))}function p(e){for(var t={},o=Object.keys(e),r=0;r<o.length;r++){var i=o[r],n=e[i];t[i]=n}return t}function d(e,t){if(e){var o=e,r={};return Object.keys(o).forEach((function(e){if(!(t&&t.indexOf(e)>=0)){var i=o[e],n=S(i)&&i.constructor===Object;r[e]=n?d(i):i}})),r}}function h(e,t){return e[t]}function f(e,t,o){e[t]=o}function g(e,t,o,r){var i=h(e,o);void 0!==i&&f(t,o,r?r(i):i)}function v(e){var t={};return e.filter((function(e){return null!=e})).forEach((function(e){Object.keys(e).forEach((function(e){return t[e]=null}))})),Object.keys(t)}function y(e){if(!e)return[];var t=Object;if("function"==typeof t.values)return t.values(e);var o=[];for(var r in e)e.hasOwnProperty(r)&&e.propertyIsEnumerable(r)&&o.push(e[r]);return o}function m(e,o,r,i){void 0===r&&(r=!0),void 0===i&&(i=!1),t(o)&&c(o,(function(t,o){var n=e[t];if(n!==o){if(i)if(null==n&&null!=o)"object"==typeof o&&o.constructor===Object&&(n={},e[t]=n);S(o)&&S(n)&&!Array.isArray(n)?m(n,o,r,i):(r||void 0!==o)&&(e[t]=o)}}))}function C(e,t,o){if(t&&e){if(!o)return e[t];for(var r=t.split("."),i=e,n=0;n<r.length;n++){if(null==i)return;i=i[r[n]]}return i}}function w(e,t){Object.keys(e).forEach((function(t){"object"==typeof e[t]&&(e[t]=void 0)}));var o=Object.getPrototypeOf(e),r={};Object.keys(o).forEach((function(e){if("function"==typeof o[e]){r[e]={value:function(){console.warn("AG Grid: "+t+" function "+e+"() cannot be called as the grid has been destroyed.\n Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't\n be keeping the API reference, your application has a memory leak! Remove the API reference\n when the grid is destroyed.")},writable:!0}}})),Object.defineProperties(e,r)}function S(e){return"object"==typeof e&&null!==e}var E=Object.freeze({iterateObject:c,cloneObject:p,deepCloneObject:function(e){return JSON.parse(JSON.stringify(e))},deepCloneDefinition:d,getProperty:h,setProperty:f,copyPropertiesIfPresent:function(e,t){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];o.forEach((function(o){return g(e,t,o)}))},copyPropertyIfPresent:g,getAllKeysInObjects:v,getAllValuesInObject:y,mergeDeep:m,missingOrEmptyObject:function(e){return o(e)||0===Object.keys(e).length},get:function(e,t,o){if(null==e)return o;for(var r=t.split("."),i=e;r.length>1;)if(null==(i=i[r.shift()]))return o;var n=i[r[0]];return null!=n?n:o},set:function(e,t,o){if(null!=e){var r=t.split("."),i=e;r.forEach((function(e,t){i[e]||(i[e]={}),t<r.length-1&&(i=i[e])})),i[r[r.length-1]]=o}},getValueUsingField:C,removeAllReferences:w,isNonNullObject:S}),R={};
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 | function O(e,t){R[t]||(e(),R[t]=!0)}function b(e){if(e.name)return e.name;var t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function T(e){return!!(e&&e.constructor&&e.call&&e.apply)}function P(e){N(e,400)}var D=[],_=!1;function A(e){D.push(e),_||(_=!0,window.setTimeout((function(){var e=D.slice();D.length=0,_=!1,e.forEach((function(e){return e()}))}),0))}function N(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function M(e,t){var o;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=this;window.clearTimeout(o),o=window.setTimeout((function(){e.apply(n,r)}),t)}}function F(e,t){var o=0;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=this,s=(new Date).getTime();s-o<t||(o=s,e.apply(n,r))}}function L(e,t,o,r){void 0===o&&(o=100);var i=(new Date).getTime(),n=null,s=!1,a=function(){var a=(new Date).getTime()-i>o;(e()||a)&&(t(),s=!0,null!=n&&(window.clearInterval(n),n=null),a&&r&&console.warn(r))};a(),s||(n=window.setInterval(a,10))}function x(e){e&&e()}var I=Object.freeze({doOnce:O,getFunctionName:b,isFunction:T,executeInAWhile:P,executeNextVMTurn:A,executeAfter:N,debounce:M,throttle:F,waitUntil:L,compose:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,t){return t(e)}),t)}},callIfPresent:x,noop:function(){}}),G=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},H=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(G(arguments[t]));return e},V=function(){function e(e,t){if(this.beanWrappers={},this.destroyed=!1,e&&e.beanClasses){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.createBeans();var o=this.getBeanInstances();this.wireBeans(o),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return a(this.beanWrappers).map((function(e){return e.beanInstance}))},e.prototype.createBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");return this.wireBeans([e],t),e},e.prototype.wireBeans=function(e,o){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),t(o)&&e.forEach(o),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),c(this.beanWrappers,(function(t,o){var r;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(r=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var i=e.getBeansForParameters(r,o.bean.name),n=new(o.bean.bind.apply(o.bean,H([null],i)));o.beanInstance=n}));var t=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+t)},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var o=void 0;return o=e.prototype.constructor?b(e.prototype.constructor):""+e,void console.error("Context item "+o+" is not a bean")}var r={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=r},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(o,r){var i=o.agClassAttributes;i&&i.forEach((function(o){var i=t.lookupBeanInstance(r,o.beanName,o.optional);e[o.attributeName]=i}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(o,r){c(o.autowireMethods,(function(o,i){if("agConstructor"!==o){var n=t.getBeansForParameters(i,r);e[o].apply(e,n)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var o=Object.getPrototypeOf(e);null!=o;){var r=o.constructor;if(r.hasOwnProperty("__agBeanMetaData"))t(r.__agBeanMetaData,this.getBeanName(r));o=Object.getPrototypeOf(o)}},e.prototype.getBeanName=function(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;var t=e.toString();return t.substring(9,t.indexOf("("))},e.prototype.getBeansForParameters=function(e,t){var o=this,r=[];return e&&c(e,(function(e,i){var n=o.lookupBeanInstance(t,i);r[Number(e)]=n})),r},e.prototype.lookupBeanInstance=function(e,t,o){if(void 0===o&&(o=!1),"context"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];var r=this.beanWrappers[t];return r?r.beanInstance:(o||console.error("AG Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var o=this;e.forEach((function(e){return o.callLifeCycleMethodsOnBean(e,t)}))},e.prototype.callLifeCycleMethodsOnBean=function(e,t,o){var r={};this.forEachMetaDataInHierarchy(e,(function(e){var i=e[t];i&&i.forEach((function(e){e!=o&&(r[e]=!0)}))})),Object.keys(r).forEach((function(t){return e[t]()}))},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.destroyBeans(e),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e.prototype.destroyBean=function(e){e&&this.destroyBeans([e])},e.prototype.destroyBeans=function(e){var t=this;return e?(e.forEach((function(e){t.callLifeCycleMethodsOnBean(e,"preDestroyMethods","destroy");var o=e;"function"==typeof o.destroy&&o.destroy()})),[]):[]},e}();function k(e,t,o){var r=q(e.constructor);r.preConstructMethods||(r.preConstructMethods=[]),r.preConstructMethods.push(t)}function B(e,t,o){var r=q(e.constructor);r.postConstructMethods||(r.postConstructMethods=[]),r.postConstructMethods.push(t)}function j(e,t,o){var r=q(e.constructor);r.preDestroyMethods||(r.preDestroyMethods=[]),r.preDestroyMethods.push(t)}function W(e){return function(t){q(t).beanName=e}}function U(e){return function(t,o,r){K(t,e,!1,t,o,null)}}function z(e){return function(t,o,r){K(t,e,!0,t,o,null)}}function K(e,t,o,r,i,n){if(null!==t)if("number"!=typeof n){var s=q(e.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:i,beanName:t,optional:o})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function Y(e){return function(t,o,r){var i,n="function"==typeof t?t:t.constructor;if("number"==typeof r){var s=void 0;o?(i=q(n),s=o):(i=q(n),s="agConstructor"),i.autowireMethods||(i.autowireMethods={}),i.autowireMethods[s]||(i.autowireMethods[s]={}),i.autowireMethods[s][r]=e}}}function q(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | var Q,X=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},J=function(e,t){return function(o,r){t(o,r,e)}},Z=function(){function e(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return e.prototype.setBeans=function(e,t,o,r){if(void 0===r&&(r=null),this.frameworkOverrides=o,this.gridOptionsService=t,r){var i=t.useAsyncEvents();this.addGlobalListener(r,i)}},e.prototype.getListeners=function(e,t,o){var r=t?this.allAsyncListeners:this.allSyncListeners,i=r.get(e);return!i&&o&&(i=new Set,r.set(e,i)),i},e.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},e.prototype.addEventListener=function(e,t,o){void 0===o&&(o=!1),this.getListeners(e,o,!0).add(t)},e.prototype.removeEventListener=function(e,t,o){void 0===o&&(o=!1);var r=this.getListeners(e,o,!1);r&&(r.delete(t),0===r.size&&(o?this.allAsyncListeners:this.allSyncListeners).delete(e))},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)},e.prototype.dispatchEvent=function(e){var t=e;if(this.gridOptionsService){var o=this.gridOptionsService,r=o.api,i=o.columnApi,n=o.context;t.api=r,t.columnApi=i,t.context=n}this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,t){var o=this,r=e.type;if(t&&"event"in e){var i=e.event;i instanceof Event&&(e.eventPath=i.composedPath())}var n=this.getListeners(r,t,!1);n&&function(r){r.forEach((function(r){t?o.dispatchAsync((function(){return r(e)})):r(e)}))}(n),(t?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(i){t?o.dispatchAsync((function(){return o.frameworkOverrides.dispatchEvent(r,(function(){return i(r,e)}),!0)})):o.frameworkOverrides.dispatchEvent(r,(function(){return i(r,e)}),!0)}))},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((function(e){return e()}))},X([J(0,Y("loggerFactory")),J(1,Y("gridOptionsService")),J(2,Y("frameworkOverrides")),J(3,Y("globalEventListener"))],e.prototype,"setBeans",null),e=X([W("eventService")],e)}();(
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 | Q=exports.ModuleNames||(exports.ModuleNames={})).CommunityCoreModule="@ag-grid-community/core",Q.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",Q.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",Q.CsvExportModule="@ag-grid-community/csv-export",Q.EnterpriseCoreModule="@ag-grid-enterprise/core",Q.RowGroupingModule="@ag-grid-enterprise/row-grouping",Q.ColumnsToolPanelModule="@ag-grid-enterprise/column-tool-panel",Q.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",Q.MenuModule="@ag-grid-enterprise/menu",Q.SetFilterModule="@ag-grid-enterprise/set-filter",Q.MultiFilterModule="@ag-grid-enterprise/multi-filter",Q.StatusBarModule="@ag-grid-enterprise/status-bar",Q.SideBarModule="@ag-grid-enterprise/side-bar",Q.RangeSelectionModule="@ag-grid-enterprise/range-selection",Q.MasterDetailModule="@ag-grid-enterprise/master-detail",Q.RichSelectModule="@ag-grid-enterprise/rich-select",Q.GridChartsModule="@ag-grid-enterprise/charts",Q.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",Q.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",Q.ExcelExportModule="@ag-grid-enterprise/excel-export",Q.ClipboardModule="@ag-grid-enterprise/clipboard",Q.SparklinesModule="@ag-grid-enterprise/sparklines",Q.AngularModule="@ag-grid-community/angular",Q.ReactModule="@ag-grid-community/react",Q.VueModule="@ag-grid-community/vue";
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 | var $=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},ee=function(){function e(){}return e.register=function(t,o){void 0===o&&(o=!0),e.runVersionChecks(t),e.modulesMap[t.moduleName]=t,e.setModuleBased(o)},e.runVersionChecks=function(t){if(e.currentModuleVersion||(e.currentModuleVersion=t.version),t.version?t.version!==e.currentModuleVersion&&console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+t.moduleName+"' is version "+t.version+" but the other modules are version "+this.currentModuleVersion+". Please update all modules to the same version."):console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+t.moduleName+"' is incompatible. Please update all modules to the same version."),t.validate){var o=t.validate();if(!o.isValid){var r=o;console.error("AG Grid: "+r.message)}}},e.setModuleBased=function(t){void 0===e.moduleBased?e.moduleBased=t:e.moduleBased!==t&&O((function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")}),"ModulePackageCheck")},e.setIsBundled=function(){e.isBundled=!0},e.registerModules=function(t,o){void 0===o&&(o=!0),e.setModuleBased(o),t&&t.forEach((function(t){return e.register(t,o)}))},e.assertRegistered=function(t,o){var r;if(this.isRegistered(t))return!0;var i,n=o+t;if(e.isBundled)i="AG Grid: unable to use "+o+" as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle:\n \n <script src=\"https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js\"><\/script>\n \nFor more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise";else if(e.moduleBased||void 0===e.moduleBased){var s=null===(r=Object.entries(exports.ModuleNames).find((function(e){var o=$(e,2);o[0];return o[1]===t})))||void 0===r?void 0:r[0];i="AG Grid: unable to use "+o+" as the "+s+" is not registered. Check if you have registered the module:\n \n import { ModuleRegistry } from '@ag-grid-community/core';\n import { "+s+" } from '"+t+"';\n \n ModuleRegistry.registerModules([ "+s+" ]);\n\nFor more info see: https://www.ag-grid.com/javascript-grid/modules/"}else i="AG Grid: unable to use "+o+" as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package:\n \n import 'ag-grid-enterprise';\n \nFor more info see: https://www.ag-grid.com/javascript-grid/packages/";return O((function(){console.warn(i)}),n),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return a(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),te=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},oe=0;function re(){return oe++}var ie=function(){function e(e,t,o,r){this.instanceId=re(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new Z,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=o,this.primary=r,this.setState(e)}return e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setState=function(e){void 0!==e.sort?"asc"!==e.sort&&"desc"!==e.sort||(this.sort=e.sort):"asc"!==e.initialSort&&"desc"!==e.initialSort||(this.sort=e.initialSort);var t=n(e.sortIndex),o=n(e.initialSortIndex);void 0!==t?null!==t&&(this.sortIndex=t):null!==o&&(this.sortIndex=o);var r=s(e.hide),i=s(e.initialHide);this.visible=void 0!==r?!r:!i,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);var a=n(e.flex),l=n(e.initialFlex);void 0!==a?this.flex=a:void 0!==l&&(this.flex=l)},e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.eventService.dispatchEvent(this.createColumnEvent("colDefChanged","api"))},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},e.prototype.initDotNotation=function(){var e=this.gridOptionsService.is("suppressFieldDotNotation");this.fieldContainsDots=t(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=t(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!e},e.prototype.initMinAndMaxWidths=function(){var e=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(e),this.maxWidth=this.columnUtils.calculateColMaxWidth(e)},e.prototype.resetActualWidth=function(e){void 0===e&&(e="api");var t=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(o(this.colDef)||o(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,r=this.colDef.showRowGroup===e;return t||r},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){return!!this.colDef.filter||!!this.colDef.filterFramework},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;function o(e,t,o){O((function(){o?console.warn(e,o):O((function(){return console.warn(e)}),t)}),t)}if(this.gridOptionsService.isRowModelType("clientSide")&&!ee.isRegistered(exports.ModuleNames.RowGroupingModule)){(r=["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].filter((function(o){return t(e[o])}))).length>0&&ee.assertRegistered(exports.ModuleNames.RowGroupingModule,r.map((function(e){return"colDef."+e})).join(", "))}if("agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||ee.assertRegistered(exports.ModuleNames.RichSelectModule,this.colDef.cellEditor),this.gridOptionsService.isTreeData()){var r;(r=["rowGroup","rowGroupIndex","pivot","pivotIndex"].filter((function(o){return t(e[o])}))).length>0&&o("AG Grid: "+r.join()+" is not possible when doing tree data, your column definition should not have "+r.join(),"TreeDataCannotRowGroup")}t(e.menuTabs)&&ee.assertRegistered(exports.ModuleNames.MenuModule,"menuTabs"),t(e.columnsMenuParams)&&ee.assertRegistered(exports.ModuleNames.MenuModule,"columnsMenuParams"),t(e.columnsMenuParams)&&ee.assertRegistered(exports.ModuleNames.ColumnsToolPanelModule,"columnsMenuParams"),t(this.colDef.width)&&"number"!=typeof this.colDef.width&&o("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck"),(e.pinnedRowCellRenderer||e.pinnedRowCellRendererParams||e.pinnedRowCellRendererFramework)&&o("AG Grid: pinnedRowCellRenderer[Params,Framework] no longer exist. Use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned.","colDef.pinnedRowCellRenderer-deprecated"),t(e.columnGroupShow)&&"closed"!==e.columnGroupShow&&"open"!==e.columnGroupShow&&o("AG Grid: '"+e.columnGroupShow+"' is not valid for columnGroupShow. Valid values are 'open', 'closed', undefined, null","columnGroupShow_invalid")},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createColumnFunctionCallbackParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsService.context,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi}},e.prototype.isSuppressNavigable=function(e){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var t=this.createColumnFunctionCallbackParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsService.is("enableGroupEdit"))&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isSuppressFillHandle=function(){return!!s(this.colDef.suppressFillHandle)},e.prototype.isAutoHeight=function(){return!!s(this.colDef.autoHeight)},e.prototype.isAutoHeaderHeight=function(){return!!s(this.colDef.autoHeaderHeight)},e.prototype.isRowDrag=function(e){return this.isColumnFunc(e,this.colDef.rowDrag)},e.prototype.isDndSource=function(e){return this.isColumnFunc(e,this.colDef.dndSource)},e.prototype.isCellCheckboxSelection=function(e){return this.isColumnFunc(e,this.colDef.checkboxSelection)},e.prototype.isSuppressPaste=function(e){return this.isColumnFunc(e,this.colDef?this.colDef.suppressPaste:null)},e.prototype.isResizable=function(){return!!s(this.colDef.resizable)},e.prototype.isColumnFunc=function(e,t){return"boolean"==typeof t?t:"function"==typeof t&&t(this.createColumnFunctionCallbackParams(e))},e.prototype.setMoving=function(e,t){void 0===t&&(t="api"),this.moving=e,this.eventService.dispatchEvent(this.createColumnEvent("movingChanged",t))},e.prototype.createColumnEvent=function(e,t){return{type:e,column:this,columns:[this],source:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(e,t){void 0===t&&(t="api"),this.sort!==e&&(this.sort=e,this.eventService.dispatchEvent(this.createColumnEvent("sortChanged",t)))},e.prototype.setMenuVisible=function(e,t){void 0===t&&(t="api"),this.menuVisible!==e&&(this.menuVisible=e,this.eventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",t)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return"asc"===this.sort},e.prototype.isSortDescending=function(){return"desc"===this.sort},e.prototype.isSortNone=function(){return o(this.sort)},e.prototype.isSorting=function(){return t(this.sort)},e.prototype.getSortIndex=function(){return this.sortIndex},e.prototype.setSortIndex=function(e){this.sortIndex=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(e,t){void 0===t&&(t="api"),this.oldLeft=this.left,this.left!==e&&(this.left=e,this.eventService.dispatchEvent(this.createColumnEvent("leftChanged",t)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(e,t,o){void 0===t&&(t="api"),this.filterActive!==e&&(this.filterActive=e,this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",t)));var r=this.createColumnEvent("filterChanged",t);o&&m(r,o),this.eventService.dispatchEvent(r)},e.prototype.setPinned=function(e){this.pinned=!0===e||"left"===e?"left":"right"===e?"right":null},e.prototype.setFirstRightPinned=function(e,t){void 0===t&&(t="api"),this.firstRightPinned!==e&&(this.firstRightPinned=e,this.eventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",t)))},e.prototype.setLastLeftPinned=function(e,t){void 0===t&&(t="api"),this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.eventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",t)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return"left"===this.pinned||"right"===this.pinned},e.prototype.isPinnedLeft=function(){return"left"===this.pinned},e.prototype.isPinnedRight=function(){return"right"===this.pinned},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(e,t){void 0===t&&(t="api");var o=!0===e;this.visible!==o&&(this.visible=o,this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged",t)))},e.prototype.isVisible=function(){return this.visible},e.prototype.isSpanHeaderHeight=function(){return!!this.getColDef().spanHeaderHeight},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.getColId()},e.prototype.getUniqueId=function(){return this.getId()},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},e.prototype.setAutoHeaderHeight=function(e){var t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},e.prototype.getColSpan=function(e){if(o(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),r=this.colDef.colSpan(t);return Math.max(r,1)},e.prototype.getRowSpan=function(e){if(o(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),r=this.colDef.rowSpan(t);return Math.max(r,1)},e.prototype.setActualWidth=function(e,t,o){void 0===t&&(t="api"),void 0===o&&(o=!1),null!=this.minWidth&&(e=Math.max(e,this.minWidth)),null!=this.maxWidth&&(e=Math.min(e,this.maxWidth)),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&"flex"!==t&&"gridInitializing"!==t&&(this.flex=null),o||this.fireColumnWidthChangedEvent(t))},e.prototype.fireColumnWidthChangedEvent=function(e){this.eventService.dispatchEvent(this.createColumnEvent("widthChanged",e))},e.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.getFlex=function(){return this.flex||0},e.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e)},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),t(this.minWidth)&&this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(e,t){void 0===t&&(t="api"),this.rowGroupActive!==e&&(this.rowGroupActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",t)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(e,t){void 0===t&&(t="api"),this.pivotActive!==e&&(this.pivotActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",t)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(e,t){void 0===t&&(t="api"),this.aggregationActive!==e&&(this.aggregationActive=e,this.eventService.dispatchEvent(this.createColumnEvent("columnValueChanged",t)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_COL_DEF_CHANGED="colDefChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",te([U("gridOptionsService")],e.prototype,"gridOptionsService",void 0),te([U("columnUtils")],e.prototype,"columnUtils",void 0),te([B],e.prototype,"initialise",null),e}(),ne=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},se=function(){function e(e,t,o,r){this.localEventService=new Z,this.expandable=!1,this.instanceId=re(),this.expandableListenerRemoveCallback=null,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=o,this.level=r}return e.prototype.destroy=function(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)},e.prototype.reset=function(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.getLevel=function(){return this.level},e.prototype.isVisible=function(){return!!this.children&&this.children.some((function(e){return e.isVisible()}))},e.prototype.isPadding=function(){return this.padding},e.prototype.setExpanded=function(t){this.expanded=void 0!==t&&t;var o={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(o)},e.prototype.isExpandable=function(){return this.expandable},e.prototype.isExpanded=function(){return this.expanded},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getId=function(){return this.getGroupId()},e.prototype.setChildren=function(e){this.children=e},e.prototype.getChildren=function(){return this.children},e.prototype.getColGroupDef=function(){return this.colGroupDef},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.addLeafColumns=function(t){this.children&&this.children.forEach((function(o){o instanceof ie?t.push(o):o instanceof e&&o.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){var e=this.colGroupDef;if(e)return e.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();var t=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach((function(e){return e.addEventListener("visibleChanged",t)})),this.expandableListenerRemoveCallback=function(){e.getLeafColumns().forEach((function(e){return e.removeEventListener("visibleChanged",t)})),e.expandableListenerRemoveCallback=null}},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,o=!1,r=!1,i=this.findChildrenRemovingPadding(),n=0,s=i.length;n<s;n++){var a=i[n];if(a.isVisible()){var l=a.getColumnGroupShow();"open"===l?(t=!0,r=!0):"closed"===l?(o=!0,r=!0):(t=!0,o=!0)}}var u=t&&o&&r;if(this.expandable!==u){this.expandable=u;var c={type:e.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(c)}}},e.prototype.findChildrenRemovingPadding=function(){var t=[],o=function(r){r.forEach((function(r){r instanceof e&&r.isPadding()?o(r.children):t.push(r)}))};return o(this.children),t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",ne([j],e.prototype,"destroy",null),e}(),ae={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 | function le(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];for(var r=0;r<e.length;r++){var i=e[r];if(t(i))return i}return null}function ue(e){if(e&&e.length)return e[e.length-1]}function ce(e,t,o){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every((function(e,r){return o?o(e,t[r]):t[r]===e}))}function pe(e){return e.sort((function(e,t){return e-t}))}function de(e,t){var o=e.indexOf(t);o>=0&&e.splice(o,1)}function he(e,t){t.forEach((function(t){return de(e,t)}))}function fe(e,t,o){e.splice(o,0,t)}function ge(e,t,o){he(e,t),t.slice().reverse().forEach((function(t){return fe(e,t,o)}))}function ve(e,t){return e.indexOf(t)>-1}function ye(e){return[].concat.apply([],e)}function me(e,t){null!=t&&null!=e&&t.forEach((function(t){return e.push(t)}))}var Ce=Object.freeze({firstExistingValue:le,existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:ue,areEqual:ce,shallowCompare:function(e,t){return ce(e,t)},sortNumerically:pe,removeRepeatsFromArray:function(e,t){if(e)for(var o=e.length-2;o>=0;o--){var r=e[o]===t,i=e[o+1]===t;r&&i&&e.splice(o+1,1)}},removeFromArray:de,removeAllFromArray:he,insertIntoArray:fe,insertArrayIntoArray:function(e,t,o){if(null!=e&&null!=t)for(var r=t.length-1;r>=0;r--){fe(e,t[r],o)}},moveInArray:ge,includes:ve,flatten:ye,pushAll:me,toStrings:function(e){return e.map(i)},forEachReverse:function(e,t){if(null!=e)for(var o=e.length-1;o>=0;o--)t(e[o],o)}}),we=["touchstart","touchend","touchmove","touchcancel","scroll"],Se={};
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 | function Ee(e){e.__ag_Grid_Stop_Propagation=!0}function Re(e){return!0===e.__ag_Grid_Stop_Propagation}var Oe,be=(Oe={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(e){if("boolean"==typeof Se[e])return Se[e];var t=document.createElement(Oe[e]||"div");return Se[e="on"+e]=e in t});function Te(e,t,o){for(var r=t.target;r;){var i=e.getDomData(r,o);if(i)return i;r=r.parentElement}return null}function Pe(e,t){return!(!t||!e)&&_e(t).indexOf(e)>=0}function De(e){for(var t=[],o=e.target;o;)t.push(o),o=o.parentElement;return t}function _e(e){var t=e;return t.path?t.path:t.composedPath?t.composedPath():De(t)}function Ae(e,t,o,r){var i=ve(we,o)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,o,r,i)}var Ne,Me=Object.freeze({stopPropagationForAgGrid:Ee,isStopPropagationForAgGrid:Re,isEventSupported:be,getCtrlForEvent:Te,isElementInEventPath:Pe,createEventPath:De,getEventPath:_e,addSafePassiveEventListener:Ae}),Fe=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Le=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!e.destroyed}}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},e.prototype.getContext=function(){return this.context},e.prototype.destroy=function(){this.destroyFunctions.forEach((function(e){return e()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new Z),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout((function(){return t.dispatchEvent(e)}),0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addManagedListener=function(e,t,o){var r=this;if(!this.destroyed){e instanceof HTMLElement?Ae(this.getFrameworkOverrides(),e,t,o):e.addEventListener(t,o);var i=function(){return e.removeEventListener(t,o),r.destroyFunctions=r.destroyFunctions.filter((function(e){return e!==i})),null};return this.destroyFunctions.push(i),i}},e.prototype.addManagedPropertyListener=function(e,t){var o=this;if(!this.destroyed){this.gridOptionsService.addEventListener(e,t);var r=function(){return o.gridOptionsService.removeEventListener(e,t),o.destroyFunctions=o.destroyFunctions.filter((function(e){return e!==r})),null};return this.destroyFunctions.push(r),r}},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.prototype.createManagedBean=function(e,t){var o=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),o},e.prototype.createBean=function(e,t,o){return(t||this.getContext()).createBean(e,o)},e.prototype.destroyBean=function(e,t){return(t||this.getContext()).destroyBean(e)},e.prototype.destroyBeans=function(e,t){var o=this;return e&&e.forEach((function(e){return o.destroyBean(e,t)})),[]},e.EVENT_DESTROYED="destroyed",Fe([U("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Fe([U("context")],e.prototype,"context",void 0),Fe([U("eventService")],e.prototype,"eventService",void 0),Fe([U("gridOptionsService")],e.prototype,"gridOptionsService",void 0),Fe([U("localeService")],e.prototype,"localeService",void 0),Fe([U("environment")],e.prototype,"environment",void 0),Fe([j],e.prototype,"destroy",null),e}(),xe=(Ne=function(e,t){return(Ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}Ne(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),Ie=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ge=function(e,t){return function(o,r){t(o,r,e)}},He=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xe(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,t,o){var r=new u,i=this.extractExistingTreeData(o),n=i.existingCols,s=i.existingGroups,a=i.existingColKeys;r.addExistingKeys(a);var l=this.recursivelyCreateColumns(e,0,t,n,r,s),c=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+c);var p=this.balanceColumnTree(l,0,c,r);return this.columnUtils.depthFirstOriginalTreeSearch(null,p,(function(e,t){e instanceof se&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:p,treeDept:c}},t.prototype.extractExistingTreeData=function(e){var t=[],o=[],r=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(e){if(e instanceof se){var i=e;o.push(i)}else{var n=e;r.push(n.getId()),t.push(n)}})),{existingCols:t,existingGroups:o,existingColKeys:r}},t.prototype.createForAutoGroups=function(e,t){var o=this;return e.map((function(e){return o.createAutoGroupTreeItem(t,e)}))},t.prototype.createAutoGroupTreeItem=function(e,t){for(var o=t,r=this.findDepth(e)-1;r>=0;r--){var i=new se(null,"FAKE_PATH_"+t.getId()+"}_"+r,!0,r);this.createBean(i),i.setChildren([o]),o.setOriginalParent(i),o=i}return o},t.prototype.findDepth=function(e){for(var t=0,o=e;o&&o[0]&&o[0]instanceof se;)t++,o=o[0].getChildren();return t},t.prototype.balanceColumnTree=function(e,t,o,r){for(var i=[],n=0;n<e.length;n++){var s=e[n];if(s instanceof se){var a=s,l=this.balanceColumnTree(a.getChildren(),t+1,o,r);a.setChildren(l),i.push(a)}else{for(var u=void 0,c=void 0,p=o-1;p>=t;p--){var d=r.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new se(h,d,!0,t);this.createBean(f),c&&c.setChildren([f]),c=f,u||(u=c)}if(u&&c){if(i.push(u),e.some((function(e){return e instanceof se}))){c.setChildren([s]);continue}c.setChildren(e);break}i.push(s)}}return i},t.prototype.findMaxDept=function(e,t){for(var o=t,r=0;r<e.length;r++){var i=e[r];if(i instanceof se){var n=i,s=this.findMaxDept(n.getChildren(),t+1);o<s&&(o=s)}}return o},t.prototype.recursivelyCreateColumns=function(e,t,o,r,i,n){var s=this;return(e||[]).map((function(e){return s.isColumnGroup(e)?s.createColumnGroup(o,e,t,r,i,n):s.createColumn(o,e,r,i)}))},t.prototype.createColumnGroup=function(e,t,o,r,i,n){var s,a=this.createMergedColGroupDef(t),l=i.getUniqueKey(a.groupId||null,null),u=this.findExistingGroup(t,n);u?((s=u).reset(a,o),de(n,u)):(s=new se(a,l,!1,o),this.createBean(s));var c=this.recursivelyCreateColumns(a.children,o+1,e,r,i,n);return s.setChildren(c),s},t.prototype.createMergedColGroupDef=function(e){var t={};return Object.assign(t,this.gridOptionsService.get("defaultColGroupDef")),Object.assign(t,e),t},t.prototype.createColumn=function(e,t,o,r){var i=this.mergeColDefs(t),n=this.findExistingColumn(t,o);if(o&&n&&de(o,n),n)n.setColDef(i,t),this.applyColumnState(n,i);else{var s=r.getUniqueKey(i.colId,i.field);n=new ie(i,t,s,e),this.context.createBean(n)}return n},t.prototype.applyColumnState=function(e,t){var o=n(t.flex);if(void 0!==o&&e.setFlex(o),e.getFlex()<=0){var r=n(t.width);if(null!=r)e.setActualWidth(r);else{var i=e.getActualWidth();e.setActualWidth(i)}}void 0!==t.sort&&("asc"==t.sort||"desc"==t.sort?e.setSort(t.sort):e.setSort(void 0));var a=n(t.sortIndex);void 0!==a&&e.setSortIndex(a);var l=s(t.hide);void 0!==l&&e.setVisible(!l),void 0!==t.pinned&&e.setPinned(t.pinned)},t.prototype.findExistingColumn=function(e,t){return(t||[]).find((function(t){var o=t.getUserProvidedColDef();if(!o)return!1;var r=null!=e.colId,i=null!=e.field;return r?t.getId()===e.colId:i?o.field===e.field:o===e}))},t.prototype.findExistingGroup=function(e,t){return t.find((function(t){return!!t.getColGroupDef()&&(!(null==e.groupId)&&t.getId()===e.groupId)}))},t.prototype.mergeColDefs=function(e){var t={},o=this.gridOptionsService.get("defaultColDef");m(t,o,!1,!0);var r=e.type;r||(r=o&&o.type),r&&this.assignColumnTypes(r,t),m(t,e,!1,!0);var i=this.gridOptionsService.get("autoGroupColumnDef"),n=this.gridOptionsService.isColumnsSortingCoupledToGroup();return e.rowGroup&&i&&n&&m(t,{sort:i.sort,initialSort:i.initialSort},!1,!0),t},t.prototype.assignColumnTypes=function(e,t){var o=[];if(e instanceof Array){e.some((function(e){return"string"!=typeof e}))?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):o=e}else{if("string"!=typeof e)return void console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");o=e.split(",")}var r=Object.assign({},ae);c(this.gridOptionsService.get("columnTypes")||{},(function(e,t){e in r?console.warn("AG Grid: the column type '"+e+"' is a default column type and cannot be overridden."):r[e]=t})),o.forEach((function(e){var o=r[e.trim()];o?m(t,o,!1,!0):console.warn("AG Grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},t.prototype.isColumnGroup=function(e){return void 0!==e.children},Ie([U("columnUtils")],t.prototype,"columnUtils",void 0),Ie([Ge(0,Y("loggerFactory"))],t.prototype,"setBeans",null),t=Ie([W("columnFactory")],t)}(Le),Ve=function(){function e(){}return e.ColDefPropertyMap={headerName:void 0,columnGroupShow:void 0,headerClass:void 0,toolPanelClass:void 0,headerValueGetter:void 0,pivotKeys:void 0,groupId:void 0,colId:void 0,sort:void 0,initialSort:void 0,field:void 0,type:void 0,tooltipComponent:void 0,tooltipField:void 0,headerTooltip:void 0,cellClass:void 0,showRowGroup:void 0,filter:void 0,initialAggFunc:void 0,defaultAggFunc:void 0,aggFunc:void 0,pinned:void 0,initialPinned:void 0,chartDataType:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentFramework:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellRendererFramework:void 0,cellEditor:void 0,cellEditorFramework:void 0,cellEditorParams:void 0,filterFramework:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentFramework:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,floatingFilterComponentFramework:void 0,tooltipComponentParams:void 0,tooltipComponentFramework:void 0,refData:void 0,columnsMenuParams:void 0,children:void 0,sortingOrder:void 0,allowedAggFuncs:void 0,menuTabs:void 0,pivotTotalColumnIds:void 0,cellClassRules:void 0,icons:void 0,sortIndex:void 0,initialSortIndex:void 0,flex:void 0,initialFlex:void 0,width:void 0,initialWidth:void 0,minWidth:void 0,maxWidth:void 0,rowGroupIndex:void 0,initialRowGroupIndex:void 0,pivotIndex:void 0,initialPivotIndex:void 0,suppressCellFlash:void 0,suppressColumnsToolPanel:void 0,suppressFiltersToolPanel:void 0,openByDefault:void 0,marryChildren:void 0,hide:void 0,initialHide:void 0,rowGroup:void 0,initialRowGroup:void 0,pivot:void 0,initialPivot:void 0,checkboxSelection:void 0,showDisabledCheckboxes:void 0,headerCheckboxSelection:void 0,headerCheckboxSelectionFilteredOnly:void 0,headerCheckboxSelectionCurrentPageOnly:void 0,suppressMenu:void 0,suppressMovable:void 0,lockPosition:void 0,lockVisible:void 0,lockPinned:void 0,unSortIcon:void 0,suppressSizeToFit:void 0,suppressAutoSize:void 0,enableRowGroup:void 0,enablePivot:void 0,enableValue:void 0,editable:void 0,suppressPaste:void 0,suppressNavigable:void 0,enableCellChangeFlash:void 0,rowDrag:void 0,dndSource:void 0,autoHeight:void 0,wrapText:void 0,sortable:void 0,resizable:void 0,singleClickEdit:void 0,floatingFilter:void 0,cellEditorPopup:void 0,suppressFillHandle:void 0,wrapHeaderText:void 0,autoHeaderHeight:void 0,dndSourceOnRowDrag:void 0,valueGetter:void 0,valueSetter:void 0,filterValueGetter:void 0,keyCreator:void 0,valueFormatter:void 0,valueParser:void 0,comparator:void 0,equals:void 0,pivotComparator:void 0,suppressKeyboardEvent:void 0,suppressHeaderKeyboardEvent:void 0,colSpan:void 0,rowSpan:void 0,getQuickFilterText:void 0,onCellValueChanged:void 0,onCellClicked:void 0,onCellDoubleClicked:void 0,onCellContextMenu:void 0,rowDragText:void 0,tooltipValueGetter:void 0,cellRendererSelector:void 0,cellEditorSelector:void 0,spanHeaderHeight:void 0},e.ALL_PROPERTIES=Object.keys(e.ColDefPropertyMap),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),ke=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_CHART_CREATED="chartCreated",e.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",e.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",e.EVENT_CHART_DESTROYED="chartDestroyed",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",e.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED="internalToolPanelVisibleChanged",e.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",e.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_FILL_START="fillStart",e.EVENT_FILL_END="fillEnd",e.EVENT_UNDO_STARTED="undoStarted",e.EVENT_UNDO_ENDED="undoEnded",e.EVENT_REDO_STARTED="redoStarted",e.EVENT_REDO_ENDED="redoEnded",e.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",e.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_MOUSE_DOWN="cellMouseDown",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_CELL_EDIT_REQUEST="cellEditRequest",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_CELL_FOCUS_CLEARED="cellFocusCleared",e.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_CHECKBOX_CHANGED="checkboxChanged",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_BODY_SCROLL_END="bodyScrollEnd",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",e.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",e.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",e.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",e.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",e.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",e.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_GRID_STYLES_CHANGED="gridStylesChanged",e.EVENT_POPUP_TO_FRONT="popupToFront",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e.EVENT_KEYBOARD_FOCUS="keyboardFocus",e.EVENT_MOUSE_FOCUS="mouseFocus",e.EVENT_STORE_UPDATED="storeUpdated",e.EVENT_FILTER_DESTROYED="filterDestroyed",e}(),Be=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},je=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Be(arguments[t]));return e},We=function(){function e(){}return e.STRING_PROPERTIES=["rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType","colResizeDefault"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","statusBar","sideBar","chartThemeOverrides","customChartThemes","chartToolPanelsDef"],e.ARRAY_PROPERTIES=["sortingOrder","alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes","rowClass"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","serverSideInitialRowCount","scrollbarWidth","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],e.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressCellFocus","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressRowGroupHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupAllowUnbalanced","pagination","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","excludeHiddenColumnsFromQuickFilter","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","enableCharts","enableChartToolPanelsButton","suppressChartToolPanelsButton","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","pivotSuppressAutoColumn","suppressExpandablePivotGroups","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","serverSideSortingAlwaysResets","serverSideSortAllLevels","serverSideFilterAllLevels","serverSideSortOnServer","serverSideFilterOnServer","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","reactUi","suppressReactUi","readOnlyEdit","suppressRowVirtualisation","enableCellEditingOnBackspace","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges","groupRowsSticky","suppressServerSideInfiniteScroll","rowGroupPanelSuppressSort","allowShowChangeAfterFilter","suppressCutToClipboard"],e.FUNCTIONAL_PROPERTIES=["localeTextFunc","doesExternalFilterPass","groupRowAggNodes","isFullWidthCell","processSecondaryColDef","processSecondaryColGroupDef","processPivotResultColDef","processPivotResultColGroupDef","getBusinessKeyForNode","isRowSelectable","postSort","defaultGroupOrderComparator","rowDragText","groupRowRenderer","groupRowRendererFramework","fullWidthCellRenderer","fullWidthCellRendererFramework","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework"],e.CALLBACK_PROPERTIES=["getLocaleText","isExternalFilterPresent","getRowHeight","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","getGroupRowAgg","getRowNodeId","isFullWidthRow","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","isRowMaster","postSortRows","processHeaderForClipboard","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","getServerSideGroupLevelParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","groupAggFiltering"],e.FUNCTION_PROPERTIES=je(e.FUNCTIONAL_PROPERTIES,e.CALLBACK_PROPERTIES),e.ALL_PROPERTIES=je(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),Ue=function(){return(Ue=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},ze=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},Ke=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ze(arguments[t]));return e},Ye=function(){function e(){}return e.getCallbackForEvent=function(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substr(1)},e.getCoercionLookup=function(){var t={};return Ke(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.FUNCTION_PROPERTIES,e.EVENT_CALLBACKS).forEach((function(e){return t[e]="none"})),e.BOOLEAN_PROPERTIES.forEach((function(e){return t[e]="boolean"})),e.NUMBER_PROPERTIES.forEach((function(e){return t[e]="number"})),t},e.getValue=function(t,o){var r=e.coercionLookup[t];if(r){var i=o;switch(r){case"number":i=e.toNumber(o);break;case"boolean":i=e.toBoolean(o);break;case"none":"groupAggFiltering"===t&&"function"!=typeof o&&(i=e.toBoolean(o))}return i}},e.getGridOptionKeys=function(t,o){return o?Object.keys(e.coercionLookup):Object.keys(t)},e.copyAttributesToGridOptions=function(t,o,r){void 0===r&&(r=!1),"object"!=typeof t&&(t={});var i=t;return e.getGridOptionKeys(o,r).forEach((function(t){var r=o[t];if(void 0!==r){var n=e.getValue(t,r);void 0!==n&&(i[t]=n)}})),t},e.processOnChange=function(t,o){if(t&&0!==Object.keys(t).length){var r=Ue({},t);r.columnTypes&&(o.setColumnTypes(r.columnTypes.currentValue,"gridOptionsChanged"),delete r.columnTypes),r.autoGroupColumnDef&&(o.setAutoGroupColumnDef(r.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete r.autoGroupColumnDef),r.defaultColDef&&(o.setDefaultColDef(r.defaultColDef.currentValue,"gridOptionsChanged"),delete r.defaultColDef),r.columnDefs&&(o.setColumnDefs(r.columnDefs.currentValue,"gridOptionsChanged"),delete r.columnDefs),Object.keys(r).forEach((function(t){var i=t,n=e.getValue(i,r[i].currentValue);o.__setProperty(i,n)}));var i={type:ke.EVENT_COMPONENT_STATE_CHANGED};c(t,(function(e,t){i[e]=t})),o.dispatchEvent(i)}},e.toBoolean=function(e){return"boolean"==typeof e?e:"string"==typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"==typeof e?e:"string"==typeof e?Number(e):void 0},e.EVENTS=a(ke),e.EXCLUDED_INTERNAL_EVENTS=[ke.EVENT_SCROLLBAR_WIDTH_CHANGED,ke.EVENT_CHECKBOX_CHANGED,ke.EVENT_HEIGHT_SCALE_CHANGED,ke.EVENT_BODY_HEIGHT_CHANGED,ke.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,ke.EVENT_SCROLL_VISIBILITY_CHANGED,ke.EVENT_COLUMN_HOVER_CHANGED,ke.EVENT_FLASH_CELLS,ke.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,ke.EVENT_DISPLAYED_ROWS_CHANGED,ke.EVENT_LEFT_PINNED_WIDTH_CHANGED,ke.EVENT_RIGHT_PINNED_WIDTH_CHANGED,ke.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,ke.EVENT_POPUP_TO_FRONT,ke.EVENT_KEYBOARD_FOCUS,ke.EVENT_MOUSE_FOCUS,ke.EVENT_STORE_UPDATED,ke.EVENT_COLUMN_PANEL_ITEM_DRAG_START,ke.EVENT_COLUMN_PANEL_ITEM_DRAG_END,ke.EVENT_FILL_START,ke.EVENT_FILL_END,ke.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,ke.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,ke.EVENT_FULL_WIDTH_ROW_FOCUSED,ke.EVENT_HEADER_HEIGHT_CHANGED,ke.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,ke.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED,ke.EVENT_CELL_FOCUS_CLEARED,ke.EVENT_GRID_STYLES_CHANGED,ke.EVENT_FILTER_DESTROYED],e.PUBLIC_EVENTS=e.EVENTS.filter((function(t){return!ve(e.EXCLUDED_INTERNAL_EVENTS,t)})),e.EVENT_CALLBACKS=e.EVENTS.map((function(t){return e.getCallbackForEvent(t)})),e.STRING_PROPERTIES=We.STRING_PROPERTIES,e.OBJECT_PROPERTIES=We.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=We.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=We.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=We.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=We.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=We.ALL_PROPERTIES,e.ALL_PROPERTIES_SET=new Set(We.ALL_PROPERTIES),e.coercionLookup=e.getCoercionLookup(),e}();
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 | function qe(e,t,o){var r={},i=e.filter((function(e){return!t.some((function(t){return t===e}))}));return i.length>0&&i.forEach((function(e){return r[e]=Qe(e,o)})),r}function Qe(e,t,o,r){var i=t.map((function(t){return{value:t,relevance:Xe(e.toLowerCase(),t.toLocaleLowerCase())}}));if(i.sort((function(e,t){return t.relevance-e.relevance})),o&&(i=i.filter((function(e){return 0!==e.relevance}))),r&&r>0){var n=i[0].relevance*r;i=i.filter((function(e){return n-e.relevance<0}))}return i.map((function(e){return e.value}))}function Xe(e,t){for(var o=e.replace(/\s/g,""),r=t.replace(/\s/g,""),i=0,n=-1,s=0;s<o.length;s++){var a=r.indexOf(o[s],n+1);-1!==a&&(i+=100-100*(n=a)/1e4*100)}return i}var Je=Object.freeze({fuzzyCheckStrings:qe,fuzzySuggestions:Qe}),Ze=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},$e=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},et=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat($e(arguments[t]));return e};
|
91 |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 | function tt(e,t,o,r){var i=o?"Please use '"+o+"' instead. ":"";O((function(){return console.warn("AG Grid: since v"+e+", '"+t+"' is deprecated. "+i+(null!=r?r:""))}),"Deprecated_"+t)}var ot=function(){function e(){this.deprecatedProperties={serverSideInfiniteScroll:{version:"29",message:"Infinite Scrolling is now the default behaviour. This can be suppressed with `suppressServerSideInfiniteScroll`."},rememberGroupStateWhenNewData:{version:"24",message:"Now that transaction updates are possible and they keep group state, this feature is no longer needed."},suppressEnterpriseResetOnNewColumns:{version:"25",message:"Now that it is possible to dynamically change columns in the grid, this is no longer needed."},suppressColumnStateEvents:{version:"25",message:'Events should be ignored based on the `event.source`, which will be "api" if the event was due to setting column state via the API.'},defaultExportParams:{version:"25.2",message:"The property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`"},stopEditingWhenGridLosesFocus:{version:"25.2.2",newProp:"stopEditingWhenCellsLoseFocus",copyToNewProp:!0},applyColumnDefOrder:{version:"26",message:"The property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"},groupMultiAutoColumn:{version:"26",newProp:"groupDisplayType",copyToNewProp:!0,newPropValue:"multipleColumns"},groupUseEntireRow:{version:"26",newProp:"groupDisplayType",copyToNewProp:!0,newPropValue:"groupRows"},defaultGroupSortComparator:{version:"26",newProp:"initialGroupOrderComparator"},enableMultiRowDragging:{version:"26.1",newProp:"rowDragMultiRow",copyToNewProp:!0},colWidth:{version:"26.1",newProp:"defaultColDef.width"},minColWidth:{version:"26.1",newProp:"defaultColDef.minWidth"},maxColWidth:{version:"26.1",newProp:"defaultColDef.maxWidth"},reactUi:{version:"26.1",message:"React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true."},suppressCellSelection:{version:"27",newProp:"suppressCellFocus",copyToNewProp:!0},clipboardDeliminator:{version:"27.1",newProp:"clipboardDelimiter",copyToNewProp:!0},getRowNodeId:{version:"27.1",newProp:"getRowId",message:"The difference: if getRowId() is implemented then immutable data is enabled by default."},defaultGroupOrderComparator:{version:"27.2",newProp:"initialGroupOrderComparator"},groupRowAggNodes:{version:"27.2",newProp:"getGroupRowAgg"},postSort:{version:"27.2",newProp:"postSortRows"},isFullWidthCell:{version:"27.2",newProp:"isFullWidthRow"},localeTextFunc:{version:"27.2",newProp:"getLocaleText"},serverSideFilteringAlwaysResets:{version:"28.0",newProp:"serverSideFilterAllLevels",copyToNewProp:!0},serverSideSortingAlwaysResets:{version:"28.0",newProp:"serverSideSortAllLevels",copyToNewProp:!0},suppressReactUi:{version:"28",message:"The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."},processSecondaryColDef:{version:"28",newProp:"processPivotResultColDef",copyToNewProp:!0},processSecondaryColGroupDef:{version:"28",newProp:"processPivotResultColGroupDef",copyToNewProp:!0},getServerSideStoreParams:{version:"28",newProp:"getServerSideGroupLevelParams",copyToNewProp:!0},enableChartToolPanelsButton:{version:"29",message:"The Chart Tool Panels button is now enabled by default. To hide the Chart Tool Panels button and display the hamburger button instead, set suppressChartToolPanelsButton=true."},functionsPassive:{version:"29.2"},onColumnRowGroupChangeRequest:{version:"29.2"},onColumnPivotChangeRequest:{version:"29.2"},onColumnValueChangeRequest:{version:"29.2"},onColumnAggFuncChangeRequest:{version:"29.2"}}}return e.prototype.pickOneWarning=function(e,t){console.warn("AG Grid: "+e+" and "+t+" do not work with each other, you need to pick one.")},e.prototype.init=function(){var e=this;if(this.checkForDeprecated(),this.checkForViolations(),!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),this.checkColumnDefViolations(),this.gridOptionsService.is("groupSelectsChildren")&&this.gridOptionsService.is("suppressParentsInRowNodes")&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.gridOptionsService.is("groupSelectsChildren")&&"multiple"!==this.gridOptionsService.get("rowSelection")&&console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.gridOptionsService.is("groupRemoveSingleChildren")&&this.gridOptionsService.is("groupHideOpenParents")&&this.pickOneWarning("groupRemoveSingleChildren","groupHideOpenParents"),this.gridOptionsService.isRowModelType("serverSide")){var t=function(e,t){return"AG Grid: '"+e+"' is not supported on the Server-Side Row Model."+(t?" Please use "+t+" instead.":"")};this.gridOptionsService.exists("groupDefaultExpanded")&&console.warn(t("groupDefaultExpanded","isServerSideGroupOpenByDefault callback")),this.gridOptionsService.exists("groupIncludeFooter")&&console.warn(t("groupIncludeFooter")),this.gridOptionsService.exists("groupIncludeTotalFooter")&&console.warn(t("groupIncludeTotalFooter"))}this.gridOptionsService.is("enableRangeSelection")?ee.assertRegistered(exports.ModuleNames.RangeSelectionModule,"enableRangeSelection"):(this.gridOptionsService.is("enableRangeHandle")||this.gridOptionsService.is("enableFillHandle"))&&console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var o=function(t,o){return e.gridOptionsService.exists(t)&&ee.assertRegistered(o,t)};o("sideBar",exports.ModuleNames.SideBarModule),o("statusBar",exports.ModuleNames.StatusBarModule),o("enableCharts",exports.ModuleNames.GridChartsModule),o("getMainMenuItems",exports.ModuleNames.MenuModule),o("getContextMenuItems",exports.ModuleNames.MenuModule),o("allowContextMenuWithControlKey",exports.ModuleNames.MenuModule),this.gridOptionsService.is("groupRowsSticky")&&(this.gridOptionsService.is("groupHideOpenParents")&&this.pickOneWarning("groupRowsSticky","groupHideOpenParents"),this.gridOptionsService.is("masterDetail")&&this.pickOneWarning("groupRowsSticky","masterDetail"),this.gridOptionsService.is("pagination")&&this.pickOneWarning("groupRowsSticky","pagination"))},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var o=Object.getOwnPropertyNames(t),r=et(Ve.ALL_PROPERTIES,Ve.FRAMEWORK_PROPERTIES);e.checkProperties(o,r,r,"colDef","https://www.ag-grid.com/javascript-data-grid/column-properties/")}))},e.prototype.checkColumnDefViolations=function(){var e,t=null!==(e=this.gridOptionsService.get("rowModelType"))&&void 0!==e?e:"clientSide",o={infinite:["headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],viewport:["headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],serverSide:["headerCheckboxSelectionFilteredOnly","headerCheckboxSelectionCurrentPageOnly"],clientSide:[]}[t];if(null==o?void 0:o.length){var r=function(e){o.forEach((function(o){o in e&&e[o]&&console.warn("AG Grid: Column property "+o+" is not supported with the row model type "+t+".")}))};null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(e){return r(e)})),null!=this.gridOptions.autoGroupColumnDef&&r(this.gridOptions.autoGroupColumnDef),null!=this.gridOptions.defaultColDef&&r(this.gridOptions.defaultColDef)}},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=et(We.ALL_PROPERTIES,We.FRAMEWORK_PROPERTIES,Ye.EVENT_CALLBACKS),o=et(t,["api","columnApi"],Object.keys(this.deprecatedProperties));this.checkProperties(e,o,t,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},e.prototype.checkProperties=function(e,t,o,r,i){var n=qe(e,t,o);c(n,(function(e,t){console.warn("AG Grid: invalid "+r+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(", "))})),Object.keys(n).length>0&&console.warn("AG Grid: to see all the valid "+r+" properties please check: "+i)},e.prototype.checkForDeprecated=function(){var e=this.gridOptions;if(Object.entries(this.deprecatedProperties).forEach((function(t){var o,r=$e(t,2),i=r[0],n=r[1],s=e[i];s&&(tt(n.version,i,n.newProp,n.message),n.copyToNewProp&&n.newProp&&null==e[n.newProp]&&(e[n.newProp]=null!==(o=n.newPropValue)&&void 0!==o?o:s))})),e.groupSuppressAutoColumn){var t=e.treeData?"treeDataDisplayType":"groupDisplayType";console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+t+" = 'custom'`"),e[t]="custom"}e.immutableData&&(e.getRowId?console.warn("AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`."):console.warn("AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.")),e.serverSideStoreType&&(console.warn("AG Grid: since v29.0, `serverSideStoreType` has been replaced by `suppressServerSideInfiniteScroll`. Set to false to use Partial Store, and true to use Full Store."),e.suppressServerSideInfiniteScroll="partial"!==e.serverSideStoreType)},e.prototype.checkForViolations=function(){this.gridOptionsService.is("treeData")&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.gridOptionsService.isRowModelType("clientSide")&&(this.gridOptionsService.exists("getDataPath")||console.warn("AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data.")),this.gridOptionsService.isRowModelType("serverSide")&&(this.gridOptionsService.exists("isServerSideGroup")||console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),this.gridOptionsService.exists("getServerSideGroupKey")||console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},Ze([U("gridOptions")],e.prototype,"gridOptions",void 0),Ze([U("gridOptionsService")],e.prototype,"gridOptionsService",void 0),Ze([B],e.prototype,"init",null),e=Ze([W("gridOptionsValidator")],e)}();function rt(e,t){var o=["groupRows","multipleColumns","custom","singleColumn"];return o.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid groupDisplayType value - possible values are: '"+o.join("', '")+"'"),!1):t===e}
|
97 |
|
98 |
|
99 |
|
100 |
|
101 |
|
102 |
|
103 | var it=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},nt=function(){function e(e,t,o,r){this.displayedChildren=[],this.localEventService=new Z,this.groupId=t,this.partId=o,this.providedColumnGroup=e,this.pinned=r}return e.createUniqueId=function(e,t){return e+"_"+t},e.prototype.reset=function(){this.parent=null,this.children=null,this.displayedChildren=null},e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(e){this.parent=e},e.prototype.getUniqueId=function(){return e.createUniqueId(this.groupId,this.partId)},e.prototype.isEmptyGroup=function(){return 0===this.displayedChildren.length},e.prototype.isMoving=function(){var e=this.getProvidedColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every((function(e){return e.isMoving()}))},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(t){t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsService.is("enableRtl")){var t=ue(this.displayedChildren).getLeft();this.setLeft(t)}else{var o=this.displayedChildren[0].getLeft();this.setLeft(o)}else this.setLeft(null)},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.setLeft=function(t){this.oldLeft=t,this.left!==t&&(this.left=t,this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_LEFT_CHANGED)))},e.prototype.getPinned=function(){return this.pinned},e.prototype.createAgEvent=function(e){return{type:e}},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.prototype.getGroupId=function(){return this.groupId},e.prototype.getPartId=function(){return this.partId},e.prototype.isChildInThisGroupDeepSearch=function(t){var o=!1;return this.children.forEach((function(r){t===r&&(o=!0),r instanceof e&&r.isChildInThisGroupDeepSearch(t)&&(o=!0)})),o},e.prototype.getActualWidth=function(){var e=0;return this.displayedChildren&&this.displayedChildren.forEach((function(t){e+=t.getActualWidth()})),e},e.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var e=!1;return this.displayedChildren.forEach((function(t){t.isResizable()&&(e=!0)})),e},e.prototype.getMinWidth=function(){var e=0;return this.displayedChildren.forEach((function(t){e+=t.getMinWidth()||0})),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.providedColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach((function(o){o instanceof ie?t.push(o):o instanceof e&&o.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(o){o instanceof ie?t.push(o):o instanceof e&&o.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},e.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},e.prototype.getOriginalColumnGroup=function(){return tt("27","getOriginalColumnGroup","getProvidedColumnGroup"),this.getProvidedColumnGroup()},e.prototype.getPaddingLevel=function(){var e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var o=this;null!=o&&o.isPadding();)o=o.getParent();if(!(!!o&&o.providedColumnGroup.isExpandable()))return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(r){if(!(r instanceof e&&(!r.displayedChildren||!r.displayedChildren.length)))switch(r.getColumnGroupShow()){case"open":o.providedColumnGroup.isExpanded()&&t.displayedChildren.push(r);break;case"closed":o.providedColumnGroup.isExpanded()||t.displayedChildren.push(r);break;default:t.displayedChildren.push(r)}})),this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",it([U("gridOptionsService")],e.prototype,"gridOptionsService",void 0),e}(),st=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,o=this.existingIds[e];return t="number"!=typeof o?0:o+1,this.existingIds[e]=t,t},e}(),at=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),lt=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return at(t,e),t.prototype.createAutoGroupColumns=function(e,t){var o=this,r=[],i=this.gridOptionsService.isTreeData(),n=this.gridOptionsService.isGroupMultiAutoColumn();return i&&n&&(console.warn('AG Grid: you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'),n=!1),n?t.forEach((function(t,i){r.push(o.createOneAutoGroupColumn(e,t,i))})):r.push(this.createOneAutoGroupColumn(e)),r},t.prototype.createOneAutoGroupColumn=function(e,t,r){var i,n=this.generateDefaultColDef(t);(i=t?"ag-Grid-AutoColumn-"+t.getId():"ag-Grid-AutoColumn",m(n,this.gridOptionsService.get("autoGroupColumnDef")),(n=this.columnFactory.mergeColDefs(n)).colId=i,this.gridOptionsService.isTreeData())||o(n.field)&&o(n.valueGetter)&&o(n.filterValueGetter)&&"agGroupColumnFilter"!==n.filter&&(n.filter=!1);r&&r>0&&(n.headerCheckboxSelection=!1);var s=e.find((function(e){return e.getId()==i}));if(s)return s.setColDef(n,null),this.columnFactory.applyColumnState(s,n),s;this.gridOptionsService.isColumnsSortingCoupledToGroup()&&(n.sort||n.initialSort)&&!n.field&&m(n,{sort:null,initialSort:null},!0,!0);var a=new ie(n,null,i,!0);return this.context.createBean(a),a},t.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsService.get("autoGroupColumnDef"),o={headerName:this.localeService.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererFramework||t.cellRendererSelector)||(o.cellRenderer="agGroupCellRenderer"),e){var r=e.getColDef();Object.assign(o,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:r.headerValueGetter}),(r.cellRenderer||r.cellRendererFramework)&&Object.assign(o,{cellRendererParams:{innerRenderer:r.cellRenderer,innerRendererFramework:r.cellRendererFramework,innerRendererParams:r.cellRendererParams}}),o.showRowGroup=e.getColId()}else o.showRowGroup=!0;return o},lt([U("columnModel")],t.prototype,"columnModel",void 0),lt([U("columnFactory")],t.prototype,"columnFactory",void 0),t=lt([W("autoGroupColService")],t)}(Le),ct=/[&<>"']/g,pt={"&":"&","<":"<",">":">",'"':""","'":"'"};function dt(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}function ht(e,t){if(null==e)return null;var o=e.toString().toString();return t?o:o.replace(ct,(function(e){return pt[e]}))}function ft(e){if(!e||null==e)return null;return e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z])([a-z])/g,"$1 $2$3").replace(/\./g," ").split(" ").map((function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")})).join(" ")}var gt=Object.freeze({utf8_encode:function(e){var t=String.fromCharCode;function o(e,o){return t(e>>o&63|128)}function r(e){if(e>=0&&e<=31&&10!==e)return"_x"+e.toString(16).toUpperCase().padStart(4,"0")+"_";if(0==(4294967168&e))return t(e);var r="";return 0==(4294965248&e)?r=t(e>>6&31|192):0==(4294901760&e)?(!function(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}(e),r=t(e>>12&15|224),r+=o(e,6)):0==(4292870144&e)&&(r=t(e>>18&7|240),r+=o(e,12),r+=o(e,6)),r+=t(63&e|128)}for(var i=function(e){var t=[];if(!e)return[];for(var o,r,i=e.length,n=0;n<i;)(o=e.charCodeAt(n++))>=55296&&o<=56319&&n<i?56320==(64512&(r=e.charCodeAt(n++)))?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--):t.push(o);return t}(e),n=i.length,s=-1,a="";++s<n;)a+=r(i[s]);return a},capitalise:dt,escapeString:ht,camelCaseToHumanText:ft});
|
104 |
|
105 |
|
106 |
|
107 |
|
108 |
|
109 | function vt(e){var t=new Map;return e.forEach((function(e){return t.set(e[0],e[1])})),t}var yt=Object.freeze({convertToMap:vt,mapById:function(e,t){var o=new Map;return e.forEach((function(e){return o.set(t(e),e)})),o},keys:function(e){var t=[];return e.forEach((function(e,o){return t.push(o)})),t}}),mt=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ct=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},wt=function(e,t){return function(o,r){t(o,r,e)}},St=function(e,t){var o={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(o[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(o[r[i]]=e[r[i]])}return o},Et=function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Rt=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},Ot=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Rt(arguments[t]));return e},bt=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.primaryHeaderRowCount=0,t.secondaryHeaderRowCount=0,t.gridHeaderRowCount=0,t.displayedColumnsLeft=[],t.displayedColumnsRight=[],t.displayedColumnsCenter=[],t.displayedColumns=[],t.displayedColumnsAndGroupsMap={},t.viewportColumns=[],t.viewportColumnsHash="",t.headerViewportColumns=[],t.viewportColumnsCenter=[],t.headerViewportColumnsCenter=[],t.autoHeightActiveAtLeastOnce=!1,t.rowGroupColumns=[],t.valueColumns=[],t.pivotColumns=[],t.ready=!1,t.autoGroupsNeedBuilding=!1,t.forceRecreateAutoGroups=!1,t.pivotMode=!1,t.bodyWidth=0,t.leftWidth=0,t.rightWidth=0,t.bodyWidthDirty=!0,t.flexColsCalculatedAtLestOnce=!1,t}return mt(i,e),i.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsService.is("suppressColumnVirtualisation");var t=this.gridOptionsService.is("pivotMode");this.isPivotSettingAllowed(t)&&(this.pivotMode=t),this.usingTreeData=this.gridOptionsService.isTreeData(),this.addManagedPropertyListener("groupDisplayType",(function(){return e.onAutoGroupColumnDefChanged()})),this.addManagedPropertyListener("autoGroupColumnDef",(function(){return e.onAutoGroupColumnDefChanged()})),this.addManagedPropertyListener("defaultColDef",(function(t){return e.onSharedColDefChanged(t.source)})),this.addManagedPropertyListener("columnTypes",(function(t){return e.onSharedColDefChanged(t.source)}))},i.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},i.prototype.onSharedColDefChanged=function(e){void 0===e&&(e="api"),this.forceRecreateAutoGroups=!0,this.createColumnsFromColumnDefs(!0,e)},i.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var o=!!this.columnDefs;this.columnDefs=e,this.createColumnsFromColumnDefs(o,t)},i.prototype.destroyOldColumns=function(e,t){var o={};if(e){this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(e){o[e.getInstanceId()]=e})),t&&this.columnUtils.depthFirstOriginalTreeSearch(null,t,(function(e){o[e.getInstanceId()]=null}));var r=Object.values(o).filter((function(e){return null!=e}));this.destroyBeans(r)}},i.prototype.destroyColumns=function(){this.destroyOldColumns(this.primaryColumnTree),this.destroyOldColumns(this.secondaryBalancedTree),this.destroyOldColumns(this.groupAutoColsBalancedTree)},i.prototype.createColumnsFromColumnDefs=function(e,t){var o=this;void 0===t&&(t="api");var r=e?this.compareColumnStatesAndDispatchEvents(t):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var i=this.primaryColumns,n=this.primaryColumnTree,s=this.columnFactory.createColumnTree(this.columnDefs,!0,n);this.destroyOldColumns(this.primaryColumnTree,s.columnTree),this.primaryColumnTree=s.columnTree,this.primaryHeaderRowCount=s.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach((function(e){return o.primaryColumnsMap[e.getId()]=e})),this.extractRowGroupColumns(t,i),this.extractPivotColumns(t,i),this.extractValueColumns(t,i),this.ready=!0;var a=void 0===this.gridColsArePrimary;(this.gridColsArePrimary||a)&&(this.updateGridColumns(),e&&!this.gridOptionsService.is("maintainColumnOrder")&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(t),this.checkViewportColumns()),this.dispatchEverythingChanged(t),r&&r(),this.dispatchNewColumnsLoaded()},i.prototype.dispatchNewColumnsLoaded=function(){var e={type:ke.EVENT_NEW_COLUMNS_LOADED};this.eventService.dispatchEvent(e)},i.prototype.dispatchEverythingChanged=function(e){void 0===e&&(e="api");var t={type:ke.EVENT_COLUMN_EVERYTHING_CHANGED,source:e};this.eventService.dispatchEvent(t)},i.prototype.orderGridColumnsLikePrimary=function(){var e=this,t=this.primaryColumns;t&&(this.gridColumns.sort((function(o,r){var i=t.indexOf(o),n=t.indexOf(r),s=i>=0,a=n>=0;return s&&a?i-n:s?1:a?-1:e.gridColumns.indexOf(o)-e.gridColumns.indexOf(r)})),this.gridColumns=this.placeLockedColumns(this.gridColumns))},i.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},i.prototype.setViewport=function(){this.gridOptionsService.is("enableRtl")?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},i.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,o=[];null!=t;)o.push(t),t=this.getDisplayedColAfter(t);return o},i.prototype.checkViewportColumns=function(){if(null!=this.displayedColumnsCenter&&this.extractViewport()){var e={type:ke.EVENT_VIRTUAL_COLUMNS_CHANGED};this.eventService.dispatchEvent(e)}},i.prototype.setViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},i.prototype.isPivotMode=function(){return this.pivotMode},i.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsService.isTreeData()||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},i.prototype.setPivotMode=function(e,t){if(void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);var o={type:ke.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(o)}},i.prototype.getSecondaryPivotColumn=function(e,t){if(o(this.secondaryColumns))return null;var r=this.getPrimaryColumn(t),i=null;return this.secondaryColumns.forEach((function(t){var o=t.getColDef().pivotKeys,n=t.getColDef().pivotValueColumn;ce(o,e)&&n===r&&(i=t)})),i},i.prototype.setBeans=function(e){this.logger=e.create("columnModel")},i.prototype.setFirstRightAndLastLeftPinned=function(e){var t,o;this.gridOptionsService.is("enableRtl")?(t=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,o=this.displayedColumnsRight?ue(this.displayedColumnsRight):null):(t=this.displayedColumnsLeft?ue(this.displayedColumnsLeft):null,o=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(r){r.setLastLeftPinned(r===t,e),r.setFirstRightPinned(r===o,e)}))},i.prototype.autoSizeColumns=function(e){var t=this,o=e.columns,r=e.skipHeader,i=e.skipHeaderGroups,n=e.stopAtGroup,s=e.source,a=void 0===s?"api":s;this.animationFrameService.flushAllFrames();for(var l=[],u=-1,c=null!=r?r:this.gridOptionsService.is("skipHeaderOnAutoSize"),p=null!=i?i:c;0!==u;)u=0,this.actionOnGridColumns(o,(function(e){if(l.indexOf(e)>=0)return!1;var o=t.autoWidthCalculator.getPreferredWidthForColumn(e,c);if(o>0){var r=t.normaliseColumnWidth(e,o);e.setActualWidth(r,a),l.push(e),u++}return!0}),a);p||this.autoSizeColumnGroupsByColumns(o,n),this.dispatchColumnResizedEvent(l,!0,"autosizeColumns")},i.prototype.dispatchColumnResizedEvent=function(e,t,o,r){if(void 0===r&&(r=null),e&&e.length){var i={type:ke.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:r,finished:t,source:o};this.eventService.dispatchEvent(i)}},i.prototype.dispatchColumnChangedEvent=function(e,t,o){var r={type:e,columns:t,column:t&&1==t.length?t[0]:null,source:o};this.eventService.dispatchEvent(r)},i.prototype.dispatchColumnMovedEvent=function(e){var t=e.movedColumns,o=e.source,r=e.toIndex,i=e.finished,n={type:ke.EVENT_COLUMN_MOVED,columns:t,column:t&&1===t.length?t[0]:null,toIndex:r,finished:i,source:o};this.eventService.dispatchEvent(n)},i.prototype.dispatchColumnPinnedEvent=function(e,t){if(e.length){var o=1===e.length?e[0]:null,r=this.getCommonValue(e,(function(e){return e.getPinned()})),i={type:ke.EVENT_COLUMN_PINNED,pinned:null!=r?r:null,columns:e,column:o,source:t};this.eventService.dispatchEvent(i)}},i.prototype.dispatchColumnVisibleEvent=function(e,t){if(e.length){var o=1===e.length?e[0]:null,r=this.getCommonValue(e,(function(e){return e.isVisible()})),i={type:ke.EVENT_COLUMN_VISIBLE,visible:r,columns:e,column:o,source:t};this.eventService.dispatchEvent(i)}},i.prototype.autoSizeColumn=function(e,t,o){void 0===o&&(o="api"),e&&this.autoSizeColumns({columns:[e],skipHeader:t,skipHeaderGroups:!0,source:o})},i.prototype.autoSizeColumnGroupsByColumns=function(e,t){var o,r,i,n,s,a=new Set;this.getGridColumns(e).forEach((function(e){for(var o=e.getParent();o&&o!=t;)o.isPadding()||a.add(o),o=o.getParent()}));try{for(var l=Et(a),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var p=(i=void 0,Et(this.ctrlsService.getHeaderRowContainerCtrls())),d=p.next();!d.done;d=p.next()){if(s=d.value.getHeaderCtrlForColumn(c))break}}catch(e){i={error:e}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(i)throw i.error}}s&&s.resizeLeafColumnsToFit()}}catch(e){o={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(o)throw o.error}}return[]},i.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var o=this.getAllDisplayedColumns();this.autoSizeColumns({columns:o,skipHeader:e,source:t})},i.prototype.getColumnsFromTree=function(e){var t=[],o=function(e){for(var r=0;r<e.length;r++){var i=e[r];i instanceof ie?t.push(i):i instanceof se&&o(i.getChildren())}};return o(e),t},i.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},i.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},i.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},i.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},i.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},i.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},i.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},i.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},i.prototype.getViewportColumns=function(){return this.viewportColumns},i.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},i.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},i.prototype.getDisplayedColumnsForRow=function(e,t,o,r){for(var i,n=[],s=null,a=function(a){var l,u=t[a],c=t.length-a,p=Math.min(u.getColSpan(e),c),d=[u];if(p>1){for(var h=p-1,f=1;f<=h;f++)d.push(t[a+f]);a+=h}if(o?(l=!1,d.forEach((function(e){o(e)&&(l=!0)}))):l=!0,l){if(0===n.length&&s)!!r&&r(u)&&n.push(s);n.push(u)}s=u,i=a},l=0;l<t.length;l++)a(l),l=i;return n},i.prototype.getViewportCenterColumnsForRow=function(e){var o=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var r=this.suppressColumnVirtualisation?null:this.isColumnInRowViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,r,(function(e){var r=e.getLeft();return t(r)&&r>o.viewportLeft}))},i.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},i.prototype.isColumnInHeaderViewport=function(e){return!!e.isAutoHeaderHeight()||this.isColumnInRowViewport(e)},i.prototype.isColumnInRowViewport=function(e){if(e.isAutoHeight())return!0;var t=e.getLeft()||0,o=t+e.getActualWidth(),r=this.viewportLeft-200,i=this.viewportRight+200;return!(t<r&&o<r)&&!(t>i&&o>i)},i.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},i.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},i.prototype.updatePrimaryColumnList=function(e,t,o,i,n,s){var a=this;if(void 0===s&&(s="api"),e&&!r(e)){var l=!1;if(e.forEach((function(e){var r=a.getPrimaryColumn(e);if(r){if(o){if(t.indexOf(r)>=0)return;t.push(r)}else{if(t.indexOf(r)<0)return;de(t,r)}i(r),l=!0}})),l){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(s);var u={type:n,columns:t,column:1===t.length?t[0]:null,source:s};this.eventService.dispatchEvent(u)}}},i.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,ke.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},i.prototype.setRowGroupActive=function(e,t,o){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,o),e&&!this.gridOptionsService.is("suppressRowGroupHidesColumns")&&this.setColumnVisible(t,!1,o),e||this.gridOptionsService.is("suppressMakeColumnVisibleAfterUnGroup")||this.setColumnVisible(t,!0,o))},i.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},i.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),ke.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},i.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),ke.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},i.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},i.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),ke.EVENT_COLUMN_PIVOT_CHANGED,t)},i.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,ke.EVENT_COLUMN_PIVOT_CHANGED,(function(e,o){o.setPivotActive(e,t)}),t)},i.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},i.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),ke.EVENT_COLUMN_PIVOT_CHANGED,t)},i.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},i.prototype.setPrimaryColumnList=function(e,o,r,i,n){var s=this;o.length=0,t(e)&&e.forEach((function(e){var t=s.getPrimaryColumn(e);t&&o.push(t)})),(this.primaryColumns||[]).forEach((function(e){var t=o.indexOf(e)>=0;i(t,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(n),this.dispatchColumnChangedEvent(r,o,n)},i.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,ke.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},i.prototype.setValueActive=function(e,t,o){if(e!==t.isValueActive()&&(t.setValueActive(e,o),e&&!t.getAggFunc())){var r=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(r)}},i.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),ke.EVENT_COLUMN_VALUE_CHANGED,t)},i.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},i.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},i.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),ke.EVENT_COLUMN_VALUE_CHANGED,t)},i.prototype.normaliseColumnWidth=function(e,o){var r=e.getMinWidth();t(r)&&o<r&&(o=r);var i=e.getMaxWidth();return t(i)&&e.isGreaterThanMax(o)&&(o=i),o},i.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},i.prototype.setColumnWidths=function(e,t,o,r){var i=this;void 0===r&&(r="api");var n=[];e.forEach((function(e){var o=i.getPrimaryOrGridColumn(e.key);if(o&&(n.push({width:e.newWidth,ratios:[1],columns:[o]}),"shift"===i.gridOptionsService.get("colResizeDefault")&&(t=!t),t)){var r=i.getDisplayedColAfter(o);if(!r)return;var s=o.getActualWidth()-e.newWidth,a=r.getActualWidth()+s;n.push({width:a,ratios:[1],columns:[r]})}})),0!==n.length&&this.resizeColumnSets({resizeSets:n,finished:o,source:r})},i.prototype.checkMinAndMaxWidthsForSet=function(e){var o=e.columns,r=e.width,i=0,n=0,s=!0;return o.forEach((function(e){var o=e.getMinWidth();i+=o||0;var r=e.getMaxWidth();t(r)&&r>0?n+=r:s=!1})),r>=i&&(!s||r<=n)},i.prototype.resizeColumnSets=function(e){var o=this,r=e.resizeSets,i=e.finished,n=e.source;if(!r||r.every((function(e){return o.checkMinAndMaxWidthsForSet(e)}))){var s=[],a=[];r.forEach((function(e){var o=e.width,r=e.columns,i=e.ratios,l={},u={};r.forEach((function(e){return a.push(e)}));for(var c=!0,p=0,d=function(){if(++p>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";c=!1;var e=[],n=0,s=o;r.forEach((function(t,o){if(u[t.getId()])s-=l[t.getId()];else{e.push(t);var r=i[o];n+=r}}));var a=1/n;e.forEach((function(r,n){var p;n===e.length-1?p=s:(p=Math.round(i[n]*o*a),s-=p);var d=r.getMinWidth(),h=r.getMaxWidth();t(d)&&p<d?(p=d,u[r.getId()]=!0,c=!0):t(h)&&h>0&&p>h&&(p=h,u[r.getId()]=!0,c=!0),l[r.getId()]=p}))};c;){if("break"===d())break}r.forEach((function(e){var t=l[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,n),s.push(e))}))}));var l=s.length>0,u=[];l&&(u=this.refreshFlexedColumns({resizingCols:a,skipSetLeft:!0}),this.setLeftValues(n),this.updateBodyWidths(),this.checkViewportColumns());var c=a.concat(u);(l||i)&&this.dispatchColumnResizedEvent(c,i,n,u)}else if(i){var p=r&&r.length>0?r[0].columns:null;this.dispatchColumnResizedEvent(p,i,n)}},i.prototype.setColumnAggFunc=function(e,t,o){if(void 0===o&&(o="api"),e){var r=this.getPrimaryColumn(e);r&&(r.setAggFunc(t),this.dispatchColumnChangedEvent(ke.EVENT_COLUMN_VALUE_CHANGED,[r],o))}},i.prototype.moveRowGroupColumn=function(e,t,o){void 0===o&&(o="api");var r=this.rowGroupColumns[e];this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,r);var i={type:ke.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:this.rowGroupColumns,column:1===this.rowGroupColumns.length?this.rowGroupColumns[0]:null,source:o};this.eventService.dispatchEvent(i)},i.prototype.moveColumns=function(e,t,o,r){if(void 0===o&&(o="api"),void 0===r&&(r=!0),this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+t),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var i=this.getGridColumns(e);!this.doesMovePassRules(i,t)||(ge(this.gridColumns,i,t),this.updateDisplayedColumns(o),this.dispatchColumnMovedEvent({movedColumns:i,source:o,toIndex:t,finished:r}),this.columnAnimationService.finish())},i.prototype.doesMovePassRules=function(e,t){var o=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(o)},i.prototype.doesOrderPassRules=function(e){return!!this.doesMovePassMarryChildren(e)&&!!this.doesMovePassLockedPositions(e)},i.prototype.getProposedColumnOrder=function(e,t){var o=this.gridColumns.slice();return ge(o,e,t),o},i.prototype.sortColumnsLikeGridColumns=function(e){var t=this;!e||e.length<=1||(e.filter((function(e){return t.gridColumns.indexOf(e)<0})).length>0||e.sort((function(e,o){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(o)})))},i.prototype.doesMovePassLockedPositions=function(e){var t=0,o=!0;return e.forEach((function(e){var r,i=(r=e.getColDef().lockPosition)?!0===r||"left"===r?0:2:1;i<t&&(o=!1),t=i})),o},i.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){if(o instanceof se){var r=o,i=r.getColGroupDef();if(i&&i.marryChildren){var n=[];r.getLeafColumns().forEach((function(t){var o=e.indexOf(t);n.push(o)})),Math.max.apply(Math,n)-Math.min.apply(Math,n)>r.getLeafColumns().length-1&&(t=!1)}}})),t},i.prototype.moveColumn=function(e,t,o){void 0===o&&(o="api"),this.moveColumns([e],t,o)},i.prototype.moveColumnByIndex=function(e,t,o){void 0===o&&(o="api");var r=this.gridColumns[e];this.moveColumn(r,t,o)},i.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var t=this.primaryColumns.slice();return this.gridColsArePrimary?t.sort((function(t,o){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(o)})):this.lastPrimaryOrder&&t.sort((function(t,o){return e.lastPrimaryOrder.indexOf(t)-e.lastPrimaryOrder.indexOf(o)})),this.columnDefFactory.buildColumnDefs(t,this.rowGroupColumns,this.pivotColumns)}},i.prototype.getBodyContainerWidth=function(){return this.bodyWidth},i.prototype.getContainerWidth=function(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}},i.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),t=this.getWidthOfColsInList(this.displayedColumnsLeft),o=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==o){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=o;var r={type:ke.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(r)}},i.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},i.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},i.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},i.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},i.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},i.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},i.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},i.prototype.getDisplayedColumns=function(e){switch(e){case"left":return this.getDisplayedLeftColumns();case"right":return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},i.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},i.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},i.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},i.prototype.getAllGridColumns=function(){return this.gridColumns},i.prototype.isEmpty=function(){return r(this.gridColumns)},i.prototype.isRowGroupEmpty=function(){return r(this.rowGroupColumns)},i.prototype.setColumnVisible=function(e,t,o){void 0===o&&(o="api"),this.setColumnsVisible([e],t,o)},i.prototype.setColumnsVisible=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o="api"),this.applyColumnState({state:e.map((function(e){return{colId:"string"==typeof e?e:e.getColId(),hide:!t}}))},o)},i.prototype.setColumnPinned=function(e,t,o){void 0===o&&(o="api"),e&&this.setColumnsPinned([e],t,o)},i.prototype.setColumnsPinned=function(e,t,o){var r;(void 0===o&&(o="api"),this.gridOptionsService.isDomLayout("print"))?console.warn("AG Grid: Changing the column pinning status is not allowed with domLayout='print'"):(this.columnAnimationService.start(),r=!0===t||"left"===t?"left":"right"===t?"right":null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==r&&(e.setPinned(r),!0)}),o,(function(){return{type:ke.EVENT_COLUMN_PINNED,pinned:r,column:null,columns:null,source:o}})),this.columnAnimationService.finish())},i.prototype.actionOnGridColumns=function(e,o,i,n){var s=this;if(!r(e)){var a=[];if(e.forEach((function(e){var t=s.getGridColumn(e);t&&(!1!==o(t)&&a.push(t))})),a.length&&(this.updateDisplayedColumns(i),t(n)&&n)){var l=n();l.columns=a,l.column=1===a.length?a[0]:null,this.eventService.dispatchEvent(l)}}},i.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o>0?t[o-1]:null},i.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),o=t.indexOf(e);return o<t.length-1?t[o+1]:null},i.prototype.getDisplayedGroupAfter=function(e){return this.getDisplayedGroupAtDirection(e,"After")},i.prototype.getDisplayedGroupBefore=function(e){return this.getDisplayedGroupAtDirection(e,"Before")},i.prototype.getDisplayedGroupAtDirection=function(e,t){for(var o=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),r=e.getDisplayedLeafColumns(),i="After"===t?ue(r):r[0],n="getDisplayedCol"+t;;){var s=this[n](i);if(!s)return null;var a=this.getColumnGroupAtLevel(s,o);if(a!==e)return a}},i.prototype.getColumnGroupAtLevel=function(e,t){for(var o=e.getParent();;){if(o.getProvidedColumnGroup().getLevel()+o.getPaddingLevel()<=t)break;o=o.getParent()}return o},i.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},i.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},i.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,Ot([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},i.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,o=e.isPivotActive()?this.pivotColumns.indexOf(e):null,r=e.isValueActive()?e.getAggFunc():null,i=null!=e.getSort()?e.getSort():null,n=null!=e.getSortIndex()?e.getSortIndex():null,s=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:i,sortIndex:n,aggFunc:r,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:o,flex:s}},i.prototype.getColumnState=function(){if(o(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(e),e},i.prototype.orderColumnStateList=function(e){var t=vt(this.gridColumns.map((function(e,t){return[e.getColId(),t]})));e.sort((function(e,o){return(t.has(e.colId)?t.get(e.colId):-1)-(t.has(o.colId)?t.get(o.colId):-1)}))},i.prototype.resetColumnState=function(e){void 0===e&&(e="api");var t=this.getColumnsFromTree(this.primaryColumnTree),r=[],i=1e3,n=1e3,s=[];this.groupAutoColumns&&(s=s.concat(this.groupAutoColumns)),t&&(s=s.concat(t)),s.forEach((function(e){var t=function(e,t){return null!=e?e:null!=t?t:null},s=e.getColDef(),a=t(s.sort,s.initialSort),l=t(s.sortIndex,s.initialSortIndex),u=t(s.hide,s.initialHide),c=t(s.pinned,s.initialPinned),p=t(s.width,s.initialWidth),d=t(s.flex,s.initialFlex),h=t(s.rowGroupIndex,s.initialRowGroupIndex),f=t(s.rowGroup,s.initialRowGroup);null!=h||null!=f&&0!=f||(h=null,f=null);var g=t(s.pivotIndex,s.initialPivotIndex),v=t(s.pivot,s.initialPivot);null!=g||null!=v&&0!=v||(g=null,v=null);var y=t(s.aggFunc,s.initialAggFunc),m={colId:e.getColId(),sort:a,sortIndex:l,hide:u,pinned:c,width:p,flex:d,rowGroup:f,rowGroupIndex:h,pivot:v,pivotIndex:g,aggFunc:y};o(h)&&f&&(m.rowGroupIndex=i++),o(g)&&v&&(m.pivotIndex=n++),r.push(m)})),this.applyColumnState({state:r,applyOrder:!0},e)},i.prototype.applyColumnState=function(e,o){var i=this;if(r(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;var n=function(t,r,n){var s=i.compareColumnStatesAndDispatchEvents(o);i.autoGroupsNeedBuilding=!0;var a=r.slice(),l={},u={},c=[],p=[],d=0,h=i.rowGroupColumns.slice(),f=i.pivotColumns.slice();t.forEach((function(t){var r=t.colId||"";if(r.startsWith("ag-Grid-AutoColumn"))return c.push(t),void p.push(t);var s=n(r);s?(i.syncColumnWithStateItem(s,t,e.defaultState,l,u,!1,o),de(a,s)):(p.push(t),d+=1)}));var g=function(t){return i.syncColumnWithStateItem(t,null,e.defaultState,l,u,!1,o)};a.forEach(g);var v=function(e,t,o,r){var i=e[o.getId()],n=e[r.getId()],s=null!=i,a=null!=n;if(s&&a)return i-n;if(s)return-1;if(a)return 1;var l=t.indexOf(o),u=t.indexOf(r),c=l>=0;return c&&u>=0?l-u:c?-1:1};i.rowGroupColumns.sort(v.bind(i,l,h)),i.pivotColumns.sort(v.bind(i,u,f)),i.updateGridColumns();var y=i.groupAutoColumns?i.groupAutoColumns.slice():[];return c.forEach((function(t){var r=i.getAutoColumn(t.colId);de(y,r),i.syncColumnWithStateItem(r,t,e.defaultState,null,null,!0,o)})),y.forEach(g),i.applyOrderAfterApplyState(e),i.updateDisplayedColumns(o),i.dispatchEverythingChanged(o),s(),{unmatchedAndAutoStates:p,unmatchedCount:d}};this.columnAnimationService.start();var s=n(e.state||[],this.primaryColumns||[],(function(e){return i.getPrimaryColumn(e)})),a=s.unmatchedAndAutoStates,l=s.unmatchedCount;return(a.length>0||t(e.defaultState))&&(l=n(a,this.secondaryColumns||[],(function(e){return i.getSecondaryColumn(e)})).unmatchedCount),this.columnAnimationService.finish(),0===l},i.prototype.applyOrderAfterApplyState=function(e){var t=this;if(e.applyOrder&&e.state){var o=[],r={};e.state.forEach((function(e){if(e.colId&&!r[e.colId]){var i=t.gridColumnsMap[e.colId];i&&(o.push(i),r[e.colId]=!0)}}));var i=0;this.gridColumns.forEach((function(e){var t=e.getColId();null!=r[t]||(t.startsWith("ag-Grid-AutoColumn")?fe(o,e,i++):o.push(e))})),o=this.placeLockedColumns(o),this.doesMovePassMarryChildren(o)?this.gridColumns=o:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},i.prototype.compareColumnStatesAndDispatchEvents=function(e){var t=this,o={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},r=this.getColumnState(),i={};return r.forEach((function(e){i[e.colId]=e})),function(){var n=t.getPrimaryAndSecondaryAndAutoColumns(),s=function(o,r,i,n){if(!ce(r.map(n),i.map(n))){var s={type:o,columns:i,column:1===i.length?i[0]:null,source:e};t.eventService.dispatchEvent(s)}},a=function(e){var t=[];return n.forEach((function(o){var r=i[o.getColId()];r&&e(r,o)&&t.push(o)})),t},l=function(e){return e.getColId()};s(ke.EVENT_COLUMN_ROW_GROUP_CHANGED,o.rowGroupColumns,t.rowGroupColumns,l),s(ke.EVENT_COLUMN_PIVOT_CHANGED,o.pivotColumns,t.pivotColumns,l);a((function(e,t){var o=null!=e.aggFunc,r=o!=t.isValueActive(),i=o&&e.aggFunc!=t.getAggFunc();return r||i})).length>0&&t.dispatchColumnChangedEvent(ke.EVENT_COLUMN_VALUE_CHANGED,t.valueColumns,e);t.dispatchColumnResizedEvent(a((function(e,t){return e.width!=t.getActualWidth()})),!0,e);t.dispatchColumnPinnedEvent(a((function(e,t){return e.pinned!=t.getPinned()})),e);t.dispatchColumnVisibleEvent(a((function(e,t){return e.hide==t.isVisible()})),e);a((function(e,t){return e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()})).length>0&&t.sortController.dispatchSortChangedEvents(e),t.normaliseColumnMovedEventForColumnState(r,e)}},i.prototype.getCommonValue=function(e,t){if(e&&0!=e.length){for(var o=t(e[0]),r=1;r<e.length;r++)if(o!==t(e[r]))return;return o}},i.prototype.normaliseColumnMovedEventForColumnState=function(e,t){var o=this,r=this.getColumnState(),i={};r.forEach((function(e){return i[e.colId]=e}));var n={};e.forEach((function(e){i[e.colId]&&(n[e.colId]=!0)}));var s=e.filter((function(e){return n[e.colId]})),a=r.filter((function(e){return n[e.colId]})),l=[];a.forEach((function(e,t){var r=s&&s[t];if(r&&r.colId!==e.colId){var i=o.getGridColumn(r.colId);i&&l.push(i)}})),l.length&&this.dispatchColumnMovedEvent({movedColumns:l,source:t,finished:!0})},i.prototype.syncColumnWithStateItem=function(e,o,r,i,n,s,a){if(e){var l=function(e,i){var n={value1:void 0,value2:void 0},s=!1;return o&&(void 0!==o[e]&&(n.value1=o[e],s=!0),t(i)&&void 0!==o[i]&&(n.value2=o[i],s=!0)),!s&&r&&(void 0!==r[e]&&(n.value1=r[e]),t(i)&&void 0!==r[i]&&(n.value2=r[i])),n},u=l("hide").value1;void 0!==u&&e.setVisible(!u,a);var c=l("pinned").value1;void 0!==c&&e.setPinned(c);var p=this.columnUtils.calculateColMinWidth(e.getColDef()),d=l("flex").value1;if(void 0!==d&&e.setFlex(d),e.getFlex()<=0){var h=l("width").value1;null!=h&&null!=p&&h>=p&&e.setActualWidth(h,a)}var f=l("sort").value1;void 0!==f&&("desc"===f||"asc"===f?e.setSort(f,a):e.setSort(void 0,a));var g=l("sortIndex").value1;if(void 0!==g&&e.setSortIndex(g),!s&&e.isPrimary()){var v=l("aggFunc").value1;void 0!==v&&("string"==typeof v?(e.setAggFunc(v),e.isValueActive()||(e.setValueActive(!0,a),this.valueColumns.push(e))):(t(v)&&console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.isValueActive()&&(e.setValueActive(!1,a),de(this.valueColumns,e))));var y=l("rowGroup","rowGroupIndex"),m=y.value1,C=y.value2;void 0===m&&void 0===C||("number"==typeof C||m?(e.isRowGroupActive()||(e.setRowGroupActive(!0,a),this.rowGroupColumns.push(e)),i&&"number"==typeof C&&(i[e.getId()]=C)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,a),de(this.rowGroupColumns,e)));var w=l("pivot","pivotIndex"),S=w.value1,E=w.value2;void 0===S&&void 0===E||("number"==typeof E||S?(e.isPivotActive()||(e.setPivotActive(!0,a),this.pivotColumns.push(e)),n&&"number"==typeof E&&(n[e.getId()]=E)):e.isPivotActive()&&(e.setPivotActive(!1,a),de(this.pivotColumns,e)))}}},i.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},i.prototype.getColumns=function(e,t){var o=[];return e&&e.forEach((function(e){var r=t(e);r&&o.push(r)})),o},i.prototype.getColumnWithValidation=function(e){if(null==e)return null;var t=this.getGridColumn(e);return t||console.warn("AG Grid: could not find column "+e),t},i.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},i.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},i.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},i.prototype.getColumn=function(e,t,o){if(!e)return null;if("string"==typeof e&&o[e])return o[e];for(var r=0;r<t.length;r++)if(this.columnsMatch(t[r],e))return t[r];return this.getAutoColumn(e)},i.prototype.getSourceColumnsForGroupColumn=function(e){var t=e.getColDef().showRowGroup;if(!t)return null;if(!0===t)return this.rowGroupColumns.slice(0);var o=this.getPrimaryColumn(t);return o?[o]:null},i.prototype.getAutoColumn=function(e){var r=this;return this.groupAutoColumns&&t(this.groupAutoColumns)&&!o(this.groupAutoColumns)&&this.groupAutoColumns.find((function(t){return r.columnsMatch(t,e)}))||null},i.prototype.columnsMatch=function(e,t){var o=e===t,r=e.getColDef()===t,i=e.getColId()==t;return o||r||i},i.prototype.getDisplayNameForColumn=function(e,t,o){if(void 0===o&&(o=!1),!e)return null;var r=this.getHeaderName(e.getColDef(),e,null,null,t);return o?this.wrapHeaderNameWithAggFunc(e,r):r},i.prototype.getDisplayNameForProvidedColumnGroup=function(e,t,o){var r=t?t.getColGroupDef():null;return r?this.getHeaderName(r,null,e,t,o):null},i.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)},i.prototype.getHeaderName=function(e,t,o,r,i){var n=e.headerValueGetter;if(n){var s={colDef:e,column:t,columnGroup:o,providedColumnGroup:r,location:i,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};return"function"==typeof n?n(s):"string"==typeof n?this.expressionService.evaluate(n,s):(console.warn("AG Grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?ft(e.field):""},i.prototype.wrapHeaderNameWithAggFunc=function(e,o){if(this.gridOptionsService.is("suppressAggFuncInHeader"))return o;var r,i=e.getColDef().pivotValueColumn,n=null;if(t(i)){var s=this.gridOptionsService.is("removePivotHeaderRowWhenSingleValueColumn")&&1===this.valueColumns.length,a=void 0!==e.getColDef().pivotTotalColumnIds;if(s&&!a)return o;n=i?i.getAggFunc():null,r=!0}else{var l=e.isValueActive(),u=this.pivotMode||!this.isRowGroupEmpty();l&&u?(n=e.getAggFunc(),r=!0):r=!1}if(r){var c="string"==typeof n?n:"func";return this.localeService.getLocaleTextFunc()(c,c)+"("+o+")"}return o},i.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof nt)return e;var o=this.getAllDisplayedTrees(),r="number"==typeof t,i=null;return this.columnUtils.depthFirstAllColumnTreeSearch(o,(function(o){if(o instanceof nt){var n=o;(r?e===n.getGroupId()&&t===n.getPartId():e===n.getGroupId())&&(i=n)}})),i},i.prototype.isReady=function(){return this.ready},i.prototype.extractValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,o){return t.setValueActive(o,e)}),(function(){}),(function(){}),(function(e){var t=e.aggFunc;return null===t||""===t?null:void 0!==t?!!t:void 0}),(function(e){return null!=e.initialAggFunc&&""!=e.initialAggFunc})),this.valueColumns.forEach((function(e){var t=e.getColDef();null!=t.aggFunc&&""!=t.aggFunc?e.setAggFunc(t.aggFunc):e.getAggFunc()||e.setAggFunc(t.initialAggFunc)}))},i.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,(function(t,o){return t.setRowGroupActive(o,e)}),(function(e){return e.rowGroupIndex}),(function(e){return e.initialRowGroupIndex}),(function(e){return e.rowGroup}),(function(e){return e.initialRowGroup}))},i.prototype.extractColumns=function(e,t,o,r,i,a,l){void 0===e&&(e=[]),void 0===t&&(t=[]);var u=[],c=[];(this.primaryColumns||[]).forEach((function(o){var p=e.indexOf(o)<0,d=o.getColDef(),h=s(a(d)),f=s(l(d)),g=n(r(d)),v=n(i(d));(void 0!==h?h:void 0!==g?null!==g&&g>=0:p?void 0!==f?f:!!(void 0!==v)&&(null!=v&&v>=0):t.indexOf(o)>=0)&&((p?null!=g||null!=v:null!=g)?u.push(o):c.push(o))}));var p=function(e){var t=r(e.getColDef()),o=i(e.getColDef());return null!=t?t:o};u.sort((function(e,t){var o=p(e),r=p(t);return o===r?0:o<r?-1:1}));var d=[].concat(u);return t.forEach((function(e){c.indexOf(e)>=0&&d.push(e)})),c.forEach((function(e){d.indexOf(e)<0&&d.push(e)})),t.forEach((function(e){d.indexOf(e)<0&&o(e,!1)})),d.forEach((function(e){t.indexOf(e)<0&&o(e,!0)})),d},i.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,o){return t.setPivotActive(o,e)}),(function(e){return e.pivotIndex}),(function(e){return e.initialPivotIndex}),(function(e){return e.pivot}),(function(e){return e.initialPivot}))},i.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof se){var o=e.getColGroupDef(),r={groupId:e.getGroupId(),open:o?o.openByDefault:void 0};t.push(r)}})),this.setColumnGroupState(t,e)},i.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){t instanceof se&&e.push({groupId:t.getGroupId(),open:t.isExpanded()})})),e},i.prototype.setColumnGroupState=function(e,t){var o=this;void 0===t&&(t="api"),this.columnAnimationService.start();var r=[];e.forEach((function(e){var t=e.groupId,i=e.open,n=o.getProvidedColumnGroup(t);n&&n.isExpanded()!==i&&(o.logger.log("columnGroupOpened("+n.getGroupId()+","+i+")"),n.setExpanded(i),r.push(n))})),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),r.forEach((function(e){var t={type:ke.EVENT_COLUMN_GROUP_OPENED,columnGroup:e};o.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},i.prototype.setColumnGroupOpened=function(e,t,o){var r;void 0===o&&(o="api"),r=e instanceof se?e.getId():e||"",this.setColumnGroupState([{groupId:r,open:t}],o)},i.prototype.getProvidedColumnGroup=function(e){"string"!=typeof e&&console.error("AG Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){o instanceof se&&o.getId()===e&&(t=o)})),t},i.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&o(this.secondaryColumns)?this.gridColumns.filter((function(t){var o=e.groupAutoColumns&&ve(e.groupAutoColumns,t),r=e.valueColumns&&ve(e.valueColumns,t);return o||r})):this.gridColumns.filter((function(t){return e.groupAutoColumns&&ve(e.groupAutoColumns,t)||t.isVisible()}))},i.prototype.checkColSpanActiveInCols=function(e){var o=!1;return e.forEach((function(e){t(e.getColDef().colSpan)&&(o=!0)})),o},i.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};var o=function(o){var r=o.getColDef(),i=r.showRowGroup;r&&t(i)&&(e.groupDisplayColumns.push(o),"string"==typeof i?e.groupDisplayColumnsMap[i]=o:!0===i&&e.getRowGroupColumns().forEach((function(t){e.groupDisplayColumnsMap[t.getId()]=o})))};this.gridColumns.forEach(o),this.groupAutoColumns&&this.groupAutoColumns.forEach(o)},i.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},i.prototype.getGroupDisplayColumnForGroup=function(e){return this.groupDisplayColumnsMap[e]},i.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},i.prototype.isSecondaryColumnsPresent=function(){return t(this.secondaryColumns)},i.prototype.setSecondaryColumns=function(e,t){var r=this;void 0===t&&(t="api");var i=e&&e.length>0;if(i||!o(this.secondaryColumns)){if(i){this.processSecondaryColumnDefinitions(e);var n=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.destroyOldColumns(this.secondaryBalancedTree,n.columnTree),this.secondaryBalancedTree=n.columnTree,this.secondaryHeaderRowCount=n.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((function(e){return r.secondaryColumnsMap[e.getId()]=e})),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(t)}},i.prototype.processSecondaryColumnDefinitions=function(e){var o=this.gridOptionsService.get("processPivotResultColDef")||this.gridOptionsService.get("processSecondaryColDef"),r=this.gridOptionsService.get("processPivotResultColGroupDef")||this.gridOptionsService.get("processSecondaryColGroupDef");if(o||r){var i=function(e){e.forEach((function(e){if(t(e.children)){var n=e;r&&r(n),i(n.children)}else{o&&o(e)}}))};e&&i(e)}},i.prototype.updateGridColumns=function(){var e,t=this,o=this.gridBalancedTree;if(this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns,this.secondaryColumns&&this.secondaryBalancedTree){var r=this.secondaryColumns.every((function(e){return void 0!==t.gridColumnsMap[e.getColId()]}));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,r&&(e=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,e=this.lastPrimaryOrder);if(this.createGroupAutoColumnsIfNeeded()&&e){var i=vt(this.groupAutoColumns.map((function(e){return[e,!0]})));e=e.filter((function(e){return!i.has(e)})),e=Ot(this.groupAutoColumns,e)}if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(e),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.refreshQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(e){return t.gridColumnsMap[e.getId()]=e})),this.setAutoHeightActive(),!ce(o,this.gridBalancedTree)){var n={type:ke.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(n)}},i.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter((function(e){return e.isAutoHeight()})).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.rowModel.getType();if(!("clientSide"===e||"serverSide"===e)){O((function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}),"autoHeightActive.wrongRowModel")}}},i.prototype.orderGridColsLike=function(e){if(!o(e)){var t=vt(e.map((function(e,t){return[e,t]}))),r=!0;if(this.gridColumns.forEach((function(e){t.has(e)&&(r=!1)})),!r){var i=vt(this.gridColumns.map((function(e){return[e,!0]}))),n=e.filter((function(e){return i.has(e)})),s=vt(n.map((function(e){return[e,!0]}))),a=this.gridColumns.filter((function(e){return!s.has(e)})),l=n.slice();a.forEach((function(e){var t=e.getOriginalParent();if(t){for(var o=[];!o.length&&t;){t.getLeafColumns().forEach((function(e){var t=l.indexOf(e)>=0,r=o.indexOf(e)<0;t&&r&&o.push(e)})),t=t.getOriginalParent()}if(o.length){var r=o.map((function(e){return l.indexOf(e)})),i=Math.max.apply(Math,Ot(r));fe(l,e,i+1)}else l.push(e)}else l.push(e)})),this.gridColumns=l}}},i.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},i.prototype.refreshQuickFilterColumns=function(){var e,t;this.groupAutoColumns?t=(null!==(e=this.primaryColumns)&&void 0!==e?e:[]).concat(this.groupAutoColumns):this.primaryColumns&&(t=this.primaryColumns),t=null!=t?t:[],this.columnsForQuickFilter=this.gridOptionsService.is("excludeHiddenColumnsFromQuickFilter")?t.filter((function(e){return e.isVisible()})):t},i.prototype.placeLockedColumns=function(e){var t=[],o=[],r=[];return e.forEach((function(e){var i=e.getColDef().lockPosition;"right"===i?r.push(e):"left"===i||!0===i?t.push(e):o.push(e)})),Ot(t,o,r)},i.prototype.addAutoGroupToGridColumns=function(){if(o(this.groupAutoColumns))return this.destroyOldColumns(this.groupAutoColsBalancedTree),void(this.groupAutoColsBalancedTree=null);this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.destroyOldColumns(this.groupAutoColsBalancedTree,e),this.groupAutoColsBalancedTree=e,this.gridBalancedTree=e.concat(this.gridBalancedTree)},i.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},i.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var t={type:ke.EVENT_DISPLAYED_COLUMNS_CHANGED};this.eventService.dispatchEvent(t)},i.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter((function(e){return e.isAutoHeight()}))},i.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},i.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},i.prototype.joinDisplayedColumns=function(){this.gridOptionsService.is("enableRtl")?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},i.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},i.prototype.setLeftValuesOfColumns=function(e){var t=this;if(this.primaryColumns){var o=this.primaryColumns.slice(0),r=this.gridOptionsService.is("enableRtl");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((function(i){if(r){var n=t.getWidthOfColsInList(i);i.forEach((function(t){n-=t.getActualWidth(),t.setLeft(n,e)}))}else{var s=0;i.forEach((function(t){t.setLeft(s,e),s+=t.getActualWidth()}))}he(o,i)})),o.forEach((function(t){t.setLeft(null,e)}))}},i.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(e){e.forEach((function(e){e instanceof nt&&e.checkLeft()}))}))},i.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof ie&&t.push(e)}))},i.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?(this.viewportColumnsCenter=this.displayedColumnsCenter,this.headerViewportColumnsCenter=this.displayedColumnsCenter):(this.viewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this)),this.headerViewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this))),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight),this.headerViewportColumns=this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},i.prototype.getVirtualHeaderGroupRow=function(e,t){var r;switch(e){case"left":r=this.viewportRowLeft[t];break;case"right":r=this.viewportRowRight[t];break;default:r=this.viewportRowCenter[t]}return o(r)&&(r=[]),r},i.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.headerViewportColumns.forEach((function(t){return e[t.getId()]=!0}));var t=function(o,r,i){for(var n=!1,s=0;s<o.length;s++){var a=o[s],l=!1;if(a instanceof ie)l=!0===e[a.getId()];else{var u=a.getDisplayedChildren();u&&(l=t(u,r,i+1))}l&&(n=!0,r[i]||(r[i]=[]),r[i].push(a))}return n};t(this.displayedTreeLeft,this.viewportRowLeft,0),t(this.displayedTreeRight,this.viewportRowRight,0),t(this.displayedTreeCentre,this.viewportRowCenter,0)},i.prototype.extractViewport=function(){this.extractViewportColumns();var e=this.viewportColumns.map((function(e){return e.getId()+"-"+(e.getPinned()||"normal")})).join("#"),t=this.viewportColumnsHash!==e;return t&&(this.viewportColumnsHash=e,this.calculateHeaderRows()),t},i.prototype.refreshFlexedColumns=function(e){var o=this;void 0===e&&(e={});var r=e.source?e.source:"flex";if(null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];var i=-1;e.resizingCols&&e.resizingCols.forEach((function(e){var t=o.displayedColumnsCenter.indexOf(e);i<t&&(i=t)}));var n=function(e){var t=o.displayedColumnsCenter.indexOf(e)>i;return e.getFlex()&&t},s=this.displayedColumnsCenter.filter((function(e){return!n(e)})),a=this.displayedColumnsCenter.filter((function(e){return n(e)})),l=[];if(!a.length)return[];var u,c=[];e:for(;;){var p=a.reduce((function(e,t){return e+t.getFlex()}),0);u=this.flexViewportWidth-this.getWidthOfColsInList(s);for(var d=0;d<a.length;d++){var h=a[d],f=u*h.getFlex()/p,g=0,v=h.getMinWidth(),y=h.getMaxWidth();if(t(v)&&f<v?g=v:t(y)&&f>y&&(g=y),g){h.setActualWidth(g,r),de(a,h),l.push(h),s.push(h);continue e}c[d]=Math.round(f)}break}var m=u;return a.forEach((function(e,t){e.setActualWidth(Math.min(c[t],m),r),l.push(e),m-=c[t]})),e.skipSetLeft||this.setLeftValues(r),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.dispatchColumnResizedEvent(l,!0,r,a),this.flexColsCalculatedAtLestOnce||(this.gridOptionsService.isRowModelType("clientSide")&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),a},i.prototype.sizeColumnsToFit=function(e,o,r,i){var n,s,a,l,u;void 0===o&&(o="sizeColumnsToFit");var c={};i&&(null===(n=null==i?void 0:i.columnLimits)||void 0===n||n.forEach((function(e){var t=e.key,o=St(e,["key"]);c["string"==typeof t?t:t.getColId()]=o})));var p=this.getAllDisplayedColumns(),d=e===this.getWidthOfColsInList(p);if(!(e<=0||!p.length||d)){var h=[],f=[];p.forEach((function(e){!0===e.getColDef().suppressSizeToFit?f.push(e):h.push(e)}));var g=h.slice(0),v=!1,y=function(e){de(h,e),f.push(e)};for(h.forEach((function(e){return e.resetActualWidth(o)}));!v;){v=!0;var m=e-this.getWidthOfColsInList(f);if(m<=0)h.forEach((function(e){var t,r,n=null!==(r=null===(t=null==c?void 0:c[e.getId()])||void 0===t?void 0:t.minWidth)&&void 0!==r?r:null==i?void 0:i.defaultMinWidth;"number"!=typeof n?e.setMinimum(o):e.setActualWidth(n)}));else for(var C=m/this.getWidthOfColsInList(h),w=m,S=h.length-1;S>=0;S--){var E=h[S],R=null==c?void 0:c[E.getId()],O=null!==(s=null==R?void 0:R.minWidth)&&void 0!==s?s:null==i?void 0:i.defaultMinWidth,b=null!==(a=null==R?void 0:R.maxWidth)&&void 0!==a?a:null==i?void 0:i.defaultMaxWidth,T=null!==(l=E.getMinWidth())&&void 0!==l?l:0,P=null!==(u=E.getMaxWidth())&&void 0!==u?u:Number.MAX_VALUE,D="number"==typeof O&&O>T?O:E.getMinWidth(),_="number"==typeof b&&b<P?b:E.getMaxWidth(),A=Math.round(E.getActualWidth()*C);t(D)&&A<D?(A=D,y(E),v=!1):t(_)&&A>_?(A=_,y(E),v=!1):0===S&&(A=w),E.setActualWidth(A,o,!0),w-=A}}g.forEach((function(e){e.fireColumnWidthChangedEvent(o)})),this.setLeftValues(o),this.updateBodyWidths(),r||this.dispatchColumnResizedEvent(g,!0,o)}},i.prototype.buildDisplayedTrees=function(e){var t=[],o=[],r=[];e.forEach((function(e){switch(e.getPinned()){case"left":t.push(e);break;case"right":o.push(e);break;default:r.push(e)}}));var i=new st;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,i,"left",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,i,"right",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(r,this.gridBalancedTree,i,null,this.displayedTreeCentre),this.updateDisplayedMap()},i.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var t=function(t){e.displayedColumnsAndGroupsMap[t.getUniqueId()]=t};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,t)},i.prototype.isDisplayed=function(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e},i.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof nt&&e.calculateDisplayedColumns()}))},i.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},i.prototype.createGroupAutoColumnsIfNeeded=function(){if(!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsService.isGroupUseEntireRow(this.pivotMode),t=this.pivotMode?this.gridOptionsService.is("pivotSuppressAutoColumn"):this.isGroupSuppressAutoColumn();if((this.rowGroupColumns.length>0||this.usingTreeData)&&!t&&!e){var o=this.groupAutoColumns||[],r=this.autoGroupColService.createAutoGroupColumns(o,this.rowGroupColumns);if(!this.autoColsEqual(r,this.groupAutoColumns)||this.forceRecreateAutoGroups)return this.groupAutoColumns=r,!0}else this.groupAutoColumns=null;return!1},i.prototype.isGroupSuppressAutoColumn=function(){var e=this.gridOptionsService.get("groupDisplayType");if(!!e&&rt("custom",e))return!0;var t,o,r,i=this.gridOptionsService.get("treeDataDisplayType");return!!i&&(t="custom",(r=["auto","custom"]).indexOf(o=i)<0?(console.warn("AG Grid: '"+o+"' is not a valid treeDataDisplayType value - possible values are: '"+r.join("', '")+"'"),!1):o===t)},i.prototype.autoColsEqual=function(e,t){return ce(e,t,(function(e,t){return e.getColId()===t.getColId()}))},i.prototype.getWidthOfColsInList=function(e){return e.reduce((function(e,t){return e+t.getActualWidth()}),0)},i.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},i.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some((function(e){return e.getColDef().floatingFilter}))},i.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsService.is("enableRtl"),t=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&t.reverse();for(var o=0;o<t.length;o++){var r=this[t[o]]();if(r.length)return e?ue(r):r[0]}return null},i.prototype.setColumnHeaderHeight=function(e,t){if(e.setAutoHeaderHeight(t)){var o={type:ke.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,column:e,columns:[e],source:"autosizeColumnHeaderHeight"};this.eventService.dispatchEvent(o)}},i.prototype.getColumnGroupHeaderRowHeight=function(){return this.isPivotMode()?this.getPivotGroupHeaderHeight():this.getGroupHeaderHeight()},i.prototype.getColumnHeaderRowHeight=function(){var e=this.isPivotMode()?this.getPivotHeaderHeight():this.getHeaderHeight(),t=this.getAllDisplayedColumns().filter((function(e){return e.isAutoHeaderHeight()})).map((function(e){return e.getAutoHeaderHeight()||0}));return Math.max.apply(Math,Ot([e],t))},i.prototype.getHeaderHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum("headerHeight"))&&void 0!==e?e:this.environment.getFromTheme(25,"headerHeight")},i.prototype.getFloatingFiltersHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum("floatingFiltersHeight"))&&void 0!==e?e:this.getHeaderHeight()},i.prototype.getGroupHeaderHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum("groupHeaderHeight"))&&void 0!==e?e:this.getHeaderHeight()},i.prototype.getPivotHeaderHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum("pivotHeaderHeight"))&&void 0!==e?e:this.getHeaderHeight()},i.prototype.getPivotGroupHeaderHeight=function(){var e;return null!==(e=this.gridOptionsService.getNum("pivotGroupHeaderHeight"))&&void 0!==e?e:this.getGroupHeaderHeight()},Ct([U("expressionService")],i.prototype,"expressionService",void 0),Ct([U("columnFactory")],i.prototype,"columnFactory",void 0),Ct([U("displayedGroupCreator")],i.prototype,"displayedGroupCreator",void 0),Ct([U("ctrlsService")],i.prototype,"ctrlsService",void 0),Ct([U("autoWidthCalculator")],i.prototype,"autoWidthCalculator",void 0),Ct([U("columnUtils")],i.prototype,"columnUtils",void 0),Ct([U("columnAnimationService")],i.prototype,"columnAnimationService",void 0),Ct([U("autoGroupColService")],i.prototype,"autoGroupColService",void 0),Ct([z("aggFuncService")],i.prototype,"aggFuncService",void 0),Ct([z("valueCache")],i.prototype,"valueCache",void 0),Ct([z("animationFrameService")],i.prototype,"animationFrameService",void 0),Ct([U("rowModel")],i.prototype,"rowModel",void 0),Ct([U("sortController")],i.prototype,"sortController",void 0),Ct([U("columnDefFactory")],i.prototype,"columnDefFactory",void 0),Ct([B],i.prototype,"init",null),Ct([j],i.prototype,"destroyColumns",null),Ct([wt(0,Y("loggerFactory"))],i.prototype,"setBeans",null),i=Ct([W("columnModel")],i)}(Le),Tt=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Pt=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Dt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tt(t,e),t.prototype.calculateColMinWidth=function(e){return null!=e.minWidth?e.minWidth:this.environment.getMinColWidth()},t.prototype.calculateColMaxWidth=function(e){return null!=e.maxWidth?e.maxWidth:Number.MAX_SAFE_INTEGER},t.prototype.calculateColInitialWidth=function(e){var t,o=this.calculateColMinWidth(e),r=this.calculateColMaxWidth(e),i=n(e.width),s=n(e.initialWidth);return t=null!=i?i:null!=s?s:200,Math.max(Math.min(t,r),o)},t.prototype.getOriginalPathForColumn=function(e,t){var o=[],r=!1,i=function(t,n){for(var s=0;s<t.length;s++){if(r)return;var a=t[s];if(a instanceof se)i(a.getChildren(),n+1),o[n]=a;else a===e&&(r=!0)}};return i(t,0),r?o:null},t.prototype.depthFirstOriginalTreeSearch=function(e,t,o){var r=this;t&&t.forEach((function(t){t instanceof se&&r.depthFirstOriginalTreeSearch(t,t.getChildren(),o),o(t,e)}))},t.prototype.depthFirstAllColumnTreeSearch=function(e,t){var o=this;e&&e.forEach((function(e){e instanceof nt&&o.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},t.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var o=this;e&&e.forEach((function(e){e instanceof nt&&o.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},t=Pt([W("columnUtils")],t)}(Le),_t=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),At=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Nt=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return _t(o,e),o.prototype.createDisplayedGroups=function(e,t,o,r,i){var n,s,a=this,l=[],u=this.mapOldGroupsById(i);return e.forEach((function(e){for(var i=a.getOriginalPathForColumn(t,e),c=[],p=!s,d=0;d<i.length;d++)if(p||i[d]!==s[d]){var h=a.createColumnGroup(i[d],o,u,r);c[d]=h,0==d?l.push(h):c[d-1].addChild(h)}else c[d]=n[d];0===c.length?l.push(e):ue(c).addChild(e);n=c,s=i})),this.setupParentsIntoColumns(l,null),l},o.prototype.createColumnGroup=function(e,o,r,i){var n=e.getGroupId(),s=o.getInstanceIdForKey(n),a=r[nt.createUniqueId(n,s)];return a&&a.getProvidedColumnGroup()!==e&&(a=null),t(a)?a.reset():(a=new nt(e,n,s,i),this.context.createBean(a)),a},o.prototype.mapOldGroupsById=function(e){var t={},o=function(e){e.forEach((function(e){if(e instanceof nt){var r=e;t[e.getUniqueId()]=r,o(r.getChildren())}}))};return e&&o(e),t},o.prototype.setupParentsIntoColumns=function(e,t){var o=this;e.forEach((function(e){if(e.setParent(t),e instanceof nt){var r=e;o.setupParentsIntoColumns(r.getChildren(),r)}}))},o.prototype.getOriginalPathForColumn=function(e,t){var o=[],r=!1,i=function(e,n){for(var s=0;s<e.length;s++){if(r)return;var a=e[s];a instanceof se?(i(a.getChildren(),n+1),o[n]=a):a===t&&(r=!0)}};return i(e,0),r?o:(console.warn("AG Grid: could not get path"),null)},o=At([W("displayedGroupCreator")],o)}(Le),Mt=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ft=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Lt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.componentsMappedByName={},t}return Mt(t,e),t.prototype.setupComponents=function(e){var t=this;e&&e.forEach((function(e){return t.addComponent(e)}))},t.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=Ft([W("agStackComponentsRegistry")],t)}(Le);
|
110 |
|
111 |
|
112 |
|
113 |
|
114 |
|
115 |
|
116 |
|
117 |
|
118 |
|
119 |
|
120 |
|
121 |
|
122 | function xt(e,t,o){null==o||""==o?Gt(e,t):It(e,t,o)}function It(e,t,o){e.setAttribute(Ht(t),o.toString())}function Gt(e,t){e.removeAttribute(Ht(t))}function Ht(e){return"aria-"+e}function Vt(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function kt(e){return"asc"===e?"ascending":"desc"===e?"descending":"mixed"===e?"other":"none"}function Bt(e){return parseInt(e.getAttribute("aria-level"),10)}function jt(e){return parseInt(e.getAttribute("aria-posinset"),10)}function Wt(e,t){xt(e,"label",t)}function Ut(e,t){xt(e,"labelledby",t)}function zt(e,t){xt(e,"description",t)}function Kt(e,t){xt(e,"describedby",t)}function Yt(e,t){xt(e,"live",t)}function qt(e,t){xt(e,"level",t)}function Qt(e,t){xt(e,"disabled",t)}function Xt(e,t){xt(e,"hidden",t)}function Jt(e,t){It(e,"expanded",t)}function Zt(e){Gt(e,"expanded")}function $t(e,t){It(e,"setsize",t)}function eo(e,t){It(e,"posinset",t)}function to(e,t){It(e,"multiselectable",t)}function oo(e,t){It(e,"rowcount",t)}function ro(e,t){It(e,"rowindex",t)}function io(e,t){It(e,"colcount",t)}function no(e,t){It(e,"colindex",t)}function so(e,t){It(e,"colspan",t)}function ao(e,t){It(e,"sort",t)}function lo(e){Gt(e,"sort")}function uo(e,t){xt(e,"selected",t)}function co(e,t){It(e,"checked",void 0===t?"mixed":t)}var po,ho,fo,go,vo,yo,mo,Co,wo=Object.freeze({setAriaRole:Vt,getAriaSortState:kt,getAriaLevel:Bt,getAriaPosInSet:jt,getAriaDescribedBy:function(e){return e.getAttribute("aria-describedby")||""},setAriaLabel:Wt,setAriaLabelledBy:Ut,setAriaDescription:zt,setAriaDescribedBy:Kt,setAriaLive:Yt,setAriaLevel:qt,setAriaDisabled:Qt,setAriaHidden:Xt,setAriaExpanded:Jt,removeAriaExpanded:Zt,setAriaSetSize:$t,setAriaPosInSet:eo,setAriaMultiSelectable:to,setAriaRowCount:oo,setAriaRowIndex:ro,setAriaColCount:io,setAriaColIndex:no,setAriaColSpan:so,setAriaSort:ao,removeAriaSort:lo,setAriaSelected:uo,setAriaChecked:co});
|
123 |
|
124 |
|
125 |
|
126 |
|
127 |
|
128 | function So(){return void 0===po&&(po=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),po}function Eo(){if(void 0===ho)if(So()){var e=navigator.userAgent.match(/version\/(\d+)/i);e&&(ho=null!=e[1]?parseFloat(e[1]):0)}else ho=0;return ho}function Ro(){if(void 0===fo){var e=window;fo=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return fo}function Oo(){return void 0===go&&(go=/(firefox)/i.test(navigator.userAgent)),go}function bo(){return void 0===vo&&(vo=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),vo}function To(){return void 0===yo&&(yo=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),yo}function Po(){return!So()||Eo()>=15}function Do(e){if(!e)return null;var t=e.tabIndex,o=e.getAttribute("tabIndex");return-1!==t||null!==o&&(""!==o||Oo())?t.toString():null}function _o(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,o=document.createElement("div");for(document.body.appendChild(o);;){var r=2*e;if(o.style.height=r+"px",r>t||o.clientHeight!==r)break;e=r}return document.body.removeChild(o),e}function Ao(){var e,t,o;return null!==(t=null===(e=document.body)||void 0===e?void 0:e.clientWidth)&&void 0!==t?t:window.innerHeight||(null===(o=document.documentElement)||void 0===o?void 0:o.clientWidth)||-1}function No(){var e,t,o;return null!==(t=null===(e=document.body)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:window.innerHeight||(null===(o=document.documentElement)||void 0===o?void 0:o.clientHeight)||-1}function Mo(){return null==Co&&Fo(),Co}function Fo(){var e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);var o=t.offsetWidth-t.clientWidth;0===o&&0===t.clientWidth&&(o=null),t.parentNode&&t.parentNode.removeChild(t),null!=o&&(Co=o,mo=0===o)}function Lo(){return null==mo&&Fo(),mo}var xo=Object.freeze({isBrowserSafari:So,getSafariVersion:Eo,isBrowserChrome:Ro,isBrowserFirefox:Oo,isMacOsUserAgent:bo,isIOSUserAgent:To,browserSupportsPreventScroll:Po,getTabIndex:Do,getMaxDivHeight:_o,getBodyWidth:Ao,getBodyHeight:No,getScrollbarWidth:Mo,isInvisibleScrollbar:Lo});
|
129 |
|
130 |
|
131 |
|
132 |
|
133 |
|
134 | function Io(e,t){return e.toString().padStart(t,"0")}function Go(e,t){for(var o=[],r=e;r<=t;r++)o.push(r);return o}function Ho(e,t,o){return"number"!=typeof e?"":e.toString().replace(".",o).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+t)}var Vo=Object.freeze({padStartWidthZeros:Io,createArrayOfNumbers:Go,cleanNumber:function(e){return"string"==typeof e&&(e=parseInt(e,10)),"number"==typeof e?Math.floor(e):null},decToHex:function(e,t){for(var o="",r=0;r<t;r++)o+=String.fromCharCode(255&e),e>>>=8;return o},formatNumberTwoDecimalPlacesAndCommas:function(e,t,o){return"number"!=typeof e?"":Ho(Math.round(100*e)/100,t,o)},formatNumberCommas:Ho,sum:function(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)},zeroOrGreater:function(e,t){return e>=0?e:t},oneOrGreater:function(e,t){var o=parseInt(e,10);return!isNaN(o)&&isFinite(o)&&o>0?o:t}}),ko=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s};
|
135 |
|
136 |
|
137 |
|
138 |
|
139 |
|
140 | function Bo(e,t,o){if(void 0===t&&(t=!0),void 0===o&&(o="-"),!e)return null;var r=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((function(e){return Io(e,2)})).join(o);return t&&(r+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return Io(e,2)})).join(":")),r}var jo=function(e){if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function Wo(e,t){void 0===t&&(t="YYYY-MM-DD");var o=Io(e.getFullYear(),4),r=["January","February","March","April","May","June","July","August","September","October","November","December"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],n={YYYY:function(){return o.slice(o.length-4,o.length)},YY:function(){return o.slice(o.length-2,o.length)},Y:function(){return""+e.getFullYear()},MMMM:function(){return r[e.getMonth()]},MMM:function(){return r[e.getMonth()].slice(0,3)},MM:function(){return Io(e.getMonth()+1,2)},Mo:function(){return""+(e.getMonth()+1)+jo(e.getMonth()+1)},M:function(){return""+(e.getMonth()+1)},Do:function(){return""+e.getDate()+jo(e.getDate())},DD:function(){return Io(e.getDate(),2)},D:function(){return""+e.getDate()},dddd:function(){return i[e.getDay()]},ddd:function(){return i[e.getDay()].slice(0,3)},dd:function(){return i[e.getDay()].slice(0,2)},do:function(){return""+e.getDay()+jo(e.getDay())},d:function(){return""+e.getDay()}},s=new RegExp(Object.keys(n).join("|"),"g");return t.replace(s,(function(e){return e in n?n[e]():e}))}function Uo(e){if(!e)return null;var t=ko(e.split(" "),2),o=t[0],r=t[1];if(!o)return null;var i=o.split("-").map((function(e){return parseInt(e,10)}));if(3!==i.filter((function(e){return!isNaN(e)})).length)return null;var n=ko(i,3),s=n[0],a=n[1],l=n[2],u=new Date(s,a-1,l);if(u.getFullYear()!==s||u.getMonth()!==a-1||u.getDate()!==l)return null;if(!r||"00:00:00"===r)return u;var c=ko(r.split(":").map((function(e){return parseInt(e,10)})),3),p=c[0],d=c[1],h=c[2];return p>=0&&p<24&&u.setHours(p),d>=0&&d<60&&u.setMinutes(d),h>=0&&h<60&&u.setSeconds(h),u}var zo,Ko=Object.freeze({serialiseDate:Bo,dateToFormattedString:Wo,parseDateTimeFromString:Uo}),Yo=function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},qo=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s};
|
141 |
|
142 |
|
143 |
|
144 |
|
145 |
|
146 | var Qo=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *";function Xo(e){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,o=t.call(e,"input, select, button, textarea"),r=t.call(e,Qo),i=pr(e);return o&&!r&&i}function Jo(e,t,o){void 0===o&&(o={});var r=o.skipAriaHidden;e.classList.toggle("ag-hidden",!t),r||Xt(e,!t)}function Zo(e,t,o){void 0===o&&(o={});var r=o.skipAriaHidden;e.classList.toggle("ag-invisible",!t),r||Xt(e,!t)}function $o(e,t){var o=t?function(e){return e.setAttribute("disabled","")}:function(e){return e.removeAttribute("disabled")};o(e),_r(e.querySelectorAll("input"),(function(e){return o(e)}))}function er(e,t,o){for(var r=0;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,"number"==typeof o){if(++r>o)break}else if(e===o)break}return!1}function tr(e){var t=window.getComputedStyle(e),o=t.height,r=t.width,i=t.borderTopWidth,n=t.borderRightWidth,s=t.borderBottomWidth,a=t.borderLeftWidth,l=t.paddingTop,u=t.paddingRight,c=t.paddingBottom,p=t.paddingLeft,d=t.marginTop,h=t.marginRight,f=t.marginBottom,g=t.marginLeft,v=t.boxSizing;return{height:parseFloat(o),width:parseFloat(r),borderTopWidth:parseFloat(i),borderRightWidth:parseFloat(n),borderBottomWidth:parseFloat(s),borderLeftWidth:parseFloat(a),paddingTop:parseFloat(l),paddingRight:parseFloat(u),paddingBottom:parseFloat(c),paddingLeft:parseFloat(p),marginTop:parseFloat(d),marginRight:parseFloat(h),marginBottom:parseFloat(f),marginLeft:parseFloat(g),boxSizing:v}}function or(e){var t=tr(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function rr(e){var t=tr(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function ir(e){var t=tr(e),o=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+o)}function nr(e){var t=tr(e),o=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+o)}function sr(){if("boolean"==typeof zo)return zo;var e=document.createElement("div");return e.style.direction="rtl",e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="0px",e.style.overflow="hidden",e.dir="rtl",e.innerHTML='<div style="width: 2px">\n <span style="display: inline-block; width: 1px"></span>\n <span style="display: inline-block; width: 1px"></span>\n </div>',document.body.appendChild(e),e.scrollLeft=1,zo=0===Math.floor(e.scrollLeft),document.body.removeChild(e),zo}function ar(e,t){var o=e.scrollLeft;return t&&(o=Math.abs(o),Ro()&&!sr()&&(o=e.scrollWidth-e.clientWidth-o)),o}function lr(e,t,o){o&&(sr()?t*=-1:(So()||Ro())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function ur(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function cr(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function pr(e){return null!==e.offsetParent}function dr(e){var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function hr(e){return e&&e.clientHeight?e.clientHeight:0}function fr(e){return e&&e.clientWidth?e.clientWidth:0}function gr(e,t,o){if(!o||o.nextSibling!==t){var r=document.activeElement,i=t.contains(r);o?o.nextSibling?e.insertBefore(t,o.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t),i&&r&&Po()&&r.focus({preventScroll:!0})}}function vr(e,t){for(var o=0;o<t.length;o++){var r=t[o],i=e.children[o];i!==r&&e.insertBefore(r,i)}}function yr(e,t,o){o?o.insertAdjacentElement("afterend",t):e.firstChild?e.insertAdjacentElement("afterbegin",t):e.appendChild(t)}function mr(e,t){var o,r;if(t)try{for(var i=Yo(Object.entries(t)),n=i.next();!n.done;n=i.next()){var s=qo(n.value,2),a=s[0],l=s[1];if(a&&a.length&&null!=l){var u=a.replace(/[A-Z]/g,(function(e){return"-"+e.toLocaleLowerCase()})),c=l.toString(),p=c.replace(/\s*!important/g,"").length!=c.length?"important":void 0;e.style.setProperty(u,l,p)}}}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}}function Cr(e){return e.clientWidth<e.scrollWidth}function wr(e){return e.clientHeight<e.scrollHeight}function Sr(e,t){"flex"===t?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Er(e,t)}function Er(e,t){t=Or(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function Rr(e,t){t=Or(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function Or(e){return"number"==typeof e?e+"px":e}function br(e){return e instanceof Node||e instanceof HTMLElement}function Tr(e){if(null==e)return[];var t=[];return _r(e,(function(e){return t.push(e)})),t}function Pr(e,t){if(e)for(var o=0;o<e.length;o++){var r=e[o];t(r.name,r.value)}}function Dr(e,t,o){null==o?e.removeAttribute(t):e.setAttribute(t,o.toString())}function _r(e,t){if(null!=e)for(var o=0;o<e.length;o++)t(e[o])}var Ar=Object.freeze({radioCssClass:function(e,t,o){for(var r=e.parentElement,i=r&&r.firstChild;i;)t&&i.classList.toggle(t,i===e),o&&i.classList.toggle(o,i!==e),i=i.nextSibling},FOCUSABLE_SELECTOR:"[tabindex], input, select, button, textarea, [href]",FOCUSABLE_EXCLUDE:Qo,isFocusableFormField:Xo,setDisplayed:Jo,setVisible:Zo,setDisabled:$o,isElementChildOfClass:er,getElementSize:tr,getInnerHeight:or,getInnerWidth:rr,getAbsoluteHeight:ir,getAbsoluteWidth:nr,isRtlNegativeScroll:sr,getScrollLeft:ar,setScrollLeft:lr,clearElement:ur,removeElement:function(e,t){cr(e.querySelector(t))},removeFromParent:cr,isVisible:pr,loadTemplate:dr,appendHtml:function(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t},getElementAttribute:function(e,t){return e.attributes&&e.attributes[t]?e.attributes[t].value:null},offsetHeight:hr,offsetWidth:fr,ensureDomOrder:gr,setDomChildOrder:vr,insertWithDomOrder:yr,prependDC:function(e,o){t(e.firstChild)?e.insertBefore(o,e.firstChild):e.appendChild(o)},addStylesToElement:mr,isHorizontalScrollShowing:Cr,isVerticalScrollShowing:wr,setElementWidth:Sr,setFixedWidth:Er,setElementHeight:function(e,t){"flex"===t?(e.style.removeProperty("height"),e.style.removeProperty("minHeight"),e.style.removeProperty("maxHeight"),e.style.flex="1 1 auto"):Rr(e,t)},setFixedHeight:Rr,formatSize:Or,isNodeOrElement:br,copyNodeList:Tr,iterateNamedNodeMap:Pr,addOrRemoveAttribute:Dr,nodeListForEach:_r}),Nr={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",setFilterGroupClosed:"tree-closed",setFilterGroupOpen:"tree-open",setFilterGroupIndeterminate:"tree-indeterminate",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardCut:"cut",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};
|
147 |
|
148 |
|
149 |
|
150 |
|
151 |
|
152 | function Mr(e,t,o){var r=Fr(e,t,o);if(r&&r.className.indexOf("ag-icon")>-1)return r;var i=document.createElement("span");return i.appendChild(r),i}function Fr(e,t,o,r){var i=null,n=o&&o.getColDef().icons;if(n&&(i=n[e]),t&&!i){var s=t.get("icons");s&&(i=s[e])}if(!i){var a=document.createElement("span"),l=Nr[e];return l||(r?l=e:(console.warn("AG Grid: Did not find icon "+e),l="")),a.setAttribute("class","ag-icon ag-icon-"+l),a.setAttribute("unselectable","on"),Vt(a,"presentation"),a}var u=void 0;if("function"==typeof i)u=i();else{if("string"!=typeof i)throw new Error("icon from grid options needs to be a string or a function");u=i}return"string"==typeof u?dr(u):br(u)?u:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var Lr=Object.freeze({iconNameClassMap:Nr,createIcon:Mr,createIconNoSpan:Fr}),xr=function(){function e(){}return e.BACKSPACE="Backspace",e.TAB="Tab",e.ENTER="Enter",e.ESCAPE="Escape",e.SPACE=" ",e.LEFT="ArrowLeft",e.UP="ArrowUp",e.RIGHT="ArrowRight",e.DOWN="ArrowDown",e.DELETE="Delete",e.F2="F2",e.PAGE_UP="PageUp",e.PAGE_DOWN="PageDown",e.PAGE_HOME="Home",e.PAGE_END="End",e.A="KeyA",e.C="KeyC",e.D="KeyD",e.V="KeyV",e.X="KeyX",e.Y="KeyY",e.Z="KeyZ",e}();
|
153 |
|
154 |
|
155 |
|
156 |
|
157 |
|
158 | function Ir(e){return!(e.altKey||e.ctrlKey||e.metaKey)&&1===e.key.length}function Gr(e,t,o,r,i){var n=r?r.getColDef().suppressKeyboardEvent:void 0;if(!n)return!1;var s={event:t,editing:i,column:r,api:e.api,node:o,data:o.data,colDef:r.getColDef(),context:e.context,columnApi:e.columnApi};if(n&&n(s))return!0;return!1}function Hr(e,o,r,i){var n=i.getDefinition(),s=n&&n.suppressHeaderKeyboardEvent;return!!t(s)&&!!s({api:e.api,columnApi:e.columnApi,context:e.context,colDef:n,column:i,headerRowIndex:r,event:o})}function Vr(e){var t;switch(e.keyCode){case 65:t=xr.A;break;case 67:t=xr.C;break;case 86:t=xr.V;break;case 68:t=xr.D;break;case 90:t=xr.Z;break;case 89:t=xr.Y;break;default:t=e.code}return t}function kr(e,t){return void 0===t&&(t=!1),e===xr.DELETE||!t&&e===xr.BACKSPACE&&bo()}var Br=Object.freeze({isEventFromPrintableCharacter:Ir,isUserSuppressingKeyboardEvent:Gr,isUserSuppressingHeaderKeyboardEvent:Hr,normaliseQwertyAzerty:Vr,isDeleteKey:kr});
|
159 |
|
160 |
|
161 |
|
162 |
|
163 |
|
164 | function jr(e,t,o){if(0===o)return!1;var r=Math.abs(e.clientX-t.clientX),i=Math.abs(e.clientY-t.clientY);return Math.max(r,i)<=o}var Wr=Object.freeze({areEventsNear:jr});
|
165 |
|
166 |
|
167 |
|
168 |
|
169 |
|
170 | var Ur=Object.freeze({sortRowNodesByOrder:function(e,t){if(!e)return!1;for(var o=function(e,o){var r=t[e.id],i=t[o.id],n=void 0!==r,s=void 0!==i;return n&&s?r-i:!n&&!s?e.__objectId-o.__objectId:n?1:-1},r=!1,i=0;i<e.length-1;i++)if(o(e[i],e[i+1])>0){r=!0;break}return!!r&&(e.sort(o),!0)},traverseNodesWithKey:function(e,t){var o=[];!function e(r){if(!r)return;r.forEach((function(r){if(r.group||r.hasChildren()){o.push(r.key);var i=o.join("|");t(r,i),e(r.childrenAfterGroup),o.pop()}}))}(e)}});
|
171 |
|
172 |
|
173 |
|
174 |
|
175 |
|
176 | function zr(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}var Kr,Yr=Object.freeze({convertToSet:zr}),qr=function(){return(qr=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Qr=qr(qr(qr(qr(qr(qr(qr(qr(qr(qr(qr(qr(qr(qr(qr(qr(qr(qr({},wo),Ce),xo),Ko),Ar),Me),I),Je),l),Lr),Br),yt),Wr),Vo),E),Ur),Yr),gt),Xr=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=1),this.nextValue=e,this.step=t}return e.prototype.next=function(){var e=this.nextValue;return this.nextValue+=this.step,e},e.prototype.peek=function(){return this.nextValue},e.prototype.skip=function(e){this.nextValue+=e},e}();
|
177 |
|
178 |
|
179 |
|
180 |
|
181 |
|
182 | (
|
183 |
|
184 |
|
185 |
|
186 |
|
187 |
|
188 |
|
189 | Kr=exports.AgPromiseStatus||(exports.AgPromiseStatus={}))[Kr.IN_PROGRESS=0]="IN_PROGRESS",Kr[Kr.RESOLVED=1]="RESOLVED";var Jr,Zr=function(){function e(e){var t=this;this.status=exports.AgPromiseStatus.IN_PROGRESS,this.resolution=null,this.waiters=[],e((function(e){return t.onDone(e)}),(function(e){return t.onReject(e)}))}return e.all=function(t){return new e((function(e){var o=t.length,r=new Array(o);t.forEach((function(t,i){t.then((function(t){r[i]=t,0===--o&&e(r)}))}))}))},e.resolve=function(t){return void 0===t&&(t=null),new e((function(e){return e(t)}))},e.prototype.then=function(t){var o=this;return new e((function(e){o.status===exports.AgPromiseStatus.RESOLVED?e(t(o.resolution)):o.waiters.push((function(o){return e(t(o))}))}))},e.prototype.resolveNow=function(e,t){return this.status===exports.AgPromiseStatus.RESOLVED?t(this.resolution):e},e.prototype.onDone=function(e){this.status=exports.AgPromiseStatus.RESOLVED,this.resolution=e,this.waiters.forEach((function(t){return t(e)}))},e.prototype.onReject=function(e){console.warn("TBI")},e}(),$r=function(){function e(){this.timestamp=(new Date).getTime()}return e.prototype.print=function(e){var t=(new Date).getTime()-this.timestamp;console.info(e+" = "+t),this.timestamp=(new Date).getTime()},e}(),ei=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ti=function(){return(ti=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},oi=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};
|
190 |
|
191 |
|
192 |
|
193 |
|
194 |
|
195 | !function(e){e[e.NOTHING=0]="NOTHING",e[e.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",e[e.SHOWING=2]="SHOWING"}(Jr||(Jr={}));var ri=function(e){function o(t){var o=e.call(this)||this;return o.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,o.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,o.SHOW_QUICK_TOOLTIP_DIFF=1e3,o.FADE_OUT_TOOLTIP_TIMEOUT=1e3,o.state=Jr.NOTHING,o.tooltipInstanceCount=0,o.tooltipMouseTrack=!1,o.parentComp=t,o}return ei(o,e),o.prototype.postConstruct=function(){this.tooltipShowDelay=this.getTooltipDelay("show")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.getTooltipDelay("hide")||this.DEFAULT_HIDE_TOOLTIP_DELAY,this.tooltipMouseTrack=this.gridOptionsService.is("tooltipMouseTrack");var e=this.parentComp.getGui();this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this))},o.prototype.destroy=function(){this.setToDoNothing(),e.prototype.destroy.call(this)},o.prototype.onMouseEnter=function(e){if(!To()&&this.state==Jr.NOTHING){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=Jr.WAITING_TO_SHOW}},o.prototype.onMouseLeave=function(){this.setToDoNothing()},o.prototype.onKeyDown=function(){this.setToDoNothing()},o.prototype.setToDoNothing=function(){this.state===Jr.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=Jr.NOTHING},o.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===Jr.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},o.prototype.onMouseDown=function(){this.setToDoNothing()},o.prototype.getTooltipDelay=function(e){var o=this.gridOptionsService.getNum("tooltipShowDelay"),r=this.gridOptionsService.getNum("tooltipHideDelay"),i="show"===e?o:r,n=dt(e);return t(i)?(i<0&&O((function(){return console.warn("AG Grid: tooltip"+n+"Delay should not be lower than 0")}),"tooltip"+n+"DelayWarn"),Math.max(200,i)):null},o.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),o.lastTooltipHideTime=(new Date).getTime()),this.state=Jr.NOTHING},o.prototype.destroyTooltipComp=function(){var e=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var t=this.tooltipPopupDestroyFunc,o=this.tooltipComp;window.setTimeout((function(){t(),e.getContext().destroyBean(o)}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},o.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-o.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF},o.prototype.showTooltip=function(){var e=ti({},this.parentComp.getTooltipParams());if(t(e.value)){this.state=Jr.SHOWING,this.tooltipInstanceCount++;var o=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(e).newAgStackInstance().then(o)}else this.setToDoNothing()},o.prototype.newTooltipComponentCallback=function(e,t){if(this.state!==Jr.SHOWING||this.tooltipInstanceCount!==e)this.getContext().destroyBean(t);else{var o=t.getGui();this.tooltipComp=t,o.classList.contains("ag-tooltip")||o.classList.add("ag-tooltip-custom");var r=this.localeService.getLocaleTextFunc(),i=this.popupService.addPopup({eChild:o,ariaLabel:r("ariaLabelTooltip","Tooltip")});i&&(this.tooltipPopupDestroyFunc=i.hideFunc),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.tooltipHideDelay)}},o.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack})},o.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},oi([U("popupService")],o.prototype,"popupService",void 0),oi([U("userComponentFactory")],o.prototype,"userComponentFactory",void 0),oi([U("columnApi")],o.prototype,"columnApi",void 0),oi([U("gridApi")],o.prototype,"gridApi",void 0),oi([B],o.prototype,"postConstruct",null),o}(Le),ii=function(){function e(e){this.cssClassStates={},this.getGui=e}return e.prototype.addCssClass=function(e){var t=this,o=(e||"").split(" ");if(o.length>1)o.forEach((function(e){return t.addCssClass(e)}));else if(!0!==this.cssClassStates[e]&&e.length){var r=this.getGui();r&&r.classList.add(e),this.cssClassStates[e]=!0}},e.prototype.removeCssClass=function(e){var t=this,o=(e||"").split(" ");if(o.length>1)o.forEach((function(e){return t.removeCssClass(e)}));else if(!1!==this.cssClassStates[e]&&e.length){var r=this.getGui();r&&r.classList.remove(e),this.cssClassStates[e]=!1}},e.prototype.containsCssClass=function(e){var t=this.getGui();return!!t&&t.classList.contains(e)},e.prototype.addOrRemoveCssClass=function(e,t){var o=this;if(e){if(e.indexOf(" ")>=0){var r=(e||"").split(" ");if(r.length>1)return void r.forEach((function(e){return o.addOrRemoveCssClass(e,t)}))}if(this.cssClassStates[e]!==t&&e.length){var i=this.getGui();i&&i.classList.toggle(e,t),this.cssClassStates[e]=t}}},e}(),ni=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),si=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ai=new Xr,li=function(e){function t(t){var o=e.call(this)||this;return o.displayed=!0,o.visible=!0,o.compId=ai.next(),o.cssClassManager=new ii((function(){return o.eGui})),t&&o.setTemplate(t),o}return ni(t,e),t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsService.is("enableBrowserTooltips")},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e){var t=this;this.tooltipText!=e&&(this.tooltipText&&(t.usingBrowserTooltips?t.getGui().removeAttribute("title"):t.tooltipFeature=t.destroyBean(t.tooltipFeature)),null!=e&&(this.tooltipText=e,this.tooltipText&&(t.usingBrowserTooltips?t.getGui().setAttribute("title",t.tooltipText):t.tooltipFeature=t.createBean(new ri(t)))))},t.prototype.createChildComponentsFromTags=function(e,t){var o=this;Tr(e.childNodes).forEach((function(r){if(r instanceof HTMLElement){var i=o.createComponentFromElement(r,(function(e){e.getGui()&&o.copyAttributesFromNode(r,e.getGui())}),t);if(i){if(i.addItems&&r.children.length){o.createChildComponentsFromTags(r,t);var n=Array.prototype.slice.call(r.children);i.addItems(n)}o.swapComponentForNode(i,e,r)}else r.childNodes&&o.createChildComponentsFromTags(r,t)}}))},t.prototype.createComponentFromElement=function(e,o,r){var i=e.nodeName,n=r?r[e.getAttribute("ref")]:void 0,s=this.agStackComponentsRegistry.getComponentClass(i);if(s){t.elementGettingCreated=e;var a=new s(n);return a.setParentComponent(this),this.createBean(a,null,o),a}return null},t.prototype.copyAttributesFromNode=function(e,t){Pr(e.attributes,(function(e,o){return t.setAttribute(e,o)}))},t.prototype.swapComponentForNode=function(e,t,o){var r=e.getGui();t.replaceChild(r,o),t.insertBefore(document.createComment(o.nodeName),r),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,o)},t.prototype.swapInComponentForQuerySelectors=function(e,t){var o=this;this.iterateOverQuerySelectors((function(r){o[r.attributeName]===t&&(o[r.attributeName]=e)}))},t.prototype.iterateOverQuerySelectors=function(e){for(var t=Object.getPrototypeOf(this);null!=t;){var o=t.__agComponentMetaData,r=b(t.constructor);o&&o[r]&&o[r].querySelectors&&o[r].querySelectors.forEach((function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var o=dr(e);this.setTemplateFromElement(o,t)},t.prototype.setTemplateFromElement=function(e,t){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),t)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var t=this;this.iterateOverQuerySelectors((function(o){var r=function(e){return t[o.attributeName]=e};if(o.refSelector&&e.eGui.getAttribute("ref")===o.refSelector)r(e.eGui);else{var i=e.eGui.querySelector(o.querySelector);i&&r(i.__agComponent||i)}}))}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,t){if(null!=e)if(t||(t=this.eGui),br(e))t.appendChild(e);else{var o=e;t.appendChild(o.getGui())}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e,t){if(void 0===t&&(t={}),e!==this.visible){this.visible=e;var o=t.skipAriaHidden;Zo(this.eGui,e,{skipAriaHidden:o})}},t.prototype.setDisplayed=function(e,o){if(void 0===o&&(o={}),e!==this.displayed){this.displayed=e;var r=o.skipAriaHidden;Jo(this.eGui,e,{skipAriaHidden:r});var i={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(i)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.parentComponent&&(this.parentComponent=void 0);var t=this.eGui;t&&t.__agComponent&&(t.__agComponent=void 0),e.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,t,o){var r=this;this.eGui.addEventListener(e,t,o),this.addDestroyFunc((function(){return r.eGui.removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){this.cssClassManager.addCssClass(e)},t.prototype.removeCssClass=function(e){this.cssClassManager.removeCssClass(e)},t.prototype.containsCssClass=function(e){return this.cssClassManager.containsCssClass(e)},t.prototype.addOrRemoveCssClass=function(e,t){this.cssClassManager.addOrRemoveCssClass(e,t)},t.prototype.getAttribute=function(e){var t=this.eGui;return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",si([U("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),si([k],t.prototype,"preConstructOnComponent",null),si([k],t.prototype,"createChildComponentsPreConstruct",null),t}(Le);
|
196 |
|
197 |
|
198 |
|
199 |
|
200 |
|
201 | function ui(e){return ci.bind(this,"[ref="+e+"]",e)}function ci(e,t,o,r,i){null!==e?"number"!=typeof i?function(e,t,o){var r=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}
|
202 |
|
203 |
|
204 |
|
205 |
|
206 |
|
207 | (e,b(e.constructor));r[t]||(r[t]=[]);r[t].push(o)}(o,"querySelectors",{attributeName:r,querySelector:e,refSelector:t}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var pi=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),di=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},hi=function(e){function t(){return e.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eFloatingFilterText"></ag-input-text-field>\n </div>')||this}return pi(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var t=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),o=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(t+" "+o("ariaFilterInput","Filter Input"))},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance((function(o){if(o.getModelAsString){var r=o.getModelAsString(e);t.eFloatingFilterText.setValue(r)}})):this.eFloatingFilterText.setValue("")},di([ui("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),di([U("columnModel")],t.prototype,"columnModel",void 0),t}(li),fi=function(){function e(e,t,o,r){var i=this;this.alive=!0,this.context=e,this.eParent=r,t.getDateCompDetails(o).newAgStackInstance().then((function(t){i.alive?(i.dateComp=t,t&&(r.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached(),i.tempValue&&t.setDate(i.tempValue),null!=i.disabled&&i.setDateCompDisabled(i.disabled))):e.destroyBean(t)}))}return e.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},e.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},e.prototype.setDate=function(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e},e.prototype.setDisabled=function(e){this.dateComp?this.setDateCompDisabled(e):this.disabled=e},e.prototype.setDisplayed=function(e){Jo(this.eParent,e)},e.prototype.setInputPlaceholder=function(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)},e.prototype.setInputAriaLabel=function(e){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(e)},e.prototype.afterGuiAttached=function(e){this.dateComp&&"function"==typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(e)},e.prototype.setDateCompDisabled=function(e){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(e)},e}(),gi=function(){return(gi=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},vi=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e),this.checkForDeprecatedParams()},e.prototype.checkForDeprecatedParams=function(){this.filterOptions.some((function(e){return"string"!=typeof e&&null!=e.test}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."),this.filterOptions.some((function(e){return"string"!=typeof e&&null!=e.hideFilterInput}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.")},e.prototype.getFilterOptions=function(){return this.filterOptions},e.prototype.mapCustomOptions=function(){var e=this;this.filterOptions&&this.filterOptions.forEach((function(t){if("string"!=typeof t){if([["displayKey"],["displayName"],["predicate","test"]].every((function(e){return!!e.some((function(e){return null!=t[e]}))||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+e+"'"),!1)}))){var o=t.test,r=gi({},t);null!=o&&null==t.predicate&&(r.predicate=function(e,t){return o(e[0],t)},delete r.test),r.hideFilterInput&&null==r.numberOfInputs&&(r.numberOfInputs=0,delete r.hideFilterInput),e.customFilterOptions[t.displayKey]=r}else e.filterOptions=e.filterOptions.filter((function(e){return e===t}))||[]}}))},e.prototype.selectDefaultItem=function(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){var t=this.filterOptions[0];"string"==typeof t?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},e.prototype.getDefaultOption=function(){return this.defaultOption},e.prototype.getCustomOption=function(e){return this.customFilterOptions[e]},e}(),yi={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},mi=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ci=function(){return(Ci=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},wi=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Si=function(e){function t(t,o){void 0===o&&(o={});var r=e.call(this)||this;return r.eFocusableElement=t,r.callbacks=o,r.callbacks=Ci({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(e){if(!e.defaultPrevented){var t=r.focusService.findNextFocusableElement(r.eFocusableElement,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())}}},o),r}return mi(t,e),t.prototype.postConstruct=function(){this.eFocusableElement.classList.add(t.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},t.prototype.addKeyDownListeners=function(e){var t=this;this.addManagedListener(e,"keydown",(function(e){e.defaultPrevented||Re(e)||(t.callbacks.shouldStopEventPropagation(e)?Ee(e):e.key===xr.TAB?t.callbacks.onTabKeyDown(e):t.callbacks.handleKeyDown&&t.callbacks.handleKeyDown(e))}))},t.FOCUS_MANAGED_CLASS="ag-focus-managed",wi([U("focusService")],t.prototype,"focusService",void 0),wi([B],t.prototype,"postConstruct",null),t}(Le),Ei=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ri=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Oi=function(e){function t(t,o){var r=e.call(this)||this;return r.element=t,r.dragStartPosition={x:0,y:0},r.position={x:0,y:0},r.lastSize={width:-1,height:-1},r.positioned=!1,r.resizersAdded=!1,r.resizeListeners=[],r.boundaryEl=null,r.isResizing=!1,r.isMoving=!1,r.resizable={},r.movable=!1,r.currentResizer=null,r.config=Object.assign({},{popup:!1},o),r}return Ei(t,e),t.prototype.center=function(){var e=this.offsetParent,t=e.clientHeight,o=e.clientWidth/2-this.getWidth()/2,r=t/2-this.getHeight()/2;this.offsetElement(o,r)},t.prototype.initialisePosition=function(){var e=this.config,t=e.centered,o=e.forcePopupParentAsOffsetParent,r=e.minWidth,i=e.width,n=e.minHeight,s=e.height,a=e.x,l=e.y;this.offsetParent||this.setOffsetParent();var u=0,c=0,p=!!this.element.offsetParent;if(p){var d=this.findBoundaryElement(),h=window.getComputedStyle(d);if(null!=h.minWidth){var f=d.offsetWidth-this.element.offsetWidth;c=parseInt(h.minWidth,10)-f}if(null!=h.minHeight){var g=d.offsetHeight-this.element.offsetHeight;u=parseInt(h.minHeight,10)-g}}if(this.minHeight=n||u,this.minWidth=r||c,i&&this.setWidth(i),s&&this.setHeight(s),i&&s||this.refreshSize(),t)this.center();else if(a||l)this.offsetElement(a,l);else if(p&&o&&this.boundaryEl){var v=parseFloat(this.boundaryEl.style.top),y=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(y)?0:y,isNaN(v)?0:v)}this.positioned=!!this.offsetParent},t.prototype.isPositioned=function(){return this.positioned},t.prototype.getPosition=function(){return this.position},t.prototype.setMovable=function(e,t){if(this.config.popup&&e!==this.movable){this.movable=e;var o=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(o),this.moveElementDragListener=o):(this.dragService.removeDragSource(o),this.moveElementDragListener=void 0)}},t.prototype.setResizable=function(e){var t=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),"boolean"==typeof e){if(!1===e)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach((function(o){var r=!!e[o],i=t.getResizerElement(o),n={dragStartPixels:0,eElement:i,onDragStart:function(e){return t.onResizeStart(e,o)},onDragging:t.onResize.bind(t),onDragStop:function(e){return t.onResizeEnd(e,o)}};(r||!t.isAlive()&&!r)&&(r?(t.dragService.addDragSource(n),t.resizeListeners.push(n),i.style.pointerEvents="all"):i.style.pointerEvents="none",t.resizable[o]=r)}))},t.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},t.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var e=this.lastSize,t=e.height,o=e.width;-1!==o&&(this.element.style.width=o+"px"),-1!==t&&(this.element.style.height=t+"px")},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.setHeight=function(e){var t=this.config,o=t.popup,r=t.forcePopupParentAsOffsetParent,i=this.element,n=!1;if("string"==typeof e&&-1!==e.indexOf("%"))Rr(i,e),e=ir(i),n=!0;else if(this.positioned){var s=this.element.getBoundingClientRect(),a=this.offsetParent.getBoundingClientRect();e=Math.max(this.minHeight,e);var l=this.offsetParent.clientHeight;if(l){var u=o?this.position.y:s.top,c=o?0:a.top,p=0;if(r&&this.boundaryEl)p=this.boundaryEl.getBoundingClientRect().bottom-s.bottom;var d=l+c-u-p;e>d&&(e=d)}}this.getHeight()!==e&&(n?(i.style.maxHeight="unset",i.style.minHeight="unset"):o?Rr(i,e):(i.style.height=e+"px",i.style.flex="0 0 auto",this.lastSize.height="number"==typeof e?e:parseFloat(e)))},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var t=this.element,o=this.config.popup,r=!1;if("string"==typeof e&&-1!==e.indexOf("%"))Er(t,e),e=nr(t),r=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var i=this.offsetParent.clientWidth,n=o?this.position.x:this.element.getBoundingClientRect().left;i&&e+n>i&&(e=i-n)}this.getWidth()!==e&&(r?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?Er(t,e):(t.style.width=e+"px",t.style.flex=" unset",this.lastSize.width="number"==typeof e?e:parseFloat(e)))},t.prototype.offsetElement=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var o=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:o,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:function(){return{x:e,y:t}}}),this.setPosition(parseFloat(o.style.left),parseFloat(o.style.top))},t.prototype.setPosition=function(e,t){this.position.x=e,this.position.y=t},t.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=e.e,o=e.isLeft,r=e.isTop,i=e.anywhereWithin,n=e.topBuffer,s=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(t,!!o,!!i,s)?0:s,movementY:this.shouldSkipY(t,!!r,n,a)?0:a}},t.prototype.shouldSkipX=function(e,t,o,r){var i=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:i.left,l=a<=0&&n.left>=e.clientX||n.right<=e.clientX&&n.right<=s.right;return!!l||(l=t?r<0&&e.clientX>a+n.left||r>0&&e.clientX<a+n.left:o?r<0&&e.clientX>s.right||r>0&&e.clientX<a+n.left:r<0&&e.clientX>s.right||r>0&&e.clientX<s.right)},t.prototype.shouldSkipY=function(e,t,o,r){void 0===o&&(o=0);var i=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:i.top,l=a<=0&&n.top>=e.clientY||n.bottom<=e.clientY&&n.bottom<=s.bottom;return!!l||(l=t?r<0&&e.clientY>a+n.top+o||r>0&&e.clientY<a+n.top:r<0&&e.clientY>s.bottom||r>0&&e.clientY<s.bottom)},t.prototype.createResizeMap=function(){var e=this.element;this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},t.prototype.addResizers=function(){if(!this.resizersAdded){var e=this.element;if(e){var t=(new DOMParser).parseFromString('<div class="ag-resizer-wrapper">\n <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n </div>',"text/html").body;e.appendChild(t.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},t.prototype.removeResizers=function(){this.resizerMap=void 0;var e=this.element.querySelector(".ag-resizer-wrapper");e&&this.element.removeChild(e),this.resizersAdded=!1},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");var o=this.config,r=o.popup,i=o.forcePopupParentAsOffsetParent;r||i||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.getSiblings=function(){var e=this.element.parentElement;return e?Array.prototype.slice.call(e.children).filter((function(e){return!e.classList.contains("ag-hidden")})):null},t.prototype.getMinSizeOfSiblings=function(){for(var e=this.getSiblings()||[],t=0,o=0,r=0;r<e.length;r++){var i=e[r],n=!!i.style.flex&&"0 0 auto"!==i.style.flex;if(i!==this.element){var s=this.minHeight||0,a=this.minWidth||0;if(n){var l=window.getComputedStyle(i);l.minHeight&&(s=parseInt(l.minHeight,10)),l.minWidth&&(a=parseInt(l.minWidth,10))}else s=i.offsetHeight,a=i.offsetWidth;t+=s,o+=a}}return{height:t,width:o}},t.prototype.applySizeToSiblings=function(e){var t=null,o=this.getSiblings();if(o){for(var r=0;r<o.length;r++){var i=o[r];i!==t&&(e?i.style.height=i.offsetHeight+"px":i.style.width=i.offsetWidth+"px",i.style.flex="0 0 auto",i===this.element&&(t=o[r+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}},t.prototype.isResizable=function(){return Object.values(this.resizable).some((function(e){return e}))},t.prototype.onResize=function(e){if(this.isResizing&&this.currentResizer){var t=this.config,o=t.popup,r=t.forcePopupParentAsOffsetParent,i=this.currentResizer,n=i.isTop,s=i.isRight,a=i.isBottom,l=i.isLeft,u=s||l,c=a||n,p=this.calculateMouseMovement({e:e,isLeft:l,isTop:n}),d=p.movementX,h=p.movementY,f=this.position.x,g=this.position.y,v=0,y=0;if(u&&d){var m=l?-1:1,C=this.getWidth(),w=C+d*m,S=!1;l&&(f+(v=C-w)<=0||w<=this.minWidth)&&(S=!0,v=0),S||this.setWidth(w)}if(c&&h){m=n?-1:1;var E=this.getHeight(),R=E+h*m,O=!1;n?(g+(y=E-R)<=0||R<=this.minHeight)&&(O=!0,y=0):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&E<R&&this.getMinSizeOfSiblings().height+R>this.element.parentElement.offsetHeight&&(O=!0),O||this.setHeight(R)}this.updateDragStartPosition(e.clientX,e.clientY),((o||r)&&v||y)&&this.offsetElement(f+v,g+y)}},t.prototype.onResizeEnd=function(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var o={type:"resize",api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi};this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchEvent(o)},t.prototype.refreshSize=function(){var e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))},t.prototype.onMoveStart=function(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var t,o=this.position,r=o.x,i=o.y;this.config.calculateTopBuffer&&(t=this.config.calculateTopBuffer());var n=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:t}),s=n.movementX,a=n.movementY;this.offsetElement(r+s,i+a),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},t.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},t.prototype.findBoundaryElement=function(){for(var e=this.element;e;){if("static"!==window.getComputedStyle(e).position)return e;e=e.parentElement}return this.element},t.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.clearResizeListeners(),this.removeResizers()},Ri([U("popupService")],t.prototype,"popupService",void 0),Ri([U("dragService")],t.prototype,"dragService",void 0),t}(Le),bi=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ti=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Pi=function(e){function t(t){var o=e.call(this)||this;return o.filterNameKey=t,o.applyActive=!1,o.hidePopup=null,o.debouncePending=!1,o.appliedModel=null,o}return bi(t,e),t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new Si(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new Oi(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)},t.prototype.handleKeyDown=function(e){},t.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.resetTemplate=function(e){var t=this.getGui();t&&t.removeEventListener("submit",this.onFormSubmit);var o='\n <form class="ag-filter-wrapper">\n <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper" ref="eFilterBody">\n '+this.createBodyTemplate()+"\n </div>\n </form>";this.setTemplate(o,e),(t=this.getGui())&&t.addEventListener("submit",this.onFormSubmit)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},t.prototype.init=function(e){var t=this;this.setParams(e),this.resetUiToDefaults(!0).then((function(){t.updateUiVisibility(),t.setupOnBtApplyDebounce()}))},t.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,t=this.providedFilterParams.buttons;if(!(!t||t.length<1||this.isReadOnly())){var o=document.createElement("div");o.classList.add("ag-filter-apply-panel");zr(t).forEach((function(t){return function(t){var r,i;switch(t){case"apply":r=e.translate("applyFilter"),i=function(t){return e.onBtApply(!1,!1,t)};break;case"clear":r=e.translate("clearFilter"),i=function(){return e.onBtClear()};break;case"reset":r=e.translate("resetFilter"),i=function(){return e.onBtReset()};break;case"cancel":r=e.translate("cancelFilter"),i=function(t){e.onBtCancel(t)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var n=dr('<button\n type="'+("apply"===t?"submit":"button")+'"\n ref="'+t+'FilterButton"\n class="ag-standard-button ag-filter-apply-panel-button"\n >'+r+"\n </button>");o.appendChild(n),e.addManagedListener(n,"click",i)}(t)})),this.getGui().appendChild(o)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=this,o=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),r=M(this.checkApplyDebounce.bind(this),o);this.onBtApplyDebounce=function(){e.debouncePending=!0,r()}},t.prototype.checkApplyDebounce=function(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())},t.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},t.prototype.setModel=function(e){var t=this;return(null!=e?this.setModelIntoUi(e):this.resetUiToDefaults()).then((function(){t.updateUiVisibility(),t.applyModel("api")}))},t.prototype.onBtCancel=function(e){var t=this;this.resetUiToActiveModel(this.getModel(),(function(){t.providedFilterParams.closeOnApply&&t.close(e)}))},t.prototype.resetUiToActiveModel=function(e,t){var o=this,r=function(){o.onUiChanged(!1,"prevent"),null==t||t()};null!=e?this.setModelIntoUi(e).then(r):this.resetUiToDefaults().then(r)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then((function(){return e.onUiChanged()}))},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(e){var t=this.getModelFromUi();if(!this.isModelValid(t))return!1;var o=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(o,t)},t.prototype.isModelValid=function(e){return!0},t.prototype.onFormSubmit=function(e){e.preventDefault()},t.prototype.onBtApply=function(e,t,o){void 0===e&&(e=!1),void 0===t&&(t=!1),o&&o.preventDefault(),this.applyModel(t?"rowDataUpdated":"ui")&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t}),this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!t&&this.close(o)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var t,o=e,r=o&&o.key;"Enter"!==r&&"Space"!==r||(t={keyboardEvent:o}),this.hidePopup(t),this.hidePopup=null}},t.prototype.onUiChanged=function(e,t){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){var o=this.isModelValid(this.getModelFromUi());$o(this.getRefElement("applyFilterButton"),!o)}e&&!t||"immediately"===t?this.onBtApply(e):(this.applyActive||t)&&"debounce"!==t||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){"floatingFilter"===(null==e?void 0:e.container)?(this.positionableFeature.restoreLastSize(),this.positionableFeature.setResizable(this.gridOptionsService.is("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),null!=e&&(this.hidePopup=e.hidePopup)},t.prototype.afterGuiDetached=function(){this.checkApplyDebounce()},t.getDebounceMs=function(e,o){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=e.debounceMs?e.debounceMs:o},t.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.destroy=function(){var t=this.getGui();t&&t.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,e.prototype.destroy.call(this)},t.prototype.translate=function(e){return this.localeService.getLocaleTextFunc()(e,yi[e])},t.prototype.getCellValue=function(e){var t=this.providedFilterParams,o=t.api,r=t.colDef,i=t.column,n=t.columnApi,s=t.context;return this.providedFilterParams.valueGetter({api:o,colDef:r,column:i,columnApi:n,context:s,data:e.data,getValue:function(t){return e.data[t]},node:e})},t.prototype.getPositionableElement=function(){return this.eFilterBody},Ti([U("rowModel")],t.prototype,"rowModel",void 0),Ti([ui("eFilterBody")],t.prototype,"eFilterBody",void 0),Ti([B],t.prototype,"postConstruct",null),t}(li),Di=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),_i=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ai=function(e){function t(t,o){var r=e.call(this,o)||this;return r.labelSeparator="",r.labelAlignment="left",r.disabled=!1,r.label="",r.config=t||{},r}return Di(t,e),t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,t=e.labelSeparator,o=e.label,r=e.labelWidth,i=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=o&&this.setLabel(o),null!=r&&this.setLabelWidth(r),this.setLabelAlignment(i||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){ur(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(Jo(this.eLabel,!1),Vt(this.eLabel,"presentation")):(Jo(this.eLabel,!0),Vt(this.eLabel,null))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},t.prototype.setLabelAlignment=function(e){var t=this.getGui().classList;return t.toggle("ag-label-align-left","left"===e),t.toggle("ag-label-align-right","right"===e),t.toggle("ag-label-align-top","top"===e),this},t.prototype.setLabelEllipsis=function(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this},t.prototype.setLabelWidth=function(e){return null==this.label||Sr(this.eLabel,e),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return $o(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},_i([B],t.prototype,"postConstruct",null),t}(li),Ni=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Mi=function(e){function t(t,o,r){var i=e.call(this,t,o)||this;return i.className=r,i}return Ni(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},t.prototype.onValueChange=function(e){var o=this;return this.addManagedListener(this,t.EVENT_CHANGED,(function(){return e(o.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return Er(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,o){return this.value===e||(this.previousValue=this.value,this.value=e,o||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.EVENT_CHANGED="valueChange",t}(Ai),Fi=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Li=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},xi=function(e){function o(t,o,r,i){var n=e.call(this,t,'<div class="ag-picker-field" role="presentation">\n <div ref="eLabel"></div>\n <div ref="eWrapper"\n class="ag-wrapper ag-picker-field-wrapper"\n tabIndex="-1"\n aria-expanded="false"\n '+(i?'role="'+i+'"':"")+'\n >\n <div ref="eDisplayField" class="ag-picker-field-display"></div>\n <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n </div>\n </div>',o)||this;return n.pickerIcon=r,n.isPickerDisplayed=!1,n.isDestroyingPicker=!1,n.skipClick=!1,n}return Fi(o,e),o.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var o=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",o),Kt(this.eWrapper,o);var r=function(){t.skipClick?t.skipClick=!1:t.isDisabled()||(t.pickerComponent=t.showPicker())},i=this.getGui();if(this.addManagedListener(i,"mousedown",(function(e){!t.skipClick&&t.pickerComponent&&t.pickerComponent.isAlive()&&pr(t.pickerComponent.getGui())&&i.contains(e.target)&&(t.skipClick=!0)})),this.addManagedListener(i,"keydown",(function(e){switch(e.key){case xr.UP:case xr.DOWN:case xr.ENTER:case xr.SPACE:r();case xr.ESCAPE:t.isPickerDisplayed&&e.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",r),this.addManagedListener(this.eLabel,"click",r),this.pickerIcon){var n=Fr(this.pickerIcon,this.gridOptionsService);n&&this.eIcon.appendChild(n)}},o.prototype.refreshLabel=function(){t(this.getLabel())?Ut(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},o.prototype.setAriaLabel=function(e){return Wt(this.eWrapper,e),this},o.prototype.setInputWidth=function(e){return Sr(this.eWrapper,e),this},o.prototype.getFocusableElement=function(){return this.eWrapper},Li([ui("eLabel")],o.prototype,"eLabel",void 0),Li([ui("eWrapper")],o.prototype,"eWrapper",void 0),Li([ui("eDisplayField")],o.prototype,"eDisplayField",void 0),Li([ui("eIcon")],o.prototype,"eIcon",void 0),o}(Mi),Ii=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Gi=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Hi=function(e){function t(t){void 0===t&&(t="default");var o=e.call(this,'<div class="ag-list ag-'+t+'-list" role="listbox"></div>')||this;return o.cssIdentifier=t,o.options=[],o.itemEls=[],o}return Ii(t,e),t.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var t=e.key;switch(t){case xr.ENTER:if(this.highlightedEl){var o=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(o)}else this.setValue(this.getValue());break;case xr.DOWN:case xr.UP:var r=t===xr.DOWN,i=void 0;if(e.preventDefault(),this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl)+(r?1:-1);n=Math.min(Math.max(n,0),this.itemEls.length-1),i=this.itemEls[n]}else i=this.itemEls[r?0:this.itemEls.length-1];this.highlightItem(i)}},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){var t=e.value,o=ht(e.text||t);return this.options.push({value:t,text:o}),this.renderOption(t,o),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach((function(t,o){eo(t,o+1),$t(t,e.length)}))},t.prototype.renderOption=function(e,t){var o=this,r=document.createElement("div");Vt(r,"option"),r.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),r.innerHTML="<span>"+t+"</span>",r.tabIndex=-1,this.itemEls.push(r),this.addManagedListener(r,"mouseover",(function(){return o.highlightItem(r)})),this.addManagedListener(r,"mouseleave",(function(){return o.clearHighlighted()})),this.addManagedListener(r,"click",(function(){return o.setValue(e)})),this.getGui().appendChild(r)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var o=this.options.findIndex((function(t){return t.value===e}));if(-1!==o){var r=this.options[o];this.value=r.value,this.displayValue=null!=r.text?r.text:r.value,this.highlightItem(this.itemEls[o]),t||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var t=this.options.findIndex((function(t){return t.value===e.value}));-1!==t&&this.highlightItem(this.itemEls[t])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(t.ACTIVE_CLASS),uo(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),uo(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:Mi.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",Gi([B],t.prototype,"init",null),t}(li),Vi=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ki=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Bi=function(e){function t(t){return e.call(this,t,"ag-select","smallDown","listbox")||this}return Vi(t,e),t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new Hi("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,Hi.EVENT_ITEM_SELECTED,(function(){e.hideList&&e.hideList(),e.dispatchEvent({type:t.EVENT_ITEM_SELECTED})})),this.listComponent.addManagedListener(this.listComponent,Mi.EVENT_CHANGED,(function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()}))},t.prototype.showPicker=function(){var e=this,t=this.listComponent.getGui(),o=this.gridOptionsService.getDocument(),r=this.addManagedListener(o.body,"wheel",(function(o){!t.contains(o.target)&&e.hideList&&e.hideList()})),i=this.addManagedListener(t,"focusout",(function(o){!t.contains(o.relatedTarget)&&e.hideList&&e.hideList()})),n=this.localeService.getLocaleTextFunc(),s=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,i(),r(),e.isAlive()&&(Jt(e.eWrapper,!1),e.getFocusableElement().focus())},ariaLabel:n("ariaLabelSelectField","Select Field")});return s&&(this.hideList=s.hideFunc),this.isPickerDisplayed=!0,Sr(t,nr(this.eWrapper)),Jt(this.eWrapper,!0),t.style.maxHeight=or(this.popupService.getPopupParent())+"px",t.style.position="absolute",this.popupService.positionPopupByComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:t,position:"under",keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){return this.listComponent.addOption(e),this},t.prototype.setValue=function(t,o,r){return this.value===t?this:(r||this.listComponent.setValue(t,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,o)))},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),e.prototype.destroy.call(this)},t.EVENT_ITEM_SELECTED="selectedItem",ki([U("popupService")],t.prototype,"popupService",void 0),ki([B],t.prototype,"init",null),t}(xi),ji=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Wi=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ui=function(e){function o(t,o,r,i){void 0===r&&(r="text"),void 0===i&&(i="input");var n=e.call(this,t,'\n <div role="presentation">\n <div ref="eLabel" class="ag-input-field-label"></div>\n <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n <'+i+' ref="eInput" class="ag-input-field-input"></'+i+">\n </div>\n </div>",o)||this;return n.inputType=r,n.displayFieldTag=i,n}return ji(o,e),o.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+"-label"),this.eWrapper.classList.add(this.className+"-input-wrapper"),this.eInput.classList.add(this.className+"-input"),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var t=this.config,o=t.width,r=t.value;null!=o&&this.setWidth(o),null!=r&&this.setValue(r),this.addInputListeners()},o.prototype.refreshLabel=function(){t(this.getLabel())?Ut(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},o.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",(function(t){return e.setValue(t.target.value)}))},o.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},o.prototype.getInputElement=function(){return this.eInput},o.prototype.setInputWidth=function(e){return Sr(this.eWrapper,e),this},o.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},o.prototype.getFocusableElement=function(){return this.eInput},o.prototype.setMaxLength=function(e){return this.eInput.maxLength=e,this},o.prototype.setInputPlaceholder=function(e){return Dr(this.eInput,"placeholder",e),this},o.prototype.setInputAriaLabel=function(e){return Wt(this.eInput,e),this},o.prototype.setDisabled=function(t){return $o(this.eInput,t),e.prototype.setDisabled.call(this,t)},Wi([ui("eLabel")],o.prototype,"eLabel",void 0),Wi([ui("eWrapper")],o.prototype,"eWrapper",void 0),Wi([ui("eInput")],o.prototype,"eInput",void 0),o}(Mi),zi=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ki=function(e){function t(t,o,r){void 0===o&&(o="ag-checkbox"),void 0===r&&(r="checkbox");var i=e.call(this,t,o,r)||this;return i.labelAlignment="right",i.selected=!1,i.readOnly=!1,i.passive=!1,i}return zi(t,e),t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return this.eWrapper.classList.toggle("ag-disabled",t),e.prototype.setDisabled.call(this,t)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this},t.prototype.setName=function(e){return this.getInputElement().name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,t){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"==typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,o,r){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:o,event:r});var i=this.getInputElement(),n={type:ke.EVENT_CHECKBOX_CHANGED,id:i.id,name:i.name,selected:e,previousValue:o};this.eventService.dispatchEvent(n)},t.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var t=this.isSelected(),o=this.selected=e.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,t,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)},t}(Ui),Yi=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),qi=function(e){function t(t){return e.call(this,t,"ag-radio-button","radio")||this}return Yi(t,e),t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},t.prototype.addInputListeners=function(){e.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,ke.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},t.prototype.onChange=function(e){e.selected&&e.name&&this.eInput.name&&this.eInput.name===e.name&&e.id&&this.eInput.id!==e.id&&this.setValue(!1,!0)},t}(Ki),Qi=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Xi=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},Ji=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Xi(arguments[t]));return e},Zi=function(){function e(e,t){this.localeService=e,this.optionsFactory=t}return e.prototype.getModelAsString=function(e){var t=this;if(!e)return null;var o=null!=e.operator,r=this.localeService.getLocaleTextFunc();if(o){var i=e,n=i.conditions;if(!n)n=[i.condition1,i.condition2];var s=n.map((function(e){return t.getModelAsString(e)})),a="AND"===i.operator?"andCondition":"orCondition";return s.join(" "+r(a,yi[a])+" ")}if(e.type===$i.BLANK||e.type===$i.NOT_BLANK)return r(e.type,e.type);var l=e,u=this.optionsFactory.getCustomOption(l.type),c=u||{},p=c.displayKey,d=c.displayName,h=c.numberOfInputs;return p&&d&&0===h?(r(p,d),d):this.conditionToString(l,u)},e}(),$i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.eTypes=[],t.eJoinOperatorPanels=[],t.eJoinOperatorsAnd=[],t.eJoinOperatorsOr=[],t.eConditionBodies=[],t.listener=function(){return t.onUiChanged()},t.lastUiCompletePosition=null,t.joinOperatorId=0,t}return Qi(t,e),t.prototype.getNumberOfInputs=function(e){var o=this.optionsFactory.getCustomOption(e);if(o){var r=o.numberOfInputs;return null!=r?r:1}var i=[t.EMPTY,t.NOT_BLANK,t.BLANK];return e&&i.indexOf(e)>=0?0:e===t.IN_RANGE?2:1},t.prototype.onFloatingFilterChanged=function(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){var t=this;this.eTypes.forEach((function(o,r){0===r?o.setValue(e,!0):o.setValue(t.optionsFactory.getDefaultOption(),!0)}))},t.prototype.getModelFromUi=function(){var e=this.getUiCompleteConditions();return 0===e.length?null:this.maxNumConditions>1&&e.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:e[0],condition2:e[1],conditions:e}:e[0]},t.prototype.getConditionTypes=function(){return this.eTypes.map((function(e){return e.getValue()}))},t.prototype.getConditionType=function(e){return this.eTypes[e].getValue()},t.prototype.getJoinOperator=function(){return 0===this.eJoinOperatorsOr.length?this.defaultJoinOperator:!0===this.eJoinOperatorsOr[0].getValue()?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){var o=this;if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var r,i=!e.operator,n=!t.operator;if(!i&&n||i&&!n)return!1;if(i){var s=e,a=t;r=this.areSimpleModelsEqual(s,a)}else{var l=e,u=t;r=l.operator===u.operator&&ce(l.conditions,u.conditions,(function(e,t){return o.areSimpleModelsEqual(e,t)}))}return r},t.prototype.setModelIntoUi=function(e){var t=this;if(e.operator){var o=e;o.conditions||(o.conditions=[o.condition1,o.condition2]);var r=this.validateAndUpdateConditions(o.conditions),i=this.getNumConditions();if(r<i)this.removeConditionsAndOperators(r);else if(r>i)for(var n=i;n<r;n++)this.createJoinOperatorPanel(),this.createOption();var s="OR"===o.operator;this.eJoinOperatorsAnd.forEach((function(e){return e.setValue(!s,!0)})),this.eJoinOperatorsOr.forEach((function(e){return e.setValue(s,!0)})),o.conditions.forEach((function(e,o){t.eTypes[o].setValue(e.type,!0),t.setConditionIntoUi(e,o)}))}else{var a=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(a.type,!0),this.setConditionIntoUi(a,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),Zr.resolve()},t.prototype.validateAndUpdateConditions=function(e){var t=e.length;return t>this.maxNumConditions&&(e.splice(this.maxNumConditions),O((function(){return console.warn('AG Grid: Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.')}),"simpleFilterSetModelMaxNumConditions"),t=this.maxNumConditions),t},t.prototype.doesFilterPass=function(e){var t,o=this,r=this.getModel();if(null==r)return!0;var i=r.operator,n=[];if(i){var s=r;n.push.apply(n,Ji(null!==(t=s.conditions)&&void 0!==t?t:[]))}else n.push(r);return n[i&&"OR"===i?"some":"every"]((function(t){return o.individualConditionPasses(e,t)}))},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.setNumConditions(t),this.defaultJoinOperator=this.getDefaultJoinOperator(t.defaultJoinOperator),this.filterPlaceholder=t.filterPlaceholder,this.optionsFactory=new vi,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.createOption(),this.createMissingConditionsAndOperators()},t.prototype.setNumConditions=function(e){var t,o;null!=e.suppressAndOrCondition&&O((function(){return console.warn('AG Grid: Since v29.2 "filterParams.suppressAndOrCondition" is deprecated. Use "filterParams.maxNumConditions = 1" instead.')}),"simpleFilterSuppressAndOrCondition"),null!=e.alwaysShowBothConditions&&O((function(){return console.warn('AG Grid: Since v29.2 "filterParams.alwaysShowBothConditions" is deprecated. Use "filterParams.numAlwaysVisibleConditions = 2" instead.')}),"simpleFilterAlwaysShowBothConditions"),this.maxNumConditions=null!==(t=e.maxNumConditions)&&void 0!==t?t:e.suppressAndOrCondition?1:2,this.maxNumConditions<1&&(O((function(){return console.warn('AG Grid: "filterParams.maxNumConditions" must be greater than or equal to zero.')}),"simpleFilterMaxNumConditions"),this.maxNumConditions=1),this.numAlwaysVisibleConditions=null!==(o=e.numAlwaysVisibleConditions)&&void 0!==o?o:e.alwaysShowBothConditions?2:1,this.numAlwaysVisibleConditions<1&&(O((function(){return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.')}),"simpleFilterNumAlwaysVisibleConditions"),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(O((function(){return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".')}),"simpleFilterNumAlwaysVisibleGreaterThanMaxNumConditions"),this.numAlwaysVisibleConditions=this.maxNumConditions)},t.prototype.createOption=function(){var e=this,t=this.createManagedBean(new Bi);this.eTypes.push(t),t.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(t.getGui());var o=this.createValueElement();this.eConditionBodies.push(o),this.eFilterBody.appendChild(o),this.putOptionsIntoDropdown(t),this.resetType(t);var r=this.getNumConditions()-1;this.forEachPositionInput(r,(function(t){return e.resetInput(t)})),this.addChangedListeners(t,r)},t.prototype.createJoinOperatorPanel=function(){var e=document.createElement("div");this.eJoinOperatorPanels.push(e),e.classList.add("ag-filter-condition");var t=this.createJoinOperator(this.eJoinOperatorsAnd,e,"and"),o=this.createJoinOperator(this.eJoinOperatorsOr,e,"or");this.eFilterBody.appendChild(e);var r=this.eJoinOperatorPanels.length-1,i=this.joinOperatorId++;this.resetJoinOperatorAnd(t,r,i),this.resetJoinOperatorOr(o,r,i),this.isReadOnly()||(t.onValueChange(this.listener),o.onValueChange(this.listener))},t.prototype.createJoinOperator=function(e,t,o){var r=this.createManagedBean(new qi);return e.push(r),r.addCssClass("ag-filter-condition-operator"),r.addCssClass("ag-filter-condition-operator-"+o),t.appendChild(r.getGui()),r},t.prototype.getDefaultJoinOperator=function(e){return"AND"===e||"OR"===e?e:"AND"},t.prototype.putOptionsIntoDropdown=function(e){var t=this,o=this.optionsFactory.getFilterOptions();o.forEach((function(o){var r="string"==typeof o?t.createBoilerplateListOption(o):t.createCustomListOption(o);e.addOption(r)})),e.setDisabled(o.length<=1)},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var t=e.displayKey,o=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:o?this.localeService.getLocaleTextFunc()(o.displayKey,o.displayName):this.translate(t)}},t.prototype.isAllowTwoConditions=function(){return this.maxNumConditions>=2},t.prototype.createBodyTemplate=function(){return""},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)},t.prototype.updateNumConditions=function(){for(var e,t=-1,o=!0,r=0;r<this.getNumConditions();r++)this.isConditionUiComplete(r)?t=r:o=!1;if(this.shouldAddNewConditionAtEnd(o))this.createJoinOperatorPanel(),this.createOption();else{var i=null!==(e=this.lastUiCompletePosition)&&void 0!==e?e:this.getNumConditions()-2;if(t<i){this.removeConditionsAndOperators(i+1);var n=t+1,s=i-n;s>0&&this.removeConditionsAndOperators(n,s),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=t},t.prototype.updateConditionStatusesAndValues=function(e,t){var o=this;this.eTypes.forEach((function(t,r){var i=o.isConditionDisabled(r,e);(1===r?[t,o.eJoinOperatorPanels[0],o.eJoinOperatorsAnd[0],o.eJoinOperatorsOr[0]]:[t]).forEach((function(e){e instanceof Ui||e instanceof Bi?e.setDisabled(i):$o(e,i)}))})),this.eConditionBodies.forEach((function(e,t){Jo(e,o.isConditionBodyVisible(t))}));var r="OR"===(null!=t?t:this.getJoinOperator());this.eJoinOperatorsAnd.forEach((function(e,t){e.setValue(!r,!0)})),this.eJoinOperatorsOr.forEach((function(e,t){e.setValue(r,!0)})),this.forEachInput((function(t,r,i,n){o.setElementDisplayed(t,r<n),o.setElementDisabled(t,o.isConditionDisabled(i,e))})),this.resetPlaceholder()},t.prototype.shouldAddNewConditionAtEnd=function(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()},t.prototype.removeConditionsAndOperators=function(e,t){if(!(e>=this.getNumConditions())){this.removeComponents(this.eTypes,e,t),this.removeElements(this.eConditionBodies,e,t),this.removeValueElements(e,t);var o=Math.max(e-1,0);this.removeElements(this.eJoinOperatorPanels,o,t),this.removeComponents(this.eJoinOperatorsAnd,o,t),this.removeComponents(this.eJoinOperatorsOr,o,t)}},t.prototype.removeElements=function(e,t,o){this.removeItems(e,t,o).forEach((function(e){return cr(e)}))},t.prototype.removeComponents=function(e,t,o){var r=this;this.removeItems(e,t,o).forEach((function(e){cr(e.getGui()),r.destroyBean(e)}))},t.prototype.removeItems=function(e,t,o){return null==o?e.splice(t):e.splice(t,o)},t.prototype.afterGuiAttached=function(t){if(e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),!t||!t.suppressFocus&&!this.isReadOnly()){var o=this.getInputs(0)[0];if(!o)return;o instanceof Ui&&o.getInputElement().focus()}},t.prototype.afterGuiDetached=function(){e.prototype.afterGuiDetached.call(this);var t=this.getModel();this.areModelsEqual(t,this.getModelFromUi())||this.resetUiToActiveModel(t);for(var o=-1,r=-1,i=!1,n=this.getJoinOperator(),s=this.getNumConditions()-1;s>=0;s--)if(this.isConditionUiComplete(s))-1===o&&(o=s,r=s);else{var a=s<o;(s>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(s-1)||a)&&(this.removeConditionsAndOperators(s,1),i=!0,a&&r--)}var l=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),l=!0),this.shouldAddNewConditionAtEnd(r===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),l=!0),l&&this.updateConditionStatusesAndValues(r,n),i&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=r},t.prototype.getPlaceholderText=function(e,t){var o=this.translate(e);if(T(this.filterPlaceholder)){var r=this.filterPlaceholder,i=this.eTypes[t].getValue();o=r({filterOptionKey:i,filterOption:this.translate(i),placeholder:o})}else"string"==typeof this.filterPlaceholder&&(o=this.filterPlaceholder);return o},t.prototype.resetPlaceholder=function(){var e=this,t=this.localeService.getLocaleTextFunc();this.forEachInput((function(o,r,i,n){if(o instanceof Ui){var s=0===r&&n>1?"inRangeStart":0===r?"filterOoo":"inRangeEnd",a=0===r&&n>1?t("ariaFilterFromValue","Filter from value"):0===r?t("ariaFilterValue","Filter Value"):t("ariaFilterToValue","Filter to Value");o.setInputPlaceholder(e.getPlaceholderText(s,i)),o.setInputAriaLabel(a)}}))},t.prototype.setElementValue=function(e,t){e instanceof Ui&&e.setValue(null!=t?String(t):null,!0)},t.prototype.setElementDisplayed=function(e,t){e instanceof li&&Jo(e.getGui(),t)},t.prototype.setElementDisabled=function(e,t){e instanceof li&&$o(e.getGui(),t)},t.prototype.attachElementOnChange=function(e,t){e instanceof Ui&&e.onValueChange(t)},t.prototype.forEachInput=function(e){var t=this;this.getConditionTypes().forEach((function(o,r){t.forEachPositionTypeInput(r,o,e)}))},t.prototype.forEachPositionInput=function(e,t){var o=this.getConditionType(e);this.forEachPositionTypeInput(e,o,t)},t.prototype.forEachPositionTypeInput=function(e,t,o){for(var r=this.getNumberOfInputs(t),i=this.getInputs(e),n=0;n<i.length;n++){var s=i[n];null!=s&&o(s,n,e,r)}},t.prototype.isConditionDisabled=function(e,t){return!!this.isReadOnly()||0!==e&&e>t+1},t.prototype.isConditionBodyVisible=function(e){var t=this.getConditionType(e);return this.getNumberOfInputs(t)>0},t.prototype.isConditionUiComplete=function(e){return!(e>=this.getNumConditions())&&(this.getConditionType(e)!==t.EMPTY&&!this.getValues(e).some((function(e){return null==e})))},t.prototype.getNumConditions=function(){return this.eTypes.length},t.prototype.getUiCompleteConditions=function(){for(var e=[],t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e},t.prototype.createMissingConditionsAndOperators=function(){if(!this.isReadOnly())for(var e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()},t.prototype.resetUiToDefaults=function(e){var t=this;return this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach((function(e){return t.resetType(e)})),this.eJoinOperatorsAnd.forEach((function(e,o){return t.resetJoinOperatorAnd(e,o,t.joinOperatorId+o)})),this.eJoinOperatorsOr.forEach((function(e,o){return t.resetJoinOperatorOr(e,o,t.joinOperatorId+o)})),this.joinOperatorId++,this.forEachInput((function(e){return t.resetInput(e)})),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,e||this.onUiChanged(),Zr.resolve()},t.prototype.resetType=function(e){var t=this.localeService.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.getDefaultOption(),!0).setAriaLabel(t).setDisabled(this.isReadOnly())},t.prototype.resetJoinOperatorAnd=function(e,t,o){this.resetJoinOperator(e,t,this.isDefaultOperator("AND"),this.translate("andCondition"),o)},t.prototype.resetJoinOperatorOr=function(e,t,o){this.resetJoinOperator(e,t,this.isDefaultOperator("OR"),this.translate("orCondition"),o)},t.prototype.resetJoinOperator=function(e,t,o,r,i){this.updateJoinOperatorDisabled(e.setValue(o,!0).setName("ag-simple-filter-and-or-"+this.getCompId()+"-"+i).setLabel(r),t)},t.prototype.updateJoinOperatorsDisabled=function(){var e=this;this.eJoinOperatorsAnd.forEach((function(t,o){return e.updateJoinOperatorDisabled(t,o)})),this.eJoinOperatorsOr.forEach((function(t,o){return e.updateJoinOperatorDisabled(t,o)}))},t.prototype.updateJoinOperatorDisabled=function(e,t){e.setDisabled(this.isReadOnly()||t>0)},t.prototype.resetInput=function(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())},t.prototype.setConditionIntoUi=function(e,t){var o=this,r=this.mapValuesFromModel(e);this.forEachInput((function(e,i,n,s){n===t&&o.setElementValue(e,null!=r[i]?r[i]:null)}))},t.prototype.setValueFromFloatingFilter=function(e){var t=this;this.forEachInput((function(o,r,i,n){t.setElementValue(o,0===r&&0===i?e:null)}))},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(e,t){var o=this;this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,(function(e){o.attachElementOnChange(e,o.listener)})))},t.prototype.individualConditionPasses=function(e,t){var o=this.getCellValue(e.node),r=this.mapValuesFromModel(t),i=this.optionsFactory.getCustomOption(t.type),n=this.evaluateCustomFilter(i,r,o);return null!=n?n:null==o?this.evaluateNullValue(t.type):this.evaluateNonNullValue(r,o,t,e)},t.prototype.evaluateCustomFilter=function(e,t,o){if(null!=e){var r=e.predicate;return null==r||t.some((function(e){return null==e}))?void 0:r(t,o)}},t.prototype.isBlank=function(e){return null==e||"string"==typeof e&&0===e.trim().length},t.EMPTY="empty",t.BLANK="blank",t.NOT_BLANK="notBlank",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",t}(Pi),en=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),tn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return en(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t},t.prototype.evaluateNullValue=function(e){switch(e){case t.EQUALS:case t.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case t.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case t.BLANK:return!0;case t.NOT_BLANK:return!1}return!1},t.prototype.evaluateNonNullValue=function(e,o,r){var i=this.comparator(),n=null!=e[0]?i(e[0],o):0;switch(r.type){case t.EQUALS:return 0===n;case t.NOT_EQUAL:return 0!==n;case t.GREATER_THAN:return n>0;case t.GREATER_THAN_OR_EQUAL:return n>=0;case t.LESS_THAN:return n<0;case t.LESS_THAN_OR_EQUAL:return n<=0;case t.IN_RANGE:var s=i(e[1],o);return this.scalarFilterParams.inRangeInclusive?n>=0&&s<=0:n>0&&s<0;case t.BLANK:return this.isBlank(o);case t.NOT_BLANK:return!this.isBlank(o);default:return console.warn('AG Grid: Unexpected type of filter "'+r.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}($i),on=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),rn=function(){return(rn=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},nn=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},sn=function(e){function t(t,o,r){var i=e.call(this,o,r)||this;return i.dateFilterParams=t,i}return on(t,e),t.prototype.conditionToString=function(e,t){var o=e.type,r=(t||{}).numberOfInputs,i=o==$i.IN_RANGE||2===r,n=Uo(e.dateFrom),s=Uo(e.dateTo),a=this.dateFilterParams.inRangeFloatingFilterDateFormat;return i?(null!==n?Wo(n,a):"null")+"-"+(null!==s?Wo(s,a):"null"):null!=n?Wo(n,a):""+o},t}(Zi),an=function(e){function t(){var t=e.call(this,"dateFilter")||this;return t.eConditionPanelsFrom=[],t.eConditionPanelsTo=[],t.dateConditionFromComps=[],t.dateConditionToComps=[],t.minValidYear=1e3,t.maxValidYear=1/0,t}return on(t,e),t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.dateConditionFromComps[0].afterGuiAttached(t)},t.prototype.mapValuesFromModel=function(e){var t=e||{},o=t.dateFrom,r=t.dateTo,i=t.type;return[o&&Uo(o)||null,r&&Uo(r)||null].slice(0,this.getNumberOfInputs(i))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return null==t||t<e?-1:t>e?1:0},t.prototype.setParams=function(t){this.dateFilterParams=t,e.prototype.setParams.call(this,t);var o=function(e,o){if(null!=t[e]){if(!isNaN(t[e]))return null==t[e]?o:Number(t[e]);console.warn("AG Grid: DateFilter "+e+" is not a number")}return o};this.minValidYear=o("minValidYear",1e3),this.maxValidYear=o("maxValidYear",1/0),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.filterModelFormatter=new sn(this.dateFilterParams,this.localeService,this.optionsFactory)},t.prototype.createDateCompWrapper=function(e){var t=this,o=new fi(this.getContext(),this.userComponentFactory,{onDateChanged:function(){return t.onUiChanged()},filterParams:this.dateFilterParams},e);return this.addDestroyFunc((function(){return o.destroy()})),o},t.prototype.setElementValue=function(e,t){e.setDate(t)},t.prototype.setElementDisplayed=function(e,t){e.setDisplayed(t)},t.prototype.setElementDisabled=function(e,t){e.setDisabled(t)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueElement=function(){var e=document.createElement("div");return e.classList.add("ag-filter-body"),this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e},t.prototype.createFromToElement=function(e,t,o,r){var i=document.createElement("div");i.classList.add("ag-filter-"+r),i.classList.add("ag-filter-date-"+r),t.push(i),e.appendChild(i),o.push(this.createDateCompWrapper(i))},t.prototype.removeValueElements=function(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),this.removeItems(this.eConditionPanelsFrom,e,t),this.removeItems(this.eConditionPanelsTo,e,t)},t.prototype.removeDateComps=function(e,t,o){this.removeItems(e,t,o).forEach((function(e){return e.destroy()}))},t.prototype.isConditionUiComplete=function(t){var o=this;if(!e.prototype.isConditionUiComplete.call(this,t))return!1;var r=!0;return this.forEachInput((function(e,i,n,s){var a;n!==t||!r||i>=s||(r=r&&(null!=(a=e.getDate())&&a.getUTCFullYear()>=o.minValidYear&&a.getUTCFullYear()<=o.maxValidYear))})),r},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var t=this.getConditionType(e),o={},r=this.getValues(e);return r.length>0&&(o.dateFrom=Bo(r[0])),r.length>1&&(o.dateTo=Bo(r[1])),rn({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},o)},t.prototype.resetPlaceholder=function(){var e=this.localeService.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),o=e("ariaFilterValue","Filter Value");this.forEachInput((function(e){e.setInputPlaceholder(t),e.setInputAriaLabel(o)}))},t.prototype.getInputs=function(e){return e>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[e],this.dateConditionToComps[e]]},t.prototype.getValues=function(e){var t=[];return this.forEachPositionInput(e,(function(e,o,r,i){o<i&&t.push(e.getDate())})),t},t.prototype.getModelAsString=function(e){var t;return null!==(t=this.filterModelFormatter.getModelAsString(e))&&void 0!==t?t:""},t.DEFAULT_FILTER_OPTIONS=[tn.EQUALS,tn.GREATER_THAN,tn.LESS_THAN,tn.NOT_EQUAL,tn.IN_RANGE,tn.BLANK,tn.NOT_BLANK],nn([U("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(tn),ln=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),un=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ln(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.isEventFromDataChange=function(e){return null==e?void 0:e.afterDataChange},t.prototype.getLastType=function(){return this.lastType},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setLastTypeFromModel=function(e){if(e){var t;if(e.operator)t=e.conditions[0];else t=e;this.lastType=t.type}else this.lastType=this.optionsFactory.getDefaultOption()},t.prototype.canWeEditAfterModelFromParentFilter=function(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;var t=e;return this.isTypeEditable(t.type)},t.prototype.init=function(e){this.optionsFactory=new vi,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!e.filterParams.readOnly;var t=this.isTypeEditable(this.lastType);this.setEditable(t)},t.prototype.doesFilterHaveSingleInput=function(e){var t=(this.optionsFactory.getCustomOption(e)||{}).numberOfInputs;return null==t||1==t},t.prototype.isTypeEditable=function(e){var t=[$i.IN_RANGE,$i.EMPTY,$i.BLANK,$i.NOT_BLANK];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&t.indexOf(e)<0},t}(li),cn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),pn=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},dn=function(e){function t(){return e.call(this,'\n <div class="ag-floating-filter-input" role="presentation">\n <ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>\n <div ref="eDateWrapper" style="display: flex;"></div>\n </div>')||this}return cn(t,e),t.prototype.getDefaultFilterOptions=function(){return an.DEFAULT_FILTER_OPTIONS},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.filterParams=t.filterParams,this.createDateComponent();var o=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(o("ariaDateFilterInput","Date Filter Input")),this.filterModelFormatter=new sn(this.filterParams,this.localeService,this.optionsFactory)},t.prototype.setEditable=function(e){Jo(this.eDateWrapper,e),Jo(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,o){if(!this.isEventFromFloatingFilter(o)&&!this.isEventFromDataChange(o)){e.prototype.setLastTypeFromModel.call(this,t);var r=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(r),r){if(t){var i=t;this.dateComp.setDate(Uo(i.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(t)),this.dateComp.setDate(null)}},t.prototype.onDateChanged=function(){var e=this,t=Bo(this.dateComp.getDate());this.params.parentFilterInstance((function(o){if(o){var r=Uo(t);o.onFloatingFilterChanged(e.getLastType()||null,r)}}))},t.prototype.createDateComponent=function(){var e=this,t=Pi.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),o={onDateChanged:M(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new fi(this.getContext(),this.userComponentFactory,o,this.eDateWrapper),this.addDestroyFunc((function(){return e.dateComp.destroy()}))},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},pn([U("userComponentFactory")],t.prototype,"userComponentFactory",void 0),pn([ui("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),pn([ui("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(un),hn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),fn=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},gn=function(e){function t(){return e.call(this,'\n <div class="ag-filter-filter">\n <ag-input-text-field class="ag-date-filter" ref="eDateInput"></ag-input-text-field>\n </div>')||this}return hn(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var t=this,o=this.gridOptionsService.getDocument(),r=this.eDateInput.getInputElement(),i=this.shouldUseBrowserDatePicker(e);i&&(r.type="date");var n=i&&So();this.addManagedListener(r,"mousedown",(function(){t.eDateInput.isDisabled()||n||r.focus()})),this.addManagedListener(r,"input",(function(r){r.target===o.activeElement&&(t.eDateInput.isDisabled()||e.onDateChanged())}));var s=e.filterParams||{},a=s.minValidYear,l=s.maxValidYear;a&&(r.min=a+"-01-01"),l&&(r.max=l+"-12-31")},t.prototype.getDate=function(){return Uo(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(Bo(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},t.prototype.afterGuiAttached=function(e){e&&e.suppressFocus||this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:Ro()||Oo()||So()&&Eo()>=14.1},fn([ui("eDateInput")],t.prototype,"eDateInput",void 0),t}(li),vn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),yn=function(e){function o(t,o,r){return void 0===o&&(o="ag-text-field"),void 0===r&&(r="text"),e.call(this,t,o,r)||this}return vn(o,e),o.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},o.prototype.setValue=function(o,r){var i=e.prototype.setValue.call(this,o,r);return this.eInput.value!==o&&(this.eInput.value=t(o)?o:""),i},o.prototype.preventDisallowedCharacters=function(){var e=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keypress",(function(t){t.ctrlKey||t.metaKey||t.key&&!e.test(t.key)&&t.preventDefault()})),this.addManagedListener(this.eInput,"paste",(function(t){var o,r=null===(o=t.clipboardData)||void 0===o?void 0:o.getData("text");r&&r.split("").some((function(t){return!e.test(t)}))&&t.preventDefault()}))},o}(Ui),mn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Cn=function(e){function t(t){return e.call(this,t,"ag-number-field","number")||this}return mn(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var e=parseFloat(t.eInput.value),o=isNaN(e)?"":t.normalizeValue(e.toString());t.value!==o&&t.setValue(o)})),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},t.prototype.onWheel=function(e){document.activeElement===this.eInput&&e.preventDefault()},t.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&t<this.min?e=this.min.toString():null!=this.max&&t>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var t=parseFloat(e).toFixed(this.precision);e=parseFloat(t).toString()}return e},t.prototype.setMin=function(e){return this.min===e||(this.min=e,Dr(this.eInput,"min",e)),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,Dr(this.eInput,"max",e)),this},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e||(this.step=e,Dr(this.eInput,"step",e)),this},t.prototype.setValue=function(t,o){if(null!=t&&(t=this.adjustPrecision(t))!=this.normalizeValue(t))return this;return e.prototype.setValue.call(this,t,o)},t}(yn),wn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Sn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wn(t,e),t.prototype.conditionToString=function(e,t){var o=(t||{}).numberOfInputs;return e.type==$i.IN_RANGE||2===o?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t}(Zi);function En(e){var t=(null!=e?e:{}).allowedCharPattern;return t||(Ro()?null:"\\d\\-\\.")}var Rn,On,bn,Tn=function(t){function o(){var e=t.call(this,"numberFilter")||this;return e.eValuesFrom=[],e.eValuesTo=[],e}return wn(o,t),o.prototype.mapValuesFromModel=function(e){var t=e||{},o=t.filter,r=t.filterTo,i=t.type;return[this.processValue(o),this.processValue(r)].slice(0,this.getNumberOfInputs(i))},o.prototype.getDefaultDebounceMs=function(){return 500},o.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:-1}},o.prototype.setParams=function(e){this.numberFilterParams=e,t.prototype.setParams.call(this,e),this.filterModelFormatter=new Sn(this.localeService,this.optionsFactory)},o.prototype.getDefaultFilterOptions=function(){return o.DEFAULT_FILTER_OPTIONS},o.prototype.createValueElement=function(){var e=En(this.numberFilterParams),t=document.createElement("div");return t.classList.add("ag-filter-body"),Vt(t,"presentation"),this.createFromToElement(t,this.eValuesFrom,"from",e),this.createFromToElement(t,this.eValuesTo,"to",e),t},o.prototype.createFromToElement=function(e,t,o,r){var i=this.createManagedBean(r?new yn({allowedCharPattern:r}):new Cn);i.addCssClass("ag-filter-"+o),i.addCssClass("ag-filter-filter"),t.push(i),e.appendChild(i.getGui())},o.prototype.removeValueElements=function(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)},o.prototype.getValues=function(e){var t=this,o=[];return this.forEachPositionInput(e,(function(e,r,i,n){r<n&&o.push(t.processValue(t.stringToFloat(e.getValue())))})),o},o.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},o.prototype.getFilterType=function(){return"number"},o.prototype.processValue=function(e){return null==e||isNaN(e)?null:e},o.prototype.stringToFloat=function(t){if("number"==typeof t)return t;var o=e(t);return null!=o&&""===o.trim()&&(o=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(o):null==o||"-"===o.trim()?null:parseFloat(o)},o.prototype.createCondition=function(e){var t=this.getConditionType(e),o={filterType:this.getFilterType(),type:t},r=this.getValues(e);return r.length>0&&(o.filter=r[0]),r.length>1&&(o.filterTo=r[1]),o},o.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},o.prototype.getModelAsString=function(e){var t;return null!==(t=this.filterModelFormatter.getModelAsString(e))&&void 0!==t?t:""},o.DEFAULT_FILTER_OPTIONS=[tn.EQUALS,tn.NOT_EQUAL,tn.LESS_THAN,tn.LESS_THAN_OR_EQUAL,tn.GREATER_THAN,tn.GREATER_THAN_OR_EQUAL,tn.IN_RANGE,tn.BLANK,tn.NOT_BLANK],o}(tn),Pn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Dn=function(){return(Dn=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},_n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pn(t,e),t.prototype.conditionToString=function(e,t){var o=(t||{}).numberOfInputs;return e.type==$i.IN_RANGE||2===o?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t}(Zi),An=function(t){function o(){var e=t.call(this,"textFilter")||this;return e.eValuesFrom=[],e.eValuesTo=[],e}return Pn(o,t),o.trimInput=function(e){var t=e&&e.trim();return""===t?e:t},o.prototype.getDefaultDebounceMs=function(){return 500},o.prototype.setParams=function(e){this.textFilterParams=e,t.prototype.setParams.call(this,e),this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?o.DEFAULT_FORMATTER:o.DEFAULT_LOWERCASE_FORMATTER),this.filterModelFormatter=new _n(this.localeService,this.optionsFactory)},o.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(Qr.doOnce((function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")}),"textCustomComparator.deprecated"),function(t){var o=t.filterOption,r=t.value,i=t.filterText;return e(o,r,i)}):this.textFilterParams.textMatcher||o.DEFAULT_MATCHER},o.prototype.createCondition=function(e){var t=this.getConditionType(e),o={filterType:this.getFilterType(),type:t},r=this.getValues(e);return r.length>0&&(o.filter=r[0]),r.length>1&&(o.filterTo=r[1]),o},o.prototype.getFilterType=function(){return"text"},o.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},o.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},o.prototype.getValues=function(t){var r=this,i=[];return this.forEachPositionInput(t,(function(t,n,s,a){if(n<a){var l=e(t.getValue()),u=(r.textFilterParams.trimInput?o.trimInput(l):l)||null;i.push(u),t.setValue(u,!0)}})),i},o.prototype.getDefaultFilterOptions=function(){return o.DEFAULT_FILTER_OPTIONS},o.prototype.createValueElement=function(){var e=document.createElement("div");return e.classList.add("ag-filter-body"),Vt(e,"presentation"),this.createFromToElement(e,this.eValuesFrom,"from"),this.createFromToElement(e,this.eValuesTo,"to"),e},o.prototype.createFromToElement=function(e,t,o){var r=this.createManagedBean(new yn);r.addCssClass("ag-filter-"+o),r.addCssClass("ag-filter-filter"),t.push(r),e.appendChild(r.getGui())},o.prototype.removeValueElements=function(e,t){this.removeComponents(this.eValuesFrom,e,t),this.removeComponents(this.eValuesTo,e,t)},o.prototype.mapValuesFromModel=function(e){var t=e||{},o=t.filter,r=t.filterTo,i=t.type;return[o||null,r||null].slice(0,this.getNumberOfInputs(i))},o.prototype.evaluateNullValue=function(e){var t=[$i.NOT_EQUAL,$i.NOT_CONTAINS,$i.BLANK];return!!e&&t.indexOf(e)>=0},o.prototype.evaluateNonNullValue=function(e,t,o,r){var i=this,n=e.map((function(e){return i.formatter(e)}))||[],s=this.formatter(t),a=this.textFilterParams,l=a.api,u=a.colDef,c=a.column,p=a.columnApi,d=a.context,h=a.textFormatter;if(o.type===$i.BLANK)return this.isBlank(t);if(o.type===$i.NOT_BLANK)return!this.isBlank(t);var f={api:l,colDef:u,column:c,columnApi:p,context:d,node:r.node,data:r.data,filterOption:o.type,value:s,textFormatter:h};return n.some((function(e){return i.matcher(Dn(Dn({},f),{filterText:e}))}))},o.prototype.getModelAsString=function(e){var t;return null!==(t=this.filterModelFormatter.getModelAsString(e))&&void 0!==t?t:""},o.DEFAULT_FILTER_OPTIONS=[$i.CONTAINS,$i.NOT_CONTAINS,$i.EQUALS,$i.NOT_EQUAL,$i.STARTS_WITH,$i.ENDS_WITH,$i.BLANK,$i.NOT_BLANK],o.DEFAULT_FORMATTER=function(e){return e},o.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},o.DEFAULT_MATCHER=function(e){var t=e.filterOption,r=e.value,i=e.filterText;if(null==i)return!1;switch(t){case o.CONTAINS:return r.indexOf(i)>=0;case o.NOT_CONTAINS:return r.indexOf(i)<0;case o.EQUALS:return r===i;case o.NOT_EQUAL:return r!=i;case o.STARTS_WITH:return 0===r.indexOf(i);case o.ENDS_WITH:var n=r.lastIndexOf(i);return n>=0&&n===r.length-i.length;default:return!1}},o}($i),Nn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Mn=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Fn=function(e){function t(t){var o=e.call(this)||this;return o.params=t,o}return Nn(t,e),t.prototype.setupGui=function(e){this.eFloatingFilterTextInput=this.createManagedBean(new yn(this.params.config)),this.eFloatingFilterTextInput.setInputAriaLabel(this.params.ariaLabel),e.appendChild(this.eFloatingFilterTextInput.getGui())},t.prototype.setEditable=function(e){this.eFloatingFilterTextInput.setDisabled(!e)},t.prototype.getValue=function(){return this.eFloatingFilterTextInput.getValue()},t.prototype.setValue=function(e,t){this.eFloatingFilterTextInput.setValue(e,t)},t.prototype.addValueChangedListener=function(e){var t=this.eFloatingFilterTextInput.getGui();this.addManagedListener(t,"input",e),this.addManagedListener(t,"keypress",e),this.addManagedListener(t,"keydown",e)},t}(Le),Ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nn(t,e),t.prototype.postConstruct=function(){this.setTemplate('\n <div class="ag-floating-filter-input" role="presentation" ref="eFloatingFilterInputContainer"></div>\n ')},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){this.isEventFromFloatingFilter(t)||this.isEventFromDataChange(t)||(this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(e)))},t.prototype.init=function(t){this.params=t;var o=this.columnModel.getDisplayNameForColumn(t.column,"header",!0)+" "+this.localeService.getLocaleTextFunc()("ariaFilterInput","Filter Input");if(this.floatingFilterInputService=this.createFloatingFilterInputService(o),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer),e.prototype.init.call(this,t),this.applyActive=Pi.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var r=Pi.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),i=M(this.syncUpWithParentFilter.bind(this),r);this.floatingFilterInputService.addValueChangedListener(i)}},t.prototype.syncUpWithParentFilter=function(e){var t=this,o=e.key===xr.ENTER;if(!this.applyActive||o){var r=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(r=An.trimInput(r),this.floatingFilterInputService.setValue(r,!0)),this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType()||null,r||null)}))}},t.prototype.setEditable=function(e){this.floatingFilterInputService.setEditable(e)},Mn([U("columnModel")],t.prototype,"columnModel",void 0),Mn([ui("eFloatingFilterInputContainer")],t.prototype,"eFloatingFilterInputContainer",void 0),Mn([B],t.prototype,"postConstruct",null),t}(un),xn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),In=function(e){function t(t){var o=e.call(this)||this;return o.params=t,o.numberInputActive=!0,o}return xn(t,e),t.prototype.setupGui=function(e){this.eFloatingFilterNumberInput=this.createManagedBean(new Cn),this.eFloatingFilterTextInput=this.createManagedBean(new yn),this.eFloatingFilterTextInput.setDisabled(!0),this.eFloatingFilterNumberInput.setInputAriaLabel(this.params.ariaLabel),this.eFloatingFilterTextInput.setInputAriaLabel(this.params.ariaLabel),e.appendChild(this.eFloatingFilterNumberInput.getGui()),e.appendChild(this.eFloatingFilterTextInput.getGui())},t.prototype.setEditable=function(e){this.numberInputActive=e,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)},t.prototype.getValue=function(){return this.getActiveInputElement().getValue()},t.prototype.setValue=function(e,t){this.getActiveInputElement().setValue(e,t)},t.prototype.getActiveInputElement=function(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput},t.prototype.addValueChangedListener=function(e){this.setupListeners(this.eFloatingFilterNumberInput.getGui(),e),this.setupListeners(this.eFloatingFilterTextInput.getGui(),e)},t.prototype.setupListeners=function(e,t){this.addManagedListener(e,"input",t),this.addManagedListener(e,"keypress",t),this.addManagedListener(e,"keydown",t)},t}(Le),Gn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xn(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.filterModelFormatter=new Sn(this.localeService,this.optionsFactory)},t.prototype.getDefaultFilterOptions=function(){return Tn.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(e){var t=En(this.params.filterParams);return t?this.createManagedBean(new Fn({config:{allowedCharPattern:t},ariaLabel:e})):this.createManagedBean(new In({ariaLabel:e}))},t}(Ln),Hn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Vn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Hn(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.filterModelFormatter=new _n(this.localeService,this.optionsFactory)},t.prototype.getDefaultFilterOptions=function(){return An.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(e){return this.createManagedBean(new Fn({ariaLabel:e}))},t}(Ln),kn=function(){function e(e,t){var o=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new Z,this.eElement=e,this.preventMouseClick=t;var r=this.onTouchStart.bind(this),i=this.onTouchMove.bind(this),n=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",r,{passive:!0}),this.eElement.addEventListener("touchmove",i,{passive:!0}),this.eElement.addEventListener("touchend",n,{passive:!1}),this.destroyFuncs.push((function(){o.eElement.removeEventListener("touchstart",r,{passive:!0}),o.eElement.removeEventListener("touchmove",i,{passive:!0}),o.eElement.removeEventListener("touchend",n,{passive:!1})}))}return e.prototype.getActiveTouch=function(e){for(var t=0;t<e.length;t++){if(e[t].identifier===this.touchStart.identifier)return e[t]}return null},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.onTouchStart=function(t){var o=this;if(!this.touching){this.touchStart=t.touches[0],this.touching=!0,this.moved=!1;var r=this.touchStart;window.setTimeout((function(){var i=o.touchStart===r;if(o.touching&&i&&!o.moved){o.moved=!0;var n={type:e.EVENT_LONG_TAP,touchStart:o.touchStart,touchEvent:t};o.eventService.dispatchEvent(n)}}),500)}},e.prototype.onTouchMove=function(e){if(this.touching){var t=this.getActiveTouch(e.touches);if(t)!jr(t,this.touchStart,4)&&(this.moved=!0)}},e.prototype.onTouchEnd=function(t){if(this.touching){if(!this.moved){var o={type:e.EVENT_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.checkForDoubleTap()}this.preventMouseClick&&t.cancelable&&t.preventDefault(),this.touching=!1}},e.prototype.checkForDoubleTap=function(){var t=(new Date).getTime();if(this.lastTapTime&&this.lastTapTime>0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var o={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.lastTapTime=null}else this.lastTapTime=t;else this.lastTapTime=t},e.prototype.destroy=function(){this.destroyFuncs.forEach((function(e){return e()}))},e.EVENT_TAP="tap",e.EVENT_DOUBLE_TAP="doubleTap",e.EVENT_LONG_TAP="longTap",e.DOUBLE_TAP_MILLIS=500,e}(),Bn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),jn=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Wn=function(e){function t(o){var r=e.call(this)||this;return o||r.setTemplate(t.TEMPLATE),r}return Bn(t,e),t.prototype.attachCustomElements=function(e,t,o,r,i){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=o,this.eSortMixed=r,this.eSortNone=i},t.prototype.setupSort=function(e,t){var o=this;void 0===t&&(t=!1),this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),!!this.column.getColDef().sortable&&(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedListener(this.eventService,ke.EVENT_SORT_CHANGED,(function(){return o.onSortChanged()})),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return o.onSortChanged()})),this.onSortChanged())},t.prototype.addInIcon=function(e,t,o){if(null!=t){var r=Fr(e,this.gridOptionsService,o);r&&t.appendChild(r)}},t.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},t.prototype.updateIcons=function(){var e=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){var t="asc"===e;Jo(this.eSortAsc,t,{skipAriaHidden:!0})}if(this.eSortDesc){var o="desc"===e;Jo(this.eSortDesc,o,{skipAriaHidden:!0})}if(this.eSortNone){var r=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.is("unSortIcon"),i=null==e;Jo(this.eSortNone,!r&&i,{skipAriaHidden:!0})}},t.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var t=this.column.getColDef().showRowGroup;this.gridOptionsService.isColumnsSortingCoupledToGroup()&&t&&(this.addManagedListener(this.eventService,ke.EVENT_SORT_CHANGED,(function(){return e.updateMultiSortIndicator()})),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return e.updateMultiSortIndicator()})),this.updateMultiSortIndicator())},t.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var e="mixed"===this.sortController.getDisplaySortForColumn(this.column);Jo(this.eSortMixed,e,{skipAriaHidden:!0})}},t.prototype.updateSortOrder=function(){var e,t=this;if(this.eSortOrder){var o=this.sortController.getColumnsWithSortingOrdered(),r=null!==(e=this.sortController.getDisplaySortIndexForColumn(this.column))&&void 0!==e?e:-1,i=o.some((function(e){var o;return null!==(o=t.sortController.getDisplaySortIndexForColumn(e))&&void 0!==o&&o})),n=r>=0&&i;Jo(this.eSortOrder,n,{skipAriaHidden:!0}),r>=0?this.eSortOrder.innerHTML=(r+1).toString():ur(this.eSortOrder)}},t.TEMPLATE='<span class="ag-sort-indicator-container">\n <span ref="eSortOrder" class="ag-sort-indicator-icon ag-sort-order ag-hidden" aria-hidden="true"></span>\n <span ref="eSortAsc" class="ag-sort-indicator-icon ag-sort-ascending-icon ag-hidden" aria-hidden="true"></span>\n <span ref="eSortDesc" class="ag-sort-indicator-icon ag-sort-descending-icon ag-hidden" aria-hidden="true"></span>\n <span ref="eSortMixed" class="ag-sort-indicator-icon ag-sort-mixed-icon ag-hidden" aria-hidden="true"></span>\n <span ref="eSortNone" class="ag-sort-indicator-icon ag-sort-none-icon ag-hidden" aria-hidden="true"></span>\n </span>',jn([ui("eSortOrder")],t.prototype,"eSortOrder",void 0),jn([ui("eSortAsc")],t.prototype,"eSortAsc",void 0),jn([ui("eSortDesc")],t.prototype,"eSortDesc",void 0),jn([ui("eSortMixed")],t.prototype,"eSortMixed",void 0),jn([ui("eSortNone")],t.prototype,"eSortNone",void 0),jn([U("columnModel")],t.prototype,"columnModel",void 0),jn([U("sortController")],t.prototype,"sortController",void 0),t}(li),Un=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),zn=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Kn=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return Un(o,e),o.prototype.destroy=function(){e.prototype.destroy.call(this)},o.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&(this.workOutShowMenu()==this.currentShowMenu&&(this.workOutSort()==this.currentSort&&(this.setDisplayName(e),!0)))},o.prototype.workOutTemplate=function(){var e=le(this.params.template,o.TEMPLATE);return e=e&&e.trim?e.trim():e},o.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},o.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var t=ht(this.currentDisplayName);this.eText&&(this.eText.innerHTML=t)}},o.prototype.setupIcons=function(e){this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},o.prototype.addInIcon=function(e,t,o){if(null!=t){var r=Fr(e,this.gridOptionsService,o);r&&t.appendChild(r)}},o.prototype.setupTap=function(){var e=this,o=this.gridOptionsService;if(!o.is("suppressTouch")){var r=new kn(this.getGui(),!0),i=o.is("suppressMenuHide"),n=i&&t(this.eMenu),s=n?new kn(this.eMenu,!0):r;if(this.params.enableMenu){var a=n?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(s,kn[a],(function(t){o.api.showColumnMenuAfterMouseClick(e.params.column,t.touchStart)}))}if(this.params.enableSorting){this.addManagedListener(r,kn.EVENT_TAP,(function(t){var o=t.touchStart.target;i&&e.eMenu.contains(o)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return r.destroy()})),n&&this.addDestroyFunc((function(){return s.destroy()}))}},o.prototype.workOutShowMenu=function(){var e=!this.gridOptionsService.is("suppressMenuHide"),t=To()&&e;return this.params.enableMenu&&!t},o.prototype.setMenu=function(){var e=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var t=this.gridOptionsService.is("suppressMenuHide");this.addManagedListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),this.eMenu.classList.toggle("ag-header-menu-always-show",t)}else cr(this.eMenu)},o.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},o.prototype.workOutSort=function(){return this.params.enableSorting},o.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new Wn(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),this.currentSort){var t="ctrl"===this.gridOptionsService.get("multiSortKey");this.addManagedListener(this.params.column,ie.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(o){var r=e.params.column.isMoving(),i=(new Date).getTime()-e.lastMovingChanged<50;if(!(r||i)){var n=t?o.ctrlKey||o.metaKey:o.shiftKey;e.params.progressSort(n)}}));var o=function(){if(e.addOrRemoveCssClass("ag-header-cell-sorted-asc",e.params.column.isSortAscending()),e.addOrRemoveCssClass("ag-header-cell-sorted-desc",e.params.column.isSortDescending()),e.addOrRemoveCssClass("ag-header-cell-sorted-none",e.params.column.isSortNone()),e.params.column.getColDef().showRowGroup){var t=e.columnModel.getSourceColumnsForGroupColumn(e.params.column),o=!(null==t?void 0:t.every((function(t){return e.params.column.getSort()==t.getSort()})));e.addOrRemoveCssClass("ag-header-cell-sorted-mixed",o)}};this.addManagedListener(this.eventService,ke.EVENT_SORT_CHANGED,o),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_ROW_GROUP_CHANGED,o)}},o.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,ie.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},o.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();Jo(this.eFilter,e,{skipAriaHidden:!0})},o.TEMPLATE='<div class="ag-cell-label-container" role="presentation">\n <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>\n <div ref="eLabel" class="ag-header-cell-label" role="presentation">\n <span ref="eText" class="ag-header-cell-text"></span>\n <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>\n <ag-sort-indicator ref="eSortIndicator"></ag-sort-indicator>\n </div>\n </div>',zn([U("sortController")],o.prototype,"sortController",void 0),zn([U("menuFactory")],o.prototype,"menuFactory",void 0),zn([U("columnModel")],o.prototype,"columnModel",void 0),zn([ui("eFilter")],o.prototype,"eFilter",void 0),zn([ui("eSortIndicator")],o.prototype,"eSortIndicator",void 0),zn([ui("eMenu")],o.prototype,"eMenu",void 0),zn([ui("eLabel")],o.prototype,"eLabel",void 0),zn([ui("eText")],o.prototype,"eText",void 0),zn([ui("eSortOrder")],o.prototype,"eSortOrder",void 0),zn([ui("eSortAsc")],o.prototype,"eSortAsc",void 0),zn([ui("eSortDesc")],o.prototype,"eSortDesc",void 0),zn([ui("eSortMixed")],o.prototype,"eSortMixed",void 0),zn([ui("eSortNone")],o.prototype,"eSortNone",void 0),o}(li),Yn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),qn=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Qn=function(e){function o(){return e.call(this,o.TEMPLATE)||this}return Yn(o,e),o.prototype.destroy=function(){e.prototype.destroy.call(this)},o.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},o.prototype.checkWarnings=function(){if(this.params.template){O((function(){return console.warn("AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")}),"HeaderGroupComp.templateNotSupported")}},o.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!Re(t)){var o=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),o,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var o=function(e){Ee(e)};this.addManagedListener(this.eCloseIcon,"dblclick",o),this.addManagedListener(this.eOpenIcon,"dblclick",o),this.addManagedListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var r=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(r,se.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(r,se.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},o.prototype.addTouchAndClickListeners=function(e,t){var o=new kn(e,!0);this.addManagedListener(o,kn.EVENT_TAP,t),this.addDestroyFunc((function(){return o.destroy()})),this.addManagedListener(e,"click",t)},o.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();Jo(this.eOpenIcon,e),Jo(this.eCloseIcon,!e)}else Jo(this.eOpenIcon,!1),Jo(this.eCloseIcon,!1)},o.prototype.addInIcon=function(e,t){var o=Fr(e,this.gridOptionsService,null);o&&this.getRefElement(t).appendChild(o)},o.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return Jo(this.eOpenIcon,!1),void Jo(this.eCloseIcon,!1)},o.prototype.setupLabel=function(){var e=this.params.displayName;if(t(e)){var o=ht(e);this.getRefElement("agLabel").innerHTML=o}},o.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">\n <span ref="agLabel" class="ag-header-group-text" role="presentation"></span>\n <span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>\n <span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>\n </div>',qn([U("columnModel")],o.prototype,"columnModel",void 0),qn([ui("agOpened")],o.prototype,"eOpenIcon",void 0),qn([ui("agClosed")],o.prototype,"eCloseIcon",void 0),o}(li),Xn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Jn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xn(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){t.addCssClass("ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&t.getGui().classList.remove("ag-has-popup"),e.prototype.destroy.call(this)},t}(li),Zn=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),$n=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},es=function(e){function o(){return e.call(this,o.TEMPLATE)||this}return Zn(o,e),o.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),t(e.value,!0)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},o.prototype.onKeyDown=function(e){var t=e.key;(t===xr.LEFT||t===xr.UP||t===xr.RIGHT||t===xr.DOWN||e.shiftKey&&t===xr.ENTER)&&e.stopPropagation()},o.prototype.afterGuiAttached=function(){var e=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},o.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},o.TEMPLATE='<div class="ag-large-text" tabindex="0">\n <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n </div>',$n([ui("eTextArea")],o.prototype,"eTextArea",void 0),o}(Jn),ts=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),os=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},rs=function(e){function t(){var t=e.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this;return t.startedByEnter=!1,t}return ts(t,e),t.prototype.init=function(e){var t=this;if(this.focusAfterAttached=e.cellStartedEdit,o(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=e.eventKey&&e.eventKey===xr.ENTER;var r=!1;e.values.forEach((function(o){var i={value:o},n=t.valueFormatterService.formatValue(e.column,null,o),s=null!=n;i.text=s?n:o,t.eSelect.addOption(i),r=r||e.value===o})),r?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),"fullRow"!==this.gridOptionsService.get("editType")&&this.addManagedListener(this.eSelect,Bi.EVENT_ITEM_SELECTED,(function(){return e.stopEditing()}))}},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},os([U("valueFormatterService")],t.prototype,"valueFormatterService",void 0),os([ui("eSelect")],t.prototype,"eSelect",void 0),t}(Jn),is=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ns=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ss=function(e){function o(){return e.call(this,o.TEMPLATE)||this}return is(o,e),o.prototype.init=function(e){this.params=e;var t,o=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.eventKey===xr.BACKSPACE||e.eventKey===xr.DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.eventKey!==xr.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),null!=t&&o.setValue(t,!0),null!=e.maxLength&&o.setMaxLength(e.maxLength),this.addManagedListener(o.getGui(),"keydown",(function(e){var t=e.key;t!==xr.PAGE_UP&&t!==xr.PAGE_DOWN||e.preventDefault()}))},o.prototype.afterGuiAttached=function(){var e=this.localeService.getLocaleTextFunc(),o=this.eInput;if(o.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached){So()||o.getFocusableElement().focus();var r=o.getInputElement();if(this.highlightAllOnFocus)r.select();else{var i=o.getValue(),n=t(i)&&i.length||0;n&&r.setSelectionRange(n,n)}}},o.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),o=e.getInputElement();t.focus(),o.select()},o.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.getValue())},o.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},o.prototype.isPopup=function(){return!1},o.TEMPLATE='<div class="ag-cell-edit-wrapper">\n <ag-input-text-field class="ag-cell-editor" ref="eInput"></ag-input-text-field>\n </div>',ns([ui("eInput")],o.prototype,"eInput",void 0),o}(Jn),as=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ls=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},us=function(e){function o(){var t=e.call(this,o.TEMPLATE)||this;return t.refreshCount=0,t}return as(o,e),o.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},o.prototype.showDelta=function(e,o){var r=Math.abs(o),i=e.formatValue(r),n=t(i)?i:r,s=o>=0;this.eDelta.innerHTML=s?"\u2191"+n:"\u2193"+n,this.eDelta.classList.toggle("ag-value-change-delta-up",s),this.eDelta.classList.toggle("ag-value-change-delta-down",!s)},o.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout((function(){t===e.refreshCount&&e.hideDeltaValue()}),2e3)},o.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),ur(this.eDelta)},o.prototype.refresh=function(e){var o=e.value;if(o===this.lastValue)return!1;if(t(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:t(e.value)?this.eValue.innerHTML=o:ur(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"==typeof o&&"number"==typeof this.lastValue){var r=o-this.lastValue;this.showDelta(e,r)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=o,!0},o.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',ls([U("filterManager")],o.prototype,"filterManager",void 0),o}(li),cs=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ps=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ds=function(e){function r(){var t=e.call(this,r.TEMPLATE)||this;return t.refreshCount=0,t.eCurrent=t.queryForHtmlElement(".ag-value-slide-current"),t}return cs(r,e),r.prototype.init=function(e){this.refresh(e)},r.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=dr('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&e.ePrevious.classList.add("ag-value-slide-out-end")}),50),window.setTimeout((function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)}),3e3)},r.prototype.refresh=function(e){var r=e.value;return o(r)&&(r=""),r!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=r,t(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:t(e.value)?this.eCurrent.innerHTML=r:ur(this.eCurrent),!0))},r.TEMPLATE='<span>\n <span class="ag-value-slide-current"></span>\n </span>',ps([U("filterManager")],r.prototype,"filterManager",void 0),r}(li),hs=function(){return(hs=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},fs=function(){function e(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.beans=t}return e.prototype.setData=function(e){this.setDataCommon(e,!1)},e.prototype.updateData=function(e){this.setDataCommon(e,!0)},e.prototype.setDataCommon=function(e,t){var o=this.data;this.data=e,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable(),this.resetQuickFilterAggregateText();var r=this.createDataChangedEvent(e,o,t);this.dispatchLocalEvent(r)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,o,r){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:o,newData:t,update:r}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.getRowIndexString=function(){return"top"===this.rowPinned?"t-"+this.rowIndex:"bottom"===this.rowPinned?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e(this.beans);return t.id=this.id,t.data=this.data,t.__daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,o){var r=t(this.id)?this.createDaemonNode():null,i=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(o),this.beans.selectionService.syncInRowNode(this,r),this.checkRowSelectable();var n=this.createDataChangedEvent(e,i,!1);this.dispatchLocalEvent(n)},e.prototype.checkRowSelectable=function(){var e=this.beans.gridOptionsService.get("isRowSelectable");this.setRowSelectable(!e||e(this))},e.prototype.setRowSelectable=function(t){if(this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)),this.beans.gridOptionsService.is("groupSelectsChildren"))){var o=this.calculateSelectedFromChildren();this.setSelectedParams({newValue:null!=o&&o,source:"selectableChanged"})}},e.prototype.setId=function(t){var o=this.beans.gridOptionsService.getRowIdFunc();if(o)if(this.data){var r=this.getGroupKeys(!0);this.id=o({data:this.data,parentKeys:r.length>0?r:void 0,level:this.level}),null!==this.id&&"string"==typeof this.id&&this.id.startsWith(e.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+e.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),null!==this.id&&"string"!=typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=t},e.prototype.getGroupKeys=function(e){void 0===e&&(e=!1);var t=[],o=this;for(e&&(o=o.parent);o&&o.level>=0;)t.push(o.key),o=o.parent;return t.reverse(),t},e.prototype.isPixelInRange=function(e){return!(!t(this.rowTop)||!t(this.rowHeight))&&(e>=this.rowTop&&e<this.rowTop+this.rowHeight)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.oldRowTop=this.rowTop,this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)),this.setDisplayed(null!==t))},e.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},e.prototype.setDisplayed=function(t){this.displayed!==t&&(this.displayed=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DISPLAYED_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.setHighlighted=function(t){t!==this.highlighted&&(this.highlighted=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HIGHLIGHT_CHANGED)))},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},e.prototype.setMaster=function(t){this.master!==t&&(this.master&&!t&&(this.expanded=!1),this.master=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_MASTER_CHANGED)))},e.prototype.setGroup=function(t){this.group!==t&&(this.group&&!t&&(this.expanded=!1),this.group=t,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_GROUP_CHANGED)))},e.prototype.setRowHeight=function(t,o){void 0===o&&(o=!1),this.rowHeight=t,this.rowHeightEstimated=o,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowAutoHeight=function(e,t){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[t.getId()]=e,null!=e&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=M(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},e.prototype.checkAutoHeights=function(){var e=!1,t=!0,o=0,r=this.__autoHeights;if(null!=r&&(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach((function(i){var n=r[i.getId()];null!=n?(t=!1,n>o&&(o=n)):e=!0})),!e&&((t||o<10)&&(o=this.beans.gridOptionsService.getRowHeightForNode(this).height),o!=this.rowHeight))){this.setRowHeight(o);var i=this.beans.rowModel;i.onRowHeightChangedDebounced&&i.onRowHeightChangedDebounced()}},e.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED)))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t,o){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var r=Object.assign({},this.createGlobalRowEvent(ke.EVENT_ROW_GROUP_OPENED),{expanded:t,event:o||null});this.beans.rowNodeEventThrottle.dispatchExpanded(r),this.beans.gridOptionsService.is("groupIncludeFooter")&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t,o){var r=this.beans.columnModel.getPrimaryColumn(e),i=this.beans.valueService.getValue(r,this);if(this.beans.gridOptionsService.is("readOnlyEdit"))return this.dispatchEventForSaveValueReadOnly(r,i,t,o),!1;var n=this.beans.valueService.setValue(this,r,t,o);return this.dispatchCellChangedEvent(r,t,i),this.checkRowSelectable(),n},e.prototype.dispatchEventForSaveValueReadOnly=function(e,t,o,r){var i={type:ke.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:e,colDef:e.getColDef(),context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,data:this.data,node:this,oldValue:t,newValue:o,value:o,source:r};this.beans.eventService.dispatchEvent(i)},e.prototype.setGroupValue=function(e,t){var r=this.beans.columnModel.getGridColumn(e);o(this.groupData)&&(this.groupData={});var i=r.getColId(),n=this.groupData[i];n!==t&&(this.groupData[i]=t,this.dispatchCellChangedEvent(r,t,n))},e.prototype.setAggData=function(e){var t=this,o=v([this.aggData,e]),r=this.aggData;this.aggData=e,this.eventService&&o.forEach((function(e){var o=t.beans.columnModel.getGridColumn(e),i=t.aggData?t.aggData[e]:void 0,n=r?r[e]:void 0;t.dispatchCellChangedEvent(o,i,n)}))},e.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;if(this.beans.gridOptionsService.isRowModelType("serverSide")){var o=this.beans.gridOptionsService.isTreeData(),r=this.beans.gridOptionsService.get("isServerSideGroup");t=!this.stub&&!this.footer&&(o?!!r&&r(this.data):!!this.group)}t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HAS_CHILDREN_CHANGED)))},e.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},e.prototype.isEmptyRowGroupNode=function(){return this.group&&r(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,o,r){var i={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:o,oldValue:r};this.dispatchLocalEvent(i)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(t){return t.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t=!1,o=!1,r=!1;if(!(null===(e=this.childrenAfterGroup)||void 0===e?void 0:e.length))return this.selectable?this.selected:null;for(var i=0;i<this.childrenAfterGroup.length;i++){var n=this.childrenAfterGroup[i],s=n.isSelected();if(!n.selectable){var a=n.calculateSelectedFromChildren();if(null===a)continue;s=a}switch(s){case!0:t=!0;break;case!1:o=!0;break;default:r=!0}}return r||t&&o?void 0:!!t||!o&&(this.selectable?this.selected:null)},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.selectThisNode=function(t,o,r){void 0===r&&(r="api");var i=!this.selectable&&t,n=this.selected===t;if(i||n)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var s=hs(hs({},this.createGlobalRowEvent(ke.EVENT_ROW_SELECTED)),{event:o||null,source:r});return this.beans.eventService.dispatchEvent(s),!0},e.prototype.setSelected=function(e,t,o,r){void 0===t&&(t=!1),void 0===o&&(o=!1),void 0===r&&(r="api"),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:o,rangeSelect:!1,source:r})},e.prototype.setSelectedParams=function(e){return this.rowPinned?(console.warn("AG Grid: cannot select pinned rows"),0):void 0===this.id?(console.warn("AG Grid: cannot select node until id for node is known"),0):this.beans.selectionService.setNodeSelected(hs(hs({},e),{node:this.footer?this.sibling:this}))},e.prototype.isRowPinned=function(){return"top"===this.rowPinned||"bottom"===this.rowPinned},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.addEventListener=function(e,t){this.eventService||(this.eventService=new Z),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService&&(this.eventService.removeEventListener(e,t),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var o=this,r=!0,i=!1,n=null;r&&!i;){var s=o.parent;t(s)&&o.firstChild?s.rowGroupColumn===e&&(i=!0,n=s):r=!1,o=s}return i?n:null},e.prototype.isFullWidthCell=function(){var e=this.getIsFullWidthCellFunc();return!!e&&e({rowNode:this})},e.prototype.getIsFullWidthCellFunc=function(){var e=this.beans.gridOptionsService.getCallback("isFullWidthRow");if(e)return e;var t=this.beans.gridOptionsService.get("isFullWidthCell");return t?function(e){return t(e.rowNode)}:void 0},e.prototype.getRoute=function(){if(null!=this.key){for(var e=[],t=this;null!=t.key;)e.push(t.key),t=t.parent;return e.reverse()}},e.prototype.createFooter=function(){var t=this;if(!this.sibling){var o=new e(this.beans);Object.keys(this).forEach((function(e){o[e]=t[e]})),o.footer=!0,o.setRowTop(null),o.setRowIndex(null),o.oldRowTop=null,o.id="rowGroupFooter_"+this.id,o.sibling=this,this.sibling=o}},e.ID_PREFIX_ROW_GROUP="row-group-",e.ID_PREFIX_TOP_PINNED="t-",e.ID_PREFIX_BOTTOM_PINNED="b-",e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",e.EVENT_MASTER_CHANGED="masterChanged",e.EVENT_GROUP_CHANGED="groupChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_DISPLAYED_CHANGED="displayedChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",e.EVENT_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",e}(),gs=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),vs=function(){return(vs=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},ys=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ms=function(e){function t(){return e.call(this,'\n <div class="ag-selection-checkbox" role="presentation">\n <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n </div>')||this}return gs(t,e),t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0),Yt(this.eCheckbox.getInputElement(),"polite")},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.localeService.getLocaleTextFunc(),t=this.rowNode.isSelected(),o=void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),r=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(r+" ("+o+")")},t.prototype.onCheckedClicked=function(e){var t=this.gridOptionsService.is("groupSelectsFiltered");return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:t,event:e,source:"checkboxSelected"})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsService.is("groupSelectsFiltered");return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t,event:e,source:"checkboxSelected"})},t.prototype.init=function(e){var t=this;if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",(function(e){Ee(e)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(e){Ee(e),t.eCheckbox.getValue()?t.onCheckedClicked(e):t.onUncheckedClicked(e||{})})),this.addManagedListener(this.rowNode,fs.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,fs.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,fs.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsService.get("isRowSelectable")||"function"==typeof this.getIsVisible()){var o=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addManagedListener(this.rowNode,fs.EVENT_DATA_CHANGED,o),this.addManagedListener(this.rowNode,fs.EVENT_CELL_CHANGED,o),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.showOrHideSelect=function(){var e,t,o,r,i=this.rowNode.selectable,n=this.getIsVisible();if(i)if("function"==typeof n){var s=null===(e=this.overrides)||void 0===e?void 0:e.callbackParams,a=null===(t=this.column)||void 0===t?void 0:t.createColumnFunctionCallbackParams(this.rowNode);i=!!a&&n(vs(vs({},s),a))}else i=null!=n&&n;if(null===(o=this.column)||void 0===o?void 0:o.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!i),this.setVisible(!0),void this.setDisplayed(!0);(null===(r=this.overrides)||void 0===r?void 0:r.removeHidden)?this.setDisplayed(i):this.setVisible(i)},t.prototype.getIsVisible=function(){var e,t;return this.overrides?this.overrides.isVisible:null===(t=null===(e=this.column)||void 0===e?void 0:e.getColDef())||void 0===t?void 0:t.checkboxSelection},ys([ui("eCheckbox")],t.prototype,"eCheckbox",void 0),ys([B],t.prototype,"postConstruct",null),t}(li),Cs=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ws=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ss=function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};
|
208 |
|
209 |
|
210 |
|
211 |
|
212 |
|
213 | (Rn=exports.DragSourceType||(exports.DragSourceType={}))[Rn.ToolPanel=0]="ToolPanel",Rn[Rn.HeaderCell=1]="HeaderCell",Rn[Rn.RowDrag=2]="RowDrag",Rn[Rn.ChartPanel=3]="ChartPanel",(On=exports.VerticalDirection||(exports.VerticalDirection={}))[On.Up=0]="Up",On[On.Down=1]="Down",(bn=exports.HorizontalDirection||(exports.HorizontalDirection={}))[bn.Left=0]="Left",bn[bn.Right=1]="Right";var Es,Rs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragSourceAndParamsList=[],t.dropTargets=[],t}var o;return Cs(t,e),o=t,t.prototype.init=function(){this.ePinnedIcon=Mr("columnMovePin",this.gridOptionsService,null),this.eHideIcon=Mr("columnMoveHide",this.gridOptionsService,null),this.eMoveIcon=Mr("columnMoveMove",this.gridOptionsService,null),this.eLeftIcon=Mr("columnMoveLeft",this.gridOptionsService,null),this.eRightIcon=Mr("columnMoveRight",this.gridOptionsService,null),this.eGroupIcon=Mr("columnMoveGroup",this.gridOptionsService,null),this.eAggregateIcon=Mr("columnMoveValue",this.gridOptionsService,null),this.ePivotIcon=Mr("columnMovePivot",this.gridOptionsService,null),this.eDropNotAllowedIcon=Mr("dropNotAllowed",this.gridOptionsService,null)},t.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var o={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:o,dragSource:e}),this.dragService.addDragSource(o,t)},t.prototype.removeDragSource=function(e){var t=this.dragSourceAndParamsList.find((function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),de(this.dragSourceAndParamsList,t))},t.prototype.clearDragSourceParamsList=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){return e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0},t.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},t.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},t.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},t.prototype.onDragging=function(e,t){var o,r,i,n,s=this,a=this.getHorizontalDirection(e),l=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var u=this.dropTargets.filter((function(t){return s.isMouseOnDropTarget(e,t)})),c=this.findCurrentDropTarget(e,u);if(c!==this.lastDropTarget)this.leaveLastTargetIfExists(e,a,l,t),null!==this.lastDropTarget&&null===c&&(null===(r=(o=this.dragSource).onGridExit)||void 0===r||r.call(o,this.dragItem)),null===this.lastDropTarget&&null!==c&&(null===(n=(i=this.dragSource).onGridEnter)||void 0===n||n.call(i,this.dragItem)),this.enterDragTargetIfExists(c,e,a,l,t),this.lastDropTarget=c;else if(c&&c.onDragging){var p=this.createDropTargetEvent(c,e,a,l,t);c.onDragging(p)}},t.prototype.getAllContainersFromDropTarget=function(e){var t=e.getSecondaryContainers?e.getSecondaryContainers():null,o=[[e.getContainer()]];return t?o.concat(t):o},t.prototype.allContainersIntersect=function(e,t){var o,r;try{for(var i=Ss(t),n=i.next();!n.done;n=i.next()){var s=n.value.getBoundingClientRect();if(0===s.width||0===s.height)return!1;var a=e.clientX>=s.left&&e.clientX<s.right,l=e.clientY>=s.top&&e.clientY<s.bottom;if(!a||!l)return!1}}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return!0},t.prototype.isMouseOnDropTarget=function(e,t){var o,r,i=this.getAllContainersFromDropTarget(t),n=!1;try{for(var s=Ss(i),a=s.next();!a.done;a=s.next()){var l=a.value;if(this.allContainersIntersect(e,l)){n=!0;break}}}catch(e){o={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(o)throw o.error}}return!(t.targetContainsSource&&!t.getContainer().contains(this.dragSource.eElement))&&(n&&t.isInterestedIn(this.dragSource.type,this.dragSource.eElement))},t.prototype.findCurrentDropTarget=function(e,t){var o,r,i,n,s=t.length;if(0===s)return null;if(1===s)return t[0];var a=this.gridOptionsService.getRootNode().elementsFromPoint(e.clientX,e.clientY);try{for(var l=Ss(a),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var p=(i=void 0,Ss(t)),d=p.next();!d.done;d=p.next()){var h=d.value;if(-1!==ye(this.getAllContainersFromDropTarget(h)).indexOf(c))return h}}catch(e){i={error:e}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(i)throw i.error}}}}catch(e){o={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(o)throw o.error}}return null},t.prototype.enterDragTargetIfExists=function(e,t,o,r,i){if(e){if(e.onDragEnter){var n=this.createDropTargetEvent(e,t,o,r,i);e.onDragEnter(n)}this.setGhostIcon(e.getIconName?e.getIconName():null)}},t.prototype.leaveLastTargetIfExists=function(e,t,o,r){if(this.lastDropTarget){if(this.lastDropTarget.onDragLeave){var i=this.createDropTargetEvent(this.lastDropTarget,e,t,o,r);this.lastDropTarget.onDragLeave(i)}this.setGhostIcon(null)}},t.prototype.addDropTarget=function(e){this.dropTargets.push(e)},t.prototype.removeDropTarget=function(e){this.dropTargets=this.dropTargets.filter((function(t){return t.getContainer()!==e.getContainer()}))},t.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(e){return e.external}))},t.prototype.findExternalZone=function(e){return this.dropTargets.filter((function(e){return e.external})).find((function(t){return t.getContainer()===e.getContainer()}))||null},t.prototype.getHorizontalDirection=function(e){var t=this.eventLastTime&&this.eventLastTime.clientX,o=e.clientX;return t===o?null:t>o?exports.HorizontalDirection.Left:exports.HorizontalDirection.Right},t.prototype.getVerticalDirection=function(e){var t=this.eventLastTime&&this.eventLastTime.clientY,o=e.clientY;return t===o?null:t>o?exports.VerticalDirection.Up:exports.VerticalDirection.Down},t.prototype.createDropTargetEvent=function(e,t,o,r,i){var n=e.getContainer(),s=n.getBoundingClientRect(),a=this.gridApi,l=this.columnApi,u=this.dragItem,c=this.dragSource;return{event:t,x:t.clientX-s.left,y:t.clientY-s.top,vDirection:r,hDirection:o,dragSource:c,fromNudge:i,dragItem:u,api:a,columnApi:l,dropZoneTarget:n}},t.prototype.positionGhost=function(e){var t=this.eGhost;if(t){var o=t.getBoundingClientRect().height,r=Ao()-2,i=No()-2,n=e.pageY-o/2,s=e.pageX-10,a=this.gridOptionsService.getDocument(),l=a.defaultView||window,u=l.pageYOffset||a.documentElement.scrollTop,c=l.pageXOffset||a.documentElement.scrollLeft;r>0&&s+t.clientWidth>r+c&&(s=r+c-t.clientWidth),s<0&&(s=0),i>0&&n+t.clientHeight>i+u&&(n=i+u-t.clientHeight),n<0&&(n=0),t.style.left=s+"px",t.style.top=n+"px"}},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=dr(o.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var e=this.environment.getTheme().theme;e&&this.eGhost.classList.add(e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var t=this.eGhost.querySelector(".ag-dnd-ghost-label"),r=this.dragSource.dragItemName;T(r)&&(r=r()),t.innerHTML=ht(r)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var i=this.gridOptionsService.getDocument(),n=null;try{n=i.fullscreenElement}catch(e){}finally{if(!n){var s=this.gridOptionsService.getRootNode(),a=s.querySelector("body");n=a||(s instanceof ShadowRoot?s:null==s?void 0:s.documentElement)}}this.eGhostParent=n,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},t.prototype.setGhostIcon=function(e,t){void 0===t&&(t=!1),ur(this.eGhostIcon);var r=null;switch(e||(e=this.dragSource.defaultIconName||o.ICON_NOT_ALLOWED),e){case o.ICON_PINNED:r=this.ePinnedIcon;break;case o.ICON_MOVE:r=this.eMoveIcon;break;case o.ICON_LEFT:r=this.eLeftIcon;break;case o.ICON_RIGHT:r=this.eRightIcon;break;case o.ICON_GROUP:r=this.eGroupIcon;break;case o.ICON_AGGREGATE:r=this.eAggregateIcon;break;case o.ICON_PIVOT:r=this.ePivotIcon;break;case o.ICON_NOT_ALLOWED:r=this.eDropNotAllowedIcon;break;case o.ICON_HIDE:r=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",t),r===this.eHideIcon&&this.gridOptionsService.is("suppressDragLeaveHidesColumns")||r&&this.eGhostIcon.appendChild(r)},t.ICON_PINNED="pinned",t.ICON_MOVE="move",t.ICON_LEFT="left",t.ICON_RIGHT="right",t.ICON_GROUP="group",t.ICON_AGGREGATE="aggregate",t.ICON_PIVOT="pivot",t.ICON_NOT_ALLOWED="notAllowed",t.ICON_HIDE="hide",t.GHOST_TEMPLATE='<div class="ag-dnd-ghost ag-unselectable">\n <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>\n <div class="ag-dnd-ghost-label"></div>\n </div>',ws([U("dragService")],t.prototype,"dragService",void 0),ws([U("mouseEventService")],t.prototype,"mouseEventService",void 0),ws([U("columnApi")],t.prototype,"columnApi",void 0),ws([U("gridApi")],t.prototype,"gridApi",void 0),ws([B],t.prototype,"init",null),ws([j],t.prototype,"clearDragSourceParamsList",null),t=o=ws([W("dragAndDropService")],t)}(Le),Os=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),bs=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ts=function(e){function t(t,o,r,i,n,s){var a=e.call(this)||this;return a.cellValueFn=t,a.rowNode=o,a.column=r,a.customGui=i,a.dragStartPixels=n,a.suppressVisibilityChange=s,a.dragSource=null,a}return Os(t,e),t.prototype.isCustomGui=function(){return null!=this.customGui},t.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(Fr("rowDrag",this.beans.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsService.is("rowDragManaged")?new _s(this,this.beans,this.rowNode,this.column):new Ds(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},t.prototype.setDragElement=function(e,t){this.setTemplateFromElement(e),this.addDragSource(t)},t.prototype.getSelectedNodes=function(){if(!this.beans.gridOptionsService.is("rowDragMultiRow"))return[this.rowNode];var e=this.beans.selectionService.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e:[this.rowNode]},t.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsService.is("rowDragManaged");this.beans.gridOptionsService.isTreeData()&&e&&O((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},t.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},t.prototype.getRowDragText=function(e){if(e){var t=e.getColDef();if(t.rowDragText)return t.rowDragText}return this.gridOptionsService.get("rowDragText")},t.prototype.addDragSource=function(e){var t=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var o=this.getRowDragText(this.column),r=this.localeService.getLocaleTextFunc();this.dragSource={type:exports.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:function(){var e,i=t.getDragItem(),n=(null===(e=i.rowNodes)||void 0===e?void 0:e.length)||1;return o?o(i,n):1===n?t.cellValueFn():n+" "+r("rowDragRows","rows")},getDragItem:function(){return t.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},bs([U("beans")],t.prototype,"beans",void 0),bs([B],t.prototype,"postConstruct",null),bs([j],t.prototype,"removeDragSource",null),t}(li),Ps=function(e){function t(t,o,r){var i=e.call(this)||this;return i.parent=t,i.rowNode=o,i.column=r,i}return Os(t,e),t.prototype.setDisplayedOrVisible=function(e){var t={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,t);else{var o=!0,r=!1;this.column&&(o=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),r=T(this.column.getColDef().rowDrag)),r?(this.parent.setDisplayed(!0,t),this.parent.setVisible(o,t)):(this.parent.setDisplayed(o,t),this.parent.setVisible(!0,t))}},t}(Le),Ds=function(e){function t(t,o,r,i){var n=e.call(this,t,r,i)||this;return n.beans=o,n}return Os(t,e),t.prototype.postConstruct=function(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,fs.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,fs.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,fs.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,ke.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsService.is("suppressRowDrag");this.setDisplayedOrVisible(e)},bs([B],t.prototype,"postConstruct",null),t}(Ps),_s=function(e){function t(t,o,r,i){var n=e.call(this,t,r,i)||this;return n.beans=o,n}return Os(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,ke.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,ke.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,ke.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,ke.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,fs.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,fs.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),t=e&&e.shouldPreventRowMove(),o=this.beans.gridOptionsService.is("suppressRowDrag"),r=this.beans.dragAndDropService.hasExternalDropZones(),i=t&&!r||o;this.setDisplayedOrVisible(i)},bs([B],t.prototype,"postConstruct",null),t}(Ps),As=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ns=function(){return(Ns=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Ms=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Fs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return As(t,e),t.prototype.init=function(e,t,o,r,i,n,s){this.params=s,this.eGui=t,this.eCheckbox=o,this.eExpanded=r,this.eContracted=i,this.comp=e,this.compClass=n;var a=this.isTopLevelFooter(),l=this.isEmbeddedRowMismatch(),u=null==s.value&&!s.node.master,c=!1;if(this.gridOptionsService.is("groupIncludeFooter")&&this.gridOptionsService.is("groupHideOpenParents")){var p=s.node;if(p.footer)c=(s.colDef&&s.colDef.showRowGroup)!==(p.rowGroupColumn&&p.rowGroupColumn.getColId())}this.cellIsBlank=!a&&(l||u&&!s.node.master||c),this.cellIsBlank||(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,t=e.node,o=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var r=function(){Jt(o,!!t.expanded)};this.expandListener=this.addManagedListener(t,fs.EVENT_EXPANDED_CHANGED,r)||null,r()}else Zt(o)},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsService.is("groupIncludeTotalFooter"))return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef;if(null==e)return!0;if(!0===e.showRowGroup)return!0;var t=this.columnModel.getRowGroupColumns();return!t||0===t.length||t[0].getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsService.is("embedFullWidthRows"))return!1;var e="left"===this.params.pinned,t="right"===this.params.pinned,o=!e&&!t;return this.gridOptionsService.is("enableRtl")?this.columnModel.isPinningLeft()?!t:!o:this.columnModel.isPinningLeft()?!e:!o},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,t=this.params.node;if(this.showingValueForOpenedParent)for(var r=t.parent;null!=r;){if(r.rowGroupColumn&&e.isRowGroupDisplayed(r.rowGroupColumn.getId())){this.displayedGroupNode=r;break}r=r.parent}o(this.displayedGroupNode)&&(this.displayedGroupNode=t)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,t=this.params.column;if(this.gridOptionsService.is("groupHideOpenParents"))if(e.groupData){if(null!=e.rowGroupColumn){var o=e.rowGroupColumn.getId();if(t.isRowGroupDisplayed(o))return void(this.showingValueForOpenedParent=!1)}var r=null!=e.groupData[t.getId()];this.showingValueForOpenedParent=r}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e=this.adjustParamsWithDetailsFromRelatedColumn(),t=this.getInnerCompDetails(e),o=e.valueFormatted,r=e.value,i=o;null==i&&(i=""===r&&this.params.node.group?this.localeService.getLocaleTextFunc()("blanks","(Blanks)"):null!=r?r:null);this.comp.setInnerRenderer(t,i)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,t=this.params.column;if(!e)return this.params;if(null!=t&&!t.isRowGroupDisplayed(e.getId()))return this.params;var o=this.params,r=this.params,i=r.value,n=r.node,s=this.valueFormatterService.formatValue(e,n,i);return Ns(Ns({},o),{valueFormatted:s})},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,t="";if(e){var o=p(this.params);o.value=this.params.value,"function"==typeof e?t=e(o):"string"==typeof e?t=this.expressionService.evaluate(e,o):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else t="Total "+(null!=this.params.value?this.params.value:"");var r=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(r,t)},t.prototype.getInnerCompDetails=function(e){var t=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptionsService.get("groupRowRendererParams"),e);var o=this.userComponentFactory.getInnerRendererDetails(e,e),r=function(e){return e&&e.componentClass==t.compClass};if(o&&!r(o))return o;var i=this.displayedGroupNode.rowGroupColumn,n=i?i.getColDef():void 0;if(n){var s=this.userComponentFactory.getCellRendererDetails(n,e);if(s&&!r(s))return s;if(r(s)&&n.cellRendererParams&&n.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(n.cellRendererParams,e)}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,fs.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,t=this.isShowRowGroupForThisRow()&&null!=e&&e>=0?"("+e+")":"";this.comp.setChildCount(t)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsService.isTreeData())return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var t=this.params.column;return null==t||t.isRowGroupDisplayed(e.getId())},t.prototype.addExpandAndContract=function(){var e=this.params,t=Fr("groupExpanded",this.gridOptionsService,null),o=Fr("groupContracted",this.gridOptionsService,null);t&&this.eExpanded.appendChild(t),o&&this.eContracted.appendChild(o);var r=e.eGridCell;this.gridOptionsService.is("enableGroupEdit")||!this.isExpandable()||e.suppressDoubleClickExpand||this.addManagedListener(r,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(r,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(e.node,fs.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var i=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,fs.EVENT_ALL_CHILDREN_COUNT_CHANGED,i),this.addManagedListener(this.displayedGroupNode,fs.EVENT_MASTER_CHANGED,i),this.addManagedListener(this.displayedGroupNode,fs.EVENT_GROUP_CHANGED,i),this.addManagedListener(this.displayedGroupNode,fs.EVENT_HAS_CHILDREN_CHANGED,i)},t.prototype.onExpandClicked=function(e){Re(e)||(Ee(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var t=this.displayedGroupNode,o=!t.expanded;!o&&t.sticky&&this.scrollToStickyNode(t),t.setExpanded(o,e)},t.prototype.scrollToStickyNode=function(e){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(e.rowTop-e.stickyRowTop)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,t=this.columnModel.isPivotMode()&&e.leafGroup;if(!(e.isExpandable()&&!e.footer&&!t))return!1;var o=this.params.column;return null==o||"string"!=typeof o.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},t.prototype.showExpandAndContractIcons=function(){var e=this.params,t=this.displayedGroupNode,o=this.columnModel,r=e.node,i=this.isExpandable();if(i){var n=!!this.showingValueForOpenedParent||r.expanded;this.comp.setExpandedDisplayed(n),this.comp.setContractedDisplayed(!n)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var s=o.isPivotMode(),a=s&&t.leafGroup,l=i&&!a,u=r.footer&&-1===r.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",l),this.comp.addOrRemoveCssClass("ag-row-group",l),s?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",a):u||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!l)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addManagedListener(e,fs.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsService.is("groupHideOpenParents")){var e=this.params,t=e.node,o=!!e.colDef,r=this.gridOptionsService.isTreeData(),i=!o||r||!0===e.colDef.showRowGroup?t.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+i,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var t=new Ts((function(){return e.params.value}),this.params.node);this.createManagedBean(t,this.context),this.eGui.insertAdjacentElement("afterbegin",t.getGui())}},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"==typeof e||!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this,t=this.displayedGroupNode,o=this.isUserWantsSelected()&&!t.footer&&!t.rowPinned&&!t.detail;if(o){var r=new ms;this.getContext().createBean(r),r.init({rowNode:t,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(r.getGui()),this.addDestroyFunc((function(){return e.getContext().destroyBean(r)}))}this.comp.setCheckboxVisible(o)},t.prototype.onKeyDown=function(e){e.key!==xr.ENTER||this.params.suppressEnterExpand||(this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e))},t.prototype.onCellDblClicked=function(e){Re(e)||(Pe(this.eExpanded,e)||Pe(this.eContracted,e)||this.onExpandOrContract(e))},Ms([U("expressionService")],t.prototype,"expressionService",void 0),Ms([U("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Ms([U("columnModel")],t.prototype,"columnModel",void 0),Ms([U("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Ms([U("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(Le),Ls=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),xs=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Is=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ls(t,e),t.prototype.init=function(e){var t=this,o={setInnerRenderer:function(e,o){return t.setRenderDetails(e,o)},setChildCount:function(e){return t.eChildCount.innerHTML=e},addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},setContractedDisplayed:function(e){return Jo(t.eContracted,e)},setExpandedDisplayed:function(e){return Jo(t.eExpanded,e)},setCheckboxVisible:function(e){return t.eCheckbox.classList.toggle("ag-invisible",!e)}},r=this.createManagedBean(new Fs),i=!e.colDef,n=this.getGui();r.init(o,n,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),i&&Vt(n,"gridcell")},t.prototype.setRenderDetails=function(e,t){var o=this;if(e){var r=e.newAgStackInstance();if(!r)return;r.then((function(e){if(e){var t=function(){return o.context.destroyBean(e)};o.isAlive()?(o.eValue.appendChild(e.getGui()),o.addDestroyFunc(t)):t()}}))}else this.eValue.innerText=t},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),e.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span class="ag-cell-wrapper">\n <span class="ag-group-expanded" ref="eExpanded"></span>\n <span class="ag-group-contracted" ref="eContracted"></span>\n <span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>\n <span class="ag-group-value" ref="eValue"></span>\n <span class="ag-group-child-count" ref="eChildCount"></span>\n </span>',xs([ui("eExpanded")],t.prototype,"eExpanded",void 0),xs([ui("eContracted")],t.prototype,"eContracted",void 0),xs([ui("eCheckbox")],t.prototype,"eCheckbox",void 0),xs([ui("eValue")],t.prototype,"eValue",void 0),xs([ui("eChildCount")],t.prototype,"eChildCount",void 0),t}(li),Gs=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Hs=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Vs=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Gs(t,e),t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){var e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingError","ERR")},t.prototype.setupLoading=function(){var e=Fr("groupLoading",this.gridOptionsService,null);e&&this.eLoadingIcon.appendChild(e);var t=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-loading">\n <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n <span class="ag-loading-text" ref="eLoadingText"></span>\n </div>',Hs([ui("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),Hs([ui("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(li),ks=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Bs=function(e){function t(){return e.call(this)||this}return ks(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var o,r=null!==(o=this.gridOptionsService.get("overlayLoadingTemplate"))&&void 0!==o?o:t.DEFAULT_LOADING_OVERLAY_TEMPLATE,i=this.localeService.getLocaleTextFunc(),n=r.replace("[LOADING...]",i("loadingOoo","Loading..."));this.setTemplate(n)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='<span class="ag-overlay-loading-center">[LOADING...]</span>',t}(li),js=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ws=function(e){function t(){return e.call(this)||this}return js(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var o,r=null!==(o=this.gridOptionsService.get("overlayNoRowsTemplate"))&&void 0!==o?o:t.DEFAULT_NO_ROWS_TEMPLATE,i=this.localeService.getLocaleTextFunc(),n=r.replace("[NO_ROWS_TO_SHOW]",i("noRowsToShow","No Rows To Show"));this.setTemplate(n)},t.DEFAULT_NO_ROWS_TEMPLATE='<span class="ag-overlay-no-rows-center">[NO_ROWS_TO_SHOW]</span>',t}(li),Us=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),zs=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return Us(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=ht(t)},t}(Jn),Ks=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ys=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},qs=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},Qs=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(qs(arguments[t]));return e},Xs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.agGridDefaults={agDateInput:gn,agColumnHeader:Kn,agColumnGroupHeader:Qn,agSortIndicator:Wn,agTextColumnFloatingFilter:Vn,agNumberColumnFloatingFilter:Gn,agDateColumnFloatingFilter:dn,agReadOnlyFloatingFilter:hi,agAnimateShowChangeCellRenderer:us,agAnimateSlideCellRenderer:ds,agGroupCellRenderer:Is,agGroupRowRenderer:Is,agLoadingCellRenderer:Vs,agCellEditor:ss,agTextCellEditor:ss,agSelectCellEditor:rs,agLargeTextCellEditor:es,agTextColumnFilter:An,agNumberColumnFilter:Tn,agDateColumnFilter:an,agLoadingOverlay:Bs,agNoRowsOverlay:Ws,agTooltipComponent:zs},t.enterpriseAgDefaultCompsModule={agSetColumnFilter:exports.ModuleNames.SetFilterModule,agSetColumnFloatingFilter:exports.ModuleNames.SetFilterModule,agMultiColumnFilter:exports.ModuleNames.MultiFilterModule,agMultiColumnFloatingFilter:exports.ModuleNames.MultiFilterModule,agGroupColumnFilter:exports.ModuleNames.RowGroupingModule,agGroupColumnFloatingFilter:exports.ModuleNames.RowGroupingModule,agRichSelect:exports.ModuleNames.RichSelectModule,agRichSelectCellEditor:exports.ModuleNames.RichSelectModule,agDetailCellRenderer:exports.ModuleNames.MasterDetailModule,agSparklineCellRenderer:exports.ModuleNames.SparklinesModule},t.deprecatedAgGridDefaults={agPopupTextCellEditor:'AG Grid: Since v27.1 The agPopupTextCellEditor is deprecated. Instead use { cellEditor: "agTextCellEditor", cellEditorPopup: true }',agPopupSelectCellEditor:'AG Grid: Since v27.1 the agPopupSelectCellEditor is deprecated. Instead use { cellEditor: "agSelectCellEditor", cellEditorPopup: true }'},t.jsComps={},t.fwComps={},t}return Ks(t,e),t.prototype.init=function(){var e=this;null!=this.gridOptions.components&&c(this.gridOptions.components,(function(t,o){return e.registerJsComponent(t,o)})),null!=this.gridOptions.frameworkComponents&&c(this.gridOptions.frameworkComponents,(function(t,o){return e.registerFwComponent(t,o)}))},t.prototype.registerDefaultComponent=function(e,t){this.agGridDefaults[e]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[e]=t},t.prototype.registerJsComponent=function(e,t){this.fwComps[e]?console.error("Trying to register a component that you have already registered for frameworks: "+e):this.jsComps[e]=t},t.prototype.registerFwComponent=function(e,t){O((function(){return console.warn("AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.")}),"UserComponentRegistry.frameworkComponentsDeprecated"),this.fwComps[e]=t},t.prototype.retrieve=function(e,t){var o=this,r=function(e,t){return{componentFromFramework:t,component:e}},i=this.getFrameworkOverrides().frameworkComponent(t,this.gridOptions.components);if(null!=i)return r(i,!0);var n=this.fwComps[t];if(n)return r(n,!0);var s=this.jsComps[t];if(s)return r(s,this.getFrameworkOverrides().isFrameworkComponent(s));var a=this.agGridDefaults[t];if(a)return r(a,!1);var l=this.enterpriseAgDefaultCompsModule[t];return l?ee.assertRegistered(l,"AG Grid '"+e+"' component: "+t):this.deprecatedAgGridDefaults[t]?O((function(){return console.warn(o.deprecatedAgGridDefaults[t])}),t):O((function(){o.warnAboutMissingComponent(e,t)}),"MissingComp"+t),null},t.prototype.warnAboutMissingComponent=function(e,t){var o=Qe(t,Qs(Object.keys(this.agGridDefaults).filter((function(e){return!["agCellEditor","agGroupRowRenderer","agSortIndicator"].includes(e)})),Object.keys(this.jsComps),Object.keys(this.fwComps)),!0,.8);console.warn("AG Grid: Could not find '"+t+"' component. It was configured as \""+e+": '"+t+"'\" but it wasn't found in the list of registered components."),o.length>0&&console.warn(" Did you mean: ["+o.slice(0,3)+"]?"),console.warn("If using a custom component check it has been registered as described in: https://ag-grid.com/javascript-data-grid/components/")},Ys([U("gridOptions")],t.prototype,"gridOptions",void 0),Ys([B],t.prototype,"init",null),t=Ys([W("userComponentRegistry")],t)}(Le),Js={propertyName:"dateComponent",cellRenderer:!1},Zs={propertyName:"headerComponent",cellRenderer:!1},$s={propertyName:"headerGroupComponent",cellRenderer:!1},ea={propertyName:"cellRenderer",cellRenderer:!0},ta={propertyName:"cellEditor",cellRenderer:!1},oa={propertyName:"innerRenderer",cellRenderer:!0},ra={propertyName:"loadingOverlayComponent",cellRenderer:!1},ia={propertyName:"noRowsOverlayComponent",cellRenderer:!1},na={propertyName:"tooltipComponent",cellRenderer:!1},sa={propertyName:"filter",cellRenderer:!1},aa={propertyName:"floatingFilterComponent",cellRenderer:!1},la={propertyName:"toolPanel",cellRenderer:!1},ua={propertyName:"statusPanel",cellRenderer:!1},ca={propertyName:"fullWidthCellRenderer",cellRenderer:!0},pa={propertyName:"loadingCellRenderer",cellRenderer:!0},da={propertyName:"groupRowRenderer",cellRenderer:!0},ha={propertyName:"detailCellRenderer",cellRenderer:!0},fa=function(){function e(){}return e.getFloatingFilterType=function(e){return this.filterToFloatingFilterMapping[e]},e.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",group:"agGroupColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},e}(),ga=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),va=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ya=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ga(t,e),t.prototype.getHeaderCompDetails=function(e,t){return this.getCompDetails(e,Zs,"agColumnHeader",t)},t.prototype.getHeaderGroupCompDetails=function(e){var t=e.columnGroup.getColGroupDef();return this.getCompDetails(t,$s,"agColumnGroupHeader",e)},t.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,ca,null,e,!0)},t.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,pa,"agLoadingCellRenderer",e,!0)},t.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,da,"agGroupRowRenderer",e,!0)},t.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,ha,"agDetailCellRenderer",e,!0)},t.prototype.getInnerRendererDetails=function(e,t){return this.getCompDetails(e,oa,null,t)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,t){return this.getCompDetails(e,oa,null,t)},t.prototype.getCellRendererDetails=function(e,t){return this.getCompDetails(e,ea,null,t)},t.prototype.getCellEditorDetails=function(e,t){return this.getCompDetails(e,ta,"agCellEditor",t,!0)},t.prototype.getFilterDetails=function(e,t,o){return this.getCompDetails(e,sa,o,t,!0)},t.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,Js,"agDateInput",e,!0)},t.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,ra,"agLoadingOverlay",e,!0)},t.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,ia,"agNoRowsOverlay",e,!0)},t.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,na,"agTooltipComponent",e,!0)},t.prototype.getSetFilterCellRendererDetails=function(e,t){return this.getCompDetails(e,ea,null,t)},t.prototype.getFloatingFilterCompDetails=function(e,t,o){return this.getCompDetails(e,aa,o,t)},t.prototype.getToolPanelCompDetails=function(e,t){return this.getCompDetails(e,la,null,t,!0)},t.prototype.getStatusPanelCompDetails=function(e,t){return this.getCompDetails(e,ua,null,t,!0)},t.prototype.getCompDetails=function(e,t,o,r,i){var n=this;void 0===i&&(i=!1);var s=t.propertyName,a=t.cellRenderer,l=this.getCompKeys(e,t,r),u=l.compName,c=l.jsComp,p=l.fwComp,d=l.paramsFromSelector,h=l.popupFromSelector,f=l.popupPositionFromSelector,g=function(e){var t=n.userComponentRegistry.retrieve(s,e);t&&(c=t.componentFromFramework?void 0:t.component,p=t.componentFromFramework?t.component:void 0)};if(null!=u&&g(u),null==c&&null==p&&null!=o&&g(o),c&&a&&!this.agComponentUtils.doesImplementIComponent(c)&&(c=this.agComponentUtils.adaptFunction(s,c)),c||p){var v=this.mergeParamsWithApplicationProvidedParams(e,t,r,d),y=null==c,m=c||p;return{componentFromFramework:y,componentClass:m,params:v,type:t,popupFromSelector:h,popupPositionFromSelector:f,newAgStackInstance:function(){return n.newAgStackInstance(m,y,v,t)}}}i&&console.error("AG Grid: Could not find component "+u+", did you forget to configure this component?")},t.prototype.getCompKeys=function(e,t,o){var r,i,n,s,a,l,u=this,c=t.propertyName;if(e){var p=e,d=p[c+"Selector"],h=d?d(o):null,f=function(e,t){var o=function(){var e="AG Grid: As of v27, the property "+c+"Framework is deprecated. The property "+c+" can now be used for JavaScript AND Framework Components.";O((function(){return console.warn(e)}),"UserComponentFactory."+c+"FrameworkDeprecated")};if("string"==typeof e)r=e;else if("string"==typeof t)o(),r=t;else if(null!=e&&!0!==e){u.getFrameworkOverrides().isFrameworkComponent(e)?n=e:i=e}else null!=t&&(o(),n=t)};if(h){if(null!=h.frameworkComponent){var g="AG Grid: As of v27, the return for "+c+"Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.";O((function(){return console.warn(g)}),"UserComponentFactory."+c+"FrameworkSelectorDeprecated"),f(h.frameworkComponent,void 0)}else f(h.component,void 0);s=h.params,a=h.popup,l=h.popupPosition}else f(p[c],p[c+"Framework"])}return{compName:r,jsComp:i,fwComp:n,paramsFromSelector:s,popupFromSelector:a,popupPositionFromSelector:l}},t.prototype.newAgStackInstance=function(e,t,o,r){var i,n=r.propertyName;if(!t)i=new e;else{var s=this.componentMetadataProvider.retrieve(n);i=this.frameworkComponentWrapper.wrap(e,s.mandatoryMethodList,s.optionalMethodList,r)}var a=this.initComponent(i,o);return null==a?Zr.resolve(i):a.then((function(){return i}))},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,t,o,r){void 0===r&&(r=null);var i={context:this.gridOptionsService.context,columnApi:this.gridOptionsService.columnApi,api:this.gridOptionsService.api};m(i,o);var n=e&&e[t.propertyName+"Params"];"function"==typeof n?m(i,n(o)):"object"==typeof n&&m(i,n);return m(i,r),i},t.prototype.initComponent=function(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)},t.prototype.getDefaultFloatingFilterType=function(e){if(null==e)return null;var t=null,o=this.getCompKeys(e,sa),r=o.compName,i=o.jsComp,n=o.fwComp;r?t=fa.getFloatingFilterType(r):null==i&&null==n&&!0===e.filter&&(t=ee.isRegistered(exports.ModuleNames.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter");return t},va([U("gridOptions")],t.prototype,"gridOptions",void 0),va([U("agComponentUtils")],t.prototype,"agComponentUtils",void 0),va([U("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),va([U("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),va([z("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),t=va([W("userComponentFactory")],t)}(Le);
|
214 |
|
215 |
|
216 |
|
217 |
|
218 |
|
219 | (
|
220 |
|
221 |
|
222 |
|
223 |
|
224 |
|
225 |
|
226 | Es=exports.ExcelFactoryMode||(exports.ExcelFactoryMode={}))[Es.SINGLE_SHEET=0]="SINGLE_SHEET",Es[Es.MULTI_SHEET=1]="MULTI_SHEET";
|
227 |
|
228 |
|
229 |
|
230 |
|
231 |
|
232 |
|
233 | var ma,Ca,wa=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Sa=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ea=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragEndFunctions=[],t.dragSources=[],t}return wa(o,e),o.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},o.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},o.prototype.removeListener=function(e){var t=e.dragSource.eElement,o=e.mouseDownListener;if(t.removeEventListener("mousedown",o),e.touchEnabled){var r=e.touchStartListener;t.removeEventListener("touchstart",r,{passive:!0})}},o.prototype.removeDragSource=function(e){var t=this.dragSources.find((function(t){return t.dragSource===e}));t&&(this.removeListener(t),de(this.dragSources,t))},o.prototype.isDragging=function(){return this.dragging},o.prototype.addDragSource=function(e,t){var o=this;void 0===t&&(t=!1);var r=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",r);var i=null,n=this.gridOptionsService.is("suppressTouch");t&&!n&&(i=function(t){Xo(t.target)||(t.cancelable&&(t.preventDefault(),t.stopPropagation()),o.onTouchStart(e,t))},e.eElement.addEventListener("touchstart",i,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:r,touchStartListener:i,touchEnabled:t})},o.prototype.onTouchStart=function(e,t){var o=this;this.currentDragParams=e,this.dragging=!1;var r=t.touches[0];this.touchLastTime=r,this.touchStart=r;var i=function(t){return o.onTouchUp(t,e.eElement)},n=t.target,s=[{target:document,type:"touchmove",listener:function(e){e.cancelable&&e.preventDefault()},options:{passive:!1}},{target:n,type:"touchmove",listener:function(t){return o.onTouchMove(t,e.eElement)},options:{passive:!0}},{target:n,type:"touchend",listener:i,options:{passive:!0}},{target:n,type:"touchcancel",listener:i,options:{passive:!0}}];this.addTemporaryEvents(s),0===e.dragStartPixels&&this.onCommonMove(r,this.touchStart,e.eElement)},o.prototype.onMouseDown=function(e,t){var o=this,r=t;if(!(e.skipMouseEvent&&e.skipMouseEvent(t)||r._alreadyProcessedByDragService||(r._alreadyProcessedByDragService=!0,0!==t.button))){this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t;var i=this.gridOptionsService.getDocument(),n=[{target:i,type:"mousemove",listener:function(t){return o.onMouseMove(t,e.eElement)}},{target:i,type:"mouseup",listener:function(t){return o.onMouseUp(t,e.eElement)}},{target:i,type:"contextmenu",listener:function(e){return e.preventDefault()}}];this.addTemporaryEvents(n),0===e.dragStartPixels&&this.onMouseMove(t,e.eElement)}},o.prototype.addTemporaryEvents=function(e){e.forEach((function(e){var t=e.target,o=e.type,r=e.listener,i=e.options;t.addEventListener(o,r,i)})),this.dragEndFunctions.push((function(){e.forEach((function(e){var t=e.target,o=e.type,r=e.listener,i=e.options;t.removeEventListener(o,r,i)}))}))},o.prototype.isEventNearStartEvent=function(e,o){var r=this.currentDragParams.dragStartPixels;return jr(e,o,t(r)?r:4)},o.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},o.prototype.onCommonMove=function(e,t,o){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var r={type:ke.EVENT_DRAG_STARTED,target:o};this.eventService.dispatchEvent(r),this.currentDragParams.onDragStart(t),this.currentDragParams.onDragging(t)}this.currentDragParams.onDragging(e)},o.prototype.onTouchMove=function(e,t){var o=this.getFirstActiveTouch(e.touches);o&&this.onCommonMove(o,this.touchStart,t)},o.prototype.onMouseMove=function(e,t){(this.gridOptionsService.is("enableCellTextSelection")||So())&&"mousemove"===e.type&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)},o.prototype.isOverFormFieldElement=function(e){var t=e.target,o=null==t?void 0:t.tagName.toLocaleLowerCase();return!!(null==o?void 0:o.match("^a$|textarea|input|select|button"))},o.prototype.onTouchUp=function(e,t){var o=this.getFirstActiveTouch(e.changedTouches);o||(o=this.touchLastTime),this.onUpCommon(o,t)},o.prototype.onMouseUp=function(e,t){this.onUpCommon(e,t)},o.prototype.onUpCommon=function(e,t){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var o={type:ke.EVENT_DRAG_STOPPED,target:t};this.eventService.dispatchEvent(o)}this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(e){return e()})),this.dragEndFunctions.length=0},Sa([U("loggerFactory")],o.prototype,"loggerFactory",void 0),Sa([U("mouseEventService")],o.prototype,"mouseEventService",void 0),Sa([B],o.prototype,"init",null),Sa([j],o.prototype,"removeAllListeners",null),o=Sa([W("dragService")],o)}(Le);(
|
234 |
|
235 |
|
236 |
|
237 |
|
238 |
|
239 |
|
240 | ma=exports.RowHighlightPosition||(exports.RowHighlightPosition={}))[ma.Above=0]="Above",ma[ma.Below=1]="Below",(
|
241 |
|
242 |
|
243 |
|
244 |
|
245 |
|
246 |
|
247 | Ca=exports.ClientSideRowModelSteps||(exports.ClientSideRowModelSteps={})).EVERYTHING="group",Ca.FILTER="filter",Ca.SORT="sort",Ca.MAP="map",Ca.AGGREGATE="aggregate",Ca.FILTER_AGGREGATES="filter_aggregates",Ca.PIVOT="pivot",Ca.NOTHING="nothing";
|
248 |
|
249 |
|
250 |
|
251 |
|
252 |
|
253 |
|
254 | var Ra=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};function Oa(e){var t=e;return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}var ba,Ta=function(){function e(){this.detailGridInfoMap={},this.destroyCalled=!1}return e.prototype.registerOverlayWrapperComp=function(e){this.overlayWrapperComp=e},e.prototype.registerSideBarComp=function(e){this.sideBarComp=e},e.prototype.init=function(){var e=this;switch(this.rowModel.getType()){case"clientSide":this.clientSideRowModel=this.rowModel;break;case"infinite":this.infiniteRowModel=this.rowModel;break;case"serverSide":this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()}))},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.__getContext=function(){return this.context},e.prototype.getSetterMethod=function(e){return"set"+e.charAt(0).toUpperCase()+e.substring(1)},e.prototype.__setProperty=function(e,t){this.gridOptionsService.set(e,t);var o=this.getSetterMethod(e);this[o]&&this[o](t)},e.prototype.addDetailGridInfo=function(e,t){this.detailGridInfoMap[e]=t},e.prototype.removeDetailGridInfo=function(e){this.detailGridInfoMap[e]=void 0},e.prototype.getDetailGridInfo=function(e){return this.detailGridInfoMap[e]},e.prototype.forEachDetailGridInfo=function(e){var o=0;c(this.detailGridInfoMap,(function(r,i){t(i)&&(e(i,o),o++)}))},e.prototype.getDataAsCsv=function(e){if(ee.assertRegistered(exports.ModuleNames.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){ee.assertRegistered(exports.ModuleNames.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getExcelExportMode=function(e){var t=this.gridOptionsService.get("defaultExcelExportParams");return Object.assign({exportMode:"xlsx"},t,e).exportMode},e.prototype.assertNotExcelMultiSheet=function(e,t){if(!ee.assertRegistered(exports.ModuleNames.ExcelExportModule,"api."+e))return!1;var o=this.getExcelExportMode(t);return this.excelCreator.getFactoryMode(o)!==exports.ExcelFactoryMode.MULTI_SHEET||(console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'"),!1)},e.prototype.getDataAsExcel=function(e){if(this.assertNotExcelMultiSheet("getDataAsExcel",e))return this.excelCreator.getDataAsExcel(e)},e.prototype.exportDataAsExcel=function(e){this.assertNotExcelMultiSheet("exportDataAsExcel",e)&&this.excelCreator.exportDataAsExcel(e)},e.prototype.getSheetDataForExcel=function(e){if(ee.assertRegistered(exports.ModuleNames.ExcelExportModule,"api.getSheetDataForExcel")){var t=this.getExcelExportMode(e);return this.excelCreator.setFactoryMode(exports.ExcelFactoryMode.MULTI_SHEET,t),this.excelCreator.getSheetDataForExcel(e)}},e.prototype.getMultipleSheetsAsExcel=function(e){if(ee.assertRegistered(exports.ModuleNames.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(e)},e.prototype.exportMultipleSheetsAsExcel=function(e){if(ee.assertRegistered(exports.ModuleNames.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(e)},e.prototype.setGridAriaProperty=function(e,t){if(e){var o=this.ctrlsService.getGridBodyCtrl().getGui(),r="aria-"+e;null===t?o.removeAttribute(r):o.setAttribute(r,t)}},e.prototype.logMissingRowModel=function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];console.error("AG Grid: api."+e+" can only be called when gridOptions.rowModelType is "+t.join(" or "))},e.prototype.setServerSideDatasource=function(e){this.serverSideRowModel?this.serverSideRowModel.setDatasource(e):this.logMissingRowModel("setServerSideDatasource","serverSide")},e.prototype.setCacheBlockSize=function(e){this.serverSideRowModel?(this.gridOptionsService.set("cacheBlockSize",e),this.serverSideRowModel.resetRootStore()):this.logMissingRowModel("setCacheBlockSize","serverSide")},e.prototype.setDatasource=function(e){this.gridOptionsService.isRowModelType("infinite")?this.rowModel.setDatasource(e):this.logMissingRowModel("setDatasource","infinite")},e.prototype.setViewportDatasource=function(e){this.gridOptionsService.isRowModelType("viewport")?this.rowModel.setViewportDatasource(e):this.logMissingRowModel("setViewportDatasource","viewport")},e.prototype.setRowData=function(e){null==this.immutableService?this.logMissingRowModel("setRowData","clientSide"):this.immutableService.isActive()?this.immutableService.setRowData(e):(this.selectionService.reset(),this.clientSideRowModel.setRowData(e))},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnModel.setColumnDefs(e,t),this.gridOptionsService.set("columnDefs",e,!0,{source:t})},e.prototype.setAutoGroupColumnDef=function(e,t){void 0===t&&(t="api"),this.gridOptionsService.set("autoGroupColumnDef",e,!0,{source:t})},e.prototype.setDefaultColDef=function(e,t){void 0===t&&(t="api"),this.gridOptionsService.set("defaultColDef",e,!0,{source:t})},e.prototype.setColumnTypes=function(e,t){void 0===t&&(t="api"),this.gridOptionsService.set("columnTypes",e,!0,{source:t})},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},e.prototype.setAlwaysShowHorizontalScroll=function(e){this.gridOptionsService.set("alwaysShowHorizontalScroll",e)},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsService.set("alwaysShowVerticalScroll",e)},e.prototype.refreshCells=function(e){void 0===e&&(e={}),this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={});var t=e?e.rowNodes:void 0;this.rowRenderer.redrawRows(t)},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsService.set("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(e){return e.refresh()}))},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.setRowNodeExpanded=function(e,t,o){e&&(o&&e.parent&&-1!==e.parent.level&&this.setRowNodeExpanded(e.parent,t,o),e.setExpanded(t))},e.prototype.onGroupExpandedOrCollapsed=function(){o(this.clientSideRowModel)?this.logMissingRowModel("onGroupExpandedOrCollapsed","clientSide"):this.clientSideRowModel.refreshModel({step:exports.ClientSideRowModelSteps.MAP})},e.prototype.refreshClientSideRowModel=function(e){o(this.clientSideRowModel)?this.logMissingRowModel("refreshClientSideRowModel","clientSide"):this.clientSideRowModel.refreshModel(e)},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsService.getRowHeightAsNumber(),headerHeight:this.columnModel.getHeaderHeight()}},e.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):this.logMissingRowModel("expandAll","clientSide","serverSide")},e.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):this.logMissingRowModel("expandAll","clientSide","serverSide")},e.prototype.addRenderedRowListener=function(e,t,o){this.rowRenderer.addRenderedRowListener(e,t,o)},e.prototype.getQuickFilter=function(){return this.gridOptionsService.get("quickFilterText")},e.prototype.setQuickFilter=function(e){this.gridOptionsService.set("quickFilterText",e)},e.prototype.setExcludeHiddenColumnsFromQuickFilter=function(e){this.gridOptionsService.set("excludeHiddenColumnsFromQuickFilter",e)},e.prototype.selectAll=function(e){void 0===e&&(e="apiSelectAll"),this.selectionService.selectAllRowNodes({source:e})},e.prototype.deselectAll=function(e){void 0===e&&(e="apiSelectAll"),this.selectionService.deselectAllRowNodes({source:e})},e.prototype.selectAllFiltered=function(e){void 0===e&&(e="apiSelectAllFiltered"),this.selectionService.selectAllRowNodes({source:e,justFiltered:!0})},e.prototype.deselectAllFiltered=function(e){void 0===e&&(e="apiSelectAllFiltered"),this.selectionService.deselectAllRowNodes({source:e,justFiltered:!0})},e.prototype.getServerSideSelectionState=function(){return o(this.serverSideRowModel)?(this.logMissingRowModel("getServerSideSelectionState","serverSide"),null):this.selectionService.getServerSideSelectionState()},e.prototype.setServerSideSelectionState=function(e){o(this.serverSideRowModel)?this.logMissingRowModel("setServerSideSelectionState","serverSide"):this.selectionService.setServerSideSelectionState(e)},e.prototype.selectAllOnCurrentPage=function(e){void 0===e&&(e="apiSelectAllCurrentPage"),this.selectionService.selectAllRowNodes({source:e,justCurrentPage:!0})},e.prototype.deselectAllOnCurrentPage=function(e){void 0===e&&(e="apiSelectAllCurrentPage"),this.selectionService.deselectAllRowNodes({source:e,justCurrentPage:!0})},e.prototype.sizeColumnsToFit=function(e){this.gridBodyCtrl.sizeColumnsToFit(e)},e.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},e.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){if(!o(this.clientSideRowModel))return this.selectionService.getBestCostNodeSelection();this.logMissingRowModel("getBestCostNodeSelection","clientSide")},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(e,t)},e.prototype.ensureIndexVisible=function(e,t){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){o(this.clientSideRowModel)?this.logMissingRowModel("forEachLeafNode","clientSide"):this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e,t){this.rowModel.forEachNode(e,t)},e.prototype.forEachNodeAfterFilter=function(e){o(this.clientSideRowModel)?this.logMissingRowModel("forEachNodeAfterFilter","clientSide"):this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){o(this.clientSideRowModel)?this.logMissingRowModel("forEachNodeAfterFilterAndSort","clientSide"):this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterInstance=function(e,t){var o=this.getFilterInstanceImpl(e,(function(e){if(t){var o=Oa(e);t(o)}}));return Oa(o)},e.prototype.getFilterInstanceImpl=function(e,t){var o=this.columnModel.getPrimaryColumn(e);if(o){var r=this.filterManager.getFilterComponent(o,"NO_UI"),i=r&&r.resolveNow(null,(function(e){return e}));return i?setTimeout(t,0,i):r&&r.then((function(e){t(e)})),i}},e.prototype.destroyFilter=function(e){var t=this.columnModel.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"api")},e.prototype.getStatusPanel=function(e){if(ee.assertRegistered(exports.ModuleNames.StatusBarModule,"api.getStatusPanel"))return Oa(this.statusBarService.getStatusPanel(e))},e.prototype.getColumnDef=function(e){var t=this.columnModel.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,o){this.focusService.setFocusedCell({rowIndex:e,column:t,rowPinned:o,forceBrowserFocus:!0})},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsService.set("suppressRowDrag",e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsService.set("suppressMoveWhenRowDragging",e)},e.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsService.set("suppressRowClickSelection",e)},e.prototype.addRowDropZone=function(e){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(e)},e.prototype.removeRowDropZone=function(e){var t=this.dragAndDropService.findExternalZone(e);t&&this.dragAndDropService.removeDropTarget(t)},e.prototype.getRowDropZoneParams=function(e){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsService.set("headerHeight",e)},e.prototype.setDomLayout=function(e){this.gridOptionsService.set("domLayout",e)},e.prototype.setEnableCellTextSelection=function(e){this.gridBodyCtrl.setCellTextSelection(e)},e.prototype.setFillHandleDirection=function(e){this.gridOptionsService.set("fillHandleDirection",e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsService.set("groupHeaderHeight",e)},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsService.set("floatingFiltersHeight",e)},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsService.set("pivotHeaderHeight",e)},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsService.set("pivotGroupHeaderHeight",e)},e.prototype.setPivotMode=function(e){this.columnModel.setPivotMode(e)},e.prototype.setAnimateRows=function(e){this.gridOptionsService.set("animateRows",e)},e.prototype.setIsExternalFilterPresent=function(e){this.gridOptionsService.set("isExternalFilterPresent",e)},e.prototype.setDoesExternalFilterPass=function(e){this.gridOptionsService.set("doesExternalFilterPass",e)},e.prototype.setNavigateToNextCell=function(e){this.gridOptionsService.set("navigateToNextCell",e)},e.prototype.setTabToNextCell=function(e){this.gridOptionsService.set("tabToNextCell",e)},e.prototype.setTabToNextHeader=function(e){this.gridOptionsService.set("tabToNextHeader",e)},e.prototype.setNavigateToNextHeader=function(e){this.gridOptionsService.set("navigateToNextHeader",e)},e.prototype.setRowGroupPanelShow=function(e){this.gridOptionsService.set("rowGroupPanelShow",e)},e.prototype.setGroupRowAggNodes=function(e){tt("27.2","setGroupRowAggNodes","setGetGroupRowAgg"),this.gridOptionsService.set("groupRowAggNodes",e)},e.prototype.setGetGroupRowAgg=function(e){this.gridOptionsService.set("getGroupRowAgg",e)},e.prototype.setGetBusinessKeyForNode=function(e){this.gridOptionsService.set("getBusinessKeyForNode",e)},e.prototype.setGetChildCount=function(e){this.gridOptionsService.set("getChildCount",e)},e.prototype.setProcessRowPostCreate=function(e){this.gridOptionsService.set("processRowPostCreate",e)},e.prototype.setGetRowNodeId=function(e){tt("27.1","setGetRowNodeId","setGetRowId"),this.gridOptionsService.set("getRowNodeId",e)},e.prototype.setGetRowId=function(e){this.gridOptionsService.set("getRowId",e)},e.prototype.setGetRowClass=function(e){this.gridOptionsService.set("getRowClass",e)},e.prototype.setIsFullWidthCell=function(e){tt("27.2","setIsFullWidthCell","setIsFullWidthRow"),this.gridOptionsService.set("isFullWidthCell",e)},e.prototype.setIsFullWidthRow=function(e){this.gridOptionsService.set("isFullWidthRow",e)},e.prototype.setIsRowSelectable=function(e){this.gridOptionsService.set("isRowSelectable",e)},e.prototype.setIsRowMaster=function(e){this.gridOptionsService.set("isRowMaster",e)},e.prototype.setPostSort=function(e){tt("27.2","setPostSort","setPostSortRows"),this.gridOptionsService.set("postSort",e)},e.prototype.setPostSortRows=function(e){this.gridOptionsService.set("postSortRows",e)},e.prototype.setGetDocument=function(e){this.gridOptionsService.set("getDocument",e)},e.prototype.setGetContextMenuItems=function(e){this.gridOptionsService.set("getContextMenuItems",e)},e.prototype.setGetMainMenuItems=function(e){this.gridOptionsService.set("getMainMenuItems",e)},e.prototype.setProcessCellForClipboard=function(e){this.gridOptionsService.set("processCellForClipboard",e)},e.prototype.setSendToClipboard=function(e){this.gridOptionsService.set("sendToClipboard",e)},e.prototype.setProcessCellFromClipboard=function(e){this.gridOptionsService.set("processCellFromClipboard",e)},e.prototype.setProcessSecondaryColDef=function(e){tt("28.0","setProcessSecondaryColDef","setProcessPivotResultColDef"),this.setProcessPivotResultColDef(e)},e.prototype.setProcessSecondaryColGroupDef=function(e){tt("28.0","setProcessSecondaryColGroupDef","setProcessPivotResultColGroupDef"),this.setProcessPivotResultColGroupDef(e)},e.prototype.setProcessPivotResultColDef=function(e){this.gridOptionsService.set("processPivotResultColDef",e)},e.prototype.setProcessPivotResultColGroupDef=function(e){this.gridOptionsService.set("processPivotResultColGroupDef",e)},e.prototype.setPostProcessPopup=function(e){this.gridOptionsService.set("postProcessPopup",e)},e.prototype.setDefaultGroupOrderComparator=function(e){tt("27.2","setDefaultGroupOrderComparator","setInitialGroupOrderComparator"),this.gridOptionsService.set("defaultGroupOrderComparator",e)},e.prototype.setInitialGroupOrderComparator=function(e){this.gridOptionsService.set("initialGroupOrderComparator",e)},e.prototype.setGetChartToolbarItems=function(e){this.gridOptionsService.set("getChartToolbarItems",e)},e.prototype.setPaginationNumberFormatter=function(e){this.gridOptionsService.set("paginationNumberFormatter",e)},e.prototype.setGetServerSideStoreParams=function(e){tt("28.0","setGetServerSideStoreParams","setGetServerSideGroupLevelParams"),this.setGetServerSideGroupLevelParams(e)},e.prototype.setGetServerSideGroupLevelParams=function(e){this.gridOptionsService.set("getServerSideGroupLevelParams",e)},e.prototype.setIsServerSideGroupOpenByDefault=function(e){this.gridOptionsService.set("isServerSideGroupOpenByDefault",e)},e.prototype.setIsApplyServerSideTransaction=function(e){this.gridOptionsService.set("isApplyServerSideTransaction",e)},e.prototype.setIsServerSideGroup=function(e){this.gridOptionsService.set("isServerSideGroup",e)},e.prototype.setGetServerSideGroupKey=function(e){this.gridOptionsService.set("getServerSideGroupKey",e)},e.prototype.setGetRowStyle=function(e){this.gridOptionsService.set("getRowStyle",e)},e.prototype.setGetRowHeight=function(e){this.gridOptionsService.set("getRowHeight",e)},e.prototype.assertSideBarLoaded=function(e){return ee.assertRegistered(exports.ModuleNames.SideBarModule,"api."+e)},e.prototype.isSideBarVisible=function(){return this.assertSideBarLoaded("isSideBarVisible")&&this.sideBarComp.isDisplayed()},e.prototype.setSideBarVisible=function(e){this.assertSideBarLoaded("setSideBarVisible")&&this.sideBarComp.setDisplayed(e)},e.prototype.setSideBarPosition=function(e){this.assertSideBarLoaded("setSideBarPosition")&&this.sideBarComp.setSideBarPosition(e)},e.prototype.openToolPanel=function(e){this.assertSideBarLoaded("openToolPanel")&&this.sideBarComp.openToolPanel(e,"api")},e.prototype.closeToolPanel=function(){this.assertSideBarLoaded("closeToolPanel")&&this.sideBarComp.close("api")},e.prototype.getOpenedToolPanel=function(){return this.assertSideBarLoaded("getOpenedToolPanel")?this.sideBarComp.openedItem():null},e.prototype.refreshToolPanel=function(){this.assertSideBarLoaded("refreshToolPanel")&&this.sideBarComp.refresh()},e.prototype.isToolPanelShowing=function(){return this.assertSideBarLoaded("isToolPanelShowing")&&this.sideBarComp.isToolPanelShowing()},e.prototype.getToolPanelInstance=function(e){if(this.assertSideBarLoaded("getToolPanelInstance"))return Oa(this.sideBarComp.getToolPanelInstance(e))},e.prototype.getSideBar=function(){if(this.assertSideBarLoaded("getSideBar"))return this.sideBarComp.getDef()},e.prototype.setSideBar=function(e){this.gridOptionsService.set("sideBar",e)},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsService.set("suppressClipboardPaste",e)},e.prototype.resetRowHeights=function(){if(t(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");this.clientSideRowModel.resetRowHeights()}},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsService.set("groupRemoveSingleChildren",e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsService.set("groupRemoveLowestSingleChildren",e)},e.prototype.setGroupDisplayType=function(e){this.gridOptionsService.set("groupDisplayType",e)},e.prototype.setRowClass=function(e){this.gridOptionsService.set("rowClass",e)},e.prototype.setDeltaSort=function(e){this.gridOptionsService.set("deltaSort",e)},e.prototype.setRowCount=function(e,t){if(this.serverSideRowModel)return this.columnModel.isRowGroupEmpty()?void this.serverSideRowModel.setRowCount(e,t):void console.error("AG Grid: setRowCount cannot be used while using row grouping.");this.infiniteRowModel?this.infiniteRowModel.setRowCount(e,t):this.logMissingRowModel("setRowCount","infinite","serverSide")},e.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var r=this.columnModel.getPrimaryColumn(e);return o(r)&&(r=this.columnModel.getGridColumn(e)),o(r)?null:this.valueService.getValue(r,t)},e.prototype.addEventListener=function(e,t){var o=this.gridOptionsService.useAsyncEvents();this.eventService.addEventListener(e,t,o)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsService.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var o=this.gridOptionsService.useAsyncEvents();this.eventService.removeEventListener(e,t,o)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsService.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var e=this.ctrlsService.getGridCtrl();e&&e.destroyGridUi(),this.context.destroy()}},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(w.bind(window,this,"Grid API"),100)},e.prototype.warnIfDestroyed=function(e){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+e+" was called on a grid that was destroyed."),this.destroyCalled},e.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.filterManager.resetQuickFilterCache()},e.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(ee.assertRegistered(exports.ModuleNames.RangeSelectionModule,"api.getCellRanges"),null)},e.prototype.addCellRange=function(e){this.rangeService?this.rangeService.addCellRange(e):ee.assertRegistered(exports.ModuleNames.RangeSelectionModule,"api.addCellRange")},e.prototype.clearRangeSelection=function(){this.rangeService&&this.rangeService.removeAllCellRanges(),ee.assertRegistered(exports.ModuleNames.RangeSelectionModule,"gridApi.clearRangeSelection")},e.prototype.undoCellEditing=function(){this.undoRedoService.undo("api")},e.prototype.redoCellEditing=function(){this.undoRedoService.redo("api")},e.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},e.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},e.prototype.getChartModels=function(){if(ee.assertRegistered(exports.ModuleNames.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},e.prototype.getChartRef=function(e){if(ee.assertRegistered(exports.ModuleNames.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(e)},e.prototype.getChartImageDataURL=function(e){if(ee.assertRegistered(exports.ModuleNames.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(e)},e.prototype.downloadChart=function(e){if(ee.assertRegistered(exports.ModuleNames.GridChartsModule,"api.downloadChart"))return this.chartService.downloadChart(e)},e.prototype.openChartToolPanel=function(e){if(ee.assertRegistered(exports.ModuleNames.GridChartsModule,"api.openChartToolPanel"))return this.chartService.openChartToolPanel(e)},e.prototype.closeChartToolPanel=function(e){if(ee.assertRegistered(exports.ModuleNames.GridChartsModule,"api.closeChartToolPanel"))return this.chartService.closeChartToolPanel(e.chartId)},e.prototype.createRangeChart=function(e){if(ee.assertRegistered(exports.ModuleNames.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(e)},e.prototype.createCrossFilterChart=function(e){if(ee.assertRegistered(exports.ModuleNames.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(e)},e.prototype.restoreChart=function(e,t){if(ee.assertRegistered(exports.ModuleNames.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(e,t)},e.prototype.createPivotChart=function(e){if(ee.assertRegistered(exports.ModuleNames.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(e)},e.prototype.copyToClipboard=function(e){ee.assertRegistered(exports.ModuleNames.ClipboardModule,"api.copyToClipboard")&&this.clipboardService.copyToClipboard(e)},e.prototype.cutToClipboard=function(e){ee.assertRegistered(exports.ModuleNames.ClipboardModule,"api.cutToClipboard")&&this.clipboardService.cutToClipboard(e)},e.prototype.copySelectedRowsToClipboard=function(e){ee.assertRegistered(exports.ModuleNames.ClipboardModule,"api.copySelectedRowsToClipboard")&&this.clipboardService.copySelectedRowsToClipboard(e)},e.prototype.copySelectedRangeToClipboard=function(e){ee.assertRegistered(exports.ModuleNames.ClipboardModule,"api.copySelectedRangeToClipboard")&&this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){ee.assertRegistered(exports.ModuleNames.ClipboardModule,"api.copySelectedRangeDown")&&this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var o=this.columnModel.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(o,t,"columnMenu")},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var o=this.columnModel.getGridColumn(e);o||(o=this.columnModel.getPrimaryColumn(e)),o?this.menuFactory.showMenuAfterMouseEvent(o,t):console.error("AG Grid: column '"+e+"' not found")},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsService.set("popupParent",e)},e.prototype.tabToNextCell=function(e){return this.navigationService.tabToNextCell(!1,e)},e.prototype.tabToPreviousCell=function(e){return this.navigationService.tabToNextCell(!0,e)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e).map(Oa)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e).map(Oa)},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnModel.getGridColumn(e.colKey);if(t){var o={rowIndex:e.rowIndex,rowPinned:e.rowPinned||null,column:t};null==e.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e.rowIndex);var r=this.navigationService.getCellByPosition(o);r&&r.startRowOrCellEdit(e.key,e.charPress)}else console.warn("AG Grid: no column found for "+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.applyServerSideTransaction=function(e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(e);this.logMissingRowModel("applyServerSideTransaction","serverSide")},e.prototype.applyServerSideTransactionAsync=function(e,t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(e,t);this.logMissingRowModel("applyServerSideTransactionAsync","serverSide")},e.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():this.logMissingRowModel("retryServerSideLoads","serverSide")},e.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();this.logMissingRowModel("flushServerSideAsyncTransactions","serverSide")},e.prototype.applyTransaction=function(e){if(this.clientSideRowModel){var t=this.clientSideRowModel.updateRowData(e);return this.rowRenderer.refreshFullWidthRows(t.update),this.gridOptionsService.is("suppressChangeDetection")||this.rowRenderer.refreshCells(),t}this.logMissingRowModel("applyTransaction","clientSide")},e.prototype.applyTransactionAsync=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):this.logMissingRowModel("applyTransactionAsync","clientSide")},e.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():this.logMissingRowModel("flushAsyncTransactions","clientSide")},e.prototype.setSuppressModelUpdateAfterUpdateTransaction=function(e){this.gridOptionsService.set("suppressModelUpdateAfterUpdateTransaction",e)},e.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():this.logMissingRowModel("refreshInfiniteCache","infinite")},e.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():this.logMissingRowModel("purgeInfiniteCache","infinite")},e.prototype.refreshServerSide=function(e){this.serverSideRowModel?this.serverSideRowModel.refreshStore(e):this.logMissingRowModel("refreshServerSide","serverSide")},e.prototype.refreshServerSideStore=function(e){return tt("28.0","refreshServerSideStore","refreshServerSide"),this.refreshServerSide(e)},e.prototype.getServerSideStoreState=function(){return tt("28.0","getServerSideStoreState","getServerSideGroupLevelState"),this.getServerSideGroupLevelState()},e.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(this.logMissingRowModel("getServerSideGroupLevelState","serverSide"),[])},e.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();this.logMissingRowModel("getInfiniteRowCount","infinite")},e.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();this.logMissingRowModel("isLastRowIndexKnown","infinite")},e.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.setPagination=function(e){this.gridOptionsService.set("pagination",e)},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsService.set("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},Ra([z("immutableService")],e.prototype,"immutableService",void 0),Ra([z("csvCreator")],e.prototype,"csvCreator",void 0),Ra([z("excelCreator")],e.prototype,"excelCreator",void 0),Ra([U("rowRenderer")],e.prototype,"rowRenderer",void 0),Ra([U("navigationService")],e.prototype,"navigationService",void 0),Ra([U("filterManager")],e.prototype,"filterManager",void 0),Ra([U("columnModel")],e.prototype,"columnModel",void 0),Ra([U("selectionService")],e.prototype,"selectionService",void 0),Ra([U("gridOptionsService")],e.prototype,"gridOptionsService",void 0),Ra([U("valueService")],e.prototype,"valueService",void 0),Ra([U("alignedGridsService")],e.prototype,"alignedGridsService",void 0),Ra([U("eventService")],e.prototype,"eventService",void 0),Ra([U("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Ra([U("context")],e.prototype,"context",void 0),Ra([U("rowModel")],e.prototype,"rowModel",void 0),Ra([U("sortController")],e.prototype,"sortController",void 0),Ra([U("paginationProxy")],e.prototype,"paginationProxy",void 0),Ra([U("focusService")],e.prototype,"focusService",void 0),Ra([U("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Ra([z("rangeService")],e.prototype,"rangeService",void 0),Ra([z("clipboardService")],e.prototype,"clipboardService",void 0),Ra([z("aggFuncService")],e.prototype,"aggFuncService",void 0),Ra([U("menuFactory")],e.prototype,"menuFactory",void 0),Ra([z("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Ra([U("valueCache")],e.prototype,"valueCache",void 0),Ra([U("animationFrameService")],e.prototype,"animationFrameService",void 0),Ra([z("statusBarService")],e.prototype,"statusBarService",void 0),Ra([z("chartService")],e.prototype,"chartService",void 0),Ra([z("undoRedoService")],e.prototype,"undoRedoService",void 0),Ra([z("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),Ra([z("ssrmTransactionManager")],e.prototype,"serverSideTransactionManager",void 0),Ra([U("ctrlsService")],e.prototype,"ctrlsService",void 0),Ra([B],e.prototype,"init",null),Ra([j],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=Ra([W("gridApi")],e)}(),Pa=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Da=function(){return(Da=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},_a=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Aa=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.allColumnFilters=new Map,t.activeAggregateFilters=[],t.activeColumnFilters=[],t.quickFilter=null,t.quickFilterParts=null,t.processingFilterChange=!1,t}var r;return Pa(o,e),r=o,o.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,ke.EVENT_GRID_COLUMNS_CHANGED,(function(){return e.onColumnsChanged()})),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_VALUE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_PIVOT_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){e.refreshFiltersForAggregations(),e.resetQuickFilterCache()})),this.addManagedListener(this.eventService,ke.EVENT_NEW_COLUMNS_LOADED,(function(){return e.resetQuickFilterCache()})),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return e.resetQuickFilterCache()})),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_VISIBLE,(function(){e.gridOptionsService.is("excludeHiddenColumnsFromQuickFilter")&&e.resetQuickFilterCache()})),this.addManagedPropertyListener("quickFilterText",(function(t){return e.setQuickFilter(t.currentValue)})),this.addManagedPropertyListener("excludeHiddenColumnsFromQuickFilter",(function(){return e.onExcludeHiddenColumnsFromQuickFilterChanged()})),this.quickFilter=this.parseQuickFilter(this.gridOptionsService.get("quickFilterText")),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsService.is("allowShowChangeAfterFilter"),this.externalFilterPresent=this.isExternalFilterPresentCallback()},o.prototype.isExternalFilterPresentCallback=function(){var e=this.gridOptionsService.getCallback("isExternalFilterPresent");return"function"==typeof e&&e({})},o.prototype.doesExternalFilterPass=function(e){var t=this.gridOptionsService.get("doesExternalFilterPass");return"function"==typeof t&&t(e)},o.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},o.prototype.setFilterModel=function(e){var t=this,o=[],r=this.getFilterModel();if(e){var i=zr(Object.keys(e));this.allColumnFilters.forEach((function(r,n){var s=e[n];o.push(t.setModelOnFilterWrapper(r.filterPromise,s)),i.delete(n)})),i.forEach((function(r){var i=t.columnModel.getPrimaryColumn(r)||t.columnModel.getGridColumn(r);if(i)if(i.isFilterAllowed()){var n=t.getOrCreateFilterWrapper(i,"NO_UI");n?o.push(t.setModelOnFilterWrapper(n.filterPromise,e[r])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+r)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+r);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+r)}))}else this.allColumnFilters.forEach((function(e){o.push(t.setModelOnFilterWrapper(e.filterPromise,null))}));Zr.all(o).then((function(){var e=t.getFilterModel(),o=[];t.allColumnFilters.forEach((function(t,i){var n=r?r[i]:null,s=e?e[i]:null;Qr.jsonEquals(n,s)||o.push(t.column)})),o.length>0&&t.onFilterChanged({columns:o})}))},o.prototype.setModelOnFilterWrapper=function(e,t){return new Zr((function(o){e.then((function(e){"function"!=typeof e.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),o()),(e.setModel(t)||Zr.resolve()).then((function(){return o()}))}))}))},o.prototype.getFilterModel=function(){var e={};return this.allColumnFilters.forEach((function(o,r){var i=o.filterPromise.resolveNow(null,(function(e){return e}));if(null==i)return null;if("function"==typeof i.getModel){var n=i.getModel();t(n)&&(e[r]=n)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")})),e},o.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},o.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},o.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},o.prototype.doAggregateFiltersPass=function(e,t){return this.doColumnFiltersPass(e,t,!0)},o.prototype.updateActiveFilters=function(){var e=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var t=function(e){return!!e&&(e.isFilterActive?e.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},o=!!this.gridOptionsService.getGroupAggFiltering();this.allColumnFilters.forEach((function(r){if(r.filterPromise.resolveNow(!1,t)){var i=r.filterPromise.resolveNow(null,(function(e){return e}));!function(t){if(!t.isPrimary())return!0;var r=!e.columnModel.isPivotActive();return!(!t.isValueActive()||!r)&&(!!e.columnModel.isPivotMode()||o)}(r.column)?e.activeColumnFilters.push(i):e.activeAggregateFilters.push(i)}}))},o.prototype.updateFilterFlagInColumns=function(e,t){this.allColumnFilters.forEach((function(o){var r=o.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));o.column.setFilterActive(r,e,t)}))},o.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},o.prototype.doColumnFiltersPass=function(e,t,o){for(var r=e.data,i=e.aggData,n=o?this.activeAggregateFilters:this.activeColumnFilters,s=o?i:r,a=0;a<n.length;a++){var l=n[a];if(null!=l&&l!==t){if("function"!=typeof l.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!l.doesFilterPass({node:e,data:s}))return!1}}return!0},o.prototype.parseQuickFilter=function(e){return t(e)?this.gridOptionsService.isRowModelType("clientSide")?e.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},o.prototype.setQuickFilter=function(e){if(null==e||"string"==typeof e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())}else console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof e)},o.prototype.resetQuickFilterCache=function(){this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},o.prototype.onExcludeHiddenColumnsFromQuickFilterChanged=function(){this.columnModel.refreshQuickFilterColumns(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.onFilterChanged()},o.prototype.refreshFiltersForAggregations=function(){this.gridOptionsService.getGroupAggFiltering()&&this.onFilterChanged()},o.prototype.callOnFilterChangedOutsideRenderCycle=function(e){var t=this;void 0===e&&(e={});var o=function(){return t.onFilterChanged(e)};this.rowRenderer.isRefreshInProgress()?setTimeout(o,0):o()},o.prototype.onFilterChanged=function(e){void 0===e&&(e={});var t=e.filterInstance,o=e.additionalEventAttributes,r=e.columns;this.updateDependantFilters(),this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",o),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.allColumnFilters.forEach((function(e){e.filterPromise&&e.filterPromise.then((function(e){e&&e!==t&&e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));var i={type:ke.EVENT_FILTER_CHANGED,columns:r||[]};o&&m(i,o),this.processingFilterChange=!0,this.eventService.dispatchEvent(i),this.processingFilterChange=!1},o.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},o.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},o.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})},o.prototype.doesRowPassQuickFilterNoCache=function(e,o){var r=this;return this.columnModel.getAllColumnsForQuickFilter().some((function(i){var n=r.getQuickFilterTextForColumn(i,e);return t(n)&&n.indexOf(o)>=0}))},o.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},o.prototype.doesRowPassQuickFilter=function(e){var t=this,o=this.gridOptionsService.is("cacheQuickFilter");return this.quickFilterParts.every((function(r){return o?t.doesRowPassQuickFilterCache(e,r):t.doesRowPassQuickFilterNoCache(e,r)}))},o.prototype.doesRowPassAggregateFilters=function(e){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))},o.prototype.doesRowPassFilter=function(e){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e.rowNode))&&(!(this.isExternalFilterPresent()&&!this.doesExternalFilterPass(e.rowNode))&&!(this.isColumnFilterPresent()&&!this.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip)))},o.prototype.getQuickFilterTextForColumn=function(e,o){var r=this.valueService.getValue(e,o,!0),i=e.getColDef();if(i.getQuickFilterText){var n={value:r,node:o,data:o.data,column:e,colDef:i,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};r=i.getQuickFilterText(n)}return t(r)?r.toString().toUpperCase():null},o.prototype.aggregateRowForQuickFilter=function(e){var o=this,i=[];this.columnModel.getAllColumnsForQuickFilter().forEach((function(r){var n=o.getQuickFilterTextForColumn(r,e);t(n)&&i.push(n)})),e.quickFilterAggregateText=i.join(r.QUICK_FILTER_SEPARATOR)},o.prototype.onNewRowsLoaded=function(e){this.allColumnFilters.forEach((function(e){e.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e,{afterDataChange:!0}),this.updateActiveFilters()},o.prototype.createValueGetter=function(e){var t=this;return function(o){var r=o.node;return t.valueService.getValue(e,r,!0)}},o.prototype.getFilterComponent=function(e,t,o){var r;if(void 0===o&&(o=!0),o)return(null===(r=this.getOrCreateFilterWrapper(e,t))||void 0===r?void 0:r.filterPromise)||null;var i=this.cachedFilter(e);return i?i.filterPromise:null},o.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},o.prototype.getOrCreateFilterWrapper=function(e,t){if(!e.isFilterAllowed())return null;var o=this.cachedFilter(e);return o?"NO_UI"!==t&&this.putIntoGui(o,t):(o=this.createFilterWrapper(e,t),this.allColumnFilters.set(e.getColId(),o)),o},o.prototype.cachedFilter=function(e){return this.allColumnFilters.get(e.getColId())},o.prototype.createFilterInstance=function(e){var t,o=this,r=ee.isRegistered(exports.ModuleNames.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",i=e.getColDef(),n=Da(Da({},this.createFilterParams(e,i)),{filterModifiedCallback:function(){var r={type:ke.EVENT_FILTER_MODIFIED,column:e,filterInstance:t};o.eventService.dispatchEvent(r)},filterChangedCallback:function(r){var i={filterInstance:t,additionalEventAttributes:r,columns:[e]};o.callOnFilterChangedOutsideRenderCycle(i)},doesRowPassOtherFilter:function(e){return o.doesRowPassOtherFilters(t,e)}}),s=this.userComponentFactory.getFilterDetails(i,n,r);if(!s)return null;var a=s.newAgStackInstance();return a&&a.then((function(e){return t=e})),a},o.prototype.createFilterParams=function(e,t){return{column:e,colDef:p(t),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(e),doesRowPassOtherFilter:function(){return!0},api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},o.prototype.createFilterWrapper=function(e,t){var o={column:e,filterPromise:null,compiledElement:null,guiPromise:Zr.resolve(null)};return o.filterPromise=this.createFilterInstance(e),o.filterPromise&&this.putIntoGui(o,t),o},o.prototype.putIntoGui=function(e,o){var r=this,i=document.createElement("div");i.className="ag-filter",e.guiPromise=new Zr((function(n){e.filterPromise.then((function(s){var a=s.getGui();t(a)||console.warn("AG Grid: getGui method from filter returned "+a+", it should be a DOM element or an HTML template string."),"string"==typeof a&&(a=dr(a)),i.appendChild(a),n(i);var l={type:ke.EVENT_FILTER_OPENED,column:e.column,source:o,eGui:i};r.eventService.dispatchEvent(l)}))}))},o.prototype.onColumnsChanged=function(){var e=this,t=[];this.allColumnFilters.forEach((function(o,r){(o.column.isPrimary()?e.columnModel.getPrimaryColumn(r):e.columnModel.getGridColumn(r))||(t.push(o.column),e.disposeFilterWrapper(o,"columnChanged"))})),t.length>0?this.onFilterChanged({columns:t}):this.updateDependantFilters()},o.prototype.updateDependantFilters=function(){var e=this,t=this.columnModel.getGroupAutoColumns();null==t||t.forEach((function(t){"agGroupColumnFilter"===t.getColDef().filter&&e.getOrCreateFilterWrapper(t,"NO_UI")}))},o.prototype.isFilterAllowed=function(e){var t,o;if(!e.isFilterAllowed())return!1;var r=this.allColumnFilters.get(e.getColId());return null===(o=null===(t=null==r?void 0:r.filterPromise)||void 0===t?void 0:t.resolveNow(!0,(function(e){var t,o;return"function"!=typeof(null===(t=e)||void 0===t?void 0:t.isFilterAllowed)||(null===(o=e)||void 0===o?void 0:o.isFilterAllowed())})))||void 0===o||o},o.prototype.getFloatingFilterCompDetails=function(e,t){var o=this,r=e.getColDef(),i=this.createFilterParams(e,r),n=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(r,sa,i),s=this.userComponentFactory.getDefaultFloatingFilterType(r);null==s&&(s="agReadOnlyFloatingFilter");var a={column:e,filterParams:n,currentParentModel:function(){return o.getCurrentFloatingFilterParentModel(e)},parentFilterInstance:function(t){var r=o.getFilterComponent(e,"NO_UI");null!=r&&r.then((function(e){t(Oa(e))}))},showParentFilter:t,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(r,a,s)},o.prototype.getCurrentFloatingFilterParentModel=function(e){var t=this.getFilterComponent(e,"NO_UI",!1);return t?t.resolveNow(null,(function(e){return e&&e.getModel()})):null},o.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var o=this.allColumnFilters.get(e.getColId());o&&(this.disposeFilterWrapper(o,t),this.onFilterChanged({columns:[e]}))},o.prototype.disposeFilterWrapper=function(e,t){var o=this;e.filterPromise.then((function(r){(r.setModel(null)||Zr.resolve()).then((function(){o.getContext().destroyBean(r),e.column.setFilterActive(!1,"filterDestroyed"),o.allColumnFilters.delete(e.column.getColId());var i={type:ke.EVENT_FILTER_DESTROYED,source:t,column:e.column};o.eventService.dispatchEvent(i)}))}))},o.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.allColumnFilters.forEach((function(e){return t.disposeFilterWrapper(e,"gridDestroyed")}))},o.QUICK_FILTER_SEPARATOR="\n",_a([U("valueService")],o.prototype,"valueService",void 0),_a([U("columnModel")],o.prototype,"columnModel",void 0),_a([U("rowModel")],o.prototype,"rowModel",void 0),_a([U("userComponentFactory")],o.prototype,"userComponentFactory",void 0),_a([U("rowRenderer")],o.prototype,"rowRenderer",void 0),_a([B],o.prototype,"init",null),o=r=_a([W("filterManager")],o)}(Le),Na=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ma=function(e){function t(t,o){var r=e.call(this,t)||this;return r.ctrl=o,r}return Na(t,e),t.prototype.getCtrl=function(){return this.ctrl},t}(li),Fa=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),La=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},xa=function(e){function t(o){return e.call(this,t.TEMPLATE,o)||this}return Fa(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),o={addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},addOrRemoveBodyCssClass:function(t,o){return e.eFloatingFilterBody.classList.toggle(t,o)},setButtonWrapperDisplayed:function(t){return Jo(e.eButtonWrapper,t)},setCompDetails:function(t){return e.setCompDetails(t)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(e){return t.style.width=e},setMenuIcon:function(t){return e.eButtonShowMainFilter.appendChild(t)}};this.ctrl.setComp(o,t,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var t=this;this.compPromise=e.newAgStackInstance(),this.compPromise.then((function(e){return t.afterCompCreated(e)}))},t.prototype.afterCompCreated=function(e){var t=this;e&&(this.addDestroyFunc((function(){return t.context.destroyBean(e)})),this.isAlive()&&(this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()))},t.TEMPLATE='<div class="ag-header-cell ag-floating-filter" role="gridcell" tabindex="-1">\n <div ref="eFloatingFilterBody" role="presentation"></div>\n <div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">\n <button type="button" aria-label="Open Filter Menu" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>\n </div>\n </div>',La([ui("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),La([ui("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),La([ui("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),La([B],t.prototype,"postConstruct",null),t}(Ma),Ia=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ga=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};
|
255 |
|
256 |
|
257 |
|
258 |
|
259 |
|
260 | (ba=exports.LayoutCssClasses||(exports.LayoutCssClasses={})).AUTO_HEIGHT="ag-layout-auto-height",ba.NORMAL="ag-layout-normal",ba.PRINT="ag-layout-print";var Ha,Va=function(e){function t(t){var o=e.call(this)||this;return o.view=t,o}return Ia(t,e),t.prototype.postConstruct=function(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.getDomLayout(),t={autoHeight:"autoHeight"===e,normal:"normal"===e,print:"print"===e},o=t.autoHeight?exports.LayoutCssClasses.AUTO_HEIGHT:t.print?exports.LayoutCssClasses.PRINT:exports.LayoutCssClasses.NORMAL;this.view.updateLayoutClasses(o,t)},t.prototype.getDomLayout=function(){var e,t=null!==(e=this.gridOptionsService.get("domLayout"))&&void 0!==e?e:"normal";return-1===["normal","print","autoHeight"].indexOf(t)?(O((function(){return console.warn("AG Grid: "+t+" is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.")}),"warn about dom layout values"),"normal"):t},Ga([B],t.prototype,"postConstruct",null),t}(Le),ka=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ba=function(){return(Ba=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},ja=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Wa=function(e){function t(t){var o=e.call(this)||this;return o.scrollLeft=-1,o.nextScrollTop=-1,o.scrollTop=-1,o.eBodyViewport=t,o.resetLastHScrollDebounced=M((function(){return o.eLastHScroll=null}),500),o.resetLastVScrollDebounced=M((function(){return o.eLastVScroll=null}),500),o}return ka(t,e),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()}))},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollComp(),t=this.ctrlsService.getFakeVScrollComp();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onHScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHScroll.bind(this));var o=this.gridOptionsService.is("debounceVerticalScrollbar"),r=o?M(this.onVScroll.bind(this),100):this.onVScroll.bind(this),i=o?M(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",r),this.addManagedListener(t.getViewport(),"scroll",i)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){if(!(null==this.centerRowContainerCtrl)){void 0===e&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,o=this.ctrlsService.getTopCenterRowContainerCtrl(),r=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),i=this.ctrlsService.getBottomCenterRowContainerCtrl(),n=this.ctrlsService.getFakeHScrollComp();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(t),i.setContainerTranslateX(t),o.setContainerTranslateX(t),r.setContainerTranslateX(t);var s=this.centerRowContainerCtrl.getViewportElement();lr(this.eLastHScroll===s?n.getViewport():this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl)}},t.prototype.isControllingHScroll=function(e){return this.eLastHScroll?e===this.eLastHScroll:(this.eLastHScroll=e,!0)},t.prototype.isControllingVScroll=function(e){return this.eLastVScroll?e===this.eLastVScroll:(this.eLastVScroll=e,!0)},t.prototype.onFakeHScroll=function(){var e=this.ctrlsService.getFakeHScrollComp().getViewport();this.isControllingHScroll(e)&&this.onHScrollCommon(e)},t.prototype.onHScroll=function(){var e=this.centerRowContainerCtrl.getViewportElement();this.isControllingHScroll(e)&&this.onHScrollCommon(e)},t.prototype.onHScrollCommon=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;this.shouldBlockScrollUpdate("horizontal",t,!0)||(this.doHorizontalScroll(Math.round(ar(e,this.enableRtl))),this.resetLastHScrollDebounced())},t.prototype.onFakeVScroll=function(){var e=this.ctrlsService.getFakeVScrollComp().getViewport();this.isControllingVScroll(e)&&this.onVScrollCommon(e)},t.prototype.onVScroll=function(){this.isControllingVScroll(this.eBodyViewport)&&this.onVScrollCommon(this.eBodyViewport)},t.prototype.onVScrollCommon=function(e){var t=e.scrollTop;if(!this.shouldBlockScrollUpdate("vertical",t,!0)){if(this.animationFrameService.setScrollTop(t),this.nextScrollTop=t,e===this.eBodyViewport)this.ctrlsService.getFakeVScrollComp().getViewport().scrollTop=t;else this.eBodyViewport.scrollTop=t;this.gridOptionsService.is("suppressAnimationFrame")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced()}},t.prototype.doHorizontalScroll=function(e){var t=ar(this.ctrlsService.getFakeHScrollComp().getViewport(),this.enableRtl);this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged())},t.prototype.fireScrollEvent=function(e){var t=this,o={type:ke.EVENT_BODY_SCROLL,direction:e,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(o),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var e=Ba(Ba({},o),{type:ke.EVENT_BODY_SCROLL_END});t.eventService.dispatchEvent(e)}),100)},t.prototype.shouldBlockScrollUpdate=function(e,t,o){return void 0===o&&(o=!1),!(o&&!To())&&("vertical"===e?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t))},t.prototype.shouldBlockVerticalScroll=function(e){var t=or(this.eBodyViewport),o=this.eBodyViewport.scrollHeight;return e<0||e+t>o},t.prototype.shouldBlockHorizontalScroll=function(e){var t=this.centerRowContainerCtrl.getCenterWidth(),o=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&sr()){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>o},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},t.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(this.centerRowContainerCtrl.getViewportElement())},t.prototype.scrollGridIfNeeded=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(e=this.enableRtl&&sr()?e>0?0:t:Math.min(Math.max(e,0),t)),lr(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-t},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null);for(var o=this.rowModel.getRowCount(),r=-1,i=0;i<o;i++){var n=this.rowModel.getRow(i);if("function"==typeof e){if(n&&e(n)){r=i;break}}else if(e===n||e===n.data){r=i;break}}r>=0&&this.ensureIndexVisible(r,t)},t.prototype.ensureIndexVisible=function(e,t){if(!this.gridOptionsService.isDomLayout("print")){var o=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=o)console.warn("AG Grid: Invalid row index for ensureIndexVisible: "+e);else{this.gridOptionsService.is("pagination")&&!this.gridOptionsService.is("suppressPaginationPanel")||this.paginationProxy.goToPageWithIndex(e);var r,i=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),n=this.paginationProxy.getRow(e);do{var s=n.rowTop,a=n.rowHeight,l=this.paginationProxy.getPixelOffset(),u=n.rowTop-l,c=u+n.rowHeight,p=this.getVScrollPosition(),d=this.heightScaler.getDivStretchOffset(),h=p.top+d,f=p.bottom+d,g=f-h,v=this.heightScaler.getScrollPositionForPixel(u),y=this.heightScaler.getScrollPositionForPixel(c-g),m=Math.min((v+y)/2,u),C=null;"top"===t?C=v:"bottom"===t?C=y:"middle"===t?C=m:h+i>u?C=v-i:f<c&&(C=y),null!==C&&(this.eBodyViewport.scrollTop=C,this.rowRenderer.redrawAfterScroll()),r=s!==n.rowTop||a!==n.rowHeight}while(r);this.animationFrameService.flushAllFrames()}}},t.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto");var o=this.columnModel.getGridColumn(e);if(o&&!o.isPinned()&&this.columnModel.isColumnDisplayed(o)){var r=this.getPositionedHorizontalScroll(o,t);null!==r&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(r),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},t.prototype.getPositionedHorizontalScroll=function(e,t){var o=this.isColumnOutsideViewport(e),r=o.columnBeforeStart,i=o.columnAfterEnd,n=this.centerRowContainerCtrl.getCenterWidth()<e.getActualWidth(),s=this.centerRowContainerCtrl.getCenterWidth(),a=this.enableRtl,l=(a?r:i)||n,u=a?i:r;"auto"!==t&&(l="start"===t,u="end"===t);var c="middle"===t;if(l||u||c){var p=this.getColumnBounds(e),d=p.colLeft,h=p.colMiddle,f=p.colRight;return c?h-s/2:l?a?f:d:a?d-s:f-s}return null},t.prototype.isColumnOutsideViewport=function(e){var t=this.getViewportBounds(),o=t.start,r=t.end,i=this.getColumnBounds(e),n=i.colLeft,s=i.colRight,a=this.enableRtl;return{columnBeforeStart:a?o>s:r<s,columnAfterEnd:a?r<n:o>n}},t.prototype.getColumnBounds=function(e){var t=this.enableRtl,o=this.columnModel.getBodyContainerWidth(),r=e.getActualWidth(),i=e.getLeft(),n=t?-1:1,s=t?o-i:i;return{colLeft:s,colMiddle:s+r/2*n,colRight:s+r*n}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),t=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:t,end:e+t,width:e}},ja([U("ctrlsService")],t.prototype,"ctrlsService",void 0),ja([U("animationFrameService")],t.prototype,"animationFrameService",void 0),ja([U("paginationProxy")],t.prototype,"paginationProxy",void 0),ja([U("rowModel")],t.prototype,"rowModel",void 0),ja([U("rowContainerHeightService")],t.prototype,"heightScaler",void 0),ja([U("rowRenderer")],t.prototype,"rowRenderer",void 0),ja([U("columnModel")],t.prototype,"columnModel",void 0),ja([B],t.prototype,"postConstruct",null),t}(Le),Ua=function(){function e(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=-1!==e.scrollAxis.indexOf("x"),this.scrollVertically=-1!==e.scrollAxis.indexOf("y"),this.scrollByTick=null!=e.scrollByTick?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||function(){return!1}}return e.prototype.check=function(e,t){void 0===t&&(t=!1);var o=t||this.shouldSkipVerticalScroll();if(!o||!this.shouldSkipHorizontalScroll()){var r=this.scrollContainer.getBoundingClientRect(),i=this.scrollByTick;this.tickLeft=e.clientX<r.left+i,this.tickRight=e.clientX>r.right-i,this.tickUp=e.clientY<r.top+i&&!o,this.tickDown=e.clientY>r.bottom-i&&!o,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},e.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},e.prototype.doTick=function(){var e;if(this.tickCount++,e=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){var o=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(o-e),this.tickRight&&this.setHorizontalPosition(o+e)}this.onScrollCallback&&this.onScrollCallback()},e.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},e}(),za=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ka=function(){return(Ka=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Ya=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},qa=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},Qa=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(qa(arguments[t]));return e},Xa=function(e){function t(t){var o=e.call(this)||this;return o.isMultiRowDrag=!1,o.isGridSorted=!1,o.isGridFiltered=!1,o.isRowGroupActive=!1,o.eContainer=t,o}return za(t,e),t.prototype.postConstruct=function(){var e=this;this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel);var t=function(){e.onSortChanged(),e.onFilterChanged(),e.onRowGroupChanged()};this.addManagedListener(this.eventService,ke.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_MODEL_UPDATED,(function(){t()})),t(),this.ctrlsService.whenReady((function(){var t=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new Ua({scrollContainer:t.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return t.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(e){return t.getScrollFeature().setVerticalScrollPosition(e)},onScrollCallback:function(){e.onDragging(e.lastDraggingEvent)}})}))},t.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},t.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},t.prototype.onRowGroupChanged=function(){var e=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!r(e)},t.prototype.getContainer=function(){return this.eContainer},t.prototype.isInterestedIn=function(e){return e===exports.DragSourceType.RowDrag},t.prototype.getIconName=function(){return this.gridOptionsService.is("rowDragManaged")&&this.shouldPreventRowMove()?Rs.ICON_NOT_ALLOWED:Rs.ICON_MOVE},t.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},t.prototype.getRowNodes=function(e){var t=this;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var o=this.gridOptionsService.is("rowDragMultiRow"),r=Qa(this.selectionService.getSelectedNodes()).sort((function(e,o){return null==e.rowIndex||null==o.rowIndex?0:t.getRowIndexNumber(e)-t.getRowIndexNumber(o)})),i=e.dragItem.rowNode;return o&&-1!==r.indexOf(i)?(this.isMultiRowDrag=!0,r):(this.isMultiRowDrag=!1,[i])},t.prototype.onDragEnter=function(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent(ke.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach((function(e){e.setDragging(!0)})),this.onEnterOrDragging(e)},t.prototype.onDragging=function(e){this.onEnterOrDragging(e)},t.prototype.isFromThisGrid=function(e){return e.dragSource.dragSourceDomDataKey===this.gridOptionsService.getDomDataKey()},t.prototype.isDropZoneWithinThisGrid=function(e){var t=this.ctrlsService.getGridBodyCtrl().getGui(),o=e.dropZoneTarget;return!t.contains(o)},t.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(ke.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.mouseEventService.getNormalisedPosition(e).y;this.gridOptionsService.is("rowDragManaged")&&this.doManagedDrag(e,t),this.autoScrollService.check(e.event)},t.prototype.doManagedDrag=function(e,t){var o=this.isFromThisGrid(e),r=this.gridOptionsService.is("rowDragManaged"),i=e.dragItem.rowNodes;r&&this.shouldPreventRowMove()||(this.gridOptionsService.is("suppressMoveWhenRowDragging")||!o?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(i[0],t):this.moveRows(i,t))},t.prototype.getRowIndexNumber=function(e){return parseInt(ue(e.getRowIndexString().split("-")),10)},t.prototype.moveRowAndClearHighlight=function(e){var t=this,o=this.clientSideRowModel.getLastHighlightedRowNode(),r=o&&o.highlighted===exports.RowHighlightPosition.Below,i=this.mouseEventService.getNormalisedPosition(e).y,n=e.dragItem.rowNodes,s=r?1:0;if(this.isFromThisGrid(e))n.forEach((function(e){e.rowTop<i&&(s-=1)})),this.moveRows(n,i,s);else{var a=this.gridOptionsService.getRowIdFunc(),l=this.clientSideRowModel.getRowIndexAtPixel(i)+1;this.clientSideRowModel.getHighlightPosition(i)===exports.RowHighlightPosition.Above&&l--,this.clientSideRowModel.updateRowData({add:n.map((function(e){return e.data})).filter((function(e){return!t.clientSideRowModel.getRowNode(a?a({data:e,level:0}):e.id)})),addIndex:l})}this.clearRowHighlight()},t.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},t.prototype.moveRows=function(e,t,o){void 0===o&&(o=0),this.clientSideRowModel.ensureRowsAtPixel(e,t,o)&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},t.prototype.addRowDropZone=function(e){var t=this;if(e.getContainer())if(this.dragAndDropService.findExternalZone(e))console.warn("AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.");else{var o={getContainer:e.getContainer};e.fromGrid?(e.fromGrid=void 0,o=e):(e.onDragEnter&&(o.onDragEnter=function(o){e.onDragEnter(t.draggingToRowDragEvent(ke.EVENT_ROW_DRAG_ENTER,o))}),e.onDragLeave&&(o.onDragLeave=function(o){e.onDragLeave(t.draggingToRowDragEvent(ke.EVENT_ROW_DRAG_LEAVE,o))}),e.onDragging&&(o.onDragging=function(o){e.onDragging(t.draggingToRowDragEvent(ke.EVENT_ROW_DRAG_MOVE,o))}),e.onDragStop&&(o.onDragStop=function(o){e.onDragStop(t.draggingToRowDragEvent(ke.EVENT_ROW_DRAG_END,o))})),this.dragAndDropService.addDropTarget(Ka({isInterestedIn:function(e){return e===exports.DragSourceType.RowDrag},getIconName:function(){return Rs.ICON_MOVE},external:!0},o))}else O((function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},t.prototype.getRowDropZone=function(e){var t=this,o=this.getContainer.bind(this),r=this.onDragEnter.bind(this),i=this.onDragLeave.bind(this),n=this.onDragging.bind(this),s=this.onDragStop.bind(this);return e?{getContainer:o,onDragEnter:e.onDragEnter?function(o){r(o),e.onDragEnter(t.draggingToRowDragEvent(ke.EVENT_ROW_DRAG_ENTER,o))}:r,onDragLeave:e.onDragLeave?function(o){i(o),e.onDragLeave(t.draggingToRowDragEvent(ke.EVENT_ROW_DRAG_LEAVE,o))}:i,onDragging:e.onDragging?function(o){n(o),e.onDragging(t.draggingToRowDragEvent(ke.EVENT_ROW_DRAG_MOVE,o))}:n,onDragStop:e.onDragStop?function(o){s(o),e.onDragStop(t.draggingToRowDragEvent(ke.EVENT_ROW_DRAG_END,o))}:s,fromGrid:!0}:{getContainer:o,onDragEnter:r,onDragLeave:i,onDragging:n,onDragStop:s,fromGrid:!0}},t.prototype.draggingToRowDragEvent=function(e,t){var o,r,i=this.mouseEventService.getNormalisedPosition(t).y,n=-1;switch(i>this.paginationProxy.getCurrentPageHeight()||(n=this.rowModel.getRowIndexAtPixel(i),o=this.rowModel.getRow(n)),t.vDirection){case exports.VerticalDirection.Down:r="down";break;case exports.VerticalDirection.Up:r="up";break;default:r=null}return{type:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,event:t.event,node:t.dragItem.rowNode,nodes:t.dragItem.rowNodes,overIndex:n,overNode:o,y:i,vDirection:r}},t.prototype.dispatchGridEvent=function(e,t){var o=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(o)},t.prototype.onDragLeave=function(e){this.dispatchGridEvent(ke.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsService.is("rowDragManaged")&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchGridEvent(ke.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsService.is("rowDragManaged")||!this.gridOptionsService.is("suppressMoveWhenRowDragging")&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)},t.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach((function(e){e.setDragging(!1)}))},Ya([U("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Ya([U("rowModel")],t.prototype,"rowModel",void 0),Ya([U("paginationProxy")],t.prototype,"paginationProxy",void 0),Ya([U("columnModel")],t.prototype,"columnModel",void 0),Ya([U("focusService")],t.prototype,"focusService",void 0),Ya([U("sortController")],t.prototype,"sortController",void 0),Ya([U("filterManager")],t.prototype,"filterManager",void 0),Ya([U("selectionService")],t.prototype,"selectionService",void 0),Ya([U("mouseEventService")],t.prototype,"mouseEventService",void 0),Ya([U("ctrlsService")],t.prototype,"ctrlsService",void 0),Ya([z("rangeService")],t.prototype,"rangeService",void 0),Ya([B],t.prototype,"postConstruct",null),t}(Le),Ja=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Za=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};
|
261 |
|
262 |
|
263 |
|
264 |
|
265 |
|
266 | (Ha=exports.RowAnimationCssClasses||(exports.RowAnimationCssClasses={})).ANIMATION_ON="ag-row-animation",Ha.ANIMATION_OFF="ag-row-no-animation";var $a,el,tl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stickyTopHeight=0,t}return Ja(t,e),t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setComp=function(e,t,o,r,i,n){this.comp=e,this.eGridBody=t,this.eBodyViewport=o,this.eTop=r,this.eBottom=i,this.eStickyTop=n,this.setCellTextSelection(this.gridOptionsService.is("enableCellTextSelection")),this.createManagedBean(new Va(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Wa(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([r,o,i,n]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},t.prototype.getComp=function(){return this.comp},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,ke.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.addFocusListeners=function(e){var t=this;e.forEach((function(e){t.addManagedListener(e,"focusin",(function(t){var o=er(t.target,"ag-root",e);e.classList.toggle("ag-has-focus",!o)})),t.addManagedListener(e,"focusout",(function(t){var o=t.target,r=t.relatedTarget,i=e.contains(r),n=er(r,"ag-root",e);er(o,"ag-root",e)||i&&!n||e.classList.remove("ag-has-focus")}))}))},t.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss("ag-column-moving",e)},t.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1);var t=e?"ag-selectable":null;this.comp.setCellSelectableCss(t,e)},t.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e),this.setStickyTopWidth(e);var t="calc(100% + "+((e&&this.gridOptionsService.getScrollbarWidth()||0)+(Lo()?16:0))+"px)";this.comp.setBodyViewportWidth(t)},t.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e?e.length:0)},t.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsService.is("stopEditingWhenCellsLoseFocus")){var t=function(t){var r=t.relatedTarget;if(null!==Do(r)){var i=o.some((function(e){return e.contains(r)}))&&e.mouseEventService.isElementInThisGrid(r);if(!i){var n=e.popupService;i=n.getActivePopups().some((function(e){return e.contains(r)}))||n.isElementWithinCustomPopup(r)}i||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},o=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];o.forEach((function(o){return e.addManagedListener(o,"focusout",t)}))}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),t=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,o=-1===t?-1:e+t;this.comp.setRowCount(o)},t.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},t.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)},t.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsService.is("alwaysShowVerticalScroll"),t=e?"ag-force-vertical-scroll":null,o=this.gridOptionsService.isDomLayout("normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||o&&wr(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsService.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),o=t?exports.RowAnimationCssClasses.ANIMATION_ON:exports.RowAnimationCssClasses.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(o,t)};t(),this.addManagedListener(this.eventService,ke.EVENT_HEIGHT_SCALE_CHANGED,t),this.addManagedPropertyListener("animateRows",t)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this,t=function(t,o,r){if(t||r){if(e.gridOptionsService.is("preventDefaultOnContextMenu"))(t||r).preventDefault();var i=(t||o).target;i!==e.eBodyViewport&&i!==e.ctrlsService.getCenterRowContainerCtrl().getViewportElement()||e.contextMenuFactory&&(t?e.contextMenuFactory.onContextMenu(t,null,null,null,null,e.eGridBody):r&&e.contextMenuFactory.onContextMenu(null,r,null,null,null,e.eGridBody))}};this.addManagedListener(this.eBodyViewport,"contextmenu",t),this.mockContextMenuForIPad(t),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this))},t.prototype.mockContextMenuForIPad=function(e){if(To()){var t=new kn(this.eBodyViewport);this.addManagedListener(t,kn.EVENT_LONG_TAP,(function(t){e(void 0,t.touchStart,t.touchEvent)})),this.addDestroyFunc((function(){return t.destroy()}))}},t.prototype.onBodyViewportWheel=function(e){this.gridOptionsService.is("suppressScrollWhenPopupsAreOpen")&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},t.prototype.onStickyTopWheel=function(e){e.preventDefault(),e.offsetY&&this.scrollVertically(e.deltaY)},t.prototype.getGui=function(){return this.eGridBody},t.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},t.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new Xa(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},t.prototype.getRowDragFeature=function(){return this.rowDragFeature},t.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},t.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,t=e.getPinnedTopTotalHeight();t&&(t+=1);var o=e.getPinnedBottomTotalHeight();o&&(o+=1),this.comp.setTopHeight(t),this.comp.setBottomHeight(o),this.comp.setTopDisplay(t?"inherit":"none"),this.comp.setBottomDisplay(o?"inherit":"none"),this.setStickyTopOffsetTop()},t.prototype.setStickyTopHeight=function(e){void 0===e&&(e=0),this.comp.setStickyTopHeight(e+"px"),this.stickyTopHeight=e},t.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},t.prototype.setStickyTopWidth=function(e){if(e){var t=this.gridOptionsService.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+t+"px)")}else this.comp.setStickyTopWidth("100%")},t.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},t.prototype.setStickyTopOffsetTop=function(){var e=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight(),t=this.pinnedRowModel.getPinnedTopTotalHeight(),o=0;e>0&&(o+=e+1),t>0&&(o+=t+1),this.comp.setStickyTopTop(o+"px")},t.prototype.sizeColumnsToFit=function(e,t){var o=this,r=this.isVerticalScrollShowing()?this.gridOptionsService.getScrollbarWidth():0,i=rr(this.eGridBody)-r;i>0?this.columnModel.sizeColumnsToFit(i,"sizeColumnsToFit",!1,e):void 0===t?window.setTimeout((function(){o.sizeColumnsToFit(e,100)}),0):100===t?window.setTimeout((function(){o.sizeColumnsToFit(e,500)}),100):500===t?window.setTimeout((function(){o.sizeColumnsToFit(e,-1)}),500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},t.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e,{passive:!0})},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},Za([U("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),Za([U("ctrlsService")],t.prototype,"ctrlsService",void 0),Za([U("columnModel")],t.prototype,"columnModel",void 0),Za([U("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Za([z("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),Za([U("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Za([U("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Za([U("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Za([U("rowRenderer")],t.prototype,"rowRenderer",void 0),Za([U("popupService")],t.prototype,"popupService",void 0),Za([U("mouseEventService")],t.prototype,"mouseEventService",void 0),Za([U("rowModel")],t.prototype,"rowModel",void 0),t}(Le);(
|
267 |
|
268 |
|
269 |
|
270 |
|
271 |
|
272 |
|
273 | $a=exports.SelectionHandleType||(exports.SelectionHandleType={}))[$a.FILL=0]="FILL",$a[$a.RANGE=1]="RANGE",(el=exports.CellRangeType||(exports.CellRangeType={}))[el.VALUE=0]="VALUE",el[el.DIMENSION=1]="DIMENSION";
|
274 |
|
275 |
|
276 |
|
277 |
|
278 |
|
279 |
|
280 | var ol,rl=function(){function e(e,t){this.beans=e,this.cellCtrl=t}return e.prototype.setComp=function(e,t){this.cellComp=e,this.eGui=t,this.onRangeSelectionChanged()},e.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected",0!==this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),uo(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},e.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),o=!t&&e.top,r=!t&&e.right,i=!t&&e.bottom,n=!t&&e.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",o),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",r),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",i),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",n)},e.prototype.isSingleCell=function(){var e=this.beans.rangeService;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},e.prototype.getHasChartRange=function(){var e=this.beans.rangeService;if(!this.rangeCount||!e)return!1;var t=e.getCellRanges();return t.length>0&&t.every((function(e){return ve([exports.CellRangeType.DIMENSION,exports.CellRangeType.VALUE],e.type)}))},e.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},e.prototype.getRangeBorders=function(){var e,t,o=this,r=this.beans.gridOptionsService.is("enableRtl"),i=!1,n=!1,s=!1,a=!1,l=this.cellCtrl.getCellPosition().column,u=this.beans,c=u.rangeService,p=u.columnModel;r?(e=p.getDisplayedColAfter(l),t=p.getDisplayedColBefore(l)):(e=p.getDisplayedColBefore(l),t=p.getDisplayedColAfter(l));var d=c.getCellRanges().filter((function(e){return c.isCellInSpecificRange(o.cellCtrl.getCellPosition(),e)}));e||(a=!0),t||(n=!0);for(var h=0;h<d.length&&!(i&&n&&s&&a);h++){var f=d[h],g=c.getRangeStartRow(f),v=c.getRangeEndRow(f);!i&&this.beans.rowPositionUtils.sameRow(g,this.cellCtrl.getCellPosition())&&(i=!0),!s&&this.beans.rowPositionUtils.sameRow(v,this.cellCtrl.getCellPosition())&&(s=!0),!a&&e&&f.columns.indexOf(e)<0&&(a=!0),!n&&t&&f.columns.indexOf(t)<0&&(n=!0)}return{top:i,right:n,bottom:s,left:a}},e.prototype.refreshHandle=function(){if(this.beans.rangeService){var e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass("ag-cell-range-handle",!!this.selectionHandle)}},e.prototype.shouldHaveSelectionHandle=function(){var e=this.beans,t=e.gridOptionsService,o=e.rangeService,r=o.getCellRanges(),i=r.length;if(this.rangeCount<1||i<1)return!1;var n=ue(r),s=this.cellCtrl.getCellPosition(),a=t.is("enableFillHandle")&&!this.cellCtrl.isSuppressFillHandle(),l=t.is("enableRangeHandle"),u=1===i&&!this.cellCtrl.isEditing()&&(a||l);if(this.hasChartRange){var c=r[0].type===exports.CellRangeType.DIMENSION&&o.isCellInSpecificRange(s,r[0]);this.cellComp.addOrRemoveCssClass("ag-cell-range-chart-category",c),u=n.type===exports.CellRangeType.VALUE}return u&&null!=n.endRow&&o.isContiguousRange(n)&&o.isBottomRightCell(n,s)},e.prototype.addSelectionHandle=function(){var e=this.beans,t=e.gridOptionsService,r=ue(e.rangeService.getCellRanges()).type,i=t.is("enableFillHandle")&&o(r)?exports.SelectionHandleType.FILL:exports.SelectionHandleType.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==i&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(i)),this.selectionHandle.refresh(this.cellCtrl)},e.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},e}(),il=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),nl=function(e){function t(t,o){var r=e.call(this)||this;return r.cellCtrl=t,r.beans=o,r.column=t.getColumn(),r.rowNode=t.getRowNode(),r.setupColSpan(),r.setupRowSpan(),r}return il(t,e),t.prototype.setupRowSpan=function(){this.rowSpan=this.column.getRowSpan(this.rowNode)},t.prototype.setComp=function(e){this.eGui=e,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},t.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();ce(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.setupColSpan=function(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,ke.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,ke.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},t.prototype.onWidthChanged=function(){if(this.eGui){var e=this.getCellWidth();this.eGui.style.width=e+"px"}},t.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(e,t){return e+t.getActualWidth()}),0):this.column.getActualWidth()},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var r=this.column,i=this.column.getPinned(),n=0;r&&n<e&&(t.push(r),(r=this.beans.columnModel.getDisplayedColAfter(r))&&!o(r))&&i===r.getPinned();n++);return t},t.prototype.onLeftChanged=function(){if(this.eGui){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=e+"px"}},t.prototype.getCellLeft=function(){return(this.beans.gridOptionsService.is("enableRtl")&&this.colsSpanning?ue(this.colsSpanning):this.column).getLeft()},t.prototype.modifyLeftForPrintLayout=function(e){if(!this.cellCtrl.isPrintLayout()||"left"===this.column.getPinned())return e;var t=this.beans.columnModel.getDisplayedColumnsLeftWidth();return"right"===this.column.getPinned()?t+this.beans.columnModel.getBodyContainerWidth()+(e||0):t+(e||0)},t.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var e=this.beans.gridOptionsService.getRowHeightAsNumber()*this.rowSpan;this.eGui.style.height=e+"px",this.eGui.style.zIndex="1"}},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Le),sl=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),al=function(e){function t(t,o){var r=e.call(this)||this;return r.staticClasses=[],r.cellCtrl=t,r.beans=o,r.column=t.getColumn(),r.rowNode=t.getRowNode(),r}return sl(t,e),t.prototype.setComp=function(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},t.prototype.applyCellClassRules=function(){var e=this,t=this.column.getColDef(),o={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:t,column:this.column,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};this.beans.stylingService.processClassRules(t.cellClassRules,o,(function(t){return e.cellComp.addOrRemoveCssClass(t,!0)}),(function(t){return e.cellComp.addOrRemoveCssClass(t,!1)}))},t.prototype.applyUserStyles=function(){var e=this.column.getColDef();if(e.cellStyle){var t;if("function"==typeof e.cellStyle){var o={column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};t=(0,e.cellStyle)(o)}else t=e.cellStyle;t&&this.cellComp.setUserStyles(t)}},t.prototype.applyClassesFromColDef=function(){var e=this,t=this.column.getColDef(),o={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,column:this.column,colDef:t,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context};this.staticClasses.length&&this.staticClasses.forEach((function(t){return e.cellComp.addOrRemoveCssClass(t,!1)})),this.staticClasses=this.beans.stylingService.getStaticCellClasses(t,o),this.staticClasses.length&&this.staticClasses.forEach((function(t){return e.cellComp.addOrRemoveCssClass(t,!0)}))},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Le),ll=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ul=function(e){function t(t,o){var r=e.call(this)||this;return r.ctrl=t,r.beans=o,r}return ll(t,e),t.prototype.setComp=function(e){this.comp=e,this.setupTooltip()},t.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsService.is("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0):this.createTooltipFeatureIfNeeded()},t.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},t.prototype.createTooltipFeatureIfNeeded=function(){var e=this;if(null==this.genericTooltipFeature){var t={getTooltipParams:function(){return e.getTooltipParams()},getGui:function(){return e.ctrl.getGui()}};this.genericTooltipFeature=this.createManagedBean(new ri(t),this.beans.context)}},t.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0)},t.prototype.getTooltipParams=function(){var e=this.ctrl,t=e.getColumn?e.getColumn():void 0,o=e.getColDef?e.getColDef():void 0,r=e.getRowNode?e.getRowNode():void 0;return{location:e.getLocation(),colDef:o,column:t,rowIndex:e.getRowIndex?e.getRowIndex():void 0,node:r,data:r?r.data:void 0,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?e.getValueFormatted():void 0}},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Le),cl=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},pl=function(){function e(){}return e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsService.isMasterDetail(),this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.gridOptionsService.isRowModelType("serverSide")&&(this.serverSideRowModel=this.rowModel)},cl([U("resizeObserverService")],e.prototype,"resizeObserverService",void 0),cl([U("paginationProxy")],e.prototype,"paginationProxy",void 0),cl([U("context")],e.prototype,"context",void 0),cl([U("columnApi")],e.prototype,"columnApi",void 0),cl([U("gridApi")],e.prototype,"gridApi",void 0),cl([U("gridOptionsService")],e.prototype,"gridOptionsService",void 0),cl([U("expressionService")],e.prototype,"expressionService",void 0),cl([U("environment")],e.prototype,"environment",void 0),cl([U("rowRenderer")],e.prototype,"rowRenderer",void 0),cl([U("templateService")],e.prototype,"templateService",void 0),cl([U("valueService")],e.prototype,"valueService",void 0),cl([U("eventService")],e.prototype,"eventService",void 0),cl([U("columnModel")],e.prototype,"columnModel",void 0),cl([U("headerNavigationService")],e.prototype,"headerNavigationService",void 0),cl([U("navigationService")],e.prototype,"navigationService",void 0),cl([U("columnAnimationService")],e.prototype,"columnAnimationService",void 0),cl([z("rangeService")],e.prototype,"rangeService",void 0),cl([U("focusService")],e.prototype,"focusService",void 0),cl([z("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),cl([U("popupService")],e.prototype,"popupService",void 0),cl([U("valueFormatterService")],e.prototype,"valueFormatterService",void 0),cl([U("stylingService")],e.prototype,"stylingService",void 0),cl([U("columnHoverService")],e.prototype,"columnHoverService",void 0),cl([U("userComponentFactory")],e.prototype,"userComponentFactory",void 0),cl([U("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),cl([U("animationFrameService")],e.prototype,"animationFrameService",void 0),cl([U("dragService")],e.prototype,"dragService",void 0),cl([U("dragAndDropService")],e.prototype,"dragAndDropService",void 0),cl([U("sortController")],e.prototype,"sortController",void 0),cl([U("filterManager")],e.prototype,"filterManager",void 0),cl([U("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),cl([U("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),cl([U("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),cl([U("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),cl([U("selectionService")],e.prototype,"selectionService",void 0),cl([z("selectionHandleFactory")],e.prototype,"selectionHandleFactory",void 0),cl([U("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),cl([U("rowModel")],e.prototype,"rowModel",void 0),cl([U("ctrlsService")],e.prototype,"ctrlsService",void 0),cl([U("ctrlsFactory")],e.prototype,"ctrlsFactory",void 0),cl([U("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),cl([U("valueCache")],e.prototype,"valueCache",void 0),cl([U("rowNodeEventThrottle")],e.prototype,"rowNodeEventThrottle",void 0),cl([U("localeService")],e.prototype,"localeService",void 0),cl([B],e.prototype,"postConstruct",null),e=cl([W("beans")],e)}(),dl=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),hl=function(e){function t(t,o,r){var i=e.call(this)||this;return i.cellCtrl=t,i.beans=o,i.column=r,i}return dl(t,e),t.prototype.onMouseEvent=function(e,t){if(!Re(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.beans,o=t.eventService,r=t.rangeService,i=t.gridOptionsService,n=e.ctrlKey||e.metaKey;r&&n&&r.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&r.intersectLastRange(!0);var s=this.cellCtrl.createEvent(e,ke.EVENT_CELL_CLICKED);o.dispatchEvent(s);var a=this.column.getColDef();a.onCellClicked&&window.setTimeout((function(){return a.onCellClicked(s)}),0),(i.is("singleClickEdit")||a.singleClickEdit)&&!i.is("suppressClickEdit")&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!To()||be("dblclick"))return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},t.prototype.onCellDoubleClicked=function(e){var t=this.column.getColDef(),o=this.cellCtrl.createEvent(e,ke.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),"function"==typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(o)}),0),!this.beans.gridOptionsService.is("singleClickEdit")&&!this.beans.gridOptionsService.is("suppressClickEdit")&&this.cellCtrl.startRowOrCellEdit(null,null,e)},t.prototype.onMouseDown=function(e){var t=e.ctrlKey,o=e.metaKey,r=e.shiftKey,i=e.target,n=this.beans,s=n.eventService,a=n.rangeService;if(!this.isRightClickInExistingRange(e)){var l=a&&0!=a.getCellRanges().length;if(!r||!l){var u=So()&&!this.cellCtrl.isEditing()&&!Xo(i);this.cellCtrl.focusCell(u)}if(r&&l&&e.preventDefault(),!this.containsWidget(i)){if(a){var c=this.cellCtrl.getCellPosition();if(r)a.extendLatestRangeToCell(c);else{var p=t||o;a.setRangeToCell(c,p)}}s.dispatchEvent(this.cellCtrl.createEvent(e,ke.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeService;if(t&&(t.isCellInAnyRange(this.cellCtrl.getCellPosition())&&2===e.button))return!0;return!1},t.prototype.containsWidget=function(e){return er(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,ke.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,ke.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var t=this.cellCtrl.getGui(),o=t.contains(e.target),r=t.contains(e.relatedTarget);return o&&r},t.prototype.destroy=function(){},t}(pl),fl=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),gl=function(e){function t(t,o,r,i,n){var s=e.call(this)||this;return s.cellCtrl=t,s.beans=o,s.rowNode=i,s.rowCtrl=n,s}return fl(t,e),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var t=e.key;switch(t){case xr.ENTER:this.onEnterKeyDown(e);break;case xr.F2:this.onF2KeyDown(e);break;case xr.ESCAPE:this.onEscapeKeyDown(e);break;case xr.TAB:this.onTabKeyDown(e);break;case xr.BACKSPACE:case xr.DELETE:this.onBackspaceOrDeleteKeyPressed(t,e);break;case xr.DOWN:case xr.UP:case xr.RIGHT:case xr.LEFT:this.onNavigationKeyPressed(e,t)}},t.prototype.onNavigationKeyPressed=function(e,t){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,t,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var t=this.beans.rangeService.extendLatestRangeInDirection(e);t&&this.beans.navigationService.ensureCellVisible(t)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e,t){var o=this.cellCtrl,r=this.beans,i=this.rowNode,n=r.gridOptionsService,s=r.rangeService,a=r.eventService;o.isEditing()||(a.dispatchEvent({type:ke.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),kr(e,n.is("enableCellEditingOnBackspace"))?s&&n.isEnableRangeSelection()?s.clearCellRangeCellValues():o.isCellEditable()&&i.setDataValue(o.getColumn(),null,"cellClear"):o.startRowOrCellEdit(e,void 0,t),a.dispatchEvent({type:ke.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsService.is("enterMovesDown")?this.beans.navigationService.navigateToNextCell(null,xr.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(xr.ENTER,void 0,e),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(xr.F2,void 0,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.onKeyPress=function(e){if(!(e.target!==this.eGui)&&!this.cellCtrl.isEditing()){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):Ir(e)&&(this.cellCtrl.startRowOrCellEdit(null,t,e),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){var t=this.beans.gridOptionsService;if(!this.cellCtrl.isEditing()&&t.isRowSelection()){var o=this.rowNode.isSelected(),r=!o;if(r||!t.is("suppressRowDeselection")){var i=this.beans.gridOptionsService.is("groupSelectsFiltered"),n=this.rowNode.setSelectedParams({newValue:r,rangeSelect:e.shiftKey,groupSelectsFiltered:i,event:e,source:"spacePressed"});void 0===o&&0===n&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:i,event:e,source:"spacePressed"})}}e.preventDefault()},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Le),vl=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),yl=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ml=function(e){function t(t,o,r,i){var n=e.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return n.rowNode=t,n.column=o,n.beans=r,n.eCell=i,n}return vl(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(Fr("rowDrag",this.beans.gridOptionsService,null)),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation()})),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var t=this,o=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);o?o({rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):function(){try{var o=JSON.stringify(t.rowNode.data);e.dataTransfer.setData("application/json",o),e.dataTransfer.setData("text/plain",o)}catch(e){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},yl([B],t.prototype,"postConstruct",null),t}(li),Cl=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),wl=function(){return(wl=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Sl=0,El=function(o){function r(e,t,r,i){var n=o.call(this)||this;return n.cellRangeFeature=null,n.cellPositionFeature=null,n.cellCustomStyleFeature=null,n.tooltipFeature=null,n.cellMouseListenerFeature=null,n.cellKeyboardListenerFeature=null,n.suppressRefreshCell=!1,n.onCellCompAttachedFuncs=[],n.column=e,n.rowNode=t,n.beans=r,n.rowCtrl=i,n.instanceId=e.getId()+"-"+Sl++,n.createCellPosition(),n.addFeatures(),n}return Cl(r,o),r.prototype.addFeatures=function(){var e=this;this.cellPositionFeature=new nl(this,this.beans),this.addDestroyFunc((function(){var t;null===(t=e.cellPositionFeature)||void 0===t||t.destroy(),e.cellPositionFeature=null})),this.cellCustomStyleFeature=new al(this,this.beans),this.addDestroyFunc((function(){var t;null===(t=e.cellCustomStyleFeature)||void 0===t||t.destroy(),e.cellCustomStyleFeature=null})),this.cellMouseListenerFeature=new hl(this,this.beans,this.column),this.addDestroyFunc((function(){var t;null===(t=e.cellMouseListenerFeature)||void 0===t||t.destroy(),e.cellMouseListenerFeature=null})),this.cellKeyboardListenerFeature=new gl(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc((function(){var t;null===(t=e.cellKeyboardListenerFeature)||void 0===t||t.destroy(),e.cellKeyboardListenerFeature=null})),this.beans.rangeService&&this.beans.gridOptionsService.isEnableRangeSelection()&&(this.cellRangeFeature=new rl(this.beans,this),this.addDestroyFunc((function(){var t;null===(t=e.cellRangeFeature)||void 0===t||t.destroy(),e.cellRangeFeature=null}))),this.addTooltipFeature()},r.prototype.addTooltipFeature=function(){var e=this,o={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getRowIndex:function(){return e.cellPosition.rowIndex},getRowNode:function(){return e.rowNode},getGui:function(){return e.getGui()},getLocation:function(){return"cell"},getTooltipValue:function(){var o=e.column.getColDef(),r=e.rowNode.data;if(o.tooltipField&&t(r))return C(r,o.tooltipField,e.column.isTooltipFieldContainsDots());var i=o.tooltipValueGetter;return i?i({location:"cell",api:e.beans.gridOptionsService.api,columnApi:e.beans.gridOptionsService.columnApi,context:e.beans.gridOptionsService.context,colDef:e.column.getColDef(),column:e.column,rowIndex:e.cellPosition.rowIndex,node:e.rowNode,data:e.rowNode.data,value:e.value,valueFormatted:e.valueFormatted}):null},getValueFormatted:function(){return e.valueFormatted}};this.tooltipFeature=new ul(o,this.beans),this.addDestroyFunc((function(){var t;null===(t=e.tooltipFeature)||void 0===t||t.destroy(),e.tooltipFeature=null}))},r.prototype.setComp=function(e,t,o,r,i){var n,s,a,l;this.cellComp=e,this.eGui=t,this.printLayout=r,this.updateAndFormatValue(!0),this.addDomData(),this.onCellFocused(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),o&&this.setupAutoHeight(o),this.setAriaColIndex(),this.beans.gridOptionsService.is("suppressCellFocus")||this.cellComp.setTabIndex(-1);var u=ht(this.column.getId());this.cellComp.setColId(u),this.cellComp.setRole("gridcell"),null===(n=this.cellPositionFeature)||void 0===n||n.setComp(t),null===(s=this.cellCustomStyleFeature)||void 0===s||s.setComp(e),null===(a=this.tooltipFeature)||void 0===a||a.setComp(e),null===(l=this.cellKeyboardListenerFeature)||void 0===l||l.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e,t),i&&this.isCellEditable()?this.startEditing():this.showValue(),this.onCellCompAttachedFuncs.length&&(this.onCellCompAttachedFuncs.forEach((function(e){return e()})),this.onCellCompAttachedFuncs=[])},r.prototype.setupAutoHeight=function(e){var t=this;if(this.column.isAutoHeight()){var o=e.parentElement,r=this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height,i=function(n){if(!t.editing&&t.isAlive()){var s=tr(o),a=s.paddingTop+s.paddingBottom+s.borderBottomWidth+s.borderTopWidth,l=e.offsetHeight+a;if(n<5){var u=t.beans.gridOptionsService.getDocument();if(!u||!u.contains(e)||0==l)return void t.beans.frameworkOverrides.setTimeout((function(){return i(n+1)}),0)}var c=Math.max(l,r);t.rowNode.setRowAutoHeight(c,t.column)}},n=function(){return i(0)};n();var s=this.beans.resizeObserverService.observeResize(e,n);this.addDestroyFunc((function(){s(),t.rowNode.setRowAutoHeight(void 0,t.column)}))}},r.prototype.getInstanceId=function(){return this.instanceId},r.prototype.showValue=function(e){void 0===e&&(e=!1);var t=null!=this.valueFormatted?this.valueFormatted:this.value,o=this.createCellRendererParams(),r=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),o);this.cellComp.setRenderDetails(r,t,e),this.refreshHandle()},r.prototype.setupControlComps=function(){var e=this.column.getColDef();this.includeSelection=this.isIncludeControl(e.checkboxSelection),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)},r.prototype.isForceWrapper=function(){return this.beans.gridOptionsService.is("enableCellTextSelection")||this.column.isAutoHeight()},r.prototype.isIncludeControl=function(e){return!(null!=this.rowNode.rowPinned)&&("function"==typeof e||!0===e)},r.prototype.refreshShouldDestroy=function(){var e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(e.checkboxSelection),o=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),r=this.includeDndSource!=this.isIncludeControl(e.dndSource);return t||o||r},r.prototype.startEditing=function(e,t,o,r){var i=this;if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=!1),void 0===r&&(r=null),this.isCellEditable()&&!this.editing)if(this.cellComp){var n=this.createCellEditorParams(e,t,o),s=this.column.getColDef(),a=this.beans.userComponentFactory.getCellEditorDetails(s,n),l=null!=(null==a?void 0:a.popupFromSelector)?a.popupFromSelector:!!s.cellEditorPopup,u=null!=(null==a?void 0:a.popupPositionFromSelector)?a.popupPositionFromSelector:s.cellEditorPopupPosition;this.setEditing(!0),this.cellComp.setEditDetails(a,l,u);var c=this.createEvent(r,ke.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(c)}else this.onCellCompAttachedFuncs.push((function(){i.startEditing(e,t,o,r)}))},r.prototype.setEditing=function(e){this.editing!==e&&(this.editing=e,this.refreshHandle())},r.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),"fullRow"===this.beans.gridOptionsService.get("editType")?this.rowCtrl.stopRowEditing(e):this.stopEditing(e)},r.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},r.prototype.takeValueFromCellEditor=function(e){var t={newValueExists:!1};if(e)return t;var o=this.cellComp.getCellEditor();return o?o.isCancelAfterEnd&&o.isCancelAfterEnd()?t:{newValue:o.getValue(),newValueExists:!0}:t},r.prototype.saveNewValue=function(e,t){if(t===e)return!1;this.suppressRefreshCell=!0;var o=this.rowNode.setDataValue(this.column,t,"edit");return this.suppressRefreshCell=!1,o},r.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),!this.editing)return!1;var t=this.takeValueFromCellEditor(e),o=t.newValue,r=t.newValueExists,i=this.getValueFromValueService(),n=!1;return r&&(n=this.saveNewValue(i,o)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(i,o,!e&&!!n),n},r.prototype.dispatchEditingStoppedEvent=function(e,t,o){var r=wl(wl({},this.createEvent(null,ke.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:t,valueChanged:o});this.beans.eventService.dispatchEvent(r)},r.prototype.createCellEditorParams=function(e,t,o){return{value:this.getValueFromValueService(),eventKey:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsService.api,cellStartedEdit:o,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},r.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValueFromValueService.bind(this),setValue:function(t){return e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,pinned:this.column.getPinned(),colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(t,o,r,i){return e.registerRowDragger(t,o,i)}}},r.prototype.parseValue=function(e){var o=this.column.getColDef(),r={node:this.rowNode,data:this.rowNode.data,oldValue:this.getValue(),newValue:e,colDef:o,column:this.column,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context},i=o.valueParser;return t(i)?"function"==typeof i?i(r):this.beans.expressionService.evaluate(i,r):e},r.prototype.setFocusOutOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusOut&&e.focusOut()}},r.prototype.setFocusInOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusIn?e.focusIn():this.focusCell(!0)}},r.prototype.onCellChanged=function(e){this.cellComp&&(e.column===this.column&&this.refreshCell({}))},r.prototype.refreshCell=function(e){var t,o,r;if(!this.suppressRefreshCell&&!this.editing&&this.cellComp){var i=this.column.getColDef(),n=null!=e&&!!e.newData,s=null!=e&&!!e.suppressFlash||!!i.suppressCellFlash,a=null==i.field&&null==i.valueGetter&&null==i.showRowGroup,l=e&&e.forceRefresh||a||n,u=this.updateAndFormatValue();if(l||u){this.showValue(n);var c=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!s&&!c&&(this.beans.gridOptionsService.is("enableCellChangeFlash")||i.enableCellChangeFlash)&&this.flashCell(),null===(t=this.cellCustomStyleFeature)||void 0===t||t.applyUserStyles(),null===(o=this.cellCustomStyleFeature)||void 0===o||o.applyClassesFromColDef()}this.refreshToolTip(),null===(r=this.cellCustomStyleFeature)||void 0===r||r.applyCellClassRules()}},r.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},r.prototype.navigateAfterEdit=function(){"fullRow"===this.beans.gridOptionsService.get("editType")||this.beans.gridOptionsService.is("enterMovesDownAfterEdit")&&this.beans.navigationService.navigateToNextCell(null,xr.DOWN,this.getCellPosition(),!1)},r.prototype.flashCell=function(e){var t=e&&e.flashDelay,o=e&&e.fadeDelay;this.animateCell("data-changed",t,o)},r.prototype.animateCell=function(e,o,r){var i,n,s=this,a="ag-cell-"+e,l="ag-cell-"+e+"-animation",u=this.beans.gridOptionsService;o||(o=null!==(i=u.getNum("cellFlashDelay"))&&void 0!==i?i:500),t(r)||(r=null!==(n=u.getNum("cellFadeDelay"))&&void 0!==n?n:1e3),this.cellComp.addOrRemoveCssClass(a,!0),this.cellComp.addOrRemoveCssClass(l,!1),window.setTimeout((function(){s.isAlive()&&(s.cellComp.addOrRemoveCssClass(a,!1),s.cellComp.addOrRemoveCssClass(l,!0),s.eGui.style.transition="background-color "+r+"ms",window.setTimeout((function(){s.isAlive()&&(s.cellComp.addOrRemoveCssClass(l,!1),s.eGui.style.transition="")}),r))}),o)},r.prototype.onFlashCells=function(e){if(this.cellComp){var t=this.beans.cellPositionUtils.createId(this.getCellPosition());e.cells[t]&&this.animateCell("highlight")}},r.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},r.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},r.prototype.formatValue=function(e){var t=this.callValueFormatter(e);return null!=t?t:e},r.prototype.callValueFormatter=function(e){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,e)},r.prototype.updateAndFormatValue=function(e){void 0===e&&(e=!1);var t=this.value,o=this.valueFormatted;return this.value=this.getValueFromValueService(),this.valueFormatted=this.callValueFormatter(this.value),!!e||(!this.valuesAreEqual(t,this.value)||this.valueFormatted!=o)},r.prototype.valuesAreEqual=function(e,t){var o=this.column.getColDef();return o.equals?o.equals(e,t):e===t},r.prototype.getComp=function(){return this.cellComp},r.prototype.getValueFromValueService=function(){var e=this.rowNode.leafGroup&&this.beans.columnModel.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,o=this.beans.gridOptionsService.is("groupIncludeFooter"),r=this.beans.gridOptionsService.is("groupSuppressBlankHeader"),i=t&&o&&!r;return this.beans.valueService.getValue(this.column,this.rowNode,!1,i)},r.prototype.getValue=function(){return this.value},r.prototype.getValueFormatted=function(){return this.valueFormatted},r.prototype.addDomData=function(){var e=this,t=this.getGui();this.beans.gridOptionsService.setDomData(t,r.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc((function(){return e.beans.gridOptionsService.setDomData(t,r.DOM_DATA_KEY_CELL_CTRL,null)}))},r.prototype.createEvent=function(e,t){return{type:t,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsService.context,api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex}},r.prototype.onKeyPress=function(e){var t;null===(t=this.cellKeyboardListenerFeature)||void 0===t||t.onKeyPress(e)},r.prototype.onKeyDown=function(e){var t;null===(t=this.cellKeyboardListenerFeature)||void 0===t||t.onKeyDown(e)},r.prototype.onMouseEvent=function(e,t){var o;null===(o=this.cellMouseListenerFeature)||void 0===o||o.onMouseEvent(e,t)},r.prototype.getGui=function(){return this.eGui},r.prototype.refreshToolTip=function(){var e;null===(e=this.tooltipFeature)||void 0===e||e.refreshToolTip()},r.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},r.prototype.onLeftChanged=function(){var e;this.cellComp&&(null===(e=this.cellPositionFeature)||void 0===e||e.onLeftChanged())},r.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},r.prototype.setAriaColIndex=function(){var e=this.beans.columnModel.getAriaColumnIndex(this.column);no(this.getGui(),e)},r.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},r.prototype.onWidthChanged=function(){var e;return null===(e=this.cellPositionFeature)||void 0===e?void 0:e.onWidthChanged()},r.prototype.getColumn=function(){return this.column},r.prototype.getRowNode=function(){return this.rowNode},r.prototype.getBeans=function(){return this.beans},r.prototype.isPrintLayout=function(){return this.printLayout},r.prototype.appendChild=function(e){this.eGui.appendChild(e)},r.prototype.refreshHandle=function(){this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},r.prototype.getCellPosition=function(){return this.cellPosition},r.prototype.isEditing=function(){return this.editing},r.prototype.startRowOrCellEdit=function(e,t,o){void 0===o&&(o=null),this.cellComp&&("fullRow"===this.beans.gridOptionsService.get("editType")?this.rowCtrl.startRowEditing(e,t,this):this.startEditing(e,t,!0,o))},r.prototype.getRowCtrl=function(){return this.rowCtrl},r.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},r.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},r.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},r.prototype.isRangeSelectionEnabled=function(){return null!=this.cellRangeFeature},r.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusService.setFocusedCell({rowIndex:this.getCellPosition().rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:e})},r.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},r.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var e=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass("ag-cell-first-right-pinned",e)}},r.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var e=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass("ag-cell-last-left-pinned",e)}},r.prototype.onCellFocused=function(e){if(this.cellComp&&!this.beans.gridOptionsService.is("suppressCellFocus")){var t=this.beans.focusService.isCellFocused(this.cellPosition);if(this.cellComp.addOrRemoveCssClass("ag-cell-focus",t),t&&e&&e.forceBrowserFocus)this.cellComp.getFocusableElement().focus({preventScroll:!!e.preventScrollOnBrowserFocus});var o="fullRow"===this.beans.gridOptionsService.get("editType");t||o||!this.editing||this.stopRowOrCellEdit()}},r.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:e(this.rowNode.rowPinned),column:this.column}},r.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass("ag-cell",!0),this.cellComp.addOrRemoveCssClass("ag-cell-not-inline-editing",!0);var e=1==this.column.isAutoHeight();this.cellComp.addOrRemoveCssClass("ag-cell-auto-height",e),this.cellComp.addOrRemoveCssClass("ag-cell-normal-height",!e)},r.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsService.is("columnHoverHighlight")){var e=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass("ag-column-hover",e)}},r.prototype.onColDefChanged=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},r.prototype.setWrapText=function(){var e=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass("ag-cell-wrap-text",e)},r.prototype.dispatchCellContextMenuEvent=function(e){var t=this.column.getColDef(),o=this.createEvent(e,ke.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(o),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(o)}),0)},r.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},r.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},r.prototype.destroy=function(){this.onCellCompAttachedFuncs=[],o.prototype.destroy.call(this)},r.prototype.createSelectionCheckbox=function(){var e=new ms;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e},r.prototype.createDndSource=function(){var e=new ml(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(e),e},r.prototype.registerRowDragger=function(e,t,o){var r=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(e,t);else{var i=this.createRowDragComp(e,t,o);i&&(this.customRowDragComp=i,this.addDestroyFunc((function(){r.beans.context.destroyBean(i),r.customRowDragComp=null})))}},r.prototype.createRowDragComp=function(e,t,o){var r=this,i=this.beans.gridOptionsService.is("pagination"),n=this.beans.gridOptionsService.is("rowDragManaged"),s=this.beans.gridOptionsService.isRowModelType("clientSide");if(n){if(!s)return void O((function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(i)return void O((function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var a=new Ts((function(){return r.value}),this.rowNode,this.column,e,t,o);return this.beans.context.createBean(a),a},r.DOM_DATA_KEY_CELL_CTRL="cellCtrl",r}(Le),Rl=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ol=function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},bl=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},Tl=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(bl(arguments[t]));return e};!function(e){e.Normal="Normal",e.FullWidth="FullWidth",e.FullWidthLoading="FullWidthLoading",e.FullWidthGroup="FullWidthGroup",e.FullWidthDetail="FullWidthDetail"}(ol||(ol={}));var Pl,Dl,_l=0,Al=function(o){function r(e,t,r,i,n){var s=o.call(this)||this;return s.allRowGuis=[],s.active=!0,s.centerCellCtrls={list:[],map:{}},s.leftCellCtrls={list:[],map:{}},s.rightCellCtrls={list:[],map:{}},s.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},s.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},s.lastMouseDownOnDragger=!1,s.updateColumnListsPending=!1,s.businessKeySanitised=null,s.beans=t,s.rowNode=e,s.paginationPage=s.beans.paginationProxy.getCurrentPage(),s.useAnimationFrameForCreate=i,s.printLayout=n,s.instanceId=e.id+"-"+_l++,s.setAnimateFlags(r),s.initRowBusinessKey(),s.rowFocused=s.beans.focusService.isRowFocused(s.rowNode.rowIndex,s.rowNode.rowPinned),s.rowLevel=s.beans.rowCssClassCalculator.calculateRowLevel(s.rowNode),s.setRowType(),s.addListeners(),s}return Rl(r,o),r.prototype.initRowBusinessKey=function(){var e=this.beans.gridOptionsService.get("getBusinessKeyForNode");if("function"==typeof e){var t=e(this.rowNode);this.businessKeySanitised=ht(t)}},r.prototype.isSticky=function(){return this.rowNode.sticky},r.prototype.getBeans=function(){return this.beans},r.prototype.getInstanceId=function(){return this.instanceId},r.prototype.setComp=function(e,t,o){var r={rowComp:e,element:t,containerType:o};this.allRowGuis.push(r),o===exports.RowContainerType.LEFT?this.leftGui=r:o===exports.RowContainerType.RIGHT?this.rightGui=r:o===exports.RowContainerType.FULL_WIDTH?this.fullWidthGui=r:this.centerGui=r,this.initialiseRowComp(r),"FullWidthLoading"===this.rowType||this.rowNode.rowPinned||this.beans.rowRenderer.dispatchFirstDataRenderedEvent()},r.prototype.unsetComp=function(e){this.allRowGuis=this.allRowGuis.filter((function(t){return t.containerType!==e})),e===exports.RowContainerType.LEFT?this.leftGui=void 0:e===exports.RowContainerType.RIGHT?this.rightGui=void 0:e===exports.RowContainerType.FULL_WIDTH&&(this.fullWidthGui=void 0)},r.prototype.isCacheable=function(){return this.rowType===ol.FullWidthDetail&&this.beans.gridOptionsService.is("keepDetailRows")},r.prototype.setCached=function(e){var t=e?"none":"";this.allRowGuis.forEach((function(e){return e.element.style.display=t}))},r.prototype.initialiseRowComp=function(e){var t=this,o=this.beans.gridOptionsService;this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(e),o.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);var i=e.rowComp;i.setRole("row"),this.getInitialRowClasses(e.containerType).forEach((function(e){return i.addOrRemoveCssClass(e,!0)})),this.executeSlideAndFadeAnimations(e),this.rowNode.group&&Jt(e.element,1==this.rowNode.expanded);var n=ht(this.rowNode.id);null!=n&&i.setRowId(n),null!=this.businessKeySanitised&&i.setRowBusinessKey(this.businessKeySanitised),this.isFullWidth()&&!this.beans.gridOptionsService.is("suppressCellFocus")&&i.setTabIndex(-1),o.setDomData(e.element,r.DOM_DATA_KEY_ROW_CTRL,this),this.addDestroyFunc((function(){return o.setDomData(e.element,r.DOM_DATA_KEY_ROW_CTRL,null)})),this.useAnimationFrameForCreate?this.beans.animationFrameService.createTask(this.addHoverFunctionality.bind(this,e.element),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(e.element),this.isFullWidth()&&this.setupFullWidth(e),o.is("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameService.addDestroyTask((function(){t.isAlive()&&e.rowComp.addOrRemoveCssClass("ag-after-created",!0)})),this.executeProcessRowPostCreateFunc()},r.prototype.executeSlideAndFadeAnimations=function(e){var t=this,o=e.containerType;this.slideInAnimation[o]&&(A((function(){t.onTopChanged()})),this.slideInAnimation[o]=!1),this.fadeInAnimation[o]&&(A((function(){e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)})),this.fadeInAnimation[o]=!1)},r.prototype.addRowDraggerToRow=function(e){if(this.beans.gridOptionsService.isEnableRangeSelection())O((function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")}),"rowDragAndRangeSelectionEnabled");else{var t=this.beans.localeService.getLocaleTextFunc(),o=new Ts((function(){return"1 "+t("rowDragRow","row")}),this.rowNode,void 0,e.element,void 0,!0);this.createManagedBean(o,this.beans.context)}},r.prototype.setupFullWidth=function(e){var t=this.getPinnedForContainer(e.containerType),o=this.createFullWidthParams(e.element,t);if(this.rowType!=ol.FullWidthDetail||ee.assertRegistered(exports.ModuleNames.MasterDetailModule,"cell renderer 'agDetailCellRenderer' (for master detail)")){var r;switch(this.rowType){case ol.FullWidthDetail:r=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(o);break;case ol.FullWidthGroup:r=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(o);break;case ol.FullWidthLoading:r=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(o);break;default:r=this.beans.userComponentFactory.getFullWidthCellRendererDetails(o)}e.rowComp.showFullWidth(r)}},r.prototype.isPrintLayout=function(){return this.printLayout},r.prototype.getFullWidthCellRenderer=function(){var e,t;return null===(t=null===(e=this.fullWidthGui)||void 0===e?void 0:e.rowComp)||void 0===t?void 0:t.getFullWidthCellRenderer()},r.prototype.getCellElement=function(e){var t=this.getCellCtrl(e);return t?t.getGui():null},r.prototype.executeProcessRowPostCreateFunc=function(){var e,t=this.beans.gridOptionsService.getCallback("processRowPostCreate");t&&this.areAllContainersReady()&&t({eRow:null===(e=this.centerGui)||void 0===e?void 0:e.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})},r.prototype.areAllContainersReady=function(){var e=!!this.leftGui||!this.beans.columnModel.isPinningLeft(),t=!!this.centerGui,o=!!this.rightGui||!this.beans.columnModel.isPinningRight();return e&&t&&o},r.prototype.setRowType=function(){var e=this.rowNode.stub,t=this.rowNode.isFullWidthCell(),o=this.beans.doingMasterDetail&&this.rowNode.detail,r=this.beans.columnModel.isPivotMode(),i=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsService.isGroupUseEntireRow(r);this.rowType=e?ol.FullWidthLoading:o?ol.FullWidthDetail:t?ol.FullWidth:i?ol.FullWidthGroup:ol.Normal},r.prototype.updateColumnLists=function(e){var t=this;(void 0===e&&(e=!1),this.isFullWidth())||(e||this.beans.gridOptionsService.is("suppressAnimationFrame")||this.printLayout?this.updateColumnListsImpl():this.updateColumnListsPending||(this.beans.animationFrameService.createTask((function(){t.active&&t.updateColumnListsImpl()}),this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0))},r.prototype.createCellCtrls=function(e,t,o){var r=this;void 0===o&&(o=null);var i={list:[],map:{}},n=function(e,t){i.list.push(t),i.map[e]=t};return t.forEach((function(t){var o=t.getInstanceId(),i=e.map[o];i||(i=new El(t,r.rowNode,r.beans,r)),n(o,i)})),e.list.forEach((function(e){null!=i.map[e.getColumn().getInstanceId()]||(!r.isCellEligibleToBeRemoved(e,o)?n(e.getColumn().getInstanceId(),e):e.destroy())})),i},r.prototype.updateColumnListsImpl=function(){var e=this;this.updateColumnListsPending=!1;var t=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var o=t.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o);var r=t.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,"left");var i=t.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,i,"right")}this.allRowGuis.forEach((function(t){var o=t.containerType===exports.RowContainerType.LEFT?e.leftCellCtrls:t.containerType===exports.RowContainerType.RIGHT?e.rightCellCtrls:e.centerCellCtrls;t.rowComp.setCellCtrls(o.list)}))},r.prototype.isCellEligibleToBeRemoved=function(e,t){if(e.getColumn().getPinned()!=t)return!0;var o=e.isEditing(),r=this.beans.focusService.isCellFocused(e.getCellPosition());if(o||r){var i=e.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(i)>=0)}return!0},r.prototype.setAnimateFlags=function(e){if(!this.isSticky()&&e){var o=t(this.rowNode.oldRowTop),r=this.beans.columnModel.isPinningLeft(),i=this.beans.columnModel.isPinningRight();o?(this.slideInAnimation.center=!0,this.slideInAnimation.left=r,this.slideInAnimation.right=i):(this.fadeInAnimation.center=!0,this.fadeInAnimation.left=r,this.fadeInAnimation.right=i)}},r.prototype.isEditing=function(){return this.editingRow},r.prototype.stopRowEditing=function(e){this.stopEditing(e)},r.prototype.isFullWidth=function(){return this.rowType!==ol.Normal},r.prototype.getRowType=function(){return this.rowType},r.prototype.refreshFullWidth=function(){var e=this,t=function(t,o){if(!t)return!0;var r=t.rowComp.getFullWidthCellRenderer();if(!r)return!1;if(!r.refresh)return!1;var i=e.createFullWidthParams(t.element,o);return r.refresh(i)},o=t(this.fullWidthGui,null),r=t(this.centerGui,null),i=t(this.leftGui,"left"),n=t(this.rightGui,"right");return o&&r&&i&&n},r.prototype.addListeners=function(){var e=this;this.addManagedListener(this.rowNode,fs.EVENT_HEIGHT_CHANGED,(function(){return e.onRowHeightChanged()})),this.addManagedListener(this.rowNode,fs.EVENT_ROW_SELECTED,(function(){return e.onRowSelected()})),this.addManagedListener(this.rowNode,fs.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,fs.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,fs.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,fs.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,fs.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,fs.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,fs.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,fs.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,fs.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var t=this.beans.eventService;this.addManagedListener(t,ke.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(t,ke.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(t,ke.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(t,ke.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(t,ke.EVENT_CELL_FOCUSED,this.onCellFocused.bind(this)),this.addManagedListener(t,ke.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusCleared.bind(this)),this.addManagedListener(t,ke.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(t,ke.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(t,ke.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},r.prototype.onColumnMoved=function(){this.updateColumnLists()},r.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,fs.EVENT_ROW_INDEX_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,fs.EVENT_CELL_CHANGED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellChanged(t)}))}))},r.prototype.onRowNodeDataChanged=function(e){this.getAllCellCtrls().forEach((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},r.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},r.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},r.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach((function(t){var o=e===exports.RowHighlightPosition.Above,r=e===exports.RowHighlightPosition.Below;t.rowComp.addOrRemoveCssClass("ag-row-highlight-above",o),t.rowComp.addOrRemoveCssClass("ag-row-highlight-below",r)}))},r.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},r.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-dragging",e)}))},r.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),t=1==this.rowNode.expanded;this.allRowGuis.forEach((function(o){o.rowComp.addOrRemoveCssClass("ag-row-group",e),o.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&t),o.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!t),Jt(o.element,e&&t)}))},r.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},r.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},r.prototype.getRowPosition=function(){return{rowPinned:e(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},r.prototype.onKeyboardNavigate=function(e){var t=this.allRowGuis.find((function(t){return t.element.contains(e.target)}));if((t?t.element:null)===e.target){var o=this.rowNode,r=this.beans.focusService.getFocusedCell(),i={rowIndex:o.rowIndex,rowPinned:o.rowPinned,column:r&&r.column};this.beans.navigationService.navigateToNextCell(e,e.key,i,!0),e.preventDefault()}},r.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!Re(e)){var t=this.allRowGuis.find((function(t){return t.element.contains(e.target)})),o=t?t.element:null,r=o===e.target,i=null;r||(i=this.beans.focusService.findNextFocusableElement(o,!1,e.shiftKey)),(this.isFullWidth()&&r||!i)&&this.beans.navigationService.onTabKeyDown(this,e)}},r.prototype.onFullWidthRowFocused=function(e){var t,o=this.rowNode,r=!!e&&(this.isFullWidth()&&e.rowIndex===o.rowIndex&&e.rowPinned==o.rowPinned),i=this.fullWidthGui?this.fullWidthGui.element:null===(t=this.centerGui)||void 0===t?void 0:t.element;i&&(i.classList.toggle("ag-full-width-focus",r),r&&i.focus({preventScroll:!0}))},r.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},r.prototype.removeCellCtrl=function(e,t){var o={list:[],map:{}};return e.list.forEach((function(e){e!==t&&(o.list.push(e),o.map[e.getInstanceId()]=e)})),o},r.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t)}},r.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,event:t}},r.prototype.createRowEventWithSource=function(e,t){var o=this.createRowEvent(e,t);return o.source=this,o},r.prototype.onRowDblClick=function(e){if(!Re(e)){var t=this.createRowEventWithSource(ke.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},r.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=er(e.target,"ag-row-drag",3),this.isFullWidth()){var t=this.rowNode,o=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:t.rowIndex,column:o.getAllDisplayedColumns()[0],rowPinned:t.rowPinned,forceBrowserFocus:!0})}},r.prototype.onRowClick=function(e){if(!(Re(e)||this.lastMouseDownOnDragger)){var t=this.createRowEventWithSource(ke.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var o=e.ctrlKey||e.metaKey,r=e.shiftKey;if(!(this.beans.gridOptionsService.is("groupSelectsChildren")&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsService.isRowSelection()||this.beans.gridOptionsService.is("suppressRowClickSelection"))){var i=this.beans.gridOptionsService.is("rowMultiSelectWithClick"),n=!this.beans.gridOptionsService.is("suppressRowDeselection"),s="rowClicked";if(this.rowNode.isSelected())i?this.rowNode.setSelectedParams({newValue:!1,event:e,source:s}):o?n&&this.rowNode.setSelectedParams({newValue:!1,event:e,source:s}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!r,rangeSelect:r,event:e,source:s});else{var a=!i&&!o;this.rowNode.setSelectedParams({newValue:!0,clearSelection:a,rangeSelect:r,event:e,source:s})}}}},r.prototype.setupDetailRowAutoHeight=function(e){var t=this;if(this.rowType===ol.FullWidthDetail&&this.beans.gridOptionsService.is("detailRowAutoHeight")){var o=function(){var o=e.clientHeight;if(null!=o&&o>0){t.beans.frameworkOverrides.setTimeout((function(){t.rowNode.setRowHeight(o),t.beans.clientSideRowModel?t.beans.clientSideRowModel.onRowHeightChanged():t.beans.serverSideRowModel&&t.beans.serverSideRowModel.onRowHeightChanged()}),0)}},r=this.beans.resizeObserverService.observeResize(e,o);this.addDestroyFunc(r),o()}},r.prototype.createFullWidthParams=function(e,t){var o=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,context:this.beans.gridOptionsService.context,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(e,t,r,i){return o.addFullWidthRowDragging(e,t,r,i)}}},r.prototype.addFullWidthRowDragging=function(e,t,o,r){if(void 0===o&&(o=""),this.isFullWidth()){var i=new Ts((function(){return o}),this.rowNode,void 0,e,t,r);this.createManagedBean(i,this.beans.context)}},r.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var t="ag-row-level-"+e,o="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(e){e.rowComp.addOrRemoveCssClass(t,!0),e.rowComp.addOrRemoveCssClass(o,!1)}))}this.rowLevel=e},r.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},r.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},r.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},r.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-last",t)})))},r.prototype.stopEditing=function(e){var t,o;if(void 0===e&&(e=!1),!this.stoppingRowEdit){var r=this.getAllCellCtrls(),i=this.editingRow;this.stoppingRowEdit=!0;var n=!1;try{for(var s=Ol(r),a=s.next();!a.done;a=s.next()){var l=a.value.stopEditing(e);i&&!e&&!n&&l&&(n=!0)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(t)throw t.error}}if(n){var u=this.createRowEvent(ke.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(u)}i&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},r.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),t.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)}))},r.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-editing",e)}));var t=e?this.createRowEvent(ke.EVENT_ROW_EDITING_STARTED):this.createRowEvent(ke.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},r.prototype.startRowEditing=function(e,t,o,r){(void 0===e&&(e=null),void 0===t&&(t=null),void 0===o&&(o=null),void 0===r&&(r=null),this.editingRow)||this.getAllCellCtrls().reduce((function(i,n){var s=n===o;return s?n.startEditing(e,t,s,r):n.startEditing(null,null,s,r),!!i||n.isEditing()}),!1)&&this.setEditingRow(!0)},r.prototype.getAllCellCtrls=function(){return 0===this.leftCellCtrls.list.length&&0===this.rightCellCtrls.list.length?this.centerCellCtrls.list:Tl(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list)},r.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);t&&t.length&&t.forEach((function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!0)}))}))},r.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,(function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!0)}))}),(function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!1)}))}))},r.prototype.setStylesFromGridOptions=function(e){var t=this.processStylesFromGridOptions();this.forEachGui(e,(function(e){return e.rowComp.setUserStyles(t)}))},r.prototype.getPinnedForContainer=function(e){return e===exports.RowContainerType.LEFT?"left":e===exports.RowContainerType.RIGHT?"right":null},r.prototype.getInitialRowClasses=function(e){var t=this.getPinnedForContainer(e),o={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[e],rowIsEven:this.rowNode.rowIndex%2==0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:t};return this.beans.rowCssClassCalculator.getInitialRowClasses(o)},r.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsService.get("rowStyle");if(!e||"function"!=typeof e){var t,o=this.beans.gridOptionsService.getCallback("getRowStyle");if(o)t=o({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex});return Object.assign({},e,t)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},r.prototype.onRowSelected=function(e){var t=this,o=!!this.rowNode.isSelected();this.forEachGui(e,(function(e){e.rowComp.addOrRemoveCssClass("ag-row-selected",o),uo(e.element,!!o||void 0);var r=t.createAriaLabel();Wt(e.element,null==r?"":r)}))},r.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!e||!this.beans.gridOptionsService.is("suppressRowDeselection"))return this.beans.localeService.getLocaleTextFunc()(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(e?"deselect":"select")+" this row.")},r.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},r.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addManagedListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addManagedListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,fs.EVENT_MOUSE_ENTER,(function(){t.beans.dragService.isDragging()||t.beans.gridOptionsService.is("suppressRowHoverHighlight")||e.classList.add("ag-row-hover")})),this.addManagedListener(this.rowNode,fs.EVENT_MOUSE_LEAVE,(function(){e.classList.remove("ag-row-hover")})))},r.prototype.roundRowTopToBounds=function(e){var t=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.applyPaginationOffset(t.top,!0)-100,r=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(o,e),r)},r.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},r.prototype.forEachGui=function(e,t){(e?[e]:this.allRowGuis).forEach(t)},r.prototype.onRowHeightChanged=function(e){if(null!=this.rowNode.rowHeight){var t=this.rowNode.rowHeight,o=this.beans.environment.getDefaultRowHeight(),r=this.beans.gridOptionsService.isGetRowHeightFunction()?this.beans.gridOptionsService.getRowHeightForNode(this.rowNode).height:void 0,i=r?Math.min(o,r)-2+"px":void 0;this.forEachGui(e,(function(e){e.element.style.height=t+"px",i&&e.element.style.setProperty("--ag-line-height",i)}))}},r.prototype.addEventListener=function(e,t){o.prototype.addEventListener.call(this,e,t)},r.prototype.removeEventListener=function(e,t){o.prototype.removeEventListener.call(this,e,t)},r.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var e=this.createRowEvent(ke.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(e),this.beans.eventService.dispatchEvent(e),o.prototype.destroy.call(this)},r.prototype.setupRemoveAnimation=function(){if(!this.isSticky())if(null!=this.rowNode.rowTop){var e=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(e)}else this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)}))},r.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var e=function(e){return e.list.forEach((function(e){return e.destroy()})),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)},r.prototype.setFocusedClasses=function(e){var t=this;this.forEachGui(e,(function(e){e.rowComp.addOrRemoveCssClass("ag-row-focus",t.rowFocused),e.rowComp.addOrRemoveCssClass("ag-row-no-focus",!t.rowFocused)}))},r.prototype.onCellFocused=function(){this.onCellFocusChanged()},r.prototype.onCellFocusCleared=function(){this.onCellFocusChanged()},r.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},r.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},r.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},r.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},r.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},r.prototype.setRowTop=function(e){if(!this.printLayout&&t(e)){var o=this.applyPaginationOffset(e),r=(this.rowNode.isRowPinned()?o:this.beans.rowContainerHeightService.getRealPixelPosition(o))+"px";this.setRowTopStyle(r)}},r.prototype.getInitialRowTop=function(e){return this.beans.gridOptionsService.is("suppressRowTransform")?this.getInitialRowTopShared(e):void 0},r.prototype.getInitialTransform=function(e){return this.beans.gridOptionsService.is("suppressRowTransform")?void 0:"translateY("+this.getInitialRowTopShared(e)+")"},r.prototype.getInitialRowTopShared=function(e){if(this.printLayout)return"";var t;if(this.isSticky())t=this.rowNode.stickyRowTop;else{var o=this.slideInAnimation[e]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,r=this.applyPaginationOffset(o);t=this.rowNode.isRowPinned()?r:this.beans.rowContainerHeightService.getRealPixelPosition(r)}return t+"px"},r.prototype.setRowTopStyle=function(e){var t=this.beans.gridOptionsService.is("suppressRowTransform");this.allRowGuis.forEach((function(o){return t?o.rowComp.setTop(e):o.rowComp.setTransform("translateY("+e+")")}))},r.prototype.getRowNode=function(){return this.rowNode},r.prototype.getCellCtrl=function(e){var t=null;return this.getAllCellCtrls().forEach((function(o){o.getColumn()==e&&(t=o)})),null!=t||this.getAllCellCtrls().forEach((function(o){o.getColSpanningList().indexOf(e)>=0&&(t=o)})),t},r.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},r.prototype.updateRowIndexes=function(e){var t=this.rowNode.getRowIndexString(),o=this.beans.headerNavigationService.getHeaderRowCount(),r=this.rowNode.rowIndex%2==0,i=o+this.rowNode.rowIndex+1;this.forEachGui(e,(function(e){e.rowComp.setRowIndex(t),e.rowComp.addOrRemoveCssClass("ag-row-even",r),e.rowComp.addOrRemoveCssClass("ag-row-odd",!r),ro(e.element,i)}))},r.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},r.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},r.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},r.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},r.DOM_DATA_KEY_ROW_CTRL="renderedRow",r}(Le),Nl=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ml=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Fl=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},Ll=function(e){function t(t){var o=e.call(this)||this;return o.element=t,o}return Nl(t,e),t.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},t.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var o=e.processKeyboardEvent.bind(e,t);e.addManagedListener(e.element,t,o)}))},t.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click",be("touchstart")?"touchstart":"mousedown"].forEach((function(t){var o=e.processMouseEvent.bind(e,t);e.addManagedListener(e.element,t,o)}))},t.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!Re(t)){var o=this.getRowForEvent(t),r=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,o,r):(r&&r.onMouseEvent(e,t),o&&o.onMouseEvent(e,t))}},t.prototype.mockContextMenuForIPad=function(){var e=this;if(To()){var t=new kn(this.element);this.addManagedListener(t,kn.EVENT_LONG_TAP,(function(t){var o=e.getRowForEvent(t.touchEvent),r=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,o,r)})),this.addDestroyFunc((function(){return t.destroy()}))}},t.prototype.getRowForEvent=function(e){for(var t=e.target;t;){var o=this.gridOptionsService.getDomData(t,Al.DOM_DATA_KEY_ROW_CTRL);if(o)return o;t=t.parentElement}return null},t.prototype.handleContextMenuMouseEvent=function(e,t,o,r){var i=o?o.getRowNode():null,n=r?r.getColumn():null,s=null;if(n){var a=e||t;r.dispatchCellContextMenuEvent(a),s=this.valueService.getValue(n,i)}var l=this.ctrlsService.getGridBodyCtrl(),u=r?r.getGui():l.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,t,i,n,s,u)},t.prototype.processKeyboardEvent=function(e,t){var o=Te(this.gridOptionsService,t,El.DOM_DATA_KEY_CELL_CTRL),r=Te(this.gridOptionsService,t,Al.DOM_DATA_KEY_ROW_CTRL);t.defaultPrevented||(o?this.processCellKeyboardEvent(o,e,t):r&&r.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,e,t))},t.prototype.processCellKeyboardEvent=function(e,t,o){var r=e.getRowNode(),i=e.getColumn(),n=e.isEditing();if(!Gr(this.gridOptionsService,o,r,i,n))switch(t){case"keydown":!n&&this.navigationService.handlePageScrollingKey(o)||e.onKeyDown(o),this.doGridOperations(o,e.isEditing());break;case"keypress":e.onKeyPress(o)}if("keydown"===t){var s=e.createEvent(o,ke.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(s)}if("keypress"===t){var a=e.createEvent(o,ke.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(a)}},t.prototype.processFullWidthRowKeyboardEvent=function(e,t,o){var r=e.getRowNode(),i=this.focusService.getFocusedCell(),n=i&&i.column;if(!Gr(this.gridOptionsService,o,r,n,!1)){var s=o.key;if("keydown"===t)switch(s){case xr.PAGE_HOME:case xr.PAGE_END:this.navigationService.handlePageScrollingKey(o);break;case xr.UP:case xr.DOWN:e.onKeyboardNavigate(o);break;case xr.TAB:e.onTabKeyDown(o)}}if("keydown"===t){var a=e.createRowEvent(ke.EVENT_CELL_KEY_DOWN,o);this.eventService.dispatchEvent(a)}if("keypress"===t){var l=e.createRowEvent(ke.EVENT_CELL_KEY_PRESS,o);this.eventService.dispatchEvent(l)}},t.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t&&this.mouseEventService.isEventFromThisGrid(e)){var o=Vr(e);return o===xr.A?this.onCtrlAndA(e):o===xr.C?this.onCtrlAndC(e):o===xr.X?this.onCtrlAndX(e):o===xr.V?this.onCtrlAndV():o===xr.D?this.onCtrlAndD(e):o===xr.Z?this.onCtrlAndZ(e):o===xr.Y?this.onCtrlAndY():void 0}},t.prototype.onCtrlAndA=function(e){var t=this.pinnedRowModel,o=this.paginationProxy,i=this.rangeService;if(i&&o.isRowsToRender()){var n=Fl([t.isEmpty("top"),t.isEmpty("bottom")],2),s=n[0]?null:"top",a=void 0,l=void 0;n[1]?(a=null,l=this.paginationProxy.getRowCount()-1):(a="bottom",l=t.getPinnedBottomRowData().length-1);var u=this.columnModel.getAllDisplayedColumns();if(r(u))return;i.setCellRange({rowStartIndex:0,rowStartPinned:s,rowEndIndex:l,rowEndPinned:a,columnStart:u[0],columnEnd:ue(u)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsService.is("enableCellTextSelection")&&(this.clipboardService.copyToClipboard(),e.preventDefault())},t.prototype.onCtrlAndX=function(e){!this.clipboardService||this.gridOptionsService.is("enableCellTextSelection")||this.gridOptionsService.is("suppressCutToClipboard")||(this.clipboardService.cutToClipboard(),e.preventDefault())},t.prototype.onCtrlAndV=function(){ee.isRegistered(exports.ModuleNames.ClipboardModule)&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){ee.isRegistered(exports.ModuleNames.ClipboardModule)&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),e.preventDefault()},t.prototype.onCtrlAndZ=function(e){this.gridOptionsService.is("undoRedoCellEditing")&&(e.preventDefault(),e.shiftKey?this.undoRedoService.redo("ui"):this.undoRedoService.undo("ui"))},t.prototype.onCtrlAndY=function(){this.undoRedoService.redo("ui")},Ml([U("mouseEventService")],t.prototype,"mouseEventService",void 0),Ml([U("valueService")],t.prototype,"valueService",void 0),Ml([z("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),Ml([U("ctrlsService")],t.prototype,"ctrlsService",void 0),Ml([U("navigationService")],t.prototype,"navigationService",void 0),Ml([U("focusService")],t.prototype,"focusService",void 0),Ml([U("undoRedoService")],t.prototype,"undoRedoService",void 0),Ml([U("columnModel")],t.prototype,"columnModel",void 0),Ml([U("paginationProxy")],t.prototype,"paginationProxy",void 0),Ml([U("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Ml([z("rangeService")],t.prototype,"rangeService",void 0),Ml([z("clipboardService")],t.prototype,"clipboardService",void 0),Ml([B],t.prototype,"postConstruct",null),t}(Le),xl=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Il=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Gl=function(e){function t(t){var o=e.call(this)||this;return o.centerContainerCtrl=t,o}return xl(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()})),this.addManagedListener(this.eventService,ke.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},t.prototype.listenForResize=function(){var e=this,t=function(){return e.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(t),this.gridBodyCtrl.registerBodyViewportResizeListener(t)},t.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},t.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var e=or(this.gridBodyCtrl.getBodyViewportElement());if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:ke.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(t)}},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e),this.gridBodyCtrl.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsService.is("alwaysShowHorizontalScroll")||this.centerContainerCtrl.isViewportHScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},Il([U("ctrlsService")],t.prototype,"ctrlsService",void 0),Il([U("columnModel")],t.prototype,"columnModel",void 0),Il([U("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Il([B],t.prototype,"postConstruct",null),t}(Le),Hl=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Vl=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},kl=function(e){function t(t){var o=e.call(this)||this;return o.element=t,o}return Hl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,ke.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;Jo(this.element,t),Er(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedLeftWidth()},Vl([U("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),Vl([B],t.prototype,"postConstruct",null),t}(Le),Bl=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),jl=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Wl=function(e){function t(t){var o=e.call(this)||this;return o.element=t,o}return Bl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,ke.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;Jo(this.element,t),Er(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedRightWidth()},jl([U("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),jl([B],t.prototype,"postConstruct",null),t}(Le),Ul=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),zl=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Kl=function(e){function t(t,o){var r=e.call(this)||this;return r.eContainer=t,r.eWrapper=o,r}return Ul(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,ke.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),t=null!=e?e+"px":"";this.eContainer.style.height=t,this.eWrapper&&(this.eWrapper.style.height=t)},zl([U("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),zl([B],t.prototype,"postConstruct",null),t}(Le),Yl=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ql=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ql=function(e){function t(t){var o=e.call(this)||this;return o.eContainer=t,o}return Yl(t,e),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsService.isEnableRangeSelection()&&!o(this.rangeService)){var t={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(t),this.addDestroyFunc((function(){return e.dragService.removeDragSource(t)}))}},ql([z("rangeService")],t.prototype,"rangeService",void 0),ql([U("dragService")],t.prototype,"dragService",void 0),ql([B],t.prototype,"postConstruct",null),t}(Le),Xl=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Jl=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Zl=function(e){function t(t){var o=e.call(this)||this;return o.callback=t,o}return Xl(t,e),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,t=this.gridOptionsService.isDomLayout("print"),o=e.getBodyContainerWidth(),r=e.getDisplayedColumnsLeftWidth(),i=e.getDisplayedColumnsRightWidth(),n=t?o+r+i:o;this.callback(n)},Jl([U("columnModel")],t.prototype,"columnModel",void 0),Jl([B],t.prototype,"postConstruct",null),t}(Le),$l=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),eu=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},tu=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},ou=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(tu(arguments[t]));return e};function ru(e){switch(e){case exports.RowContainerName.CENTER:case exports.RowContainerName.TOP_CENTER:case exports.RowContainerName.STICKY_TOP_CENTER:case exports.RowContainerName.BOTTOM_CENTER:return exports.RowContainerType.CENTER;case exports.RowContainerName.LEFT:case exports.RowContainerName.TOP_LEFT:case exports.RowContainerName.STICKY_TOP_LEFT:case exports.RowContainerName.BOTTOM_LEFT:return exports.RowContainerType.LEFT;case exports.RowContainerName.RIGHT:case exports.RowContainerName.TOP_RIGHT:case exports.RowContainerName.STICKY_TOP_RIGHT:case exports.RowContainerName.BOTTOM_RIGHT:return exports.RowContainerType.RIGHT;case exports.RowContainerName.FULL_WIDTH:case exports.RowContainerName.TOP_FULL_WIDTH:case exports.RowContainerName.STICKY_TOP_FULL_WIDTH:case exports.RowContainerName.BOTTOM_FULL_WIDTH:return exports.RowContainerType.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}(Pl=exports.RowContainerName||(exports.RowContainerName={})).LEFT="left",Pl.RIGHT="right",Pl.CENTER="center",Pl.FULL_WIDTH="fullWidth",Pl.TOP_LEFT="topLeft",Pl.TOP_RIGHT="topRight",Pl.TOP_CENTER="topCenter",Pl.TOP_FULL_WIDTH="topFullWidth",Pl.STICKY_TOP_LEFT="stickyTopLeft",Pl.STICKY_TOP_RIGHT="stickyTopRight",Pl.STICKY_TOP_CENTER="stickyTopCenter",Pl.STICKY_TOP_FULL_WIDTH="stickyTopFullWidth",Pl.BOTTOM_LEFT="bottomLeft",Pl.BOTTOM_RIGHT="bottomRight",Pl.BOTTOM_CENTER="bottomCenter",Pl.BOTTOM_FULL_WIDTH="bottomFullWidth",(Dl=exports.RowContainerType||(exports.RowContainerType={})).LEFT="left",Dl.RIGHT="right",Dl.CENTER="center",Dl.FULL_WIDTH="fullWidth";var iu=vt([[exports.RowContainerName.CENTER,"ag-center-cols-container"],[exports.RowContainerName.LEFT,"ag-pinned-left-cols-container"],[exports.RowContainerName.RIGHT,"ag-pinned-right-cols-container"],[exports.RowContainerName.FULL_WIDTH,"ag-full-width-container"],[exports.RowContainerName.TOP_CENTER,"ag-floating-top-container"],[exports.RowContainerName.TOP_LEFT,"ag-pinned-left-floating-top"],[exports.RowContainerName.TOP_RIGHT,"ag-pinned-right-floating-top"],[exports.RowContainerName.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[exports.RowContainerName.STICKY_TOP_CENTER,"ag-sticky-top-container"],[exports.RowContainerName.STICKY_TOP_LEFT,"ag-pinned-left-sticky-top"],[exports.RowContainerName.STICKY_TOP_RIGHT,"ag-pinned-right-sticky-top"],[exports.RowContainerName.STICKY_TOP_FULL_WIDTH,"ag-sticky-top-full-width-container"],[exports.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-container"],[exports.RowContainerName.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[exports.RowContainerName.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[exports.RowContainerName.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),nu=vt([[exports.RowContainerName.CENTER,"ag-center-cols-viewport"],[exports.RowContainerName.TOP_CENTER,"ag-floating-top-viewport"],[exports.RowContainerName.STICKY_TOP_CENTER,"ag-sticky-top-viewport"],[exports.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),su=vt([[exports.RowContainerName.CENTER,"ag-center-cols-clipper"]]),au=function(e){function t(t){var o=e.call(this)||this;return o.visible=!0,o.EMPTY_CTRLS=[],o.name=t,o.isFullWithContainer=o.name===exports.RowContainerName.TOP_FULL_WIDTH||o.name===exports.RowContainerName.STICKY_TOP_FULL_WIDTH||o.name===exports.RowContainerName.BOTTOM_FULL_WIDTH||o.name===exports.RowContainerName.FULL_WIDTH,o}return $l(t,e),t.getRowContainerCssClasses=function(e){return{container:iu.get(e),viewport:nu.get(e),wrapper:su.get(e)}},t.getPinned=function(e){switch(e){case exports.RowContainerName.BOTTOM_LEFT:case exports.RowContainerName.TOP_LEFT:case exports.RowContainerName.STICKY_TOP_LEFT:case exports.RowContainerName.LEFT:return"left";case exports.RowContainerName.BOTTOM_RIGHT:case exports.RowContainerName.TOP_RIGHT:case exports.RowContainerName.STICKY_TOP_RIGHT:case exports.RowContainerName.RIGHT:return"right";default:return null}},t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),this.embedFullWidthRows=this.gridOptionsService.is("embedFullWidthRows"),this.forContainers([exports.RowContainerName.CENTER],(function(){return e.viewportSizeFeature=e.createManagedBean(new Gl(e))}))},t.prototype.registerWithCtrlsService=function(){switch(this.name){case exports.RowContainerName.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case exports.RowContainerName.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case exports.RowContainerName.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case exports.RowContainerName.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case exports.RowContainerName.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case exports.RowContainerName.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case exports.RowContainerName.STICKY_TOP_CENTER:this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);break;case exports.RowContainerName.STICKY_TOP_LEFT:this.ctrlsService.registerStickyTopLeftRowContainerCon(this);break;case exports.RowContainerName.STICKY_TOP_RIGHT:this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);break;case exports.RowContainerName.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case exports.RowContainerName.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case exports.RowContainerName.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},t.prototype.forContainers=function(e,t){e.indexOf(this.name)>=0&&t()},t.prototype.getContainerElement=function(){return this.eContainer},t.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},t.prototype.setComp=function(e,t,o,r){var i=this;this.comp=e,this.eContainer=t,this.eViewport=o,this.eWrapper=r,this.createManagedBean(new Ll(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var n=[exports.RowContainerName.TOP_CENTER,exports.RowContainerName.TOP_LEFT,exports.RowContainerName.TOP_RIGHT],s=[exports.RowContainerName.STICKY_TOP_CENTER,exports.RowContainerName.STICKY_TOP_LEFT,exports.RowContainerName.STICKY_TOP_RIGHT],a=[exports.RowContainerName.BOTTOM_CENTER,exports.RowContainerName.BOTTOM_LEFT,exports.RowContainerName.BOTTOM_RIGHT],l=[exports.RowContainerName.CENTER,exports.RowContainerName.LEFT,exports.RowContainerName.RIGHT],u=ou(n,a,l,s),c=[exports.RowContainerName.CENTER,exports.RowContainerName.LEFT,exports.RowContainerName.RIGHT,exports.RowContainerName.FULL_WIDTH],p=[exports.RowContainerName.CENTER,exports.RowContainerName.TOP_CENTER,exports.RowContainerName.STICKY_TOP_CENTER,exports.RowContainerName.BOTTOM_CENTER],d=[exports.RowContainerName.LEFT,exports.RowContainerName.BOTTOM_LEFT,exports.RowContainerName.TOP_LEFT,exports.RowContainerName.STICKY_TOP_LEFT],h=[exports.RowContainerName.RIGHT,exports.RowContainerName.BOTTOM_RIGHT,exports.RowContainerName.TOP_RIGHT,exports.RowContainerName.STICKY_TOP_RIGHT];this.forContainers(d,(function(){i.pinnedWidthFeature=i.createManagedBean(new kl(i.eContainer)),i.addManagedListener(i.eventService,ke.EVENT_LEFT_PINNED_WIDTH_CHANGED,(function(){return i.onPinnedWidthChanged()}))})),this.forContainers(h,(function(){i.pinnedWidthFeature=i.createManagedBean(new Wl(i.eContainer)),i.addManagedListener(i.eventService,ke.EVENT_RIGHT_PINNED_WIDTH_CHANGED,(function(){return i.onPinnedWidthChanged()}))})),this.forContainers(c,(function(){return i.createManagedBean(new Kl(i.eContainer,i.eWrapper))})),this.forContainers(u,(function(){return i.createManagedBean(new Ql(i.eContainer))})),this.forContainers(p,(function(){return i.createManagedBean(new Zl((function(e){return i.comp.setContainerWidth(e+"px")})))})),Lo()&&(this.forContainers([exports.RowContainerName.CENTER],(function(){var e=i.enableRtl?ke.EVENT_LEFT_PINNED_WIDTH_CHANGED:ke.EVENT_RIGHT_PINNED_WIDTH_CHANGED;i.addManagedListener(i.eventService,e,(function(){return i.refreshPaddingForFakeScrollbar()}))})),this.refreshPaddingForFakeScrollbar()),this.addListeners(),this.registerWithCtrlsService()},t.prototype.refreshPaddingForFakeScrollbar=function(){var e=this,t=e.enableRtl,o=e.columnModel,r=e.name,i=e.eWrapper,n=e.eContainer,s=t?exports.RowContainerName.LEFT:exports.RowContainerName.RIGHT;this.forContainers([exports.RowContainerName.CENTER,s],(function(){var e=o.getContainerWidth(s),a=t?"marginLeft":"marginRight";r===exports.RowContainerName.CENTER?i.style[a]=e?"0px":"16px":n.style[a]=e?"16px":"0px"}))},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,ke.EVENT_SCROLL_VISIBILITY_CHANGED,(function(){return e.onScrollVisibilityChanged()})),this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return e.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return e.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_ROWS_CHANGED,(function(){return e.onDisplayedRowsChanged()})),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},t.prototype.listenOnDomOrder=function(){var e=this;if([exports.RowContainerName.STICKY_TOP_CENTER,exports.RowContainerName.STICKY_TOP_LEFT,exports.RowContainerName.STICKY_TOP_RIGHT,exports.RowContainerName.STICKY_TOP_FULL_WIDTH].indexOf(this.name)>=0)this.comp.setDomOrder(!0);else{var t=function(){var t=e.gridOptionsService.is("ensureDomOrder"),o=e.gridOptionsService.isDomLayout("print");e.comp.setDomOrder(t||o)};this.addManagedPropertyListener("domLayout",t),t()}},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([exports.RowContainerName.TOP_CENTER,exports.RowContainerName.STICKY_TOP_CENTER,exports.RowContainerName.BOTTOM_CENTER],(function(){e.addManagedListener(e.eViewport,"scroll",(function(){return e.eViewport.scrollLeft=0}))}))},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([exports.RowContainerName.CENTER],(function(){return e.onHorizontalViewportChanged()}))},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([exports.RowContainerName.CENTER],(function(){return e.onHorizontalViewportChanged()}))},t.prototype.onScrollVisibilityChanged=function(){if(this.name===exports.RowContainerName.CENTER){var e=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsService.getScrollbarWidth()||0,t=0==e?"100%":"calc(100% + "+e+"px)";this.comp.setViewportHeight(t)}},t.prototype.addPreventScrollWhileDragging=function(){var e=this,t=function(t){e.dragService.isDragging()&&t.cancelable&&t.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc((function(){return e.eContainer.removeEventListener("touchmove",t)}))},t.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),t=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},t.prototype.getCenterWidth=function(){return rr(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return ar(this.eViewport,this.enableRtl)},t.prototype.registerViewportResizeListener=function(e){var t=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc((function(){return t()}))},t.prototype.isViewportVisible=function(){return pr(this.eViewport)},t.prototype.isViewportHScrollShowing=function(){return Cr(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return ar(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsService.is("alwaysShowHorizontalScroll")||Cr(this.eViewport)},t.prototype.getViewportElement=function(){return this.eViewport},t.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX("+e+"px)"},t.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},t.prototype.setCenterViewportScrollLeft=function(e){lr(this.eViewport,e,this.enableRtl)},t.prototype.isContainerVisible=function(){return!t.getPinned(this.name)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0},t.prototype.onPinnedWidthChanged=function(){var e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged()),Lo()&&this.refreshPaddingForFakeScrollbar()},t.prototype.onDisplayedRowsChanged=function(){var e=this;if(this.visible){var t=this.gridOptionsService.isDomLayout("print"),o=this.getRowCtrls().filter((function(o){var r=o.isFullWidth(),i=e.embedFullWidthRows||t;return e.isFullWithContainer?!i&&r:i||!r}));this.comp.setRowCtrls(o)}else this.comp.setRowCtrls(this.EMPTY_CTRLS)},t.prototype.getRowCtrls=function(){switch(this.name){case exports.RowContainerName.TOP_CENTER:case exports.RowContainerName.TOP_LEFT:case exports.RowContainerName.TOP_RIGHT:case exports.RowContainerName.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case exports.RowContainerName.STICKY_TOP_CENTER:case exports.RowContainerName.STICKY_TOP_LEFT:case exports.RowContainerName.STICKY_TOP_RIGHT:case exports.RowContainerName.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case exports.RowContainerName.BOTTOM_CENTER:case exports.RowContainerName.BOTTOM_LEFT:case exports.RowContainerName.BOTTOM_RIGHT:case exports.RowContainerName.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},eu([U("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),eu([U("dragService")],t.prototype,"dragService",void 0),eu([U("ctrlsService")],t.prototype,"ctrlsService",void 0),eu([U("columnModel")],t.prototype,"columnModel",void 0),eu([U("resizeObserverService")],t.prototype,"resizeObserverService",void 0),eu([U("rowRenderer")],t.prototype,"rowRenderer",void 0),eu([B],t.prototype,"postConstruct",null),t}(Le),lu=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),uu=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},cu='<div class="ag-root ag-unselectable" role="treegrid">\n <ag-header-root ref="gridHeader"></ag-header-root>\n <div class="ag-floating-top" ref="eTop" role="presentation">\n <ag-row-container ref="topLeftContainer" name="'+exports.RowContainerName.TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="topCenterContainer" name="'+exports.RowContainerName.TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="topRightContainer" name="'+exports.RowContainerName.TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="topFullWidthContainer" name="'+exports.RowContainerName.TOP_FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-body" ref="eBody" role="presentation">\n <div class="ag-body-clipper" ref="eBodyClipper" role="presentation">\n <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n <ag-row-container ref="leftContainer" name="'+exports.RowContainerName.LEFT+'"></ag-row-container>\n <ag-row-container ref="centerContainer" name="'+exports.RowContainerName.CENTER+'"></ag-row-container>\n <ag-row-container ref="rightContainer" name="'+exports.RowContainerName.RIGHT+'"></ag-row-container>\n <ag-row-container ref="fullWidthContainer" name="'+exports.RowContainerName.FULL_WIDTH+'"></ag-row-container>\n </div>\n </div>\n <ag-fake-vertical-scroll></ag-fake-vertical-scroll>\n </div>\n <div class="ag-sticky-top" ref="eStickyTop" role="presentation">\n <ag-row-container ref="stickyTopLeftContainer" name="'+exports.RowContainerName.STICKY_TOP_LEFT+'"></ag-row-container>\n <ag-row-container ref="stickyTopCenterContainer" name="'+exports.RowContainerName.STICKY_TOP_CENTER+'"></ag-row-container>\n <ag-row-container ref="stickyTopRightContainer" name="'+exports.RowContainerName.STICKY_TOP_RIGHT+'"></ag-row-container>\n <ag-row-container ref="stickyTopFullWidthContainer" name="'+exports.RowContainerName.STICKY_TOP_FULL_WIDTH+'"></ag-row-container>\n </div>\n <div class="ag-floating-bottom" ref="eBottom" role="presentation">\n <ag-row-container ref="bottomLeftContainer" name="'+exports.RowContainerName.BOTTOM_LEFT+'"></ag-row-container>\n <ag-row-container ref="bottomCenterContainer" name="'+exports.RowContainerName.BOTTOM_CENTER+'"></ag-row-container>\n <ag-row-container ref="bottomRightContainer" name="'+exports.RowContainerName.BOTTOM_RIGHT+'"></ag-row-container>\n <ag-row-container ref="bottomFullWidthContainer" name="'+exports.RowContainerName.BOTTOM_FULL_WIDTH+'"></ag-row-container>\n </div>\n <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>\n <ag-overlay-wrapper></ag-overlay-wrapper>\n </div>',pu=function(e){function t(){return e.call(this,cu)||this}return lu(t,e),t.prototype.init=function(){var e=this,t=function(e,t){var o=e+"px";t.style.minHeight=o,t.style.height=o},o={setRowAnimationCssOnBodyViewport:function(t,o){return e.setRowAnimationCssOnBodyViewport(t,o)},setColumnCount:function(t){return io(e.getGui(),t)},setRowCount:function(t){return oo(e.getGui(),t)},setTopHeight:function(o){return t(o,e.eTop)},setBottomHeight:function(o){return t(o,e.eBottom)},setTopDisplay:function(t){return e.eTop.style.display=t},setBottomDisplay:function(t){return e.eBottom.style.display=t},setStickyTopHeight:function(t){return e.eStickyTop.style.height=t},setStickyTopTop:function(t){return e.eStickyTop.style.top=t},setStickyTopWidth:function(t){return e.eStickyTop.style.width=t},setColumnMovingCss:function(t,o){return e.addOrRemoveCssClass(t,o)},updateLayoutClasses:function(t,o){[e.eBodyViewport.classList,e.eBodyClipper.classList,e.eBody.classList].forEach((function(e){e.toggle(exports.LayoutCssClasses.AUTO_HEIGHT,o.autoHeight),e.toggle(exports.LayoutCssClasses.NORMAL,o.normal),e.toggle(exports.LayoutCssClasses.PRINT,o.print)})),e.addOrRemoveCssClass(exports.LayoutCssClasses.AUTO_HEIGHT,o.autoHeight),e.addOrRemoveCssClass(exports.LayoutCssClasses.NORMAL,o.normal),e.addOrRemoveCssClass(exports.LayoutCssClasses.PRINT,o.print)},setAlwaysVerticalScrollClass:function(t,o){return e.eBodyViewport.classList.toggle("ag-force-vertical-scroll",o)},registerBodyViewportResizeListener:function(t){var o=e.resizeObserverService.observeResize(e.eBodyViewport,t);e.addDestroyFunc((function(){return o()}))},setPinnedTopBottomOverflowY:function(t){return e.eTop.style.overflowY=e.eBottom.style.overflowY=t},setCellSelectableCss:function(t,o){[e.eTop,e.eBodyViewport,e.eBottom].forEach((function(e){return e.classList.toggle("ag-selectable",o)}))},setBodyViewportWidth:function(t){return e.eBodyViewport.style.width=t}};this.ctrl=this.createManagedBean(new tl),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||"multiple"===this.gridOptionsService.get("rowSelection"))&&to(this.getGui(),!0)},t.prototype.setRowAnimationCssOnBodyViewport=function(e,t){var o=this.eBodyViewport.classList;o.toggle(exports.RowAnimationCssClasses.ANIMATION_ON,t),o.toggle(exports.RowAnimationCssClasses.ANIMATION_OFF,!t)},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},uu([U("resizeObserverService")],t.prototype,"resizeObserverService",void 0),uu([z("rangeService")],t.prototype,"rangeService",void 0),uu([ui("eBodyViewport")],t.prototype,"eBodyViewport",void 0),uu([ui("eStickyTop")],t.prototype,"eStickyTop",void 0),uu([ui("eTop")],t.prototype,"eTop",void 0),uu([ui("eBottom")],t.prototype,"eBottom",void 0),uu([ui("gridHeader")],t.prototype,"headerRootComp",void 0),uu([ui("eBodyClipper")],t.prototype,"eBodyClipper",void 0),uu([ui("eBody")],t.prototype,"eBody",void 0),uu([B],t.prototype,"init",null),t}(li),du=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),hu=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},fu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return du(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.onDisplayedColumnsChanged=function(){this.update()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},t.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},t.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(e){var t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(t)}},t.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:ke.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(t)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},hu([U("ctrlsService")],t.prototype,"ctrlsService",void 0),hu([B],t.prototype,"postConstruct",null),t=hu([W("scrollVisibleService")],t)}(Le),gu=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),vu=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},yu=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.gridInstanceId=r.gridInstanceSequence.next(),t}var r;return gu(o,e),r=o,o.prototype.stampTopLevelGridCompWithGridInstance=function(e){e[r.GRID_DOM_KEY]=this.gridInstanceId},o.prototype.getRenderedCellForEvent=function(e){return Te(this.gridOptionsService,e,El.DOM_DATA_KEY_CELL_CTRL)},o.prototype.isEventFromThisGrid=function(e){return this.isElementInThisGrid(e.target)},o.prototype.isElementInThisGrid=function(e){for(var o=e;o;){var i=o[r.GRID_DOM_KEY];if(t(i))return i===this.gridInstanceId;o=o.parentElement}return!1},o.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},o.prototype.getNormalisedPosition=function(e){var t,o,r=this.gridOptionsService.isDomLayout("normal"),i=e;if(null!=i.clientX||null!=i.clientY?(t=i.clientX,o=i.clientY):(t=i.x,o=i.y),r){var n=this.ctrlsService.getGridBodyCtrl(),s=n.getScrollFeature().getVScrollPosition();t+=n.getScrollFeature().getHScrollPosition().left,o+=s.top}return{x:t,y:o}},o.gridInstanceSequence=new Xr,o.GRID_DOM_KEY="__ag_grid_instance",vu([U("ctrlsService")],o.prototype,"ctrlsService",void 0),o=r=vu([W("mouseEventService")],o)}(Le),mu=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Cu=function(){return(Cu=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},wu=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Su=function(e){function r(){var t=e.call(this)||this;return t.onPageDown=F(t.onPageDown,100),t.onPageUp=F(t.onPageUp,100),t}return mu(r,e),r.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCon=t.gridBodyCtrl}))},r.prototype.handlePageScrollingKey=function(e){var t=e.key,o=e.altKey,r=e.ctrlKey||e.metaKey,i=!!this.rangeService&&e.shiftKey,n=this.mouseEventService.getCellPositionForEvent(e),s=!1;switch(t){case xr.PAGE_HOME:case xr.PAGE_END:r||o||(this.onHomeOrEndKey(t),s=!0);break;case xr.LEFT:case xr.RIGHT:case xr.UP:case xr.DOWN:if(!n)return!1;!r||o||i||(this.onCtrlUpDownLeftRight(t,n),s=!0);break;case xr.PAGE_DOWN:if(!n)return!1;r||o||(this.onPageDown(n),s=!0);break;case xr.PAGE_UP:if(!n)return!1;r||o||(this.onPageUp(n),s=!0)}return s&&e.preventDefault(),s},r.prototype.navigateTo=function(e){var o=e.scrollIndex,r=e.scrollType,i=e.scrollColumn,n=e.focusIndex,s=e.focusColumn;if(t(i)&&!i.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(i),t(o)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(o,r),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(n),this.focusService.setFocusedCell({rowIndex:n,column:s,rowPinned:null,forceBrowserFocus:!0}),this.rangeService){var a={rowIndex:n,rowPinned:null,column:s};this.rangeService.setRangeToCell(a)}},r.prototype.onPageDown=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.getViewportHeight(),r=this.paginationProxy.getPixelOffset(),i=t.top+o,n=this.paginationProxy.getRowIndexAtPixel(i+r);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,n):this.navigateToNextPage(e,n)},r.prototype.onPageUp=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.paginationProxy.getPixelOffset(),r=t.top,i=this.paginationProxy.getRowIndexAtPixel(r+o);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,i,!0):this.navigateToNextPage(e,i,!0)},r.prototype.navigateToNextPage=function(e,t,o){void 0===o&&(o=!1);var r,i=this.getViewportHeight(),n=this.paginationProxy.getPageFirstRow(),s=this.paginationProxy.getPageLastRow(),a=this.paginationProxy.getPixelOffset(),l=this.paginationProxy.getRow(e.rowIndex),u=o?(null==l?void 0:l.rowHeight)-i-a:i-a,c=(null==l?void 0:l.rowTop)+u,p=this.paginationProxy.getRowIndexAtPixel(c+a);if(p===e.rowIndex){var d=o?-1:1;t=p=e.rowIndex+d}o?(r="bottom",p<n&&(p=n),t<n&&(t=n)):(r="top",p>s&&(p=s),t>s&&(t=s)),this.isRowTallerThanView(p)&&(t=p,r="top"),this.navigateTo({scrollIndex:t,scrollType:r,scrollColumn:null,focusIndex:p,focusColumn:e.column})},r.prototype.navigateToNextPageWithAutoHeight=function(e,t,o){var r=this;void 0===o&&(o=!1),this.navigateTo({scrollIndex:t,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout((function(){var i=r.getNextFocusIndexForAutoHeight(e,o);r.navigateTo({scrollIndex:t,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:i,focusColumn:e.column,isAsync:!0})}),50)},r.prototype.getNextFocusIndexForAutoHeight=function(e,t){var o;void 0===t&&(t=!1);for(var r=t?-1:1,i=this.getViewportHeight(),n=this.paginationProxy.getPageLastRow(),s=0,a=e.rowIndex;a>=0&&a<=n;){var l=this.paginationProxy.getRow(a);if(l){var u=null!==(o=l.rowHeight)&&void 0!==o?o:0;if(s+u>i)break;s+=u}a+=r}return Math.max(0,Math.min(a,n))},r.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),t=this.gridOptionsService.getScrollbarWidth(),o=e.bottom-e.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(o-=t),o},r.prototype.isRowTallerThanView=function(e){var t=this.paginationProxy.getRow(e);if(!t)return!1;var o=t.rowHeight;return"number"==typeof o&&o>this.getViewportHeight()},r.prototype.onCtrlUpDownLeftRight=function(e,t){var o=this.cellNavigationService.getNextCellToFocus(e,t,!0),r=o.rowIndex,i=o.column;this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:i,focusIndex:r,focusColumn:i})},r.prototype.onHomeOrEndKey=function(e){var t=e===xr.PAGE_HOME,o=this.columnModel.getAllDisplayedColumns(),r=t?o[0]:ue(o),i=t?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:i,scrollType:null,scrollColumn:r,focusIndex:i,focusColumn:r})},r.prototype.onTabKeyDown=function(e,t){var o=t.shiftKey;if(this.tabToNextCellCommon(e,o,t))t.preventDefault();else if(o){var r=e.getRowPosition(),i=r.rowIndex;(r.rowPinned?0===i:i===this.paginationProxy.getPageFirstRow())&&(t.preventDefault(),this.focusService.focusLastHeader(t))}else e instanceof El&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(o)&&t.preventDefault()},r.prototype.tabToNextCell=function(e,t){var o=this.focusService.getFocusedCell();if(!o)return!1;var r=this.getCellByPosition(o);return!!(r||(r=this.rowRenderer.getRowByPosition(o))&&r.isFullWidth())&&this.tabToNextCellCommon(r,e,t)},r.prototype.tabToNextCellCommon=function(e,t,o){var r=e.isEditing();if(!r&&e instanceof El){var i=e.getRowCtrl();i&&(r=i.isEditing())}return(r?"fullRow"===this.gridOptionsService.get("editType")?this.moveToNextEditingRow(e,t,o):this.moveToNextEditingCell(e,t,o):this.moveToNextCellNotEditing(e,t))||!!this.focusService.getFocusedHeader()},r.prototype.moveToNextEditingCell=function(e,t,o){void 0===o&&(o=null);var r=e.getCellPosition();e.getGui().focus(),e.stopEditing();var i=this.findNextCellToFocusOn(r,t,!0);return null!=i&&(i.startEditing(null,null,!0,o),i.focusCell(!1),!0)},r.prototype.moveToNextEditingRow=function(e,t,o){void 0===o&&(o=null);var r=e.getCellPosition(),i=this.findNextCellToFocusOn(r,t,!0);if(null==i)return!1;var n=i.getCellPosition(),s=this.isCellEditable(r),a=this.isCellEditable(n),l=n&&r.rowIndex===n.rowIndex&&r.rowPinned===n.rowPinned;(s&&e.setFocusOutOnEditor(),l)||(e.getRowCtrl().stopEditing(),i.getRowCtrl().startRowEditing(void 0,void 0,void 0,o));return a?(i.setFocusInOnEditor(),i.focusCell()):i.focusCell(!0),!0},r.prototype.moveToNextCellNotEditing=function(e,o){var r,i=this.columnModel.getAllDisplayedColumns();r=e instanceof Al?Cu(Cu({},e.getRowPosition()),{column:o?i[0]:ue(i)}):e.getCellPosition();var n=this.findNextCellToFocusOn(r,o,!1);if(n instanceof El)n.focusCell(!0);else if(n)return this.tryToFocusFullWidthRow(n.getRowPosition(),o);return t(n)},r.prototype.findNextCellToFocusOn=function(e,o,r){for(var i=e;;){e!==i&&(e=i),o||(i=this.getLastCellOfColSpan(i)),i=this.cellNavigationService.getNextTabbedCell(i,o);var n=this.gridOptionsService.getCallback("tabToNextCell");if(t(n)){var s=n({backwards:o,editing:r,previousCellPosition:e,nextCellPosition:i||null});t(s)?(s.floating&&(O((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),s.rowPinned=s.floating),i={rowIndex:s.rowIndex,column:s.column,rowPinned:s.rowPinned}):i=null}if(!i)return null;if(i.rowIndex<0){var a=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a+i.rowIndex,column:i.column}}),null}var l="fullRow"===this.gridOptionsService.get("editType");if(r&&!l)if(!this.isCellEditable(i))continue;this.ensureCellVisible(i);var u=this.getCellByPosition(i);if(!u){var c=this.rowRenderer.getRowByPosition(i);if(!c||!c.isFullWidth()||r)continue;return c}if(!u.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(i),u}},r.prototype.isCellEditable=function(e){var t=this.lookupRowNodeForCell(e);return!!t&&e.column.isCellEditable(t)},r.prototype.getCellByPosition=function(e){var t=this.rowRenderer.getRowByPosition(e);return t?t.getCellCtrl(e.column):null},r.prototype.lookupRowNodeForCell=function(e){return"top"===e.rowPinned?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):"bottom"===e.rowPinned?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},r.prototype.navigateToNextCell=function(e,r,i,n){for(var s=i,a=!1;s&&(s===i||!this.isValidNavigateCell(s));)this.gridOptionsService.is("enableRtl")?r===xr.LEFT&&(s=this.getLastCellOfColSpan(s)):r===xr.RIGHT&&(s=this.getLastCellOfColSpan(s)),a=o(s=this.cellNavigationService.getNextCellToFocus(r,s));if(a&&e&&e.key===xr.UP&&(s={rowIndex:-1,rowPinned:null,column:i.column}),n){var l=this.gridOptionsService.getCallback("navigateToNextCell");if(t(l)){var u=l({key:r,previousCellPosition:i,nextCellPosition:s||null,event:e});t(u)?(u.floating&&(O((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),u.rowPinned=u.floating),s={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):s=null}}if(s)if(s.rowIndex<0){var c=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c+s.rowIndex,column:i.column},event:e||void 0})}else{var p=this.getNormalisedPosition(s);p?this.focusPosition(p):this.tryToFocusFullWidthRow(s)}},r.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var t=this.getCellByPosition(e);return t?(e=t.getCellPosition(),this.ensureCellVisible(e),e):null},r.prototype.tryToFocusFullWidthRow=function(e,t){void 0===t&&(t=!1);var o=this.columnModel.getAllDisplayedColumns(),r=this.rowRenderer.getRowByPosition(e);if(!r||!r.isFullWidth())return!1;var i=this.focusService.getFocusedCell(),n={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?ue(o):o[0])};this.focusPosition(n);var s=null!=i&&this.rowPositionUtils.before(n,i),a={type:ke.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:n.column,isFullWidthCell:!0,floating:n.rowPinned,fromBelow:s};return this.eventService.dispatchEvent(a),!0},r.prototype.focusPosition=function(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(e)},r.prototype.isValidNavigateCell=function(e){return!!this.rowPositionUtils.getRowNode(e)},r.prototype.getLastCellOfColSpan=function(e){var t=this.getCellByPosition(e);if(!t)return e;var o=t.getColSpanningList();return 1===o.length?e:{rowIndex:e.rowIndex,column:ue(o),rowPinned:e.rowPinned}},r.prototype.ensureCellVisible=function(e){var t=this.gridOptionsService.is("groupRowsSticky"),r=this.rowModel.getRow(e.rowIndex);!(t&&(null==r?void 0:r.sticky))&&o(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)},wu([U("mouseEventService")],r.prototype,"mouseEventService",void 0),wu([U("paginationProxy")],r.prototype,"paginationProxy",void 0),wu([U("focusService")],r.prototype,"focusService",void 0),wu([z("rangeService")],r.prototype,"rangeService",void 0),wu([U("columnModel")],r.prototype,"columnModel",void 0),wu([U("rowModel")],r.prototype,"rowModel",void 0),wu([U("ctrlsService")],r.prototype,"ctrlsService",void 0),wu([U("rowRenderer")],r.prototype,"rowRenderer",void 0),wu([U("headerNavigationService")],r.prototype,"headerNavigationService",void 0),wu([U("rowPositionUtils")],r.prototype,"rowPositionUtils",void 0),wu([U("cellNavigationService")],r.prototype,"cellNavigationService",void 0),wu([U("pinnedRowModel")],r.prototype,"pinnedRowModel",void 0),wu([B],r.prototype,"postConstruct",null),r=wu([W("navigationService")],r)}(Le),Eu=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ru=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ou=function(e){function t(t){var o=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return o.params=t,o}return Eu(t,e),t.prototype.postConstruct=function(){this.gridOptionsService.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,t=this.getGui(),o=this.params;this.addManagedListener(t,"keydown",(function(t){Gr(e.gridOptionsService,t,o.node,o.column,!0)||o.onKeyDown(t)}))},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",Ru([B],t.prototype,"postConstruct",null),t}(Jn),bu=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Tu=function(e){function t(t,o,r,i,n){var s=e.call(this)||this;s.rendererVersion=0,s.editorVersion=0,s.beans=t,s.column=o.getColumn(),s.rowNode=o.getRowNode(),s.rowCtrl=o.getRowCtrl(),s.eRow=i,s.setTemplate('<div comp-id="'+s.getCompId()+'"/>');var a=s.getGui();s.forceWrapper=o.isForceWrapper(),s.refreshWrapper(!1);var l=function(e,t,o){var r=o||a;null!=t&&""!=t?r.setAttribute(e,t):r.removeAttribute(e)},u={addOrRemoveCssClass:function(e,t){return s.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return mr(a,e)},getFocusableElement:function(){return s.getFocusableElement()},setTabIndex:function(e){return l("tabindex",e.toString())},setRole:function(e){return Vt(a,e)},setColId:function(e){return l("col-id",e)},setTitle:function(e){return l("title",e)},setIncludeSelection:function(e){return s.includeSelection=e},setIncludeRowDrag:function(e){return s.includeRowDrag=e},setIncludeDndSource:function(e){return s.includeDndSource=e},setRenderDetails:function(e,t,o){return s.setRenderDetails(e,t,o)},setEditDetails:function(e,t,o){return s.setEditDetails(e,t,o)},getCellEditor:function(){return s.cellEditor||null},getCellRenderer:function(){return s.cellRenderer||null},getParentOfValue:function(){return s.getParentOfValue()}};return s.cellCtrl=o,o.setComp(u,s.getGui(),s.eCellWrapper,r,n),s}return bu(t,e),t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,t,o){if(!(this.cellEditor&&!this.cellEditorPopupWrapper)){this.firstRender=null==this.firstRender;var r=this.refreshWrapper(!1);if(this.refreshEditStyles(!1),e)!(o||r)&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e));else this.destroyRenderer(),this.insertValueWithoutCellRenderer(t)}},t.prototype.setEditDetails=function(e,t,o){e?this.createCellEditorInstance(e,t,o):this.destroyEditor()},t.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},t.prototype.refreshWrapper=function(e){var t=this.includeRowDrag||this.includeDndSource||this.includeSelection,o=t||this.forceWrapper,r=o&&null==this.eCellWrapper;r&&(this.eCellWrapper=dr('<div class="ag-cell-wrapper" role="presentation"></div>'),this.getGui().appendChild(this.eCellWrapper));var i=!o&&null!=this.eCellWrapper;i&&(cr(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!o);var n=!e&&o,s=n&&null==this.eCellValue;s&&(this.eCellValue=dr('<span class="ag-cell-value" role="presentation"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var a=!n&&null!=this.eCellValue;a&&(cr(this.eCellValue),this.eCellValue=void 0);var l=r||i||s||a;return l&&this.removeControls(),e||t&&this.addControls(),l},t.prototype.addControls=function(){this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))},t.prototype.createCellEditorInstance=function(e,t,r){var i=this,n=this.editorVersion,s=e.newAgStackInstance();if(s){var a=e.params;s.then((function(e){return i.afterCellEditorCreated(n,e,a,t,r)})),o(this.cellEditor)&&a.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var t=this.getParentOfValue();ur(t);var o=null!=e?ht(e):null;null!=o&&(t.innerHTML=o)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),cr(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},t.prototype.destroyEditor=function(){var e=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),cr(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==e.componentClass)return!1;var t=this.cellRenderer.refresh(e.params);return!0===t||void 0===t},t.prototype.createCellRendererInstance=function(e){var t=this,o=!this.beans.gridOptionsService.is("suppressAnimationFrame"),r=this.rendererVersion,i=e.componentClass,n=function(){if(!(t.rendererVersion!==r||!t.isAlive())){var o=e.newAgStackInstance(),n=t.afterCellRendererCreated.bind(t,r,i);o&&o.then(n)}};o&&this.firstRender?this.beans.animationFrameService.createTask(n,this.rowNode.rowIndex,"createTasksP2"):n()},t.prototype.getCtrl=function(){return this.cellCtrl},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.afterCellRendererCreated=function(e,t,o){if(!this.isAlive()||e!==this.rendererVersion)this.beans.context.destroyBean(o);else if(this.cellRenderer=o,this.cellRendererClass=t,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var r=this.getParentOfValue();ur(r),r.appendChild(this.cellRendererGui)}},t.prototype.afterCellEditorCreated=function(e,t,o,r,i){if(e!==this.editorVersion)this.beans.context.destroyBean(t);else{if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return this.beans.context.destroyBean(t),void this.cellCtrl.stopEditing(!0);if(!t.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(t);this.cellEditor=t,this.cellEditorGui=t.getGui();var n=r||void 0!==t.isPopup&&t.isPopup();n?this.addPopupCellEditor(o,i):this.addInCellEditor(),this.refreshEditStyles(!0,n),t.afterGuiAttached&&t.afterGuiAttached()}},t.prototype.refreshEditStyles=function(e,t){var o;this.addOrRemoveCssClass("ag-cell-inline-editing",e&&!t),this.addOrRemoveCssClass("ag-cell-popup-editing",e&&!!t),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!e||!!t),null===(o=this.rowCtrl)||void 0===o||o.setInlineEditingCss(e)},t.prototype.addInCellEditor=function(){var e=this.getGui(),t=this.beans.gridOptionsService.getDocument();(e.contains(t.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui)&&this.getParentOfValue().appendChild(this.cellEditorGui)},t.prototype.addPopupCellEditor=function(e,t){var o=this;"fullRow"===this.beans.gridOptionsService.get("editType")&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var r=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new Ou(e));var i=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&i.appendChild(this.cellEditorGui);var n=this.beans.popupService,s=this.beans.gridOptionsService.is("stopEditingWhenCellsLoseFocus"),a=null!=t?t:r.getPopupPosition?r.getPopupPosition():"over",l=this.beans.gridOptionsService.is("enableRtl"),u={ePopup:i,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:a,alignSide:l?"right":"left",keepWithinBounds:!0},c=n.positionPopupByComponent.bind(n,u),p=this.beans.localeService.getLocaleTextFunc(),d=n.addPopup({modal:s,eChild:i,closeOnEsc:!0,closedCallback:function(){o.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:c,ariaLabel:p("ariaLabelCellEditor","Cell Editor")});d&&(this.hideEditorPopup=d.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),e.prototype.destroy.call(this)},t.prototype.clearParentOfValue=function(){var e=this.getGui(),t=this.beans.gridOptionsService.getDocument();e.contains(t.activeElement)&&Po()&&e.focus({preventScroll:!0}),ur(this.getParentOfValue())},t}(li),Pu=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Du=function(e){function t(t,o,r){var i=e.call(this)||this;i.cellComps={},i.beans=o,i.rowCtrl=t,i.setTemplate('<div comp-id="'+i.getCompId()+'" style="'+i.getInitialStyle(r)+'"/>');var n=i.getGui(),s=n.style,a={setDomOrder:function(e){return i.domOrder=e},setCellCtrls:function(e){return i.setCellCtrls(e)},showFullWidth:function(e){return i.showFullWidth(e)},getFullWidthCellRenderer:function(){return i.getFullWidthCellRenderer()},addOrRemoveCssClass:function(e,t){return i.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return mr(n,e)},setTop:function(e){return s.top=e},setTransform:function(e){return s.transform=e},setRowIndex:function(e){return n.setAttribute("row-index",e)},setRole:function(e){return Vt(n,e)},setRowId:function(e){return n.setAttribute("row-id",e)},setRowBusinessKey:function(e){return n.setAttribute("row-business-key",e)},setTabIndex:function(e){return n.setAttribute("tabindex",e.toString())}};return t.setComp(a,i.getGui(),r),i.addDestroyFunc((function(){t.unsetComp(r)})),i}return Pu(t,e),t.prototype.getInitialStyle=function(e){var t=this.rowCtrl.getInitialTransform(e),o=this.rowCtrl.getInitialRowTop(e);return t?"transform: "+t:"top: "+o},t.prototype.showFullWidth=function(e){var t=this,o=e.newAgStackInstance();o&&o.then((function(e){if(t.isAlive()){var o=e.getGui();t.getGui().appendChild(o),t.rowCtrl.setupDetailRowAutoHeight(o),t.setFullWidthRowComp(e)}else t.beans.context.destroyBean(e)}))},t.prototype.setCellCtrls=function(e){var t=this,o=Object.assign({},this.cellComps);e.forEach((function(e){var r=e.getInstanceId();null==t.cellComps[r]?t.newCellComp(e):o[r]=null}));var r=y(o).filter((function(e){return null!=e}));this.destroyCells(r),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var t=this;if(this.domOrder){var o=[];e.forEach((function(e){var r=t.cellComps[e.getInstanceId()];r&&o.push(r.getGui())})),vr(this.getGui(),o)}},t.prototype.newCellComp=function(e){var t=new Tu(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=t,this.getGui().appendChild(t.getGui())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=y(this.cellComps).filter((function(e){return null!=e}));this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var t=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc((function(){t.fullWidthCellRenderer=t.beans.context.destroyBean(t.fullWidthCellRenderer)}))},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var t=this;e.forEach((function(e){if(e){var o=e.getCtrl().getInstanceId();t.cellComps[o]===e&&(e.detach(),e.destroy(),t.cellComps[o]=null)}}))},t}(li),_u=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Au=function(){return(Au=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Nu=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};var Mu,Fu=function(e){function t(){var t,o,r,i,n=e.call(this,(t=li.elementGettingCreated.getAttribute("name"),o=au.getRowContainerCssClasses(t),r=t===exports.RowContainerName.CENTER,i=t===exports.RowContainerName.TOP_CENTER||t===exports.RowContainerName.STICKY_TOP_CENTER||t===exports.RowContainerName.BOTTOM_CENTER,r?'<div class="'+o.wrapper+'" ref="eWrapper" role="presentation">\n <div class="'+o.viewport+'" ref="eViewport" role="presentation">\n <div class="'+o.container+'" ref="eContainer"></div>\n </div>\n </div>':i?'<div class="'+o.viewport+'" ref="eViewport" role="presentation">\n <div class="'+o.container+'" ref="eContainer"></div>\n </div>':'<div class="'+o.container+'" ref="eContainer"></div>'))||this;return n.rowComps={},n.name=li.elementGettingCreated.getAttribute("name"),n.type=ru(n.name),n}return _u(t,e),t.prototype.postConstruct=function(){var e=this,t={setViewportHeight:function(t){return e.eViewport.style.height=t},setRowCtrls:function(t){return e.setRowCtrls(t)},setDomOrder:function(t){e.domOrder=t},setContainerWidth:function(t){return e.eContainer.style.width=t}};this.createManagedBean(new au(this.name)).setComp(t,this.eContainer,this.eViewport,this.eWrapper)},t.prototype.preDestroy=function(){this.setRowCtrls([])},t.prototype.setRowCtrls=function(e){var t=this,o=Au({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;e.forEach((function(e){var r=e.getInstanceId(),i=o[r];if(i)t.rowComps[r]=i,delete o[r],t.ensureDomOrder(i.getGui());else{var n=new Du(e,t.beans,t.type);t.rowComps[r]=n,t.appendRow(n.getGui())}})),y(o).forEach((function(e){t.eContainer.removeChild(e.getGui()),e.destroy()})),Vt(this.eContainer,e.length?"rowgroup":"presentation")},t.prototype.appendRow=function(e){this.domOrder?yr(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},t.prototype.ensureDomOrder=function(e){this.domOrder&&(gr(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},Nu([U("beans")],t.prototype,"beans",void 0),Nu([ui("eViewport")],t.prototype,"eViewport",void 0),Nu([ui("eContainer")],t.prototype,"eContainer",void 0),Nu([ui("eWrapper")],t.prototype,"eWrapper",void 0),Nu([B],t.prototype,"postConstruct",null),Nu([j],t.prototype,"preDestroy",null),t}(li),Lu=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},xu=function(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;if(this.clearColumnsList(),!this.gridOptionsService.is("functionsReadOnly")){var o=e.dragItem.columns;o&&o.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowPivot()&&t.columnsToPivot.push(e)))}))}},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?Rs.ICON_PINNED:Rs.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},Lu([U("columnModel")],e.prototype,"columnModel",void 0),Lu([U("gridOptionsService")],e.prototype,"gridOptionsService",void 0),e}(),Iu=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Gu=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},Hu=function(){function e(e,o){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=e,this.eContainer=o,this.centerContainer=!t(e)}return e.prototype.init=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCon=e.ctrlsService.getGridBodyCtrl()}))},e.prototype.getIconName=function(){return this.pinned?Rs.ICON_PINNED:Rs.ICON_MOVE},e.prototype.onDragEnter=function(e){var t=e.dragItem.columns;if(e.dragSource.type===exports.DragSourceType.ToolPanel)this.setColumnsVisible(t,!0,"uiColumnDragged");else{var o=e.dragItem.visibleState,r=(t||[]).filter((function(e){return o[e.getId()]}));this.setColumnsVisible(r,!0,"uiColumnDragged")}this.setColumnsPinned(t,this.pinned,"uiColumnDragged"),this.onDragging(e,!0,!0)},e.prototype.onDragLeave=function(){this.ensureIntervalCleared(),this.lastMovedInfo=null},e.prototype.setColumnsVisible=function(e,t,o){if(void 0===o&&(o="api"),e){var r=e.filter((function(e){return!e.getColDef().lockVisible}));this.columnModel.setColumnsVisible(r,t,o)}},e.prototype.setColumnsPinned=function(e,t,o){if(void 0===o&&(o="api"),e){var r=e.filter((function(e){return!e.getColDef().lockPinned}));this.columnModel.setColumnsPinned(r,t,o)}},e.prototype.onDragStop=function(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null},e.prototype.normaliseX=function(e){this.gridOptionsService.is("enableRtl")&&(e=this.eContainer.clientWidth-e);return this.centerContainer&&(e+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),o=t+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsService.is("enableRtl")?(this.needToMoveRight=e<t+50,this.needToMoveLeft=e>o-50):(this.needToMoveLeft=e<t+50,this.needToMoveRight=e>o-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t,r,i){var n,s=this;if(void 0===e&&(e=this.lastDraggingEvent),void 0===t&&(t=!1),void 0===r&&(r=!1),void 0===i&&(i=!1),i){if(this.lastMovedInfo){var a=this.lastMovedInfo,l=a.columns,u=a.toIndex;this.moveColumns(l,u,"uiColumnMoved",!0)}}else if(this.lastDraggingEvent=e,!o(e.hDirection)){var c=this.normaliseX(e.x);t||this.checkCenterForScrolling(c);var p=this.normaliseDirection(e.hDirection),d=e.dragSource.type,h=(null===(n=e.dragSource.getDragItem().columns)||void 0===n?void 0:n.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==s.pinned})))||[];this.attemptMoveColumns({dragSourceType:d,allMovingColumns:h,hDirection:p,mouseX:c,fromEnter:t,fakeEvent:r})}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsService.is("enableRtl"))return e;switch(e){case exports.HorizontalDirection.Left:return exports.HorizontalDirection.Right;case exports.HorizontalDirection.Right:return exports.HorizontalDirection.Left;default:console.error("AG Grid: Unknown direction "+e)}},e.prototype.attemptMoveColumns=function(e){var t=e.dragSourceType,o=e.hDirection,r=e.mouseX,i=e.fromEnter,n=e.fakeEvent,s=o===exports.HorizontalDirection.Left,a=o===exports.HorizontalDirection.Right,l=e.allMovingColumns;if(t===exports.DragSourceType.HeaderCell){var u=[];l.forEach((function(e){for(var t=null,o=e.getParent();null!=o&&1===o.getDisplayedLeafColumns().length;)t=o,o=o.getParent();null!=t?t.getLeafColumns().forEach((function(e){u.includes(e)||u.push(e)})):u.includes(e)||u.push(e)})),l=u}var c=l.slice();this.columnModel.sortColumnsLikeGridColumns(c);var p=this.calculateValidMoves(c,a,r),d=this.calculateOldIndex(c);if(0!==p.length){var h=p[0],f=null!==d&&!i;if(t==exports.DragSourceType.HeaderCell&&(f=null!==d),f&&!n){if(s&&h>=d)return;if(a&&h<=d)return}for(var g=this.columnModel.getAllDisplayedColumns(),v=[],y=null,m=0;m<p.length;m++){var C=p[m],w=this.columnModel.getProposedColumnOrder(c,C);if(this.columnModel.doesOrderPassRules(w)){var S=w.filter((function(e){return g.includes(e)}));if(null===y)y=S;else if(!Qr.areEqual(S,y))break;var E=this.groupFragCount(w);v.push({move:C,fragCount:E})}}0!==v.length&&(v.sort((function(e,t){return e.fragCount-t.fragCount})),this.moveColumns(l,v[0].move,"uiColumnMoved",!1))}},e.prototype.calculateOldIndex=function(e){var t=this.columnModel.getAllGridColumns(),o=pe(e.map((function(e){return t.indexOf(e)}))),r=o[0];return ue(o)-r!==o.length-1?null:r},e.prototype.moveColumns=function(e,t,o,r){this.columnModel.moveColumns(e,t,o,r),this.lastMovedInfo=r?null:{columns:e,toIndex:t}},e.prototype.groupFragCount=function(e){function t(e){for(var t=[],o=e.getOriginalParent();null!=o;)t.push(o),o=o.getOriginalParent();return t}for(var o=0,r=function(r){var i,n=t(e[r]),s=t(e[r+1]);n=(i=Gu(n.length>s.length?[n,s]:[s,n],2))[0],s=i[1],n.forEach((function(e){-1===s.indexOf(e)&&o++}))},i=0;i<e.length-1;i++)r(i);return o},e.prototype.calculateValidMoves=function(e,t,o){if(this.gridOptionsService.is("suppressMovableColumns")||e.some((function(e){return e.getColDef().suppressMovable})))return[];var r,i=this.columnModel.getDisplayedColumns(this.pinned),n=this.columnModel.getAllGridColumns(),s=i.filter((function(t){return ve(e,t)})),a=i.filter((function(t){return!ve(e,t)})),l=n.filter((function(t){return!ve(e,t)})),u=0,c=o;if(t){var p=0;s.forEach((function(e){return p+=e.getActualWidth()})),c-=p}if(c>0){for(var d=0;d<a.length;d++){if((c-=a[d].getActualWidth())<0)break;u++}t&&u++}if(u>0){var h=a[u-1];r=l.indexOf(h)+1}else-1===(r=l.indexOf(a[0]))&&(r=0);var f=[r],g=function(e,t){return e-t};if(t){for(var v=r+1,y=n.length-1;v<=y;)f.push(v),v++;f.sort(g)}else{v=r,y=n.length-1;for(var m=n[v];v<=y&&this.isColumnHidden(i,m);)v++,f.push(v),m=n[v];v=r-1;for(;v>=0;)f.push(v),v--;f.sort(g).reverse()}return f},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(Rs.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(Rs.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(Rs.ICON_MOVE))},e.prototype.moveInterval=function(){var e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);var t=null,o=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=o.scrollHorizontally(-e):this.needToMoveRight&&(t=o.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var r=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));if(r.length>0&&(this.dragAndDropService.setGhostIcon(Rs.ICON_PINNED),this.failedMoveAttempts>7)){var i=this.needToMoveLeft?"left":"right";this.setColumnsPinned(r,i,"uiColumnDragged"),this.dragAndDropService.nudge()}}},Iu([U("columnModel")],e.prototype,"columnModel",void 0),Iu([U("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Iu([U("gridOptionsService")],e.prototype,"gridOptionsService",void 0),Iu([U("ctrlsService")],e.prototype,"ctrlsService",void 0),Iu([B],e.prototype,"init",null),e}(),Vu=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ku=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Bu=function(e){function t(t,o){var r=e.call(this)||this;return r.pinned=t,r.eContainer=o,r}return Vu(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){switch(e.pinned){case"left":e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.leftRowContainerCtrl.getContainerElement()],[t.bottomLeftRowContainerCtrl.getContainerElement()],[t.topLeftRowContainerCtrl.getContainerElement()]];break;case"right":e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.rightRowContainerCtrl.getContainerElement()],[t.bottomRightRowContainerCtrl.getContainerElement()],[t.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.centerRowContainerCtrl.getViewportElement()],[t.bottomCenterRowContainerCtrl.getViewportElement()],[t.topCenterRowContainerCtrl.getViewportElement()]]}}))},t.prototype.isInterestedIn=function(e){return e===exports.DragSourceType.HeaderCell||e===exports.DragSourceType.ToolPanel&&this.gridOptionsService.is("allowDragFromColumnsToolPanel")},t.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},t.prototype.getContainer=function(){return this.eContainer},t.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new Hu(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new xu(this.pinned)),this.dragAndDropService.addDropTarget(this)},t.prototype.getIconName=function(){return this.currentDropListener.getIconName()},t.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===exports.DragSourceType.ToolPanel},t.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},t.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},t.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},t.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},ku([U("dragAndDropService")],t.prototype,"dragAndDropService",void 0),ku([U("columnModel")],t.prototype,"columnModel",void 0),ku([U("ctrlsService")],t.prototype,"ctrlsService",void 0),ku([B],t.prototype,"postConstruct",null),ku([B],t.prototype,"init",null),t}(Le),ju=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},Wu=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ju(arguments[t]));return e},Uu=function(){function e(){}return e.getHeaderClassesFromColDef=function(e,t,r,i){return o(e)?[]:this.getColumnClassesFromCollDef(e.headerClass,e,t,r,i)},e.getToolPanelClassesFromColDef=function(e,t,r,i){return o(e)?[]:this.getColumnClassesFromCollDef(e.toolPanelClass,e,t,r,i)},e.getClassParams=function(e,t,o,r){return{colDef:e,column:o,columnGroup:r,api:t.api,columnApi:t.columnApi,context:t.context}},e.getColumnClassesFromCollDef=function(e,t,r,i,n){if(o(e))return[];var s;"function"==typeof e?s=e(this.getClassParams(t,r,i,n)):s=e;return"string"==typeof s?[s]:Array.isArray(s)?Wu(s):[]},e}(),zu=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ku=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Yu=function(e){function t(o){var r=e.call(this,t.TEMPLATE,o)||this;return r.headerCompVersion=0,r.column=o.getColumnGroupChild(),r.pinned=o.getPinned(),r}return zu(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),o=function(e,o,r){var i=r||t;null!=o&&""!=o?i.setAttribute(e,o):i.removeAttribute(e)},r={setWidth:function(e){return t.style.width=e},addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},setColId:function(e){return o("col-id",e)},setTitle:function(e){return o("title",e)},setAriaDescription:function(e){return zt(t,e)},setAriaSort:function(e){return e?ao(t,e):lo(t)},setUserCompDetails:function(t){return e.setUserCompDetails(t)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(r,this.getGui(),this.eResize,this.eHeaderCompWrapper);var i=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",i)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var t=this;this.headerCompVersion++;var o=this.headerCompVersion;e.newAgStackInstance().then((function(e){return t.afterCompCreated(o,e)}))},t.prototype.afterCompCreated=function(e,t){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(t)},t.TEMPLATE='<div class="ag-header-cell" role="columnheader" tabindex="-1">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n <div ref="eHeaderCompWrapper" class="ag-header-cell-comp-wrapper" role="presentation"></div>\n </div>',Ku([ui("eResize")],t.prototype,"eResize",void 0),Ku([ui("eHeaderCompWrapper")],t.prototype,"eHeaderCompWrapper",void 0),Ku([B],t.prototype,"postConstruct",null),Ku([j],t.prototype,"destroyHeaderComp",null),t}(Ma),qu=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Qu=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Xu=function(e){function t(o){return e.call(this,t.TEMPLATE,o)||this}return qu(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),o=function(e,o){return null!=o?t.setAttribute(e,o):t.removeAttribute(e)},r={addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},setResizableDisplayed:function(t){return Jo(e.eResize,t)},setWidth:function(e){return t.style.width=e},setColId:function(e){return t.setAttribute("col-id",e)},setAriaExpanded:function(e){return o("aria-expanded",e)},setTitle:function(e){return o("title",e)},setUserCompDetails:function(t){return e.setUserCompDetails(t)}};this.ctrl.setComp(r,t,this.eResize)},t.prototype.setUserCompDetails=function(e){var t=this;e.newAgStackInstance().then((function(e){return t.afterHeaderCompCreated(e)}))},t.prototype.afterHeaderCompCreated=function(e){var t=this,o=function(){return t.destroyBean(e)};this.isAlive()?(this.getGui().appendChild(e.getGui()),this.addDestroyFunc(o),this.ctrl.setDragSource(e.getGui())):o()},t.TEMPLATE='<div class="ag-header-group-cell" role="columnheader" tabindex="-1">\n <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n </div>',Qu([U("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Qu([ui("eResize")],t.prototype,"eResize",void 0),Qu([B],t.prototype,"postConstruct",null),t}(Ma),Ju=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Zu=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};
|
281 |
|
282 |
|
283 |
|
284 |
|
285 |
|
286 | (Mu=exports.HeaderRowType||(exports.HeaderRowType={})).COLUMN_GROUP="group",Mu.COLUMN="column",Mu.FLOATING_FILTER="filter";var $u,ec=function(e){function t(t){var o=e.call(this)||this;o.headerComps={};var r=t.getType()==exports.HeaderRowType.COLUMN_GROUP?"ag-header-row-column-group":t.getType()==exports.HeaderRowType.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return o.setTemplate('<div class="ag-header-row '+r+'" role="row"></div>'),o.ctrl=t,o}return Ju(t,e),t.prototype.init=function(){var e=this,t={setTransform:function(t){return e.getGui().style.transform=t},setHeight:function(t){return e.getGui().style.height=t},setTop:function(t){return e.getGui().style.top=t},setHeaderCtrls:function(t){return e.setHeaderCtrls(t)},setWidth:function(t){return e.getGui().style.width=t},setAriaRowIndex:function(t){return ro(e.getGui(),t)}};this.ctrl.setComp(t)},t.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},t.prototype.setHeaderCtrls=function(e){var t=this;if(this.isAlive()){var o=this.headerComps;this.headerComps={},e.forEach((function(e){var r=e.getInstanceId(),i=o[r];delete o[r],null==i&&(i=t.createHeaderComp(e),t.getGui().appendChild(i.getGui())),t.headerComps[r]=i})),c(o,(function(e,o){t.getGui().removeChild(o.getGui()),t.destroyBean(o)}));var r=this.gridOptionsService.is("ensureDomOrder"),i=this.gridOptionsService.isDomLayout("print");if(r||i){var n=y(this.headerComps);n.sort((function(e,t){return e.getCtrl().getColumnGroupChild().getLeft()-t.getCtrl().getColumnGroupChild().getLeft()}));var s=n.map((function(e){return e.getGui()}));vr(this.getGui(),s)}}},t.prototype.createHeaderComp=function(e){var t;switch(this.ctrl.getType()){case exports.HeaderRowType.COLUMN_GROUP:t=new Xu(e);break;case exports.HeaderRowType.FLOATING_FILTER:t=new xa(e);break;default:t=new Yu(e)}return this.createBean(t),t.setParentComponent(this),t},Zu([B],t.prototype,"init",null),Zu([j],t.prototype,"destroyHeaderCtrls",null),t}(li),tc=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),oc=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},rc=0,ic=function(e){function t(t,o){var r=e.call(this)||this;return r.lastFocusEvent=null,r.columnGroupChild=t,r.parentRowCtrl=o,r.instanceId=t.getUniqueId()+"-"+rc++,r}return tc(t,e),t.prototype.shouldStopEventPropagation=function(e){var t=this.focusService.getFocusedHeader(),o=t.headerRowIndex,r=t.column;return Hr(this.gridOptionsService,e,o,r)},t.prototype.getWrapperHasFocus=function(){return this.gridOptionsService.getDocument().activeElement===this.eGui},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.handleKeyDown=function(e){var t=this.getWrapperHasFocus();switch(e.key){case xr.PAGE_DOWN:case xr.PAGE_UP:case xr.PAGE_HOME:case xr.PAGE_END:t&&e.preventDefault()}},t.prototype.addDomData=function(){var e=this,o=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsService.setDomData(this.eGui,o,this),this.addDestroyFunc((function(){return e.gridOptionsService.setDomData(e.eGui,o,null)}))},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",oc([U("focusService")],t.prototype,"focusService",void 0),oc([U("beans")],t.prototype,"beans",void 0),oc([U("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(Le),nc=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),sc=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ac=function(e){function o(t,o,r,i){var n=e.call(this)||this;return n.columnOrGroup=t,n.eCell=o,n.ariaEl=n.eCell.querySelector("[role=columnheader]")||n.eCell,n.colsSpanning=i,n.beans=r,n}return nc(o,e),o.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},o.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsService.is("enableRtl")&&this.colsSpanning?ue(this.colsSpanning):this.columnOrGroup},o.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,ie.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onLeftChanged.bind(this))},o.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsService.is("suppressColumnMoveAnimation"),o=t(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&o&&!e?this.animateInLeft():this.onLeftChanged()},o.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup(),o=t.getLeft(),r=t.getOldLeft(),i=this.modifyLeftForPrintLayout(t,r),n=this.modifyLeftForPrintLayout(t,o);this.setLeft(i),this.actualLeft=n,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===n&&e.setLeft(n)}))},o.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},o.prototype.modifyLeftForPrintLayout=function(e,t){if(!this.beans.gridOptionsService.isDomLayout("print"))return t;if("left"===e.getPinned())return t;var o=this.beans.columnModel.getDisplayedColumnsLeftWidth();return"right"===e.getPinned()?o+this.beans.columnModel.getBodyContainerWidth()+t:o+t},o.prototype.setLeft=function(e){var o;if(t(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof ie)o=this.columnOrGroup;else{var r=this.columnOrGroup.getLeafColumns();if(!r.length)return;r.length>1&&so(this.ariaEl,r.length),o=r[0]}var i=this.beans.columnModel.getAriaColumnIndex(o);no(this.ariaEl,i)},sc([B],o.prototype,"postConstruct",null),o}(Le),lc=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),uc=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},cc=function(e){function t(t,o){var r=e.call(this)||this;return r.columns=t,r.element=o,r}return lc(t,e),t.prototype.postConstruct=function(){this.gridOptionsService.is("columnHoverHighlight")&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},uc([U("columnHoverService")],t.prototype,"columnHoverService",void 0),uc([B],t.prototype,"postConstruct",null),t}(Le),pc=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),dc=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},hc=function(e){function t(t,o){var r=e.call(this,t,o)||this;return r.column=t,r}return pc(t,e),t.prototype.setComp=function(t,o,r,i){e.prototype.setGui.call(this,o),this.comp=t,this.eButtonShowMainFilter=r,this.eFloatingFilterBody=i;var n=this.column.getColDef(),s=!!n.filter||!!n.filterFramework,a=!!n.floatingFilter;this.active=s&&a,this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this)),this.active&&this.addManagedListener(this.column,ie.EVENT_FILTER_CHANGED,this.updateFilterButton.bind(this))},t.prototype.setupUi=function(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var e=Fr("filter",this.gridOptionsService,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}},t.prototype.setupFocus=function(){this.createManagedBean(new Si(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.onTabKeyDown=function(e){if(!(this.gridOptionsService.getDocument().activeElement===this.eGui)){var t=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(t)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void t.focus();var o=this.findNextColumnWithFloatingFilter(e.shiftKey);o&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:o},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var t=this.beans.columnModel,o=this.column;do{if(!(o=e?t.getDisplayedColBefore(o):t.getDisplayedColAfter(o)))break}while(!o.getColDef().filter||!o.getColDef().floatingFilter);return o},t.prototype.handleKeyDown=function(t){e.prototype.handleKeyDown.call(this,t);var o=this.getWrapperHasFocus();switch(t.key){case xr.UP:case xr.DOWN:o||t.preventDefault();case xr.LEFT:case xr.RIGHT:if(o)return;t.stopPropagation();case xr.ENTER:o&&this.focusService.focusInto(this.eGui)&&t.preventDefault();break;case xr.ESCAPE:o||this.eGui.focus()}},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),o=!!e.relatedTarget&&er(e.relatedTarget,"ag-floating-filter");if(t&&o&&e.target===this.eGui){var r=this.lastFocusEvent,i=!(!r||r.key!==xr.TAB);if(r&&i){var n=r.shiftKey;this.focusService.focusInto(this.eGui,n)}}var s=this.getRowIndex();this.beans.focusService.setFocusedHeader(s,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new cc([this.column],this.eGui));var t=function(){if(e.gridOptionsService.is("columnHoverHighlight")){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,ke.EVENT_COLUMN_HOVER_CHANGED,t),t()},t.prototype.setupLeft=function(){var e=new ac(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupUserComp=function(){var e=this;if(this.active){var t=this.column.getColDef();this.suppressFilterButton=!!t.floatingFilterComponentParams&&!!t.floatingFilterComponentParams.suppressFilterButton;var o=this.filterManager.getFloatingFilterCompDetails(this.column,(function(){return e.showParentFilter()}));o&&this.comp.setCompDetails(o)}},t.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,e,"floatingFilter","filterMenuTab",["filterMenuTab"])},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var t=function(t){var o=e.comp.getFloatingFilterComp();if(o){var r=e.filterManager.getCurrentFloatingFilterParentModel(e.column);o.then((function(e){e&&e.onParentModelChanged(r,t)}))}};this.addManagedListener(this.column,ie.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)}},t.prototype.setupWidth=function(){var e=this,t=function(){var t=e.column.getActualWidth()+"px";e.comp.setWidth(t)};this.addManagedListener(this.column,ie.EVENT_WIDTH_CHANGED,t),t()},t.prototype.updateFilterButton=function(){!this.suppressFilterButton&&this.comp&&this.comp.setButtonWrapperDisplayed(this.filterManager.isFilterAllowed(this.column))},dc([U("filterManager")],t.prototype,"filterManager",void 0),dc([U("columnHoverService")],t.prototype,"columnHoverService",void 0),dc([U("menuFactory")],t.prototype,"menuFactory",void 0),t}(ic),fc=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),gc=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},vc=function(e){function t(t,o,r,i,n){var s=e.call(this)||this;return s.pinned=t,s.column=o,s.eResize=r,s.comp=i,s.ctrl=n,s}return fc(t,e),t.prototype.postConstruct=function(){var e,t,o=this,r=this.column.getColDef(),i=[],n=function(){i.forEach((function(e){return e()})),i.length=0},s=function(){var s=o.column.isResizable(),a=!o.gridOptionsService.is("suppressAutoSize")&&!r.suppressAutoSize;(s!==e||a!==t)&&(e=s,t=a,n(),function(){if(Jo(o.eResize,e),e){var r=o.horizontalResizeService.addResizeBar({eResizeBar:o.eResize,onResizeStart:o.onResizeStart.bind(o),onResizing:o.onResizing.bind(o,!1),onResizeEnd:o.onResizing.bind(o,!0)});if(i.push(r),t){var n=o.gridOptionsService.is("skipHeaderOnAutoSize"),s=function(){o.columnModel.autoSizeColumn(o.column,n,"uiColumnResized")};o.eResize.addEventListener("dblclick",s);var a=new kn(o.eResize);a.addEventListener(kn.EVENT_DOUBLE_TAP,s),o.addDestroyFunc((function(){o.eResize.removeEventListener("dblclick",s),a.removeEventListener(kn.EVENT_DOUBLE_TAP,s),a.destroy()}))}}}())};s(),this.addDestroyFunc(n),this.ctrl.addRefreshFunction(s)},t.prototype.onResizing=function(e,t){var o=this.normaliseResizeAmount(t),r=[{key:this.column,newWidth:this.resizeStartWidth+o}];this.columnModel.setColumnWidths(r,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.normaliseResizeAmount=function(e){var t=e,o="left"!==this.pinned,r="right"===this.pinned;return this.gridOptionsService.is("enableRtl")?o&&(t*=-1):r&&(t*=-1),t},gc([U("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),gc([U("columnModel")],t.prototype,"columnModel",void 0),gc([B],t.prototype,"postConstruct",null),t}(Le),yc=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),mc=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Cc=function(e){function t(t){var o=e.call(this)||this;o.cbSelectAllVisible=!1,o.processingEventFromCheckbox=!1,o.column=t;var r=t.getColDef();return o.filteredOnly=!!(null==r?void 0:r.headerCheckboxSelectionFilteredOnly),o.currentPageOnly=!!(null==r?void 0:r.headerCheckboxSelectionCurrentPageOnly),o}return yc(t,e),t.prototype.onSpaceKeyPressed=function(e){var t=this.cbSelectAll,o=this.gridOptionsService.getDocument();t.isDisplayed()&&!t.getGui().contains(o.activeElement)&&(e.preventDefault(),t.setValue(!t.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new Ki),this.cbSelectAll.addCssClass("ag-header-select-all"),Vt(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,ke.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_PAGINATION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,Ki.EVENT_CHANGED,this.onCbSelectAll.bind(this)),Xt(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible,{skipAriaHidden:!0}),this.cbSelectAllVisible&&(this.checkRightRowModelType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.selectionService.getSelectAllState();this.cbSelectAll.setValue(e),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var e=this.localeService.getLocaleTextFunc(),t=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),o=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.headerCellCtrl.setAriaDescriptionProperty("selectAll",o+" ("+t+")"),this.cbSelectAll.setInputAriaLabel(o+" ("+t+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel(null);this.headerCellCtrl.refreshAriaDescription()},t.prototype.checkRightRowModelType=function(e){var t=this.rowModel.getType();return!("clientSide"!==t&&"serverSide"!==t)||(console.warn("AG Grid: "+e+" is only available if using 'clientSide' or 'serverSide' rowModelType, you are using "+t+"."),!1)},t.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var e=this.cbSelectAll.getValue(),t="uiSelectAll";this.currentPageOnly?t="uiSelectAllCurrentPage":this.filteredOnly&&(t="uiSelectAllFiltered");var o={source:t,justFiltered:this.filteredOnly,justCurrentPage:this.currentPageOnly};e?this.selectionService.selectAllRowNodes(o):this.selectionService.deselectAllRowNodes(o)}},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;"function"==typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsService.context}));return!!e&&this.checkRightRowModelType("headerCheckboxSelection")},mc([U("gridApi")],t.prototype,"gridApi",void 0),mc([U("columnApi")],t.prototype,"columnApi",void 0),mc([U("rowModel")],t.prototype,"rowModel",void 0),mc([U("selectionService")],t.prototype,"selectionService",void 0),t}(Le),wc=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Sc=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ec=function(e){function t(t,o){var r=e.call(this,t,o)||this;return r.refreshFunctions=[],r.userHeaderClasses=new Set,r.ariaDescriptionProperties=new Map,r.column=t,r}return wc(t,e),t.prototype.setComp=function(t,o,r,i){var n=this;e.prototype.setGui.call(this,o),this.comp=t,this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight(i),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new vc(this.getPinned(),this.column,r,t,this)),this.createManagedBean(new cc([this.column],o)),this.createManagedBean(new ac(this.column,o,this.beans)),this.createManagedBean(new Si(o,{shouldStopEventPropagation:function(e){return n.shouldStopEventPropagation(e)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.column,ie.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},t.prototype.lookupUserCompDetails=function(){var e=this.createParams(),t=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(t,e)},t.prototype.createParams=function(){var e=this,t=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:t.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(t){e.gridApi.showColumnMenuAfterButtonClick(e.column,t)},progressSort:function(t){e.sortController.progressSort(e.column,!!t,"uiColumnSorted")},setSort:function(t,o){e.sortController.setSortForColumn(e.column,t,!!o,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.context,eGridHeader:this.getGui()}},t.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new Cc(this.column)),this.selectAllFeature.setComp(this)},t.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},t.prototype.handleKeyDown=function(t){e.prototype.handleKeyDown.call(this,t),t.key===xr.SPACE&&this.selectAllFeature.onSpaceKeyPressed(t),t.key===xr.ENTER&&this.onEnterKeyPressed(t)},t.prototype.onEnterKeyPressed=function(e){var t=this.comp.getUserCompInstance();if(t)if(e.ctrlKey||e.metaKey)this.menuEnabled&&t.showMenu&&(e.preventDefault(),t.showMenu());else if(this.sortable){var o=e.shiftKey;this.sortController.progressSort(this.column,o,"uiColumnSorted")}},t.prototype.isMenuEnabled=function(){return this.menuEnabled},t.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getRowIndex();this.focusService.setFocusedHeader(t,this.column)}this.setActiveHeader(!0)},t.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},t.prototype.setupTooltip=function(){var e=this,t={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return e.column.getColDef().headerTooltip}},o=this.createManagedBean(new ul(t,this.beans));o.setComp(this.comp),this.refreshFunctions.push((function(){return o.refreshToolTip()}))},t.prototype.setupClassesFromColDef=function(){var e=this,t=function(){var t=e.column.getColDef(),o=Uu.getHeaderClassesFromColDef(t,e.gridOptionsService,e.column,null),r=e.userHeaderClasses;e.userHeaderClasses=new Set(o),o.forEach((function(t){r.has(t)?r.delete(t):e.comp.addOrRemoveCssClass(t,!0)})),r.forEach((function(t){return e.comp.addOrRemoveCssClass(t,!1)}))};this.refreshFunctions.push(t),t()},t.prototype.setDragSource=function(e){var t=this;if(this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable){var o=!this.gridOptionsService.is("suppressDragLeaveHidesColumns");this.moveDragSource={type:exports.DragSourceType.HeaderCell,eElement:e,defaultIconName:o?Rs.ICON_HIDE:Rs.ICON_NOT_ALLOWED,getDragItem:function(){return t.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return t.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return t.column.setMoving(!1,"uiColumnMoved")},onGridEnter:function(e){var r;if(o){var i=(null===(r=null==e?void 0:e.columns)||void 0===r?void 0:r.filter((function(e){return!e.getColDef().lockVisible})))||[];t.columnModel.setColumnsVisible(i,!0,"uiColumnMoved")}},onGridExit:function(e){var r;if(o){var i=(null===(r=null==e?void 0:e.columns)||void 0===r?void 0:r.filter((function(e){return!e.getColDef().lockVisible})))||[];t.columnModel.setColumnsVisible(i,!1,"uiColumnMoved")}}},this.dragAndDropService.addDragSource(this.moveDragSource,!0)}},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},t.prototype.onColDefChanged=function(){this.refresh()},t.prototype.updateState=function(){var e=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,this.sortable=e.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},t.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},t.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach((function(e){return e()}))},t.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails();!!(null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass)&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},t.prototype.attemptHeaderCompRefresh=function(e){var t=this.comp.getUserCompInstance();return!!t&&(!!t.refresh&&t.refresh(e))},t.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},t.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},t.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!!(!this.gridOptionsService.is("suppressMovableColumns")&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},t.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},t.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},t.prototype.onColumnValueChanged=function(){this.checkDisplayName()},t.prototype.setupWidth=function(){var e=this,t=function(){var t=e.column.getActualWidth();e.comp.setWidth(t+"px")};this.addManagedListener(this.column,ie.EVENT_WIDTH_CHANGED,t),t()},t.prototype.setupMovingCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,ie.EVENT_MOVING_CHANGED,t),t()},t.prototype.setupMenuClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,ie.EVENT_MENU_VISIBLE_CHANGED,t),t()},t.prototype.setupSortableClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};t(),this.addRefreshFunction(t),this.addManagedListener(this.eventService,ie.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},t.prototype.setupWrapTextClass=function(){var e=this,t=function(){var t=!!e.column.getColDef().wrapHeaderText;e.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",t)};t(),this.addRefreshFunction(t)},t.prototype.onHeaderHeightChanged=function(){this.refreshSpanHeaderHeight()},t.prototype.refreshSpanHeaderHeight=function(){var e=this,t=e.eGui,o=e.column,r=e.comp,i=e.columnModel,n=e.gridOptionsService;if(o.isSpanHeaderHeight()){var s=this.getColumnGroupPaddingInfo(),a=s.numberOfParents,l=s.isSpanningTotal;if(r.addOrRemoveCssClass("ag-header-span-height",a>0),0!==a){r.addOrRemoveCssClass("ag-header-span-total",l);var u=n.is("pivotMode")?i.getPivotGroupHeaderHeight():i.getGroupHeaderHeight(),c=i.getColumnHeaderRowHeight(),p=a*u;t.style.setProperty("top",-p+"px"),t.style.setProperty("height",c+p+"px")}}},t.prototype.getColumnGroupPaddingInfo=function(){var e=this.column.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};for(var t=e.getPaddingLevel()+1,o=!0;e;){if(!e.isPadding()){o=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:o}},t.prototype.setupAutoHeight=function(e){var t,o=this,r=function(t){if(o.isAlive()){var i=tr(o.getGui()),n=i.paddingTop+i.paddingBottom+i.borderBottomWidth+i.borderTopWidth,s=e.offsetHeight+n;if(t<5){var a=o.beans.gridOptionsService.getDocument();if(!a||!a.contains(e)||0==s)return void o.beans.frameworkOverrides.setTimeout((function(){return r(t+1)}),0)}o.columnModel.setColumnHeaderHeight(o.column,s)}},i=!1,n=function(){var e=o.column.isSpanHeaderHeight(),t=o.column.isAutoHeaderHeight();if(e){if(a(),t){O((function(){return console.warn("AG Grid: The properties `spanHeaderHeight` and `autoHeaderHeight` cannot be used together in the same column.")}),"HeaderCellCtrl.spanHeaderHeightAndAutoHeaderHeight")}}else t&&!i&&s(),!t&&i&&a()},s=function(){i=!0,r(0),o.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),t=o.resizeObserverService.observeResize(e,(function(){return r(0)}))},a=function(){i=!1,t&&t(),o.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),t=void 0};n(),this.addDestroyFunc((function(){return a()})),this.addManagedListener(this.column,ie.EVENT_WIDTH_CHANGED,(function(){return i&&r(0)})),this.addManagedListener(this.eventService,ie.EVENT_SORT_CHANGED,(function(){i&&o.beans.frameworkOverrides.setTimeout((function(){return r(0)}))})),this.addRefreshFunction(n)},t.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.localeService.getLocaleTextFunc(),t=this.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(kt(t)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},t.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},t.prototype.setAriaDescriptionProperty=function(e,t){null!=t?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)},t.prototype.refreshAriaDescription=function(){var e=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(e.length?e.join(" "):void 0)},t.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},t.prototype.addColumnHoverListener=function(){var e=this,t=function(){if(e.gridOptionsService.is("columnHoverHighlight")){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,ke.EVENT_COLUMN_HOVER_CHANGED,t),t()},t.prototype.setupFilterCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-filtered",e.column.isFilterActive())};this.addManagedListener(this.column,ie.EVENT_FILTER_ACTIVE_CHANGED,t),t()},t.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},t.prototype.addActiveHeaderMouseListeners=function(){var e=this,t=function(t){return e.setActiveHeader("mouseenter"===t.type)};this.addManagedListener(this.getGui(),"mouseenter",t),this.addManagedListener(this.getGui(),"mouseleave",t)},t.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},Sc([U("columnModel")],t.prototype,"columnModel",void 0),Sc([U("columnHoverService")],t.prototype,"columnHoverService",void 0),Sc([U("sortController")],t.prototype,"sortController",void 0),Sc([U("menuFactory")],t.prototype,"menuFactory",void 0),Sc([U("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Sc([U("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Sc([U("gridApi")],t.prototype,"gridApi",void 0),Sc([U("columnApi")],t.prototype,"columnApi",void 0),Sc([j],t.prototype,"removeDragSource",null),t}(ic),Rc=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Oc=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},bc=function(e){function t(t,o,r,i){var n=e.call(this)||this;return n.eResize=o,n.comp=t,n.pinned=r,n.columnGroup=i,n}return Rc(t,e),t.prototype.postConstruct=function(){var e=this;if(this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(t),!this.gridOptionsService.is("suppressAutoSize")){var o=this.gridOptionsService.is("skipHeaderOnAutoSize");this.eResize.addEventListener("dblclick",(function(){var t=[];e.columnGroup.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||t.push(e.getColId())})),t.length>0&&e.columnModel.autoSizeColumns({columns:t,skipHeader:o,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit()}))}}else this.comp.setResizableDisplayed(!1)},t.prototype.onResizeStart=function(e){var t=this;this.calculateInitialValues();var o=null;if(e&&(o=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),o){var r=o.getDisplayedLeafColumns();this.resizeTakeFromCols=r.filter((function(e){return e.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.onResizing=function(e,t){var o=this.normaliseDragChange(t),r=this.resizeStartWidth+o;this.resizeColumns(r,e)},t.prototype.resizeLeafColumnsToFit=function(){var e=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),e>this.resizeStartWidth&&this.resizeColumns(e,!0)},t.prototype.resizeColumns=function(e,t){void 0===t&&(t=!0);var o=[];if(o.push({columns:this.resizeCols,ratios:this.resizeRatios,width:e}),this.resizeTakeFromCols){var r=e-this.resizeStartWidth;o.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-r})}this.columnModel.resizeColumnSets({resizeSets:o,finished:t,source:"uiColumnDragged"}),t&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.calculateInitialValues=function(){var e=this,t=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=t.filter((function(e){return e.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(t){return e.resizeStartWidth+=t.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(t){return e.resizeRatios.push(t.getActualWidth()/e.resizeStartWidth)}))},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsService.is("enableRtl")?"left"!==this.pinned&&(t*=-1):"right"===this.pinned&&(t*=-1),t},Oc([U("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),Oc([U("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),Oc([U("columnModel")],t.prototype,"columnModel",void 0),Oc([B],t.prototype,"postConstruct",null),t}(Le),Tc=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Pc=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Dc=function(e){function t(t,o){var r=e.call(this)||this;return r.removeChildListenersFuncs=[],r.columnGroup=o,r.comp=t,r}return Tc(t,e),t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,nt.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(o){o.addEventListener("widthChanged",t),o.addEventListener("visibleChanged",t),e.removeChildListenersFuncs.push((function(){o.removeEventListener("widthChanged",t),o.removeEventListener("visibleChanged",t)}))}))},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(e){return e()})),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){var e=this.columnGroup.getActualWidth();this.comp.setWidth(e+"px"),this.comp.addOrRemoveCssClass("ag-hidden",0===e)},Pc([B],t.prototype,"postConstruct",null),t}(Le),_c=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ac=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Nc=function(e){function t(t,o){var r=e.call(this,t,o)||this;return r.columnGroup=t,r}return _c(t,e),t.prototype.setComp=function(t,o,r){e.prototype.setGui.call(this,o),this.comp=t,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var i=this.getParentRowCtrl().getPinned(),n=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new cc(n,o)),this.createManagedBean(new ac(this.columnGroup,o,this.beans)),this.createManagedBean(new Dc(t,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new bc(t,r,i,this.columnGroup)),this.createManagedBean(new Si(o,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.resizeLeafColumnsToFit=function(){var e,t;null===(e=this.groupResizeFeature)||void 0===e||e.onResizeStart(!1),null===(t=this.groupResizeFeature)||void 0===t||t.resizeLeafColumnsToFit()},t.prototype.setupUserComp=function(){var e=this,t=this.displayName,o={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(t){e.columnModel.setColumnGroupOpened(e.columnGroup.getProvidedColumnGroup(),t,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.context};if(!t){for(var r=this.columnGroup,i=r.getLeafColumns();r.getParent()&&r.getParent().getLeafColumns().length===i.length;)r=r.getParent();var n=r.getColGroupDef();n&&(t=n.headerName),t||(t=i?this.columnModel.getDisplayNameForColumn(i[0],"header",!0):"")}var s=this.userComponentFactory.getHeaderGroupCompDetails(o);this.comp.setUserCompDetails(s)},t.prototype.setupTooltip=function(){var e=this,t=this.columnGroup.getColGroupDef(),o={getColumn:function(){return e.columnGroup},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return t&&t.headerTooltip}};t&&(o.getColDef=function(){return t}),this.createManagedBean(new ul(o,this.beans)).setComp(this.comp)},t.prototype.setupExpandable=function(){var e=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,se.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,se.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},t.prototype.refreshExpanded=function(){var e=this.columnGroup;this.expandable=e.isExpandable();var t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0)},t.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},t.prototype.addClasses=function(){var e=this,t=this.columnGroup.getColGroupDef(),o=Uu.getHeaderClassesFromColDef(t,this.gridOptionsService,null,this.columnGroup);this.columnGroup.isPadding()?(o.push("ag-header-group-cell-no-group"),this.columnGroup.getLeafColumns().every((function(e){return e.isSpanHeaderHeight()}))&&o.push("ag-header-span-height")):o.push("ag-header-group-cell-with-group");o.forEach((function(t){return e.comp.addOrRemoveCssClass(t,!0)}))},t.prototype.setupMovingCss=function(){var e=this,t=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),o=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.columnGroup.isMoving())};t.forEach((function(t){e.addManagedListener(t,ie.EVENT_MOVING_CHANGED,o)})),o()},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=this.getRowIndex();this.beans.focusService.setFocusedHeader(t,this.columnGroup)}},t.prototype.handleKeyDown=function(t){e.prototype.handleKeyDown.call(this,t);var o=this.getWrapperHasFocus();if(this.expandable&&o&&t.key===xr.ENTER){var r=this.columnGroup,i=!r.isExpanded();this.columnModel.setColumnGroupOpened(r.getProvidedColumnGroup(),i,"uiColumnExpanded")}},t.prototype.setDragSource=function(e){var t=this;if(!this.isSuppressMoving()){var o=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),r=!this.gridOptionsService.is("suppressDragLeaveHidesColumns"),i={type:exports.DragSourceType.HeaderCell,eElement:e,defaultIconName:r?Rs.ICON_HIDE:Rs.ICON_NOT_ALLOWED,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return o.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return o.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))},onGridEnter:function(e){var o;if(r){var i=(null===(o=null==e?void 0:e.columns)||void 0===o?void 0:o.filter((function(e){return!e.getColDef().lockVisible})))||[];t.columnModel.setColumnsVisible(i,!0,"uiColumnMoved")}},onGridExit:function(e){var o;if(r){var i=(null===(o=null==e?void 0:e.columns)||void 0===o?void 0:o.filter((function(e){return!e.getColDef().lockVisible})))||[];t.columnModel.setColumnsVisible(i,!1,"uiColumnMoved")}}};this.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc((function(){return t.dragAndDropService.removeDragSource(i)}))}},t.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var o=[];return this.columnModel.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(o.push(t),de(e,t))})),e.forEach((function(e){return o.push(e)})),{columns:o,visibleState:t}},t.prototype.isSuppressMoving=function(){var e=!1;return this.columnGroup.getLeafColumns().forEach((function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)})),e||this.gridOptionsService.is("suppressMovableColumns")},Ac([U("columnModel")],t.prototype,"columnModel",void 0),Ac([U("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Ac([U("gridApi")],t.prototype,"gridApi",void 0),Ac([U("columnApi")],t.prototype,"columnApi",void 0),t}(ic),Mc=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Fc=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Lc=0,xc=function(e){function t(t,o,r){var i=e.call(this)||this;return i.instanceId=Lc++,i.headerCellCtrls={},i.rowIndex=t,i.pinned=o,i.type=r,i}return Mc(t,e),t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e){this.comp=e,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),So()&&this.comp.setTransform("translateZ(0)"),e.setAriaRowIndex(this.rowIndex+1)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,ke.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener("headerHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("groupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotGroupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("floatingFiltersHeight",this.onRowHeightChanged.bind(this))},t.prototype.getHeaderCellCtrl=function(e){return a(this.headerCellCtrls).find((function(t){return t.getColumnGroupChild()===e}))},t.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},t.prototype.getType=function(){return this.type},t.prototype.onColumnResized=function(){this.setWidth()},t.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+"px")},t.prototype.getWidthForRow=function(){return this.gridOptionsService.isDomLayout("print")?null!=this.pinned?0:this.columnModel.getContainerWidth("right")+this.columnModel.getContainerWidth("left")+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},t.prototype.onRowHeightChanged=function(){var e=this.columnModel.getHeaderRowCount(),t=[],o=0;this.columnModel.hasFloatingFilters()&&(e++,o=1);for(var r=this.columnModel.getColumnGroupHeaderRowHeight(),i=this.columnModel.getColumnHeaderRowHeight(),n=e-(1+o),s=0;s<n;s++)t.push(r);t.push(i);for(s=0;s<o;s++)t.push(this.columnModel.getFloatingFiltersHeight());var a=0;for(s=0;s<this.rowIndex;s++)a+=t[s];var l=t[this.rowIndex]+"px";this.comp.setTop(a+"px"),this.comp.setHeight(l)},t.prototype.getPinned=function(){return this.pinned},t.prototype.getRowIndex=function(){return this.rowIndex},t.prototype.onVirtualColumnsChanged=function(){var e=this,t=this.headerCellCtrls;this.headerCellCtrls={},this.getColumnsInViewport().forEach((function(o){if(!o.isEmptyGroup()){var r=o.getUniqueId(),i=t[r];if(delete t[r],i&&i.getColumnGroupChild()!=o&&(e.destroyBean(i),i=void 0),null==i)switch(e.type){case exports.HeaderRowType.FLOATING_FILTER:i=e.createBean(new hc(o,e));break;case exports.HeaderRowType.COLUMN_GROUP:i=e.createBean(new Nc(o,e));break;default:i=e.createBean(new Ec(o,e))}e.headerCellCtrls[r]=i}}));c(t,(function(t,o){var r;(r=o,!!e.focusService.isHeaderWrapperFocused(r)&&e.columnModel.isDisplayed(r.getColumnGroupChild()))?e.headerCellCtrls[t]=o:e.destroyBean(o)}));var o=y(this.headerCellCtrls);this.comp.setHeaderCtrls(o)},t.prototype.getColumnsInViewport=function(){return this.gridOptionsService.isDomLayout("print")?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},t.prototype.getColumnsInViewportPrintLayout=function(){var e=this;if(null!=this.pinned)return[];var t=[],o=this.getActualDepth();return["left",null,"right"].forEach((function(r){var i=e.columnModel.getVirtualHeaderGroupRow(r,o);t=t.concat(i)})),t},t.prototype.getActualDepth=function(){return this.type==exports.HeaderRowType.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},t.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},t.prototype.focusHeader=function(e,t){var o=y(this.headerCellCtrls).find((function(t){return t.getColumnGroupChild()==e}));return!!o&&(o.focus(t),!0)},t.prototype.destroy=function(){var t=this;c(this.headerCellCtrls,(function(e,o){t.destroyBean(o)})),this.headerCellCtrls={},e.prototype.destroy.call(this)},Fc([U("columnModel")],t.prototype,"columnModel",void 0),Fc([U("focusService")],t.prototype,"focusService",void 0),t}(Le),Ic=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Gc=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Hc=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},Vc=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Hc(arguments[t]));return e},kc=function(e){function t(t){var o=e.call(this)||this;return o.hidden=!1,o.groupsRowCtrls=[],o.pinned=t,o}return Ic(t,e),t.prototype.setComp=function(e,t){this.comp=e,this.eViewport=t,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,ke.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eViewport,"scroll",this.resetScrollLeft.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},t.prototype.setupDragAndDrop=function(e){var t=new Bu(this.pinned,e);this.createManagedBean(t)},t.prototype.refresh=function(e){var t=this;void 0===e&&(e=!1);var o,r,i=new Xr,n=this.focusService.getFocusHeaderToUseAfterRefresh();!function(){var e=t.columnModel.getHeaderRowCount()-1;t.groupsRowCtrls=t.destroyBeans(t.groupsRowCtrls);for(var o=0;o<e;o++){var r=t.createBean(new xc(i.next(),t.pinned,exports.HeaderRowType.COLUMN_GROUP));t.groupsRowCtrls.push(r)}}(),o=i.next(),((r=!(t.hidden||null!=t.columnsRowCtrl&&e&&t.columnsRowCtrl.getRowIndex()===o))||t.hidden)&&(t.columnsRowCtrl=t.destroyBean(t.columnsRowCtrl)),r&&(t.columnsRowCtrl=t.createBean(new xc(o,t.pinned,exports.HeaderRowType.COLUMN))),function(){var o=function(){t.filtersRowCtrl=t.destroyBean(t.filtersRowCtrl)};if(t.columnModel.hasFloatingFilters()&&!t.hidden){var r=i.next();if(t.filtersRowCtrl){var n=t.filtersRowCtrl.getRowIndex()!==r;e&&!n||o()}t.filtersRowCtrl||(t.filtersRowCtrl=t.createBean(new xc(r,t.pinned,exports.HeaderRowType.FLOATING_FILTER)))}else o()}();var s=this.getAllCtrls();this.comp.setCtrls(s),this.restoreFocusOnHeader(n)},t.prototype.restoreFocusOnHeader=function(e){null!=e&&e.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:e})},t.prototype.getAllCtrls=function(){var e=Vc(this.groupsRowCtrls);return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e},t.prototype.onGridColumnsChanged=function(){this.refresh(!0)},t.prototype.setupCenterWidth=function(){var e=this;null==this.pinned&&this.createManagedBean(new Zl((function(t){return e.comp.setCenterWidth(t+"px")})))},t.prototype.setHorizontalScroll=function(e){this.comp.setContainerTransform("translateX("+e+"px)")},t.prototype.resetScrollLeft=function(){this.eViewport.scrollLeft=0},t.prototype.setupPinnedWidth=function(){var e=this;if(null!=this.pinned){var t="left"===this.pinned,o="right"===this.pinned;this.hidden=!0;var r=function(){var r=t?e.pinnedWidthService.getPinnedLeftWidth():e.pinnedWidthService.getPinnedRightWidth();if(null!=r){var i=0==r,n=e.hidden!==i,s=e.gridOptionsService.is("enableRtl"),a=e.gridOptionsService.getScrollbarWidth(),l=e.scrollVisibleService.isVerticalScrollShowing()&&(s&&t||!s&&o)?r+a:r;e.comp.setPinnedContainerWidth(l+"px"),e.comp.setDisplayed(!i),n&&(e.hidden=i,e.refresh())}};this.addManagedListener(this.eventService,ke.EVENT_LEFT_PINNED_WIDTH_CHANGED,r),this.addManagedListener(this.eventService,ke.EVENT_RIGHT_PINNED_WIDTH_CHANGED,r),this.addManagedListener(this.eventService,ke.EVENT_SCROLL_VISIBILITY_CHANGED,r),this.addManagedListener(this.eventService,ke.EVENT_SCROLLBAR_WIDTH_CHANGED,r)}},t.prototype.getHeaderCtrlForColumn=function(e){if(e instanceof ie){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(e)}if(0!==this.groupsRowCtrls.length)for(var t=0;t<this.groupsRowCtrls.length;t++){var o=this.groupsRowCtrls[t].getHeaderCellCtrl(e);if(o)return o}},t.prototype.getHtmlElementForColumnHeader=function(e){var t=this.getHeaderCtrlForColumn(e);return t?t.getGui():null},t.prototype.getRowType=function(e){var t=this.getAllCtrls()[e];return t?t.getType():void 0},t.prototype.focusHeader=function(e,t,o){var r=this.getAllCtrls()[e];return!!r&&r.focusHeader(t,o)},t.prototype.getRowCount=function(){return this.getAllCtrls().length},t.prototype.destroy=function(){this.filtersRowCtrl&&(this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)),this.columnsRowCtrl&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),this.groupsRowCtrls&&this.groupsRowCtrls.length&&(this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls)),e.prototype.destroy.call(this)},Gc([U("ctrlsService")],t.prototype,"ctrlsService",void 0),Gc([U("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Gc([U("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),Gc([U("columnModel")],t.prototype,"columnModel",void 0),Gc([U("focusService")],t.prototype,"focusService",void 0),t}(Le),Bc=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),jc=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Wc=function(e){function t(t){var o=e.call(this)||this;return o.headerRowComps={},o.rowCompsList=[],o.pinned=t,o}return Bc(t,e),t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var t={setDisplayed:function(t){return e.setDisplayed(t)},setCtrls:function(t){return e.setCtrls(t)},setCenterWidth:function(t){return e.eCenterContainer.style.width=t},setContainerTransform:function(t){return e.eCenterContainer.style.transform=t},setPinnedContainerWidth:function(t){var o=e.getGui();o.style.width=t,o.style.maxWidth=t,o.style.minWidth=t}};this.createManagedBean(new kc(this.pinned)).setComp(t,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e="left"==this.pinned,o="right"==this.pinned,r=e?t.PINNED_LEFT_TEMPLATE:o?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE;this.setTemplate(r),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},t.prototype.destroyRowComps=function(){this.setCtrls([])},t.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},t.prototype.setCtrls=function(e){var t,o=this,r=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];e.forEach((function(e){var i=e.getInstanceId(),n=r[i];delete r[i];var s=n||o.createBean(new ec(e));o.headerRowComps[i]=s,o.rowCompsList.push(s),function(e){var r=e.getGui();r.parentElement!=o.eRowContainer&&o.eRowContainer.appendChild(r),t&&gr(o.eRowContainer,r,t),t=r}(s)})),y(r).forEach((function(e){return o.destroyRowComp(e)}))},t.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"></div>',t.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"></div>',t.CENTER_TEMPLATE='<div class="ag-header-viewport" role="presentation">\n <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>\n </div>',jc([ui("eCenterContainer")],t.prototype,"eCenterContainer",void 0),jc([B],t.prototype,"init",null),jc([j],t.prototype,"destroyRowComps",null),t}(li),Uc=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),zc=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};
|
287 |
|
288 |
|
289 |
|
290 |
|
291 |
|
292 | ($u=exports.HeaderNavigationDirection||(exports.HeaderNavigationDirection={}))[$u.UP=0]="UP",$u[$u.DOWN=1]="DOWN",$u[$u.LEFT=2]="LEFT",$u[$u.RIGHT=3]="RIGHT";var Kc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Uc(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCon=t.gridBodyCtrl}))},t.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},t.prototype.navigateVertically=function(e,t,o){if(t||(t=this.focusService.getFocusedHeader()),!t)return!1;var r=t.headerRowIndex,i=t.column,n=this.getHeaderRowCount(),s=e===exports.HeaderNavigationDirection.UP?this.headerPositionUtils.getColumnVisibleParent(i,r):this.headerPositionUtils.getColumnVisibleChild(i,r),a=s.nextRow,l=s.nextFocusColumn,u=!1;return a<0&&(a=0,l=i,u=!0),a>=n&&(a=-1),!(!u&&!l)&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a,column:l},allowUserOverride:!0,event:o})},t.prototype.navigateHorizontally=function(e,t,o){void 0===t&&(t=!1);var r,i,n=this.focusService.getFocusedHeader();return e===exports.HeaderNavigationDirection.LEFT!==this.gridOptionsService.is("enableRtl")?(i="Before",r=this.headerPositionUtils.findHeader(n,i)):(i="After",r=this.headerPositionUtils.findHeader(n,i)),r||!t?this.focusService.focusHeaderPosition({headerPosition:r,direction:i,fromTab:t,allowUserOverride:!0,event:o}):this.focusNextHeaderRow(n,i,o)},t.prototype.focusNextHeaderRow=function(e,t,o){var r,i=e.headerRowIndex,n=null;return"Before"===t?i>0&&(r=i-1,n=this.headerPositionUtils.findColAtEdgeForHeaderRow(r,"end")):(r=i+1,n=this.headerPositionUtils.findColAtEdgeForHeaderRow(r,"start")),this.focusService.focusHeaderPosition({headerPosition:n,direction:t,fromTab:!0,allowUserOverride:!0,event:o})},t.prototype.scrollToColumn=function(e,t){if(void 0===t&&(t="After"),!e.getPinned()){var o;if(e instanceof nt){var r=e.getDisplayedLeafColumns();o="Before"===t?ue(r):r[0]}else o=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(o)}},zc([U("focusService")],t.prototype,"focusService",void 0),zc([U("headerPositionUtils")],t.prototype,"headerPositionUtils",void 0),zc([U("ctrlsService")],t.prototype,"ctrlsService",void 0),zc([B],t.prototype,"postConstruct",null),t=zc([W("headerNavigationService")],t)}(Le),Yc=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),qc=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Qc=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return Yc(o,e),o.prototype.setComp=function(e,t,o){this.comp=e,this.eGui=t,this.createManagedBean(new Si(o,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},o.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListener("headerHeight",e),this.addManagedPropertyListener("pivotHeaderHeight",e),this.addManagedPropertyListener("groupHeaderHeight",e),this.addManagedPropertyListener("pivotGroupHeaderHeight",e),this.addManagedPropertyListener("floatingFiltersHeight",e),this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,e),this.addManagedListener(this.eventService,ke.EVENT_GRID_STYLES_CHANGED,e)},o.prototype.getHeaderHeight=function(){return this.headerHeight},o.prototype.setHeaderHeight=function(){var e,t=this.columnModel,o=0,r=t.getHeaderRowCount();t.hasFloatingFilters()&&(r++,o=1);var i=this.columnModel.getColumnGroupHeaderRowHeight(),n=this.columnModel.getColumnHeaderRowHeight(),s=r-(1+o);if(e=o*t.getFloatingFiltersHeight(),e+=s*i,e+=n,this.headerHeight!==e){this.headerHeight=e;var a=e+1+"px";this.comp.setHeightAndMinHeight(a),this.eventService.dispatchEvent({type:ke.EVENT_HEADER_HEIGHT_CHANGED})}},o.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},o.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.getAllDisplayedColumns().some((function(e){return e.isSpanHeaderHeight()}));this.comp.addOrRemoveCssClass("ag-header-allow-overflow",e)},o.prototype.onTabKeyDown=function(e){var t=this.gridOptionsService.is("enableRtl"),o=e.shiftKey!==t?exports.HeaderNavigationDirection.LEFT:exports.HeaderNavigationDirection.RIGHT;(this.headerNavigationService.navigateHorizontally(o,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},o.prototype.handleKeyDown=function(e){var o=null;switch(e.key){case xr.LEFT:o=exports.HeaderNavigationDirection.LEFT;case xr.RIGHT:t(o)||(o=exports.HeaderNavigationDirection.RIGHT),this.headerNavigationService.navigateHorizontally(o,!1,e);break;case xr.UP:o=exports.HeaderNavigationDirection.UP;case xr.DOWN:t(o)||(o=exports.HeaderNavigationDirection.DOWN),this.headerNavigationService.navigateVertically(o,null,e)&&e.preventDefault();break;default:return}},o.prototype.onFocusOut=function(e){var t=this.gridOptionsService.getDocument(),o=e.relatedTarget;!o&&this.eGui.contains(t.activeElement)||this.eGui.contains(o)||this.focusService.clearFocusedHeader()},qc([U("headerNavigationService")],o.prototype,"headerNavigationService",void 0),qc([U("focusService")],o.prototype,"focusService",void 0),qc([U("columnModel")],o.prototype,"columnModel",void 0),qc([U("ctrlsService")],o.prototype,"ctrlsService",void 0),o}(Le),Xc=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Jc=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Zc=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Xc(t,e),t.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},setHeightAndMinHeight:function(t){e.getGui().style.height=t,e.getGui().style.minHeight=t}};this.createManagedBean(new Qc).setComp(t,this.getGui(),this.getFocusableElement());var o=function(t){e.createManagedBean(t),e.appendChild(t)};o(new Wc("left")),o(new Wc(null)),o(new Wc("right"))},t.TEMPLATE='<div class="ag-header" role="presentation"/>',Jc([B],t.prototype,"postConstruct",null),t}(li),$c=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ep=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},tp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $c(t,e),t.prototype.addResizeBar=function(e){var t=this,o={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};this.dragService.addDragSource(o,!0);return function(){return t.dragService.removeDragSource(o)}},t.prototype.onDragStart=function(e,t){this.dragStartX=t.clientX,this.setResizeIcons();var o=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(o)},t.prototype.setResizeIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!0),e.disableUserSelect(!0)},t.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},t.prototype.resetIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!1),e.disableUserSelect(!1)},t.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},ep([U("dragService")],t.prototype,"dragService",void 0),ep([U("ctrlsService")],t.prototype,"ctrlsService",void 0),t=ep([W("horizontalResizeService")],t)}(Le),op=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),rp=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ip=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return op(t,e),t.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},t.prototype.showMenuAfterMouseEvent=function(e,t){var o=this;this.showPopup(e,(function(r){o.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:r})}),"columnMenu",t.target)},t.prototype.showMenuAfterButtonClick=function(e,t,o){var r=this;this.showPopup(e,(function(i){r.popupService.positionPopupByComponent({type:o,eventSource:t,ePopup:i,keepWithinBounds:!0,position:"under",column:e,shouldSetMaxHeight:!0})}),o,t)},t.prototype.showPopup=function(e,t,o,r){var i=this,n=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU");if(!n)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var s,a=document.createElement("div");Vt(a,"presentation"),a.classList.add("ag-menu"),this.tabListener=this.addManagedListener(a,"keydown",(function(e){return i.trapFocusWithin(e,a)})),n.guiPromise.then((function(e){return a.appendChild(e)}));var l=r||this.ctrlsService.getGridBodyCtrl().getGui(),u=this.localeService.getLocaleTextFunc(),c=this.popupService.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:function(t){e.setMenuVisible(!1,"contextMenu");var o,s=t instanceof KeyboardEvent;if(i.tabListener&&(i.tabListener=i.tabListener()),s&&r&&pr(r)){var a=i.focusService.findTabbableParent(r);a&&a.focus()}null===(o=n.filterPromise)||void 0===o||o.then((function(e){var t;return null===(t=null==e?void 0:e.afterGuiDetached)||void 0===t?void 0:t.call(e)}))},positionCallback:function(){return t(a)},anchorToElement:l,ariaLabel:u("ariaLabelColumnMenu","Column Menu")});c&&(this.hidePopup=s=c.hideFunc),n.filterPromise.then((function(e){t(a),e.afterGuiAttached&&e.afterGuiAttached({container:o,hidePopup:s})})),e.setMenuVisible(!0,"contextMenu")},t.prototype.trapFocusWithin=function(e,t){e.key!==xr.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(t,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(t,e.shiftKey))},t.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},rp([U("filterManager")],t.prototype,"filterManager",void 0),rp([U("popupService")],t.prototype,"popupService",void 0),rp([U("focusService")],t.prototype,"focusService",void 0),rp([U("ctrlsService")],t.prototype,"ctrlsService",void 0),t=rp([W("menuFactory")],t)}(Le),np=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),sp=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ap=function(e){function t(o){var r=e.call(this,t.getTemplate(o.cssClass))||this;return r.items=[],r.tabbedItemScrollMap=new Map,r.params=o,o.items&&o.items.forEach((function(e){return r.addItem(e)})),r}return np(t,e),t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new Si(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)})),this.addDestroyFunc((function(){var t,o,r;return null===(r=null===(o=null===(t=e.activeItem)||void 0===t?void 0:t.tabbedItem)||void 0===o?void 0:o.afterDetachedCallback)||void 0===r?void 0:r.call(o)}))},t.getTemplate=function(e){return'<div class="ag-tabs '+e+'">\n <div ref="eHeader" role="tablist" class="ag-tabs-header '+(e?e+"-header":"")+'"></div>\n <div ref="eBody" role="presentation" class="ag-tabs-body '+(e?e+"-body":"")+'"></div>\n </div>'},t.prototype.handleKeyDown=function(e){var t=this.gridOptionsService.getDocument();switch(e.key){case xr.RIGHT:case xr.LEFT:if(!this.eHeader.contains(t.activeElement))return;var o=e.key===xr.RIGHT,r=this.gridOptionsService.is("enableRtl"),i=this.items.indexOf(this.activeItem),n=o!==r?Math.min(i+1,this.items.length-1):Math.max(i-1,0);if(i===n)return;e.preventDefault();var s=this.items[n];this.showItemWrapper(s),s.eHeaderButton.focus();break;case xr.UP:case xr.DOWN:e.stopPropagation()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var t=this.focusService,o=this.eHeader,r=this.eBody,i=this.activeItem,n=this.gridOptionsService.getDocument().activeElement,s=e.target;if(e.preventDefault(),o.contains(n))t.focusInto(r,e.shiftKey);else{var a=null;t.isTargetUnderManagedComponent(r,s)&&(e.shiftKey&&(a=this.focusService.findFocusableElementBeforeTabGuard(r,s)),a||(a=i.eHeaderButton)),!a&&r.contains(n)&&((a=t.findNextFocusableElement(r,!1,e.shiftKey))||(a=i.eHeaderButton)),a&&a.focus()}}},t.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},t.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},t.prototype.addItem=function(e){var t=document.createElement("span");Vt(t,"tab"),t.setAttribute("tabIndex","-1"),t.appendChild(e.title),t.classList.add("ag-tab"),this.eHeader.appendChild(t),Wt(t,e.titleLabel);var o={tabbedItem:e,eHeaderButton:t};this.items.push(o),t.addEventListener("click",this.showItemWrapper.bind(this,o))},t.prototype.showItem=function(e){var t=this.items.find((function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},t.prototype.showItemWrapper=function(e){var t,o,r=this,i=e.tabbedItem,n=e.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:i}),this.activeItem!==e?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),ur(this.eBody),i.bodyPromise.then((function(e){r.eBody.appendChild(e);var t=!r.focusService.isKeyboardMode();if(r.focusService.focusInto(r.eBody,!1,t),i.afterAttachedCallback&&i.afterAttachedCallback(r.afterAttachedParams),r.params.keepScrollPosition){var o=i.getScrollableContainer&&i.getScrollableContainer()||e;r.lastScrollListener=r.addManagedListener(o,"scroll",(function(){r.tabbedItemScrollMap.set(i.name,o.scrollTop)}));var n=r.tabbedItemScrollMap.get(i.name);void 0!==n&&setTimeout((function(){o.scrollTop=n}),0)}})),this.activeItem&&(this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),null===(o=(t=this.activeItem.tabbedItem).afterDetachedCallback)||void 0===o||o.call(t)),n.classList.add("ag-tab-selected"),this.activeItem=e):x(this.params.onActiveItemClicked)},sp([U("focusService")],t.prototype,"focusService",void 0),sp([ui("eHeader")],t.prototype,"eHeader",void 0),sp([ui("eBody")],t.prototype,"eBody",void 0),sp([B],t.prototype,"postConstruct",null),t}(li);
|
293 |
|
294 |
|
295 |
|
296 |
|
297 |
|
298 |
|
299 |
|
300 |
|
301 |
|
302 |
|
303 |
|
304 |
|
305 | var lp,up=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),cp=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},pp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.polyfillFunctions=[],t}return up(t,e),t.prototype.observeResize=function(e,t){var o,r,i,n,s,a=this,l=this.gridOptionsService.getDocument().defaultView||window,u=M(t,50),c=this.gridOptionsService.is("suppressBrowserResizeObserver");return!!l.ResizeObserver&&!c?((o=new l.ResizeObserver(u)).observe(e),function(){return o.disconnect()}):(r=fr(e),i=hr(e),n=!0,(s=function(){if(n){var o=fr(e),l=hr(e);(o!==r||l!==i)&&(r=o,i=l,t()),a.doNextPolyfillTurn(s)}})(),function(){return n=!1})},t.prototype.doNextPolyfillTurn=function(e){this.polyfillFunctions.push(e),this.schedulePolyfill()},t.prototype.schedulePolyfill=function(){var e=this;if(!this.polyfillScheduled){this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout((function(){var t=e.polyfillFunctions;e.polyfillScheduled=!1,e.polyfillFunctions=[],t.forEach((function(e){return e()}))}),50)}},t=cp([W("resizeObserverService")],t)}(Le),dp=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),hp=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},fp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createTasksP1={list:[],sorted:!1},t.createTasksP2={list:[],sorted:!1},t.destroyTasks=[],t.ticking=!1,t.scrollGoingDown=!0,t.lastPage=0,t.lastScrollTop=0,t.taskCount=0,t.cancelledTasks=new Set,t}return dp(t,e),t.prototype.setScrollTop=function(e){var t=this.gridOptionsService.is("pagination");if(this.scrollGoingDown=e>=this.lastScrollTop,t&&0===e){var o=this.paginationProxy.getCurrentPage();o!==this.lastPage&&(this.lastPage=o,this.scrollGoingDown=!0)}this.lastScrollTop=e},t.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsService.is("suppressAnimationFrame")},t.prototype.isOn=function(){return this.useAnimationFrame},t.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+e+" called but animation frames are off")},t.prototype.createTask=function(e,t,o){this.verifyAnimationFrameOn(o);var r={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[o],r),this.schedule()},t.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},t.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},t.prototype.sortTaskList=function(e){if(!e.sorted){var t=this.scrollGoingDown?1:-1;e.list.sort((function(e,o){return e.index!==o.index?t*(o.index-e.index):o.createOrder-e.createOrder})),e.sorted=!0}},t.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},t.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var t=this.createTasksP1,o=t.list,r=this.createTasksP2,i=r.list,n=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,l=e<=0,u=this.ctrlsService.getGridBodyCtrl();l||a<e;){if(!u.getScrollFeature().scrollGridIfNeeded()){var c=void 0;if(o.length)this.sortTaskList(t),c=o.pop().task;else if(i.length)this.sortTaskList(r),c=i.pop().task;else{if(!n.length){this.cancelledTasks.clear();break}c=n.pop()}this.cancelledTasks.has(c)||c()}a=(new Date).getTime()-s}o.length||i.length||n.length?this.requestFrame():this.stopTicking()},t.prototype.stopTicking=function(){this.ticking=!1},t.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},t.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},t.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60),t=this.gridOptionsService.getDocument().defaultView||window;t.requestAnimationFrame?t.requestAnimationFrame(e):t.webkitRequestAnimationFrame?t.webkitRequestAnimationFrame(e):t.setTimeout(e,0)},t.prototype.isQueueEmpty=function(){return!this.ticking},t.prototype.debounce=function(e){var t=this,o=!1;return function(){t.isOn()?o||(o=!0,t.addDestroyTask((function(){o=!1,e()}))):t.getFrameworkOverrides().setTimeout(e,0)}},hp([U("ctrlsService")],t.prototype,"ctrlsService",void 0),hp([U("paginationProxy")],t.prototype,"paginationProxy",void 0),hp([B],t.prototype,"init",null),t=hp([W("animationFrameService")],t)}(Le),gp=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),vp=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},yp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gp(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl}))},t.prototype.getPreferredWidthForColumn=function(e,t){var o=this.getHeaderCellForColumn(e);if(!o)return-1;var r=this.rowRenderer.getAllCellsForColumn(e);return t||r.push(o),this.addElementsToContainerAndGetWidth(r)},t.prototype.getPreferredWidthForColumnGroup=function(e){var t=this.getHeaderCellForColumn(e);return t?this.addElementsToContainerAndGetWidth([t]):-1},t.prototype.addElementsToContainerAndGetWidth=function(e){var t=this,o=document.createElement("form");o.style.position="fixed";var r=this.centerRowContainerCtrl.getContainerElement();r.appendChild(o),e.forEach((function(e){return t.cloneItemIntoDummy(e,o)}));var i=o.offsetWidth;return r.removeChild(o),i+this.getAutoSizePadding()},t.prototype.getAutoSizePadding=function(){var e=this.gridOptionsService.getNum("autoSizePadding");return null!=e&&e>=0?e:20},t.prototype.getHeaderCellForColumn=function(e){var t=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(o){var r=o.getHtmlElementForColumnHeader(e);null!=r&&(t=r)})),t},t.prototype.cloneItemIntoDummy=function(e,t){var o=e.cloneNode(!0);o.style.width="",o.style.position="static",o.style.left="";var r=document.createElement("div"),i=r.classList;["ag-header-cell","ag-header-group-cell"].some((function(e){return o.classList.contains(e)}))?(i.add("ag-header","ag-header-row"),r.style.position="static"):i.add("ag-row");for(var n=e.parentElement;n;){if(["ag-header-row","ag-row"].some((function(e){return n.classList.contains(e)}))){for(var s=0;s<n.classList.length;s++){var a=n.classList[s];"ag-row-position-absolute"!=a&&i.add(a)}break}n=n.parentElement}r.appendChild(o),t.appendChild(r)},vp([U("rowRenderer")],t.prototype,"rowRenderer",void 0),vp([U("ctrlsService")],t.prototype,"ctrlsService",void 0),vp([U("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),vp([B],t.prototype,"postConstruct",null),t=vp([W("autoWidthCalculator")],t)}(Le),mp=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Cp=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},wp=function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Sp=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},Ep=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Sp(arguments[t]));return e},Rp=function(e){function t(t,o){var r=e.call(this)||this;return r.createRowCon=t,r.destroyRowCtrls=o,r.stickyRowCtrls=[],r.containerHeight=0,r}return mp(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCtrl=t.gridBodyCtrl}))},t.prototype.getStickyRowCtrls=function(){return this.stickyRowCtrls},t.prototype.checkStickyRows=function(){var e=0;if(this.gridOptionsService.is("groupRowsSticky")){for(var t=[],o=this.rowRenderer.getFirstVisibleVerticalPixel(),r=function(r){t.push(r);for(var i=r;i.expanded;)i=ue(i.childrenAfterSort);var n=i.rowTop+i.rowHeight,s=o+e+r.rowHeight;r.stickyRowTop=n<s?e+(n-s):e,e=0,t.forEach((function(t){var o=t.stickyRowTop+t.rowHeight;e<o&&(e=o)}))};;){var i=o+e,n=this.rowModel.getRowIndexAtPixel(i),s=this.rowModel.getRow(n);if(null==s)break;if(s.level<0)break;for(var a=[],l=s.parent;l.level>=0;)a.push(l),l=l.parent;var u=a.reverse().find((function(e){return t.indexOf(e)<0&&e.displayed}));if(u)r(u);else{if(!(s.group&&s.expanded&&!s.footer&&s.rowTop<i))break;r(s)}}this.refreshNodesAndContainerHeight(t,e)}else this.refreshNodesAndContainerHeight([],e)},t.prototype.refreshNodesAndContainerHeight=function(e,t){var o,r,i,n=this,s=this.stickyRowCtrls.filter((function(t){return-1===e.indexOf(t.getRowNode())})),a=e.filter((function(e){return-1===n.stickyRowCtrls.findIndex((function(t){return t.getRowNode()===e}))})),l={};s.forEach((function(e){l[e.getRowNode().id]=e,n.stickyRowCtrls=n.stickyRowCtrls.filter((function(t){return t!==e}))}));try{for(var u=wp(Object.values(l)),c=u.next();!c.done;c=u.next()){c.value.getRowNode().sticky=!1}}catch(e){o={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(o)throw o.error}}this.destroyRowCtrls(l,!1);var p=a.map((function(e){return e.sticky=!0,n.createRowCon(e,!1,!1)}));(i=this.stickyRowCtrls).push.apply(i,Ep(p)),this.stickyRowCtrls.forEach((function(e){return e.setRowTop(e.getRowNode().stickyRowTop)})),this.stickyRowCtrls.sort((function(e,t){return t.getRowNode().rowIndex-e.getRowNode().rowIndex})),this.containerHeight!==t&&(this.containerHeight=t,this.gridBodyCtrl.setStickyTopHeight(t))},Cp([U("rowModel")],t.prototype,"rowModel",void 0),Cp([U("rowRenderer")],t.prototype,"rowRenderer",void 0),Cp([U("ctrlsService")],t.prototype,"ctrlsService",void 0),Cp([B],t.prototype,"postConstruct",null),t}(Le),Op=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),bp=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Tp=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},Pp=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Tp(arguments[t]));return e},Dp=function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},_p=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.destroyFuncsForColumnListeners=[],t.rowCtrlsByRowIndex={},t.zombieRowCtrls={},t.allRowCtrls=[],t.topRowCtrls=[],t.bottomRowCtrls=[],t.refreshInProgress=!1,t.dataFirstRenderedFired=!1,t}return Op(r,e),r.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.initialise()}))},r.prototype.initialise=function(){this.addManagedListener(this.eventService,ke.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_BODY_SCROLL,this.onBodyScroll.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedPropertyListener("domLayout",this.onDomLayoutChanged.bind(this)),this.addManagedPropertyListener("rowClass",this.redrawRows.bind(this)),this.gridOptionsService.is("groupRowsSticky")&&("clientSide"!=this.rowModel.getType()?O((function(){return console.warn("AG Grid: The feature Sticky Row Groups only works with the Client Side Row Model")}),"rowRenderer.stickyWorksWithCsrmOnly"):this.gridOptionsService.isTreeData()?O((function(){return console.warn("AG Grid: The feature Sticky Row Groups does not work with Tree Data.")}),"rowRenderer.stickyDoesNotWorkWithTreeData"):this.stickyRowFeature=this.createManagedBean(new Rp(this.createRowCon.bind(this),this.destroyRowCtrls.bind(this)))),this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsService.isDomLayout("print"),this.embedFullWidthRows=this.printLayout||this.gridOptionsService.is("embedFullWidthRows"),this.redrawAfterModelUpdate()},r.prototype.initialiseCache=function(){if(this.gridOptionsService.is("keepDetailRows")){var e=this.getKeepDetailRowsCount(),t=null!=e?e:3;this.cachedRowCtrls=new Ap(t)}},r.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptionsService.getNum("keepDetailRowsCount");return t(e)&&e>0?e:10},r.prototype.getRowCtrls=function(){return this.allRowCtrls},r.prototype.getStickyTopRowCtrls=function(){return this.stickyRowFeature?this.stickyRowFeature.getStickyRowCtrls():[]},r.prototype.updateAllRowCtrls=function(){var e=y(this.rowCtrlsByRowIndex),t=this.gridOptionsService.is("ensureDomOrder"),o=this.gridOptionsService.isDomLayout("print");(t||o)&&e.sort((function(e,t){return e.getRowNode().rowIndex-t.getRowNode.rowIndex}));var r=y(this.zombieRowCtrls),i=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=Pp(e,r,i)},r.prototype.onCellFocusChanged=function(e){this.getAllCellCtrls().forEach((function(t){return t.onCellFocused(e)})),this.getFullWidthRowCtrls().forEach((function(t){return t.onFullWidthRowFocused(e)}))},r.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,ke.EVENT_CELL_FOCUSED,(function(t){e.onCellFocusChanged(t)})),this.addManagedListener(this.eventService,ke.EVENT_CELL_FOCUS_CLEARED,(function(){e.onCellFocusChanged()})),this.addManagedListener(this.eventService,ke.EVENT_FLASH_CELLS,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onFlashCells(t)}))})),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_HOVER_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onColumnHover()}))})),this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onDisplayedColumnsChanged()}))})),this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){e.printLayout&&e.getAllCellCtrls().forEach((function(e){return e.onLeftChanged()}))})),this.gridOptionsService.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,ke.EVENT_RANGE_SELECTION_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRangeSelectionChanged()}))})),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_MOVED,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_PINNED,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_VISIBLE,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,ke.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},r.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(e){return e()})),this.destroyFuncsForColumnListeners.length=0},r.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnModel.getAllGridColumns();t&&t.forEach((function(t){var o=function(o){e.getAllCellCtrls().forEach((function(e){e.getColumn()===t&&o(e)}))},r=function(){o((function(e){return e.onLeftChanged()}))},i=function(){o((function(e){return e.onWidthChanged()}))},n=function(){o((function(e){return e.onFirstRightPinnedChanged()}))},s=function(){o((function(e){return e.onLastLeftPinnedChanged()}))},a=function(){o((function(e){return e.onColDefChanged()}))};t.addEventListener("leftChanged",r),t.addEventListener("widthChanged",i),t.addEventListener("firstRightPinnedChanged",n),t.addEventListener("lastLeftPinnedChanged",s),t.addEventListener("colDefChanged",a),e.destroyFuncsForColumnListeners.push((function(){t.removeEventListener("leftChanged",r),t.removeEventListener("widthChanged",i),t.removeEventListener("firstRightPinnedChanged",n),t.removeEventListener("lastLeftPinnedChanged",s),t.removeEventListener("colDefChanged",a)}))}))},r.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsService.isDomLayout("print"),t=e||this.gridOptionsService.is("embedFullWidthRows"),o=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,o&&this.redrawAfterModelUpdate({domLayoutChanged:!0})},r.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},r.prototype.onPageLoaded=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},r.prototype.getAllCellsForColumn=function(e){var t=[];return this.getAllRowCtrls().forEach((function(o){var r=o.getCellElement(e);r&&t.push(r)})),t},r.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},r.prototype.getTopRowCtrls=function(){return this.topRowCtrls},r.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},r.prototype.refreshFloatingRows=function(e,t){var o=this;e.forEach((function(e){e.destroyFirstPass(),e.destroySecondPass()})),e.length=0,t&&t.forEach((function(t){var r=new Al(t,o.beans,!1,!1,o.printLayout);e.push(r)}))},r.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},r.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return o(e)||c(this.rowCtrlsByRowIndex,(function(o,r){var i=r.getRowNode();e.indexOf(i)>=0&&t.push(o)})),t},r.prototype.redrawRows=function(e){var t=null!=e&&e.length>0;if(t){var o=this.getRenderedIndexesForRowNodes(e);this.removeRowCtrls(o)}this.redrawAfterModelUpdate({recycleRows:t})},r.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=(null==e?void 0:e.suppressKeepFocus)?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==t)return null;var o=this.gridOptionsService.getDocument().activeElement,r=this.gridOptionsService.getDomData(o,El.DOM_DATA_KEY_CELL_CTRL),i=this.gridOptionsService.getDomData(o,Al.DOM_DATA_KEY_ROW_CTRL);return r||i?t:null},r.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var o=!e.domLayoutChanged&&!!e.recycleRows,r=e.animate&&this.gridOptionsService.isAnimateRows(),i=o?this.recycleRows():null;o||this.removeAllRowComps(),this.redraw(i,r),this.gridBodyCtrl.updateRowCount(),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),null!=t&&this.restoreFocusedCell(t),this.releaseLockOnRefresh()},r.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,o=this.gridOptionsService.is("suppressScrollOnNewData");t&&!o&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},r.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var e=this.paginationProxy.getCurrentPageHeight();0===e&&(e=1),this.rowContainerHeightService.setModelHeight(e)}},r.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},r.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},r.prototype.isRefreshInProgress=function(){return this.refreshInProgress},r.prototype.restoreFocusedCell=function(e){e&&this.onCellFocusChanged({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0,api:this.beans.gridApi,columnApi:this.beans.columnApi,context:this.beans.gridOptionsService.context,type:"mock"})},r.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.getAllRowCtrls().forEach((function(t){t.stopEditing(e)}))},r.prototype.getAllCellCtrls=function(){for(var e=[],t=this.getAllRowCtrls(),o=t.length,r=0;r<o;r++)for(var i=t[r].getAllCellCtrls(),n=i.length,s=0;s<n;s++)e.push(i[s]);return e},r.prototype.getAllRowCtrls=function(){var e,t,o=this.stickyRowFeature&&this.stickyRowFeature.getStickyRowCtrls()||[],r=Pp(this.topRowCtrls,this.bottomRowCtrls,o);try{for(var i=Dp(Object.keys(this.rowCtrlsByRowIndex)),n=i.next();!n.done;n=i.next()){var s=n.value;r.push(this.rowCtrlsByRowIndex[s])}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return r},r.prototype.addRenderedRowListener=function(e,t,o){var r=this.rowCtrlsByRowIndex[t];r&&r.addEventListener(e,o)},r.prototype.flashCells=function(e){void 0===e&&(e={});var t=e.flashDelay,o=e.fadeDelay;this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){return e.flashCell({flashDelay:t,fadeDelay:o})}))},r.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){if(e.refreshShouldDestroy()){var o=e.getRowCtrl();o&&o.refreshCell(e)}else e.refreshCell(t)})),this.getFullWidthRowCtrls(e.rowNodes).forEach((function(e){e.refreshFullWidth()}))},r.prototype.getCellRendererInstances=function(e){var t,o=this,r=this.getCellCtrls(e.rowNodes,e.columns).map((function(e){return e.getCellRenderer()})).filter((function(e){return null!=e}));if(null===(t=e.columns)||void 0===t?void 0:t.length)return r;var i=[],n=this.mapRowNodes(e.rowNodes);return this.getAllRowCtrls().forEach((function(e){if((!n||o.isRowInMap(e.getRowNode(),n))&&e.isFullWidth()){var t=e.getFullWidthCellRenderer();t&&i.push(t)}})),Pp(i,r)},r.prototype.getCellEditorInstances=function(e){var t=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){var o=e.getCellEditor();o&&t.push(o)})),t},r.prototype.getEditingCells=function(){var e=[];return this.getAllCellCtrls().forEach((function(t){if(t.isEditing()){var o=t.getCellPosition();e.push(o)}})),e},r.prototype.mapRowNodes=function(e){if(e){var t={top:{},bottom:{},normal:{}};return e.forEach((function(e){var o=e.id;"top"===e.rowPinned?t.top[o]=e:"bottom"===e.rowPinned?t.bottom[o]=e:t.normal[o]=e})),t}},r.prototype.isRowInMap=function(e,t){var o=e.id,r=e.rowPinned;return"bottom"===r?null!=t.bottom[o]:"top"===r?null!=t.top[o]:null!=t.normal[o]},r.prototype.getCellCtrls=function(e,o){var r,i=this,n=this.mapRowNodes(e),s=[];t(o)&&(r={},o.forEach((function(e){var o=i.columnModel.getGridColumn(e);t(o)&&(r[o.getId()]=!0)})));return this.getAllRowCtrls().forEach((function(e){return o=(t=e).getRowNode(),void((null==n||i.isRowInMap(o,n))&&t.getAllCellCtrls().forEach((function(e){var t=e.getColumn().getId();r&&!r[t]||s.push(e)})));var t,o})),s},r.prototype.destroy=function(){this.removeAllRowComps(),e.prototype.destroy.call(this)},r.prototype.removeAllRowComps=function(){var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},r.prototype.recycleRows=function(){var e=[];c(this.rowCtrlsByRowIndex,(function(t,o){null==o.getRowNode().id&&e.push(t)})),this.removeRowCtrls(e);var t={};return c(this.rowCtrlsByRowIndex,(function(e,o){var r=o.getRowNode();t[r.id]=o})),this.rowCtrlsByRowIndex={},t},r.prototype.removeRowCtrls=function(e){var t=this;e.forEach((function(e){var o=t.rowCtrlsByRowIndex[e];o&&(o.destroyFirstPass(),o.destroySecondPass()),delete t.rowCtrlsByRowIndex[e]}))},r.prototype.onBodyScroll=function(e){"vertical"===e.direction&&this.redrawAfterScroll()},r.prototype.redrawAfterScroll=function(){var e;if(this.stickyRowFeature&&Po()&&(e=this.getCellToRestoreFocusToAfterRefresh()||void 0),this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged(),null!=e){var t=this.getCellToRestoreFocusToAfterRefresh();null!=e&&null==t&&(this.animationFrameService.flushAllFrames(),this.restoreFocusedCell(e))}},r.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var o=Object.keys(this.rowCtrlsByRowIndex).filter((function(e){return!t[e]}));this.removeRowCtrls(o)},r.prototype.calculateIndexesToDraw=function(e){var t=this,o=Go(this.firstRenderedRow,this.lastRenderedRow),r=function(e,r){var i=r.getRowNode().rowIndex;null!=i&&(i<t.firstRenderedRow||i>t.lastRenderedRow)&&t.doNotUnVirtualiseRow(r)&&o.push(i)};return c(this.rowCtrlsByRowIndex,r),c(e,r),o.sort((function(e,t){return e-t})),o=o.filter((function(e){var o=t.paginationProxy.getRow(e);return o&&!o.sticky}))},r.prototype.redraw=function(e,o,r){var i=this;void 0===o&&(o=!1),void 0===r&&(r=!1),this.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender(),this.stickyRowFeature&&this.stickyRowFeature.checkStickyRows();var n=this.calculateIndexesToDraw(e);(this.removeRowCompsNotToDraw(n),this.printLayout&&(o=!1),n.forEach((function(n){t(i.createOrUpdateRowCtrl(n,e,o,r))})),e)&&(r&&!this.gridOptionsService.is("suppressAnimationFrame")&&!this.printLayout?this.beans.animationFrameService.addDestroyTask((function(){i.destroyRowCtrls(e,o),i.updateAllRowCtrls(),i.dispatchDisplayedRowsChanged()})):this.destroyRowCtrls(e,o));this.updateAllRowCtrls()},r.prototype.dispatchDisplayedRowsChanged=function(){var e={type:ke.EVENT_DISPLAYED_ROWS_CHANGED};this.eventService.dispatchEvent(e)},r.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.isPinningLeft(),t=this.columnModel.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},r.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];this.getFullWidthRowCtrls().forEach((function(t){var o=t.getRowNode().rowIndex;e.push(o.toString())})),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redrawAfterScroll()},r.prototype.getFullWidthRowCtrls=function(e){var t=this,o=this.mapRowNodes(e);return y(this.rowCtrlsByRowIndex).filter((function(e){if(!e.isFullWidth())return!1;var r=e.getRowNode();return!(null!=o&&!t.isRowInMap(r,o))}))},r.prototype.refreshFullWidthRows=function(e){var t=[],o=!!e,r=o?{}:void 0;o&&r&&e.forEach((function(e){return r[e.id]=!0})),this.getFullWidthRowCtrls().forEach((function(e){var i=e.getRowNode();if(o&&r){var n=i.level>0&&i.parent?i.parent.id:void 0;if(!r[i.id]&&!r[n])return}if(!e.refreshFullWidth()){var s=e.getRowNode().rowIndex;t.push(s.toString())}})),this.removeRowCtrls(t),this.redrawAfterScroll()},r.prototype.createOrUpdateRowCtrl=function(e,o,r,i){var n,s=this.rowCtrlsByRowIndex[e];if(s||t(n=this.paginationProxy.getRow(e))&&t(o)&&o[n.id]&&n.alreadyRendered&&(s=o[n.id],o[n.id]=null),!s){if(n||(n=this.paginationProxy.getRow(e)),!t(n))return;s=this.createRowCon(n,r,i)}return n&&(n.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=s,s},r.prototype.destroyRowCtrls=function(e,t){var o=this,r=[];c(e,(function(e,i){i&&(o.cachedRowCtrls&&i.isCacheable()?o.cachedRowCtrls.addRow(i):(i.destroyFirstPass(),t?(o.zombieRowCtrls[i.getInstanceId()]=i,r.push((function(){i.destroySecondPass(),delete o.zombieRowCtrls[i.getInstanceId()]}))):i.destroySecondPass()))})),t&&(r.push((function(){o.updateAllRowCtrls(),o.dispatchDisplayedRowsChanged()})),P(r))},r.prototype.getRowBuffer=function(){var e=this.gridOptionsService.getNum("rowBuffer");return"number"==typeof e?e<0&&(O((function(){return console.warn("AG Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),e=0,this.gridOptionsService.set("rowBuffer",0)):e=10,e},r.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.gridOptionsService.getRowHeightAsNumber()},r.prototype.workOutFirstAndLastRowsToRender=function(){var e,t;if(this.paginationProxy.isRowsToRender())if(this.printLayout)e=this.paginationProxy.getPageFirstRow(),t=this.paginationProxy.getPageLastRow();else{var o=this.getRowBufferInPixels(),r=this.ctrlsService.getGridBodyCtrl(),i=this.gridOptionsService.is("suppressRowVirtualisation"),n=!1,s=void 0,a=void 0;do{var l=this.paginationProxy.getPixelOffset(),u=this.paginationProxy.getCurrentPagePixelRange(),c=u.pageFirstPixel,p=u.pageLastPixel,d=this.rowContainerHeightService.getDivStretchOffset(),h=r.getScrollFeature().getVScrollPosition(),f=h.top,g=h.bottom;i?(s=c+d,a=p+d):(s=Math.max(f+l-o,c)+d,a=Math.min(g+l+o,p)+d),this.firstVisibleVPixel=Math.max(f+l,c)+d,n=this.ensureAllRowsInRangeHaveHeightsCalculated(s,a)}while(n);var v=this.paginationProxy.getRowIndexAtPixel(s),y=this.paginationProxy.getRowIndexAtPixel(a),m=this.paginationProxy.getPageFirstRow(),C=this.paginationProxy.getPageLastRow();v<m&&(v=m),y>C&&(y=C),e=v,t=y}else e=0,t=-1;var w=this.gridOptionsService.isDomLayout("normal"),S=this.gridOptionsService.is("suppressMaxRenderedRowRestriction"),E=Math.max(this.getRowBuffer(),500);w&&!S&&t-e>E&&(t=e+E);var R=e!==this.firstRenderedRow,O=t!==this.lastRenderedRow;if(R||O){this.firstRenderedRow=e,this.lastRenderedRow=t;var b={type:ke.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t};this.eventService.dispatchEvent(b)}},r.prototype.dispatchFirstDataRenderedEvent=function(){var e=this;if(!this.dataFirstRenderedFired){this.dataFirstRenderedFired=!0;var t={type:ke.EVENT_FIRST_DATA_RENDERED,firstRow:this.firstRenderedRow,lastRow:this.lastRenderedRow};window.requestAnimationFrame((function(){e.beans.eventService.dispatchEvent(t)}))}},r.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){var o=this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1);return o&&this.updateContainerHeights(),o},r.prototype.getFirstVisibleVerticalPixel=function(){return this.firstVisibleVPixel},r.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},r.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},r.prototype.doNotUnVirtualiseRow=function(e){var t=e.getRowNode(),o=this.focusService.isRowNodeFocused(t),r=e.isEditing(),i=t.detail;return!!(o||r||i)&&!!this.paginationProxy.isRowPresent(t)},r.prototype.createRowCon=function(e,t,o){var r=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(r)return r;var i=this.gridOptionsService.is("suppressAnimationFrame"),n=o&&!i&&!this.printLayout;return new Al(e,this.beans,t,n,this.printLayout)},r.prototype.getRenderedNodes=function(){var e=this.rowCtrlsByRowIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},r.prototype.getRowByPosition=function(e){var t,o=e.rowIndex;switch(e.rowPinned){case"top":t=this.topRowCtrls[o];break;case"bottom":t=this.bottomRowCtrls[o];break;default:(t=this.rowCtrlsByRowIndex[o])||(t=this.getStickyTopRowCtrls().find((function(e){return e.getRowNode().rowIndex===o}))||null)}return t},r.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},r.prototype.isRangeInRenderedViewport=function(e,t){if(null==e||null==t)return!1;var o=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!o},bp([U("animationFrameService")],r.prototype,"animationFrameService",void 0),bp([U("paginationProxy")],r.prototype,"paginationProxy",void 0),bp([U("columnModel")],r.prototype,"columnModel",void 0),bp([U("pinnedRowModel")],r.prototype,"pinnedRowModel",void 0),bp([U("rowModel")],r.prototype,"rowModel",void 0),bp([U("focusService")],r.prototype,"focusService",void 0),bp([U("beans")],r.prototype,"beans",void 0),bp([U("rowContainerHeightService")],r.prototype,"rowContainerHeightService",void 0),bp([U("ctrlsService")],r.prototype,"ctrlsService",void 0),bp([B],r.prototype,"postConstruct",null),r=bp([W("rowRenderer")],r)}(Le),Ap=function(){function e(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}return e.prototype.addRow=function(e){if(this.entriesMap[e.getRowNode().id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){var t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}},e.prototype.getRow=function(e){if(null==e||null==e.id)return null;var t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.getRowNode()!=e?null:t):null},e.prototype.removeFromCache=function(e){var t=e.getRowNode().id;delete this.entriesMap[t],de(this.entriesList,e)},e.prototype.getEntries=function(){return this.entriesList},e}(),Np=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Mp=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Fp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Np(t,e),t.prototype.formatValue=function(e,t,o,r,i){void 0===i&&(i=!0);var n,s=null,a=e.getColDef();if(r?n=r:i&&(n=a.valueFormatter),n){var l={value:o,node:t,data:t?t.data:null,colDef:a,column:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};s="function"==typeof n?n(l):this.expressionService.evaluate(n,l)}else if(a.refData)return a.refData[o]||"";return null==s&&Array.isArray(o)&&(s=o.join(", ")),s},Mp([U("expressionService")],t.prototype,"expressionService",void 0),t=Mp([W("valueFormatterService")],t)}(Le),Lp=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),xp=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ip=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lp(t,e),t.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsService.get("pinnedTopRowData")),this.setPinnedBottomRowData(this.gridOptionsService.get("pinnedBottomRowData"))},t.prototype.isEmpty=function(e){return r("top"===e?this.pinnedTopRows:this.pinnedBottomRows)},t.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},t.prototype.getRowAtPixel=function(e,t){var o="top"===t?this.pinnedTopRows:this.pinnedBottomRows;if(r(o))return 0;for(var i=0;i<o.length;i++){var n=o[i];if(n.rowTop+n.rowHeight-1>=e)return i}return o.length-1},t.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:ke.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(t)},t.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:ke.EVENT_PINNED_ROW_DATA_CHANGED};this.eventService.dispatchEvent(t)},t.prototype.createNodesFromData=function(e,t){var o=this,r=[];if(e){var i=0;e.forEach((function(e,n){var s=new fs(o.beans);s.data=e;var a=t?fs.ID_PREFIX_TOP_PINNED:fs.ID_PREFIX_BOTTOM_PINNED;s.id=a+n,s.rowPinned=t?"top":"bottom",s.setRowTop(i),s.setRowHeight(o.gridOptionsService.getRowHeightForNode(s).height),s.setRowIndex(n),i+=s.rowHeight,r.push(s)}))}return r},t.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},t.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},t.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},t.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},t.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},t.prototype.forEachPinnedTopRow=function(e){r(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},t.prototype.forEachPinnedBottomRow=function(e){r(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},t.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},t.prototype.getTotalHeight=function(e){if(!e||0===e.length)return 0;var t=ue(e);return t.rowTop+t.rowHeight},xp([U("beans")],t.prototype,"beans",void 0),xp([B],t.prototype,"init",null),t=xp([W("pinnedRowModel")],t)}(Le);(
|
306 |
|
307 |
|
308 |
|
309 |
|
310 |
|
311 |
|
312 | lp=exports.ServerSideTransactionResultStatus||(exports.ServerSideTransactionResultStatus={})).Applied="Applied",lp.StoreNotFound="StoreNotFound",lp.StoreLoading="StoreLoading",lp.StoreWaitingToLoad="StoreWaitingToLoad",lp.StoreLoadingFailed="StoreLoadingFailed",lp.StoreWrongType="StoreWrongType",lp.Cancelled="Cancelled";
|
313 |
|
314 |
|
315 |
|
316 |
|
317 |
|
318 |
|
319 | var Gp,Hp=function(){function e(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}return e.prototype.setInactive=function(){this.active=!1},e.prototype.isActive=function(){return this.active},e.prototype.depthFirstSearchChangedPath=function(e,t){if(e.children)for(var o=0;o<e.children.length;o++)this.depthFirstSearchChangedPath(e.children[o],t);t(e.rowNode)},e.prototype.depthFirstSearchEverything=function(e,t,o){if(e.childrenAfterGroup)for(var r=0;r<e.childrenAfterGroup.length;r++){var i=e.childrenAfterGroup[r];i.childrenAfterGroup?this.depthFirstSearchEverything(e.childrenAfterGroup[r],t,o):o&&t(i)}t(e)},e.prototype.forEachChangedNodeDepthFirst=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1),this.active&&!o?this.depthFirstSearchChangedPath(this.pathRoot,e):this.depthFirstSearchEverything(this.pathRoot.rowNode,e,t)},e.prototype.executeFromRootNode=function(e){e(this.pathRoot.rowNode)},e.prototype.createPathItems=function(e){for(var t=e,o=0;!this.mapToItems[t.id];){var r={rowNode:t,children:null};this.mapToItems[t.id]=r,o++,t=t.parent}return o},e.prototype.populateColumnsMap=function(e,t){var o=this;if(this.keepingColumns&&t)for(var r=e;r;)this.nodeIdsToColumns[r.id]||(this.nodeIdsToColumns[r.id]={}),t.forEach((function(e){return o.nodeIdsToColumns[r.id][e.getId()]=!0})),r=r.parent},e.prototype.linkPathItems=function(e,t){for(var o=e,r=0;r<t;r++){var i=this.mapToItems[o.id],n=this.mapToItems[o.parent.id];n.children||(n.children=[]),n.children.push(i),o=o.parent}},e.prototype.addParentNode=function(e,t){if(e&&!e.isRowPinned()){var o=this.createPathItems(e);this.linkPathItems(e,o),this.populateColumnsMap(e,t)}},e.prototype.canSkip=function(e){return this.active&&!this.mapToItems[e.id]},e.prototype.getValueColumnsForNode=function(e,t){if(!this.keepingColumns)return t;var o=this.nodeIdsToColumns[e.id];return t.filter((function(e){return o[e.getId()]}))},e.prototype.getNotValueColumnsForNode=function(e,t){if(!this.keepingColumns)return null;var o=this.nodeIdsToColumns[e.id];return t.filter((function(e){return!o[e.getId()]}))},e}(),Vp=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),kp=function(e){function t(o){var r=e.call(this)||this;return r.state=t.STATE_WAITING_TO_LOAD,r.version=0,r.id=o,r}return Vp(t,e),t.prototype.getId=function(){return this.id},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.getVersion=function(){return this.version},t.prototype.setStateWaitingToLoad=function(){this.version++,this.state=t.STATE_WAITING_TO_LOAD},t.prototype.getState=function(){return this.state},t.prototype.pageLoadFailed=function(e){this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},t.prototype.success=function(e,t){this.successCommon(e,t)},t.prototype.pageLoaded=function(e,t,o){this.successCommon(e,{rowData:t,rowCount:o})},t.prototype.isRequestMostRecentAndLive=function(e){var t=e===this.version,o=this.isAlive();return t&&o},t.prototype.successCommon=function(e,o){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_LOADED,this.processServerResult(o))},t.prototype.dispatchLoadCompleted=function(e){void 0===e&&(e=!0);var o={type:t.EVENT_LOAD_COMPLETE,success:e,block:this};this.dispatchEvent(o)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_WAITING_TO_LOAD="needsLoading",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(Le),Bp=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),jp=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Wp=function(e,t){return function(o,r){t(o,r,e)}},Up=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeBlockLoadsCount=0,t.blocks=[],t.active=!0,t}var o;return Bp(t,e),o=t,t.prototype.postConstruct=function(){this.maxConcurrentRequests=this.getMaxConcurrentDatasourceRequests();var e=this.gridOptionsService.getNum("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=Qr.debounce(this.performCheckBlocksToLoad.bind(this),e))},t.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},t.prototype.getMaxConcurrentDatasourceRequests=function(){var e=this.gridOptionsService.getNum("maxConcurrentDatasourceRequests");return null==e?2:e<=0?void 0:e},t.prototype.addBlock=function(e){this.blocks.push(e),e.addEventListener(kp.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},t.prototype.removeBlock=function(e){Qr.removeFromArray(this.blocks,e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.active=!1},t.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),this.dispatchEvent({type:o.BLOCK_LOADED_EVENT}),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:o.BLOCK_LOADER_FINISHED_EVENT})},t.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},t.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=this.getAvailableLoadingCount(),t=this.blocks.filter((function(e){return e.getState()===kp.STATE_WAITING_TO_LOAD})).slice(0,e);this.registerLoads(t.length),t.forEach((function(e){return e.load()})),this.printCacheStatus()}},t.prototype.getBlockState=function(){if(this.gridOptionsService.isRowModelType("serverSide"))return this.rowModel.getBlockStates();var e={};return this.blocks.forEach((function(t){var o=t.getBlockStateJson(),r=o.id,i=o.state;e[r]=i})),e},t.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},t.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},t.prototype.registerLoads=function(e){this.activeBlockLoadsCount+=e},t.prototype.getAvailableLoadingCount=function(){return void 0!==this.maxConcurrentRequests?this.maxConcurrentRequests-this.activeBlockLoadsCount:void 0},t.BLOCK_LOADED_EVENT="blockLoaded",t.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",jp([U("rowModel")],t.prototype,"rowModel",void 0),jp([B],t.prototype,"postConstruct",null),jp([Wp(0,Y("loggerFactory"))],t.prototype,"setBeans",null),t=o=jp([W("rowNodeBlockLoader")],t)}(Le),zp=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Kp=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Yp=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.currentPage=0,t.topDisplayedRowIndex=0,t.bottomDisplayedRowIndex=0,t.pixelOffset=0,t.masterRowCount=0,t}return zp(r,e),r.prototype.postConstruct=function(){this.active=this.gridOptionsService.is("pagination"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedListener(this.eventService,ke.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedPropertyListener("pagination",this.onPaginationPageSizeChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},r.prototype.ensureRowHeightsValid=function(e,t,o,r){var i=this.rowModel.ensureRowHeightsValid(e,t,this.getPageFirstRow(),this.getPageLastRow());return i&&this.calculatePages(),i},r.prototype.isPaginateChildRows=function(){return!(!this.gridOptionsService.is("groupRemoveSingleChildren")&&!this.gridOptionsService.is("groupRemoveLowestSingleChildren"))||this.gridOptionsService.is("paginateChildRows")},r.prototype.onModelUpdated=function(e){this.calculatePages();var t={type:ke.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows};this.eventService.dispatchEvent(t)},r.prototype.onPaginationPageSizeChanged=function(){this.active=this.gridOptionsService.is("pagination"),this.calculatePages();var e={type:ke.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0};this.eventService.dispatchEvent(e)},r.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e&&"number"==typeof this.currentPage){this.currentPage=e;var t={type:ke.EVENT_MODEL_UPDATED,animate:!1,keepRenderedRows:!1,newData:!1,newPage:!0};this.onModelUpdated(t)}},r.prototype.getPixelOffset=function(){return this.pixelOffset},r.prototype.getRow=function(e){return this.rowModel.getRow(e)},r.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},r.prototype.getRowIndexAtPixel=function(e){return this.rowModel.getRowIndexAtPixel(e)},r.prototype.getCurrentPageHeight=function(){return o(this.topRowBounds)||o(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},r.prototype.getCurrentPagePixelRange=function(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}},r.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&(e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex)},r.prototype.isEmpty=function(){return this.rowModel.isEmpty()},r.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},r.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},r.prototype.forEachNodeOnPage=function(e){for(var t=this.getPageFirstRow(),o=this.getPageLastRow(),r=t;r<=o;r++){var i=this.getRow(r);i&&e(i)}},r.prototype.getType=function(){return this.rowModel.getType()},r.prototype.getRowBounds=function(e){var t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t},r.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},r.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},r.prototype.getRowCount=function(){return this.rowModel.getRowCount()},r.prototype.getPageForIndex=function(e){return Math.floor(e/this.pageSize)},r.prototype.goToPageWithIndex=function(e){if(this.active){var t=this.getPageForIndex(e);this.goToPage(t)}},r.prototype.isRowInPage=function(e){return!this.active||this.getPageForIndex(e.rowIndex)===this.currentPage},r.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},r.prototype.getCurrentPage=function(){return this.currentPage},r.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},r.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},r.prototype.goToFirstPage=function(){this.goToPage(0)},r.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)},r.prototype.getPageSize=function(){return this.pageSize},r.prototype.getTotalPages=function(){return this.totalPages},r.prototype.setPageSize=function(){this.pageSize=this.gridOptionsService.getNum("paginationPageSize"),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},r.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(t(this.topRowBounds)?this.topRowBounds.rowTop:0)},r.prototype.setPixelOffset=function(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:ke.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},r.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},r.prototype.adjustCurrentPageIfInvalid=function(){this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!isFinite(this.currentPage)||isNaN(this.currentPage)||this.currentPage<0)&&(this.currentPage=0)},r.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid();var t=this.pageSize*this.currentPage,o=this.pageSize*(this.currentPage+1)-1;if(o>e&&(o=e),this.topDisplayedRowIndex=this.rowModel.getTopLevelRowDisplayedIndex(t),o===e)this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1;else{var r=this.rowModel.getTopLevelRowDisplayedIndex(o+1);this.bottomDisplayedRowIndex=r-1}}},r.prototype.getMasterRowCount=function(){return this.masterRowCount},r.prototype.calculatePagesAllRows=function(){if(this.masterRowCount=this.rowModel.getRowCount(),0!==this.masterRowCount){var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=this.pageSize*this.currentPage,this.bottomDisplayedRowIndex=this.pageSize*(this.currentPage+1)-1,this.bottomDisplayedRowIndex>e&&(this.bottomDisplayedRowIndex=e)}else this.setZeroRows()},r.prototype.calculatedPagesNotActive=function(){this.pageSize=this.rowModel.getRowCount(),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.rowModel.getRowCount()-1},Kp([U("rowModel")],r.prototype,"rowModel",void 0),Kp([B],r.prototype,"postConstruct",null),r=Kp([W("paginationProxy")],r)}(Le),qp=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Qp=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Xp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qp(t,e),t.prototype.processAllCellClasses=function(e,t,o,r){this.processClassRules(e.cellClassRules,t,o,r),this.processStaticCellClasses(e,t,o)},t.prototype.processClassRules=function(e,t,o,r){if(null!=e){for(var i=Object.keys(e),n={},s={},a=function(o){var r,a=i[o],u=e[a];"string"==typeof u?r=l.expressionService.evaluate(u,t):"function"==typeof u&&(r=u(t)),a.split(" ").forEach((function(e){null!=e&&""!=e.trim()&&(r?n[e]=!0:s[e]=!0)}))},l=this,u=0;u<i.length;u++)a(u);r&&Object.keys(s).forEach(r),Object.keys(n).forEach(o)}},t.prototype.getStaticCellClasses=function(e,t){var o,r=e.cellClass;if(!r)return[];"function"==typeof r?o=r(t):o=r;return"string"==typeof o&&(o=[o]),o||[]},t.prototype.processStaticCellClasses=function(e,t,o){this.getStaticCellClasses(e,t).forEach((function(e){o(e)}))},Qp([U("expressionService")],t.prototype,"expressionService",void 0),t=Qp([W("stylingService")],t)}(Le),Jp=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Zp=function(e){function t(t){return e.call(this,t,"ag-toggle-button")||this}return Jp(t,e),t.prototype.setValue=function(t,o){return e.prototype.setValue.call(this,t,o),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},t}(Ki),$p=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ed=function(e){function t(t){return e.call(this,t,"ag-text-area",null,"textarea")||this}return $p(t,e),t.prototype.setValue=function(t,o){var r=e.prototype.setValue.call(this,t,o);return this.eInput.value=t,r},t.prototype.setCols=function(e){return this.eInput.cols=e,this},t.prototype.setRows=function(e){return this.eInput.rows=e,this},t}(Ui),td=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),od=function(e){function t(t){return e.call(this,t,"ag-range-field","range")||this}return td(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this);var t=this.config,o=t.min,r=t.max,i=t.step;null!=o&&this.setMinValue(o),null!=r&&this.setMaxValue(r),this.setStep(i||1)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",(function(t){var o=t.target.value;e.setValue(o)}))},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},t.prototype.setStep=function(e){return this.eInput.setAttribute("step",e.toString()),this},t.prototype.setValue=function(t,o){null!=this.min&&(t=Math.max(parseFloat(t),this.min).toString()),null!=this.max&&(t=Math.min(parseFloat(t),this.max).toString());var r=e.prototype.setValue.call(this,t,o);return this.eInput.value=t,r},t}(Ui),rd=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),id=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},nd=function(e){function t(o){var r=e.call(this,o,t.TEMPLATE)||this;return r.labelAlignment="top",r}return rd(t,e),t.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},t.prototype.onValueChange=function(e){var t=this,o=Mi.EVENT_CHANGED;return this.addManagedListener(this.eText,o,(function(){var o=parseFloat(t.eText.getValue());t.eSlider.setValue(o.toString(),!0),e(o||0)})),this.addManagedListener(this.eSlider,o,(function(){var o=t.eSlider.getValue();t.eText.setValue(o,!0),e(parseFloat(o))})),this},t.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},t.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},t.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},t.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},t.prototype.getValue=function(){return this.eText.getValue()},t.prototype.setValue=function(e){return this.getValue()===e||(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:Mi.EVENT_CHANGED})),this},t.prototype.setStep=function(e){return this.eSlider.setStep(e),this.eText.setStep(e),this},t.TEMPLATE='<div class="ag-slider">\n <label ref="eLabel"></label>\n <div class="ag-wrapper ag-slider-wrapper">\n <ag-input-range ref="eSlider"></ag-input-range>\n <ag-input-number-field ref="eText"></ag-input-number-field>\n </div>\n </div>',id([ui("eLabel")],t.prototype,"eLabel",void 0),id([ui("eSlider")],t.prototype,"eSlider",void 0),id([ui("eText")],t.prototype,"eText",void 0),id([B],t.prototype,"init",null),t}(Ai),sd=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ad=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ld=function(e){function t(o){void 0===o&&(o={});var r=e.call(this,t.getTemplate(o))||this;r.suppressEnabledCheckbox=!0,r.suppressOpenCloseIcons=!1;var i=o.title,n=o.enabled,s=o.items,a=o.suppressEnabledCheckbox,l=o.suppressOpenCloseIcons;return r.title=i,r.cssIdentifier=o.cssIdentifier||"default",r.enabled=null==n||n,r.items=s||[],r.alignItems=o.alignItems||"center",null!=a&&(r.suppressEnabledCheckbox=a),null!=l&&(r.suppressOpenCloseIcons=l),r}return sd(t,e),t.getTemplate=function(e){var t=e.cssIdentifier||"default";return'<div class="ag-group ag-'+t+'-group" role="presentation">\n <div class="ag-group-title-bar ag-'+t+'-group-title-bar ag-unselectable" ref="eTitleBar" role="button">\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>\n <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>\n <span ref="eTitle" class="ag-group-title ag-'+t+'-group-title"></span>\n </div>\n <div ref="eToolbar" class="ag-group-toolbar ag-'+t+'-group-toolbar">\n <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n </div>\n <div ref="eContainer" class="ag-group-container ag-group-container-'+(e.direction||"vertical")+" ag-"+t+'-group-container"></div>\n </div>'},t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var t=this.localeService.getLocaleTextFunc();this.cbGroupEnabled.setLabel(t("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(Mr("columnSelectClosed",this.gridOptionsService,null)),this.eGroupOpenedIcon.appendChild(Mr("columnSelectOpen",this.gridOptionsService,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return e.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(t){switch(t.key){case xr.ENTER:case xr.SPACE:t.preventDefault(),e.toggleGroupExpand();break;case xr.RIGHT:case xr.LEFT:t.preventDefault(),e.toggleGroupExpand(t.key===xr.RIGHT)}}))},t.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||Jt(this.eTitleBar,this.expanded)},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;Jo(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),Jo(this.eGroupOpenedIcon,e&&this.expanded),Jo(this.eGroupClosedIcon,e&&!this.expanded)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){this.alignItems!==e&&this.removeCssClass("ag-group-item-alignment-"+this.alignItems),this.alignItems=e;var t="ag-group-item-alignment-"+this.alignItems;return this.addCssClass(t),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),Jo(this.eContainer,!0),this):(e=null!=e?e:!this.expanded,this.expanded===e||(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),Jo(this.eContainer,e),this.dispatchEvent({type:this.expanded?t.EVENT_EXPANDED:t.EVENT_COLLAPSED})),this)},t.prototype.addItems=function(e){var t=this;e.forEach((function(e){return t.addItem(e)}))},t.prototype.addItem=function(e){var t=this.eContainer,o=e instanceof li?e.getGui():e;o.classList.add("ag-group-item","ag-"+this.cssIdentifier+"-group-item"),t.appendChild(o),this.items.push(o)},t.prototype.hideItem=function(e,t){Jo(this.items[t],!e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){this.eTitleBar.classList.add(e)},t.prototype.setEnabled=function(e,t){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),t||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var t=this;return this.cbGroupEnabled.onValueChange((function(o){t.setEnabled(o,!0),e(o)})),this},t.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},t.prototype.refreshDisabledStyles=function(){this.addOrRemoveCssClass("ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(this.eTitleBar.classList.add("ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(this.eTitleBar.classList.remove("ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),this.eContainer.classList.toggle("ag-disabled-group-container",!this.enabled)},t.EVENT_EXPANDED="expanded",t.EVENT_COLLAPSED="collapsed",ad([ui("eTitleBar")],t.prototype,"eTitleBar",void 0),ad([ui("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),ad([ui("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),ad([ui("eToolbar")],t.prototype,"eToolbar",void 0),ad([ui("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),ad([ui("eTitle")],t.prototype,"eTitle",void 0),ad([ui("eContainer")],t.prototype,"eContainer",void 0),ad([B],t.prototype,"postConstruct",null),t}(li),ud=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),cd=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};
|
320 |
|
321 |
|
322 |
|
323 |
|
324 |
|
325 | (Gp=exports.TabGuardClassNames||(exports.TabGuardClassNames={})).TAB_GUARD="ag-tab-guard",Gp.TAB_GUARD_TOP="ag-tab-guard-top",Gp.TAB_GUARD_BOTTOM="ag-tab-guard-bottom";var pd,dd=function(e){function t(t){var o=e.call(this)||this;o.skipTabGuardFocus=!1;var r=t.comp,i=t.eTopGuard,n=t.eBottomGuard,s=t.focusInnerElement,a=t.onFocusIn,l=t.onFocusOut,u=t.shouldStopEventPropagation,c=t.onTabKeyDown,p=t.handleKeyDown,d=t.eFocusableElement;return o.comp=r,o.eTopGuard=i,o.eBottomGuard=n,o.providedFocusInnerElement=s,o.eFocusableElement=d,o.providedFocusIn=a,o.providedFocusOut=l,o.providedShouldStopEventPropagation=u,o.providedOnTabKeyDown=c,o.providedHandleKeyDown=p,o}return ud(t,e),t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new Si(this.eFocusableElement,{shouldStopEventPropagation:function(){return e.shouldStopEventPropagation()},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)},onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach((function(t){return e.addManagedListener(t,"focus",e.onFocus.bind(e))}))},t.prototype.handleKeyDown=function(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)},t.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},t.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},t.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},t.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},t.prototype.onFocus=function(e){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var t=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t)}},t.prototype.onFocusIn=function(e){this.providedFocusIn&&this.providedFocusIn(e)||this.deactivateTabGuards()},t.prototype.onFocusOut=function(e){this.providedFocusOut&&this.providedFocusOut(e)||this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards()},t.prototype.onTabKeyDown=function(e){var t=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(e);else if(!e.defaultPrevented){var o=this.tabGuardsAreActive();o&&this.deactivateTabGuards();var r=this.getNextFocusableElement(e.shiftKey);o&&setTimeout((function(){return t.activateTabGuards()}),0),r&&(r.focus(),e.preventDefault())}},t.prototype.getGridTabIndex=function(){return(this.gridOptionsService.getNum("tabIndex")||0).toString()},t.prototype.focusInnerElement=function(e){void 0===e&&(e=!1);var t=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length&&t[e?t.length-1:0].focus()},t.prototype.getNextFocusableElement=function(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1);var t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,t.focus()},cd([U("focusService")],t.prototype,"focusService",void 0),cd([B],t.prototype,"postConstruct",null),t}(Le),hd=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),fd=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},gd=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(fd(arguments[t]));return e},vd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hd(t,e),t.prototype.initialiseTabGuard=function(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var t=[this.eTopGuard,this.eBottomGuard],o={setTabIndex:function(e){t.forEach((function(t){return null!=e?t.setAttribute("tabIndex",e):t.removeAttribute("tabIndex")}))}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new dd({comp:o,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:e.onFocusIn,onFocusOut:e.onFocusOut,focusInnerElement:e.focusInnerElement,handleKeyDown:e.handleKeyDown,onTabKeyDown:e.onTabKeyDown,shouldStopEventPropagation:e.shouldStopEventPropagation}))},t.prototype.createTabGuard=function(e){var t=document.createElement("div"),o="top"===e?exports.TabGuardClassNames.TAB_GUARD_TOP:exports.TabGuardClassNames.TAB_GUARD_BOTTOM;return t.classList.add(exports.TabGuardClassNames.TAB_GUARD,o),Vt(t,"presentation"),t},t.prototype.addTabGuards=function(e,t){this.eFocusableElement.insertAdjacentElement("afterbegin",e),this.eFocusableElement.insertAdjacentElement("beforeend",t)},t.prototype.removeAllChildrenExceptTabGuards=function(){var e=[this.eTopGuard,this.eBottomGuard];ur(this.getFocusableElement()),this.addTabGuards.apply(this,gd(e))},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.tabGuardCtrl.forceFocusOutOfContainer(e)},t.prototype.appendChild=function(t,o){br(t)||(t=t.getGui());var r=this.eBottomGuard;r?r.insertAdjacentElement("beforebegin",t):e.prototype.appendChild.call(this,t,o)},t}(li),yd=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),md=function(){return(md=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Cd=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},wd=function(e){function t(t){void 0===t&&(t=1);var o=e.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return o.level=t,o.menuItems=[],o}return yd(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.onTabKeyDown=function(e){var t=this.getParentComponent(),o=t&&t.getGui();o&&o.classList.contains("ag-focus-managed")||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)},t.prototype.handleKeyDown=function(e){switch(e.key){case xr.UP:case xr.RIGHT:case xr.DOWN:case xr.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case xr.ESCAPE:var t=this.findTopMenu();t&&this.focusService.focusInto(t.getGui())}},t.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},t.prototype.addMenuItems=function(e){var t=this;null!=e&&e.forEach((function(e){"separator"===e?t.addSeparator():"string"==typeof e?console.warn("AG Grid: unrecognised menu item "+e):t.addItem(e)}))},t.prototype.addItem=function(e){var t=this,o=this.createManagedBean(new Td(md(md({},e),{isAnotherSubMenuOpen:function(){return t.menuItems.some((function(e){return e.isSubMenuOpen()}))}})));o.setParentComponent(this),qt(o.getGui(),this.level),this.menuItems.push(o),this.appendChild(o.getGui()),this.addManagedListener(o,Td.EVENT_MENU_ITEM_SELECTED,(function(e){t.dispatchEvent(e)})),this.addManagedListener(o,Td.EVENT_MENU_ITEM_ACTIVATED,(function(e){t.activeMenuItem&&t.activeMenuItem!==e.menuItem&&t.activeMenuItem.deactivate(),t.activeMenuItem=e.menuItem}))},t.prototype.activateFirstItem=function(){var e=this.menuItems.filter((function(e){return!e.isDisabled()}))[0];e&&e.activate()},t.prototype.addSeparator=function(){this.appendChild(dr('\n <div class="ag-menu-separator" aria-hidden="true">\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n <div class="ag-menu-separator-part"></div>\n </div>'))},t.prototype.findTopMenu=function(){var e=this.getParentComponent();if(!e&&this instanceof t)return this;for(;;){var o=e&&e.getParentComponent&&e.getParentComponent();if(!o||!(o instanceof t||o instanceof Td))break;e=o}return e instanceof t?e:void 0},t.prototype.handleNavKey=function(e){switch(e){case xr.UP:case xr.DOWN:var t=this.findNextItem(e===xr.UP);return void(t&&t!==this.activeMenuItem&&t.activate())}e===(this.gridOptionsService.is("enableRtl")?xr.RIGHT:xr.LEFT)?this.closeIfIsChild():this.openChild()},t.prototype.closeIfIsChild=function(e){var t=this.getParentComponent();t&&t instanceof Td&&(e&&e.preventDefault(),t.closeSubMenu(),t.getGui().focus())},t.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},t.prototype.findNextItem=function(e){var t=this.menuItems.filter((function(e){return!e.isDisabled()}));if(t.length){if(!this.activeMenuItem)return e?ue(t):t[0];var o;e&&t.reverse();for(var r=!1,i=0;i<t.length;i++){var n=t[i];if(r){o=n;break}n===this.activeMenuItem&&(r=!0)}return o||this.activeMenuItem}},t.prototype.destroy=function(){this.clearActiveItem(),e.prototype.destroy.call(this)},Cd([U("focusService")],t.prototype,"focusService",void 0),Cd([B],t.prototype,"postConstruct",null),t}(vd),Sd=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ed=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Rd=function(e){function t(t){var o=e.call(this)||this;return o.wrappedComponent=t,o.setTemplateFromElement(t.getGui()),o}return Sd(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.handleKeyDown=function(e){e.key===xr.ESCAPE&&this.closePanel()},t.prototype.onTabKeyDown=function(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())},t.prototype.closePanel=function(){var e=this.parentComponent;e.closeSubMenu(),setTimeout((function(){return e.getGui().focus()}),0)},Ed([B],t.prototype,"postConstruct",null),t}(vd),Od=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),bd=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Td=function(e){function t(t){var o=e.call(this)||this;return o.params=t,o.isActive=!1,o.subMenuIsOpen=!1,o.setTemplate('<div class="'+o.getClassName()+'" tabindex="-1" role="treeitem"></div>'),o}return Od(t,e),t.prototype.init=function(){var e=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var t=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),Qt(t,!0)):(this.addGuiEventListener("click",(function(t){return e.onItemSelected(t)})),this.addGuiEventListener("keydown",(function(t){t.key!==xr.ENTER&&t.key!==xr.SPACE||(t.preventDefault(),e.onItemSelected(t))})),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation(),e.preventDefault()})),this.addGuiEventListener("mouseenter",(function(){return e.onMouseEnter()})),this.addGuiEventListener("mouseleave",(function(){return e.onMouseLeave()}))),this.params.cssClasses&&this.params.cssClasses.forEach((function(t){return e.addCssClass(t)}))},t.prototype.isDisabled=function(){return!!this.params.disabled},t.prototype.openSubMenu=function(e){var o=this;if(void 0===e&&(e=!1),this.closeSubMenu(),this.params.subMenu){var r,i=dr('<div class="ag-menu" role="presentation"></div>');if(this.params.subMenu instanceof Array){var n=Bt(this.getGui()),s=isNaN(n)?1:n+1,a=this.createBean(new wd(s));a.setParentComponent(this),a.addMenuItems(this.params.subMenu),i.appendChild(a.getGui()),this.addManagedListener(a,t.EVENT_MENU_ITEM_SELECTED,(function(e){return o.dispatchEvent(e)})),a.addGuiEventListener("mouseenter",(function(){return o.cancelDeactivate()})),r=function(){return o.destroyBean(a)},e&&setTimeout((function(){return a.activateFirstItem()}),0)}else{var l=this.params.subMenu,u=this.createBean(new Rd(l));u.setParentComponent(this);var c=u.getGui(),p=function(){return o.cancelDeactivate()};c.addEventListener("mouseenter",p),r=function(){return c.removeEventListener("mouseenter",p)},i.appendChild(c),l.afterGuiAttached&&setTimeout((function(){return l.afterGuiAttached()}),0)}var d=this.getGui(),h=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:d,ePopup:i,shouldSetMaxHeight:this.params.shouldSetMaxHeight}),f=this.localeService.getLocaleTextFunc(),g=this.popupService.addPopup({modal:!0,eChild:i,positionCallback:h,anchorToElement:d,ariaLabel:f("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,Jt(d,!0),this.hideSubMenu=function(){g&&g.hideFunc(),o.subMenuIsOpen=!1,Jt(d,!1),r()}}},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,Jt(this.getGui(),!1))},t.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},t.prototype.activate=function(e){var t=this;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),e&&this.params.subMenu&&window.setTimeout((function(){t.isAlive()&&t.isActive&&t.openSubMenu()}),300),this.onItemActivated())},t.prototype.deactivate=function(){this.cancelDeactivate(),this.removeCssClass(this.getClassName("active")),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},t.prototype.addIcon=function(){if(this.params.checked||this.params.icon||!this.params.isCompact){var e=dr('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?e.appendChild(Fr("check",this.gridOptionsService)):this.params.icon&&(br(this.params.icon)?e.appendChild(this.params.icon):"string"==typeof this.params.icon?e.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(e)}},t.prototype.addName=function(){if(this.params.name||!this.params.isCompact){var e=dr('<span ref="eName" class="'+this.getClassName("part")+" "+this.getClassName("text")+'">'+(this.params.name||"")+"</span>");this.getGui().appendChild(e)}},t.prototype.addTooltip=function(){this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsService.is("enableBrowserTooltips")?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new ri(this)))},t.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},t.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var e=dr('<span ref="eShortcut" class="'+this.getClassName("part")+" "+this.getClassName("shortcut")+'">'+(this.params.shortcut||"")+"</span>");this.getGui().appendChild(e)}},t.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var e=dr('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),t=this.getGui();if(this.params.subMenu){var o=this.gridOptionsService.is("enableRtl")?"smallLeft":"smallRight";Jt(t,!1),e.appendChild(Fr(o,this.gridOptionsService))}t.appendChild(e)}},t.prototype.onItemSelected=function(e){if(this.params.action?this.params.action():this.openSubMenu(e&&"keydown"===e.type),!this.params.subMenu||this.params.action){var o={type:t.EVENT_MENU_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip,event:e};this.dispatchEvent(o)}},t.prototype.onItemActivated=function(){var e={type:t.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(e)},t.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},t.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},t.prototype.onMouseEnter=function(){var e=this;this.cancelDeactivate(),this.params.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout((function(){return e.activate(!0)}),t.ACTIVATION_DELAY):this.activate(!0)},t.prototype.onMouseLeave=function(){var e=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout((function(){return e.deactivate()}),t.ACTIVATION_DELAY):this.deactivate()},t.prototype.getClassName=function(e){var t=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return e?t+"-"+e:t},t.EVENT_MENU_ITEM_SELECTED="menuItemSelected",t.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",t.ACTIVATION_DELAY=80,bd([U("popupService")],t.prototype,"popupService",void 0),bd([B],t.prototype,"init",null),t}(li),Pd=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Dd=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},_d=function(e){function t(o){var r=e.call(this,t.getTemplate(o))||this;return r.closable=!0,r.config=o,r}return Pd(t,e),t.getTemplate=function(e){var t=e&&e.cssIdentifier||"default";return'<div class="ag-panel ag-'+t+'-panel" tabindex="-1">\n <div ref="eTitleBar" class="ag-panel-title-bar ag-'+t+'-panel-title-bar ag-unselectable">\n <span ref="eTitle" class="ag-panel-title-bar-title ag-'+t+'-panel-title-bar-title"></span>\n <div ref="eTitleBarButtons" class="ag-panel-title-bar-buttons ag-'+t+'-panel-title-bar-buttons"></div>\n </div>\n <div ref="eContentWrapper" class="ag-panel-content-wrapper ag-'+t+'-panel-content-wrapper"></div>\n </div>'},t.prototype.postConstruct=function(){var e=this,t=this.config,o=t.component,r=t.closable,i=t.hideTitleBar,n=t.title,s=t.minWidth,a=void 0===s?250:s,l=t.width,u=t.minHeight,c=void 0===u?250:u,p=t.height,d=t.centered,h=t.popup,f=t.x,g=t.y;this.positionableFeature=new Oi(this.getGui(),{minWidth:a,width:l,minHeight:c,height:p,centered:d,x:f,y:g,popup:h,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var v=this.getGui();o&&this.setBodyComponent(o),i?Jo(this.eTitleBar,!1):(n&&this.setTitle(n),this.setClosable(null!=r?r:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(t){var o=e.gridOptionsService.getDocument();if(v.contains(t.relatedTarget)||v.contains(o.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var r=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");r&&r.focus()}})),h&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),e.destroy()}},t.prototype.getHeight=function(){return this.positionableFeature.getHeight()},t.prototype.setHeight=function(e){this.positionableFeature.setHeight(e)},t.prototype.getWidth=function(){return this.positionableFeature.getWidth()},t.prototype.setWidth=function(e){this.positionableFeature.setWidth(e)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var o=this.closeButtonComp=new li(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(o);var r=o.getGui(),i=Fr("close",this.gridOptionsService);i.classList.add("ag-panel-title-bar-button-icon"),r.appendChild(i),this.addTitleBarButton(o),o.addManagedListener(r,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){(r=this.closeButtonComp.getGui()).parentElement.removeChild(r),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,t){var o=this.eTitleBarButtons,r=o.children,i=r.length;null==t&&(t=i),t=Math.max(0,Math.min(t,i)),e.addCssClass("ag-panel-title-bar-button");var n=e.getGui();0===t?o.insertAdjacentElement("afterbegin",n):t===i?o.insertAdjacentElement("beforeend",n):r[t-1].insertAdjacentElement("afterend",n),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return or(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return rr(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var t=this.getGui();t&&t.offsetParent&&this.close(),e.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',Dd([ui("eContentWrapper")],t.prototype,"eContentWrapper",void 0),Dd([ui("eTitleBar")],t.prototype,"eTitleBar",void 0),Dd([ui("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),Dd([ui("eTitle")],t.prototype,"eTitle",void 0),Dd([B],t.prototype,"postConstruct",null),t}(li),Ad=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Nd=function(){return(Nd=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Md=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Fd=function(e){function t(t){var o=e.call(this,Nd(Nd({},t),{popup:!0}))||this;return o.isMaximizable=!1,o.isMaximized=!1,o.maximizeListeners=[],o.resizeListenerDestroy=null,o.lastPosition={x:0,y:0,width:0,height:0},o}return Ad(t,e),t.prototype.postConstruct=function(){var t=this,o=this.getGui(),r=this.config,i=r.movable,n=r.resizable,s=r.maximizable;this.addCssClass("ag-dialog"),e.prototype.postConstruct.call(this),this.addManagedListener(o,"focusin",(function(e){o.contains(e.relatedTarget)||t.popupService.bringPopupToFront(o)})),i&&this.setMovable(i),s&&this.setMaximizable(s),n&&this.setResizable(n)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,o=t.alwaysOnTop,r=t.modal,i=t.title,n=this.localeService.getLocaleTextFunc(),s=this.popupService.addPopup({modal:r,eChild:e,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:o,ariaLabel:i||n("ariaLabelDialog","Dialog")});s&&(this.close=s.hideFunc)},t.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var t=this.lastPosition,o=t.x,r=t.y,i=t.width,n=t.height;this.setWidth(i),this.setHeight(n),this.positionableFeature.offsetElement(o,r)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){Jo(this.maximizeIcon,!this.isMaximized),Jo(this.minimizeIcon,this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((function(e){return e()})),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),e.prototype.destroy.call(this)},t.prototype.setResizable=function(e){this.positionableFeature.setResizable(e)},t.prototype.setMovable=function(e){this.positionableFeature.setMovable(e,this.eTitleBar)},t.prototype.setMaximizable=function(e){var t=this;if(!e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var o=this.eTitleBar;if(o&&e!==this.isMaximizable){var r=this.buildMaximizeAndMinimizeElements();this.refreshMaximizeIcon(),r.addManagedListener(r.getGui(),"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(r,0),this.maximizeListeners.push(this.addManagedListener(o,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",(function(){t.isMaximized=!1,t.refreshMaximizeIcon()}))}},t.prototype.buildMaximizeAndMinimizeElements=function(){var e=this.maximizeButtonComp=this.createBean(new li('<div class="ag-dialog-button"></span>')),t=e.getGui();return this.maximizeIcon=Fr("maximize",this.gridOptionsService),t.appendChild(this.maximizeIcon),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),this.minimizeIcon=Fr("minimize",this.gridOptionsService),t.appendChild(this.minimizeIcon),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon"),e},Md([U("popupService")],t.prototype,"popupService",void 0),t}(_d),Ld=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),xd=function(){return(xd=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Id=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Gd=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},Hd=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Gd(arguments[t]));return e},Vd=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}var r;return Ld(o,t),r=o,o.addKeyboardModeEvents=function(e,t){var o=r.instancesMonitored.get(e);o&&o.length>0?-1===o.indexOf(t)&&o.push(t):(r.instancesMonitored.set(e,[t]),e.addEventListener("keydown",r.toggleKeyboardMode),e.addEventListener("mousedown",r.toggleKeyboardMode))},o.removeKeyboardModeEvents=function(e,t){var o=r.instancesMonitored.get(e),i=[];o&&o.length&&(i=Hd(o).filter((function(e){return e!==t})),r.instancesMonitored.set(e,i)),0===i.length&&(e.removeEventListener("keydown",r.toggleKeyboardMode),e.removeEventListener("mousedown",r.toggleKeyboardMode))},o.toggleKeyboardMode=function(e){var t=r.keyboardModeActive,o="keydown"===e.type;if(!(o&&(e.ctrlKey||e.metaKey||e.altKey)||t&&o||!t&&!o)){r.keyboardModeActive=o;var i=e.target.ownerDocument;if(i){var n=r.instancesMonitored.get(i);n&&n.forEach((function(e){e.dispatchEvent({type:o?ke.EVENT_KEYBOARD_FOCUS:ke.EVENT_MOUSE_FOCUS})}))}}},o.prototype.init=function(){var e=this,t=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,ke.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.addManagedListener(this.eventService,ke.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_GROUP_OPENED,t),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.ctrlsService.whenReady((function(t){e.gridCtrl=t.gridCtrl;var o=e.gridOptionsService.getDocument();r.addKeyboardModeEvents(o,e.gridCtrl),e.addDestroyFunc((function(){return e.unregisterGridCompController(e.gridCtrl)}))}))},o.prototype.unregisterGridCompController=function(e){var t=this.gridOptionsService.getDocument();r.removeKeyboardModeEvents(t,e)},o.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var e=this.focusedCellPosition.column,t=this.columnModel.getGridColumn(e.getId());e!==t&&this.clearFocusedCell()}},o.prototype.isKeyboardMode=function(){return r.keyboardModeActive},o.prototype.getFocusCellToUseAfterRefresh=function(){var e=this.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(e.activeElement,Al.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},o.prototype.getFocusHeaderToUseAfterRefresh=function(){var e=this.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(e.activeElement,ic.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},o.prototype.isDomDataMissingInHierarchy=function(e,t){for(var o=e;o;){if(this.gridOptionsService.getDomData(o,t))return!1;o=o.parentNode}return!0},o.prototype.getFocusedCell=function(){return this.focusedCellPosition},o.prototype.getFocusEventParams=function(){var e=this.focusedCellPosition,t=e.rowIndex,o=e.rowPinned,r={rowIndex:t,rowPinned:o,column:e.column,isFullWidthCell:!1},i=this.rowRenderer.getRowByPosition({rowIndex:t,rowPinned:o});return i&&(r.isFullWidthCell=i.isFullWidth()),r},o.prototype.clearFocusedCell=function(){if(null!=this.focusedCellPosition){var e=xd({type:ke.EVENT_CELL_FOCUS_CLEARED},this.getFocusEventParams());this.focusedCellPosition=null,this.eventService.dispatchEvent(e)}},o.prototype.setFocusedCell=function(t){var o=t.column,r=t.rowIndex,i=t.rowPinned,n=t.forceBrowserFocus,s=void 0!==n&&n,a=t.preventScrollOnBrowserFocus,l=void 0!==a&&a,u=this.columnModel.getGridColumn(o);if(u){this.focusedCellPosition=u?{rowIndex:r,rowPinned:e(i),column:u}:null;var c=xd(xd({type:ke.EVENT_CELL_FOCUSED},this.getFocusEventParams()),{forceBrowserFocus:s,preventScrollOnBrowserFocus:l,floating:null});this.eventService.dispatchEvent(c)}else this.focusedCellPosition=null},o.prototype.isCellFocused=function(e){return null!=this.focusedCellPosition&&(this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned))},o.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},o.prototype.isHeaderWrapperFocused=function(e){if(null==this.focusedHeaderPosition)return!1;var t=e.getColumnGroupChild(),o=e.getRowIndex(),r=e.getPinned(),i=this.focusedHeaderPosition,n=i.column,s=i.headerRowIndex;return t===n&&o===s&&r==n.getPinned()},o.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},o.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},o.prototype.setFocusedHeader=function(e,t){this.focusedHeaderPosition={headerRowIndex:e,column:t}},o.prototype.focusHeaderPosition=function(e){var t=e.direction,o=e.fromTab,r=e.allowUserOverride,i=e.event,n=e.headerPosition;if(r){var s,a=this.getFocusedHeader(),l=this.headerNavigationService.getHeaderRowCount();if(o){if(s=this.gridOptionsService.getCallback("tabToNextHeader"))n=s({backwards:"Before"===t,previousHeaderPosition:a,nextHeaderPosition:n,headerRowCount:l})}else if((s=this.gridOptionsService.getCallback("navigateToNextHeader"))&&i)n=s({key:i.key,previousHeaderPosition:a,nextHeaderPosition:n,headerRowCount:l,event:i})}return!!n&&(-1===n.headerRowIndex?this.focusGridView(n.column):(this.headerNavigationService.scrollToColumn(n.column,t),this.ctrlsService.getHeaderRowContainerCtrl(n.column.getPinned()).focusHeader(n.headerRowIndex,n.column,i)))},o.prototype.focusFirstHeader=function(){var e=this.columnModel.getAllDisplayedColumns()[0];return!!e&&(e.getParent()&&(e=this.columnModel.getColumnGroupAtLevel(e,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:e}}))},o.prototype.focusLastHeader=function(e){var t=this.headerNavigationService.getHeaderRowCount()-1,o=ue(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:o},event:e})},o.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},o.prototype.isRowFocused=function(t,o){return null!=this.focusedCellPosition&&(this.focusedCellPosition.rowIndex===t&&this.focusedCellPosition.rowPinned===e(o))},o.prototype.findFocusableElements=function(e,t,o){void 0===o&&(o=!1);var r=Qo;t&&(r+=", "+t),o&&(r+=', [tabindex="-1"]');var i=Array.prototype.slice.apply(e.querySelectorAll("[tabindex], input, select, button, textarea, [href]")),n=Array.prototype.slice.apply(e.querySelectorAll(r));if(!n.length)return i;var s;return s=n,i.filter((function(e){return-1===s.indexOf(e)}))},o.prototype.focusInto=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!1);var r=this.findFocusableElements(e,null,o),i=t?ue(r):r[0];return!!i&&(i.focus(),!0)},o.prototype.findFocusableElementBeforeTabGuard=function(e,t){if(!t)return null;var o=this.findFocusableElements(e),r=o.indexOf(t);if(-1===r)return null;for(var i=-1,n=r-1;n>=0;n--)if(o[n].classList.contains(exports.TabGuardClassNames.TAB_GUARD_TOP)){i=n;break}return i<=0?null:o[i-1]},o.prototype.findNextFocusableElement=function(e,t,o){void 0===e&&(e=this.eGridDiv);var r=this.findFocusableElements(e,t?':not([tabindex="-1"])':null),i=this.gridOptionsService.getDocument().activeElement,n=(t?r.findIndex((function(e){return e.contains(i)})):r.indexOf(i))+(o?-1:1);return n<0||n>=r.length?null:r[n]},o.prototype.isTargetUnderManagedComponent=function(e,t){if(!t)return!1;var o=e.querySelectorAll("."+Si.FOCUS_MANAGED_CLASS);if(!o.length)return!1;for(var r=0;r<o.length;r++)if(o[r].contains(t))return!0;return!1},o.prototype.findTabbableParent=function(e,t){void 0===t&&(t=5);for(var o=0;e&&null===Do(e)&&++o<=t;)e=e.parentElement;return null===Do(e)?null:e},o.prototype.focusGridView=function(t,o){if(this.gridOptionsService.is("suppressCellFocus"))return o?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var r=o?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!r)return!1;var i=r.rowIndex,n=r.rowPinned,s=this.getFocusedHeader();if(!t&&s&&(t=s.column),null==i||!t)return!1;if(this.navigationService.ensureCellVisible({rowIndex:i,column:t,rowPinned:n}),this.setFocusedCell({rowIndex:i,column:t,rowPinned:e(n),forceBrowserFocus:!0}),this.rangeService){var a={rowIndex:i,rowPinned:n,column:t};this.rangeService.setRangeToCell(a)}return!0},o.prototype.focusNextGridCoreContainer=function(e){return!!this.gridCtrl.focusNextInnerContainer(e)||(e||this.gridCtrl.isDetailGrid()||this.gridCtrl.forceFocusOutOfContainer(),!1)},o.AG_KEYBOARD_FOCUS="ag-keyboard-focus",o.keyboardModeActive=!1,o.instancesMonitored=new Map,Id([U("eGridDiv")],o.prototype,"eGridDiv",void 0),Id([U("columnModel")],o.prototype,"columnModel",void 0),Id([U("headerNavigationService")],o.prototype,"headerNavigationService",void 0),Id([U("rowRenderer")],o.prototype,"rowRenderer",void 0),Id([U("rowPositionUtils")],o.prototype,"rowPositionUtils",void 0),Id([z("rangeService")],o.prototype,"rangeService",void 0),Id([U("navigationService")],o.prototype,"navigationService",void 0),Id([U("ctrlsService")],o.prototype,"ctrlsService",void 0),Id([B],o.prototype,"init",null),o=r=Id([W("focusService")],o)}(Le),kd=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Bd=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},jd=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},Wd=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(jd(arguments[t]));return e};
|
326 |
|
327 |
|
328 |
|
329 |
|
330 |
|
331 | !function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal"}(pd||(pd={}));var Ud,zd=0,Kd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popupList=[],t}var o;return kd(t,e),o=t,t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridCtrl=t.gridCtrl,e.addManagedListener(e.gridCtrl,ke.EVENT_KEYBOARD_FOCUS,(function(){e.popupList.forEach((function(e){return e.element.classList.add(Vd.AG_KEYBOARD_FOCUS)}))})),e.addManagedListener(e.gridCtrl,ke.EVENT_MOUSE_FOCUS,(function(){e.popupList.forEach((function(e){return e.element.classList.remove(Vd.AG_KEYBOARD_FOCUS)}))}))}))},t.prototype.getPopupParent=function(){var e=this.gridOptionsService.get("popupParent");return e||this.gridCtrl.getGui()},t.prototype.positionPopupForMenu=function(e){var t=e.eventSource.getBoundingClientRect(),o=this.getParentRect();this.checkClearMaxHeight(e.ePopup,e.shouldSetMaxHeight);var r=this.keepXYWithinBounds(e.ePopup,t.top-o.top,pd.vertical),i=e.ePopup.clientWidth>0?e.ePopup.clientWidth:200;e.ePopup.style.minWidth=i+"px";var n,s=o.right-o.left-i;function a(){return t.right-o.left-2}function l(){return t.left-o.left-i}this.gridOptionsService.is("enableRtl")?((n=l())<0&&(n=a()),n>s&&(n=0)):((n=a())>s&&(n=l()),n<0&&(n=0)),e.ePopup.style.left=n+"px",e.ePopup.style.top=r+"px",this.checkSetMaxHeight(e.ePopup,r,e.shouldSetMaxHeight)},t.prototype.positionPopupUnderMouseEvent=function(e){var t=this,o=e.ePopup,r=e.nudgeX,i=e.nudgeY,n=e.skipObserver,s=e.shouldSetMaxHeight;this.positionPopup({ePopup:o,nudgeX:r,nudgeY:i,keepWithinBounds:!0,skipObserver:n,shouldSetMaxHeight:s,updatePosition:function(){return t.calculatePointerAlign(e.mouseEvent)},postProcessCallback:function(){return t.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)}})},t.prototype.calculatePointerAlign=function(e){var t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}},t.prototype.positionPopupByComponent=function(e){var t=this,o=e.eventSource.getBoundingClientRect(),r=e.alignSide||"left",i=e.position||"over",n=this.getParentRect();this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,keepWithinBounds:e.keepWithinBounds,shouldSetMaxHeight:e.shouldSetMaxHeight,updatePosition:function(){var t=o.left-n.left;return"right"===r&&(t-=e.ePopup.offsetWidth-o.width),{x:t,y:"over"===i?o.top-n.top:o.top-n.top+o.height}},postProcessCallback:function(){return t.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)}})},t.prototype.callPostProcessPopup=function(e,t,o,r,i,n){var s=this.gridOptionsService.getCallback("postProcessPopup");s&&s({column:i,rowNode:n,ePopup:t,type:e,eventSource:o,mouseEvent:r})},t.prototype.positionPopup=function(e){var t=this,r=e.ePopup,i=e.keepWithinBounds,n=e.nudgeX,s=e.nudgeY,a=e.skipObserver,l=e.shouldSetMaxHeight,u=e.updatePosition,c={width:0,height:0},p=function(o){void 0===o&&(o=!1);var a=u(),p=a.x,d=a.y;o&&r.clientWidth===c.width&&r.clientHeight===c.height||(c.width=r.clientWidth,c.height=r.clientHeight,n&&(p+=n),s&&(d+=s),t.checkClearMaxHeight(r,l),i&&(p=t.keepXYWithinBounds(r,p,pd.horizontal),d=t.keepXYWithinBounds(r,d,pd.vertical)),r.style.left=p+"px",r.style.top=d+"px",t.checkSetMaxHeight(r,d,l),e.postProcessCallback&&e.postProcessCallback())};if(p(),!a){var d=this.resizeObserverService.observeResize(r,(function(){return p(!0)}));setTimeout((function(){return d()}),o.WAIT_FOR_POPUP_CONTENT_RESIZE)}},t.prototype.getActivePopups=function(){return this.popupList.map((function(e){return e.element}))},t.prototype.getPopupList=function(){return this.popupList},t.prototype.getParentRect=function(){var e=this.gridOptionsService.getDocument(),t=this.getPopupParent();t===e.body?t=e.documentElement:"static"===getComputedStyle(t).position&&(t=t.offsetParent);var o=getComputedStyle(t),r=t.getBoundingClientRect();return{top:r.top+parseFloat(o.borderTopWidth)||0,left:r.left+parseFloat(o.borderLeftWidth)||0,right:r.right+parseFloat(o.borderRightWidth)||0,bottom:r.bottom+parseFloat(o.borderBottomWidth)||0}},t.prototype.keepXYWithinBounds=function(e,t,o){var r=o===pd.vertical,i=r?"clientHeight":"clientWidth",n=r?"top":"left",s=r?"offsetHeight":"offsetWidth",a=r?"scrollTop":"scrollLeft",l=this.gridOptionsService.getDocument(),u=l.documentElement,c=this.getPopupParent(),p=c.getBoundingClientRect(),d=l.documentElement.getBoundingClientRect(),h=c===l.body,f=e[s],g=h?(r?ir:nr)(u)+u[a]:c[i];h&&(g-=Math.abs(d[n]-p[n]));var v=g-f;return Math.min(Math.max(t,0),Math.abs(v))},t.prototype.keepPopupPositionedRelativeTo=function(e){var t=this,o=this.getPopupParent(),r=o.getBoundingClientRect(),i=e.element.getBoundingClientRect(),n=r.top-i.top,s=r.left-i.left,a=n,l=s,u=e.ePopup.style.top,c=parseInt(u.substring(0,u.length-1),10),p=e.ePopup.style.left,d=parseInt(p.substring(0,p.length-1),10);return new Zr((function(r){t.getFrameworkOverrides().setInterval((function(){var r=o.getBoundingClientRect(),i=e.element.getBoundingClientRect();if(0==i.top&&0==i.left&&0==i.height&&0==i.width)e.hidePopup();else{var u=r.top-i.top;if(u!=a){var p=t.keepXYWithinBounds(e.ePopup,c+n-u,pd.vertical);e.ePopup.style.top=p+"px"}a=u;var h=r.left-i.left;if(h!=l){var f=t.keepXYWithinBounds(e.ePopup,d+s-h,pd.horizontal);e.ePopup.style.left=f+"px"}l=h}}),200).then((function(e){r((function(){null!=e&&window.clearInterval(e)}))}))}))},t.prototype.addPopup=function(e){var t,o=this,r=e.modal,i=e.eChild,n=e.closeOnEsc,s=e.closedCallback,a=e.click,l=e.alwaysOnTop,u=e.afterGuiAttached,c=e.positionCallback,p=e.anchorToElement,d=e.ariaLabel,h=this.gridOptionsService.getDocument(),f=new Zr((function(e){return e((function(){}))}));if(!h)return console.warn("AG Grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:f};var g=this.popupList.findIndex((function(e){return e.element===i}));if(-1!==g){var v=this.popupList[g];return{hideFunc:v.hideFunc,stopAnchoringPromise:v.stopAnchoringPromise}}var y=this.getPopupParent();null==i.style.top&&(i.style.top="0px"),null==i.style.left&&(i.style.left="0px");var m=document.createElement("div"),C=this.environment.getTheme().allThemes;C.length&&(t=m.classList).add.apply(t,Wd(C)),m.classList.add("ag-popup"),i.classList.add(this.gridOptionsService.is("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),i.hasAttribute("role")||Vt(i,"dialog"),Wt(i,d),this.focusService.isKeyboardMode()&&i.classList.add(Vd.AG_KEYBOARD_FOCUS),m.appendChild(i),y.appendChild(m),l?this.setAlwaysOnTop(m,!0):this.bringPopupToFront(m);var w=!1,S=function(e){m.contains(h.activeElement)&&(e.key===xr.ESCAPE&&O({keyboardEvent:e}))},E=function(e){return O({mouseEvent:e})},R=function(e){return O({touchEvent:e})},O=function(e){void 0===e&&(e={});var t=e.mouseEvent,r=e.touchEvent,n=e.keyboardEvent;o.isEventFromCurrentPopup({mouseEvent:t,touchEvent:r},i)||o.isEventSameChainAsOriginalEvent({originalMouseEvent:a,mouseEvent:t,touchEvent:r})||w||(w=!0,y.removeChild(m),h.removeEventListener("keydown",S),h.removeEventListener("mousedown",E),h.removeEventListener("touchstart",R),h.removeEventListener("contextmenu",E),o.eventService.removeEventListener(ke.EVENT_DRAG_STARTED,E),s&&s(t||r||n),o.popupList=o.popupList.filter((function(e){return e.element!==i})),f&&f.then((function(e){return e&&e()})))};return u&&u({hidePopup:O}),window.setTimeout((function(){n&&h.addEventListener("keydown",S),r&&(h.addEventListener("mousedown",E),o.eventService.addEventListener(ke.EVENT_DRAG_STARTED,E),h.addEventListener("touchstart",R),h.addEventListener("contextmenu",E))}),0),c&&c(),p&&(f=this.keepPopupPositionedRelativeTo({element:p,ePopup:i,hidePopup:O})),this.popupList.push({element:i,wrapper:m,hideFunc:O,stopAnchoringPromise:f,instanceId:zd++,isAnchored:!!p}),{hideFunc:O,stopAnchoringPromise:f}},t.prototype.hasAnchoredPopup=function(){return this.popupList.some((function(e){return e.isAnchored}))},t.prototype.isEventFromCurrentPopup=function(e,t){var o=e.mouseEvent,r=e.touchEvent,i=o||r;if(!i)return!1;var n=this.popupList.findIndex((function(e){return e.element===t}));if(-1===n)return!1;for(var s=n;s<this.popupList.length;s++){if(Pe(this.popupList[s].element,i))return!0}return this.isElementWithinCustomPopup(i.target)},t.prototype.isElementWithinCustomPopup=function(e){for(var t=this.gridOptionsService.getDocument();e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||null===e.parentElement)return!0;e=e.parentElement}return!1},t.prototype.isEventSameChainAsOriginalEvent=function(e){var t=e.originalMouseEvent,o=e.mouseEvent,r=e.touchEvent,i=null;if(o?i=o:r&&(i=r.touches[0]),i&&t){var n=o?o.screenX:0,s=o?o.screenY:0,a=Math.abs(t.screenX-n)<5,l=Math.abs(t.screenY-s)<5;if(a&&l)return!0}return!1},t.prototype.getWrapper=function(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null},t.prototype.setAlwaysOnTop=function(e,t){var o=this.getWrapper(e);o&&(o.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(o))},t.prototype.bringPopupToFront=function(e){var t=this.getPopupParent(),o=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),r=o.length,i=Array.prototype.slice.call(t.querySelectorAll(".ag-popup.ag-always-on-top")),n=i.length,s=this.getWrapper(e);if(s&&!(r<=1)&&t.contains(e)){var a=o.indexOf(s),l=s.querySelectorAll("div"),u=[];if(l.forEach((function(e){0!==e.scrollTop&&u.push([e,e.scrollTop])})),n)s.classList.contains("ag-always-on-top")?a!==r-1&&ue(i).insertAdjacentElement("afterend",s):a!==r-n-1&&i[0].insertAdjacentElement("beforebegin",s);else a!==r-1&&ue(o).insertAdjacentElement("afterend",s);for(;u.length;){var c=u.pop();c[0].scrollTop=c[1]}var p={type:"popupToFront",api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,eWrapper:s};this.eventService.dispatchEvent(p)}},t.prototype.checkClearMaxHeight=function(e,t){t&&e.style.removeProperty("max-height")},t.prototype.checkSetMaxHeight=function(e,t,o){o&&"100%"===getComputedStyle(e).maxHeight&&(e.style.maxHeight="calc(100% - "+t+"px)")},t.WAIT_FOR_POPUP_CONTENT_RESIZE=200,Bd([U("focusService")],t.prototype,"focusService",void 0),Bd([U("ctrlsService")],t.prototype,"ctrlsService",void 0),Bd([U("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Bd([B],t.prototype,"postConstruct",null),t=o=Bd([W("popupService")],t)}(Le),Yd=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),qd=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Qd=function(e){function t(o,r,i){void 0===o&&(o="default"),void 0===r&&(r="listbox");var n=e.call(this,t.getTemplate(o))||this;return n.cssIdentifier=o,n.ariaRole=r,n.listName=i,n.renderedRows=new Map,n.rowHeight=20,n}return Yd(t,e),t.prototype.postConstruct=function(){var e=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)},focusInnerElement:function(t){return e.focusInnerElement(t)},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}}),this.setAriaProperties(),this.addManagedListener(this.eventService,ke.EVENT_GRID_STYLES_CHANGED,this.onGridStylesChanged.bind(this))},t.prototype.onGridStylesChanged=function(){this.rowHeight=this.getItemHeight(),this.refresh()},t.prototype.setAriaProperties=function(){var e=this.localeService.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),t=this.eContainer;Vt(t,this.ariaRole),Wt(t,e)},t.prototype.addResizeObserver=function(){var e=this,t=this.resizeObserverService.observeResize(this.getGui(),(function(){return e.drawVirtualRows()}));this.addDestroyFunc(t)},t.prototype.focusInnerElement=function(e){this.focusRow(e?this.model.getRowCount()-1:0)},t.prototype.onFocusIn=function(e){var t=e.target;return t.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=jt(t)-1),!1},t.prototype.onFocusOut=function(e){return this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null),!1},t.prototype.handleKeyDown=function(e){switch(e.key){case xr.UP:case xr.DOWN:this.navigate(e.key===xr.UP)&&e.preventDefault()}},t.prototype.onTabKeyDown=function(e){this.navigate(e.shiftKey)?e.preventDefault():this.forceFocusOutOfContainer(e.shiftKey)},t.prototype.navigate=function(e){if(null==this.lastFocusedRowIndex)return!1;var t=this.lastFocusedRowIndex+(e?-1:1);return!(t<0||t>=this.model.getRowCount())&&(this.focusRow(t),!0)},t.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},t.prototype.focusRow=function(e){var t=this;this.ensureIndexVisible(e),window.setTimeout((function(){if(t.isAlive()){var o=t.renderedRows.get(e);o&&o.eDiv.focus()}}),10)},t.prototype.getComponentAt=function(e){var t=this.renderedRows.get(e);return t&&t.rowComponent},t.prototype.forEachRenderedRow=function(e){this.renderedRows.forEach((function(t,o){return e(t.rowComponent,o)}))},t.getTemplate=function(e){return'\n <div class="ag-virtual-list-viewport ag-'+e+'-virtual-list-viewport" role="presentation">\n <div class="ag-virtual-list-container ag-'+e+'-virtual-list-container" ref="eContainer"></div>\n </div>'},t.prototype.getItemHeight=function(){return this.environment.getListItemHeight()},t.prototype.ensureIndexVisible=function(e){var t=this.model.getRowCount();if("number"!=typeof e||e<0||e>=t)console.warn("AG Grid: invalid row index for ensureIndexVisible: "+e);else{var o=e*this.rowHeight,r=o+this.rowHeight,i=this.getGui(),n=i.scrollTop,s=i.offsetHeight,a=n+s<r;if(n>o)i.scrollTop=o;else if(a){var l=r-s;i.scrollTop=l}}},t.prototype.setComponentCreator=function(e){this.componentCreator=e},t.prototype.setComponentUpdater=function(e){this.componentUpdater=e},t.prototype.getRowHeight=function(){return this.rowHeight},t.prototype.getScrollTop=function(){return this.getGui().scrollTop},t.prototype.setRowHeight=function(e){this.rowHeight=e,this.refresh()},t.prototype.refresh=function(e){var t=this;if(null!=this.model&&this.isAlive()){var o=this.model.getRowCount();this.eContainer.style.height=o*this.rowHeight+"px",L((function(){return t.eContainer.clientHeight>=o*t.rowHeight}),(function(){t.isAlive()&&(t.canSoftRefresh(e)?t.drawVirtualRows(!0):(t.clearVirtualRows(),t.drawVirtualRows()))}))}},t.prototype.canSoftRefresh=function(e){return!!(e&&this.renderedRows.size&&"function"==typeof this.model.areRowsEqual&&this.componentUpdater)},t.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach((function(t,o){return e.removeRow(o)}))},t.prototype.drawVirtualRows=function(e){if(this.isAlive()){var t=this.getGui(),o=t.scrollTop,r=o+t.offsetHeight,i=Math.floor(o/this.rowHeight),n=Math.floor(r/this.rowHeight);this.ensureRowsRendered(i,n,e)}},t.prototype.ensureRowsRendered=function(e,t,o){var r=this;this.renderedRows.forEach((function(o,i){(i<e||i>t)&&i!==r.lastFocusedRowIndex&&r.removeRow(i)})),o&&this.refreshRows();for(var i=e;i<=t;i++)this.renderedRows.has(i)||i<this.model.getRowCount()&&this.insertRow(i)},t.prototype.insertRow=function(e){var t=this,o=this.model.getRow(e),r=document.createElement("div");if(r.classList.add("ag-virtual-list-item","ag-"+this.cssIdentifier+"-virtual-list-item"),Vt(r,"tree"===this.ariaRole?"treeitem":"option"),$t(r,this.model.getRowCount()),eo(r,e+1),r.setAttribute("tabindex","-1"),"function"==typeof this.model.isRowSelected){var i=this.model.isRowSelected(e);uo(r,!!i),co(r,i)}r.style.height=this.rowHeight+"px",r.style.top=this.rowHeight*e+"px";var n=this.componentCreator(o,r);n.addGuiEventListener("focusin",(function(){return t.lastFocusedRowIndex=e})),r.appendChild(n.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",r):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",r):this.eContainer.appendChild(r),this.renderedRows.set(e,{rowComponent:n,eDiv:r,value:o})},t.prototype.removeRow=function(e){var t=this.renderedRows.get(e);this.eContainer.removeChild(t.eDiv),this.destroyBean(t.rowComponent),this.renderedRows.delete(e)},t.prototype.refreshRows=function(){var e=this,t=this.model.getRowCount();this.renderedRows.forEach((function(o,r){var i,n;if(r>=t)e.removeRow(r);else{var s=e.model.getRow(r);(null===(n=(i=e.model).areRowsEqual)||void 0===n?void 0:n.call(i,o.value,s))?e.componentUpdater(s,o.rowComponent):e.removeRow(r)}}))},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",(function(){return e.drawVirtualRows()}),{passive:!0})},t.prototype.setModel=function(e){this.model=e},t.prototype.destroy=function(){this.isAlive()&&(this.clearVirtualRows(),e.prototype.destroy.call(this))},qd([U("resizeObserverService")],t.prototype,"resizeObserverService",void 0),qd([ui("eContainer")],t.prototype,"eContainer",void 0),qd([B],t.prototype,"postConstruct",null),t}(vd),Xd=["mouseover","mouseout","mouseenter","mouseleave"],Jd=["touchstart","touchend","touchmove","touchcancel"],Zd=function(){function e(){this.isOutsideAngular=function(e){return ve(Xd,e)}}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.setInterval=function(e,t){return new Zr((function(o){o(window.setInterval(e,t))}))},e.prototype.addEventListener=function(e,t,o,r){var i=ve(Jd,t);e.addEventListener(t,o,{capture:!!r,passive:i})},e.prototype.dispatchEvent=function(e,t,o){t()},e.prototype.frameworkComponent=function(e){return null},e.prototype.isFrameworkComponent=function(e){return!1},e}(),$d=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),eh=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},th=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},oh=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(th(arguments[t]));return e},rh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $d(t,e),t.prototype.getNextCellToFocus=function(e,t,o){return void 0===o&&(o=!1),o?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)},t.prototype.getNextCellToFocusWithCtrlPressed=function(e,t){var o,r,i=e===xr.UP,n=e===xr.DOWN,s=e===xr.LEFT;if(i||n)r=i?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),o=t.column;else{var a=this.columnModel.getAllDisplayedColumns(),l=this.gridOptionsService.is("enableRtl");r=t.rowIndex,o=s!==l?a[0]:ue(a)}return{rowIndex:r,rowPinned:null,column:o}},t.prototype.getNextCellToFocusWithoutCtrlPressed=function(e,t){for(var o=t,r=!1;!r;){switch(e){case xr.UP:o=this.getCellAbove(o);break;case xr.DOWN:o=this.getCellBelow(o);break;case xr.RIGHT:o=this.gridOptionsService.is("enableRtl")?this.getCellToLeft(o):this.getCellToRight(o);break;case xr.LEFT:o=this.gridOptionsService.is("enableRtl")?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,console.warn("AG Grid: unknown key for navigation "+e)}r=!o||this.isCellGoodToFocusOn(o)}return o},t.prototype.isCellGoodToFocusOn=function(e){var t,o=e.column;switch(e.rowPinned){case"top":t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case"bottom":t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!!t&&!o.isSuppressNavigable(t)},t.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getRowBelow=function(e){var t=e.rowIndex,o=e.rowPinned;if(this.isLastRowInContainer(e))switch(o){case"bottom":return null;case"top":return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;default:return this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null}var r=this.rowModel.getRow(e.rowIndex),i=this.getNextStickyPosition(r);return i||{rowIndex:t+1,rowPinned:o}},t.prototype.getNextStickyPosition=function(e,t){if(this.gridOptionsService.is("groupRowsSticky")&&e&&e.sticky){var o=oh(this.rowRenderer.getStickyTopRowCtrls()).sort((function(e,t){return e.getRowNode().rowIndex-t.getRowNode().rowIndex})),r=t?-1:1,i=o.findIndex((function(t){return t.getRowNode().rowIndex===e.rowIndex})),n=o[i+r];return n?{rowIndex:n.getRowNode().rowIndex,rowPinned:null}:void 0}},t.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,o=e.rowIndex;return"top"===t?this.pinnedRowModel.getPinnedTopRowData().length-1<=o:"bottom"===t?this.pinnedRowModel.getPinnedBottomRowData().length-1<=o:this.paginationProxy.getPageLastRow()<=o},t.prototype.getRowAbove=function(e){var t=e.rowIndex,o=e.rowPinned;if(o?0===t:t===this.paginationProxy.getPageFirstRow())return"top"===o?null:o&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null;var r=this.rowModel.getRow(e.rowIndex),i=this.getNextStickyPosition(r,!0);return i||{rowIndex:t-1,rowPinned:o}},t.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},t.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:"top"}},t.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},t.prototype.getNextTabbedCellForwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),r=e.rowIndex,i=e.rowPinned,n=this.columnModel.getDisplayedColAfter(e.column);if(!n){n=t[0];var s=this.getRowBelow(e);if(o(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;r=s?s.rowIndex:null,i=s?s.rowPinned:null}return{rowIndex:r,column:n,rowPinned:i}},t.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),r=e.rowIndex,i=e.rowPinned,n=this.columnModel.getDisplayedColBefore(e.column);if(!n){n=ue(t);var s=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(o(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;r=s?s.rowIndex:null,i=s?s.rowPinned:null}return{rowIndex:r,column:n,rowPinned:i}},eh([U("columnModel")],t.prototype,"columnModel",void 0),eh([U("rowModel")],t.prototype,"rowModel",void 0),eh([U("rowRenderer")],t.prototype,"rowRenderer",void 0),eh([U("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),eh([U("paginationProxy")],t.prototype,"paginationProxy",void 0),t=eh([W("cellNavigationService")],t)}(Le),ih=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),nh=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},sh=function(e,t){return function(o,r){t(o,r,e)}},ah=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.consuming=!1,t}return ih(t,e),t.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},t.prototype.init=function(){this.addManagedListener(this.eventService,ke.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},t.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsService.get("alignedGrids");t&&t.forEach((function(t){if(t.api){var o=t.api.__getAlignedGridService();e(o)}}))}},t.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},t.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},t.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},t.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){t.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(e.left)}))},t.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},t.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e.getColId())})):e.column&&t.push(e.column.getColId()),t},t.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case ke.EVENT_COLUMN_MOVED:case ke.EVENT_COLUMN_VISIBLE:case ke.EVENT_COLUMN_PINNED:case ke.EVENT_COLUMN_RESIZED:var o=e;t.processColumnEvent(o);break;case ke.EVENT_COLUMN_GROUP_OPENED:var r=e;t.processGroupOpenedEvent(r);break;case ke.EVENT_COLUMN_PIVOT_CHANGED:console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))},t.prototype.processGroupOpenedEvent=function(e){var t=e.columnGroup,o=null;if(t){var r=t.getGroupId();o=this.columnModel.getProvidedColumnGroup(r)}t&&!o||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+t.isExpanded()),this.columnModel.setColumnGroupOpened(o,t.isExpanded(),"alignedGridChanged"))},t.prototype.processColumnEvent=function(e){var t,o=this,r=e.column,i=null;if(r&&(i=this.columnModel.getPrimaryColumn(r.getColId())),!r||i){var n=this.getMasterColumns(e);switch(e.type){case ke.EVENT_COLUMN_MOVED:var s=e,a=e.columnApi.getColumnState().map((function(e){return{colId:e.colId}}));this.columnModel.applyColumnState({state:a,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+s.toIndex);break;case ke.EVENT_COLUMN_VISIBLE:var l=e;a=e.columnApi.getColumnState().map((function(e){return{colId:e.colId,hide:e.hide}}));this.columnModel.applyColumnState({state:a},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+l.visible);break;case ke.EVENT_COLUMN_PINNED:var u=e;a=e.columnApi.getColumnState().map((function(e){return{colId:e.colId,pinned:e.pinned}}));this.columnModel.applyColumnState({state:a},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+u.pinned);break;case ke.EVENT_COLUMN_RESIZED:var c=e,p={};n.forEach((function(t){o.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+t.getActualWidth()),p[t.getId()]={key:t.getColId(),newWidth:t.getActualWidth()}})),null===(t=c.flexColumns)||void 0===t||t.forEach((function(e){p[e.getId()]&&delete p[e.getId()]})),this.columnModel.setColumnWidths(Object.values(p),!1,c.finished,"alignedGridChanged")}var d=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),h=this.gridOptionsService.get("alignedGrids");h&&h.forEach((function(e){e.api&&e.api.setAlwaysShowVerticalScroll(d)}))}},nh([U("columnModel")],t.prototype,"columnModel",void 0),nh([U("ctrlsService")],t.prototype,"ctrlsService",void 0),nh([sh(0,Y("loggerFactory"))],t.prototype,"setBeans",null),nh([B],t.prototype,"init",null),t=nh([W("alignedGridsService")],t)}(Le),lh=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),uh=function(){return(uh=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},ch=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ph=function(e,t){return function(o,r){t(o,r,e)}},dh=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},hh=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return lh(o,e),o.prototype.setBeans=function(e){this.logger=e.create("selectionService"),this.reset()},o.prototype.init=function(){var e=this;this.groupSelectsChildren=this.gridOptionsService.is("groupSelectsChildren"),this.addManagedPropertyListener("groupSelectsChildren",(function(t){return e.groupSelectsChildren=t.currentValue})),this.rowSelection=this.gridOptionsService.get("rowSelection"),this.addManagedPropertyListener("rowSelection",(function(t){return e.rowSelection=t.currentValue})),this.addManagedListener(this.eventService,ke.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},o.prototype.isMultiselect=function(){return"multiple"===this.rowSelection},o.prototype.setNodeSelected=function(e){var t,o=e.newValue,r=e.clearSelection,i=e.suppressFinishActions,n=e.rangeSelect,s=(e.event,e.node),a=e.source,l=void 0===a?"api":a,u=this.groupSelectsChildren&&!0===e.groupSelectsFiltered;if(void 0===s.id)return console.warn("AG Grid: cannot select node until id for node is known"),0;if(s.rowPinned)return console.warn("AG Grid: cannot select pinned rows"),0;if(s.footer)return this.setNodeSelected(uh(uh({},e),{node:s.sibling}));var c=this.getLastSelectedNode();if(n&&c&&(c!==s&&this.isMultiselect())){var p=this.selectRange(s,c,e.newValue,l);return this.setLastSelectedNode(s),p}var d=0;u&&s.group||s.selectThisNode(o,e.event,l)&&d++;if(this.groupSelectsChildren&&(null===(t=s.childrenAfterGroup)||void 0===t?void 0:t.length)&&(d+=this.selectChildren(s,o,u,l)),!i){if(o&&(r||!this.isMultiselect())&&(d+=this.clearOtherNodes(s,l)),d>0){this.updateGroupsFromChildrenSelections(l);var h={type:ke.EVENT_SELECTION_CHANGED,source:l};this.eventService.dispatchEvent(h)}o&&this.setLastSelectedNode(s)}return d},o.prototype.selectRange=function(e,t,o,r){var i=this;void 0===o&&(o=!0);var n=this.rowModel.getNodesInRangeForSelection(e,t),s=0;n.forEach((function(t){t.group&&i.groupSelectsChildren||!1===o&&e===t||t.selectThisNode(o,void 0,r)&&s++})),this.updateGroupsFromChildrenSelections(r);var a={type:ke.EVENT_SELECTION_CHANGED,source:r};return this.eventService.dispatchEvent(a),s},o.prototype.selectChildren=function(e,t,o,r){var i=o?e.childrenAfterAggFilter:e.childrenAfterGroup;if(Qr.missing(i))return 0;for(var n=0,s=0;s<i.length;s++)n+=i[s].setSelectedParams({newValue:t,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:o,source:r});return n},o.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},o.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},o.prototype.getSelectedNodes=function(){var e=[];return c(this.selectedNodes,(function(t,o){o&&e.push(o)})),e},o.prototype.getSelectedRows=function(){var e=[];return c(this.selectedNodes,(function(t,o){o&&o.data&&e.push(o.data)})),e},o.prototype.getSelectionCount=function(){return Object.values(this.selectedNodes).length},o.prototype.filterFromSelection=function(e){var t={};Object.entries(this.selectedNodes).forEach((function(o){var r=dh(o,2),i=r[0],n=r[1];n&&e(n)&&(t[i]=n)})),this.selectedNodes=t},o.prototype.updateGroupsFromChildrenSelections=function(e,t){if(!this.groupSelectsChildren)return!1;if("clientSide"!==this.rowModel.getType())return!1;var o=this.rowModel.getRootNode();t||(t=new Hp(!0,o)).setInactive();var r=!1;return t.forEachChangedNodeDepthFirst((function(t){if(t!==o){var i=t.calculateSelectedFromChildren();r=t.selectThisNode(null!==i&&i,void 0,e)||r}})),r},o.prototype.clearOtherNodes=function(e,t){var o=this,r={},i=0;return c(this.selectedNodes,(function(n,s){if(s&&s.id!==e.id){var a=o.selectedNodes[s.id];i+=a.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:t}),o.groupSelectsChildren&&s.parent&&(r[s.parent.id]=s.parent)}})),c(r,(function(e,o){var r=o.calculateSelectedFromChildren();o.selectThisNode(null!==r&&r,void 0,t)})),i},o.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:this.selectedNodes[t.id]=void 0)},o.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},o.prototype.syncInOldRowNode=function(e,o){if(t(o)&&e.id!==o.id&&o){var r=o.id;this.selectedNodes[r]==e&&(this.selectedNodes[o.id]=o)}},o.prototype.syncInNewRowNode=function(e){t(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},o.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},o.prototype.getBestCostNodeSelection=function(){if("clientSide"===this.rowModel.getType()){var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(o){for(var r=0,i=o.length;r<i;r++){var n=o[r];if(n.isSelected())t.push(n);else{var s=n;s.group&&s.children&&e(s.children)}}}(e),t}}},o.prototype.isEmpty=function(){var e=0;return c(this.selectedNodes,(function(t,o){o&&e++})),0===e},o.prototype.deselectAllRowNodes=function(e){var t=function(e){return e.selectThisNode(!1,void 0,r)},o="clientSide"===this.rowModel.getType(),r=e.source,i=e.justFiltered,n=e.justCurrentPage;if(n||i){if(!o)return void console.error("AG Grid: selecting just filtered only works when gridOptions.rowModelType='clientSide'");this.getNodesToSelect(i,n).forEach(t)}else c(this.selectedNodes,(function(e,o){o&&t(o)})),this.reset();o&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(r);var s={type:ke.EVENT_SELECTION_CHANGED,source:r};this.eventService.dispatchEvent(s)},o.prototype.getSelectAllState=function(e,t){var o=this,r=0,i=0;return this.getNodesToSelect(e,t).forEach((function(e){o.groupSelectsChildren&&e.group||(e.isSelected()?r++:e.selectable&&i++)})),(0!==r||0!==i)&&(r>0&&i>0?null:r>0)},o.prototype.getNodesToSelect=function(e,t){var o=this;if(void 0===e&&(e=!1),void 0===t&&(t=!1),"clientSide"!==this.rowModel.getType())throw new Error("selectAll only available when rowModelType='clientSide', ie not "+this.rowModel.getType());var r=[];if(t)return this.paginationProxy.forEachNodeOnPage((function(e){if(e.group)if(e.expanded)o.groupSelectsChildren||r.push(e);else{var t=function(e){var o;r.push(e),(null===(o=e.childrenAfterFilter)||void 0===o?void 0:o.length)&&e.childrenAfterFilter.forEach(t)};t(e)}else r.push(e)})),r;var i=this.rowModel;return e?(i.forEachNodeAfterFilter((function(e){r.push(e)})),r):(i.forEachNode((function(e){r.push(e)})),r)},o.prototype.selectAllRowNodes=function(e){if("clientSide"!==this.rowModel.getType())throw new Error("selectAll only available when rowModelType='clientSide', ie not "+this.rowModel.getType());var t=e.source,o=e.justFiltered,r=e.justCurrentPage;this.getNodesToSelect(o,r).forEach((function(e){return e.selectThisNode(!0,void 0,t)})),"clientSide"===this.rowModel.getType()&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(t);var i={type:ke.EVENT_SELECTION_CHANGED,source:t};this.eventService.dispatchEvent(i)},o.prototype.getServerSideSelectionState=function(){return null},o.prototype.setServerSideSelectionState=function(e){},ch([U("rowModel")],o.prototype,"rowModel",void 0),ch([U("paginationProxy")],o.prototype,"paginationProxy",void 0),ch([ph(0,Y("loggerFactory"))],o.prototype,"setBeans",null),ch([B],o.prototype,"init",null),o=ch([W("selectionService")],o)}(Le),fh=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},gh=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){void 0===e&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnModel.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnModel.getColumnGroup(e,t)},e.prototype.getProvidedColumnGroup=function(e){return this.columnModel.getProvidedColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnModel.getDisplayNameForColumn(e,t)||""},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnModel.getDisplayNameForColumnGroup(e,t)||""},e.prototype.getColumn=function(e){return this.columnModel.getPrimaryColumn(e)},e.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},e.prototype.applyColumnState=function(e){return this.columnModel.applyColumnState(e,"api")},e.prototype.getColumnState=function(){return this.columnModel.getColumnState()},e.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},e.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnModel.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnModel.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnModel.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnModel.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnModel.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnModel.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnModel.setColumnsPinned(e,t,"api")},e.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},e.prototype.moveColumn=function(e,t){this.columnModel.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnModel.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnModel.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnModel.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnModel.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,o,r){void 0===o&&(o=!0),this.columnModel.setColumnWidths([{key:e,newWidth:t}],!1,o,r)},e.prototype.setColumnWidths=function(e,t,o){void 0===t&&(t=!0),this.columnModel.setColumnWidths(e,!1,t,o)},e.prototype.setPivotMode=function(e){this.columnModel.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},e.prototype.getPivotResultColumn=function(e,t){return this.columnModel.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnModel.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnModel.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnModel.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnModel.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnModel.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnModel.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnModel.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnModel.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnModel.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnModel.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnModel.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnModel.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnModel.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnModel.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnModel.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},e.prototype.autoSizeColumn=function(e,t){return this.columnModel.autoSizeColumn(e,t,"api")},e.prototype.autoSizeColumns=function(e,t){this.columnModel.autoSizeColumns({columns:e,skipHeader:t})},e.prototype.autoSizeAllColumns=function(e){this.columnModel.autoSizeAllColumns(e,"api")},e.prototype.setPivotResultColumns=function(e){this.columnModel.setSecondaryColumns(e,"api")},e.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(Qr.removeAllReferences.bind(window,this,"Column API"),100)},e.prototype.getAllColumns=function(){return tt("28.0","getAllColumns","getColumns"),this.getColumns()},e.prototype.getOriginalColumnGroup=function(e){return tt("27.0","getOriginalColumnGroup","getProvidedColumnGroup"),this.columnModel.getProvidedColumnGroup(e)},e.prototype.getPrimaryColumns=function(){return tt("28.0","getPrimaryColumns","getColumns"),this.getColumns()},e.prototype.getSecondaryColumns=function(){return tt("28.0","getSecondaryColumns","getPivotResultColumns"),this.getPivotResultColumns()},e.prototype.setSecondaryColumns=function(e){tt("28.0","setSecondaryColumns","setPivotResultColumns"),this.setPivotResultColumns(e)},e.prototype.getSecondaryPivotColumn=function(e,t){return tt("28.0","getSecondaryPivotColumn","getPivotResultColumn"),this.getPivotResultColumn(e,t)},fh([U("columnModel")],e.prototype,"columnModel",void 0),fh([j],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=fh([W("columnApi")],e)}(),vh=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),yh=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},mh=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.initialised=!1,t}return vh(r,e),r.prototype.init=function(){var e=this;this.cellExpressions=this.gridOptionsService.is("enableCellExpressions"),this.isTreeData=this.gridOptionsService.is("treeData"),this.initialised=!0,this.eventService.addEventListener(ke.EVENT_CELL_VALUE_CHANGED,(function(t){return e.callColumnCellValueChangedHandler(t)}),this.gridOptionsService.useAsyncEvents()),this.addManagedPropertyListener("treeData",(function(t){return e.isTreeData=t.currentValue}))},r.prototype.getValue=function(e,t,o,r){if(void 0===o&&(o=!1),void 0===r&&(r=!1),this.initialised||this.init(),t){var i,n=e.getColDef(),s=n.field,a=e.getColId(),l=t.data,u=t.groupData&&void 0!==t.groupData[a],c=!r&&t.aggData&&void 0!==t.aggData[a];if(o&&n.filterValueGetter?i=this.executeFilterValueGetter(n.filterValueGetter,l,e,t):this.isTreeData&&c?i=t.aggData[a]:this.isTreeData&&n.valueGetter?i=this.executeValueGetter(n.valueGetter,l,e,t):this.isTreeData&&s&&l?i=C(l,s,e.isFieldContainsDots()):u?i=t.groupData[a]:c?i=t.aggData[a]:n.valueGetter?i=this.executeValueGetter(n.valueGetter,l,e,t):s&&l&&(i=C(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"==typeof i&&0===i.indexOf("=")){var p=i.substring(1);i=this.executeValueGetter(p,l,e,t)}if(null==i){var d=this.getOpenedGroup(t,e);if(null!=d)return d}return i}},r.prototype.getOpenedGroup=function(e,t){if(this.gridOptionsService.is("showOpenedGroup")&&t.getColDef().showRowGroup)for(var o=t.getColDef().showRowGroup,r=e.parent;null!=r;){if(r.rowGroupColumn&&(!0===o||o===r.rowGroupColumn.getColId()))return r.key;r=r.parent}},r.prototype.setValue=function(e,r,i,n){var s=this.columnModel.getPrimaryColumn(r);if(!e||!s)return!1;o(e.data)&&(e.data={});var a=s.getColDef(),l=a.field,u=a.valueSetter;if(o(l)&&o(u))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;var c,p={node:e,data:e.data,oldValue:this.getValue(s,e),newValue:i,colDef:s.getColDef(),column:s,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};if(p.newValue=i,void 0===(c=t(u)?"function"==typeof u?u(p):this.expressionService.evaluate(u,p):this.setValueUsingField(e.data,l,i,s.isFieldContainsDots()))&&(c=!0),!c)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),p.newValue=this.getValue(s,e);var d={type:ke.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:p.column,api:p.api,columnApi:p.columnApi,colDef:p.colDef,context:p.context,data:e.data,node:e,oldValue:p.oldValue,newValue:p.newValue,value:p.newValue,source:n};return this.eventService.dispatchEvent(d),!0},r.prototype.callColumnCellValueChangedHandler=function(e){var t=e.colDef.onCellValueChanged;"function"==typeof t&&t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,columnApi:e.columnApi,context:e.context})},r.prototype.setValueUsingField=function(e,t,o,r){if(!t)return!1;var i=!1;if(r)for(var n=t.split("."),s=e;n.length>0&&s;){var a=n.shift();0===n.length?(i=s[a]==o)||(s[a]=o):s=s[a]}else(i=e[t]==o)||(e[t]=o);return!i},r.prototype.executeFilterValueGetter=function(e,t,o,r){var i={data:t,node:r,column:o,colDef:o.getColDef(),api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,getValue:this.getValueCallback.bind(this,r)};return"function"==typeof e?e(i):this.expressionService.evaluate(e,i)},r.prototype.executeValueGetter=function(e,t,o,r){var i=o.getColId(),n=this.valueCache.getValue(r,i);if(void 0!==n)return n;var s,a={data:t,node:r,column:o,colDef:o.getColDef(),api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,getValue:this.getValueCallback.bind(this,r)};return s="function"==typeof e?e(a):this.expressionService.evaluate(e,a),this.valueCache.setValue(r,i,s),s},r.prototype.getValueCallback=function(e,t){var o=this.columnModel.getPrimaryColumn(t);return o?this.getValue(o,e):null},r.prototype.getKeyForNode=function(e,t){var o=this.getValue(e,t),r=e.getColDef().keyCreator,i=o;r&&(i=r({value:o,colDef:e.getColDef(),column:e,node:t,data:t.data,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}));return"string"==typeof i||null==i||"[object Object]"===(i=String(i))&&O((function(){console.warn("AG Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key")}),"getKeyForNode - warn about [object,object]"),i},yh([U("expressionService")],r.prototype,"expressionService",void 0),yh([U("columnModel")],r.prototype,"columnModel",void 0),yh([U("valueCache")],r.prototype,"valueCache",void 0),yh([B],r.prototype,"init",null),r=yh([W("valueService")],r)}(Le),Ch=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),wh=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Sh=function(e,t){return function(o,r){t(o,r,e)}},Eh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.expressionToFunctionCache={},t}return Ch(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},t.prototype.evaluate=function(e,t){if("string"==typeof e)return this.evaluateExpression(e,t);console.error("AG Grid: value should be either a string or a function",e)},t.prototype.evaluateExpression=function(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(o){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",t),console.log("Exception = "+o),null}},t.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=o,o},t.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},wh([Sh(0,Y("loggerFactory"))],t.prototype,"setBeans",null),t=wh([W("expressionService")],t)}(Le),Rh=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Oh=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},bh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.templateCache={},t.waitingCallbacks={},t}return Rh(t,e),t.prototype.getTemplate=function(e,t){var o=this.templateCache[e];if(o)return o;var r=this.waitingCallbacks[e],i=this;if(!r){r=[],this.waitingCallbacks[e]=r;var n=new XMLHttpRequest;n.onload=function(){i.handleHttpResult(this,e)},n.open("GET",e),n.send()}return t&&r.push(t),null},t.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var o=this.waitingCallbacks[t],r=0;r<o.length;r++){(0,o[r])()}}else console.warn("AG Grid: Unable to get template error "+e.status+" - "+t)},t=Oh([W("templateService")],t)}(Le),Th=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ph=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Dh=function(e,t){return function(o,r){t(o,r,e)}},_h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Th(t,e),t.prototype.setBeans=function(e){this.logging=e.is("debug")},t.prototype.create=function(e){return new Ah(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},Ph([Dh(0,Y("gridOptionsService"))],t.prototype,"setBeans",null),t=Ph([W("loggerFactory")],t)}(Le),Ah=function(){function e(e,t){this.name=e,this.isLoggingFunc=t}return e.prototype.isLogging=function(){return this.isLoggingFunc()},e.prototype.log=function(e){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+e)},e}(),Nh=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Mh=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Fh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nh(t,e),t.prototype.setComp=function(e,t,o){var r=this;this.view=e,this.eGridHostDiv=t,this.eGui=o,this.dragAndDropService.addDropTarget({getContainer:function(){return r.eGui},isInterestedIn:function(e){return e===exports.DragSourceType.HeaderCell||e===exports.DragSourceType.ToolPanel},getIconName:function(){return Rs.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(t),this.createManagedBean(new Va(this.view)),this.addRtlSupport(),this.addManagedListener(this,ke.EVENT_KEYBOARD_FOCUS,(function(){r.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,ke.EVENT_MOUSE_FOCUS,(function(){r.view.addOrRemoveKeyboardFocusClass(!1)}));var i=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return i()})),this.ctrlsService.registerGridCtrl(this)},t.prototype.isDetailGrid=function(){var e,t=this.focusService.findTabbableParent(this.getGui());return(null===(e=null==t?void 0:t.getAttribute("row-id"))||void 0===e?void 0:e.startsWith("detail"))||!1},t.prototype.showDropZones=function(){return ee.isRegistered(exports.ModuleNames.RowGroupingModule)},t.prototype.showSideBar=function(){return ee.isRegistered(exports.ModuleNames.SideBarModule)},t.prototype.showStatusBar=function(){return ee.isRegistered(exports.ModuleNames.StatusBarModule)},t.prototype.showWatermark=function(){return ee.isRegistered(exports.ModuleNames.EnterpriseCoreModule)},t.prototype.onGridSizeChanged=function(){var e={type:ke.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)},t.prototype.addRtlSupport=function(){var e=this.gridOptionsService.is("enableRtl")?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},t.prototype.destroyGridUi=function(){this.view.destroyGridUi()},t.prototype.getGui=function(){return this.eGui},t.prototype.setResizeCursor=function(e){this.view.setCursor(e?"ew-resize":null)},t.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?"none":null)},t.prototype.focusNextInnerContainer=function(e){var t=this.gridOptionsService.getDocument(),o=this.view.getFocusableContainers(),r=o.findIndex((function(e){return e.contains(t.activeElement)}))+(e?-1:1);return!(r<=0||r>=o.length)&&this.focusService.focusInto(o[r])},t.prototype.focusInnerElement=function(e){var t=this.view.getFocusableContainers();if(e){if(t.length>1)return this.focusService.focusInto(ue(t),!0);var o=ue(this.columnModel.getAllDisplayedColumns());if(this.focusService.focusGridView(o,!0))return!0}return this.focusService.focusFirstHeader()},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.view.forceFocusOutOfContainer(e)},Mh([U("focusService")],t.prototype,"focusService",void 0),Mh([U("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Mh([U("columnModel")],t.prototype,"columnModel",void 0),Mh([U("ctrlsService")],t.prototype,"ctrlsService",void 0),Mh([U("mouseEventService")],t.prototype,"mouseEventService",void 0),Mh([U("dragAndDropService")],t.prototype,"dragAndDropService",void 0),t}(Le),Lh=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),xh=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ih=function(e){function t(t){var o=e.call(this)||this;return o.eGridDiv=t,o}return Lh(t,e),t.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridComp");var t={destroyGridUi:function(){return e.destroyBean(e)},setRtlClass:function(t){return e.addCssClass(t)},addOrRemoveKeyboardFocusClass:function(t){return e.addOrRemoveCssClass(Vd.AG_KEYBOARD_FOCUS,t)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(t){e.getGui().style.userSelect=null!=t?t:"",e.getGui().style.webkitUserSelect=null!=t?t:""},setCursor:function(t){e.getGui().style.cursor=null!=t?t:""}};this.ctrl=this.createManagedBean(new Fh);var o=this.createTemplate();this.setTemplate(o),this.ctrl.setComp(t,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(t){return e.ctrl.focusInnerElement(t)}})},t.prototype.insertGridIntoDom=function(){var e=this,t=this.getGui();this.eGridDiv.appendChild(t),this.addDestroyFunc((function(){e.eGridDiv.removeChild(t),e.logger.log("Grid removed from DOM")}))},t.prototype.updateLayoutClasses=function(e,t){var o=this.eRootWrapperBody.classList;o.toggle(exports.LayoutCssClasses.AUTO_HEIGHT,t.autoHeight),o.toggle(exports.LayoutCssClasses.NORMAL,t.normal),o.toggle(exports.LayoutCssClasses.PRINT,t.print),this.addOrRemoveCssClass(exports.LayoutCssClasses.AUTO_HEIGHT,t.autoHeight),this.addOrRemoveCssClass(exports.LayoutCssClasses.NORMAL,t.normal),this.addOrRemoveCssClass(exports.LayoutCssClasses.PRINT,t.print)},t.prototype.createTemplate=function(){return'<div class="ag-root-wrapper" role="presentation">\n '+(this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n <div class="ag-root-wrapper-body" ref="rootWrapperBody" role="presentation">\n <ag-grid-body ref="gridBody"></ag-grid-body>\n '+(this.ctrl.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n </div>\n "+(this.ctrl.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n <ag-pagination></ag-pagination>\n "+(this.ctrl.showWatermark()?"<ag-watermark></ag-watermark>":"")+"\n </div>"},t.prototype.getFocusableElement=function(){return this.eRootWrapperBody},t.prototype.getFocusableContainers=function(){var e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter((function(e){return pr(e)}))},xh([U("loggerFactory")],t.prototype,"loggerFactory",void 0),xh([ui("gridBody")],t.prototype,"gridBodyComp",void 0),xh([ui("sideBar")],t.prototype,"sideBarComp",void 0),xh([ui("rootWrapperBody")],t.prototype,"eRootWrapperBody",void 0),xh([B],t.prototype,"postConstruct",null),t}(vd),Gh=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Hh=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Vh=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},kh=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Vh(arguments[t]));return e},Bh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var o;return Gh(t,e),o=t,t.prototype.progressSort=function(e,t,o){var r=this.getNextSortDirection(e);this.setSortForColumn(e,r,t,o)},t.prototype.setSortForColumn=function(e,t,o,r){"asc"!==t&&"desc"!==t&&(t=null);var i=[e];if(this.gridOptionsService.isColumnsSortingCoupledToGroup()&&e.getColDef().showRowGroup){e.getColDef().field||(i=[]);var n=this.columnModel.getSourceColumnsForGroupColumn(e),s=null==n?void 0:n.filter((function(e){return e.getColDef().sortable}));s&&(i=kh(i,s))}i.forEach((function(e){return e.setSort(t,r)})),(o||this.gridOptionsService.is("alwaysMultiSort"))&&!this.gridOptionsService.is("suppressMultiSort")||this.clearSortBarTheseColumns(i,r),this.updateSortIndex(e),this.dispatchSortChangedEvents(r)},t.prototype.updateSortIndex=function(e){var t=this.gridOptionsService.isColumnsSortingCoupledToGroup(),o=this.columnModel.getGroupDisplayColumnForGroup(e.getId()),r=t&&o||e,i=this.getColumnsWithSortingOrdered(!0);this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(e){return e.setSortIndex(null)}));var n=i.filter((function(e){return e!==r}));(r.getSort()?kh(n,[r]):n).forEach((function(e,t){return e.setSortIndex(t)}))},t.prototype.onSortChanged=function(e){this.dispatchSortChangedEvents(e)},t.prototype.isSortActive=function(){var e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return!!e.getSort()}));return e&&e.length>0},t.prototype.dispatchSortChangedEvents=function(e){var t={type:ke.EVENT_SORT_CHANGED,source:e};this.eventService.dispatchEvent(t)},t.prototype.clearSortBarTheseColumns=function(e,t){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(o){e.includes(o)||o.setSort(void 0,t)}))},t.prototype.getNextSortDirection=function(e){var t;if(t=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsService.get("sortingOrder")?this.gridOptionsService.get("sortingOrder"):o.DEFAULT_SORTING_ORDER,!Array.isArray(t)||t.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+t),null;var r=e.getColDef().field?e.getSort():this.getDisplaySortForColumn(e),i=t[0];if("mixed"!==r){var n=t.indexOf(r),s=n<0,a=n==t.length-1;i=s||a?t[0]:t[n+1]}return o.DEFAULT_SORTING_ORDER.indexOf(i)<0?(console.warn("AG Grid: invalid sort type "+i),null):i},t.prototype.getIndexedSortMap=function(e){var t=this;void 0===e&&(e=!1);var o=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return!!e.getSort()}));!e&&this.columnModel.isPivotMode()&&(o=o.filter((function(e){return!!e.getAggFunc()||!e.isPrimary()||t.columnModel.getGroupDisplayColumnForGroup(e.getId())})));var r=this.columnModel.getRowGroupColumns().filter((function(e){return!!e.getSort()})),i=this.gridOptionsService.isColumnsSortingCoupledToGroup()&&!!r.length;i&&(o=kh(new Set(o.map((function(e){var o;return null!==(o=t.columnModel.getGroupDisplayColumnForGroup(e.getId()))&&void 0!==o?o:e})))));var n={};o.forEach((function(e,t){return n[e.getId()]=t})),o.sort((function(e,t){var o=e.getSortIndex(),r=t.getSortIndex();return null!=o&&null!=r?o-r:null==o&&null==r?n[e.getId()]>n[t.getId()]?1:-1:null==r?-1:1}));var s=new Map;return o.forEach((function(e,t){return s.set(e,t)})),i&&r.forEach((function(e){var o=t.columnModel.getGroupDisplayColumnForGroup(e.getId());s.set(e,s.get(o))})),s},t.prototype.getColumnsWithSortingOrdered=function(e){return void 0===e&&(e=!1),kh(this.getIndexedSortMap(e).entries()).sort((function(e,t){var o=Vh(e,2),r=(o[0],o[1]),i=Vh(t,2);i[0];return r-i[1]})).map((function(e){return Vh(e,1)[0]}))},t.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered(!0).map((function(e){return{sort:e.getSort(),colId:e.getId()}}))},t.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{sort:e.getSort(),column:e}}))},t.prototype.canColumnDisplayMixedSort=function(e){var t=this.gridOptionsService.isColumnsSortingCoupledToGroup(),o=!!e.getColDef().showRowGroup;return t&&o},t.prototype.getDisplaySortForColumn=function(e){var t=this.columnModel.getSourceColumnsForGroupColumn(e);if(!this.canColumnDisplayMixedSort(e)||!(null==t?void 0:t.length))return e.getSort();var o=!!e.getColDef().field?kh([e],t):t,r=o[0].getSort();return o.every((function(e){return e.getSort()==r}))?r:"mixed"},t.prototype.getDisplaySortIndexForColumn=function(e){return this.getIndexedSortMap().get(e)},t.DEFAULT_SORTING_ORDER=["asc","desc",null],Hh([U("columnModel")],t.prototype,"columnModel",void 0),t=o=Hh([W("sortController")],t)}(Le),jh=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Wh=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Uh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jh(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:ke.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:ke.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.isHovered=function(e){return!!this.selectedColumns&&this.selectedColumns.indexOf(e)>=0},t=Wh([W("columnHoverService")],t)}(Le),zh=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Kh=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Yh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.executeNextFuncs=[],t.executeLaterFuncs=[],t.active=!1,t.animationThreadCount=0,t}return zh(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){return e.gridBodyCtrl=t.gridBodyCtrl}))},t.prototype.isActive=function(){return this.active},t.prototype.start=function(){this.active||this.gridOptionsService.is("suppressColumnMoveAnimation")||this.gridOptionsService.is("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0)},t.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},t.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},t.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},t.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){e.animationThreadCount===t&&e.gridBodyCtrl.setColumnMovingCss(!1)}))},t.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout((function(){return e.forEach((function(e){return e()}))}),0),window.setTimeout((function(){return t.forEach((function(e){return e()}))}),300))},Kh([U("ctrlsService")],t.prototype,"ctrlsService",void 0),Kh([B],t.prototype,"postConstruct",null),t=Kh([W("columnAnimationService")],t)}(Le),qh=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Qh=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Xh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qh(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.centerRowContainerCon=t.centerRowContainerCtrl,e.addManagedListener(e.eventService,ke.EVENT_BODY_HEIGHT_CHANGED,e.onBodyHeightChanged.bind(e)),e.addManagedListener(e.eventService,ke.EVENT_SCROLL_VISIBILITY_CHANGED,e.onScrollVisibilityChanged.bind(e)),e.checkPageSize()}))},t.prototype.notActive=function(){return!this.gridOptionsService.is("paginationAutoPageSize")},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsService.getRowHeightAsNumber(),t=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(t>0){var o=Math.floor(t/e);this.gridOptionsService.set("paginationPageSize",o)}}},Qh([U("ctrlsService")],t.prototype,"ctrlsService",void 0),Qh([B],t.prototype,"postConstruct",null),t=Qh([W("paginationAutoPageSizeService")],t)}(Le),Jh=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Zh=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},$h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cacheVersion=0,t}return Jh(t,e),t.prototype.init=function(){this.active=this.gridOptionsService.is("valueCache"),this.neverExpires=this.gridOptionsService.is("valueCacheNeverExpires")},t.prototype.onDataChanged=function(){this.neverExpires||this.expire()},t.prototype.expire=function(){this.cacheVersion++},t.prototype.setValue=function(e,t,o){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=o)},t.prototype.getValue=function(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]},Zh([B],t.prototype,"init",null),t=Zh([W("valueCache")],t)}(Le),ef=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),tf=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},of=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ef(t,e),t.prototype.init=function(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,ke.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){"paste"!==e.source&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsService.is("suppressChangeDetection")){if(this.clientSideRowModel&&!e.isRowPinned()){var o=this.gridOptionsService.is("aggregateOnlyChangedColumns"),r=new Hp(o,this.clientSideRowModel.getRootNode());r.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(r)}this.rowRenderer.refreshCells()}},tf([U("rowModel")],t.prototype,"rowModel",void 0),tf([U("rowRenderer")],t.prototype,"rowRenderer",void 0),tf([B],t.prototype,"init",null),t=tf([W("changeDetectionService")],t)}(Le),rf=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),nf=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},sf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rf(t,e),t.prototype.adaptFunction=function(e,t){var o=this.componentMetadataProvider.retrieve(e);return o&&o.functionAdapter?o.functionAdapter(t):null},t.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){return this.eGui},t.prototype.init=function(t){var o=e(t),r=typeof o;this.eGui="string"!==r&&"number"!==r&&"boolean"!==r?null!=o?o:dr("<span></span>"):dr("<span>"+o+"</span>")},t}()},t.prototype.doesImplementIComponent=function(e){return!!e&&(e.prototype&&"getGui"in e.prototype)},nf([U("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),t=nf([W("agComponentUtils")],t)}(Le),af=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),lf=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},uf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return af(t,e),t.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},t.prototype.retrieve=function(e){return this.componentMetaData[e]},lf([U("agComponentUtils")],t.prototype,"agComponentUtils",void 0),lf([B],t.prototype,"postConstruct",null),t=lf([W("componentMetadataProvider")],t)}(Le),cf=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),pf=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},df=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},hf=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(df(arguments[t]));return e},ff={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:32,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:24,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:240}},gf={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},vf=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.calculatedSizes={},t}return cf(o,e),o.prototype.postConstruct=function(){var e,t=this,o=null!==(e=this.getTheme().el)&&void 0!==e?e:this.eGridDiv;this.mutationObserver=new MutationObserver((function(){t.calculatedSizes={},t.fireGridStylesChangedEvent()})),this.mutationObserver.observe(o||this.eGridDiv,{attributes:!0,attributeFilter:["class"]})},o.prototype.fireGridStylesChangedEvent=function(){var e={type:ke.EVENT_GRID_STYLES_CHANGED};this.eventService.dispatchEvent(e)},o.prototype.getSassVariable=function(e){var t=this.getTheme(),o=t.themeFamily,r=t.el;if(o&&0===o.indexOf("ag-theme")){this.calculatedSizes||(this.calculatedSizes={}),this.calculatedSizes[o]||(this.calculatedSizes[o]={});var i=this.calculatedSizes[o][e];return null!=i?i:(this.calculatedSizes[o][e]=this.calculateValueForSassProperty(e,o,r),this.calculatedSizes[o][e])}},o.prototype.calculateValueForSassProperty=function(e,t,o){var r,i="ag-theme-"+(t.match("material")?"material":t.match("balham")?"balham":t.match("alpine")?"alpine":"custom"),n=ff[i][e],s=this.gridOptionsService.getDocument();if(o||(o=this.eGridDiv),!gf[e])return n;var a=gf[e],l=s.createElement("div"),u=Array.from(o.classList);(r=l.classList).add.apply(r,hf([t],u)),l.style.position="absolute";var c=a.reduce((function(e,t){var o=s.createElement("div");return o.style.position="static",o.classList.add(t),e.appendChild(o),o}),l),p=0;if(s.body){s.body.appendChild(l);var d=-1!==e.toLowerCase().indexOf("height")?"height":"width";p=parseInt(window.getComputedStyle(c)[d],10),s.body.removeChild(l)}return p||n},o.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},o.prototype.chartMenuPanelWidth=function(){return this.getSassVariable("chartMenuPanelWidth")},o.prototype.getTheme=function(){for(var e=/\bag-(material|(?:theme-([\w\-]*)))\b/g,t=this.eGridDiv,o=null,r=[];t;){if(o=e.exec(t.className)){var i=t.className.match(e);i&&(r=i);break}t=t.parentElement||void 0}if(!o)return{allThemes:r};var n=o[0];return{theme:n,el:t,themeFamily:n.replace(/-dark$/,""),allThemes:r}},o.prototype.getFromTheme=function(e,t){var o;return null!==(o=this.getSassVariable(t))&&void 0!==o?o:e},o.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},o.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},o.prototype.setRowHeightVariable=function(e){var t=e+"px";this.eGridDiv.style.getPropertyValue("--ag-line-height").trim()!=t&&this.eGridDiv.style.setProperty("--ag-line-height",t)},o.prototype.getMinColWidth=function(){var e=this.getFromTheme(null,"headerCellMinWidth");return t(e)?Math.max(e,10):10},o.prototype.destroy=function(){this.calculatedSizes=null,this.mutationObserver&&this.mutationObserver.disconnect(),e.prototype.destroy.call(this)},pf([U("eGridDiv")],o.prototype,"eGridDiv",void 0),pf([B],o.prototype,"postConstruct",null),o=pf([W("environment")],o)}(Le),yf=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),mf=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Cf=function(e,t){return function(o,r){t(o,r,e)}},wf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return yf(t,e),t.prototype.agWire=function(e){this.logger=e.create("RowContainerHeightService")},t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,ke.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=_o(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},t.prototype.isStretching=function(){return this.stretching},t.prototype.getDivStretchOffset=function(){return this.divStretchOffset},t.prototype.updateOffset=function(){if(this.stretching){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+t+" ("+this.pixelsToShave+" * "+e+")"),this.setDivStretchOffset(t)},t.prototype.setUiContainerHeight=function(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:ke.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},t.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},t.prototype.setDivStretchOffset=function(e){var t="number"==typeof e?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventService.dispatchEvent({type:ke.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.stretching=null!=e&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.divStretchOffset},t.prototype.getUiBodyHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return e.bottom-e.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t},mf([U("ctrlsService")],t.prototype,"ctrlsService",void 0),mf([Cf(0,Y("loggerFactory"))],t.prototype,"agWire",null),mf([B],t.prototype,"postConstruct",null),t=mf([W("rowContainerHeightService")],t)}(Le),Sf=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Ef=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Rf=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return Sf(o,e),o.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsService.is("groupSelectsChildren"),this.isRowSelectableFunc=this.gridOptionsService.get("isRowSelectable")},o.prototype.updateSelectableAfterGrouping=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterGroup}))}},o.prototype.recurseDown=function(e,o){var r=this;e&&e.forEach((function(e){if(e.group){var i;if(e.hasChildren()&&r.recurseDown(o(e),o),r.groupSelectsChildren)i=t((o(e)||[]).find((function(e){return!0===e.selectable})));else i=!!r.isRowSelectableFunc&&r.isRowSelectableFunc(e);e.setRowSelectable(i)}}))},Ef([B],o.prototype,"init",null),o=Ef([W("selectableService")],o)}(Le),Of=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),bf=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Tf=function(e){function t(){var t=e.call(this)||this;return t.previousAndFirstButtonsDisabled=!1,t.nextButtonDisabled=!1,t.lastButtonDisabled=!1,t.areListenersSetup=!1,t}return Of(t,e),t.prototype.postConstruct=function(){var e=this.gridOptionsService.is("enableRtl");this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",Fr(e?"last":"first",this.gridOptionsService)),this.btPrevious.insertAdjacentElement("afterbegin",Fr(e?"next":"previous",this.gridOptionsService)),this.btNext.insertAdjacentElement("afterbegin",Fr(e?"previous":"next",this.gridOptionsService)),this.btLast.insertAdjacentElement("afterbegin",Fr(e?"first":"last",this.gridOptionsService)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.onPaginationChanged()},t.prototype.onPaginationChanged=function(){var e=this.gridOptionsService.is("pagination")&&!this.gridOptionsService.is("suppressPaginationPanel");this.setDisplayed(e),e&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels())},t.prototype.setupListeners=function(){var e=this;this.areListenersSetup||(this.addManagedListener(this.eventService,ke.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach((function(t){var o=t.el,r=t.fn;e.addManagedListener(o,"click",r),e.addManagedListener(o,"keydown",(function(e){e.key!==xr.ENTER&&e.key!==xr.SPACE||(e.preventDefault(),r())}))})),this.areListenersSetup=!0)},t.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),o=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(o)},t.prototype.formatNumber=function(e){var t=this.gridOptionsService.getCallback("paginationNumberFormatter");if(t)return t({value:e});var o=this.localeService.getLocaleTextFunc();return Ho(e,o("thousandSeparator",","),o("decimalSeparator","."))},t.prototype.getTemplate=function(){var e=this.localeService.getLocaleTextFunc(),t=e("page","Page"),o=e("to","to"),r=e("of","of"),i=e("firstPage","First Page"),n=e("previousPage","Previous Page"),s=e("nextPage","Next Page"),a=e("lastPage","Last Page"),l=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+l+'">\n <span class="ag-paging-row-summary-panel" role="status">\n <span id="ag-'+l+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+l+'-to">'+o+'</span>\n <span id="ag-'+l+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n <span id="ag-'+l+'-of">'+r+'</span>\n <span id="ag-'+l+'-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n </span>\n <span class="ag-paging-page-summary-panel" role="presentation">\n <div ref="btFirst" class="ag-paging-button" role="button" aria-label="'+i+'"></div>\n <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+n+'"></div>\n <span class="ag-paging-description" role="status">\n <span id="ag-'+l+'-start-page">'+t+'</span>\n <span id="ag-'+l+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n <span id="ag-'+l+'-of-page">'+r+'</span>\n <span id="ag-'+l+'-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n </span>\n <div ref="btNext" class="ag-paging-button" role="button" aria-label="'+s+'"></div>\n <div ref="btLast" class="ag-paging-button" role="button" aria-label="'+a+'"></div>\n </span>\n </div>'},t.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},t.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var r=this.isZeroPagesToDisplay(),i=t&&e===o-1;this.nextButtonDisabled=i||r,this.lastButtonDisabled=!t||r||e===o-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},t.prototype.toggleButtonDisabled=function(e,t){Qt(e,t),e.classList.toggle("ag-disabled",t),t?e.removeAttribute("tabindex"):e.setAttribute("tabindex","0")},t.prototype.updateRowLabels=function(){var e,t,o=this.paginationProxy.getCurrentPage(),r=this.paginationProxy.getPageSize(),i=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?e=t=0:(t=(e=r*o+1)+r-1,i&&t>n&&(t=n)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.rowNodeBlockLoader.isLoading()?this.lbLastRowOnPage.innerHTML="?":this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),o=e?this.paginationProxy.getMasterRowCount():null;if(1===o){var r=this.paginationProxy.getRow(0);if(r&&r.group&&!(r.groupData||r.aggData))return void this.setTotalLabelsToZero()}if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var i=this.localeService.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=i,this.lbRecordCount.innerHTML=i}},t.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},bf([U("paginationProxy")],t.prototype,"paginationProxy",void 0),bf([U("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),bf([ui("btFirst")],t.prototype,"btFirst",void 0),bf([ui("btPrevious")],t.prototype,"btPrevious",void 0),bf([ui("btNext")],t.prototype,"btNext",void 0),bf([ui("btLast")],t.prototype,"btLast",void 0),bf([ui("lbRecordCount")],t.prototype,"lbRecordCount",void 0),bf([ui("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),bf([ui("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),bf([ui("lbCurrent")],t.prototype,"lbCurrent",void 0),bf([ui("lbTotal")],t.prototype,"lbTotal",void 0),bf([B],t.prototype,"postConstruct",null),t}(li),Pf=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Df=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};!function(e){e[e.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(Ud||(Ud={}));var _f=function(e){function t(){var o=e.call(this,t.TEMPLATE)||this;return o.inProgress=!1,o.destroyRequested=!1,o.manuallyDisplayed=!1,o}return Pf(t,e),t.prototype.updateLayoutClasses=function(e,t){var o=this.eOverlayWrapper.classList;o.toggle(exports.LayoutCssClasses.AUTO_HEIGHT,t.autoHeight),o.toggle(exports.LayoutCssClasses.NORMAL,t.normal),o.toggle(exports.LayoutCssClasses.PRINT,t.print)},t.prototype.postConstruct=function(){this.createManagedBean(new Va(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.addManagedListener(this.eventService,ke.EVENT_ROW_DATA_UPDATED,this.onRowDataUpdated.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsService.isRowModelType("clientSide")&&!this.gridOptionsService.get("rowData")&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},t.prototype.setWrapperTypeClass=function(e){var t=this.eOverlayWrapper.classList;t.toggle("ag-overlay-loading-wrapper",e===Ud.Loading),t.toggle("ag-overlay-no-rows-wrapper",e===Ud.NoRows)},t.prototype.showLoadingOverlay=function(){if(!this.gridOptionsService.is("suppressLoadingOverlay")){var e=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,Ud.Loading)}},t.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsService.is("suppressNoRowsOverlay")){var e=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,Ud.NoRows)}},t.prototype.showOverlay=function(e,t){var o=this;this.inProgress||(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then((function(e){o.inProgress=!1,o.eOverlayWrapper.appendChild(e.getGui()),o.activeOverlay=e,o.destroyRequested&&(o.destroyRequested=!1,o.destroyActiveOverlay())})),this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0,{skipAriaHidden:!0}))},t.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),ur(this.eOverlayWrapper))},t.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})},t.prototype.destroy=function(){this.destroyActiveOverlay(),e.prototype.destroy.call(this)},t.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsService.is("suppressNoRowsOverlay");e&&!t?this.showNoRowsOverlay():this.hideOverlay()},t.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},t.prototype.onNewColumnsLoaded=function(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()},t.TEMPLATE='\n <div class="ag-overlay" aria-hidden="true">\n <div class="ag-overlay-panel">\n <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n </div>\n </div>',Df([U("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Df([U("paginationProxy")],t.prototype,"paginationProxy",void 0),Df([U("gridApi")],t.prototype,"gridApi",void 0),Df([U("columnModel")],t.prototype,"columnModel",void 0),Df([ui("eOverlayWrapper")],t.prototype,"eOverlayWrapper",void 0),Df([B],t.prototype,"postConstruct",null),t}(li),Af=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Nf=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Mf=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return Af(o,e),o.prototype.getFirstRow=function(){var e,t=0;return this.pinnedRowModel.getPinnedTopRowCount()?e="top":this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(e="bottom"),void 0===e?null:{rowIndex:t,rowPinned:e}},o.prototype.getLastRow=function(){var e,t=null,o=this.pinnedRowModel.getPinnedBottomRowCount(),r=this.pinnedRowModel.getPinnedTopRowCount();return o?(t="bottom",e=o-1):this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageLastRow()):r&&(t="top",e=r-1),void 0===e?null:{rowIndex:e,rowPinned:t}},o.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},o.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned)},o.prototype.before=function(e,o){switch(e.rowPinned){case"top":if("top"!==o.rowPinned)return!0;break;case"bottom":if("bottom"!==o.rowPinned)return!1;break;default:if(t(o.rowPinned))return"top"!==o.rowPinned}return e.rowIndex<o.rowIndex},o.prototype.rowMax=function(e){var t,o=this;return e.forEach((function(e){(void 0===t||o.before(t,e))&&(t=e)})),t},o.prototype.rowMin=function(e){var t,o=this;return e.forEach((function(e){(void 0===t||o.before(e,t))&&(t=e)})),t},Nf([U("rowModel")],o.prototype,"rowModel",void 0),Nf([U("pinnedRowModel")],o.prototype,"pinnedRowModel",void 0),Nf([U("paginationProxy")],o.prototype,"paginationProxy",void 0),o=Nf([W("rowPositionUtils")],o)}(Le),Ff=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Lf=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},xf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ff(t,e),t.prototype.createId=function(e){var t=e.rowIndex,o=e.rowPinned,r=e.column;return this.createIdFromValues({rowIndex:t,column:r,rowPinned:o})},t.prototype.createIdFromValues=function(e){var t=e.rowIndex,o=e.rowPinned;return t+"."+(null==o?"null":o)+"."+e.column.getId()},t.prototype.equals=function(e,t){var o=e.column===t.column,r=e.rowPinned===t.rowPinned,i=e.rowIndex===t.rowIndex;return o&&r&&i},t=Lf([W("cellPositionUtils")],t)}(Le),If=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Gf=function(e){this.cellValueChanges=e},Hf=function(e){function t(t,o,r,i){var n=e.call(this,t)||this;return n.initialRange=o,n.finalRange=r,n.ranges=i,n}return If(t,e),t}(Gf),Vf=function(){function e(t){this.actionStack=[],this.maxStackSize=t||e.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return e.prototype.pop=function(){return this.actionStack.pop()},e.prototype.push=function(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))},e.prototype.clear=function(){this.actionStack=[]},e.prototype.getCurrentStackSize=function(){return this.actionStack.length},e.DEFAULT_STACK_SIZE=10,e}(),kf=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Bf=function(){return(Bf=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},jf=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Wf=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},Uf=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Wf(arguments[t]));return e},zf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellValueChanges=[],t.activeCellEdit=null,t.activeRowEdit=null,t.isPasting=!1,t.isRangeInAction=!1,t.onCellValueChanged=function(e){var o={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},r=null!==t.activeCellEdit&&t.cellPositionUtils.equals(t.activeCellEdit,o),i=null!==t.activeRowEdit&&t.rowPositionUtils.sameRow(t.activeRowEdit,o);if(r||i||t.isPasting||t.isRangeInAction){var n=e.rowPinned,s=e.rowIndex,a=e.column,l=e.oldValue,u=e.value,c={rowPinned:n,rowIndex:s,columnId:a.getColId(),newValue:u,oldValue:l};t.cellValueChanges.push(c)}},t.clearStacks=function(){t.undoStack.clear(),t.redoStack.clear()},t}return kf(t,e),t.prototype.init=function(){var e=this;if(this.gridOptionsService.is("undoRedoCellEditing")){var t=this.gridOptionsService.getNum("undoRedoCellEditingLimit");t<=0||(this.undoStack=new Vf(t),this.redoStack=new Vf(t),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,ke.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,ke.EVENT_MODEL_UPDATED,(function(t){t.keepUndoRedoStack||e.clearStacks()})),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,ke.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,ke.EVENT_ROW_DRAG_END,this.clearStacks),this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()})))}},t.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},t.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},t.prototype.undo=function(e){var t={type:ke.EVENT_UNDO_STARTED,source:e};this.eventService.dispatchEvent(t);var o=this.undoRedo(this.undoStack,this.redoStack,"initialRange","oldValue","undo"),r={type:ke.EVENT_UNDO_ENDED,source:e,operationPerformed:o};this.eventService.dispatchEvent(r)},t.prototype.redo=function(e){var t={type:ke.EVENT_REDO_STARTED,source:e};this.eventService.dispatchEvent(t);var o=this.undoRedo(this.redoStack,this.undoStack,"finalRange","newValue","redo"),r={type:ke.EVENT_REDO_ENDED,source:e,operationPerformed:o};this.eventService.dispatchEvent(r)},t.prototype.undoRedo=function(e,t,o,r,i){if(!e)return!1;var n=e.pop();return!(!n||!n.cellValueChanges)&&(this.processAction(n,(function(e){return e[r]}),i),n instanceof Hf?this.processRange(n.ranges||[n[o]]):this.processCell(n.cellValueChanges),t.push(n),!0)},t.prototype.processAction=function(e,t,o){var r=this;e.cellValueChanges.forEach((function(e){var i=e.rowIndex,n=e.rowPinned,s=e.columnId,a={rowIndex:i,rowPinned:n},l=r.getRowNode(a);l.displayed&&l.setDataValue(s,t(e),o)}))},t.prototype.processRange=function(e){var t,o=this;this.rangeService.removeAllCellRanges(!0),e.forEach((function(r,i){if(r){var n=r.startRow,s=r.endRow;i===e.length-1&&(t={rowPinned:n.rowPinned,rowIndex:n.rowIndex,columnId:r.startColumn.getColId()},o.setLastFocusedCell(t));var a={rowStartIndex:n.rowIndex,rowStartPinned:n.rowPinned,rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnStart:r.startColumn,columns:r.columns};o.rangeService.addCellRange(a)}}))},t.prototype.processCell=function(e){var t=e[0],o={rowIndex:t.rowIndex,rowPinned:t.rowPinned},r=this.getRowNode(o),i={rowPinned:t.rowPinned,rowIndex:r.rowIndex,columnId:t.columnId};this.setLastFocusedCell(i,!!this.rangeService)},t.prototype.setLastFocusedCell=function(e,t){var o=e.rowIndex,r=e.columnId,i=e.rowPinned,n=this.gridBodyCtrl.getScrollFeature(),s=this.columnModel.getGridColumn(r);if(s){n.ensureIndexVisible(o),n.ensureColumnVisible(s);var a={rowIndex:o,column:s,rowPinned:i};this.focusService.setFocusedCell(Bf(Bf({},a),{forceBrowserFocus:!0})),t&&this.rangeService.setRangeToCell(a)}},t.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,ke.EVENT_ROW_EDITING_STARTED,(function(t){e.activeRowEdit={rowIndex:t.rowIndex,rowPinned:t.rowPinned}})),this.addManagedListener(this.eventService,ke.EVENT_ROW_EDITING_STOPPED,(function(){var t=new Gf(e.cellValueChanges);e.pushActionsToUndoStack(t),e.activeRowEdit=null}))},t.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,ke.EVENT_CELL_EDITING_STARTED,(function(t){e.activeCellEdit={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned}})),this.addManagedListener(this.eventService,ke.EVENT_CELL_EDITING_STOPPED,(function(t){if(e.activeCellEdit=null,t.valueChanged&&!e.activeRowEdit&&!e.isPasting&&!e.isRangeInAction){var o=new Gf(e.cellValueChanges);e.pushActionsToUndoStack(o)}}))},t.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,ke.EVENT_PASTE_START,(function(){e.isPasting=!0})),this.addManagedListener(this.eventService,ke.EVENT_PASTE_END,(function(){var t=new Gf(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1}))},t.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,ke.EVENT_FILL_START,(function(){e.isRangeInAction=!0})),this.addManagedListener(this.eventService,ke.EVENT_FILL_END,(function(t){var o=new Hf(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(o),e.isRangeInAction=!1}))},t.prototype.addCellKeyListeners=function(){var e=this;this.addManagedListener(this.eventService,ke.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,(function(){e.isRangeInAction=!0})),this.addManagedListener(this.eventService,ke.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,(function(){var t;t=e.rangeService&&e.gridOptionsService.isEnableRangeSelection()?new Hf(e.cellValueChanges,void 0,void 0,Uf(e.rangeService.getCellRanges())):new Gf(e.cellValueChanges),e.pushActionsToUndoStack(t),e.isRangeInAction=!1}))},t.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},t.prototype.getRowNode=function(e){switch(e.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},jf([U("focusService")],t.prototype,"focusService",void 0),jf([U("ctrlsService")],t.prototype,"ctrlsService",void 0),jf([U("rowModel")],t.prototype,"rowModel",void 0),jf([U("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),jf([U("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),jf([U("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),jf([U("columnModel")],t.prototype,"columnModel",void 0),jf([z("rangeService")],t.prototype,"rangeService",void 0),jf([B],t.prototype,"init",null),t=jf([W("undoRedoService")],t)}(Le),Kf=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Yf=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},qf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kf(t,e),t.prototype.findHeader=function(e,t){var o,r,i;if(e.column instanceof nt?(r="getDisplayedGroup"+t,o=this.columnModel[r](e.column)):(i="getDisplayedCol"+t,o=this.columnModel[i](e.column)),o){var n=e.headerRowIndex;if(this.getHeaderRowType(n)===exports.HeaderRowType.COLUMN_GROUP){var s=o;if(s.isPadding()&&this.isAnyChildSpanningHeaderHeight(s)){var a=this.getColumnVisibleChild(s,n,t),l=a.nextFocusColumn,u=a.nextRow;l&&(o=l,n=u)}}return{column:o,headerRowIndex:n}}},t.prototype.isAnyChildSpanningHeaderHeight=function(e){return!!e&&e.getLeafColumns().some((function(e){return e.isSpanHeaderHeight()}))},t.prototype.getColumnVisibleParent=function(e,t){var o=this.getHeaderRowType(t),r=o===exports.HeaderRowType.FLOATING_FILTER,i=o===exports.HeaderRowType.COLUMN,n=r?e:e.getParent(),s=t-1;if(i&&this.isAnyChildSpanningHeaderHeight(e.getParent())){for(;n&&n.isPadding();)n=n.getParent(),s--;s<0&&(n=e,s=t)}return{nextFocusColumn:n,nextRow:s}},t.prototype.getColumnVisibleChild=function(e,t,o){void 0===o&&(o="After");var r=e,i=t+1;if(this.getHeaderRowType(t)===exports.HeaderRowType.COLUMN_GROUP){var n=e.getLeafColumns(),s="After"===o?n[0]:ue(n);if(this.isAnyChildSpanningHeaderHeight(s.getParent())){r=s;for(var a=s.getParent();a&&a!==e;)a=a.getParent(),i++}else r=e.getDisplayedChildren()[0]}return{nextFocusColumn:r,nextRow:i}},t.prototype.getHeaderRowType=function(e){var t=this.ctrlsService.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)},t.prototype.findColAtEdgeForHeaderRow=function(e,t){var o=this.columnModel.getAllDisplayedColumns(),r=o["start"===t?0:o.length-1];if(r){var i=this.ctrlsService.getHeaderRowContainerCtrl(r.getPinned()).getRowType(e);return i==exports.HeaderRowType.COLUMN_GROUP?{headerRowIndex:e,column:this.columnModel.getColumnGroupAtLevel(r,e)}:{headerRowIndex:null==i?-1:e,column:r}}},Yf([U("columnModel")],t.prototype,"columnModel",void 0),Yf([U("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Yf([W("headerPositionUtils")],t)}(Le),Qf=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Xf=function(){function e(){}return e.prototype.buildColumnDefs=function(e,t,o){var r=this,i=[],n={};return e.forEach((function(e){for(var s=!0,a=r.createDefFromColumn(e,t,o),l=e.getOriginalParent();l;){var u=null;if(l.isPadding())l=l.getOriginalParent();else{var c=n[l.getGroupId()];if(c){c.children.push(a),s=!1;break}(u=r.createDefFromGroup(l))&&(u.children=[a],n[u.groupId]=u,a=u,l=l.getOriginalParent())}}s&&i.push(a)})),i},e.prototype.createDefFromGroup=function(e){var t=d(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t},e.prototype.createDefFromColumn=function(e,t,o){var r=d(e.getColDef());return r.colId=e.getColId(),r.width=e.getActualWidth(),r.rowGroup=e.isRowGroupActive(),r.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,r.pivot=e.isPivotActive(),r.pivotIndex=e.isPivotActive()?o.indexOf(e):null,r.aggFunc=e.isValueActive()?e.getAggFunc():null,r.hide=!e.isVisible()||void 0,r.pinned=e.isPinned()?e.getPinned():null,r.sort=e.getSort()?e.getSort():null,r.sortIndex=null!=e.getSortIndex()?e.getSortIndex():null,r},e=Qf([W("columnDefFactory")],e)}(),Jf=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Zf=function(){function e(){}return e.prototype.getInitialRowClasses=function(e){var o=[];return t(e.extraCssClass)&&o.push(e.extraCssClass),o.push("ag-row"),o.push(e.rowFocused?"ag-row-focus":"ag-row-no-focus"),e.fadeRowIn&&o.push("ag-opacity-zero"),o.push(e.rowIsEven?"ag-row-even":"ag-row-odd"),e.rowNode.isRowPinned()&&o.push("ag-row-pinned"),e.rowNode.isSelected()&&o.push("ag-row-selected"),e.rowNode.footer&&o.push("ag-row-footer"),o.push("ag-row-level-"+e.rowLevel),e.rowNode.stub&&o.push("ag-row-loading"),e.fullWidthRow&&o.push("ag-full-width-row"),e.expandable&&(o.push("ag-row-group"),o.push(e.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),e.rowNode.dragging&&o.push("ag-row-dragging"),me(o,this.processClassesFromGridOptions(e.rowNode)),me(o,this.preProcessRowClassRules(e.rowNode)),o.push(e.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),e.firstRowOnPage&&o.push("ag-row-first"),e.lastRowOnPage&&o.push("ag-row-last"),e.fullWidthRow&&("left"===e.pinned&&o.push("ag-cell-last-left-pinned"),"right"===e.pinned&&o.push("ag-cell-first-right-pinned")),o},e.prototype.processClassesFromGridOptions=function(e){var t=[],o=function(e){"string"==typeof e?t.push(e):Array.isArray(e)&&e.forEach((function(e){return t.push(e)}))},r=this.gridOptionsService.get("rowClass");if(r){if("function"==typeof r)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];o(r)}var i=this.gridOptionsService.getCallback("getRowClass");i&&o(i({data:e.data,node:e,rowIndex:e.rowIndex}));return t},e.prototype.preProcessRowClassRules=function(e){var t=[];return this.processRowClassRules(e,(function(e){t.push(e)}),(function(e){})),t},e.prototype.processRowClassRules=function(e,t,o){var r={data:e.data,node:e,rowIndex:e.rowIndex,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};this.stylingService.processClassRules(this.gridOptionsService.get("rowClassRules"),r,t,o)},e.prototype.calculateRowLevel=function(e){return e.group?e.level:e.parent?e.parent.level+1:0},Jf([U("stylingService")],e.prototype,"stylingService",void 0),Jf([U("gridOptionsService")],e.prototype,"gridOptionsService",void 0),e=Jf([W("rowCssClassCalculator")],e)}(),$f=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),eg=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},tg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $f(t,e),t.prototype.init=function(){var e=this;this.isAccentedSort=this.gridOptionsService.is("accentedSort"),this.primaryColumnsSortGroups=this.gridOptionsService.isColumnsSortingCoupledToGroup(),this.addManagedPropertyListener("accentedSort",(function(t){return e.isAccentedSort=t.currentValue})),this.addManagedPropertyListener("autoGroupColumnDef",(function(){return e.primaryColumnsSortGroups=e.gridOptionsService.isColumnsSortingCoupledToGroup()}))},t.prototype.doFullSort=function(e,t){var o=e.map((function(e,t){return{currentPos:t,rowNode:e}}));return o.sort(this.compareRowNodes.bind(this,t)),o.map((function(e){return e.rowNode}))},t.prototype.compareRowNodes=function(e,t,o){for(var r=t.rowNode,i=o.rowNode,n=0,s=e.length;n<s;n++){var a=e[n],l="desc"===a.sort,u=this.getValue(r,a.column),c=this.getValue(i,a.column),p=void 0,d=this.getComparator(a,r);if(p=d?d(u,c,r,i,l):Qr.defaultComparator(u,c,this.isAccentedSort),!isNaN(p)&&0!==p)return"asc"===a.sort?p:-1*p}return t.currentPos-o.currentPos},t.prototype.getComparator=function(e,t){var o=e.column,r=o.getColDef().comparator;if(null!=r)return r;if(o.getColDef().showRowGroup){var i=!t.group&&o.getColDef().field;if(i){var n=this.columnModel.getPrimaryColumn(i);if(n)return n.getColDef().comparator}}},t.prototype.getValue=function(e,t){var o,r;if(!this.primaryColumnsSortGroups)return this.valueService.getValue(t,e,!1,!1);if(e.rowGroupColumn===t){if(this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotActive())){if(t.getColDef().keyCreator)return e.key;var i=null===(o=e.allLeafChildren)||void 0===o?void 0:o[0];return i?this.valueService.getValue(t,i,!1,!1):void 0}var n=this.columnModel.getGroupDisplayColumnForGroup(t.getId());if(!n)return;return null===(r=e.groupData)||void 0===r?void 0:r[n.getId()]}return e.group&&t.getColDef().showRowGroup?void 0:this.valueService.getValue(t,e,!1,!1)},eg([U("valueService")],t.prototype,"valueService",void 0),eg([U("columnModel")],t.prototype,"columnModel",void 0),eg([B],t.prototype,"init",null),t=eg([W("rowNodeSorter")],t)}(Le),og=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),rg=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ig=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ready=!1,t.readyCallbacks=[],t}var o;return og(t,e),o=t,t.prototype.checkReady=function(){if(this.ready=null!=this.gridCtrl&&null!=this.gridBodyCtrl&&null!=this.centerRowContainerCtrl&&null!=this.leftRowContainerCtrl&&null!=this.rightRowContainerCtrl&&null!=this.bottomCenterRowContainerCtrl&&null!=this.bottomLeftRowContainerCtrl&&null!=this.bottomRightRowContainerCtrl&&null!=this.topCenterRowContainerCtrl&&null!=this.topLeftRowContainerCtrl&&null!=this.topRightRowContainerCtrl&&null!=this.stickyTopCenterRowContainerCtrl&&null!=this.stickyTopLeftRowContainerCtrl&&null!=this.stickyTopRightRowContainerCtrl&&null!=this.centerHeaderRowContainerCtrl&&null!=this.leftHeaderRowContainerCtrl&&null!=this.rightHeaderRowContainerCtrl&&null!=this.fakeHScrollComp&&null!=this.fakeVScrollComp&&null!=this.gridHeaderCtrl,this.ready){var e=this.createReadyParams();this.readyCallbacks.forEach((function(t){return t(e)})),this.readyCallbacks.length=0}},t.prototype.whenReady=function(e){this.ready?e(this.createReadyParams()):this.readyCallbacks.push(e)},t.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,stickyTopCenterRowContainerCtrl:this.stickyTopCenterRowContainerCtrl,stickyTopLeftRowContainerCtrl:this.stickyTopLeftRowContainerCtrl,stickyTopRightRowContainerCtrl:this.stickyTopRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollComp:this.fakeHScrollComp,fakeVScrollComp:this.fakeVScrollComp,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},t.prototype.registerFakeHScrollComp=function(e){this.fakeHScrollComp=e,this.checkReady()},t.prototype.registerFakeVScrollComp=function(e){this.fakeVScrollComp=e,this.checkReady()},t.prototype.registerGridHeaderCtrl=function(e){this.gridHeaderCtrl=e,this.checkReady()},t.prototype.registerCenterRowContainerCtrl=function(e){this.centerRowContainerCtrl=e,this.checkReady()},t.prototype.registerLeftRowContainerCtrl=function(e){this.leftRowContainerCtrl=e,this.checkReady()},t.prototype.registerRightRowContainerCtrl=function(e){this.rightRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopCenterRowContainerCtrl=function(e){this.topCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopLeftRowContainerCon=function(e){this.topLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopRightRowContainerCtrl=function(e){this.topRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerStickyTopCenterRowContainerCtrl=function(e){this.stickyTopCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerStickyTopLeftRowContainerCon=function(e){this.stickyTopLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerStickyTopRightRowContainerCtrl=function(e){this.stickyTopRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomCenterRowContainerCtrl=function(e){this.bottomCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomLeftRowContainerCtrl=function(e){this.bottomLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomRightRowContainerCtrl=function(e){this.bottomRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerHeaderContainer=function(e,t){switch(t){case"left":this.leftHeaderRowContainerCtrl=e;break;case"right":this.rightHeaderRowContainerCtrl=e;break;default:this.centerHeaderRowContainerCtrl=e}this.checkReady()},t.prototype.registerGridBodyCtrl=function(e){this.gridBodyCtrl=e,this.checkReady()},t.prototype.registerGridCtrl=function(e){this.gridCtrl=e,this.checkReady()},t.prototype.getFakeHScrollComp=function(){return this.fakeHScrollComp},t.prototype.getFakeVScrollComp=function(){return this.fakeVScrollComp},t.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},t.prototype.getGridCtrl=function(){return this.gridCtrl},t.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},t.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},t.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},t.prototype.getStickyTopCenterRowContainerCtrl=function(){return this.stickyTopCenterRowContainerCtrl},t.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},t.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},t.prototype.getHeaderRowContainerCtrl=function(e){switch(e){case"left":return this.leftHeaderRowContainerCtrl;case"right":return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},t.NAME="ctrlsService",t=o=rg([W(o.NAME)],t)}(Le),ng=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),sg=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ag=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registry={},t}return ng(t,e),t.prototype.register=function(e){this.registry[e.controllerName]=e.controllerClass},t.prototype.getInstance=function(e){var t=this.registry[e];if(null!=t)return new t},t=sg([W("ctrlsFactory")],t)}(Le),lg=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ug=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},cg=function(e){function t(t,o){var r=e.call(this,t)||this;return r.direction=o,r.hideTimeout=null,r}return lg(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,ke.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",bo()||To())},t.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.invisibleScrollbar=Lo(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))},t.prototype.addActiveListenerToggles=function(){var e=this,t=this.getGui();["mouseenter","mousedown","touchstart"].forEach((function(o){return e.addManagedListener(t,o,(function(){return e.addOrRemoveCssClass("ag-scrollbar-active",!0)}))})),["mouseleave","touchend"].forEach((function(o){return e.addManagedListener(t,o,(function(){return e.addOrRemoveCssClass("ag-scrollbar-active",!1)}))}))},t.prototype.onScrollVisibilityChanged=function(){void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),this.setScrollVisible()},t.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,ke.EVENT_BODY_SCROLL,(function(t){t.direction===e.direction&&(null!==e.hideTimeout&&(window.clearTimeout(e.hideTimeout),e.hideTimeout=null),e.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))})),this.addManagedListener(this.eventService,ke.EVENT_BODY_SCROLL_END,(function(){e.hideTimeout=window.setTimeout((function(){e.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),e.hideTimeout=null}),400)}))},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},ug([ui("eViewport")],t.prototype,"eViewport",void 0),ug([ui("eContainer")],t.prototype,"eContainer",void 0),ug([U("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),ug([U("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(li),pg=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),dg=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},hg=function(e){function t(){return e.call(this,t.TEMPLATE,"horizontal")||this}return pg(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var o=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,o),this.addManagedListener(this.eventService,ke.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedPropertyListener("domLayout",o),this.ctrlsService.registerFakeHScrollComp(this),this.createManagedBean(new Zl((function(e){return t.eContainer.style.width=e+"px"})))},t.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gridOptionsService.is("enableRtl"),e.prototype.initialiseInvisibleScrollbar.call(this),this.invisibleScrollbar&&this.refreshCompBottom())},t.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},t.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var e=this.pinnedRowModel.getPinnedBottomTotalHeight();this.getGui().style.bottom=e+"px"}},t.prototype.onScrollVisibilityChanged=function(){e.prototype.onScrollVisibilityChanged.call(this),this.setFakeHScrollSpacerWidths()},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.columnModel.getDisplayedColumnsRightWidth(),o=!this.enableRtl&&e,r=this.gridOptionsService.getScrollbarWidth();o&&(t+=r),Er(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=r);var i=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&e&&(i+=r),Er(this.eLeftSpacer,i),this.eLeftSpacer.classList.toggle("ag-scroller-corner",i<=r)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),t=this.invisibleScrollbar,o=this.gridOptionsService.is("suppressHorizontalScroll"),r=e&&this.gridOptionsService.getScrollbarWidth()||0,i=o?0:0===r&&t?16:r;this.addOrRemoveCssClass("ag-scrollbar-invisible",t),Rr(this.getGui(),i),Rr(this.eViewport,i),Rr(this.eContainer,i),this.setDisplayed(e,{skipAriaHidden:!0})},t.TEMPLATE='<div class="ag-body-horizontal-scroll" aria-hidden="true">\n <div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>\n <div class="ag-body-horizontal-scroll-viewport" ref="eViewport">\n <div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>\n </div>\n <div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>\n </div>',dg([ui("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),dg([ui("eRightSpacer")],t.prototype,"eRightSpacer",void 0),dg([U("columnModel")],t.prototype,"columnModel",void 0),dg([U("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),dg([B],t.prototype,"postConstruct",null),t}(cg),fg=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),gg=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},vg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fg(t,e),t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,ke.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedPropertyListener("domLayout",e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsService.isDomLayout("print"),t=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),o=e?0:this.columnModel.getDisplayedColumnsRightWidth();t!=this.leftWidth&&(this.leftWidth=t,this.eventService.dispatchEvent({type:ke.EVENT_LEFT_PINNED_WIDTH_CHANGED})),o!=this.rightWidth&&(this.rightWidth=o,this.eventService.dispatchEvent({type:ke.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},gg([U("columnModel")],t.prototype,"columnModel",void 0),gg([B],t.prototype,"postConstruct",null),t=gg([W("pinnedWidthService")],t)}(Le),yg=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),mg=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Cg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.events=[],t}return yg(t,e),t.prototype.postConstruct=function(){"clientSide"==this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var t=this;if(null!=this.clientSideRowModel){this.events.push(e);null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce((function(){t.clientSideRowModel&&t.clientSideRowModel.onRowGroupOpened(),t.events.forEach((function(e){return t.eventService.dispatchEvent(e)})),t.events=[]}))),this.dispatchExpandedDebounced()}else this.eventService.dispatchEvent(e)},mg([U("animationFrameService")],t.prototype,"animationFrameService",void 0),mg([U("rowModel")],t.prototype,"rowModel",void 0),mg([B],t.prototype,"postConstruct",null),t=mg([W("rowNodeEventThrottle")],t)}(Le),wg=function(){return(wg=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Sg=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Eg=function(e,t){return function(o,r){t(o,r,e)}},Rg=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},Og=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Rg(arguments[t]));return e};
|
332 |
|
333 |
|
334 |
|
335 |
|
336 |
|
337 | function bg(e){return!0===e||"true"===e}var Tg,Pg=function(){function e(){this.destroyed=!1,this.domDataKey="__AG_"+Math.random().toString(),this.propertyEventService=new Z}return Object.defineProperty(e.prototype,"context",{get:function(){return this.gridOptions.context},enumerable:!1,configurable:!0}),e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.api=e,this.columnApi=t},e.prototype.init=function(){this.gridOptionLookup=new Set(Og(Ye.ALL_PROPERTIES,Ye.EVENT_CALLBACKS));var e=!this.is("suppressAsyncEvents");this.eventService.addGlobalListener(this.globalEventHandler.bind(this),e),this.getScrollbarWidth()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},e.prototype.is=function(e){return bg(this.gridOptions[e])},e.prototype.get=function(e){return this.gridOptions[e]},e.prototype.getNum=function(e){return"number"==typeof(t=this.gridOptions[e])?t:"string"==typeof t?parseInt(t,10):void 0;var t},e.prototype.getCallback=function(e){return this.mergeGridCommonParams(this.gridOptions[e])},e.prototype.exists=function(e){return t(this.gridOptions[e])},e.prototype.mergeGridCommonParams=function(e){var t=this;if(e){return function(o){var r=o;return r.api=t.api,r.columnApi=t.columnApi,r.context=t.context,e(r)}}return e},e.prototype.set=function(e,t,o,r){if(void 0===o&&(o=!1),void 0===r&&(r={}),this.gridOptionLookup.has(e)){var i=this.gridOptions[e];if(o||i!==t){this.gridOptions[e]=t;var n=wg({type:e,currentValue:t,previousValue:i},r);this.propertyEventService.dispatchEvent(n)}}},e.prototype.addEventListener=function(e,t){this.propertyEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.globalEventHandler=function(e,t){if(!this.destroyed){var o=Ye.getCallbackForEvent(e);"function"==typeof this.gridOptions[o]&&this.gridOptions[o](t)}},e.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var e="number"==typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:Mo();null!=e&&(this.scrollbarWidth=e,this.eventService.dispatchEvent({type:ke.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},e.prototype.isRowModelType=function(e){return this.gridOptions.rowModelType===e||"clientSide"===e&&o(this.gridOptions.rowModelType)},e.prototype.isDomLayout=function(e){var t;return(null!==(t=this.gridOptions.domLayout)&&void 0!==t?t:"normal")===e},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.useAsyncEvents=function(){return!this.is("suppressAsyncEvents")},e.prototype.isGetRowHeightFunction=function(){return"function"==typeof this.gridOptions.getRowHeight},e.prototype.getRowHeightForNode=function(e,t,o){if(void 0===t&&(t=!1),null==o&&(o=this.environment.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(t)return{height:o,estimated:!0};var r={node:e,data:e.data},i=this.getCallback("getRowHeight")(r);if(this.isNumeric(i))return 0===i&&O((function(){return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.")}),"invalidRowHeight"),{height:Math.max(1,i),estimated:!1}}return e.detail&&this.is("masterDetail")?this.getMasterDetailRowHeight():{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:o,estimated:!1}},e.prototype.getMasterDetailRowHeight=function(){return this.is("detailRowAutoHeight")?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}},e.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||o(this.gridOptions.rowHeight))return this.environment.getDefaultRowHeight();var e=this.gridOptions.rowHeight;return e&&this.isNumeric(e)?(this.environment.setRowHeightVariable(e),e):(console.warn("AG Grid row height must be a number if not using standard row model"),this.environment.getDefaultRowHeight())},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e&&isFinite(e)},e.prototype.getDomDataKey=function(){return this.domDataKey},e.prototype.getDomData=function(e,t){var o=e[this.getDomDataKey()];return o?o[t]:void 0},e.prototype.setDomData=function(e,t,r){var i=this.getDomDataKey(),n=e[i];o(n)&&(n={},e[i]=n),n[t]=r},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&t(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&t(e)?e:document},e.prototype.getRootNode=function(){return this.eGridDiv.getRootNode()},e.prototype.getRowIdFunc=function(){var e=this.getCallback("getRowId");if(e)return e;var t=this.gridOptions.getRowNodeId;return t?function(e){return t(e.data)}:void 0},e.prototype.getAsyncTransactionWaitMillis=function(){return t(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:50},e.prototype.isAnimateRows=function(){return!this.is("ensureDomOrder")&&this.is("animateRows")},e.prototype.isTreeData=function(){return this.is("treeData")&&ee.assertRegistered(exports.ModuleNames.RowGroupingModule,"Tree Data")},e.prototype.isMasterDetail=function(){return this.is("masterDetail")&&ee.assertRegistered(exports.ModuleNames.MasterDetailModule,"masterDetail")},e.prototype.isEnableRangeSelection=function(){return this.is("enableRangeSelection")&&ee.isRegistered(exports.ModuleNames.RangeSelectionModule)},e.prototype.isColumnsSortingCoupledToGroup=function(){var e=this.gridOptions.autoGroupColumnDef;return this.isRowModelType("clientSide")&&!(null==e?void 0:e.comparator)},e.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;return"function"==typeof e?this.getCallback("groupAggFiltering"):bg(e)?function(){return!0}:void 0},e.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?rt("multipleColumns",this.gridOptions.groupDisplayType):this.is("groupHideOpenParents")},e.prototype.isGroupUseEntireRow=function(e){return!e&&(!!this.gridOptions.groupDisplayType&&rt("groupRows",this.gridOptions.groupDisplayType))},Sg([U("gridOptions")],e.prototype,"gridOptions",void 0),Sg([U("eventService")],e.prototype,"eventService",void 0),Sg([U("environment")],e.prototype,"environment",void 0),Sg([U("eGridDiv")],e.prototype,"eGridDiv",void 0),Sg([Eg(0,Y("gridApi")),Eg(1,Y("columnApi"))],e.prototype,"agWire",null),Sg([B],e.prototype,"init",null),Sg([j],e.prototype,"destroy",null),e=Sg([W("gridOptionsService")],e)}(),Dg=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),_g=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ag=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dg(t,e),t.prototype.getLocaleTextFunc=function(){var e=this.gridOptionsService.getCallback("getLocaleText");if(e)return function(t,o,r){return e({key:t,defaultValue:o,variableValues:r})};var t=this.gridOptionsService.get("localeTextFunc");if(t)return t;var o=this.gridOptionsService.get("localeText");return function(e,t,r){var i=o&&o[e];if(i&&r&&r.length)for(var n=0;!(n>=r.length);){if(-1===i.indexOf("${variable}"))break;i=i.replace("${variable}",r[n++])}return null!=i?i:t}},t=_g([W("localeService")],t)}(Le),Ng=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Mg=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Fg=function(e){function t(){return e.call(this,t.TEMPLATE,"vertical")||this}return Ng(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.createManagedBean(new Kl(this.eContainer)),this.ctrlsService.registerFakeVScrollComp(this)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.invisibleScrollbar,o=e&&this.gridOptionsService.getScrollbarWidth()||0,r=0===o&&t?16:o;this.addOrRemoveCssClass("ag-scrollbar-invisible",t),Er(this.getGui(),r),Er(this.eViewport,r),Er(this.eContainer,r),this.setDisplayed(e,{skipAriaHidden:!0})},t.TEMPLATE='<div class="ag-body-vertical-scroll" aria-hidden="true">\n <div class="ag-body-vertical-scroll-viewport" ref="eViewport">\n <div class="ag-body-vertical-scroll-container" ref="eContainer"></div>\n </div>\n </div>',Mg([B],t.prototype,"postConstruct",null),t}(cg),Lg=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},xg=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Lg(arguments[t]));return e},Ig=function(){function e(e,t,o){t?(this.gridOptions=t,(new Gg).create(e,t,(function(t){var o=new Ih(e);t.createBean(o)}),void 0,o)):console.error("AG Grid: no gridOptions provided to the grid")}return e.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},e}(),Gg=function(){function e(){}return e.prototype.create=function(e,t,o,r,i){var n=this,s=!!t.debug,a=this.getRegisteredModules(i),l=this.createBeansList(t.rowModelType,a),u=this.createProvidedBeans(e,t,i);if(l){var c={providedBeanInstances:u,beanClasses:l,debug:s},p=new Ah("AG Grid",(function(){return t.debug})),d=new Ah("Context",(function(){return c.debug})),h=new V(c,d),f=h.getBean("beans");this.registerModuleUserComponents(f,a),this.registerStackComponents(f,a),this.registerControllers(f,a),o(h),f.ctrlsService.whenReady((function(){n.setColumnsAndData(f),n.dispatchGridReadyEvent(f);var e=ee.isRegistered(exports.ModuleNames.EnterpriseCoreModule);p.log("initialised successfully, enterprise = "+e)})),r&&r(h)}},e.prototype.registerControllers=function(e,t){t.forEach((function(t){t.controllers&&t.controllers.forEach((function(t){return e.ctrlsFactory.register(t)}))}))},e.prototype.registerStackComponents=function(e,t){var o=this.createAgStackComponentsList(t);e.agStackComponentsRegistry.setupComponents(o)},e.prototype.getRegisteredModules=function(e){var t=e?e.modules:null,o=ee.getRegisteredModules(),r=[],i={};function n(e,t){var o;i[(o=t).moduleName]||(i[o.moduleName]=!0,r.push(o),ee.register(o,e)),t.dependantModules&&t.dependantModules.forEach(n.bind(null,e))}return t&&t.forEach(n.bind(null,!0)),o&&o.forEach(n.bind(null,!ee.isPackageBased())),r},e.prototype.registerModuleUserComponents=function(e,t){this.extractModuleEntity(t,(function(e){return e.userComponents?e.userComponents:[]})).forEach((function(t){e.userComponentRegistry.registerDefaultComponent(t.componentName,t.componentClass)}))},e.prototype.createProvidedBeans=function(e,t,r){var i=r?r.frameworkOverrides:null;o(i)&&(i=new Zd);var n={gridOptions:t,eGridDiv:e,globalEventListener:r?r.globalEventListener:null,frameworkOverrides:i};return r&&r.providedBeanInstances&&Object.assign(n,r.providedBeanInstances),n},e.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:Ki},{componentName:"AgRadioButton",componentClass:qi},{componentName:"AgToggleButton",componentClass:Zp},{componentName:"AgInputTextField",componentClass:yn},{componentName:"AgInputTextArea",componentClass:ed},{componentName:"AgInputNumberField",componentClass:Cn},{componentName:"AgInputRange",componentClass:od},{componentName:"AgSelect",componentClass:Bi},{componentName:"AgSlider",componentClass:nd},{componentName:"AgGridBody",componentClass:pu},{componentName:"AgHeaderRoot",componentClass:Zc},{componentName:"AgSortIndicator",componentClass:Wn},{componentName:"AgPagination",componentClass:Tf},{componentName:"AgOverlayWrapper",componentClass:_f},{componentName:"AgGroupComponent",componentClass:ld},{componentName:"AgPanel",componentClass:_d},{componentName:"AgDialog",componentClass:Fd},{componentName:"AgRowContainer",componentClass:Fu},{componentName:"AgFakeHorizontalScroll",componentClass:hg},{componentName:"AgFakeVerticalScroll",componentClass:Fg}],o=this.extractModuleEntity(e,(function(e){return e.agStackComponents?e.agStackComponents:[]}));return t=t.concat(o)},e.prototype.createBeansList=function(e,t){void 0===e&&(e="clientSide");var o=t.filter((function(t){return!t.rowModel||t.rowModel===e})),r={clientSide:exports.ModuleNames.ClientSideRowModelModule,infinite:exports.ModuleNames.InfiniteRowModelModule,serverSide:exports.ModuleNames.ServerSideRowModelModule,viewport:exports.ModuleNames.ViewportRowModelModule};if(r[e]){if(ee.assertRegistered(r[e],"rowModelType = '"+e+"'")){var i=[pl,Mf,xf,qf,Xh,Ta,Xs,sf,uf,pp,ya,wf,tp,Ag,ot,Ip,Ea,Nt,Z,Pg,Kd,hh,Aa,bt,Kc,Yp,_p,Eh,He,bh,ah,Su,$h,mh,_h,Dt,yp,ip,Rs,gh,Vd,yu,vf,rh,Fp,Xp,fu,Bh,Uh,Yh,Rf,ut,of,fp,zf,Lt,Xf,Zf,Up,tg,ig,vg,Cg,ag],n=this.extractModuleEntity(o,(function(e){return e.beans?e.beans:[]}));i.push.apply(i,xg(n));var s=[];return i.forEach((function(e){s.indexOf(e)<0&&s.push(e)})),s}}else console.error("AG Grid: could not find row model for rowModelType = "+e)},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],xg(e.map(t)))},e.prototype.setColumnsAndData=function(e){var t=e.gridOptionsService.get("columnDefs");e.columnModel.setColumnDefs(t||[],"gridInitializing"),e.rowModel.start()},e.prototype.dispatchGridReadyEvent=function(e){var t={type:ke.EVENT_GRID_READY};e.eventService.dispatchEvent(t)},e}(),Hg=function(){function e(){}return e.prototype.wrap=function(e,t,o,r){var i=this;void 0===o&&(o=[]);var n=this.createWrapper(e,r);return t.forEach((function(e){i.createMethod(n,e,!0)})),o.forEach((function(e){i.createMethod(n,e,!1)})),n},e.prototype.unwrap=function(e){return e},e.prototype.createMethod=function(e,t,o){e.addMethod(t,this.createMethodProxy(e,t,o))},e.prototype.createMethodProxy=function(e,t,o){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(o&&console.warn("AG Grid: Framework component is missing the method "+t+"()"),null)}},e}();
|
338 |
|
339 |
|
340 |
|
341 |
|
342 |
|
343 | (
|
344 |
|
345 |
|
346 |
|
347 |
|
348 |
|
349 |
|
350 | Tg=exports.BarColumnLabelPlacement||(exports.BarColumnLabelPlacement={})).InsideBase="insideBase",Tg.InsideEnd="insideEnd",Tg.Center="center",Tg.OutsideEnd="outsideEnd";
|
351 |
|
352 |
|
353 |
|
354 |
|
355 |
|
356 |
|
357 | var Vg="undefined"==typeof global?{}:global;Vg.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,Vg.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,Vg.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,Vg.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,Vg.Node="undefined"==typeof Node?{}:Node,Vg.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent;var kg,Bg=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},jg=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Bg(arguments[t]));return e},Wg=function(){function e(t,o,r,i,n,s){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsService=o,this.eventService=r,this.columnModel=i,this.beans=s,this.selectionService=n,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsService.is("suppressParentsInRowNodes"),this.isRowMasterFunc=this.gridOptionsService.get("isRowMaster"),this.doingTreeData=this.gridOptionsService.isTreeData(),this.doingMasterDetail=this.gridOptionsService.isMasterDetail()},e.prototype.getCopyOfNodesMap=function(){return Qr.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){var o=this;if("string"!=typeof t){var r=this.rootNode,i=this.rootNode.sibling;r.childrenAfterFilter=null,r.childrenAfterGroup=null,r.childrenAfterAggFilter=null,r.childrenAfterSort=null,r.childrenMapped=null,r.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?r.allLeafChildren=t.map((function(t){return o.createNode(t,o.rootNode,e.TOP_LEVEL)})):(r.allLeafChildren=[],r.childrenAfterGroup=[]),i&&(i.childrenAfterFilter=r.childrenAfterFilter,i.childrenAfterGroup=r.childrenAfterGroup,i.childrenAfterAggFilter=r.childrenAfterAggFilter,i.childrenAfterSort=r.childrenAfterSort,i.childrenMapped=r.childrenMapped,i.allLeafChildren=r.allLeafChildren)}else 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")},e.prototype.updateRowData=function(e,t){var o={remove:[],update:[],add:[]},r=[];return this.executeRemove(e,o,r),this.executeUpdate(e,o,r),this.executeAdd(e,o),this.updateSelection(r,"rowDataChanged"),t&&Qr.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),o},e.prototype.updateSelection=function(e,t){var o=e.length>0;if(o&&e.forEach((function(e){e.setSelected(!1,!1,!0,t)})),this.selectionService.updateGroupsFromChildrenSelections(t),o){var r={type:ke.EVENT_SELECTION_CHANGED,source:t};this.eventService.dispatchEvent(r)}},e.prototype.executeAdd=function(t,o){var r,i=this,n=t.add,s=t.addIndex;if(!Qr.missingOrEmpty(n)){var a=n.map((function(t){return i.createNode(t,i.rootNode,e.TOP_LEVEL)}));if("number"==typeof s&&s>=0){var l=this.rootNode.allLeafChildren,u=l.length,c=s;if(this.doingTreeData&&s>0&&u>0)for(var p=0;p<u;p++)if((null===(r=l[p])||void 0===r?void 0:r.rowIndex)==s-1){c=p+1;break}var d=l.slice(0,c),h=l.slice(c,l.length);this.rootNode.allLeafChildren=jg(d,a,h)}else this.rootNode.allLeafChildren=jg(this.rootNode.allLeafChildren,a);this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),o.add=a}},e.prototype.executeRemove=function(e,t,o){var r=this,i=e.remove;if(!Qr.missingOrEmpty(i)){var n={};i.forEach((function(e){var i=r.lookupRowNode(e);i&&(i.isSelected()&&o.push(i),i.clearRowTopAndRowIndex(),n[i.id]=!0,delete r.allNodesMap[i.id],t.remove.push(i))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(e){return!n[e.id]})),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},e.prototype.executeUpdate=function(t,o,r){var i=this,n=t.update;Qr.missingOrEmpty(n)||n.forEach((function(t){var n=i.lookupRowNode(t);n&&(n.updateData(t),!n.selectable&&n.isSelected()&&r.push(n),i.setMasterForRow(n,t,e.TOP_LEVEL,!1),o.update.push(n))}))},e.prototype.lookupRowNode=function(e){var t,o=this.gridOptionsService.getRowIdFunc();if(o){var r=o({data:e,level:0});if(!(t=this.allNodesMap[r]))return console.error("AG Grid: could not find row id="+r+", data item was not found for this id"),null}else if(!(t=this.rootNode.allLeafChildren.find((function(t){return t.data===e}))))return console.error("AG Grid: could not find data item as object was not found",e),console.error("Consider using getRowId to help the Grid find matching row data"),null;return t||null},e.prototype.createNode=function(e,t,o){var r=new fs(this.beans);return r.group=!1,this.setMasterForRow(r,e,o,!0),t&&!this.suppressParentsInRowNodes&&(r.parent=t),r.level=o,r.setDataAndId(e,this.nextId.toString()),this.allNodesMap[r.id]&&console.warn("AG Grid: duplicate node id '"+r.id+"' detected from getRowId callback, this could cause issues in your grid."),this.allNodesMap[r.id]=r,this.nextId++,r},e.prototype.setMasterForRow=function(e,t,o,r){if(this.doingTreeData)e.setMaster(!1),r&&(e.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?e.setMaster(this.isRowMasterFunc(t)):e.setMaster(!0):e.setMaster(!1),r){var i=this.columnModel.getRowGroupColumns(),n=o+(i?i.length:0);e.expanded=!!e.master&&this.isExpanded(n)}},e.prototype.isExpanded=function(e){var t=this.gridOptionsService.getNum("groupDefaultExpanded");return-1===t||e<t},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}(),Ug=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),zg=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Kg=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},Yg=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Kg(arguments[t]));return e};!function(e){e[e.Normal=0]="Normal",e[e.AfterFilter=1]="AfterFilter",e[e.AfterFilterAndSort=2]="AfterFilterAndSort",e[e.PivotNodes=3]="PivotNodes"}(kg||(kg={}));var qg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onRowHeightChanged_debounced=Qr.debounce(t.onRowHeightChanged.bind(t),100),t.rowsToDisplay=[],t}return Ug(t,e),t.prototype.init=function(){var e=this.refreshModel.bind(this,{step:exports.ClientSideRowModelSteps.EVERYTHING}),t=!this.gridOptionsService.is("suppressAnimationFrame"),o=this.refreshModel.bind(this,{step:exports.ClientSideRowModelSteps.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:t});this.addManagedListener(this.eventService,ke.EVENT_NEW_COLUMNS_LOADED,o),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:exports.ClientSideRowModelSteps.PIVOT})),this.addManagedListener(this.eventService,ke.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.addManagedListener(this.eventService,ke.EVENT_GRID_STYLES_CHANGED,this.resetRowHeights.bind(this));var r=this.refreshModel.bind(this,{step:exports.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:t});this.addManagedPropertyListener("groupRemoveSingleChildren",r),this.addManagedPropertyListener("groupRemoveLowestSingleChildren",r),this.rootNode=new fs(this.beans),this.nodeManager=new Wg(this.rootNode,this.gridOptionsService,this.eventService,this.columnModel,this.selectionService,this.beans)},t.prototype.start=function(){var e=this.gridOptionsService.get("rowData");e&&this.setRowData(e)},t.prototype.ensureRowHeightsValid=function(e,t,o,r){var i,n=!1;do{i=!1;for(var s=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),l=Math.max(s,o),u=Math.min(a,r),c=l;c<=u;c++){var p=this.getRow(c);if(p.rowHeightEstimated){var d=this.gridOptionsService.getRowHeightForNode(p);p.setRowHeight(d.height),i=!0,n=!0}}i&&this.setRowTopAndRowIndex()}while(i);return n},t.prototype.setRowTopAndRowIndex=function(){for(var e=this.environment.getDefaultRowHeight(),t=0,o=new Set,r=this.gridOptionsService.isDomLayout("normal"),i=0;i<this.rowsToDisplay.length;i++){var n=this.rowsToDisplay[i];if(null!=n.id&&o.add(n.id),null==n.rowHeight){var s=this.gridOptionsService.getRowHeightForNode(n,r,e);n.setRowHeight(s.height,s.estimated)}n.setRowTop(t),n.setRowIndex(i),t+=n.rowHeight}return o},t.prototype.clearRowTopAndRowIndex=function(e,t){var o=e.isActive(),r=function(e){e&&null!=e.id&&!t.has(e.id)&&e.clearRowTopAndRowIndex()},i=function(e){if(r(e),r(e.detailNode),r(e.sibling),e.hasChildren()&&e.childrenAfterGroup){var t=-1==e.level;o&&!t&&!e.expanded||e.childrenAfterGroup.forEach(i)}};i(this.rootNode)},t.prototype.ensureRowsAtPixel=function(e,t,o){var r=this;void 0===o&&(o=0);var i=this.getRowIndexAtPixel(t),n=this.getRow(i),s=!this.gridOptionsService.is("suppressAnimationFrame");return n!==e[0]&&(e.forEach((function(e){Qr.removeFromArray(r.rootNode.allLeafChildren,e)})),e.forEach((function(e,t){Qr.insertIntoArray(r.rootNode.allLeafChildren,e,Math.max(i+o,0)+t)})),this.refreshModel({step:exports.ClientSideRowModelSteps.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:s}),!0)},t.prototype.highlightRowAtPixel=function(e,t){var o=null!=t?this.getRowIndexAtPixel(t):null,r=null!=o?this.getRow(o):null;if(r&&e&&r!==e&&null!=t){var i=this.getHighlightPosition(t,r);this.lastHighlightedRow&&this.lastHighlightedRow!==r&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null),r.setHighlighted(i),this.lastHighlightedRow=r}else this.lastHighlightedRow&&(this.lastHighlightedRow.setHighlighted(null),this.lastHighlightedRow=null)},t.prototype.getHighlightPosition=function(e,t){if(!t){var o=this.getRowIndexAtPixel(e);if(!(t=this.getRow(o||0)))return exports.RowHighlightPosition.Below}return e-t.rowTop<t.rowHeight/2?exports.RowHighlightPosition.Above:exports.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(){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;var e=this.rootNode.childrenAfterAggFilter;return e?e.length:0},t.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var t=this.rootNode.childrenAfterSort[e];if(this.gridOptionsService.is("groupHideOpenParents"))for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},t.prototype.getRowBounds=function(e){if(Qr.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},t.prototype.onRowGroupOpened=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:exports.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:e})},t.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var t=this.gridOptionsService.isAnimateRows(),o=0===e.columns.length||e.columns.some((function(e){return e.isPrimary()}))?exports.ClientSideRowModelSteps.FILTER:exports.ClientSideRowModelSteps.FILTER_AGGREGATES;this.refreshModel({step:o,keepRenderedRows:!0,animate:t})}},t.prototype.onSortChanged=function(){var e=this.gridOptionsService.isAnimateRows();this.refreshModel({step:exports.ClientSideRowModelSteps.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},t.prototype.getType=function(){return"clientSide"},t.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:exports.ClientSideRowModelSteps.PIVOT}):this.refreshModel({step:exports.ClientSideRowModelSteps.AGGREGATE})},t.prototype.createChangePath=function(e){var t=Qr.missingOrEmpty(e),o=new Hp(!1,this.rootNode);return(t||this.gridOptionsService.isTreeData())&&o.setInactive(),o},t.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsService.is("suppressModelUpdateAfterUpdateTransaction"))return!1;if(null==e.rowNodeTransactions)return!1;var t=e.rowNodeTransactions.filter((function(e){return null!=e.add&&e.add.length>0||null!=e.remove&&e.remove.length>0}));return null==t||0==t.length},t.prototype.buildRefreshModelParams=function(e){var t=exports.ClientSideRowModelSteps.EVERYTHING,o={everything:exports.ClientSideRowModelSteps.EVERYTHING,group:exports.ClientSideRowModelSteps.EVERYTHING,filter:exports.ClientSideRowModelSteps.FILTER,map:exports.ClientSideRowModelSteps.MAP,aggregate:exports.ClientSideRowModelSteps.AGGREGATE,sort:exports.ClientSideRowModelSteps.SORT,pivot:exports.ClientSideRowModelSteps.PIVOT};if(Qr.exists(e)&&(t=o[e]),!Qr.missing(t))return{step:t,keepRenderedRows:!0,keepEditingRows:!0,animate:!this.gridOptionsService.is("suppressAnimationFrame")};console.error("AG Grid: invalid step "+e+", available steps are "+Object.keys(o).join(", "))},t.prototype.refreshModel=function(e){var t="object"==typeof e&&"step"in e?e:this.buildRefreshModelParams(e);if(t&&!this.isSuppressModelUpdateAfterUpdateTransaction(t)){var o=this.createChangePath(t.rowNodeTransactions);switch(t.step){case exports.ClientSideRowModelSteps.EVERYTHING:this.doRowGrouping(t.groupState,t.rowNodeTransactions,t.rowNodeOrder,o,!!t.afterColumnsChanged);case exports.ClientSideRowModelSteps.FILTER:this.doFilter(o);case exports.ClientSideRowModelSteps.PIVOT:this.doPivot(o);case exports.ClientSideRowModelSteps.AGGREGATE:this.doAggregate(o);case exports.ClientSideRowModelSteps.FILTER_AGGREGATES:this.doFilterAggregates(o);case exports.ClientSideRowModelSteps.SORT:this.doSort(t.rowNodeTransactions,o);case exports.ClientSideRowModelSteps.MAP:this.doRowsToDisplay()}var r=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(o,r);var i={type:ke.EVENT_MODEL_UPDATED,animate:t.animate,keepRenderedRows:t.keepRenderedRows,newData:t.newData,newPage:!1,keepUndoRedoStack:t.keepUndoRedoStack};this.eventService.dispatchEvent(i)}},t.prototype.isEmpty=function(){var e=Qr.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return Qr.missing(this.rootNode)||e||!this.columnModel.isReady()},t.prototype.isRowsToRender=function(){return Qr.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},t.prototype.getNodesInRangeForSelection=function(e,t){var o,r=!t,i=!1,n=[],s=this.gridOptionsService.is("groupSelectsChildren");return this.forEachNodeAfterFilterAndSort((function(a){var l=r&&!i;if(r||a!==t&&a!==e||(r=!0),!(a.group&&s)){var u=r&&!i,c=a.isParentOfNode(o);(u||c)&&n.push(a)}l&&(a!==t&&a!==e||(i=!0,o=a===t?t:e))})),n},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()||0===this.rowsToDisplay.length)return-1;var t=0,o=this.rowsToDisplay.length-1;if(e<=0)return 0;if(Qr.last(this.rowsToDisplay).rowTop<=e)return this.rowsToDisplay.length-1;for(var r=-1,i=-1;;){var n=Math.floor((t+o)/2),s=this.rowsToDisplay[n];if(this.isRowInPixel(s,e))return n;if(s.rowTop<e?t=n+1:s.rowTop>e&&(o=n-1),r===t&&i===o)return n;r=t,i=o}},t.prototype.isRowInPixel=function(e,t){var o=e.rowTop,r=e.rowTop+e.rowHeight;return o<=t&&r>t},t.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,o){return e(t,o)}))},t.prototype.forEachNode=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:Yg(this.rootNode.childrenAfterGroup||[]),callback:e,recursionType:kg.Normal,index:0,includeFooterNodes:t})},t.prototype.forEachNodeAfterFilter=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:Yg(this.rootNode.childrenAfterAggFilter||[]),callback:e,recursionType:kg.AfterFilter,index:0,includeFooterNodes:t})},t.prototype.forEachNodeAfterFilterAndSort=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:Yg(this.rootNode.childrenAfterSort||[]),callback:e,recursionType:kg.AfterFilterAndSort,index:0,includeFooterNodes:t})},t.prototype.forEachPivotNode=function(e,t){void 0===t&&(t=!1),this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:e,recursionType:kg.PivotNodes,index:0,includeFooterNodes:t})},t.prototype.recursivelyWalkNodesAndCallback=function(e){var t,o=e.nodes,r=e.callback,i=e.recursionType,n=e.includeFooterNodes,s=e.index,a=o[0];n&&(null===(t=null==a?void 0:a.parent)||void 0===t?void 0:t.sibling)&&o.push(a.parent.sibling);for(var l=0;l<o.length;l++){var u=o[l];if(r(u,s++),u.hasChildren()&&!u.footer){var c=null;switch(i){case kg.Normal:c=u.childrenAfterGroup;break;case kg.AfterFilter:c=u.childrenAfterAggFilter;break;case kg.AfterFilterAndSort:c=u.childrenAfterSort;break;case kg.PivotNodes:c=u.leafGroup?null:u.childrenAfterSort}c&&(s=this.recursivelyWalkNodesAndCallback({nodes:Yg(c),callback:r,recursionType:i,index:s,includeFooterNodes:n}))}}return s},t.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doFilterAggregates=function(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},t.prototype.expandOrCollapseAll=function(e){var t=this.gridOptionsService.isTreeData(),o=this.columnModel.isPivotActive(),r=function(i){i&&i.forEach((function(i){var n=function(){i.expanded=e,r(i.childrenAfterGroup)};t?Qr.exists(i.childrenAfterGroup)&&n():o?!i.leafGroup&&n():i.group&&n()}))};this.rootNode&&r(this.rootNode.childrenAfterGroup),this.refreshModel({step:exports.ClientSideRowModelSteps.MAP});var i=e?"expandAll":"collapseAll",n={type:ke.EVENT_EXPAND_COLLAPSE_ALL,source:i};this.eventService.dispatchEvent(n)},t.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},t.prototype.doRowGrouping=function(e,t,o,r,i){if(this.groupStage){if(t?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:t,rowNodeOrder:o,changedPath:r}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:r,afterColumnsChanged:i}),this.restoreGroupState(e)),this.gridOptionsService.is("groupSelectsChildren")&&this.selectionService.updateGroupsFromChildrenSelections("rowGroupChanged",r)){var n={type:ke.EVENT_SELECTION_CHANGED,source:"rowGroupChanged"};this.eventService.dispatchEvent(n)}}else 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&&Qr.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,o){"boolean"==typeof e[o]&&(t.expanded=e[o])}))},t.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},t.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsService.is("rememberGroupStateWhenNewData"))return null;var e={};return Qr.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,o){return e[o]=t.expanded})),e},t.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},t.prototype.getRowNode=function(e){if("string"==typeof e&&0==e.indexOf(fs.ID_PREFIX_ROW_GROUP)){var t=void 0;return this.forEachNode((function(o){o.id===e&&(t=o)})),t}return this.nodeManager.getRowNode(e)},t.prototype.setRowData=function(e){var t=this.getGroupState();this.nodeManager.setRowData(e),this.selectionService.reset(),this.filterManager.onNewRowsLoaded("rowDataUpdated");var o={type:ke.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(o),this.refreshModel({step:exports.ClientSideRowModelSteps.EVERYTHING,groupState:t,newData:!0})},t.prototype.batchUpdateRowData=function(e,t){var o=this;if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];var r=this.gridOptionsService.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout((function(){o.executeBatchUpdateRowData()}),r)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},t.prototype.flushAsyncTransactions=function(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},t.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],o=[],r=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(i){var n=e.nodeManager.updateRowData(i.rowDataTransaction,void 0);o.push(n),i.callback&&t.push(i.callback.bind(null,n)),"number"==typeof i.rowDataTransaction.addIndex&&(r=!0)})),this.commonUpdateRowData(o,void 0,r),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0),o.length>0){var i={type:ke.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:o};this.eventService.dispatchEvent(i)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},t.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(e,t),r="number"==typeof e.addIndex;return this.commonUpdateRowData([o],t,r),o},t.prototype.createRowNodeOrder=function(){if(!this.gridOptionsService.is("suppressMaintainUnsortedOrder")){var e={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var t=0;t<this.rootNode.allLeafChildren.length;t++){e[this.rootNode.allLeafChildren[t].id]=t}return e}},t.prototype.commonUpdateRowData=function(e,t,o){var r=!this.gridOptionsService.is("suppressAnimationFrame");o&&(t=this.createRowNodeOrder()),this.refreshModel({step:exports.ClientSideRowModelSteps.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:t,keepRenderedRows:!0,keepEditingRows:!0,animate:r}),this.filterManager.onNewRowsLoaded("rowDataUpdated");var i={type:ke.EVENT_ROW_DATA_UPDATED};this.eventService.dispatchEvent(i)},t.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},t.prototype.onRowHeightChanged=function(){this.refreshModel({step:exports.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,keepEditingRows:!0,keepUndoRedoStack:!0})},t.prototype.onRowHeightChangedDebounced=function(){this.onRowHeightChanged_debounced()},t.prototype.resetRowHeights=function(){var e=!1;this.forEachNode((function(t){t.setRowHeight(t.rowHeight,!0);var o=t.detailNode;o&&o.setRowHeight(o.rowHeight,!0),e=!0})),this.rootNode.setRowHeight(this.rootNode.rowHeight,!0),e&&this.onRowHeightChanged()},zg([U("columnModel")],t.prototype,"columnModel",void 0),zg([U("selectionService")],t.prototype,"selectionService",void 0),zg([U("filterManager")],t.prototype,"filterManager",void 0),zg([U("valueCache")],t.prototype,"valueCache",void 0),zg([U("beans")],t.prototype,"beans",void 0),zg([U("filterStage")],t.prototype,"filterStage",void 0),zg([U("sortStage")],t.prototype,"sortStage",void 0),zg([U("flattenStage")],t.prototype,"flattenStage",void 0),zg([z("groupStage")],t.prototype,"groupStage",void 0),zg([z("aggregationStage")],t.prototype,"aggregationStage",void 0),zg([z("pivotStage")],t.prototype,"pivotStage",void 0),zg([z("filterAggregatesStage")],t.prototype,"filterAggregatesStage",void 0),zg([B],t.prototype,"init",null),t=zg([W("rowModel")],t)}(Le),Qg=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Xg=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Jg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qg(t,e),t.prototype.execute=function(e){var t=e.changedPath;this.filterService.filter(t)},Xg([U("filterService")],t.prototype,"filterService",void 0),t=Xg([W("filterStage")],t)}(Le),Zg=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),$g=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},ev=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zg(t,e),t.prototype.execute=function(e){var t=this,o=this.sortController.getSortOptions(),r=Qr.exists(o)&&o.length>0,i=r&&Qr.exists(e.rowNodeTransactions)&&this.gridOptionsService.is("deltaSort"),n=o.some((function(e){return!!t.columnModel.getGroupDisplayColumnForGroup(e.column.getId())}));this.sortService.sort(o,r,i,e.rowNodeTransactions,e.changedPath,n)},$g([U("sortService")],t.prototype,"sortService",void 0),$g([U("sortController")],t.prototype,"sortController",void 0),$g([U("columnModel")],t.prototype,"columnModel",void 0),t=$g([W("sortStage")],t)}(Le),tv=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),ov=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},rv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tv(t,e),t.prototype.execute=function(e){var t=e.rowNode,o=[],r={value:0},i=this.columnModel.isPivotMode(),n=i&&t.leafGroup,s=n?[t]:t.childrenAfterSort;return this.recursivelyAddToRowsToDisplay(s,o,r,i,0),!n&&o.length>0&&this.gridOptionsService.is("groupIncludeTotalFooter")&&(t.createFooter(),this.addRowNodeToRowsToDisplay(t.sibling,o,r,0)),o},t.prototype.recursivelyAddToRowsToDisplay=function(e,t,o,r,i){if(!Qr.missingOrEmpty(e))for(var n=this.gridOptionsService.is("groupHideOpenParents"),s=this.gridOptionsService.is("groupRemoveSingleChildren"),a=!s&&this.gridOptionsService.is("groupRemoveLowestSingleChildren"),l=0;l<e.length;l++){var u=e[l],c=u.hasChildren(),p=r&&!c,d=s&&c&&1===u.childrenAfterGroup.length,h=a&&c&&u.leafGroup&&1===u.childrenAfterGroup.length,f=r&&u.leafGroup,g=n&&u.expanded&&!u.master&&!f;if(!(p||g||d||h)&&this.addRowNodeToRowsToDisplay(u,t,o,i),!r||!u.leafGroup)if(c){var v=d||h;if(u.expanded||v){var y=v?i:i+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,o,r,y),this.gridOptionsService.is("groupIncludeFooter")&&this.addRowNodeToRowsToDisplay(u.sibling,t,o,i)}}else if(u.master&&u.expanded){var m=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(m,t,o,i)}}},t.prototype.addRowNodeToRowsToDisplay=function(e,t,o,r){var i=this.gridOptionsService.isGroupMultiAutoColumn();t.push(e),e.setUiLevel(i?0:r)},t.prototype.createDetailNode=function(e){if(Qr.exists(e.detailNode))return e.detailNode;var t=new fs(this.beans);return t.detail=!0,t.selectable=!1,t.parent=e,Qr.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t},ov([U("columnModel")],t.prototype,"columnModel",void 0),ov([U("beans")],t.prototype,"beans",void 0),t=ov([W("flattenStage")],t)}(Le),iv=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),nv=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},sv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return iv(t,e),t.prototype.init=function(){this.postSortFunc=this.getPostSortFunc()},t.prototype.sort=function(e,t,o,r,i,n){var s=this,a=this.gridOptionsService.is("groupMaintainOrder"),l=this.columnModel.getAllGridColumns().some((function(e){return e.isRowGroupActive()})),u={};o&&r&&(u=this.calculateDirtyNodes(r));var c=this.columnModel.isPivotMode();i&&i.forEachChangedNodeDepthFirst((function(r){s.pullDownGroupDataForHideOpenParents(r.childrenAfterAggFilter,!0);var p=c&&r.leafGroup;if(a&&l&&!r.leafGroup&&!n){var d=r.childrenAfterAggFilter.slice(0);if(r.childrenAfterSort){var h={};r.childrenAfterSort.forEach((function(e,t){h[e.id]=t})),d.sort((function(e,t){var o,r;return(null!==(o=h[e.id])&&void 0!==o?o:0)-(null!==(r=h[t.id])&&void 0!==r?r:0)}))}r.childrenAfterSort=d}else r.childrenAfterSort=!t||p?r.childrenAfterAggFilter.slice(0):o?s.doDeltaSort(r,u,i,e):s.rowNodeSorter.doFullSort(r.childrenAfterAggFilter,e);if(r.sibling&&(r.sibling.childrenAfterSort=r.childrenAfterSort),s.updateChildIndexes(r),s.postSortFunc){var f={nodes:r.childrenAfterSort};s.postSortFunc(f)}})),this.updateGroupDataForHideOpenParents(i)},t.prototype.getPostSortFunc=function(){var e=this.gridOptionsService.getCallback("postSortRows");if(e)return e;var t=this.gridOptionsService.get("postSort");return t?function(e){return t(e.nodes)}:void 0},t.prototype.calculateDirtyNodes=function(e){var t={},o=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e&&e.forEach((function(e){o(e.add),o(e.update),o(e.remove)})),t},t.prototype.doDeltaSort=function(e,t,o,r){var i=this,n=e.childrenAfterAggFilter,s=e.childrenAfterSort;if(!s)return this.rowNodeSorter.doFullSort(n,r);var a={},l=[];n.forEach((function(e){t[e.id]||!o.canSkip(e)?l.push(e):a[e.id]=!0}));var u=s.filter((function(e){return a[e.id]})),c=function(e,t){return{currentPos:t,rowNode:e}},p=l.map(c).sort((function(e,t){return i.rowNodeSorter.compareRowNodes(r,e,t)}));return this.mergeSortedArrays(r,p,u.map(c)).map((function(e){return e.rowNode}))},t.prototype.mergeSortedArrays=function(e,t,o){for(var r=[],i=0,n=0;i<t.length&&n<o.length;){this.rowNodeSorter.compareRowNodes(e,t[i],o[n])<0?r.push(t[i++]):r.push(o[n++])}for(;i<t.length;)r.push(t[i++]);for(;n<o.length;)r.push(o[n++]);return r},t.prototype.updateChildIndexes=function(e){if(!Qr.missing(e.childrenAfterSort))for(var t=e.childrenAfterSort,o=0;o<t.length;o++){var r=t[o],i=0===o,n=o===e.childrenAfterSort.length-1;r.setFirstChild(i),r.setLastChild(n),r.setChildIndex(o)}},t.prototype.updateGroupDataForHideOpenParents=function(e){var t=this;if(this.gridOptionsService.is("groupHideOpenParents")){if(this.gridOptionsService.isTreeData()){return Qr.doOnce((function(){return console.warn("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).")}),"sortService.hideOpenParentsWithTreeData"),!1}var o=function(e){t.pullDownGroupDataForHideOpenParents(e.childrenAfterSort,!1),e.childrenAfterSort.forEach((function(e){e.hasChildren()&&o(e)}))};e&&e.executeFromRootNode((function(e){return o(e)}))}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var o=this;this.gridOptionsService.is("groupHideOpenParents")&&!Qr.missing(e)&&e.forEach((function(e){o.columnModel.getGroupDisplayColumns().forEach((function(r){var i=r.getColDef().showRowGroup;if("string"==typeof i){var n=i,s=o.columnModel.getPrimaryColumn(n);if(!(s===e.rowGroupColumn))if(t)e.setGroupValue(r.getId(),void 0);else{var a=e.getFirstChildOfFirstChild(s);a&&e.setGroupValue(r.getId(),a.key)}}else console.error("AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup")}))}))},nv([U("columnModel")],t.prototype,"columnModel",void 0),nv([U("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),nv([B],t.prototype,"init",null),t=nv([W("sortService")],t)}(Le),av=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),lv=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},uv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return av(t,e),t.prototype.filter=function(e){var t=this.filterManager.isColumnFilterPresent()||this.filterManager.isQuickFilterPresent()||this.filterManager.isExternalFilterPresent();this.filterNodes(t,e)},t.prototype.filterNodes=function(e,t){var o=this,r=function(t,r){t.hasChildren()?t.childrenAfterFilter=e&&!r?t.childrenAfterGroup.filter((function(e){var t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,r=e.data&&o.filterManager.doesRowPassFilter({rowNode:e});return t||r})):t.childrenAfterGroup:t.childrenAfterFilter=t.childrenAfterGroup,t.sibling&&(t.sibling.childrenAfterFilter=t.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var i=function(e,t){if(e.childrenAfterGroup)for(var n=0;n<e.childrenAfterGroup.length;n++){var s=e.childrenAfterGroup[n],a=t||o.filterManager.doesRowPassFilter({rowNode:s});s.childrenAfterGroup?i(e.childrenAfterGroup[n],a):r(s,a)}r(e,t)};t.executeFromRootNode((function(e){return i(e,!1)}))}else{t.forEachChangedNodeDepthFirst((function(e){return r(e,!1)}),!0)}},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsService.isTreeData()&&!this.gridOptionsService.is("excludeChildrenWhenTreeDataFiltering")},lv([U("filterManager")],t.prototype,"filterManager",void 0),t=lv([W("filterService")],t)}(Le),cv=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),pv=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},dv=function(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var r,i,n=o.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=n.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(o=n.return)&&o.call(n)}finally{if(i)throw i.error}}return s},hv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return cv(t,e),t.prototype.postConstruct=function(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)},t.prototype.isActive=function(){var e=this.gridOptionsService.exists("getRowId"),t=this.gridOptionsService.is("immutableData");return!this.gridOptionsService.is("resetRowDataOnUpdate")&&(e||t)},t.prototype.setRowData=function(e){var t=this.createTransactionForRowData(e);if(t){var o=dv(t,2),r=o[0],i=o[1],n=this.clientSideRowModel.updateRowData(r,i);n&&this.rowRenderer.refreshFullWidthRows(n.update)}},t.prototype.createTransactionForRowData=function(e){if(Qr.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsService.getRowIdFunc();if(null!=t){var o={remove:[],update:[],add:[]},r=this.clientSideRowModel.getCopyOfNodesMap(),i=this.gridOptionsService.is("suppressMaintainUnsortedOrder")?void 0:{};return Qr.exists(e)&&e.forEach((function(e,n){var s=t({data:e,level:0}),a=r[s];(i&&(i[s]=n),a)?(a.data!==e&&o.update.push(e),r[s]=void 0):o.add.push(e)})),Qr.iterateObject(r,(function(e,t){t&&o.remove.push(t.data)})),[o,i]}console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!")}},pv([U("rowModel")],t.prototype,"rowModel",void 0),pv([U("rowRenderer")],t.prototype,"rowRenderer",void 0),pv([B],t.prototype,"postConstruct",null),t=pv([W("immutableService")],t)}(Le),fv={version:"29.2.0",moduleName:exports.ModuleNames.ClientSideRowModelModule,rowModel:"clientSide",beans:[qg,Jg,ev,rv,sv,uv,hv]},gv=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),vv=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},yv=function(e){function t(t,o,r){var i=e.call(this,t)||this;return i.parentCache=o,i.params=r,i.startRow=t*r.blockSize,i.endRow=i.startRow+r.blockSize,i}return gv(t,e),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,t,o){!e.id&&e.alreadyRendered&&(e.alreadyRendered=!1),Qr.exists(t)?e.setDataAndId(t,o.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,t=this.createLoadParams();Qr.missing(this.params.datasource.getRows)?console.warn("AG Grid: datasource is missing getRows method"):window.setTimeout((function(){e.params.datasource.getRows(t)}),0)},t.prototype.processServerFail=function(){},t.prototype.createLoadParams=function(){return{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.gridOptionsService.context}},t.prototype.forEachNode=function(e,t,o){var r=this;this.rowNodes.forEach((function(i,n){r.startRow+n<o&&e(i,t.next())}))},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.params.lastAccessedSequence.next());var o=e-this.startRow;return this.rowNodes[o]},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.params.blockSize;e++){var t=this.startRow+e,o=new fs(this.beans);o.setRowHeight(this.params.rowHeight),o.uiLevel=0,o.setRowIndex(t),o.setRowTop(this.params.rowHeight*t),this.rowNodes.push(o)}},t.prototype.processServerResult=function(e){var t=this;this.rowNodes.forEach((function(o,r){var i=e.rowData?e.rowData[r]:void 0;t.setDataAndId(o,i,t.startRow+r)}));var o=null!=e.rowCount&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,o)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach((function(e){e.clearRowTopAndRowIndex()}))},vv([U("beans")],t.prototype,"beans",void 0),vv([B],t.prototype,"postConstruct",null),vv([j],t.prototype,"destroyRowNodes",null),t}(kp),mv=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Cv=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},wv=function(e,t){return function(o,r){t(o,r,e)}},Sv=function(e){function t(t){var o=e.call(this)||this;return o.lastRowIndexKnown=!1,o.blocks={},o.blockCount=0,o.rowCount=t.initialRowCount,o.params=t,o}return mv(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var o=Math.floor(e/this.params.blockSize),r=this.blocks[o];if(!r){if(t)return;r=this.createBlock(o)}return r.getRow(e)},t.prototype.createBlock=function(e){var t=this.createBean(new yv(e,this,this.params));return this.blocks[t.getId()]=t,this.blockCount++,this.purgeBlocksIfNeeded(t),this.params.rowNodeBlockLoader.addBlock(t),t},t.prototype.refreshCache=function(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach((function(e){return e.setStateWaitingToLoad()})),this.params.rowNodeBlockLoader.checkBlockToLoad())},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach((function(t){return e.destroyBlock(t)}))},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,t){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+e.getId()+", lastRow = "+t),this.checkRowCount(e,t),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var o=this,r=this.getBlocksInOrder().filter((function(t){return t!=e}));r.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var i=this.params.maxBlocksInCache>0,n=i?this.params.maxBlocksInCache-1:null,s=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;r.forEach((function(e,t){if(e.getState()===yv.STATE_WAITING_TO_LOAD&&t>=s||!!i&&t>=n){if(o.isBlockCurrentlyDisplayed(e))return;if(o.isBlockFocused(e))return;o.removeBlockFromCache(e)}}))},t.prototype.isBlockFocused=function(e){var t=this.focusService.getFocusCellToUseAfterRefresh();if(!t)return!1;if(null!=t.rowPinned)return!1;var o=e.getStartRow(),r=e.getEndRow();return t.rowIndex>=o&&t.rowIndex<r},t.prototype.isBlockCurrentlyDisplayed=function(e){var t=e.getStartRow(),o=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(t,o)},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkRowCount=function(e,t){if("number"==typeof t&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var o=(e.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount<o&&(this.rowCount=o)}},t.prototype.setRowCount=function(e,t){this.rowCount=e,Qr.exists(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize==0&&this.rowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e){var t=this,o=new Xr;this.getBlocksInOrder().forEach((function(r){return r.forEachNode(e,o,t.rowCount)}))},t.prototype.getBlocksInOrder=function(){return Qr.getAllValuesInObject(this.blocks).sort((function(e,t){return e.getId()-t.getId()}))},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:ke.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,t=[];this.getBlocksInOrder().forEach((function(o){o.getId()*e.params.blockSize>=e.rowCount&&t.push(o)})),t.length>0&&t.forEach((function(t){return e.destroyBlock(t)}))},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach((function(t){return e.removeBlockFromCache(t)})),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var o=this,r=[],i=-1,n=!1,s=new Xr;Qr.missing(e)&&(n=!0);var a=!1;return this.getBlocksInOrder().forEach((function(l){a||(n&&i+1!==l.getId()?a=!0:(i=l.getId(),l.forEachNode((function(o){var i=o===e||o===t;(n||i)&&r.push(o),i&&(n=!n)}),s,o.rowCount)))})),a||n?[]:r},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,Cv([U("rowRenderer")],t.prototype,"rowRenderer",void 0),Cv([U("focusService")],t.prototype,"focusService",void 0),Cv([wv(0,Y("loggerFactory"))],t.prototype,"setBeans",null),Cv([j],t.prototype,"destroyAllBlocks",null),t}(Le),Ev=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Rv=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Ov=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ev(t,e),t.prototype.getRowBounds=function(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}},t.prototype.ensureRowHeightsValid=function(e,t,o,r){return!1},t.prototype.init=function(){var e=this;this.gridOptionsService.isRowModelType("infinite")&&(this.rowHeight=this.gridOptionsService.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc((function(){return e.destroyCache()})),this.verifyProps())},t.prototype.verifyProps=function(){if(this.gridOptionsService.exists("initialGroupOrderComparator")||this.gridOptionsService.exists("defaultGroupOrderComparator")){Qr.doOnce((function(){return console.warn("AG Grid: initialGroupOrderComparator 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.")}),"IRM.InitialGroupOrderComparator")}},t.prototype.start=function(){this.setDatasource(this.gridOptionsService.get("datasource"))},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,ke.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,ke.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!Qr.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return"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,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(this.datasource){null!=this.gridOptionsService.getRowIdFunc()||this.selectionService.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:ke.EVENT_MODEL_UPDATED,newPage:!1,newData:!1,keepRenderedRows:!0,animate:!1}},t.prototype.resetCache=function(){this.destroyCache(),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,initialRowCount:this.defaultIfInvalid(this.gridOptionsService.getNum("infiniteInitialRowCount"),1),maxBlocksInCache:this.gridOptionsService.getNum("maxBlocksInCache"),rowHeight:this.gridOptionsService.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsService.getNum("cacheOverflowSize"),1),blockSize:this.defaultIfInvalid(this.gridOptionsService.getNum("cacheBlockSize"),100),lastAccessedSequence:new Xr},this.infiniteCache=this.createBean(new Sv(this.cacheParams))},t.prototype.defaultIfInvalid=function(e,t){return e>0?e:t},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 t;return this.forEachNode((function(o){o.id===e&&(t=o)})),t},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(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight),o=this.getRowCount()-1;return t>o?o:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){return!!this.getRowNode(e.id)},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()},t.prototype.setRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setRowCount(e,t)},Rv([U("filterManager")],t.prototype,"filterManager",void 0),Rv([U("sortController")],t.prototype,"sortController",void 0),Rv([U("selectionService")],t.prototype,"selectionService",void 0),Rv([U("rowRenderer")],t.prototype,"rowRenderer",void 0),Rv([U("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Rv([B],t.prototype,"init",null),Rv([j],t.prototype,"destroyDatasource",null),t=Rv([W("rowModel")],t)}(Le),bv={version:"29.2.0",moduleName:exports.ModuleNames.InfiniteRowModelModule,rowModel:"infinite",beans:[Ov]},Tv=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.getFileName=function(e){var t=this.getDefaultFileExtension();return null!=e&&e.length||(e=this.getDefaultFileName()),-1===e.indexOf(".")?e+"."+t:e},e.prototype.getData=function(e){var t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)},e}(),Pv=function(){function e(e){this.groupColumns=[];var t=e.columnModel,o=e.valueService,r=e.gridOptionsService,i=e.processCellCallback,n=e.processHeaderCallback,s=e.processGroupHeaderCallback,a=e.processRowGroupCallback;this.columnModel=t,this.valueService=o,this.gridOptionsService=r,this.processCellCallback=i,this.processHeaderCallback=n,this.processGroupHeaderCallback=s,this.processRowGroupCallback=a}return e.prototype.prepare=function(e){this.groupColumns=e.filter((function(e){return!!e.getColDef().showRowGroup}))},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,o,r,i){var n=!this.gridOptionsService.is("groupHideOpenParents")&&this.shouldRenderGroupSummaryCell(i,e,t)?this.createValueForGroupNode(i):this.valueService.getValue(e,i),s=this.processCell({accumulatedRowIndex:o,rowNode:i,column:e,value:n,processCellCallback:this.processCellCallback,type:r});return null!=s?s:""},e.prototype.shouldRenderGroupSummaryCell=function(e,t,o){var r;if(!(e&&e.group))return!1;if(-1!==this.groupColumns.indexOf(t)){if(null===(r=e.groupData)||void 0===r?void 0:r[t.getId()])return!0;if(e.footer&&-1===e.level){var i=t.getColDef();return null==i||!0===i.showRowGroup||i.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}var n=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===o&&n},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):this.columnModel.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context});var t=e.footer,o=[e.key];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;e.parent;)e=e.parent,o.push(e.key);var r=o.reverse().join(" -> ");return t?"Total "+r:r},e.prototype.processCell=function(e){var t=e.accumulatedRowIndex,o=e.rowNode,r=e.column,i=e.value,n=e.processCellCallback,s=e.type;return n?n({accumulatedRowIndex:t,column:r,node:o,value:i,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,type:s}):null!=i?i:""},e}(),Dv=function(){function e(){}return e.download=function(e,t){var o=document.defaultView||window;if(o){var r=document.createElement("a"),i=o.URL.createObjectURL(t);r.setAttribute("href",i),r.setAttribute("download",e),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(i)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},e}(),_v=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Av=function(e){function t(t){var o=e.call(this,t)||this;o.isFirstLine=!0,o.result="";var r=t.suppressQuotes,i=t.columnSeparator;return o.suppressQuotes=r,o.columnSeparator=i,o}return _v(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"==typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach((function(e){t.beginNewLine(),e.forEach((function(e,o){0!==o&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)}))})))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,o,r){0!=o&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(r)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t){0!=t&&(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,t,o){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,t,"csv",o))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null==e?'""':("string"==typeof e?t=e:"function"==typeof e.toString?t=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(Pv),Nv=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),Mv=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s},Fv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nv(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},t.prototype.getMergedParams=function(e){var t=this.gridOptionsService.get("defaultCsvExportParams");return Object.assign({},t,e)},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParams(e),o=this.getData(t),r=new Blob(["\ufeff",o],{type:"text/plain"});return Dv.download(this.getFileName(t.fileName),r),o},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e,t){void 0===t&&(t=!1);var o=t?Object.assign({},e):this.getMergedParams(e);return this.getData(o)},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this.columnModel,o=this.valueService,r=this.gridOptionsService,i=e,n=i.processCellCallback,s=i.processHeaderCallback,a=i.processGroupHeaderCallback,l=i.processRowGroupCallback,u=i.suppressQuotes,c=i.columnSeparator;return new Av({columnModel:t,valueService:o,gridOptionsService:r,processCellCallback:n||void 0,processHeaderCallback:s||void 0,processGroupHeaderCallback:a||void 0,processRowGroupCallback:l||void 0,suppressQuotes:u||!1,columnSeparator:c||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsService.is("suppressCsvExport")},Mv([U("columnModel")],t.prototype,"columnModel",void 0),Mv([U("valueService")],t.prototype,"valueService",void 0),Mv([U("gridSerializer")],t.prototype,"gridSerializer",void 0),Mv([U("gridOptionsService")],t.prototype,"gridOptionsService",void 0),Mv([B],t.prototype,"postConstruct",null),t=Mv([W("csvCreator")],t)}(Tv),Lv=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}}(),xv=function(e,t,o,r){var i,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,o,s):i(t,o))||s);return n>3&&s&&Object.defineProperty(t,o,s),s};!function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(exports.RowType||(exports.RowType={}));var Iv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lv(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var o=this.getColumnsToExport(t.allColumns,t.columnKeys);return Qr.compose(this.prepareSession(o),this.prependContent(t),this.exportColumnGroups(t,o),this.exportHeaders(t,o),this.processPinnedTopRows(t,o),this.processRows(t,o),this.processPinnedBottomRows(t,o),this.appendContent(t))(e).parse()},t.prototype.processRow=function(e,t,o,r){var i=t.shouldRowBeSkipped||function(){return!1},n=this.gridOptionsService.context,s=this.gridOptionsService.api,a=this.gridOptionsService.columnApi,l=this.gridOptionsService.is("groupRemoveSingleChildren"),u=this.gridOptionsService.is("groupRemoveLowestSingleChildren"),c=null!=t.rowPositions||!!t.onlySelected,p=this.gridOptionsService.is("groupHideOpenParents")&&!c,d=this.columnModel.isPivotMode()?r.leafGroup:!r.group,h=t.skipGroups||t.skipRowGroups,f=u&&r.leafGroup,g=1===r.allChildrenCount&&(l||f);if((h&&t.skipGroups&&Qr.doOnce((function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")}),"gridSerializer-skipGroups"),!(!d&&(t.skipRowGroups||g||p)||t.onlySelected&&!r.isSelected()||t.skipPinnedTop&&"top"===r.rowPinned||t.skipPinnedBottom&&"bottom"===r.rowPinned))&&((!(-1===r.level)||r.leafGroup||r.footer)&&!i({node:r,api:s,columnApi:a,context:n}))){var v=e.onNewBodyRow();if(o.forEach((function(e,t){v.onColumn(e,t,r)})),t.getCustomContentBelowRow){var y=t.getCustomContentBelowRow({node:r,api:s,columnApi:a,context:n});y&&e.addCustomContent(y)}}},t.prototype.appendContent=function(e){return function(t){var o=e.customFooter||e.appendContent;return o&&(e.customFooter&&Qr.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")}),"gridSerializer-customFooter"),t.addCustomContent(o)),t}},t.prototype.prependContent=function(e){return function(t){var o=e.customHeader||e.prependContent;return o&&(e.customHeader&&Qr.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")}),"gridSerializer-customHeader"),t.addCustomContent(o)),t}},t.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},t.prototype.exportColumnGroups=function(e,t){var o=this;return function(r){if(e.skipColumnGroupHeaders)e.columnGroups&&Qr.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 i=new st,n=o.displayedGroupCreator.createDisplayedGroups(t,o.columnModel.getGridBalancedTree(),i,null);o.recursivelyAddHeaderGroups(n,r,e.processGroupHeaderCallback)}return r}},t.prototype.exportHeaders=function(e,t){return function(o){if(e.skipHeader||e.skipColumnHeaders)e.skipHeader&&Qr.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")}),"gridSerializer-skipHeader");else{var r=o.onNewHeaderRow();t.forEach((function(e,t){r.onColumn(e,t,void 0)}))}return o}},t.prototype.processPinnedTopRows=function(e,t){var o=this;return function(r){var i=o.processRow.bind(o,r,e,t);return e.rowPositions?e.rowPositions.filter((function(e){return"top"===e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return o.pinnedRowModel.getPinnedTopRow(e.rowIndex)})).forEach(i):o.pinnedRowModel.forEachPinnedTopRow(i),r}},t.prototype.processRows=function(e,t){var o=this;return function(r){var i=o.rowModel,n=i.getType(),s="clientSide"===n,a="serverSide"===n,l=!s&&e.onlySelected,u=o.processRow.bind(o,r,e,t),c=e.exportedRows,p=void 0===c?"filteredAndSorted":c;if(e.rowPositions)e.rowPositions.filter((function(e){return null==e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return i.getRow(e.rowIndex)})).forEach(u);else if(o.columnModel.isPivotMode())s?i.forEachPivotNode(u,!0):i.forEachNode(u);else if(e.onlySelectedAllPages||l){var d=o.selectionService.getSelectedNodes();o.replicateSortedOrder(d),d.forEach(u)}else"all"===p?i.forEachNode(u):s?i.forEachNodeAfterFilterAndSort(u,!0):a?i.forEachNodeAfterFilterAndSort(u):i.forEachNode(u);return r}},t.prototype.replicateSortedOrder=function(e){var t=this,o=this.sortController.getSortOptions(),r=function(e,i){var n,s,a,l;return null!=e.rowIndex&&null!=i.rowIndex?e.rowIndex-i.rowIndex:e.level===i.level?(null===(n=e.parent)||void 0===n?void 0:n.id)===(null===(s=i.parent)||void 0===s?void 0:s.id)?t.rowNodeSorter.compareRowNodes(o,{rowNode:e,currentPos:null!==(a=e.rowIndex)&&void 0!==a?a:-1},{rowNode:i,currentPos:null!==(l=i.rowIndex)&&void 0!==l?l:-1}):r(e.parent,i.parent):e.level>i.level?r(e.parent,i):r(e,i.parent)};e.sort(r)},t.prototype.processPinnedBottomRows=function(e,t){var o=this;return function(r){var i=o.processRow.bind(o,r,e,t);return e.rowPositions?e.rowPositions.filter((function(e){return"bottom"===e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return o.pinnedRowModel.getPinnedBottomRow(e.rowIndex)})).forEach(i):o.pinnedRowModel.forEachPinnedBottomRow(i),r}},t.prototype.getColumnsToExport=function(e,t){void 0===e&&(e=!1);var o=this.columnModel.isPivotMode();return t&&t.length?this.columnModel.getGridColumns(t):e&&!o?(this.gridOptionsService.isTreeData()?this.columnModel.getGridColumns(["ag-Grid-AutoColumn"]):[]).concat(this.columnModel.getAllPrimaryColumns()||[]):this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,t,o){var r=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return r.push(e)}))})),e.length>0&&e[0]instanceof nt&&this.doAddHeaderHeader(t,e,o),r&&r.length>0&&this.recursivelyAddHeaderGroups(r,t,o)},t.prototype.doAddHeaderHeader=function(e,t,o){var r=this,i=e.onNewHeaderGroupingRow(),n=0;t.forEach((function(e){var t,s=e;t=o?o({columnGroup:s,api:r.gridOptionsService.api,columnApi:r.gridOptionsService.columnApi,context:r.gridOptionsService.context}):r.columnModel.getDisplayNameForColumnGroup(s,"header");var a=s.getLeafColumns().reduce((function(e,t,o,r){var i=Qr.last(e);return"open"===t.getColumnGroupShow()?i&&null==i[1]||(i=[o],e.push(i)):i&&null==i[1]&&(i[1]=o-1),o===r.length-1&&i&&null==i[1]&&(i[1]=o),e}),[]);i.onColumn(s,t||"",n++,s.getLeafColumns().length-1,a)}))},xv([U("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),xv([U("columnModel")],t.prototype,"columnModel",void 0),xv([U("rowModel")],t.prototype,"rowModel",void 0),xv([U("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),xv([U("selectionService")],t.prototype,"selectionService",void 0),xv([U("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),xv([U("sortController")],t.prototype,"sortController",void 0),t=xv([W("gridSerializer")],t)}(Le),Gv={version:"29.2.0",moduleName:exports.ModuleNames.CsvExportModule,beans:[Fv,Iv]},Hv=function(){function e(){}return e.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),"<?xml "+t.map((function(t){return t+'="'+e[t]+'"'})).join(" ")+" ?>"},e.createXml=function(e,t){var o=this,r="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(i){r+=o.returnAttributeIfPopulated(e.prefix+i,e.map[i],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(i){r+=o.returnAttributeIfPopulated(i,e.properties.rawMap[i],t)})));var i="<"+e.name+r;return e.children||null!=e.textNode?null!=e.textNode?i+">"+e.textNode+"</"+e.name+">\r\n":(i+=">\r\n",e.children&&e.children.forEach((function(e){i+=o.createXml(e,t)})),i+"</"+e.name+">\r\n"):i+"/>\r\n"},e.returnAttributeIfPopulated=function(e,t,o){if(!t&&""!==t&&0!==t)return"";var r=t;return"boolean"==typeof t&&o&&(r=o(t))," "+e+'="'+r+'"'},e}(),Vv=function(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},kv=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]),Bv=function(){function e(){}return e.addFolders=function(e){e.forEach(this.addFolder.bind(this))},e.addFolder=function(e){this.folders.push({path:e,created:new Date,isBase64:!1})},e.addFile=function(e,t,o){void 0===o&&(o=!1),this.files.push({path:e,created:new Date,content:t,isBase64:o})},e.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),o=this.buildUint8Array(t);return this.clearStream(),new Blob([o],{type:e})},e.clearStream=function(){this.folders=[],this.files=[]},e.buildFileStream=function(e){var t,o;void 0===e&&(e="");var r=this.folders.concat(this.files),i=r.length,n="",s=0,a=0;try{for(var l=Vv(r),u=l.next();!u.done;u=l.next()){var c=u.value,p=this.getHeader(c,s),d=p.fileHeader,h=p.folderHeader,f=p.content;s+=d.length+f.length,a+=h.length,e+=d+f,n+=h}}catch(e){t={error:e}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(t)throw t.error}}return e+n+this.buildFolderEnd(i,a,s)},e.getHeader=function(e,t){var o=e.content,r=e.path,i=e.created,n=e.isBase64,s=Qr.utf8_encode,a=Qr.decToHex,l=s(r),u=l!==r,c=this.convertTime(i),p=this.convertDate(i),d="";if(u){var h=a(1,1)+a(this.getFromCrc32Table(l),4)+l;d="up"+a(h.length,2)+h}var f=o?this.getConvertedContent(o,n):{size:0,content:""},g=f.size,v=f.content,y="\n\0"+(u?"\0\b":"\0\0")+"\0\0"+a(c,2)+a(p,2)+a(g?this.getFromCrc32Table(v):0,4)+a(g,4)+a(g,4)+a(l.length,2)+a(d.length,2);return{fileHeader:"PK\x03\x04"+y+l+d,folderHeader:"PK\x01\x02\x14\0"+y+"\0\0\0\0\0\0"+(o?"\0\0\0\0":"\x10\0\0\0")+a(t,4)+l+d,content:v||""}},e.getConvertedContent=function(e,t){return void 0===t&&(t=!1),t&&(e=e.split(";base64,")[1]),{size:(e=t?atob(e):e).length,content:e}},e.buildFolderEnd=function(e,t,o){var r=Qr.decToHex;return"PK\x05\x06\0\0\0\0"+r(e,2)+r(e,2)+r(t,4)+r(o,4)+"\0\0"},e.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),o=0;o<t.length;o++)t[o]=e.charCodeAt(o);return t},e.getFromCrc32Table=function(e){if(!e.length)return 0;for(var t=e.length,o=new Uint8Array(t),r=0;r<t;r++)o[r]=e.charCodeAt(r);var i=-1,n=0;for(r=0;r<t;r++)n=o[r],i=i>>>8^kv[255&(i^n)];return-1^i},e.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e.folders=[],e.files=[],e}();ee.register(fv,!1),ee.register(bv,!1),ee.register(Gv,!1),exports.AbstractHeaderCellCtrl=ic,exports.AgAbstractField=Mi,exports.AgAbstractLabel=Ai,exports.AgCheckbox=Ki,exports.AgDialog=Fd,exports.AgGroupComponent=ld,exports.AgInputNumberField=Cn,exports.AgInputRange=od,exports.AgInputTextArea=ed,exports.AgInputTextField=yn,exports.AgMenuItemComponent=Td,exports.AgMenuList=wd,exports.AgMenuPanel=Rd,exports.AgPanel=_d,exports.AgPickerField=xi,exports.AgPromise=Zr,exports.AgRadioButton=qi,exports.AgSelect=Bi,exports.AgSlider=nd,exports.AgStackComponentsRegistry=Lt,exports.AgToggleButton=Zp,exports.AlignedGridsService=ah,exports.AnimateShowChangeCellRenderer=us,exports.AnimateSlideCellRenderer=ds,exports.AnimationFrameService=fp,exports.AutoScrollService=Ua,exports.AutoWidthCalculator=yp,exports.Autowired=U,exports.BaseComponentWrapper=Hg,exports.BaseCreator=Tv,exports.BaseGridSerializingSession=Pv,exports.Bean=W,exports.BeanStub=Le,exports.Beans=pl,exports.BodyDropPivotTarget=xu,exports.BodyDropTarget=Bu,exports.CHART_TOOLBAR_ALLOW_LIST=["chartUnlink","chartLink","chartDownload"],exports.CHART_TOOL_PANEL_ALLOW_LIST=["chartSettings","chartData","chartFormat"],exports.CHART_TOOL_PANEL_MENU_OPTIONS={settings:"chartSettings",data:"chartData",format:"chartFormat"},exports.CellComp=Tu,exports.CellCtrl=El,exports.CellNavigationService=rh,exports.CellPositionUtils=xf,exports.ChangedPath=Hp,exports.CheckboxSelectionComponent=ms,exports.ColDefUtil=Ve,exports.Column=ie,exports.ColumnApi=gh,exports.ColumnFactory=He,exports.ColumnGroup=nt,exports.ColumnKeyCreator=u,exports.ColumnModel=bt,exports.ColumnUtils=Dt,exports.Component=li,exports.ComponentUtil=Ye,exports.Context=V,exports.CssClassApplier=Uu,exports.CssClassManager=ii,exports.CsvCreator=Fv,exports.CsvExportModule=Gv,exports.CtrlsService=ig,exports.CustomTooltipFeature=ri,exports.DEFAULT_CHART_GROUPS={columnGroup:["column","stackedColumn","normalizedColumn"],barGroup:["bar","stackedBar","normalizedBar"],pieGroup:["pie","doughnut"],lineGroup:["line"],scatterGroup:["scatter","bubble"],areaGroup:["area","stackedArea","normalizedArea"],histogramGroup:["histogram"],combinationGroup:["columnLineCombo","areaColumnCombo","customCombo"]},exports.DateFilter=an,exports.DisplayedGroupCreator=Nt,exports.Downloader=Dv,exports.DragAndDropService=Rs,exports.DragService=Ea,exports.Environment=vf,exports.EventService=Z,exports.Events=ke,exports.ExpressionService=Eh,exports.FilterManager=Aa,exports.FloatingFilterMapper=fa,exports.FocusService=Vd,exports.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",exports.Grid=Ig,exports.GridApi=Ta,exports.GridBodyComp=pu,exports.GridBodyCtrl=tl,exports.GridComp=Ih,exports.GridCoreCreator=Gg,exports.GridCtrl=Fh,exports.GridHeaderComp=Zc,exports.GridHeaderCtrl=Qc,exports.GridOptionsService=Pg,exports.GridSerializer=Iv,exports.GroupCellRenderer=Is,exports.GroupCellRendererCtrl=Fs,exports.GroupInstanceIdCreator=st,exports.HeaderCellCtrl=Ec,exports.HeaderFilterCellComp=xa,exports.HeaderFilterCellCtrl=hc,exports.HeaderGroupCellCtrl=Nc,exports.HeaderNavigationService=Kc,exports.HeaderPositionUtils=qf,exports.HeaderRowComp=ec,exports.HeaderRowContainerComp=Wc,exports.HeaderRowContainerCtrl=kc,exports.HeaderRowCtrl=xc,exports.HorizontalResizeService=tp,exports.KeyCode=xr,exports.LargeTextCellEditor=es,exports.LocaleService=Ag,exports.Logger=Ah,exports.LoggerFactory=_h,exports.ManagedFocusFeature=Si,exports.ModuleRegistry=ee,exports.MouseEventService=yu,exports.MoveColumnFeature=Hu,exports.NavigationService=Su,exports.NumberFilter=Tn,exports.NumberSequence=Xr,exports.Optional=z,exports.PaginationProxy=Yp,exports.PinnedRowModel=Ip,exports.PopupComponent=Jn,exports.PopupEditorWrapper=Ou,exports.PopupService=Kd,exports.PositionableFeature=Oi,exports.PostConstruct=B,exports.PreConstruct=k,exports.PreDestroy=j,exports.PropertyKeys=We,exports.ProvidedColumnGroup=se,exports.ProvidedFilter=Pi,exports.Qualifier=Y,exports.QuerySelector=
|
358 |
|
359 |
|
360 |
|
361 |
|
362 |
|
363 |
|
364 | function(e){return ci.bind(this,e,void 0)},exports.RefSelector=ui,exports.ResizeObserverService=pp,exports.RowContainerComp=Fu,exports.RowContainerCtrl=au,exports.RowCtrl=Al,exports.RowNode=fs,exports.RowNodeBlock=kp,exports.RowNodeBlockLoader=Up,exports.RowNodeSorter=tg,exports.RowPositionUtils=Mf,exports.RowRenderer=_p,exports.ScalarFilter=tn,exports.ScrollVisibleService=fu,exports.SelectCellEditor=rs,exports.SelectableService=Rf,exports.SetLeftFeature=ac,exports.SimpleFilter=$i,exports.SortController=Bh,exports.SortIndicatorComp=Wn,exports.StandardMenuFactory=ip,exports.StylingService=Xp,exports.TabGuardComp=vd,exports.TabGuardCtrl=dd,exports.TabbedLayout=ap,exports.TemplateService=bh,exports.TextCellEditor=ss,exports.TextFilter=An,exports.TextFloatingFilter=Vn,exports.Timer=$r,exports.TouchListener=kn,exports.UserComponentFactory=ya,exports.UserComponentRegistry=Xs,exports.ValueCache=$h,exports.ValueFormatterService=Fp,exports.ValueService=mh,exports.VanillaFrameworkOverrides=Zd,exports.VirtualList=Qd,exports.XmlFactory=Hv,exports.ZipContainer=Bv,exports._=Qr,exports.__FORCE_MODULE_DETECTION=0,exports.getRowContainerTypeForName=ru,exports.simpleHttpRequest=
|
365 |
|
366 |
|
367 |
|
368 |
|
369 |
|
370 |
|
371 | function(e){return O((function(){return console.warn("AG Grid: Since v29 simpleHttpRequest has been deprecated as it was only meant for use in internal AG Grid documentation examples. Please use the browser fetch api directly.")}),"simpleHttpRequest"),new Zr((function(t){var o=new XMLHttpRequest;o.open("GET",e.url),o.send(),o.onreadystatechange=function(){4===o.readyState&&200===o.status&&t(JSON.parse(o.responseText))}}))}; |
\ | No newline at end of file |