diff --git "a/static/js/main.180198e9.js" "b/static/js/main.180198e9.js" new file mode 100644--- /dev/null +++ "b/static/js/main.180198e9.js" @@ -0,0 +1,3 @@ +/*! For license information please see main.180198e9.js.LICENSE.txt */ +(()=>{"use strict";var e={520:(e,t,d)=>{function a(e){return null==e||""===e?null:e}function i(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)}function o(e){return!i(e)}function s(e){return null==e||0===e.length}function l(e){return null!=e&&"function"===typeof e.toString?e.toString():null}function m(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 r(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"===typeof e?e:/true/i.test(e))}function u(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)}function n(e){if(e instanceof Set||e instanceof Map){var t=[];return e.forEach((function(e){return t.push(e)})),t}return Object.values(e)}d.r(t),d.d(t,{AbstractHeaderCellCtrl:()=>Zu,AgAbstractField:()=>Ki,AgAbstractLabel:()=>zi,AgAutocomplete:()=>pc,AgCheckbox:()=>mo,AgDialog:()=>Xp,AgGroupComponent:()=>Ep,AgInputDateField:()=>mp,AgInputNumberField:()=>Ro,AgInputRange:()=>up,AgInputTextArea:()=>sp,AgInputTextField:()=>Eo,AgMenuItemComponent:()=>jp,AgMenuList:()=>Ap,AgMenuPanel:()=>Fp,AgPanel:()=>Kp,AgPickerField:()=>$i,AgPromise:()=>ni,AgPromiseStatus:()=>ii,AgRadioButton:()=>uo,AgRichSelect:()=>vp,AgSelect:()=>ao,AgSlider:()=>Mp,AgStackComponentsRegistry:()=>Rt,AgToggleButton:()=>ip,AlignedGridsService:()=>Oc,AllCommunityModules:()=>ib,AnimateShowChangeCellRenderer:()=>vs,AnimateSlideCellRenderer:()=>Ms,AnimationFrameService:()=>yf,AutoScrollService:()=>om,AutoWidthCalculator:()=>Tf,Autowired:()=>de,BarColumnLabelPlacement:()=>NC,BaseComponentWrapper:()=>KC,BaseCreator:()=>Fq,BaseGridSerializingSession:()=>Hq,Bean:()=>te,BeanStub:()=>ze,Beans:()=>ir,BodyDropPivotTarget:()=>wu,BodyDropTarget:()=>xu,CHART_TOOLBAR_ALLOW_LIST:()=>$C,CHART_TOOL_PANEL_ALLOW_LIST:()=>QC,CHART_TOOL_PANEL_MENU_OPTIONS:()=>XC,CellComp:()=>Tu,CellCtrl:()=>qr,CellNavigationService:()=>hc,CellPositionUtils:()=>dy,CellRangeType:()=>zm,ChangedPath:()=>jf,CheckboxCellEditor:()=>Bl,CheckboxCellRenderer:()=>gl,CheckboxSelectionComponent:()=>ks,ClientSideRowModelModule:()=>Iq,ClientSideRowModelSteps:()=>Kn,ColDefUtil:()=>em,Column:()=>ce,ColumnApi:()=>Lc,ColumnFactory:()=>Qe,ColumnGroup:()=>Xe,ColumnKeyCreator:()=>p,ColumnModel:()=>bt,ColumnUtils:()=>St,Component:()=>hi,ComponentUtil:()=>Lt,Context:()=>X,CssClassApplier:()=>cr,CssClassManager:()=>Ci,CsvCreator:()=>Yq,CsvExportModule:()=>Jq,CtrlsService:()=>Oy,CustomTooltipFeature:()=>yi,DEFAULT_CHART_GROUPS:()=>YC,DataTypeService:()=>fC,DateCellEditor:()=>Cl,DateFilter:()=>To,DateStringCellEditor:()=>hl,DisplayedGroupCreator:()=>Ot,Downloader:()=>Nq,DragAndDropService:()=>Ns,DragService:()=>im,DragSourceType:()=>As,Environment:()=>k_,EventService:()=>re,Events:()=>Je,ExcelFactoryMode:()=>Hs,ExpansionService:()=>Pf,ExpressionService:()=>Wc,FilterManager:()=>Pm,FloatingFilterMapper:()=>$l,FocusService:()=>r_,GROUP_AUTO_COLUMN_ID:()=>dt,Grid:()=>jC,GridApi:()=>pm,GridBodyComp:()=>mu,GridBodyCtrl:()=>Km,GridComp:()=>e_,GridCoreCreator:()=>UC,GridCtrl:()=>Xc,GridHeaderComp:()=>ef,GridHeaderCtrl:()=>Xn,GridOptionsService:()=>Jy,GridSerializer:()=>Xq,GroupCellRenderer:()=>dl,GroupCellRendererCtrl:()=>Zs,GroupInstanceIdCreator:()=>Ze,HeaderCellCtrl:()=>Pn,HeaderFilterCellComp:()=>Om,HeaderFilterCellCtrl:()=>rn,HeaderGroupCellCtrl:()=>Gn,HeaderNavigationDirection:()=>Yu,HeaderNavigationService:()=>Yn,HeaderPositionUtils:()=>_y,HeaderRowComp:()=>Qu,HeaderRowContainerComp:()=>jn,HeaderRowContainerCtrl:()=>Fn,HeaderRowCtrl:()=>Rn,HeaderRowType:()=>Iu,HorizontalDirection:()=>Fo,HorizontalResizeService:()=>af,InfiniteRowModelModule:()=>Wq,KeyCode:()=>Ka,LargeTextCellEditor:()=>ys,LayoutCssClasses:()=>fm,LocaleService:()=>tC,Logger:()=>Yc,LoggerFactory:()=>Kc,ManagedFocusFeature:()=>Ei,ModuleNames:()=>j,ModuleRegistry:()=>Y,MouseEventService:()=>cu,MoveColumnFeature:()=>Ru,NavigationService:()=>qu,NumberCellEditor:()=>cl,NumberFilter:()=>Ho,NumberSequence:()=>mi,Optional:()=>ae,PaginationProxy:()=>Zf,PinnedRowModel:()=>Hf,PopupComponent:()=>ps,PopupEditorWrapper:()=>hu,PopupService:()=>oc,PositionableFeature:()=>xi,PostConstruct:()=>Z,PreConstruct:()=>J,PreDestroy:()=>ee,PropertyKeys:()=>It,ProvidedColumnGroup:()=>ye,ProvidedFilter:()=>Hi,Qualifier:()=>oe,QuerySelector:()=>Si,RefSelector:()=>Ti,ResizeObserverService:()=>pf,RowAnimationCssClasses:()=>Em,RowContainerComp:()=>Gu,RowContainerCtrl:()=>iu,RowContainerName:()=>Tr,RowContainerType:()=>gr,RowCtrl:()=>Dr,RowHighlightPosition:()=>tm,RowNode:()=>Ls,RowNodeBlock:()=>Uf,RowNodeBlockLoader:()=>$f,RowNodeSorter:()=>Sy,RowPositionUtils:()=>Z_,RowRenderer:()=>Vf,RowType:()=>mq,ScalarFilter:()=>Co,ScrollVisibleService:()=>nu,SelectCellEditor:()=>bs,SelectableService:()=>j_,SelectionHandleType:()=>jm,ServerSideTransactionResultStatus:()=>Cf,SetLeftFeature:()=>dn,SimpleFilter:()=>_o,SortController:()=>o_,SortIndicatorComp:()=>os,StandardMenuFactory:()=>lf,StylingService:()=>dp,TabGuardClassNames:()=>Nf,TabGuardComp:()=>hp,TabGuardCtrl:()=>Cp,TabbedLayout:()=>uf,TemplateService:()=>Nc,TextCellEditor:()=>Os,TextFilter:()=>Uo,TextFloatingFilter:()=>ts,Timer:()=>fi,TooltipFeature:()=>dr,TouchListener:()=>ds,UserComponentFactory:()=>Zl,UserComponentRegistry:()=>wl,ValueCache:()=>h_,ValueFormatterService:()=>xf,ValueParserService:()=>_C,ValueService:()=>Rc,VanillaFrameworkOverrides:()=>yc,VerticalDirection:()=>Wo,VirtualList:()=>gp,VirtualListDragFeature:()=>rm,XmlFactory:()=>eb,ZipContainer:()=>ab,_:()=>li,__FORCE_MODULE_DETECTION:()=>JC,createGrid:()=>HC,getRowContainerTypeForName:()=>tu});var f=Object.freeze({__proto__:null,makeNull:a,exists:i,missing:o,missingOrEmpty:s,toStringOrNull:l,attrToNumber:m,attrToBoolean:r,attrToString:function(e){if(null!=e&&""!==e)return e},jsonEquals:u,defaultComparator:function(e,t,d){void 0===d&&(d=!1);var a=null==e,i=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),a&&i)return 0;if(a)return-1;if(i)return 1;function o(e,t){return e>t?1:e=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},_=function(e,t){var d="function"===typeof Symbol&&e[Symbol.iterator];if(!d)return e;var a,i,o=d.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s};function y(e,t){var d,a;if(null!=e)if(Array.isArray(e))for(var i=0;i=0)){var i=d[e],o=B(i)&&i.constructor===Object;a[e]=o?q(i):i}})),a}}function b(e,t){return e[t]}function P(e,t,d){e[t]=d}function h(e,t,d,a){var i=b(e,d);void 0!==i&&P(t,d,a?a(i):i)}function S(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 T(e){if(!e)return[];var t=Object;if("function"===typeof t.values)return t.values(e);var d=[];for(var a in e)e.hasOwnProperty(a)&&e.propertyIsEnumerable(a)&&d.push(e[a]);return d}function g(e,t,d,a){void 0===d&&(d=!0),void 0===a&&(a=!1),i(t)&&y(t,(function(t,i){var o=e[t];if(o!==i){if(a)if(null==o&&null!=i)"object"===typeof i&&i.constructor===Object&&(o={},e[t]=o);B(i)&&B(o)&&!Array.isArray(o)?g(o,i,d,a):(d||void 0!==i)&&(e[t]=i)}}))}function O(e,t,d){if(t&&e){if(!d)return e[t];for(var a=t.split("."),i=e,o=0;o1;)if(null==(i=i[a.shift()]))return d;var o=i[a[0]];return null!=o?o:d},set:function(e,t,d){if(null!=e){var a=t.split("."),i=e;a.forEach((function(e,t){i[e]||(i[e]={}),t0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function W(e,t){var d;return function(){for(var a=[],i=0;id;(e()||l)&&(t(),s=!0,null!=o&&(window.clearInterval(o),o=null),l&&a&&console.warn(a))};l(),s||(o=window.setInterval(l,10))}function N(e){e&&e()}var j,z=Object.freeze({__proto__:null,doOnce:G,warnOnce:M,errorOnce:w,getFunctionName:L,isFunction:E,executeInAWhile:V,executeNextVMTurn:A,executeAfter:x,debounce:W,throttle:F,waitUntil:H,compose:function(){for(var e=[],t=0;t0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},K=function(e,t,d){if(d||2===arguments.length)for(var a,i=0,o=t.length;i<\/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 l=null===(i=Object.entries(j).find((function(e){var d=U(e,2);return d[0],d[1]===t})))||void 0===i?void 0:i[0];o="AG Grid: unable to use ".concat(d," as the ").concat(l," is not registered").concat(e.areGridScopedModules?" for gridId: ".concat(a):"",". Check if you have registered the module:\n \n import { ModuleRegistry } from '@ag-grid-community/core';\n import { ").concat(l," } from '").concat(t,"';\n \n ModuleRegistry.registerModules([ ").concat(l," ]);\n\nFor more info see: https://www.ag-grid.com/javascript-grid/modules/")}else o="AG Grid: unable to use ".concat(d," 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 G((function(){console.warn(o)}),s),!1},e.__isRegistered=function(t,d){var a;return!!e.globalModulesMap[t]||!!(null===(a=e.gridModulesMap[d])||void 0===a?void 0:a[t])},e.__getRegisteredModules=function(t){return K(K([],U(n(e.globalModulesMap)),!1),U(n(e.gridModulesMap[t]||{})),!1)},e.__getGridRegisteredModules=function(t){var d;return n(null!==(d=e.gridModulesMap[t])&&void 0!==d?d:{})||[]},e.__isPackageBased=function(){return!e.moduleBased},e.globalModulesMap={},e.gridModulesMap={},e.areGridScopedModules=!1,e}(),Q=function(e,t){var d="function"===typeof Symbol&&e[Symbol.iterator];if(!d)return e;var a,i,o=d.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},$=function(e,t,d){if(d||2===arguments.length)for(var a,i=0,o=t.length;i> creating ag-Application Context"),this.createBeans();var d=this.getBeanInstances();this.wireBeans(d),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return n(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,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),i(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),y(this.beanWrappers,(function(t,d){var a;d.bean.__agBeanMetaData&&d.bean.__agBeanMetaData.autowireMethods&&d.bean.__agBeanMetaData.autowireMethods.agConstructor&&(a=d.bean.__agBeanMetaData.autowireMethods.agConstructor);var i=e.getBeansForParameters(a,d.bean.name),o=new(d.bean.bind.apply(d.bean,$([null],Q(i),!1)));d.beanInstance=o}));var t=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: ".concat(t))},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var d=void 0;return d=e.prototype.constructor?L(e.prototype.constructor):""+e,void console.error("Context item ".concat(d," is not a bean"))}var a={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=a},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(d,a){var i=d.agClassAttributes;i&&i.forEach((function(d){var i=t.lookupBeanInstance(a,d.beanName,d.optional);e[d.attributeName]=i}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(d,a){y(d.autowireMethods,(function(d,i){if("agConstructor"!==d){var o=t.getBeansForParameters(i,a);e[d].apply(e,o)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var d=Object.getPrototypeOf(e);null!=d;){var a=d.constructor;if(a.hasOwnProperty("__agBeanMetaData"))t(a.__agBeanMetaData,this.getBeanName(a));d=Object.getPrototypeOf(d)}},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 d=this,a=[];return e&&y(e,(function(e,i){var o=d.lookupBeanInstance(t,i);a[Number(e)]=o})),a},e.prototype.lookupBeanInstance=function(e,t,d){if(void 0===d&&(d=!1),this.destroyed)return this.logger.log("AG Grid: bean reference ".concat(t," is used after the grid is destroyed!")),null;if("context"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];var a=this.beanWrappers[t];return a?a.beanInstance:(d||console.error("AG Grid: unable to find bean reference ".concat(t," while initialising ").concat(e)),null)},e.prototype.callLifeCycleMethods=function(e,t){var d=this;e.forEach((function(e){return d.callLifeCycleMethodsOnBean(e,t)}))},e.prototype.callLifeCycleMethodsOnBean=function(e,t,d){var a={};this.forEachMetaDataInHierarchy(e,(function(e){var i=e[t];i&&i.forEach((function(e){e!=d&&(a[e]=!0)}))})),Object.keys(a).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.destroyed=!0,this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.destroyBeans(e),this.contextParams.providedBeanInstances=null,Y.__unRegisterGridModules(this.contextParams.gridId),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 d=e;"function"===typeof d.destroy&&d.destroy()})),[]):[]},e.prototype.isDestroyed=function(){return this.destroyed},e.prototype.getGridId=function(){return this.contextParams.gridId},e}();function J(e,t,d){var a=se(e.constructor);a.preConstructMethods||(a.preConstructMethods=[]),a.preConstructMethods.push(t)}function Z(e,t,d){var a=se(e.constructor);a.postConstructMethods||(a.postConstructMethods=[]),a.postConstructMethods.push(t)}function ee(e,t,d){var a=se(e.constructor);a.preDestroyMethods||(a.preDestroyMethods=[]),a.preDestroyMethods.push(t)}function te(e){return function(t){se(t).beanName=e}}function de(e){return function(t,d,a){ie(t,e,!1,t,d,null)}}function ae(e){return function(t,d,a){ie(t,e,!0,t,d,null)}}function ie(e,t,d,a,i,o){if(null!==t)if("number"!==typeof o){var s=se(e.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.agClassAttributes.push({attributeName:i,beanName:t,optional:d})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function oe(e){return function(t,d,a){var i,o="function"==typeof t?t:t.constructor;if("number"===typeof a){var s=void 0;d?(i=se(o),s=d):(i=se(o),s="agConstructor"),i.autowireMethods||(i.autowireMethods={}),i.autowireMethods[s]||(i.autowireMethods[s]={}),i.autowireMethods[s][a]=e}}}function se(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}var le=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},me=function(e,t){return function(d,a){t(d,a,e)}},re=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,d,a,i){if(void 0===a&&(a=null),void 0===i&&(i=null),this.frameworkOverrides=d,this.gridOptionsService=t,a){var o=t.useAsyncEvents();this.addGlobalListener(a,o)}i&&this.addGlobalListener(i,!1)},e.prototype.getListeners=function(e,t,d){var a=t?this.allAsyncListeners:this.allSyncListeners,i=a.get(e);return!i&&d&&(i=new Set,a.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,d){void 0===d&&(d=!1),this.getListeners(e,d,!0).add(t)},e.prototype.removeEventListener=function(e,t,d){void 0===d&&(d=!1);var a=this.getListeners(e,d,!1);a&&(a.delete(t),0===a.size&&(d?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 d=this.gridOptionsService,a=d.api,i=d.columnApi,o=d.context;t.api=a,t.columnApi=i,t.context=o}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 d,a=this,i=e.type;if(t&&"event"in e){var o=e.event;o instanceof Event&&(e.eventPath=o.composedPath())}var s=null!==(d=this.getListeners(i,t,!1))&&void 0!==d?d:new Set,l=new Set(s);l.size>0&&function(d,i){d.forEach((function(d){i.has(d)&&(t?a.dispatchAsync((function(){return d(e)})):d(e))}))}(l,s),new Set(t?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(d){t?a.dispatchAsync((function(){return a.frameworkOverrides.dispatchEvent(i,(function(){return d(i,e)}),!0)})):a.frameworkOverrides.dispatchEvent(i,(function(){return d(i,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()}))},le([me(0,oe("loggerFactory")),me(1,oe("gridOptionsService")),me(2,oe("frameworkOverrides")),me(3,oe("globalEventListener")),me(4,oe("globalSyncEventListener"))],e.prototype,"setBeans",null),e=le([te("eventService")],e)}(),ue=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},ne={resizable:!0,sortable:!0},fe=0;function pe(){return fe++}var ce=function(){function e(e,t,d,a){this.instanceId=pe(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.eventService=new re,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=d,this.primary=a,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=e.sortIndex,d=e.initialSortIndex;void 0!==t?null!==t&&(this.sortIndex=t):null!==d&&(this.sortIndex=d);var a=e.hide,i=e.initialHide;this.visible=void 0!==a?!a:!i,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);var o=e.flex,s=e.initialFlex;void 0!==o?this.flex=o:void 0!==s&&(this.flex=s)},e.prototype.setColDef=function(e,t,d){void 0===d&&(d="api"),this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),this.eventService.dispatchEvent(this.createColumnEvent("colDefChanged",d))},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.initTooltip()},e.prototype.initDotNotation=function(){var e=this.gridOptionsService.get("suppressFieldDotNotation");this.fieldContainsDots=i(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=i(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.initTooltip=function(){this.tooltipEnabled=i(this.colDef.tooltipField)||i(this.colDef.tooltipValueGetter)||i(this.colDef.tooltipComponent)},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,d=this.colDef.showRowGroup===e;return t||d},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){return!!this.colDef.filter},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipEnabled=function(){return this.tooltipEnabled},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},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.get("enableGroupEdit"))&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isSuppressFillHandle=function(){return!!this.colDef.suppressFillHandle},e.prototype.isAutoHeight=function(){return!!this.colDef.autoHeight},e.prototype.isAutoHeaderHeight=function(){return!!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!!this.getColDefValue("resizable")},e.prototype.getColDefValue=function(e){var t;return null!==(t=this.colDef[e])&&void 0!==t?t:ne[e]},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))),this.dispatchStateUpdatedEvent("sort")},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.isSortable=function(){return!!this.getColDefValue("sortable")},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 i(this.sort)},e.prototype.getSortIndex=function(){return this.sortIndex},e.prototype.setSortIndex=function(e){this.sortIndex=e,this.dispatchStateUpdatedEvent("sortIndex")},e.prototype.setAggFunc=function(e){this.aggFunc=e,this.dispatchStateUpdatedEvent("aggFunc")},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,d){void 0===t&&(t="api"),this.filterActive!==e&&(this.filterActive=e,this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",t)));var a=this.createColumnEvent("filterChanged",t);d&&g(a,d),this.eventService.dispatchEvent(a)},e.prototype.isHovered=function(){return this.columnHoverService.isHovered(this)},e.prototype.setPinned=function(e){this.pinned=!0===e||"left"===e?"left":"right"===e?"right":null,this.dispatchStateUpdatedEvent("pinned")},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 d=!0===e;this.visible!==d&&(this.visible=d,this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged",t))),this.dispatchStateUpdatedEvent("hide")},e.prototype.isVisible=function(){return this.visible},e.prototype.isSpanHeaderHeight=function(){var e=this.getColDef();return!e.suppressSpanHeaderHeight&&!e.autoHeaderHeight},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.colId},e.prototype.getUniqueId=function(){return this.colId},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),d=this.colDef.colSpan(t);return Math.max(d,1)},e.prototype.getRowSpan=function(e){if(o(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),d=this.colDef.rowSpan(t);return Math.max(d,1)},e.prototype.setActualWidth=function(e,t,d){void 0===t&&(t="api"),void 0===d&&(d=!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),d||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")},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),this.dispatchStateUpdatedEvent("flex")},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),i(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))),this.dispatchStateUpdatedEvent("rowGroup")},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))),this.dispatchStateUpdatedEvent("pivot")},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.prototype.dispatchStateUpdatedEvent=function(t){this.eventService.dispatchEvent({type:e.EVENT_STATE_UPDATED,key: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",e.EVENT_STATE_UPDATED="columnStateUpdated",ue([de("gridOptionsService")],e.prototype,"gridOptionsService",void 0),ue([de("columnUtils")],e.prototype,"columnUtils",void 0),ue([de("columnHoverService")],e.prototype,"columnHoverService",void 0),ue([Z],e.prototype,"initialise",null),e}(),_e=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},ye=function(){function e(e,t,d,a){this.localEventService=new re,this.expandable=!1,this.instanceId=pe(),this.expandableListenerRemoveCallback=null,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=d,this.level=a}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 d={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(d)},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(d){d instanceof ce?t.push(d):d instanceof e&&d.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,d=!1,a=!1,i=this.findChildrenRemovingPadding(),o=0,s=i.length;o=0&&(e[d]=e[e.length-1],e.pop())}function Te(e,t){var d=e.indexOf(t);d>=0&&e.splice(d,1)}function ge(e,t){for(var d=0;d-1}function Ie(e){return[].concat.apply([],e)}function Ge(e,t){null!=t&&null!=e&&t.forEach((function(t){return e.push(t)}))}var Me=Object.freeze({__proto__:null,firstExistingValue:qe,existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:be,areEqual:Pe,shallowCompare:function(e,t){return Pe(e,t)},sortNumerically:he,removeRepeatsFromArray:function(e,t){if(e)for(var d=e.length-2;d>=0;d--){var a=e[d]===t,i=e[d+1]===t;a&&i&&e.splice(d+1,1)}},removeFromUnorderedArray:Se,removeFromArray:Te,removeAllFromUnorderedArray:ge,removeAllFromArray:Oe,insertIntoArray:De,insertArrayIntoArray:function(e,t,d){if(null!=e&&null!=t)for(var a=t.length-1;a>=0;a--){De(e,t[a],d)}},moveInArray:Be,includes:ve,flatten:Ie,pushAll:Ge,toStrings:function(e){return e.map(l)},forEachReverse:function(e,t){if(null!=e)for(var d=e.length-1;d>=0;d--)t(e[d],d)}}),we="__ag_Grid_Stop_Propagation",Le=["touchstart","touchend","touchmove","touchcancel","scroll"],Ee={};function Ve(e){e[we]=!0}function Re(e){return!0===e[we]}var ke=function(){var e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(t){if("boolean"===typeof Ee[t])return Ee[t];var d=document.createElement(e[t]||"div");return Ee[t="on"+t]=t in d}}();function Ae(e,t,d){for(var a=t;a;){var i=e.getDomData(a,d);if(i)return i;a=a.parentElement}return null}function xe(e,t){return!(!t||!e)&&Fe(t).indexOf(e)>=0}function We(e){for(var t=[],d=e.target;d;)t.push(d),d=d.parentElement;return t}function Fe(e){var t=e;return t.path?t.path:t.composedPath?t.composedPath():We(t)}function He(e,t,d,a){var i=ve(Le,d)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,d,a,i)}var Ne=Object.freeze({__proto__:null,stopPropagationForAgGrid:Ve,isStopPropagationForAgGrid:Re,isEventSupported:ke,getCtrlForEventTarget:Ae,isElementInEventPath:xe,createEventPath:We,getEventPath:Fe,addSafePassiveEventListener:He}),je=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},ze=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.lastChangeSetIdLookup={},this.propertyListenerId=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 re),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,d){var a=this;if(!this.destroyed){e instanceof HTMLElement?He(this.getFrameworkOverrides(),e,t,d):e.addEventListener(t,d);var i=function(){return e.removeEventListener(t,d),a.destroyFunctions=a.destroyFunctions.filter((function(e){return e!==i})),null};return this.destroyFunctions.push(i),i}},e.prototype.setupGridOptionListener=function(e,t){var d=this;this.gridOptionsService.addEventListener(e,t);var a=function(){return d.gridOptionsService.removeEventListener(e,t),d.destroyFunctions=d.destroyFunctions.filter((function(e){return e!==a})),null};this.destroyFunctions.push(a)},e.prototype.addManagedPropertyListener=function(e,t){this.destroyed||this.setupGridOptionListener(e,t)},e.prototype.addManagedPropertyListeners=function(e,t){var d=this;if(!this.destroyed){var a=e.join("-")+this.propertyListenerId++,i=function(e){if(e.changeSet){if(e.changeSet&&e.changeSet.id===d.lastChangeSetIdLookup[a])return;d.lastChangeSetIdLookup[a]=e.changeSet.id}var i={type:"gridPropertyChanged",changeSet:e.changeSet};t(i)};e.forEach((function(e){return d.setupGridOptionListener(e,i)}))}},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.prototype.createManagedBean=function(e,t){var d=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),d},e.prototype.createBean=function(e,t,d){return(t||this.getContext()).createBean(e,d)},e.prototype.destroyBean=function(e,t){return(t||this.getContext()).destroyBean(e)},e.prototype.destroyBeans=function(e,t){var d=this;return e&&e.forEach((function(e){return d.destroyBean(e,t)})),[]},e.EVENT_DESTROYED="destroyed",je([de("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),je([de("context")],e.prototype,"context",void 0),je([de("eventService")],e.prototype,"eventService",void 0),je([de("gridOptionsService")],e.prototype,"gridOptionsService",void 0),je([de("localeService")],e.prototype,"localeService",void 0),je([de("environment")],e.prototype,"environment",void 0),je([ee],e.prototype,"destroy",null),e}(),Ue=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Ke=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Ye=function(e,t){return function(d,a){t(d,a,e)}},Qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ue(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,t,d){var a=new p,i=this.extractExistingTreeData(d),o=i.existingCols,s=i.existingGroups,l=i.existingColKeys;a.addExistingKeys(l);var m=this.recursivelyCreateColumns(e,0,t,o,a,s),r=this.findMaxDept(m,0);this.logger.log("Number of levels for grouped columns is "+r);var u=this.balanceColumnTree(m,0,r,a);return this.columnUtils.depthFirstOriginalTreeSearch(null,u,(function(e,t){e instanceof ye&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:u,treeDept:r}},t.prototype.extractExistingTreeData=function(e){var t=[],d=[],a=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(e){if(e instanceof ye){var i=e;d.push(i)}else{var o=e;a.push(o.getId()),t.push(o)}})),{existingCols:t,existingGroups:d,existingColKeys:a}},t.prototype.createForAutoGroups=function(e,t){var d=this;return e.map((function(e){return d.createAutoGroupTreeItem(t,e)}))},t.prototype.createAutoGroupTreeItem=function(e,t){for(var d=this.findDepth(e),a=t,i=d-1;i>=0;i--){var o=new ye(null,"FAKE_PATH_".concat(t.getId(),"}_").concat(i),!0,i);this.createBean(o),o.setChildren([a]),a.setOriginalParent(o),a=o}return 0===d&&t.setOriginalParent(null),a},t.prototype.findDepth=function(e){for(var t=0,d=e;d&&d[0]&&d[0]instanceof ye;)t++,d=d[0].getChildren();return t},t.prototype.balanceColumnTree=function(e,t,d,a){for(var i=[],o=0;o=t;n--){var f=a.getUniqueKey(null,null),p=this.createMergedColGroupDef(null),c=new ye(p,f,!0,t);this.createBean(c),u&&u.setChildren([c]),u=c,r||(r=u)}if(r&&u){if(i.push(r),e.some((function(e){return e instanceof ye}))){u.setChildren([s]);continue}u.setChildren(e);break}i.push(s)}}return i},t.prototype.findMaxDept=function(e,t){for(var d=t,a=0;a=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Xe=function(){function e(e,t,d,a){this.displayedChildren=[],this.localEventService=new re,this.groupId=t,this.partId=d,this.providedColumnGroup=e,this.pinned=a}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.get("enableRtl")){var t=be(this.displayedChildren).getLeft();this.setLeft(t)}else{var d=this.displayedChildren[0].getLeft();this.setLeft(d)}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 d=!1;return this.children.forEach((function(a){t===a&&(d=!0),a instanceof e&&a.isChildInThisGroupDeepSearch(t)&&(d=!0)})),d},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(d){d instanceof ce?t.push(d):d instanceof e&&d.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(d){d instanceof ce?t.push(d):d instanceof e&&d.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.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 d=this;null!=d&&d.isPadding();)d=d.getParent();if(!(!!d&&d.providedColumnGroup.isExpandable()))return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(a){if(!(a instanceof e&&(!a.displayedChildren||!a.displayedChildren.length)))switch(a.getColumnGroupShow()){case"open":d.providedColumnGroup.isExpanded()&&t.displayedChildren.push(a);break;case"closed":d.providedColumnGroup.isExpanded()||t.displayedChildren.push(a);break;default:t.displayedChildren.push(a)}})),this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",$e([de("gridOptionsService")],e.prototype,"gridOptionsService",void 0),e}(),Je=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_SUPPRESS_COLUMN_MOVE_CHANGED="suppressMovableColumns",e.EVENT_SUPPRESS_MENU_HIDE_CHANGED="suppressMenuHide",e.EVENT_SUPPRESS_FIELD_DOT_NOTATION="suppressFieldDotNotation",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",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_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",e.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_CUT_START="cutStart",e.EVENT_CUT_END="cutEnd",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_FILL_START="fillStart",e.EVENT_FILL_END="fillEnd",e.EVENT_RANGE_DELETE_START="rangeDeleteStart",e.EVENT_RANGE_DELETE_END="rangeDeleteEnd",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_TOOLTIP_SHOW="tooltipShow",e.EVENT_TOOLTIP_HIDE="tooltipHide",e.EVENT_CELL_KEY_DOWN="cellKeyDown",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_ADVANCED_FILTER_BUILDER_VISIBLE_CHANGED="advancedFilterBuilderVisibleChanged",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_PRE_DESTROYED="gridPreDestroyed",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_STORE_REFRESHED="storeRefreshed",e.EVENT_STATE_UPDATED="stateUpdated",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_STORE_UPDATED="storeUpdated",e.EVENT_FILTER_DESTROYED="filterDestroyed",e.EVENT_ROW_DATA_UPDATE_STARTED="rowDataUpdateStarted",e.EVENT_ROW_COUNT_READY="rowCountReady",e.EVENT_ADVANCED_FILTER_ENABLED_CHANGED="advancedFilterEnabledChanged",e.EVENT_DATA_TYPES_INFERRED="dataTypesInferred",e.EVENT_FIELD_VALUE_CHANGED="fieldValueChanged",e.EVENT_FIELD_PICKER_VALUE_SELECTED="fieldPickerValueSelected",e.EVENT_SIDE_BAR_UPDATED="sideBarUpdated",e}(),Ze=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,d=this.existingIds[e];return t="number"!==typeof d?0:d+1,this.existingIds[e]=t,t},e}(),et=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),tt=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},dt="ag-Grid-AutoColumn",at=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return et(t,e),t.prototype.createAutoGroupColumns=function(e){var t=this,d=[],a=this.gridOptionsService.get("treeData"),i=this.gridOptionsService.isGroupMultiAutoColumn();return a&&i&&(console.warn('AG Grid: you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'),i=!1),i?e.forEach((function(e,a){d.push(t.createOneAutoGroupColumn(e,a))})):d.push(this.createOneAutoGroupColumn()),d},t.prototype.updateAutoGroupColumns=function(e){var t=this;e.forEach((function(e,d){return t.updateOneAutoGroupColumn(e,d)}))},t.prototype.createOneAutoGroupColumn=function(e,t){var d;d=e?"".concat(dt,"-").concat(e.getId()):dt;var a=this.createAutoGroupColDef(d,e,t);a.colId=d;var i=new ce(a,null,d,!0);return this.context.createBean(i),i},t.prototype.updateOneAutoGroupColumn=function(e,t){var d=e.getColDef(),a="string"==typeof d.showRowGroup?d.showRowGroup:void 0,i=null!=a?this.columnModel.getPrimaryColumn(a):void 0,o=this.createAutoGroupColDef(e.getId(),null!==i&&void 0!==i?i:void 0,t);e.setColDef(o,null),this.columnFactory.applyColumnState(e,o)},t.prototype.createAutoGroupColDef=function(e,t,d){var a=this.createBaseColDef(t);(g(a,this.gridOptionsService.get("autoGroupColumnDef")),a=this.columnFactory.addColumnDefaultAndTypes(a,e),this.gridOptionsService.get("treeData"))||o(a.field)&&o(a.valueGetter)&&o(a.filterValueGetter)&&"agGroupColumnFilter"!==a.filter&&(a.filter=!1);d&&d>0&&(a.headerCheckboxSelection=!1);var i=this.gridOptionsService.isColumnsSortingCoupledToGroup(),s=a.valueGetter||null!=a.field;return i&&!s&&(a.sortIndex=void 0,a.initialSort=void 0),a},t.prototype.createBaseColDef=function(e){var t=this.gridOptionsService.get("autoGroupColumnDef"),d={headerName:this.localeService.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererSelector)||(d.cellRenderer="agGroupCellRenderer"),e){var a=e.getColDef();Object.assign(d,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:a.headerValueGetter}),a.cellRenderer&&Object.assign(d,{cellRendererParams:{innerRenderer:a.cellRenderer,innerRendererParams:a.cellRendererParams}}),d.showRowGroup=e.getColId()}else d.showRowGroup=!0;return d},tt([de("columnModel")],t.prototype,"columnModel",void 0),tt([de("columnFactory")],t.prototype,"columnFactory",void 0),t=tt([te("autoGroupColService")],t)}(ze),it=/[&<>"']/g,ot={"&":"&","<":"<",">":">",'"':""","'":"'"};function st(e,t){if(null==e)return null;var d=e.toString().toString();return t?d:d.replace(it,(function(e){return ot[e]}))}function lt(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(" ")}function mt(e){return e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLocaleLowerCase())}))}var rt=Object.freeze({__proto__:null,utf8_encode:function(e){var t=String.fromCharCode;function d(e,d){return t(e>>d&63|128)}function a(e){if(e>=0&&e<=31&&10!==e){var a=e.toString(16).toUpperCase().padStart(4,"0");return"_x".concat(a,"_")}if(0==(4294967168&e))return t(e);var i="";return 0==(4294965248&e)?i=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),i=t(e>>12&15|224),i+=d(e,6)):0==(4292870144&e)&&(i=t(e>>18&7|240),i+=d(e,12),i+=d(e,6)),i+=t(63&e|128)}for(var i=function(e){var t=[];if(!e)return[];for(var d,a,i=e.length,o=0;o=55296&&d<=56319&&o=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},ct=function(e,t){return function(d,a){t(d,a,e)}},_t=function(e,t){var d={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(d[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},Ct=function(e,t,d){if(d||2===arguments.length)for(var a,i=0,o=t.length;i=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},bt=function(e){function t(){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.shouldQueueResizeOperations=!1,t.resizeOperationQueue=[],t}return ft(t,e),t.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsService.get("suppressColumnVirtualisation");var t=this.gridOptionsService.get("pivotMode");this.isPivotSettingAllowed(t)&&(this.pivotMode=t),this.addManagedPropertyListeners(["groupDisplayType","treeData","treeDataDisplayType","groupHideOpenParents"],(function(){return e.buildAutoGroupColumns()})),this.addManagedPropertyListener("autoGroupColumnDef",(function(){return e.onAutoGroupColumnDefChanged()})),this.addManagedPropertyListeners(["defaultColDef","columnTypes","suppressFieldDotNotation"],(function(t){return e.onSharedColDefChanged(t.source)})),this.addManagedPropertyListener("pivotMode",(function(t){return e.setPivotMode(e.gridOptionsService.get("pivotMode"),t.source)})),this.addManagedListener(this.eventService,Je.EVENT_FIRST_DATA_RENDERED,(function(){return e.onFirstDataRendered()}))},t.prototype.buildAutoGroupColumns=function(){this.columnDefs&&(this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged"))},t.prototype.onAutoGroupColumnDefChanged=function(){this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns)},t.prototype.onSharedColDefChanged=function(e){void 0===e&&(e="api"),this.gridColumns&&(this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns),this.createColumnsFromColumnDefs(!0,e))},t.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var d=!!this.columnDefs;this.columnDefs=e,this.createColumnsFromColumnDefs(d,t)},t.prototype.recreateColumnDefs=function(e){void 0===e&&(e="api"),this.onSharedColDefChanged(e)},t.prototype.destroyOldColumns=function(e,t){var d={};if(e){this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(e){d[e.getInstanceId()]=e})),t&&this.columnUtils.depthFirstOriginalTreeSearch(null,t,(function(e){d[e.getInstanceId()]=null}));var a=Object.values(d).filter((function(e){return null!=e}));this.destroyBeans(a)}},t.prototype.destroyColumns=function(){this.destroyOldColumns(this.primaryColumnTree),this.destroyOldColumns(this.secondaryBalancedTree),this.destroyOldColumns(this.groupAutoColsBalancedTree)},t.prototype.createColumnsFromColumnDefs=function(e,t){var d=this;void 0===t&&(t="api");var a=e?this.compareColumnStatesAndDispatchEvents(t):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var i=this.primaryColumns,o=this.primaryColumnTree,s=this.columnFactory.createColumnTree(this.columnDefs,!0,o);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 d.primaryColumnsMap[e.getId()]=e})),this.extractRowGroupColumns(t,i),this.extractPivotColumns(t,i),this.extractValueColumns(t,i),this.ready=!0;var l=void 0===this.gridColsArePrimary;(this.gridColsArePrimary||l||this.autoGroupsNeedBuilding)&&(this.updateGridColumns(),e&&this.gridColsArePrimary&&!this.gridOptionsService.get("maintainColumnOrder")&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(t),this.checkViewportColumns()),this.dispatchEverythingChanged(t),a&&a(),this.dispatchNewColumnsLoaded(t)},t.prototype.dispatchNewColumnsLoaded=function(e){var t={type:Je.EVENT_NEW_COLUMNS_LOADED,source:e};this.eventService.dispatchEvent(t),"gridInitializing"===e&&this.onColumnsReady()},t.prototype.dispatchEverythingChanged=function(e){void 0===e&&(e="api");var t={type:Je.EVENT_COLUMN_EVERYTHING_CHANGED,source:e};this.eventService.dispatchEvent(t)},t.prototype.orderGridColumnsLikePrimary=function(){var e=this,t=this.primaryColumns;if(t){var d=t.filter((function(t){return e.gridColumns.indexOf(t)>=0})),a=this.gridColumns.filter((function(e){return d.indexOf(e)<0}));this.gridColumns=Ct(Ct([],yt(a),!1),yt(d),!1),this.gridColumns=this.placeLockedColumns(this.gridColumns)}},t.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},t.prototype.setViewport=function(){this.gridOptionsService.get("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)},t.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,d=[];null!=t;)d.push(t),t=this.getDisplayedColAfter(t);return d},t.prototype.checkViewportColumns=function(e){if((void 0===e&&(e=!1),null!=this.displayedColumnsCenter)&&this.extractViewport()){var t={type:Je.EVENT_VIRTUAL_COLUMNS_CHANGED,afterScroll:e};this.eventService.dispatchEvent(t)}},t.prototype.setViewportPosition=function(e,t,d){void 0===d&&(d=!1),(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns(d))},t.prototype.isPivotMode=function(){return this.pivotMode},t.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsService.get("treeData")||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},t.prototype.setPivotMode=function(e,t){if(void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)&&(this.pivotMode=e,this.gridColumns)){this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);var d={type:Je.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(d)}},t.prototype.getSecondaryPivotColumn=function(e,t){if(o(this.secondaryColumns))return null;var d=this.getPrimaryColumn(t),a=null;return this.secondaryColumns.forEach((function(t){var i=t.getColDef().pivotKeys,o=t.getColDef().pivotValueColumn;Pe(i,e)&&o===d&&(a=t)})),a},t.prototype.setBeans=function(e){this.logger=e.create("columnModel")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var t,d;this.gridOptionsService.get("enableRtl")?(t=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,d=this.displayedColumnsRight?be(this.displayedColumnsRight):null):(t=this.displayedColumnsLeft?be(this.displayedColumnsLeft):null,d=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(a){a.setLastLeftPinned(a===t,e),a.setFirstRightPinned(a===d,e)}))},t.prototype.autoSizeColumns=function(e){var t=this;if(this.shouldQueueResizeOperations)this.resizeOperationQueue.push((function(){return t.autoSizeColumns(e)}));else{var d=e.columns,a=e.skipHeader,i=e.skipHeaderGroups,o=e.stopAtGroup,s=e.source,l=void 0===s?"api":s;this.animationFrameService.flushAllFrames();for(var m=[],r=-1,u=null!=a?a:this.gridOptionsService.get("skipHeaderOnAutoSize"),n=null!=i?i:u;0!==r;)r=0,this.actionOnGridColumns(d,(function(e){if(m.indexOf(e)>=0)return!1;var d=t.autoWidthCalculator.getPreferredWidthForColumn(e,u);if(d>0){var a=t.normaliseColumnWidth(e,d);e.setActualWidth(a,l),m.push(e),r++}return!0}),l);n||this.autoSizeColumnGroupsByColumns(d,l,o),this.dispatchColumnResizedEvent(m,!0,"autosizeColumns")}},t.prototype.dispatchColumnResizedEvent=function(e,t,d,a){if(void 0===a&&(a=null),e&&e.length){var i={type:Je.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:a,finished:t,source:d};this.eventService.dispatchEvent(i)}},t.prototype.dispatchColumnChangedEvent=function(e,t,d){var a={type:e,columns:t,column:t&&1==t.length?t[0]:null,source:d};this.eventService.dispatchEvent(a)},t.prototype.dispatchColumnMovedEvent=function(e){var t=e.movedColumns,d=e.source,a=e.toIndex,i=e.finished,o={type:Je.EVENT_COLUMN_MOVED,columns:t,column:t&&1===t.length?t[0]:null,toIndex:a,finished:i,source:d};this.eventService.dispatchEvent(o)},t.prototype.dispatchColumnPinnedEvent=function(e,t){if(e.length){var d=1===e.length?e[0]:null,a=this.getCommonValue(e,(function(e){return e.getPinned()})),i={type:Je.EVENT_COLUMN_PINNED,pinned:null!=a?a:null,columns:e,column:d,source:t};this.eventService.dispatchEvent(i)}},t.prototype.dispatchColumnVisibleEvent=function(e,t){if(e.length){var d=1===e.length?e[0]:null,a=this.getCommonValue(e,(function(e){return e.isVisible()})),i={type:Je.EVENT_COLUMN_VISIBLE,visible:a,columns:e,column:d,source:t};this.eventService.dispatchEvent(i)}},t.prototype.autoSizeColumn=function(e,t,d){void 0===d&&(d="api"),e&&this.autoSizeColumns({columns:[e],skipHeader:t,skipHeaderGroups:!0,source:d})},t.prototype.autoSizeColumnGroupsByColumns=function(e,t,d){var a,i,o,s,l,m=new Set;this.getGridColumns(e).forEach((function(e){for(var t=e.getParent();t&&t!=d;)t.isPadding()||m.add(t),t=t.getParent()}));try{for(var r=qt(m),u=r.next();!u.done;u=r.next()){var n=u.value;try{for(var f=(o=void 0,qt(this.ctrlsService.getHeaderRowContainerCtrls())),p=f.next();!p.done;p=f.next()){if(l=p.value.getHeaderCtrlForColumn(n))break}}catch(c){o={error:c}}finally{try{p&&!p.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}l&&l.resizeLeafColumnsToFit(t)}}catch(_){a={error:_}}finally{try{u&&!u.done&&(i=r.return)&&i.call(r)}finally{if(a)throw a.error}}return[]},t.prototype.autoSizeAllColumns=function(e,t){var d=this;if(void 0===t&&(t="api"),this.shouldQueueResizeOperations)this.resizeOperationQueue.push((function(){return d.autoSizeAllColumns(e,t)}));else{var a=this.getAllDisplayedColumns();this.autoSizeColumns({columns:a,skipHeader:e,source:t})}},t.prototype.getColumnsFromTree=function(e){var t=[],d=function(e){for(var a=0;a=0},t.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},t.prototype.getViewportColumns=function(){return this.viewportColumns},t.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},t.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},t.prototype.isColSpanActive=function(){return this.colSpanActive},t.prototype.getDisplayedColumnsForRow=function(e,t,d,a){for(var i,o=[],s=null,l=function(l){var m,r=t[l],u=t.length-l,n=Math.min(r.getColSpan(e),u),f=[r];if(n>1){for(var p=n-1,c=1;c<=p;c++)f.push(t[l+c]);l+=p}if(d?(m=!1,f.forEach((function(e){d(e)&&(m=!0)}))):m=!0,m){if(0===o.length&&s)!!a&&a(r)&&o.push(s);o.push(r)}s=r,i=l},m=0;mt.viewportLeft}))},t.prototype.isColumnAtEdge=function(e,t){var d=this.getAllDisplayedColumns();if(!d.length)return!1;var a,i="first"===t;if(e instanceof Xe){var o=e.getDisplayedLeafColumns();if(!o.length)return!1;a=i?o[0]:be(o)}else a=e;return(i?d[0]:be(d))===a},t.prototype.getAriaColumnIndex=function(e){var t;return t=e instanceof Xe?e.getLeafColumns()[0]:e,this.getAllGridColumns().indexOf(t)+1},t.prototype.isColumnInHeaderViewport=function(e){return!!e.isAutoHeaderHeight()||this.isColumnInRowViewport(e)},t.prototype.isColumnInRowViewport=function(e){if(e.isAutoHeight())return!0;var t=e.getLeft()||0,d=t+e.getActualWidth(),a=this.viewportLeft-200,i=this.viewportRight+200;return!(ti&&d>i)},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,t,d,a,i,o){var l=this;if(void 0===o&&(o="api"),e&&!s(e)){var m=!1;if(e.forEach((function(e){var i=l.getPrimaryColumn(e);if(i){if(d){if(t.indexOf(i)>=0)return;t.push(i)}else{if(t.indexOf(i)<0)return;Te(t,i)}a(i),m=!0}})),m){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(o);var r={type:i,columns:t,column:1===t.length?t[0]:null,source:o};this.eventService.dispatchEvent(r)}}},t.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,Je.EVENT_COLUMN_ROW_GROUP_CHANGED,!0,this.setRowGroupActive.bind(this),t)},t.prototype.setRowGroupActive=function(e,t,d){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,d),e&&!this.gridOptionsService.get("suppressRowGroupHidesColumns")&&this.setColumnVisible(t,!1,d),e||this.gridOptionsService.get("suppressMakeColumnVisibleAfterUnGroup")||this.setColumnVisible(t,!0,d))},t.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},t.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),Je.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),Je.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},t.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),Je.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,Je.EVENT_COLUMN_PIVOT_CHANGED,!0,(function(e,d){d.setPivotActive(e,t)}),t)},t.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},t.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),Je.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},t.prototype.setPrimaryColumnList=function(e,t,d,a,o,s){var l=this;if(this.gridColumns){var m=new Map;t.forEach((function(e,t){return m.set(e,t)})),t.length=0,i(e)&&e.forEach((function(e){var d=l.getPrimaryColumn(e);d&&t.push(d)})),t.forEach((function(e,t){var d=m.get(e);void 0!==d?a&&d!==t||m.delete(e):m.set(e,0)})),(this.primaryColumns||[]).forEach((function(e){var d=t.indexOf(e)>=0;o(d,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(s),this.dispatchColumnChangedEvent(d,Ct([],yt(m.keys()),!1),s)}},t.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,Je.EVENT_COLUMN_VALUE_CHANGED,!1,this.setValueActive.bind(this),t)},t.prototype.setValueActive=function(e,t,d){if(e!==t.isValueActive()&&(t.setValueActive(e,d),e&&!t.getAggFunc())){var a=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(a)}},t.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),Je.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},t.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},t.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),Je.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.normaliseColumnWidth=function(e,t){var d=e.getMinWidth();i(d)&&t0?o+=d:s=!1})),d>=a&&(!s||d<=o)},t.prototype.resizeColumnSets=function(e){var t=this,d=e.resizeSets,a=e.finished,o=e.source;if(!d||d.every((function(e){return t.checkMinAndMaxWidthsForSet(e)}))){var s=[],l=[];d.forEach((function(e){var t=e.width,d=e.columns,a=e.ratios,m={},r={};d.forEach((function(e){return l.push(e)}));for(var u=!0,n=0,f=function(){if(++n>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";u=!1;var e=[],o=0,s=t;d.forEach((function(t,d){if(r[t.getId()])s-=m[t.getId()];else{e.push(t);var i=a[d];o+=i}}));var l=1/o;e.forEach((function(d,o){var n;o===e.length-1?n=s:(n=Math.round(a[o]*t*l),s-=n);var f=d.getMinWidth(),p=d.getMaxWidth();i(f)&&n0&&n>p&&(n=p,r[d.getId()]=!0,u=!0),m[d.getId()]=n}))};u;){if("break"===f())break}d.forEach((function(e){var t=m[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,o),s.push(e))}))}));var m=s.length>0,r=[];m&&(r=this.refreshFlexedColumns({resizingCols:l,skipSetLeft:!0}),this.setLeftValues(o),this.updateBodyWidths(),this.checkViewportColumns());var u=l.concat(r);(m||a)&&this.dispatchColumnResizedEvent(u,a,o,r)}else if(a){var n=d&&d.length>0?d[0].columns:null;this.dispatchColumnResizedEvent(n,a,o)}},t.prototype.setColumnAggFunc=function(e,t,d){if(void 0===d&&(d="api"),e){var a=this.getPrimaryColumn(e);a&&(a.setAggFunc(t),this.dispatchColumnChangedEvent(Je.EVENT_COLUMN_VALUE_CHANGED,[a],d))}},t.prototype.moveRowGroupColumn=function(e,t,d){if(void 0===d&&(d="api"),!this.isRowGroupEmpty()){var a=this.rowGroupColumns[e],i=this.rowGroupColumns.slice(e,t);this.rowGroupColumns.splice(e,1),this.rowGroupColumns.splice(t,0,a);var o={type:Je.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:i,column:1===i.length?i[0]:null,source:d};this.eventService.dispatchEvent(o)}},t.prototype.moveColumns=function(e,t,d,a){if(void 0===d&&(d="api"),void 0===a&&(a=!0),this.gridColumns){if(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)||(Be(this.gridColumns,i,t),this.updateDisplayedColumns(d),this.dispatchColumnMovedEvent({movedColumns:i,source:d,toIndex:t,finished:a}),this.columnAnimationService.finish())}},t.prototype.doesMovePassRules=function(e,t){var d=this.getProposedColumnOrder(e,t);return this.doesOrderPassRules(d)},t.prototype.doesOrderPassRules=function(e){return!!this.doesMovePassMarryChildren(e)&&!!this.doesMovePassLockedPositions(e)},t.prototype.getProposedColumnOrder=function(e,t){var d=this.gridColumns.slice();return Be(d,e,t),d},t.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,d){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(d)})))},t.prototype.doesMovePassLockedPositions=function(e){var t=0,d=!0;return e.forEach((function(e){var a,i=(a=e.getColDef().lockPosition)?!0===a||"left"===a?0:2:1;ia.getLeafColumns().length-1&&(t=!1)}}})),t},t.prototype.moveColumn=function(e,t,d){void 0===d&&(d="api"),this.moveColumns([e],t,d)},t.prototype.moveColumnByIndex=function(e,t,d){if(void 0===d&&(d="api"),this.gridColumns){var a=this.gridColumns[e];this.moveColumn(a,t,d)}},t.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var t=this.primaryColumns.slice();return this.gridColsArePrimary?t.sort((function(t,d){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(d)})):this.lastPrimaryOrder&&t.sort((function(t,d){return e.lastPrimaryOrder.indexOf(t)-e.lastPrimaryOrder.indexOf(d)})),this.columnDefFactory.buildColumnDefs(t,this.rowGroupColumns,this.pivotColumns)}},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),t=this.getWidthOfColsInList(this.displayedColumnsLeft),d=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==d){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=d;var a={type:Je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(a)}},t.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},t.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},t.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},t.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},t.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},t.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},t.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},t.prototype.getDisplayedColumns=function(e){switch(e){case"left":return this.getDisplayedLeftColumns();case"right":return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},t.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},t.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},t.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},t.prototype.getAllGridColumns=function(){var e;return null!==(e=this.gridColumns)&&void 0!==e?e:[]},t.prototype.isEmpty=function(){return s(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return s(this.rowGroupColumns)},t.prototype.setColumnVisible=function(e,t,d){void 0===d&&(d="api"),this.setColumnsVisible([e],t,d)},t.prototype.setColumnsVisible=function(e,t,d){void 0===t&&(t=!1),void 0===d&&(d="api"),this.applyColumnState({state:e.map((function(e){return{colId:"string"===typeof e?e:e.getColId(),hide:!t}}))},d)},t.prototype.setColumnPinned=function(e,t,d){void 0===d&&(d="api"),e&&this.setColumnsPinned([e],t,d)},t.prototype.setColumnsPinned=function(e,t,d){var a;(void 0===d&&(d="api"),this.gridColumns)&&(this.gridOptionsService.isDomLayout("print")?console.warn("AG Grid: Changing the column pinning status is not allowed with domLayout='print'"):(this.columnAnimationService.start(),a=!0===t||"left"===t?"left":"right"===t?"right":null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==a&&(e.setPinned(a),!0)}),d,(function(){return{type:Je.EVENT_COLUMN_PINNED,pinned:a,column:null,columns:null,source:d}})),this.columnAnimationService.finish()))},t.prototype.actionOnGridColumns=function(e,t,d,a){var o=this;if(!s(e)){var l=[];if(e.forEach((function(e){var d=o.getGridColumn(e);d&&(!1!==t(d)&&l.push(d))})),l.length&&(this.updateDisplayedColumns(d),i(a)&&a)){var m=a();m.columns=l,m.column=1===l.length?l[0]:null,this.eventService.dispatchEvent(m)}}},t.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),d=t.indexOf(e);return d>0?t[d-1]:null},t.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),d=t.indexOf(e);return d0},t.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,[this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]])},t.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,d=e.isPivotActive()?this.pivotColumns.indexOf(e):null,a=e.isValueActive()?e.getAggFunc():null,i=null!=e.getSort()?e.getSort():null,o=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:o,aggFunc:a,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:d,flex:s}},t.prototype.getColumnState=function(){if(o(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(e),e},t.prototype.orderColumnStateList=function(e){var t=ut(this.gridColumns.map((function(e,t){return[e.getColId(),t]})));e.sort((function(e,d){return(t.has(e.colId)?t.get(e.colId):-1)-(t.has(d.colId)?t.get(d.colId):-1)}))},t.prototype.resetColumnState=function(e){var t=this;if(void 0===e&&(e="api"),!s(this.primaryColumns)){var d=this.getColumnsFromTree(this.primaryColumnTree),a=[],i=1e3,l=1e3,m=[];this.groupAutoColumns&&(m=m.concat(this.groupAutoColumns)),d&&(m=m.concat(d)),m.forEach((function(e){var d=t.getColumnStateFromColDef(e);o(d.rowGroupIndex)&&d.rowGroup&&(d.rowGroupIndex=i++),o(d.pivotIndex)&&d.pivot&&(d.pivotIndex=l++),a.push(d)})),this.applyColumnState({state:a,applyOrder:!0},e)}},t.prototype.getColumnStateFromColDef=function(e){var t=function(e,t){return null!=e?e:null!=t?t:null},d=e.getColDef(),a=t(d.sort,d.initialSort),i=t(d.sortIndex,d.initialSortIndex),o=t(d.hide,d.initialHide),s=t(d.pinned,d.initialPinned),l=t(d.width,d.initialWidth),m=t(d.flex,d.initialFlex),r=t(d.rowGroupIndex,d.initialRowGroupIndex),u=t(d.rowGroup,d.initialRowGroup);null!=r||null!=u&&0!=u||(r=null,u=null);var n=t(d.pivotIndex,d.initialPivotIndex),f=t(d.pivot,d.initialPivot);null!=n||null!=f&&0!=f||(n=null,f=null);var p=t(d.aggFunc,d.initialAggFunc);return{colId:e.getColId(),sort:a,sortIndex:i,hide:o,pinned:s,width:l,flex:m,rowGroup:u,rowGroupIndex:r,pivot:f,pivotIndex:n,aggFunc:p}},t.prototype.applyColumnState=function(e,t){var d=this;if(s(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 a=function(a,i,o){var s=d.compareColumnStatesAndDispatchEvents(t);d.autoGroupsNeedBuilding=!0;var l=i.slice(),m={},r={},u=[],n=[],f=0,p=d.rowGroupColumns.slice(),c=d.pivotColumns.slice();a.forEach((function(a){var i=a.colId||"";if(i.startsWith(dt))return u.push(a),void n.push(a);var s=o(i);s?(d.syncColumnWithStateItem(s,a,e.defaultState,m,r,!1,t),Te(l,s)):(n.push(a),f+=1)}));var _=function(a){return d.syncColumnWithStateItem(a,null,e.defaultState,m,r,!1,t)};l.forEach(_);var y=function(e,t,d,a){var i=e[d.getId()],o=e[a.getId()],s=null!=i,l=null!=o;if(s&&l)return i-o;if(s)return-1;if(l)return 1;var m=t.indexOf(d),r=t.indexOf(a),u=m>=0;return u&&r>=0?m-r:u?-1:1};d.rowGroupColumns.sort(y.bind(d,m,p)),d.pivotColumns.sort(y.bind(d,r,c)),d.updateGridColumns();var C=d.groupAutoColumns?d.groupAutoColumns.slice():[];return u.forEach((function(a){var i=d.getAutoColumn(a.colId);Te(C,i),d.syncColumnWithStateItem(i,a,e.defaultState,null,null,!0,t)})),C.forEach(_),d.applyOrderAfterApplyState(e),d.updateDisplayedColumns(t),d.dispatchEverythingChanged(t),s(),{unmatchedAndAutoStates:n,unmatchedCount:f}};this.columnAnimationService.start();var o=a(e.state||[],this.primaryColumns||[],(function(e){return d.getPrimaryColumn(e)})),l=o.unmatchedAndAutoStates,m=o.unmatchedCount;return(l.length>0||i(e.defaultState))&&(m=a(l,this.secondaryColumns||[],(function(e){return d.getSecondaryColumn(e)})).unmatchedCount),this.columnAnimationService.finish(),0===m},t.prototype.applyOrderAfterApplyState=function(e){var t=this;if(e.applyOrder&&e.state){var d=[],a={};e.state.forEach((function(e){if(e.colId&&!a[e.colId]){var i=t.gridColumnsMap[e.colId];i&&(d.push(i),a[e.colId]=!0)}}));var i=0;this.gridColumns.forEach((function(e){var t=e.getColId();null!=a[t]||(t.startsWith(dt)?De(d,e,i++):d.push(e))})),d=this.placeLockedColumns(d),this.doesMovePassMarryChildren(d)?this.gridColumns=d:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},t.prototype.compareColumnStatesAndDispatchEvents=function(e){var t=this,d={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},a=this.getColumnState(),i={};return a.forEach((function(e){i[e.colId]=e})),function(){var o=t.getPrimaryAndSecondaryAndAutoColumns(),s=function(d,a,i,o){if(!Pe(a.map(o),i.map(o))){var s=new Set(a);i.forEach((function(e){s.delete(e)||s.add(e)}));var l=Ct([],yt(s),!1),m={type:d,columns:l,column:1===l.length?l[0]:null,source:e};t.eventService.dispatchEvent(m)}},l=function(e){var t=[];return o.forEach((function(d){var a=i[d.getColId()];a&&e(a,d)&&t.push(d)})),t},m=function(e){return e.getColId()};s(Je.EVENT_COLUMN_ROW_GROUP_CHANGED,d.rowGroupColumns,t.rowGroupColumns,m),s(Je.EVENT_COLUMN_PIVOT_CHANGED,d.pivotColumns,t.pivotColumns,m);var r=l((function(e,t){var d=null!=e.aggFunc,a=d!=t.isValueActive(),i=d&&e.aggFunc!=t.getAggFunc();return a||i}));r.length>0&&t.dispatchColumnChangedEvent(Je.EVENT_COLUMN_VALUE_CHANGED,r,e);t.dispatchColumnResizedEvent(l((function(e,t){return e.width!=t.getActualWidth()})),!0,e);t.dispatchColumnPinnedEvent(l((function(e,t){return e.pinned!=t.getPinned()})),e);t.dispatchColumnVisibleEvent(l((function(e,t){return e.hide==t.isVisible()})),e);l((function(e,t){return e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()})).length>0&&t.sortController.dispatchSortChangedEvents(e),t.normaliseColumnMovedEventForColumnState(a,e)}},t.prototype.getCommonValue=function(e,t){if(e&&0!=e.length){for(var d=t(e[0]),a=1;a=n&&e.setActualWidth(p,l)}var c=m("sort").value1;void 0!==c&&("desc"===c||"asc"===c?e.setSort(c,l):e.setSort(void 0,l));var _=m("sortIndex").value1;if(void 0!==_&&e.setSortIndex(_),!s&&e.isPrimary()){var y=m("aggFunc").value1;void 0!==y&&("string"===typeof y?(e.setAggFunc(y),e.isValueActive()||(e.setValueActive(!0,l),this.valueColumns.push(e))):(i(y)&&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,l),Te(this.valueColumns,e))));var C=m("rowGroup","rowGroupIndex"),q=C.value1,b=C.value2;void 0===q&&void 0===b||("number"===typeof b||q?(e.isRowGroupActive()||(e.setRowGroupActive(!0,l),this.rowGroupColumns.push(e)),a&&"number"===typeof b&&(a[e.getId()]=b)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,l),Te(this.rowGroupColumns,e)));var P=m("pivot","pivotIndex"),h=P.value1,S=P.value2;void 0===h&&void 0===S||("number"===typeof S||h?(e.isPivotActive()||(e.setPivotActive(!0,l),this.pivotColumns.push(e)),o&&"number"===typeof S&&(o[e.getId()]=S)):e.isPivotActive()&&(e.setPivotActive(!1,l),Te(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,t){var d=[];return e&&e.forEach((function(e){var a=t(e);a&&d.push(a)})),d},t.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},t.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.lookupGridColumn=function(e){return this.gridColumnsMap[e]},t.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},t.prototype.getColumn=function(e,t,d){if(!e||!d)return null;if("string"==typeof e&&d[e])return d[e];for(var a=0;a=0:n?void 0!==c?c:!!(void 0!==y)&&(null!=y&&y>=0):t.indexOf(d)>=0)&&((n?null!=_||null!=y:null!=_)?l.push(d):u.push(d))}));var n=function(e){var t=a(e.getColDef()),d=i(e.getColDef());return null!=t?t:d};l.sort((function(e,t){var d=n(e),a=n(t);return d===a?0:d=0&&f.push(e)})),u.forEach((function(e){f.indexOf(e)<0&&f.push(e)})),t.forEach((function(e){f.indexOf(e)<0&&d(e,!1)})),f.forEach((function(e){t.indexOf(e)<0&&d(e,!0)})),f},t.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,d){return t.setPivotActive(d,e)}),(function(e){return e.pivotIndex}),(function(e){return e.initialPivotIndex}),(function(e){return e.pivot}),(function(e){return e.initialPivot}))},t.prototype.resetColumnGroupState=function(e){if(void 0===e&&(e="api"),this.primaryColumnTree){var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof ye){var d=e.getColGroupDef(),a={groupId:e.getGroupId(),open:d?d.openByDefault:void 0};t.push(a)}})),this.setColumnGroupState(t,e)}},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){t instanceof ye&&e.push({groupId:t.getGroupId(),open:t.isExpanded()})})),e},t.prototype.setColumnGroupState=function(e,t){var d=this;if(void 0===t&&(t="api"),this.gridBalancedTree){this.columnAnimationService.start();var a=[];if(e.forEach((function(e){var t=e.groupId,i=e.open,o=d.getProvidedColumnGroup(t);o&&o.isExpanded()!==i&&(d.logger.log("columnGroupOpened("+o.getGroupId()+","+i+")"),o.setExpanded(i),a.push(o))})),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t),a.length){var i={type:Je.EVENT_COLUMN_GROUP_OPENED,columnGroup:1===ye.length?a[0]:void 0,columnGroups:a};this.eventService.dispatchEvent(i)}this.columnAnimationService.finish()}},t.prototype.setColumnGroupOpened=function(e,t,d){var a;void 0===d&&(d="api"),a=e instanceof ye?e.getId():e||"",this.setColumnGroupState([{groupId:a,open:t}],d)},t.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(d){d instanceof ye&&d.getId()===e&&(t=d)})),t},t.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&o(this.secondaryColumns)?this.gridColumns.filter((function(t){var d=e.groupAutoColumns&&ve(e.groupAutoColumns,t),a=e.valueColumns&&ve(e.valueColumns,t);return d||a})):this.gridColumns.filter((function(t){return e.groupAutoColumns&&ve(e.groupAutoColumns,t)||t.isVisible()}))},t.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){i(e.getColDef().colSpan)&&(t=!0)})),t},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={};this.gridColumns.forEach((function(t){var d=t.getColDef(),a=d.showRowGroup;d&&i(a)&&(e.groupDisplayColumns.push(t),"string"===typeof a?e.groupDisplayColumnsMap[a]=t:!0===a&&e.getRowGroupColumns().forEach((function(d){e.groupDisplayColumnsMap[d.getId()]=t})))}))},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.getGroupDisplayColumnForGroup=function(e){return this.groupDisplayColumnsMap[e]},t.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return i(this.secondaryColumns)},t.prototype.setSecondaryColumns=function(e,t){var d=this;if(void 0===t&&(t="api"),this.gridColumns){var a=e&&e.length>0;if(a||!o(this.secondaryColumns)){if(a){this.processSecondaryColumnDefinitions(e);var i=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.destroyOldColumns(this.secondaryBalancedTree,i.columnTree),this.secondaryBalancedTree=i.columnTree,this.secondaryHeaderRowCount=i.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((function(e){return d.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)}}},t.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsService.get("processPivotResultColDef"),d=this.gridOptionsService.get("processPivotResultColGroupDef");if(t||d){var a=function(e){e.forEach((function(e){if(i(e.children)){var o=e;d&&d(o),a(o.children)}else{t&&t(e)}}))};e&&a(e)}},t.prototype.updateGridColumns=function(){var e,t=this,d=this.gridBalancedTree;if(this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns,this.secondaryColumns&&this.secondaryBalancedTree){var a=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,a&&(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=ut(this.groupAutoColumns.map((function(e){return[e,!0]})));e=e.filter((function(e){return!i.has(e)})),e=Ct(Ct([],yt(this.groupAutoColumns),!1),yt(e),!1)}if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(e),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.calculateColumnsForGroupDisplay(),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(),!Pe(d,this.gridBalancedTree)){var o={type:Je.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(o)}},t.prototype.setAutoHeightActive=function(){(this.autoHeightActive=this.gridColumns.filter((function(e){return e.isAutoHeight()})).length>0,this.autoHeightActive)&&(this.autoHeightActiveAtLeastOnce=!0,this.gridOptionsService.isRowModelType("clientSide")||this.gridOptionsService.isRowModelType("serverSide")||M("autoHeight columns only work with Client Side Row Model and Server Side Row Model."))},t.prototype.orderGridColsLike=function(e){if(!o(e)){var t=ut(e.map((function(e,t){return[e,t]}))),d=!0;if(this.gridColumns.forEach((function(e){t.has(e)&&(d=!1)})),!d){var a=ut(this.gridColumns.map((function(e){return[e,!0]}))),i=e.filter((function(e){return a.has(e)})),s=ut(i.map((function(e){return[e,!0]}))),l=this.gridColumns.filter((function(e){return!s.has(e)})),m=i.slice();l.forEach((function(e){var t=e.getOriginalParent();if(t){for(var d=[];!d.length&&t;){t.getLeafColumns().forEach((function(e){var t=m.indexOf(e)>=0,a=d.indexOf(e)<0;t&&a&&d.push(e)})),t=t.getOriginalParent()}if(d.length){var a=d.map((function(e){return m.indexOf(e)})),i=Math.max.apply(Math,Ct([],yt(a),!1));De(m,e,i+1)}else m.push(e)}else m.push(e)})),this.gridColumns=m}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.refreshQuickFilterColumns=function(){var e,t=null!==(e=this.isPivotMode()?this.secondaryColumns:this.primaryColumns)&&void 0!==e?e:[];this.groupAutoColumns&&(t=t.concat(this.groupAutoColumns)),this.columnsForQuickFilter=this.gridOptionsService.get("includeHiddenColumnsInQuickFilter")?t:t.filter((function(e){return e.isVisible()||e.isRowGroupActive()}))},t.prototype.placeLockedColumns=function(e){var t=[],d=[],a=[];return e.forEach((function(e){var i=e.getColDef().lockPosition;"right"===i?a.push(e):"left"===i||!0===i?t.push(e):d.push(e)})),Ct(Ct(Ct([],yt(t),!1),yt(d),!1),yt(a),!1)},t.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)},t.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var t={type:Je.EVENT_DISPLAYED_COLUMNS_CHANGED};this.eventService.dispatchEvent(t)},t.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()}))},t.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},t.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},t.prototype.joinDisplayedColumns=function(){this.gridOptionsService.get("enableRtl")?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var t=this;if(this.primaryColumns){var d=this.primaryColumns.slice(0),a=this.gridOptionsService.get("enableRtl");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((function(i){if(a){var o=t.getWidthOfColsInList(i);i.forEach((function(t){o-=t.getActualWidth(),t.setLeft(o,e)}))}else{var s=0;i.forEach((function(t){t.setLeft(s,e),s+=t.getActualWidth()}))}ge(d,i)})),d.forEach((function(t){t.setLeft(null,e)}))}},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(e){e.forEach((function(e){e instanceof Xe&&e.checkLeft()}))}))},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof ce&&t.push(e)}))},t.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)},t.prototype.getVirtualHeaderGroupRow=function(e,t){var d;switch(e){case"left":d=this.viewportRowLeft[t];break;case"right":d=this.viewportRowRight[t];break;default:d=this.viewportRowCenter[t]}return o(d)&&(d=[]),d},t.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.headerViewportColumns.forEach((function(t){return e[t.getId()]=!0}));var t=function(d,a,i){for(var o=!1,s=0;s=0;l--)if(o.has(s[l])){a=l;break}var m=0,r=[],u=0,n=0;for(l=0;la?(r.push(this.displayedColumnsCenter[l]),n+=this.displayedColumnsCenter[l].getFlex(),u+=null!==(t=this.displayedColumnsCenter[l].getMinWidth())&&void 0!==t?t:0):m+=this.displayedColumnsCenter[l].getActualWidth()}if(!r.length)return[];var f=[];m+u>this.flexViewportWidth&&(r.forEach((function(e){var t;return e.setActualWidth(null!==(t=e.getMinWidth())&&void 0!==t?t:0,d)})),f=r,r=[]);var p,c=[];e:for(;;){var _=(p=this.flexViewportWidth-m)/n;for(l=0;lP&&(q=P),q){y.setActualWidth(q,d),Se(r,y),n-=y.getFlex(),f.push(y),m+=y.getActualWidth();continue e}c[l]=Math.round(C)}break}var h=p;return r.forEach((function(e,t){e.setActualWidth(Math.min(c[t],h),d),f.push(e),h-=c[t]})),e.skipSetLeft||this.setLeftValues(d),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.dispatchColumnResizedEvent(f,!0,d,r),r},t.prototype.sizeColumnsToFit=function(e,t,d,a){var o,s,l,m,r,u=this;if(void 0===t&&(t="sizeColumnsToFit"),this.shouldQueueResizeOperations)this.resizeOperationQueue.push((function(){return u.sizeColumnsToFit(e,t,d,a)}));else{var n={};a&&(null===(o=null===a||void 0===a?void 0:a.columnLimits)||void 0===o||o.forEach((function(e){var t=e.key,d=_t(e,["key"]);n["string"===typeof t?t:t.getColId()]=d})));var f=this.getAllDisplayedColumns(),p=e===this.getWidthOfColsInList(f);if(!(e<=0||!f.length||p)){var c=[],_=[];f.forEach((function(e){!0===e.getColDef().suppressSizeToFit?_.push(e):c.push(e)}));var y=c.slice(0),C=!1,q=function(e){Te(c,e),_.push(e)};for(c.forEach((function(e){var d,i;e.resetActualWidth(t);var o=null===n||void 0===n?void 0:n[e.getId()],s=null!==(d=null===o||void 0===o?void 0:o.minWidth)&&void 0!==d?d:null===a||void 0===a?void 0:a.defaultMinWidth,l=null!==(i=null===o||void 0===o?void 0:o.maxWidth)&&void 0!==i?i:null===a||void 0===a?void 0:a.defaultMaxWidth,m=e.getActualWidth();"number"===typeof s&&ml&&e.setActualWidth(l,t,!0)}));!C;){C=!0;var b=e-this.getWidthOfColsInList(_);if(b<=0)c.forEach((function(e){var d,i,o=null!==(i=null===(d=null===n||void 0===n?void 0:n[e.getId()])||void 0===d?void 0:d.minWidth)&&void 0!==i?i:null===a||void 0===a?void 0:a.defaultMinWidth;"number"!==typeof o?e.setMinimum(t):e.setActualWidth(o,t,!0)}));else for(var P=b/this.getWidthOfColsInList(c),h=b,S=c.length-1;S>=0;S--){var T=c[S],g=null===n||void 0===n?void 0:n[T.getId()],O=null!==(s=null===g||void 0===g?void 0:g.minWidth)&&void 0!==s?s:null===a||void 0===a?void 0:a.defaultMinWidth,D=null!==(l=null===g||void 0===g?void 0:g.maxWidth)&&void 0!==l?l:null===a||void 0===a?void 0:a.defaultMaxWidth,B=null!==(m=T.getMinWidth())&&void 0!==m?m:0,v=null!==(r=T.getMaxWidth())&&void 0!==r?r:Number.MAX_VALUE,I="number"===typeof O&&O>B?O:T.getMinWidth(),G="number"===typeof D&&DG?(M=G,q(T),C=!1):0===S&&(M=h),T.setActualWidth(M,t,!0),h-=M}}y.forEach((function(e){e.fireColumnWidthChangedEvent(t)})),this.setLeftValues(t),this.updateBodyWidths(),d||this.dispatchColumnResizedEvent(y,!0,t)}}},t.prototype.buildDisplayedTrees=function(e){var t=[],d=[],a=[];e.forEach((function(e){switch(e.getPinned()){case"left":t.push(e);break;case"right":d.push(e);break;default:a.push(e)}}));var i=new Ze;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(t,i,"left",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(d,i,"right",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(a,i,null,this.displayedTreeCentre),this.updateDisplayedMap()},t.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)},t.prototype.isDisplayed=function(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof Xe&&e.calculateDisplayedColumns()}))},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){var e=this.forceRecreateAutoGroups;if(this.forceRecreateAutoGroups=!1,!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var t=this.gridOptionsService.isGroupUseEntireRow(this.pivotMode),d=this.pivotMode?this.gridOptionsService.get("pivotSuppressAutoColumn"):this.isGroupSuppressAutoColumn();if((this.rowGroupColumns.length>0||this.gridOptionsService.get("treeData"))&&!d&&!t){var a=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);if(!this.autoColsEqual(a,this.groupAutoColumns)||e)return this.groupAutoColumns=a,!0}else this.groupAutoColumns=null;return!1},t.prototype.isGroupSuppressAutoColumn=function(){return"custom"===this.gridOptionsService.get("groupDisplayType")||"custom"===this.gridOptionsService.get("treeDataDisplayType")},t.prototype.autoColsEqual=function(e,t){return Pe(e,t,(function(e,t){return e.getColId()===t.getColId()}))},t.prototype.getWidthOfColsInList=function(e){return e.reduce((function(e,t){return e+t.getActualWidth()}),0)},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsService.get("enableRtl"),t=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&t.reverse();for(var d=0;dthis.rowGroupColumns.findIndex((function(t){return t.getColId()===e.getColId()})))},t.prototype.generateColumnStateForRowGroupAndPivotIndexes=function(e,t){var d=this,a={},i=function(e,t,i,o,s,l){if(!t.length||!d.primaryColumns)return[];for(var m=Object.keys(e),r=new Set(m),u=new Set(m),n=new Set(t.map((function(e){var t=e.getColId();return u.delete(t),t})).concat(m)),f=[],p={},c=0,_=0;_=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},St=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pt(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,d=this.calculateColMinWidth(e),a=this.calculateColMaxWidth(e),i=m(e.width),o=m(e.initialWidth);return t=null!=i?i:null!=o?o:200,Math.max(Math.min(t,a),d)},t.prototype.getOriginalPathForColumn=function(e,t){var d=[],a=!1,i=function(t,o){for(var s=0;s=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tt(t,e),t.prototype.createDisplayedGroups=function(e,t,d,a){for(var i=this,o=this.mapOldGroupsById(a),s=[],l=e,m=function(){var e=l;l=[];for(var a=0,m=function(m){var r=a;a=m;var u=e[r],n=(u instanceof Xe?u.getProvidedColumnGroup():u).getOriginalParent();if(null!=n){var f=i.createColumnGroup(n,t,o,d);for(p=r;p0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},Bt=function(e,t,d){if(d||2===arguments.length)for(var a,i=0,o=t.length;i0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},wt=function(e,t,d){if(d||2===arguments.length)for(var a,i=0,o=t.length;i=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Rt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.componentsMappedByName={},t}return Et(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=Vt([te("agStackComponentsRegistry")],t)}(ze);function kt(e,t,d){null==d||"string"===typeof d&&""==d?xt(e,t):At(e,t,d)}function At(e,t,d){e.setAttribute(Wt(t),d.toString())}function xt(e,t){e.removeAttribute(Wt(t))}function Wt(e){return"aria-".concat(e)}function Ft(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function Ht(e){return"asc"===e?"ascending":"desc"===e?"descending":"mixed"===e?"other":"none"}function Nt(e){return parseInt(e.getAttribute("aria-level"),10)}function jt(e){return parseInt(e.getAttribute("aria-posinset"),10)}function zt(e){return e.getAttribute("aria-label")}function Ut(e,t){kt(e,"label",t)}function Kt(e,t){kt(e,"labelledby",t)}function Yt(e,t){kt(e,"description",t)}function Qt(e,t){kt(e,"live",t)}function $t(e,t){kt(e,"level",t)}function Xt(e,t){kt(e,"disabled",t)}function Jt(e,t){kt(e,"hidden",t)}function Zt(e,t){kt(e,"activedescendant",t)}function ed(e,t){At(e,"expanded",t)}function td(e){xt(e,"expanded")}function dd(e,t){At(e,"setsize",t)}function ad(e,t){At(e,"posinset",t)}function id(e,t){At(e,"multiselectable",t)}function od(e,t){At(e,"rowcount",t)}function sd(e,t){At(e,"rowindex",t)}function ld(e,t){At(e,"colcount",t)}function md(e,t){At(e,"colindex",t)}function rd(e,t){At(e,"colspan",t)}function ud(e,t){At(e,"sort",t)}function nd(e){xt(e,"sort")}function fd(e,t){kt(e,"selected",t)}function pd(e,t){kt(e,"controls",t.id),Kt(t,e.id)}function cd(e,t){return void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var _d,yd,Cd,qd,bd,Pd,hd,Sd,Td=Object.freeze({__proto__:null,setAriaRole:Ft,getAriaSortState:Ht,getAriaLevel:Nt,getAriaPosInSet:jt,getAriaLabel:zt,setAriaLabel:Ut,setAriaLabelledBy:Kt,setAriaDescription:Yt,setAriaDescribedBy:function(e,t){kt(e,"describedby",t)},setAriaLive:Qt,setAriaAtomic:function(e,t){kt(e,"atomic",t)},setAriaRelevant:function(e,t){kt(e,"relevant",t)},setAriaLevel:$t,setAriaDisabled:Xt,setAriaHidden:Jt,setAriaActiveDescendant:Zt,setAriaExpanded:ed,removeAriaExpanded:td,setAriaSetSize:dd,setAriaPosInSet:ad,setAriaMultiSelectable:id,setAriaRowCount:od,setAriaRowIndex:sd,setAriaColCount:ld,setAriaColIndex:md,setAriaColSpan:rd,setAriaSort:ud,removeAriaSort:nd,setAriaSelected:fd,setAriaChecked:function(e,t){At(e,"checked",void 0===t?"mixed":t)},setAriaControls:pd,getAriaCheckboxStateName:cd});function gd(){return void 0===_d&&(_d=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),_d}function Od(){if(void 0===yd)if(gd()){var e=navigator.userAgent.match(/version\/(\d+)/i);e&&(yd=null!=e[1]?parseFloat(e[1]):0)}else yd=0;return yd}function Dd(){if(void 0===Cd){var e=window;Cd=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return Cd}function Bd(){return void 0===qd&&(qd=/(firefox)/i.test(navigator.userAgent)),qd}function vd(){return void 0===bd&&(bd=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),bd}function Id(){return void 0===Pd&&(Pd=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),Pd}function Gd(){return!gd()||Od()>=15}function Md(e){if(!e)return null;var t=e.tabIndex,d=e.getAttribute("tabIndex");return-1!==t||null!==d&&(""!==d||Bd())?t.toString():null}function wd(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,d=document.createElement("div");for(document.body.appendChild(d);;){var a=2*e;if(d.style.height=a+"px",a>t||d.clientHeight!==a)break;e=a}return document.body.removeChild(d),e}function Ld(){var e,t,d;return null!==(t=null===(e=document.body)||void 0===e?void 0:e.clientWidth)&&void 0!==t?t:window.innerHeight||(null===(d=document.documentElement)||void 0===d?void 0:d.clientWidth)||-1}function Ed(){var e,t,d;return null!==(t=null===(e=document.body)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:window.innerHeight||(null===(d=document.documentElement)||void 0===d?void 0:d.clientHeight)||-1}function Vd(){return null==Sd&&Rd(),Sd}function Rd(){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 d=t.offsetWidth-t.clientWidth;0===d&&0===t.clientWidth&&(d=null),t.parentNode&&t.parentNode.removeChild(t),null!=d&&(Sd=d,hd=0===d)}function kd(){return null==hd&&Rd(),hd}var Ad=Object.freeze({__proto__:null,isBrowserSafari:gd,getSafariVersion:Od,isBrowserChrome:Dd,isBrowserFirefox:Bd,isMacOsUserAgent:vd,isIOSUserAgent:Id,browserSupportsPreventScroll:Gd,getTabIndex:Md,getMaxDivHeight:wd,getBodyWidth:Ld,getBodyHeight:Ed,getScrollbarWidth:Vd,isInvisibleScrollbar:kd});function xd(e,t){return e.toString().padStart(t,"0")}function Wd(e,t){for(var d=[],a=e;a<=t;a++)d.push(a);return d}function Fd(e,t,d){return"number"!==typeof e?"":e.toString().replace(".",d).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1".concat(t))}var Hd=Object.freeze({__proto__:null,padStartWidthZeros:xd,createArrayOfNumbers:Wd,cleanNumber:function(e){return"string"===typeof e&&(e=parseInt(e,10)),"number"===typeof e?Math.floor(e):null},decToHex:function(e,t){for(var d="",a=0;a>>=8;return d},formatNumberTwoDecimalPlacesAndCommas:function(e,t,d){return"number"!==typeof e?"":Fd(Math.round(100*e)/100,t,d)},formatNumberCommas:Fd,sum:function(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)}}),Nd=function(e,t){var d="function"===typeof Symbol&&e[Symbol.iterator];if(!d)return e;var a,i,o=d.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s};function jd(e,t,d){if(void 0===t&&(t=!0),void 0===d&&(d="-"),!e)return null;var a=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((function(e){return xd(e,2)})).join(d);return t&&(a+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return xd(e,2)})).join(":")),a}var zd=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 Ud(e,t){void 0===t&&(t="YYYY-MM-DD");var d=xd(e.getFullYear(),4),a=["January","February","March","April","May","June","July","August","September","October","November","December"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],o={YYYY:function(){return d.slice(d.length-4,d.length)},YY:function(){return d.slice(d.length-2,d.length)},Y:function(){return"".concat(e.getFullYear())},MMMM:function(){return a[e.getMonth()]},MMM:function(){return a[e.getMonth()].slice(0,3)},MM:function(){return xd(e.getMonth()+1,2)},Mo:function(){return"".concat(e.getMonth()+1).concat(zd(e.getMonth()+1))},M:function(){return"".concat(e.getMonth()+1)},Do:function(){return"".concat(e.getDate()).concat(zd(e.getDate()))},DD:function(){return xd(e.getDate(),2)},D:function(){return"".concat(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"".concat(e.getDay()).concat(zd(e.getDay()))},d:function(){return"".concat(e.getDay())}},s=new RegExp(Object.keys(o).join("|"),"g");return t.replace(s,(function(e){return e in o?o[e]():e}))}function Kd(e){if(!e)return null;var t=Nd(e.split(" "),2),d=t[0],a=t[1];if(!d)return null;var i=d.split("-").map((function(e){return parseInt(e,10)}));if(3!==i.filter((function(e){return!isNaN(e)})).length)return null;var o=Nd(i,3),s=o[0],l=o[1],m=o[2],r=new Date(s,l-1,m);if(r.getFullYear()!==s||r.getMonth()!==l-1||r.getDate()!==m)return null;if(!a||"00:00:00"===a)return r;var u=Nd(a.split(":").map((function(e){return parseInt(e,10)})),3),n=u[0],f=u[1],p=u[2];return n>=0&&n<24&&r.setHours(n),f>=0&&f<60&&r.setMinutes(f),p>=0&&p<60&&r.setSeconds(p),r}var Yd,Qd=Object.freeze({__proto__:null,serialiseDate:jd,dateToFormattedString:Ud,parseDateTimeFromString:Kd}),$d=function(e){var t="function"===typeof Symbol&&Symbol.iterator,d=t&&e[t],a=0;if(d)return d.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Xd=function(e,t){var d="function"===typeof Symbol&&e[Symbol.iterator];if(!d)return e;var a,i,o=d.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s};function Jd(e,t,d){for(var a=e.parentElement,i=a&&a.firstChild;i;)t&&i.classList.toggle(t,i===e),d&&i.classList.toggle(d,i!==e),i=i.nextSibling}var Zd="[tabindex], input, select, button, textarea, [href]",ea="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function ta(e){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,d=t.call(e,"input, select, button, textarea"),a=t.call(e,ea),i=Ca(e);return d&&!a&&i}function da(e,t,d){void 0===d&&(d={});var a=d.skipAriaHidden;e.classList.toggle("ag-hidden",!t),a||Jt(e,!t)}function aa(e,t,d){void 0===d&&(d={});var a=d.skipAriaHidden;e.classList.toggle("ag-invisible",!t),a||Jt(e,!t)}function ia(e,t){var d="disabled",a=t?function(e){return e.setAttribute(d,"")}:function(e){return e.removeAttribute(d)};a(e),Va(e.querySelectorAll("input"),(function(e){return a(e)}))}function oa(e,t,d){for(var a=0;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,"number"==typeof d){if(++a>d)break}else if(e===d)break}return!1}function sa(e){var t=window.getComputedStyle(e),d=t.height,a=t.width,i=t.borderTopWidth,o=t.borderRightWidth,s=t.borderBottomWidth,l=t.borderLeftWidth,m=t.paddingTop,r=t.paddingRight,u=t.paddingBottom,n=t.paddingLeft,f=t.marginTop,p=t.marginRight,c=t.marginBottom,_=t.marginLeft,y=t.boxSizing;return{height:parseFloat(d),width:parseFloat(a),borderTopWidth:parseFloat(i),borderRightWidth:parseFloat(o),borderBottomWidth:parseFloat(s),borderLeftWidth:parseFloat(l),paddingTop:parseFloat(m),paddingRight:parseFloat(r),paddingBottom:parseFloat(u),paddingLeft:parseFloat(n),marginTop:parseFloat(f),marginRight:parseFloat(p),marginBottom:parseFloat(c),marginLeft:parseFloat(_),boxSizing:y}}function la(e){var t=sa(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function ma(e){var t=sa(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function ra(e){var t=sa(e),d=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+d)}function ua(e){var t=sa(e),d=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+d)}function na(e){var t=e.getBoundingClientRect(),d=sa(e),a=d.borderTopWidth,i=d.borderLeftWidth,o=d.borderRightWidth,s=d.borderBottomWidth;return{top:t.top+(a||0),left:t.left+(i||0),right:t.right+(o||0),bottom:t.bottom+(s||0)}}function fa(){if("boolean"===typeof Yd)return Yd;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='
\n \n \n
',document.body.appendChild(e),e.scrollLeft=1,Yd=0===Math.floor(e.scrollLeft),document.body.removeChild(e),Yd}function pa(e,t){var d=e.scrollLeft;return t&&(d=Math.abs(d),Dd()&&!fa()&&(d=e.scrollWidth-e.clientWidth-d)),d}function ca(e,t,d){d&&(fa()?t*=-1:(gd()||Dd())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function _a(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function ya(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ca(e){var t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!e.offsetParent||"visible"!==window.getComputedStyle(e).visibility)}function qa(e){var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function ba(e){return e&&e.clientHeight?e.clientHeight:0}function Pa(e){return e&&e.clientWidth?e.clientWidth:0}function ha(e,t,d){if(!d||d.nextSibling!==t){var a=document.activeElement,i=t.contains(a);d?d.nextSibling?e.insertBefore(t,d.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t),i&&a&&Gd()&&a.focus({preventScroll:!0})}}function Sa(e,t){for(var d=0;d=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function xa(e,t,d){var a={},i=e.filter((function(e){return!t.some((function(t){return t===e}))}));return i.length>0&&i.forEach((function(e){return a[e]=Wa(e,d).values})),a}function Wa(e,t,d,a){var i,o,s=t.map((function(t,d){return{value:t,relevance:Fa(e.toLowerCase(),t.toLocaleLowerCase()),idx:d}}));if(s.sort((function(e,t){return t.relevance-e.relevance})),d&&(s=s.filter((function(e){return 0!==e.relevance}))),s.length>0&&a&&a>0){var l=s[0].relevance*a;s=s.filter((function(e){return l-e.relevance<0}))}var m=[],r=[];try{for(var u=Aa(s),n=u.next();!n.done;n=u.next()){var f=n.value;m.push(f.value),r.push(f.idx)}}catch(p){i={error:p}}finally{try{n&&!n.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return{values:m,indices:r}}function Fa(e,t){for(var d=e.replace(/\s/g,""),a=t.replace(/\s/g,""),i=0,o=-1,s=0;s-1||"object"===typeof i&&i["ag-icon"])return a}var o=document.createElement("span");return o.appendChild(a),o}function za(e,t,d,a){var i=null,o=d&&d.getColDef().icons;if(o&&(i=o[e]),t&&!i){var s=t.get("icons");s&&(i=s[e])}if(!i){var l=document.createElement("span"),m=Na[e];return m||(a?m=e:(console.warn("AG Grid: Did not find icon ".concat(e)),m="")),l.setAttribute("class","ag-icon ag-icon-".concat(m)),l.setAttribute("unselectable","on"),Ft(l,"presentation"),l}var r=void 0;if("function"===typeof i)r=i();else{if("string"!==typeof i)throw new Error("icon from grid options needs to be a string or a function");r=i}return"string"===typeof r?qa(r):Ma(r)?r:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var Ua=Object.freeze({__proto__:null,iconNameClassMap:Na,createIcon:ja,createIconNoSpan:za}),Ka=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}();function Ya(e){return!(e.altKey||e.ctrlKey||e.metaKey)&&1===e.key.length}function Qa(e,t,d,a,i){var o=a?a.getColDef().suppressKeyboardEvent:void 0;if(!o)return!1;var s={event:t,editing:i,column:a,api:e.api,node:d,data:d.data,colDef:a.getColDef(),context:e.context,columnApi:e.columnApi};if(o&&o(s))return!0;return!1}function $a(e,t,d,a){var o=a.getDefinition(),s=o&&o.suppressHeaderKeyboardEvent;return!!i(s)&&!!s({api:e.api,columnApi:e.columnApi,context:e.context,colDef:o,column:a,headerRowIndex:d,event:t})}function Xa(e){var t;switch(e.keyCode){case 65:t=Ka.A;break;case 67:t=Ka.C;break;case 86:t=Ka.V;break;case 68:t=Ka.D;break;case 90:t=Ka.Z;break;case 89:t=Ka.Y;break;default:t=e.code}return t}function Ja(e,t){return void 0===t&&(t=!1),e===Ka.DELETE||!t&&e===Ka.BACKSPACE&&vd()}var Za=Object.freeze({__proto__:null,isEventFromPrintableCharacter:Ya,isUserSuppressingKeyboardEvent:Qa,isUserSuppressingHeaderKeyboardEvent:$a,normaliseQwertyAzerty:Xa,isDeleteKey:Ja});function ei(e,t,d){if(0===d)return!1;var a=Math.abs(e.clientX-t.clientX),i=Math.abs(e.clientY-t.clientY);return Math.max(a,i)<=d}var ti=Object.freeze({__proto__:null,areEventsNear:ei});var di=Object.freeze({__proto__:null,sortRowNodesByOrder:function(e,t){if(!e)return!1;for(var d=function(e,d){var a=t[e.id],i=t[d.id],o=void 0!==a,s=void 0!==i;return o&&s?a-i:!o&&!s?e.__objectId-d.__objectId:o?1:-1},a=!1,i=0;i0){a=!0;break}return!!a&&(e.sort(d),!0)}});function ai(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}var ii,oi=Object.freeze({__proto__:null,convertToSet:ai}),si=function(){return si=Object.assign||function(e){for(var t,d=1,a=arguments.length;d=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s};!function(e){e[e.NOTHING=0]="NOTHING",e[e.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",e[e.SHOWING=2]="SHOWING"}(ri||(ri={})),function(e){e[e.HOVER=0]="HOVER",e[e.FOCUS=1]="FOCUS"}(ui||(ui={}));var yi=function(e){function t(t,d,a){var i=e.call(this)||this;return i.parentComp=t,i.tooltipShowDelayOverride=d,i.tooltipHideDelayOverride=a,i.SHOW_QUICK_TOOLTIP_DIFF=1e3,i.FADE_OUT_TOOLTIP_TIMEOUT=1e3,i.INTERACTIVE_HIDE_DELAY=100,i.interactionEnabled=!1,i.isInteractingWithTooltip=!1,i.state=ri.NOTHING,i.tooltipInstanceCount=0,i.tooltipMouseTrack=!1,i}return pi(t,e),t.prototype.postConstruct=function(){this.gridOptionsService.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gridOptionsService.get("tooltipMouseTrack");var e=this.parentComp.getGui();this.tooltipTrigger===ui.HOVER&&(this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this))),this.tooltipTrigger===ui.FOCUS&&(this.addManagedListener(e,"focusin",this.onFocusIn.bind(this)),this.addManagedListener(e,"focusout",this.onFocusOut.bind(this))),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.interactionEnabled||(this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this)))},t.prototype.getGridOptionsTooltipDelay=function(e){var t=this.gridOptionsService.get(e);return t<0&&M("".concat(e," should not be lower than 0")),Math.max(200,t)},t.prototype.getTooltipDelay=function(e){var t,d;return"show"===e?null!==(t=this.tooltipShowDelayOverride)&&void 0!==t?t:this.getGridOptionsTooltipDelay("tooltipShowDelay"):null!==(d=this.tooltipHideDelayOverride)&&void 0!==d?d:this.getGridOptionsTooltipDelay("tooltipHideDelay")},t.prototype.destroy=function(){this.setToDoNothing(),e.prototype.destroy.call(this)},t.prototype.getTooltipTrigger=function(){var e=this.gridOptionsService.get("tooltipTrigger");return e&&"hover"!==e?ui.FOCUS:ui.HOVER},t.prototype.onMouseEnter=function(e){var d=this;this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),Id()||(t.isLocked?this.showTooltipTimeoutId=window.setTimeout((function(){d.prepareToShowTooltip(e)}),this.INTERACTIVE_HIDE_DELAY):this.prepareToShowTooltip(e))},t.prototype.onMouseMove=function(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&this.state===ri.SHOWING&&this.tooltipComp&&this.positionTooltip()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.onMouseLeave=function(){this.interactionEnabled?this.lockService():this.setToDoNothing()},t.prototype.onFocusIn=function(){this.prepareToShowTooltip()},t.prototype.onFocusOut=function(e){var t,d=e.relatedTarget,a=this.parentComp.getGui(),i=null===(t=this.tooltipComp)||void 0===t?void 0:t.getGui();this.isInteractingWithTooltip||a.contains(d)||this.interactionEnabled&&(null===i||void 0===i?void 0:i.contains(d))||this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.prepareToShowTooltip=function(e){if(this.state!=ri.NOTHING||t.isLocked)return!1;var d=0;return e&&(d=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),d),this.state=ri.WAITING_TO_SHOW,!0},t.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-t.lastTooltipHideTime1)d.forEach((function(e){return t.addCssClass(e)}));else if(!0!==this.cssClassStates[e]&&e.length){var a=this.getGui();a&&a.classList.add(e),this.cssClassStates[e]=!0}},e.prototype.removeCssClass=function(e){var t=this,d=(e||"").split(" ");if(d.length>1)d.forEach((function(e){return t.removeCssClass(e)}));else if(!1!==this.cssClassStates[e]&&e.length){var a=this.getGui();a&&a.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 d=this;if(e){if(e.indexOf(" ")>=0){var a=(e||"").split(" ");if(a.length>1)return void a.forEach((function(e){return d.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}(),qi=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),bi=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Pi=new mi,hi=function(e){function t(t){var d=e.call(this)||this;return d.displayed=!0,d.visible=!0,d.compId=Pi.next(),d.cssClassManager=new Ci((function(){return d.eGui})),t&&d.setTemplate(t),d}return qi(t,e),t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsService.get("enableBrowserTooltips")},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e,t,d){var a=this;this.tooltipText!=e&&(this.tooltipText&&(a.usingBrowserTooltips?a.getGui().removeAttribute("title"):a.tooltipFeature=a.destroyBean(a.tooltipFeature)),null!=e&&(this.tooltipText=e,this.tooltipText&&(a.usingBrowserTooltips?a.getGui().setAttribute("title",a.tooltipText):a.tooltipFeature=a.createBean(new yi(a,t,d)))))},t.prototype.createChildComponentsFromTags=function(e,t){var d=this;wa(e.childNodes).forEach((function(a){if(a instanceof HTMLElement){var i=d.createComponentFromElement(a,(function(e){e.getGui()&&d.copyAttributesFromNode(a,e.getGui())}),t);if(i){if(i.addItems&&a.children.length){d.createChildComponentsFromTags(a,t);var o=Array.prototype.slice.call(a.children);i.addItems(o)}d.swapComponentForNode(i,e,a)}else a.childNodes&&d.createChildComponentsFromTags(a,t)}}))},t.prototype.createComponentFromElement=function(e,d,a){var i=e.nodeName,o=a?a[e.getAttribute("ref")]:void 0,s=this.agStackComponentsRegistry.getComponentClass(i);if(s){t.elementGettingCreated=e;var l=new s(o);return l.setParentComponent(this),this.createBean(l,null,d),l}return null},t.prototype.copyAttributesFromNode=function(e,t){La(e.attributes,(function(e,d){return t.setAttribute(e,d)}))},t.prototype.swapComponentForNode=function(e,t,d){var a=e.getGui();t.replaceChild(a,d),t.insertBefore(document.createComment(d.nodeName),a),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,d)},t.prototype.swapInComponentForQuerySelectors=function(e,t){var d=this;this.iterateOverQuerySelectors((function(a){d[a.attributeName]===t&&(d[a.attributeName]=e)}))},t.prototype.iterateOverQuerySelectors=function(e){for(var t=Object.getPrototypeOf(this);null!=t;){var d=t.__agComponentMetaData,a=L(t.constructor);d&&d[a]&&d[a].querySelectors&&d[a].querySelectors.forEach((function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.activateTabIndex=function(e){var t=this.gridOptionsService.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui()),e.forEach((function(e){return e.setAttribute("tabindex",t.toString())}))},t.prototype.setTemplate=function(e,t){var d=qa(e);this.setTemplateFromElement(d,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(d){var a=function(e){return t[d.attributeName]=e};if(d.refSelector&&e.getAttribute("ref")===d.refSelector)a(e.eGui);else{var i=e.eGui.querySelector(d.querySelector);i&&a(i.__agComponent||i)}}))}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.getAriaElement=function(){return this.getFocusableElement()},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),Ma(e))t.appendChild(e);else{var d=e;t.appendChild(d.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 d=t.skipAriaHidden;aa(this.eGui,e,{skipAriaHidden:d})}},t.prototype.setDisplayed=function(e,d){if(void 0===d&&(d={}),e!==this.displayed){this.displayed=e;var a=d.skipAriaHidden;da(this.eGui,e,{skipAriaHidden:a});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,d){var a=this;this.eGui.addEventListener(e,t,d),this.addDestroyFunc((function(){return a.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="'.concat(e,'"]'))},t.EVENT_DISPLAYED_CHANGED="displayedChanged",bi([de("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),bi([J],t.prototype,"preConstructOnComponent",null),bi([J],t.prototype,"createChildComponentsPreConstruct",null),t}(ze);function Si(e){return gi.bind(this,e,void 0)}function Ti(e){return gi.bind(this,"[ref=".concat(e,"]"),e)}function gi(e,t,d,a,i){null!==e?"number"!==typeof i?function(e,t,d){var a=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}(e,L(e.constructor));a[t]||(a[t]=[]);a[t].push(d)}(d,"querySelectors",{attributeName:a,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 Oi=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Di=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Bi=function(e){function t(){return e.call(this,'\n ')||this}return Oi(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),d=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel("".concat(t," ").concat(d("ariaFilterInput","Filter Input")))},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance((function(d){if(d.getModelAsString){var a=d.getModelAsString(e);t.eFloatingFilterText.setValue(a)}})):this.eFloatingFilterText.setValue("")},t.prototype.onParamsUpdated=function(e){this.init(e)},Di([Ti("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),Di([de("columnModel")],t.prototype,"columnModel",void 0),t}(hi),vi=function(){function e(e,t,d,a){var i=this;this.alive=!0,this.context=e,this.eParent=a,t.getDateCompDetails(d).newAgStackInstance().then((function(t){i.alive?(i.dateComp=t,t&&(a.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){da(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.updateParams=function(e){var t;(null===(t=this.dateComp)||void 0===t?void 0:t.onParamsUpdated)&&"function"===typeof this.dateComp.onParamsUpdated&&this.dateComp.onParamsUpdated(e)},e.prototype.setDateCompDisabled=function(e){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(e)},e}(),Ii=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e)},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){[["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 '".concat(e,"'")),!1)}))?e.customFilterOptions[t.displayKey]=t: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}(),Gi={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:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},Mi=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),wi=function(){return wi=Object.assign||function(e){for(var t,d=1,a=arguments.length;d=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Ei=function(e){function t(t,d){void 0===d&&(d={});var a=e.call(this)||this;return a.eFocusableElement=t,a.callbacks=d,a.callbacks=wi({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(e){if(!e.defaultPrevented){var t=a.focusService.findNextFocusableElement(a.eFocusableElement,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())}}},d),a}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)?Ve(e):e.key===Ka.TAB?t.callbacks.onTabKeyDown(e):t.callbacks.handleKeyDown&&t.callbacks.handleKeyDown(e))}))},t.FOCUS_MANAGED_CLASS="ag-focus-managed",Li([de("focusService")],t.prototype,"focusService",void 0),Li([Z],t.prototype,"postConstruct",null),t}(ze),Vi=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Ri=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},ki="ag-resizer-wrapper",Ai='
\n
\n
\n
\n
\n
\n
\n
\n
\n
'),xi=function(e){function t(t,d){var a=e.call(this)||this;return a.element=t,a.dragStartPosition={x:0,y:0},a.position={x:0,y:0},a.lastSize={width:-1,height:-1},a.positioned=!1,a.resizersAdded=!1,a.resizeListeners=[],a.boundaryEl=null,a.isResizing=!1,a.isMoving=!1,a.resizable={},a.movable=!1,a.currentResizer=null,a.config=Object.assign({},{popup:!1},d),a}return Vi(t,e),t.prototype.center=function(){var e=this.offsetParent,t=e.clientHeight,d=e.clientWidth/2-this.getWidth()/2,a=t/2-this.getHeight()/2;this.offsetElement(d,a)},t.prototype.initialisePosition=function(){if(!this.positioned){var e=this.config,t=e.centered,d=e.forcePopupParentAsOffsetParent,a=e.minWidth,i=e.width,o=e.minHeight,s=e.height,l=e.x,m=e.y;this.offsetParent||this.setOffsetParent();var r=0,u=0,n=Ca(this.element);if(n){var f=this.findBoundaryElement(),p=window.getComputedStyle(f);if(null!=p.minWidth){var c=f.offsetWidth-this.element.offsetWidth;u=parseInt(p.minWidth,10)-c}if(null!=p.minHeight){var _=f.offsetHeight-this.element.offsetHeight;r=parseInt(p.minHeight,10)-_}}if(this.minHeight=o||r,this.minWidth=a||u,i&&this.setWidth(i),s&&this.setHeight(s),i&&s||this.refreshSize(),t)this.center();else if(l||m)this.offsetElement(l,m);else if(n&&d){var y=!0;if((f=this.boundaryEl)||(f=this.findBoundaryElement(),y=!1),f){var C=parseFloat(f.style.top),q=parseFloat(f.style.left);y?this.offsetElement(isNaN(q)?0:q,isNaN(C)?0:C):this.setPosition(q,C)}}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 d=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(d),this.moveElementDragListener=d):(this.dragService.removeDragSource(d),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(d){var a=!!e[d],i=t.getResizerElement(d),o={dragStartPixels:0,eElement:i,onDragStart:function(e){return t.onResizeStart(e,d)},onDragging:t.onResize.bind(t),onDragStop:function(e){return t.onResizeEnd(e,d)}};(a||!t.isAlive()&&!a)&&(a?(t.dragService.addDragSource(o),t.resizeListeners.push(o),i.style.pointerEvents="all"):i.style.pointerEvents="none",t.resizable[d]=a)}))},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,d=e.width;-1!==d&&(this.element.style.width="".concat(d,"px")),-1!==t&&(this.element.style.height="".concat(t,"px"))},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.setHeight=function(e){var t=this.config.popup,d=this.element,a=!1;if("string"===typeof e&&-1!==e.indexOf("%"))Ia(d,e),e=ra(d),a=!0;else if(e=Math.max(this.minHeight,e),this.positioned){var i=this.getAvailableHeight();i&&e>i&&(e=i)}this.getHeight()!==e&&(a?(d.style.maxHeight="unset",d.style.minHeight="unset"):t?Ia(d,e):(d.style.height="".concat(e,"px"),d.style.flex="0 0 auto",this.lastSize.height="number"===typeof e?e:parseFloat(e)))},t.prototype.getAvailableHeight=function(){var e=this.config,t=e.popup,d=e.forcePopupParentAsOffsetParent;this.positioned||this.initialisePosition();var a=this.offsetParent.clientHeight;if(!a)return null;var i=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),s=t?this.position.y:i.top,l=t?0:o.top,m=0;if(d){var r=this.element.parentElement;if(r)m=r.getBoundingClientRect().bottom-i.bottom}return a+l-s-m},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var t=this.element,d=this.config.popup,a=!1;if("string"===typeof e&&-1!==e.indexOf("%"))va(t,e),e=ua(t),a=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var i=this.offsetParent.clientWidth,o=d?this.position.x:this.element.getBoundingClientRect().left;i&&e+o>i&&(e=i-o)}this.getWidth()!==e&&(a?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?va(t,e):(t.style.width="".concat(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 d=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;d&&(this.popupService.positionPopup({ePopup:d,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:function(){return{x:e,y:t}}}),this.setPosition(parseFloat(d.style.left),parseFloat(d.style.top)))},t.prototype.constrainSizeToAvailableHeight=function(e){var t=this;if(this.config.forcePopupParentAsOffsetParent){e?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.getPopupParent(),(function(){var e=t.getAvailableHeight();t.element.style.setProperty("max-height","".concat(e,"px"))})):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}},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,d=e.isLeft,a=e.isTop,i=e.anywhereWithin,o=e.topBuffer,s=t.clientX-this.dragStartPosition.x,l=t.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(t,!!d,!!i,s)?0:s,movementY:this.shouldSkipY(t,!!a,o,l)?0:l}},t.prototype.shouldSkipX=function(e,t,d,a){var i=this.element.getBoundingClientRect(),o=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),l=this.config.popup?this.position.x:i.left,m=l<=0&&o.left>=e.clientX||o.right<=e.clientX&&o.right<=s.right;return!!m||(m=t?a<0&&e.clientX>l+o.left||a>0&&e.clientXs.right||a>0&&e.clientXs.right||a>0&&e.clientX=e.clientY||o.bottom<=e.clientY&&o.bottom<=s.bottom;return!!m||(m=t?a<0&&e.clientY>l+o.top+d||a>0&&e.clientYs.bottom||a>0&&e.clientYthis.element.parentElement.offsetHeight&&(g=!0),g||this.setHeight(T)}this.updateDragStartPosition(e.clientX,e.clientY),((d||a)&&y||C)&&this.offsetElement(c+y,_+C)}},t.prototype.onResizeEnd=function(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var d={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(d)},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,d=this.position,a=d.x,i=d.y;this.config.calculateTopBuffer&&(t=this.config.calculateTopBuffer());var o=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:t}),s=o.movementX,l=o.movementY;this.offsetElement(a+s,i+l),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.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()},Ri([de("popupService")],t.prototype,"popupService",void 0),Ri([de("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Ri([de("dragService")],t.prototype,"dragService",void 0),t}(ze),Wi=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Fi=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Hi=function(e){function t(t){var d=e.call(this)||this;return d.filterNameKey=t,d.applyActive=!1,d.hidePopup=null,d.debouncePending=!1,d.appliedModel=null,d.buttonListeners=[],d}return Wi(t,e),t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new Ei(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new xi(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 d='\n
\n
\n ').concat(this.createBodyTemplate(),"\n
\n
");this.setTemplate(d,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.resetButtonsPanel()},t.prototype.updateParams=function(e){var d=this;this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.resetUiToActiveModel(this.getModel(),(function(){d.updateUiVisibility(),d.setupOnBtApplyDebounce()}))},t.prototype.resetButtonsPanel=function(){var e=this,t=this.providedFilterParams.buttons,d=t&&t.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(_a(this.eButtonsPanel),this.buttonListeners.forEach((function(e){return null===e||void 0===e?void 0:e()})),this.buttonListeners=[]):d&&(this.eButtonsPanel=document.createElement("div"),this.eButtonsPanel.classList.add("ag-filter-apply-panel")),d){var a=document.createDocumentFragment();ai(t).forEach((function(t){return function(t){var d,i;switch(t){case"apply":d=e.translate("applyFilter"),i=function(t){return e.onBtApply(!1,!1,t)};break;case"clear":d=e.translate("clearFilter"),i=function(){return e.onBtClear()};break;case"reset":d=e.translate("resetFilter"),i=function(){return e.onBtReset()};break;case"cancel":d=e.translate("cancelFilter"),i=function(t){e.onBtCancel(t)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var o=qa('').concat(d,"\n "));e.buttonListeners.push(e.addManagedListener(o,"click",i)),a.append(o)}(t)})),this.eButtonsPanel.append(a),this.getGui().appendChild(this.eButtonsPanel)}else this.eButtonsPanel&&ya(this.eButtonsPanel)},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=this,d=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),a=W(this.checkApplyDebounce.bind(this),d);this.onBtApplyDebounce=function(){e.debouncePending=!0,a()}},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.handleCancelEnd(e)}))},t.prototype.handleCancelEnd=function(e){this.providedFilterParams.closeOnApply&&this.close(e)},t.prototype.resetUiToActiveModel=function(e,t){var d=this,a=function(){d.onUiChanged(!1,"prevent"),null===t||void 0===t||t()};null!=e?this.setModelIntoUi(e).then(a):this.resetUiToDefaults().then(a)},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 d=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(d,t)},t.prototype.isModelValid=function(e){return!0},t.prototype.onFormSubmit=function(e){e.preventDefault()},t.prototype.onBtApply=function(e,t,d){if(void 0===e&&(e=!1),void 0===t&&(t=!1),d&&d.preventDefault(),this.applyModel(t?"rowDataUpdated":"ui")){this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t,source:"columnFilter"})}this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!t&&this.close(d)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var t,d=e,a=d&&d.key;"Enter"!==a&&"Space"!==a||(t={keyboardEvent:d}),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 d=this.isModelValid(this.getModelFromUi()),a=this.getRefElement("applyFilterButton");a&&ia(a,!d)}e&&!t||"immediately"===t?this.onBtApply(e):(this.applyActive||t)&&"debounce"!==t||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(null===e||void 0===e?void 0:e.container)},t.prototype.refreshFilterResizer=function(e){if(this.positionableFeature&&"toolPanel"!==e){var t="floatingFilter"===e,d=this.positionableFeature,a=this.gridOptionsService;t?(d.restoreLastSize(),d.setResizable(a.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}},t.prototype.afterGuiDetached=function(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)},t.getDebounceMs=function(e,d){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:d},t.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.refresh=function(e){return this.providedFilterParams=e,!0},t.prototype.destroy=function(){var t=this.getGui();t&&t.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),e.prototype.destroy.call(this)},t.prototype.translate=function(e){return this.localeService.getLocaleTextFunc()(e,Gi[e])},t.prototype.getCellValue=function(e){return this.providedFilterParams.getValue(e)},t.prototype.getPositionableElement=function(){return this.eFilterBody},Fi([de("rowModel")],t.prototype,"rowModel",void 0),Fi([Ti("eFilterBody")],t.prototype,"eFilterBody",void 0),Fi([Z],t.prototype,"postConstruct",null),t}(hi),Ni=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),ji=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},zi=function(e){function t(t,d){var a=e.call(this,d)||this;return a.labelSeparator="",a.labelAlignment="left",a.disabled=!1,a.label="",a.config=t||{},a}return Ni(t,e),t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,t=e.labelSeparator,d=e.label,a=e.labelWidth,i=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=d&&this.setLabel(d),null!=a&&this.setLabelWidth(a),this.setLabelAlignment(i||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){_a(this.eLabel),"string"===typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(da(this.eLabel,!1),Ft(this.eLabel,"presentation")):(da(this.eLabel,!0),Ft(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-".concat(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||Ba(this.eLabel,e),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return ia(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},ji([Z],t.prototype,"postConstruct",null),t}(hi),Ui=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Ki=function(e){function t(t,d,a){var i=e.call(this,t,d)||this;return i.className=a,i}return Ui(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className),this.refreshAriaLabelledBy()},t.prototype.refreshAriaLabelledBy=function(){var e=this.getAriaElement(),t=this.getLabelId();null!==zt(e)?Kt(e,""):Kt(e,null!==t&&void 0!==t?t:"")},t.prototype.setAriaLabel=function(e){return Ut(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this},t.prototype.onValueChange=function(e){var t=this;return this.addManagedListener(this,Je.EVENT_FIELD_VALUE_CHANGED,(function(){return e(t.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return va(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,t){return this.value===e||(this.previousValue=this.value,this.value=e,t||this.dispatchEvent({type:Je.EVENT_FIELD_VALUE_CHANGED})),this},t}(zi),Yi=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Qi=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},$i=function(e){function t(t){var d=e.call(this,t,(null===t||void 0===t?void 0:t.template)||'\n ',null===t||void 0===t?void 0:t.className)||this;if(d.isPickerDisplayed=!1,d.skipClick=!1,d.pickerGap=4,d.hideCurrentPicker=null,d.ariaRole=null===t||void 0===t?void 0:t.ariaRole,d.onPickerFocusIn=d.onPickerFocusIn.bind(d),d.onPickerFocusOut=d.onPickerFocusOut.bind(d),!t)return d;var a=t.pickerGap,i=t.maxPickerHeight,o=t.variableWidth,s=t.minPickerWidth,l=t.maxPickerWidth;return null!=a&&(d.pickerGap=a),d.variableWidth=!!o,null!=i&&d.setPickerMaxHeight(i),null!=s&&d.setPickerMinWidth(s),null!=l&&d.setPickerMaxWidth(l),d}return Yi(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setupAria();var t="ag-".concat(this.getCompId(),"-display");this.eDisplayField.setAttribute("id",t);var d=this.getAriaElement();this.addManagedListener(d,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(this.eLabel,"mousedown",this.onLabelOrWrapperMouseDown.bind(this)),this.addManagedListener(this.eWrapper,"mousedown",this.onLabelOrWrapperMouseDown.bind(this));var a=this.config.pickerIcon;if(a){var i=za(a,this.gridOptionsService);i&&this.eIcon.appendChild(i)}},t.prototype.setupAria=function(){var e=this.getAriaElement();e.setAttribute("tabindex",this.gridOptionsService.get("tabIndex").toString()),ed(e,!1),this.ariaRole&&Ft(e,this.ariaRole)},t.prototype.onLabelOrWrapperMouseDown=function(e){if(e){var t=this.getFocusableElement();if(t!==this.eWrapper&&(null===e||void 0===e?void 0:e.target)===t)return;e.preventDefault(),this.getFocusableElement().focus()}this.skipClick?this.skipClick=!1:this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())},t.prototype.onKeyDown=function(e){switch(e.key){case Ka.UP:case Ka.DOWN:case Ka.ENTER:case Ka.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case Ka.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker())}},t.prototype.showPicker=function(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());var e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)},t.prototype.renderAndPositionPicker=function(){var e=this,t=this.gridOptionsService.getDocument(),d=this.pickerComponent.getGui();this.gridOptionsService.get("suppressScrollWhenPopupsAreOpen")||(this.destroyMouseWheelFunc=this.addManagedListener(this.eventService,Je.EVENT_BODY_SCROLL,(function(){e.hidePicker()})));var a=this.localeService.getLocaleTextFunc(),i=this.config,o=i.pickerAriaLabelKey,s=i.pickerAriaLabelValue,l=i.modalPicker,m={modal:void 0===l||l,eChild:d,closeOnEsc:!0,closedCallback:function(){var d=t.activeElement===t.body;e.beforeHidePicker(),d&&e.isAlive()&&e.getFocusableElement().focus()},ariaLabel:a(o,s)},r=this.popupService.addPopup(m),u=this,n=u.maxPickerHeight,f=u.minPickerWidth,p=u.maxPickerWidth;u.variableWidth?(f&&(d.style.minWidth=f),d.style.width=Ga(ua(this.eWrapper)),p&&(d.style.maxWidth=p)):Ba(d,null!==p&&void 0!==p?p:ua(this.eWrapper));var c=null!==n&&void 0!==n?n:"".concat(la(this.popupService.getPopupParent()),"px");return d.style.setProperty("max-height",c),d.style.position="absolute",this.alignPickerToComponent(),r.hideFunc},t.prototype.alignPickerToComponent=function(){if(this.pickerComponent){var e=this.config.pickerType,t=this.pickerGap,d=this.gridOptionsService.get("enableRtl")?"right":"left";this.popupService.positionPopupByComponent({type:e,eventSource:this.eWrapper,ePopup:this.pickerComponent.getGui(),position:"under",alignSide:d,keepWithinBounds:!0,nudgeY:t})}},t.prototype.beforeHidePicker=function(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);var e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null},t.prototype.toggleExpandedStyles=function(e){this.isAlive()&&(ed(this.getAriaElement(),e),this.eWrapper.classList.toggle("ag-picker-expanded",e),this.eWrapper.classList.toggle("ag-picker-collapsed",!e))},t.prototype.onPickerFocusIn=function(){this.togglePickerHasFocus(!0)},t.prototype.onPickerFocusOut=function(e){var t;(null===(t=this.pickerComponent)||void 0===t?void 0:t.getGui().contains(e.relatedTarget))||this.togglePickerHasFocus(!1)},t.prototype.togglePickerHasFocus=function(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)},t.prototype.hidePicker=function(){this.hideCurrentPicker&&this.hideCurrentPicker()},t.prototype.setInputWidth=function(e){return Ba(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},t.prototype.setPickerGap=function(e){return this.pickerGap=e,this},t.prototype.setPickerMinWidth=function(e){return"number"===typeof e&&(e="".concat(e,"px")),this.minPickerWidth=null==e?void 0:e,this},t.prototype.setPickerMaxWidth=function(e){return"number"===typeof e&&(e="".concat(e,"px")),this.maxPickerWidth=null==e?void 0:e,this},t.prototype.setPickerMaxHeight=function(e){return"number"===typeof e&&(e="".concat(e,"px")),this.maxPickerHeight=null==e?void 0:e,this},t.prototype.destroy=function(){this.hidePicker(),e.prototype.destroy.call(this)},Qi([de("popupService")],t.prototype,"popupService",void 0),Qi([Ti("eLabel")],t.prototype,"eLabel",void 0),Qi([Ti("eWrapper")],t.prototype,"eWrapper",void 0),Qi([Ti("eDisplayField")],t.prototype,"eDisplayField",void 0),Qi([Ti("eIcon")],t.prototype,"eIcon",void 0),t}(Ki),Xi=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Ji=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Zi=function(e){function t(t){void 0===t&&(t="default");var d=e.call(this,'
'))||this;return d.cssIdentifier=t,d.options=[],d.itemEls=[],d}return Xi(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 Ka.ENTER:if(this.highlightedEl){var d=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(d)}else this.setValue(this.getValue());break;case Ka.DOWN:case Ka.UP:var a=t===Ka.DOWN,i=void 0;if(e.preventDefault(),this.highlightedEl){var o=this.itemEls.indexOf(this.highlightedEl)+(a?1:-1);o=Math.min(Math.max(o,0),this.itemEls.length-1),i=this.itemEls[o]}else i=this.itemEls[a?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,d=st(e.text||t);return this.options.push({value:t,text:d}),this.renderOption(t,d),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach((function(t,d){ad(t,d+1),dd(t,e.length)}))},t.prototype.renderOption=function(e,t){var d=this,a=document.createElement("div");Ft(a,"option"),a.classList.add("ag-list-item","ag-".concat(this.cssIdentifier,"-list-item")),a.innerHTML="".concat(t,""),a.tabIndex=-1,this.itemEls.push(a),this.addManagedListener(a,"mouseover",(function(){return d.highlightItem(a)})),this.addManagedListener(a,"mouseleave",(function(){return d.clearHighlighted()})),this.addManagedListener(a,"click",(function(){return d.setValue(e)})),this.getGui().appendChild(a)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var d=this.options.findIndex((function(t){return t.value===e}));if(-1!==d){var a=this.options[d];this.value=a.value,this.displayValue=null!=a.text?a.text:a.value,this.highlightItem(this.itemEls[d]),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){Ca(e)&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(t.ACTIVE_CLASS),fd(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&Ca(this.highlightedEl)&&(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),fd(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:Je.EVENT_FIELD_VALUE_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",Ji([Z],t.prototype,"init",null),t}(hi),eo=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),to=function(){return to=Object.assign||function(e){for(var t,d=1,a=arguments.length;d=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},so=function(e){function t(t,d,a,i){void 0===a&&(a="text"),void 0===i&&(i="input");var o=e.call(this,t,'\n
\n
\n \n
"),d)||this;return o.inputType=a,o.displayFieldTag=i,o}return io(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add("".concat(this.className,"-label")),this.eWrapper.classList.add("".concat(this.className,"-input-wrapper")),this.eInput.classList.add("".concat(this.className,"-input")),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-".concat(this.getCompId(),"-input");var t=this.config,d=t.width,a=t.value;null!=d&&this.setWidth(d),null!=a&&this.setValue(a),this.addInputListeners(),this.activateTabIndex([this.eInput])},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",(function(t){return e.setValue(t.target.value)}))},t.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return Ba(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){return this.eInput.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return Ea(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return Ut(this.eInput,e),this.refreshAriaLabelledBy(),this},t.prototype.setDisabled=function(t){return ia(this.eInput,t),e.prototype.setDisabled.call(this,t)},t.prototype.setAutoComplete=function(e){if(!0===e)Ea(this.eInput,"autocomplete",null);else{var t="string"===typeof e?e:"off";Ea(this.eInput,"autocomplete",t)}return this},oo([Ti("eLabel")],t.prototype,"eLabel",void 0),oo([Ti("eWrapper")],t.prototype,"eWrapper",void 0),oo([Ti("eInput")],t.prototype,"eInput",void 0),t}(Ki),lo=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),mo=function(e){function t(t,d,a){void 0===d&&(d="ag-checkbox"),void 0===a&&(a="checkbox");var i=e.call(this,t,d,a)||this;return i.labelAlignment="right",i.selected=!1,i.readOnly=!1,i.passive=!1,i}return lo(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,t,d){this.dispatchEvent({type:Je.EVENT_FIELD_VALUE_CHANGED,selected:e,previousValue:t,event:d});var a=this.getInputElement(),i={type:Je.EVENT_CHECKBOX_CHANGED,id:a.id,name:a.name,selected:e,previousValue:t};this.eventService.dispatchEvent(i)},t.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var t=this.isSelected(),d=this.selected=e.target.checked;this.refreshSelectedClass(d),this.dispatchChange(d,t,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)},t}(so),ro=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),uo=function(e){function t(t){return e.call(this,t,"ag-radio-button","radio")||this}return ro(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,Je.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}(mo),no=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),fo=function(e,t){var d="function"===typeof Symbol&&e[Symbol.iterator];if(!d)return e;var a,i,o=d.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},po=function(e,t,d){if(d||2===arguments.length)for(var a,i=0,o=t.length;i=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(d,a){0===a?d.setValue(e,!0):d.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 d=this;if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var a,i=!e.operator,o=!t.operator;if(!i&&o||i&&!o)return!1;if(i){var s=e,l=t;a=this.areSimpleModelsEqual(s,l)}else{var m=e,r=t;a=m.operator===r.operator&&Pe(m.conditions,r.conditions,(function(e,t){return d.areSimpleModelsEqual(e,t)}))}return a},t.prototype.shouldRefresh=function(e){var t,d,a,i=this.getModel(),o=i?null!==(t=i.conditions)&&void 0!==t?t:[i]:null,s=null!==(a=null===(d=e.filterOptions)||void 0===d?void 0:d.map((function(e){return"string"===typeof e?e:e.displayKey})))&&void 0!==a?a:this.getDefaultFilterOptions();return!(o&&!o.every((function(e){return void 0!==s.find((function(t){return t===e.type}))})))&&!("number"===typeof e.maxNumConditions&&o&&o.length>e.maxNumConditions)},t.prototype.refresh=function(t){return!!this.shouldRefresh(t)&&(!!e.prototype.refresh.call(this,t)&&(this.setParams(t),this.removeConditionsAndOperators(0),this.createOption(),this.setModel(this.getModel()),!0))},t.prototype.setModelIntoUi=function(e){var t=this;if(e.operator){var d=e;d.conditions||(d.conditions=[d.condition1,d.condition2]);var a=this.validateAndUpdateConditions(d.conditions),i=this.getNumConditions();if(ai)for(var o=i;o1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(l.type,!0),this.setConditionIntoUi(l,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),ni.resolve()},t.prototype.validateAndUpdateConditions=function(e){var t=e.length;return t>this.maxNumConditions&&(e.splice(this.maxNumConditions),M('Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.'),t=this.maxNumConditions),t},t.prototype.doesFilterPass=function(e){var t,d=this,a=this.getModel();if(null==a)return!0;var i=a.operator,o=[];if(i){var s=a;o.push.apply(o,po([],fo(null!==(t=s.conditions)&&void 0!==t?t:[]),!1))}else o.push(a);return o[i&&"OR"===i?"some":"every"]((function(t){return d.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 Ii,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")},t.prototype.setNumConditions=function(e){var t,d;null!=e.suppressAndOrCondition&&M('Since v29.2 "filterParams.suppressAndOrCondition" is deprecated. Use "filterParams.maxNumConditions = 1" instead.'),null!=e.alwaysShowBothConditions&&M('Since v29.2 "filterParams.alwaysShowBothConditions" is deprecated. Use "filterParams.numAlwaysVisibleConditions = 2" instead.'),this.maxNumConditions=null!==(t=e.maxNumConditions)&&void 0!==t?t:e.suppressAndOrCondition?1:2,this.maxNumConditions<1&&(M('"filterParams.maxNumConditions" must be greater than or equal to zero.'),this.maxNumConditions=1),this.numAlwaysVisibleConditions=null!==(d=e.numAlwaysVisibleConditions)&&void 0!==d?d:e.alwaysShowBothConditions?2:1,this.numAlwaysVisibleConditions<1&&(M('"filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.'),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(M('"filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".'),this.numAlwaysVisibleConditions=this.maxNumConditions)},t.prototype.createOption=function(){var e=this,t=this.createManagedBean(new ao);this.eTypes.push(t),t.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(t.getGui());var d=this.createValueElement();this.eConditionBodies.push(d),this.eFilterBody.appendChild(d),this.putOptionsIntoDropdown(t),this.resetType(t);var a=this.getNumConditions()-1;this.forEachPositionInput(a,(function(t){return e.resetInput(t)})),this.addChangedListeners(t,a)},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"),d=this.createJoinOperator(this.eJoinOperatorsOr,e,"or");this.eFilterBody.appendChild(e);var a=this.eJoinOperatorPanels.length-1,i=this.joinOperatorId++;this.resetJoinOperatorAnd(t,a,i),this.resetJoinOperatorOr(d,a,i),this.isReadOnly()||(t.onValueChange(this.listener),d.onValueChange(this.listener))},t.prototype.createJoinOperator=function(e,t,d){var a=this.createManagedBean(new uo);return e.push(a),a.addCssClass("ag-filter-condition-operator"),a.addCssClass("ag-filter-condition-operator-".concat(d)),t.appendChild(a.getGui()),a},t.prototype.getDefaultJoinOperator=function(e){return"AND"===e||"OR"===e?e:"AND"},t.prototype.createFilterListOptions=function(){var e=this,t=this.optionsFactory.getFilterOptions();this.filterListOptions=t.map((function(t){return"string"===typeof t?e.createBoilerplateListOption(t):e.createCustomListOption(t)}))},t.prototype.putOptionsIntoDropdown=function(e){this.filterListOptions.forEach((function(t){e.addOption(t)})),e.setDisabled(this.filterListOptions.length<=1)},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var t=e.displayKey,d=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:d?this.localeService.getLocaleTextFunc()(d.displayKey,d.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,d=!0,a=0;a0&&this.removeConditionsAndOperators(o,s),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=t},t.prototype.updateConditionStatusesAndValues=function(e,t){var d=this;this.eTypes.forEach((function(t,a){var i=d.isConditionDisabled(a,e);t.setDisabled(i||d.filterListOptions.length<=1),1===a&&(ia(d.eJoinOperatorPanels[0],i),d.eJoinOperatorsAnd[0].setDisabled(i),d.eJoinOperatorsOr[0].setDisabled(i))})),this.eConditionBodies.forEach((function(e,t){da(e,d.isConditionBodyVisible(t))}));var a="OR"===(null!==t&&void 0!==t?t:this.getJoinOperator());this.eJoinOperatorsAnd.forEach((function(e,t){e.setValue(!a,!0)})),this.eJoinOperatorsOr.forEach((function(e,t){e.setValue(a,!0)})),this.forEachInput((function(t,a,i,o){d.setElementDisplayed(t,a=this.getNumConditions())){this.removeComponents(this.eTypes,e,t),this.removeElements(this.eConditionBodies,e,t),this.removeValueElements(e,t);var d=Math.max(e-1,0);this.removeElements(this.eJoinOperatorPanels,d,t),this.removeComponents(this.eJoinOperatorsAnd,d,t),this.removeComponents(this.eJoinOperatorsOr,d,t)}},t.prototype.removeElements=function(e,t,d){this.removeItems(e,t,d).forEach((function(e){return ya(e)}))},t.prototype.removeComponents=function(e,t,d){var a=this;this.removeItems(e,t,d).forEach((function(e){ya(e.getGui()),a.destroyBean(e)}))},t.prototype.removeItems=function(e,t,d){return null==d?e.splice(t):e.splice(t,d)},t.prototype.afterGuiAttached=function(t){if(e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),!(null===t||void 0===t?void 0:t.suppressFocus))if(this.isReadOnly())this.eFilterBody.focus();else{var d=this.getInputs(0)[0];if(!d)return;d instanceof so&&d.getInputElement().focus()}},t.prototype.afterGuiDetached=function(){e.prototype.afterGuiDetached.call(this);var t=this.getModel();this.resetUiToActiveModel(t);for(var d=-1,a=-1,i=!1,o=this.getJoinOperator(),s=this.getNumConditions()-1;s>=0;s--)if(this.isConditionUiComplete(s))-1===d&&(d=s,a=s);else{var l=s=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(s-1)||l)&&(this.removeConditionsAndOperators(s,1),i=!0,l&&a--)}var m=!1;this.getNumConditions()1?"inRangeStart":0===a?"filterOoo":"inRangeEnd",l=0===a&&o>1?t("ariaFilterFromValue","Filter from value"):0===a?t("ariaFilterValue","Filter Value"):t("ariaFilterToValue","Filter to Value");d.setInputPlaceholder(e.getPlaceholderText(s,i)),d.setInputAriaLabel(l)}}))},t.prototype.setElementValue=function(e,t,d){e instanceof so&&e.setValue(null!=t?String(t):null,!0)},t.prototype.setElementDisplayed=function(e,t){e instanceof hi&&da(e.getGui(),t)},t.prototype.setElementDisabled=function(e,t){e instanceof hi&&ia(e.getGui(),t)},t.prototype.attachElementOnChange=function(e,t){e instanceof so&&e.onValueChange(t)},t.prototype.forEachInput=function(e){var t=this;this.getConditionTypes().forEach((function(d,a){t.forEachPositionTypeInput(a,d,e)}))},t.prototype.forEachPositionInput=function(e,t){var d=this.getConditionType(e);this.forEachPositionTypeInput(e,d,t)},t.prototype.forEachPositionTypeInput=function(e,t,d){for(var a=this.getNumberOfInputs(t),i=this.getInputs(e),o=0;ot+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;t0)},t.prototype.resetInput=function(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())},t.prototype.setConditionIntoUi=function(e,t){var d=this,a=this.mapValuesFromModel(e);this.forEachInput((function(e,i,o,s){o===t&&d.setElementValue(e,null!=a[i]?a[i]:null)}))},t.prototype.setValueFromFloatingFilter=function(e){var t=this;this.forEachInput((function(d,a,i,o){t.setElementValue(d,0===a&&0===i?e:null,!0)}))},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(e,t){var d=this;this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,(function(e){d.attachElementOnChange(e,d.listener)})))},t.prototype.individualConditionPasses=function(e,t){var d=this.getCellValue(e.node),a=this.mapValuesFromModel(t),i=this.optionsFactory.getCustomOption(t.type),o=this.evaluateCustomFilter(i,a,d);return null!=o?o:null==d?this.evaluateNullValue(t.type):this.evaluateNonNullValue(a,d,t,e)},t.prototype.evaluateCustomFilter=function(e,t,d){if(null!=e){var a=e.predicate;return null==a||t.some((function(e){return null==e}))?void 0:a(t,d)}},t.prototype.isBlank=function(e){return null==e||"string"===typeof e&&0===e.trim().length},t.prototype.hasInvalidInputs=function(){return!1},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}(Hi),yo=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Co=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yo(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,d,a){var i=this.comparator(),o=null!=e[0]?i(e[0],d):0;switch(a.type){case t.EQUALS:return 0===o;case t.NOT_EQUAL:return 0!==o;case t.GREATER_THAN:return o>0;case t.GREATER_THAN_OR_EQUAL:return o>=0;case t.LESS_THAN:return o<0;case t.LESS_THAN_OR_EQUAL:return o<=0;case t.IN_RANGE:var s=i(e[1],d);return this.scalarFilterParams.inRangeInclusive?o>=0&&s<=0:o>0&&s<0;case t.BLANK:return this.isBlank(d);case t.NOT_BLANK:return!this.isBlank(d);default:return console.warn('AG Grid: Unexpected type of filter "'+a.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(_o),qo=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),bo=function(){return bo=Object.assign||function(e){for(var t,d=1,a=arguments.length;d=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},ho=1/0,So=function(e){function t(t,d,a){var i=e.call(this,d,a)||this;return i.dateFilterParams=t,i}return qo(t,e),t.prototype.conditionToString=function(e,t){var d=e.type,a=(t||{}).numberOfInputs,i=d==_o.IN_RANGE||2===a,o=Kd(e.dateFrom),s=Kd(e.dateTo),l=this.dateFilterParams.inRangeFloatingFilterDateFormat;if(i){var m=null!==o?Ud(o,l):"null",r=null!==s?Ud(s,l):"null";return"".concat(m,"-").concat(r)}return null!=o?Ud(o,l):"".concat(d)},t.prototype.updateParams=function(t){e.prototype.updateParams.call(this,t),this.dateFilterParams=t.dateFilterParams},t}(co),To=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=ho,t.minValidDate=null,t.maxValidDate=null,t}return qo(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||{},d=t.dateFrom,a=t.dateTo,i=t.type;return[d&&Kd(d)||null,a&&Kd(a)||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||te?1:0},t.prototype.setParams=function(t){this.dateFilterParams=t,e.prototype.setParams.call(this,t);var d=function(e,d){if(null!=t[e]){if(!isNaN(t[e]))return null==t[e]?d:Number(t[e]);console.warn("AG Grid: DateFilter ".concat(e," is not a number"))}return d};this.minValidYear=d("minValidYear",1e3),this.maxValidYear=d("maxValidYear",ho),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),t.minValidDate?this.minValidDate=t.minValidDate instanceof Date?t.minValidDate:Kd(t.minValidDate):this.minValidDate=null,t.maxValidDate?this.maxValidDate=t.maxValidDate instanceof Date?t.maxValidDate:Kd(t.maxValidDate):this.maxValidDate=null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&console.warn("AG Grid: DateFilter minValidDate should be <= maxValidDate"),this.filterModelFormatter=new So(this.dateFilterParams,this.localeService,this.optionsFactory)},t.prototype.createDateCompWrapper=function(e){var t=this,d=new vi(this.getContext(),this.userComponentFactory,{onDateChanged:function(){return t.onUiChanged()},filterParams:this.dateFilterParams},e);return this.addDestroyFunc((function(){return d.destroy()})),d},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,d,a){var i=document.createElement("div");i.classList.add("ag-filter-".concat(a)),i.classList.add("ag-filter-date-".concat(a)),t.push(i),e.appendChild(i),d.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,d){this.removeItems(e,t,d).forEach((function(e){return e.destroy()}))},t.prototype.isValidDateValue=function(e){if(null===e)return!1;if(this.minValidDate){if(ethis.maxValidDate)return!1}else if(e.getUTCFullYear()>this.maxValidYear)return!1;return!0},t.prototype.isConditionUiComplete=function(t){var d=this;if(!e.prototype.isConditionUiComplete.call(this,t))return!1;var a=!0;return this.forEachInput((function(e,i,o,s){o!==t||!a||i>=s||(a=a&&d.isValidDateValue(e.getDate()))})),a},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),d={},a=this.getValues(e);return a.length>0&&(d.dateFrom=jd(a[0])),a.length>1&&(d.dateTo=jd(a[1])),bo({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},d)},t.prototype.resetPlaceholder=function(){var e=this.localeService.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),d=e("ariaFilterValue","Filter Value");this.forEachInput((function(e){e.setInputPlaceholder(t),e.setInputAriaLabel(d)}))},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,d,a,i){d=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},vo=function(e){function t(){return e.call(this,'\n ')||this}return Do(t,e),t.prototype.getDefaultFilterOptions=function(){return To.DEFAULT_FILTER_OPTIONS},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.filterParams=t.filterParams,this.createDateComponent(),this.filterModelFormatter=new So(this.filterParams,this.localeService,this.optionsFactory);var d=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(d("ariaDateFilterInput","Date Filter Input"))},t.prototype.onParamsUpdated=function(t){e.prototype.onParamsUpdated.call(this,t),this.params=t,this.filterParams=t.filterParams,this.updateDateComponent(),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams}),this.updateCompOnModelChange(t.currentParentModel())},t.prototype.updateCompOnModelChange=function(e){var t=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){if(e){var d=e;this.dateComp.setDate(Kd(d.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)},t.prototype.setEditable=function(e){da(this.eDateWrapper,e),da(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,d){this.isEventFromFloatingFilter(d)||this.isEventFromDataChange(d)||(e.prototype.setLastTypeFromModel.call(this,t),this.updateCompOnModelChange(t))},t.prototype.onDateChanged=function(){var e=this,t=jd(this.dateComp.getDate());this.params.parentFilterInstance((function(d){if(d){var a=Kd(t);d.onFloatingFilterChanged(e.getLastType()||null,a)}}))},t.prototype.getDateComponentParams=function(){var e=Hi.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs());return{onDateChanged:W(this.onDateChanged.bind(this),e),filterParams:this.params.column.getColDef().filterParams}},t.prototype.createDateComponent=function(){var e=this;this.dateComp=new vi(this.getContext(),this.userComponentFactory,this.getDateComponentParams(),this.eDateWrapper),this.addDestroyFunc((function(){return e.dateComp.destroy()}))},t.prototype.updateDateComponent=function(){var e=this.getDateComponentParams(),t=this.gridOptionsService,d=t.api,a=t.columnApi,i=t.context;e.api=d,e.columnApi=a,e.context=i,this.dateComp.updateParams(e)},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},Bo([de("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Bo([Ti("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),Bo([Ti("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(Oo),Io=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Go=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Mo=function(e,t){var d="function"===typeof Symbol&&e[Symbol.iterator];if(!d)return e;var a,i,o=d.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},wo=function(e){function t(){return e.call(this,'\n
\n \n
')||this}return Io(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var t=this;this.params=e,this.setParams(e);var d=this.gridOptionsService.getDocument(),a=this.eDateInput.getInputElement();this.addManagedListener(a,"mousedown",(function(){t.eDateInput.isDisabled()||t.usingSafariDatePicker||a.focus()})),this.addManagedListener(a,"input",(function(e){e.target===d.activeElement&&(t.eDateInput.isDisabled()||t.params.onDateChanged())}))},t.prototype.setParams=function(e){var t=this.eDateInput.getInputElement(),d=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=d&&gd(),t.type=d?"date":"text";var a=e.filterParams||{},i=a.minValidYear,o=a.maxValidYear,s=a.minValidDate,l=a.maxValidDate;if(s&&i&&M("DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored."),l&&o&&M("DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored."),s&&l){var m=Mo([s,l].map((function(e){return e instanceof Date?e:Kd(e)})),2),r=m[0],u=m[1];r&&u&&r.getTime()>u.getTime()&&M("DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.")}s?s instanceof Date?t.min=Ud(s):t.min=s:i&&(t.min="".concat(i,"-01-01")),l?l instanceof Date?t.max=Ud(l):t.max=l:o&&(t.max="".concat(o,"-12-31"))},t.prototype.onParamsUpdated=function(e){this.params=e,this.setParams(e)},t.prototype.getDate=function(){return Kd(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(jd(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:Dd()||Bd()||gd()&&Od()>=14.1},Go([Ti("eDateInput")],t.prototype,"eDateInput",void 0),t}(hi),Lo=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Eo=function(e){function t(t,d,a){return void 0===d&&(d="ag-text-field"),void 0===a&&(a="text"),e.call(this,t,d,a)||this}return Lo(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(t,d){return this.eInput.value!==t&&(this.eInput.value=i(t)?t:""),e.prototype.setValue.call(this,t,d)},t.prototype.setStartValue=function(e){this.setValue(e,!0)},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp("[".concat(this.config.allowedCharPattern,"]"));this.addManagedListener(this.eInput,"keydown",(function(t){Ya(t)&&t.key&&!e.test(t.key)&&t.preventDefault()})),this.addManagedListener(this.eInput,"paste",(function(t){var d,a=null===(d=t.clipboardData)||void 0===d?void 0:d.getData("text");a&&a.split("").some((function(t){return!e.test(t)}))&&t.preventDefault()}))},t}(so),Vo=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Ro=function(e){function t(t){return e.call(this,t,"ag-number-field","number")||this}return Vo(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),d=isNaN(e)?"":t.normalizeValue(e.toString());t.value!==d&&t.setValue(d)})),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"";null!=this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&tthis.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e,t){if(null==this.precision)return e;if(t){var d=parseFloat(e).toFixed(this.precision);return parseFloat(d).toString()}var a=String(e).split(".");if(a.length>1){if(a[1].length<=this.precision)return e;if(this.precision>0)return"".concat(a[0],".").concat(a[1].slice(0,this.precision))}return a[0]},t.prototype.setMin=function(e){return this.min===e||(this.min=e,Ea(this.eInput,"min",e)),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,Ea(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,Ea(this.eInput,"step",e)),this},t.prototype.setValue=function(t,d){var a=this;return this.setValueOrInputValue((function(t){return e.prototype.setValue.call(a,t,d)}),(function(){return a}),t)},t.prototype.setStartValue=function(t){var d=this;return this.setValueOrInputValue((function(t){return e.prototype.setValue.call(d,t,!0)}),(function(e){d.eInput.value=e}),t)},t.prototype.setValueOrInputValue=function(e,t,d){if(i(d)){var a=this.isScientificNotation(d);if(a&&this.eInput.validity.valid)return e(d);if(!a)a=(d=this.adjustPrecision(d))!=this.normalizeValue(d);if(a)return t(d)}return e(d)},t.prototype.getValue=function(){if(this.eInput.validity.valid){var t=this.eInput.value;return this.isScientificNotation(t)?this.adjustPrecision(t,!0):e.prototype.getValue.call(this)}},t.prototype.isScientificNotation=function(e){return"string"===typeof e&&e.includes("e")},t}(Eo),ko=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Ao=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ko(t,e),t.prototype.conditionToString=function(e,t){var d=(t||{}).numberOfInputs;return e.type==_o.IN_RANGE||2===d?"".concat(this.formatValue(e.filter),"-").concat(this.formatValue(e.filterTo)):null!=e.filter?this.formatValue(e.filter):"".concat(e.type)},t}(co);function xo(e){var t=(null!==e&&void 0!==e?e:{}).allowedCharPattern;return null!==t&&void 0!==t?t:null}var Wo,Fo,Ho=function(e){function t(){var t=e.call(this,"numberFilter")||this;return t.eValuesFrom=[],t.eValuesTo=[],t}return ko(t,e),t.prototype.refresh=function(t){return this.numberFilterParams.allowedCharPattern===t.allowedCharPattern&&e.prototype.refresh.call(this,t)},t.prototype.mapValuesFromModel=function(e){var t=e||{},d=t.filter,a=t.filterTo,i=t.type;return[this.processValue(d),this.processValue(a)].slice(0,this.getNumberOfInputs(i))},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.comparator=function(){return function(e,t){return e===t?0:e0&&(d.filter=a[0]),a.length>1&&(d.filterTo=a[1]),d},t.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},t.prototype.getModelAsString=function(e){var t;return null!==(t=this.filterModelFormatter.getModelAsString(e))&&void 0!==t?t:""},t.prototype.hasInvalidInputs=function(){var e=!1;return this.forEachInput((function(t){t.getInputElement().validity.valid||(e=!0)})),e},t.DEFAULT_FILTER_OPTIONS=[Co.EQUALS,Co.NOT_EQUAL,Co.GREATER_THAN,Co.GREATER_THAN_OR_EQUAL,Co.LESS_THAN,Co.LESS_THAN_OR_EQUAL,Co.IN_RANGE,Co.BLANK,Co.NOT_BLANK],t}(Co),No=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),jo=function(){return jo=Object.assign||function(e){for(var t,d=1,a=arguments.length;d0&&(d.filter=a[0]),a.length>1&&(d.filterTo=a[1]),d},t.prototype.getFilterType=function(){return"text"},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getInputs=function(e){return e>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[e],this.eValuesTo[e]]},t.prototype.getValues=function(e){return this.getValuesWithSideEffects(e,!1)},t.prototype.getValuesWithSideEffects=function(e,d){var i=this,o=[];return this.forEachPositionInput(e,(function(e,s,l,m){var r;if(s=0},t.prototype.evaluateNonNullValue=function(e,t,d,a){var i=this,o=e.map((function(e){return i.formatter(e)}))||[],s=this.formatter(t),l=this.textFilterParams,m=l.api,r=l.colDef,u=l.column,n=l.columnApi,f=l.context,p=l.textFormatter;if(d.type===_o.BLANK)return this.isBlank(t);if(d.type===_o.NOT_BLANK)return!this.isBlank(t);var c={api:m,colDef:r,column:u,columnApi:n,context:f,node:a.node,data:a.data,filterOption:d.type,value:s,textFormatter:p};return o.some((function(e){return i.matcher(jo(jo({},c),{filterText:e}))}))},t.prototype.getModelAsString=function(e){var t;return null!==(t=this.filterModelFormatter.getModelAsString(e))&&void 0!==t?t:""},t.DEFAULT_FILTER_OPTIONS=[_o.CONTAINS,_o.NOT_CONTAINS,_o.EQUALS,_o.NOT_EQUAL,_o.STARTS_WITH,_o.ENDS_WITH,_o.BLANK,_o.NOT_BLANK],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_MATCHER=function(e){var d=e.filterOption,a=e.value,i=e.filterText;if(null==i)return!1;switch(d){case t.CONTAINS:return a.indexOf(i)>=0;case t.NOT_CONTAINS:return a.indexOf(i)<0;case t.EQUALS:return a===i;case t.NOT_EQUAL:return a!=i;case t.STARTS_WITH:return 0===a.indexOf(i);case t.ENDS_WITH:var o=a.lastIndexOf(i);return o>=0&&o===a.length-i.length;default:return!1}},t}(_o),Ko=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Yo=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Qo=function(e){function t(t){var d=e.call(this)||this;return d.params=t,d.valueChangedListener=function(){},d}return Ko(t,e),t.prototype.setupGui=function(e){var t,d=this;this.eFloatingFilterTextInput=this.createManagedBean(new Eo(null===(t=this.params)||void 0===t?void 0:t.config));var a=this.eFloatingFilterTextInput.getGui();e.appendChild(a),this.addManagedListener(a,"input",(function(e){return d.valueChangedListener(e)})),this.addManagedListener(a,"keydown",(function(e){return d.valueChangedListener(e)}))},t.prototype.setEditable=function(e){this.eFloatingFilterTextInput.setDisabled(!e)},t.prototype.setAutoComplete=function(e){this.eFloatingFilterTextInput.setAutoComplete(e)},t.prototype.getValue=function(){return this.eFloatingFilterTextInput.getValue()},t.prototype.setValue=function(e,t){this.eFloatingFilterTextInput.setValue(e,t)},t.prototype.setValueChangedListener=function(e){this.valueChangedListener=e},t.prototype.setParams=function(e){this.setAriaLabel(e.ariaLabel),void 0!==e.autoComplete&&this.setAutoComplete(e.autoComplete)},t.prototype.setAriaLabel=function(e){this.eFloatingFilterTextInput.setInputAriaLabel(e)},t}(ze),$o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ko(t,e),t.prototype.postConstruct=function(){this.setTemplate('\n \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.setupFloatingFilterInputService(t),e.prototype.init.call(this,t),this.setTextInputParams(t)},t.prototype.setupFloatingFilterInputService=function(e){this.floatingFilterInputService=this.createFloatingFilterInputService(e),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer)},t.prototype.setTextInputParams=function(e){var t;this.params=e;var d=null!==(t=e.browserAutoComplete)&&void 0!==t&&t;if(this.floatingFilterInputService.setParams({ariaLabel:this.getAriaLabel(e),autoComplete:d}),this.applyActive=Hi.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var a=Hi.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),i=W(this.syncUpWithParentFilter.bind(this),a);this.floatingFilterInputService.setValueChangedListener(i)}},t.prototype.onParamsUpdated=function(t){e.prototype.onParamsUpdated.call(this,t),this.setTextInputParams(t)},t.prototype.recreateFloatingFilterInputService=function(e){var t=this.floatingFilterInputService.getValue();_a(this.eFloatingFilterInputContainer),this.destroyBean(this.floatingFilterInputService),this.setupFloatingFilterInputService(e),this.floatingFilterInputService.setValue(t,!0)},t.prototype.getAriaLabel=function(e){var t=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),d=this.localeService.getLocaleTextFunc();return"".concat(t," ").concat(d("ariaFilterInput","Filter Input"))},t.prototype.syncUpWithParentFilter=function(e){var t=this,d=e.key===Ka.ENTER;if(!this.applyActive||d){var a=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(a=Uo.trimInput(a),this.floatingFilterInputService.setValue(a,!0)),this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType()||null,a||null)}))}},t.prototype.setEditable=function(e){this.floatingFilterInputService.setEditable(e)},Yo([de("columnModel")],t.prototype,"columnModel",void 0),Yo([Ti("eFloatingFilterInputContainer")],t.prototype,"eFloatingFilterInputContainer",void 0),Yo([Z],t.prototype,"postConstruct",null),t}(Oo),Xo=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Jo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.valueChangedListener=function(){},t.numberInputActive=!0,t}return Xo(t,e),t.prototype.setupGui=function(e){var t=this;this.eFloatingFilterNumberInput=this.createManagedBean(new Ro),this.eFloatingFilterTextInput=this.createManagedBean(new Eo),this.eFloatingFilterTextInput.setDisabled(!0);var d=this.eFloatingFilterNumberInput.getGui(),a=this.eFloatingFilterTextInput.getGui();e.appendChild(d),e.appendChild(a),this.setupListeners(d,(function(e){return t.valueChangedListener(e)})),this.setupListeners(a,(function(e){return t.valueChangedListener(e)}))},t.prototype.setEditable=function(e){this.numberInputActive=e,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)},t.prototype.setAutoComplete=function(e){this.eFloatingFilterNumberInput.setAutoComplete(e),this.eFloatingFilterTextInput.setAutoComplete(e)},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.setValueChangedListener=function(e){this.valueChangedListener=e},t.prototype.setupListeners=function(e,t){this.addManagedListener(e,"input",t),this.addManagedListener(e,"keydown",t)},t.prototype.setParams=function(e){this.setAriaLabel(e.ariaLabel),void 0!==e.autoComplete&&this.setAutoComplete(e.autoComplete)},t.prototype.setAriaLabel=function(e){this.eFloatingFilterNumberInput.setInputAriaLabel(e),this.eFloatingFilterTextInput.setInputAriaLabel(e)},t}(ze),Zo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xo(t,e),t.prototype.init=function(t){var d;e.prototype.init.call(this,t),this.filterModelFormatter=new Ao(this.localeService,this.optionsFactory,null===(d=t.filterParams)||void 0===d?void 0:d.numberFormatter)},t.prototype.onParamsUpdated=function(t){xo(t.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(t),e.prototype.onParamsUpdated.call(this,t),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},t.prototype.getDefaultFilterOptions=function(){return Ho.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(e){return this.allowedCharPattern=xo(e.filterParams),this.allowedCharPattern?this.createManagedBean(new Qo({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new Jo)},t}($o),es=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),ts=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return es(t,e),t.prototype.init=function(t){e.prototype.init.call(this,t),this.filterModelFormatter=new zo(this.localeService,this.optionsFactory)},t.prototype.onParamsUpdated=function(t){e.prototype.onParamsUpdated.call(this,t),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},t.prototype.getDefaultFilterOptions=function(){return Uo.DEFAULT_FILTER_OPTIONS},t.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},t.prototype.createFloatingFilterInputService=function(){return this.createManagedBean(new Qo)},t}($o),ds=function(){function e(e,t){void 0===t&&(t=!1);var d=this;this.destroyFuncs=[],this.touching=!1,this.eventService=new re,this.eElement=e,this.preventMouseClick=t;var a=this.onTouchStart.bind(this),i=this.onTouchMove.bind(this),o=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",a,{passive:!0}),this.eElement.addEventListener("touchmove",i,{passive:!0}),this.eElement.addEventListener("touchend",o,{passive:!1}),this.destroyFuncs.push((function(){d.eElement.removeEventListener("touchstart",a,{passive:!0}),d.eElement.removeEventListener("touchmove",i,{passive:!0}),d.eElement.removeEventListener("touchend",o,{passive:!1})}))}return e.prototype.getActiveTouch=function(e){for(var t=0;t0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var d={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(d),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}(),as=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),is=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},os=function(e){function t(d){var a=e.call(this)||this;return d||a.setTemplate(t.TEMPLATE),a}return as(t,e),t.prototype.attachCustomElements=function(e,t,d,a,i){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=d,this.eSortMixed=a,this.eSortNone=i},t.prototype.setupSort=function(e,t){var d=this;void 0===t&&(t=!1),this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),this.column.isSortable()&&(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedPropertyListener("unSortIcon",(function(){return d.updateIcons()})),this.addManagedListener(this.eventService,Je.EVENT_NEW_COLUMNS_LOADED,(function(){return d.updateIcons()})),this.addManagedListener(this.eventService,Je.EVENT_SORT_CHANGED,(function(){return d.onSortChanged()})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return d.onSortChanged()})),this.onSortChanged())},t.prototype.addInIcon=function(e,t,d){if(null!=t){var a=za(e,this.gridOptionsService,d);a&&t.appendChild(a)}},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;da(this.eSortAsc,t,{skipAriaHidden:!0})}if(this.eSortDesc){var d="desc"===e;da(this.eSortDesc,d,{skipAriaHidden:!0})}if(this.eSortNone){var a=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.get("unSortIcon"),i=null===e||void 0===e;da(this.eSortNone,!a&&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,Je.EVENT_SORT_CHANGED,(function(){return e.updateMultiSortIndicator()})),this.addManagedListener(this.eventService,Je.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);da(this.eSortMixed,e,{skipAriaHidden:!0})}},t.prototype.updateSortOrder=function(){var e,t=this;if(this.eSortOrder){var d=this.sortController.getColumnsWithSortingOrdered(),a=null!==(e=this.sortController.getDisplaySortIndexForColumn(this.column))&&void 0!==e?e:-1,i=d.some((function(e){var d;return null!==(d=t.sortController.getDisplaySortIndexForColumn(e))&&void 0!==d&&d})),o=a>=0&&i;da(this.eSortOrder,o,{skipAriaHidden:!0}),a>=0?this.eSortOrder.innerHTML=(a+1).toString():_a(this.eSortOrder)}},t.TEMPLATE='\n \n \n \n \n \n ',is([Ti("eSortOrder")],t.prototype,"eSortOrder",void 0),is([Ti("eSortAsc")],t.prototype,"eSortAsc",void 0),is([Ti("eSortDesc")],t.prototype,"eSortDesc",void 0),is([Ti("eSortMixed")],t.prototype,"eSortMixed",void 0),is([Ti("eSortNone")],t.prototype,"eSortNone",void 0),is([de("columnModel")],t.prototype,"columnModel",void 0),is([de("sortController")],t.prototype,"sortController",void 0),t}(hi),ss=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),ls=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},ms=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return ss(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&(this.workOutShowMenu()==this.currentShowMenu&&(this.workOutSort()==this.currentSort&&(this.shouldSuppressMenuHide()==this.currentSuppressMenuHide&&(this.setDisplayName(e),!0))))},t.prototype.workOutTemplate=function(){var e=qe(this.params.template,t.TEMPLATE);return e=e&&e.trim?e.trim():e},t.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)},t.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var t=st(this.currentDisplayName);this.eText&&(this.eText.innerHTML=t)}},t.prototype.setupIcons=function(e){this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,d){if(null!=t){var a=za(e,this.gridOptionsService,d);a&&t.appendChild(a)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsService;if(!t.get("suppressTouch")){var d=new ds(this.getGui(),!0),a=t.get("suppressMenuHide"),o=a&&i(this.eMenu),s=o?new ds(this.eMenu,!0):d;if(this.params.enableMenu){var l=o?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(s,ds[l],(function(d){t.api.showColumnMenuAfterMouseClick(e.params.column,d.touchStart)}))}if(this.params.enableSorting){this.addManagedListener(d,ds.EVENT_TAP,(function(t){var d=t.touchStart.target;a&&e.eMenu.contains(d)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return d.destroy()})),o&&this.addDestroyFunc((function(){return s.destroy()}))}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsService.get("suppressMenuHide"),t=Id()&&e;return this.params.enableMenu&&!t},t.prototype.shouldSuppressMenuHide=function(){return this.gridOptionsService.get("suppressMenuHide")},t.prototype.setMenu=function(){var e=this;this.eMenu&&(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu?(this.currentSuppressMenuHide=this.shouldSuppressMenuHide(),this.addManagedListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),this.eMenu.classList.toggle("ag-header-menu-always-show",this.currentSuppressMenuHide)):ya(this.eMenu))},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new os(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),this.currentSort){this.addManagedListener(this.params.column,ce.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(t){var d=e.params.column.isMoving(),a=(new Date).getTime()-e.lastMovingChanged<50;if(!(d||a)){var i="ctrl"===e.gridOptionsService.get("multiSortKey")?t.ctrlKey||t.metaKey:t.shiftKey;e.params.progressSort(i)}}));var t=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),d=!(null===t||void 0===t?void 0:t.every((function(t){return e.params.column.getSort()==t.getSort()})));e.addOrRemoveCssClass("ag-header-cell-sorted-mixed",d)}};this.addManagedListener(this.eventService,Je.EVENT_SORT_CHANGED,t),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_ROW_GROUP_CHANGED,t)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,ce.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();da(this.eFilter,e,{skipAriaHidden:!0})},t.TEMPLATE='',ls([de("sortController")],t.prototype,"sortController",void 0),ls([de("menuFactory")],t.prototype,"menuFactory",void 0),ls([de("columnModel")],t.prototype,"columnModel",void 0),ls([Ti("eFilter")],t.prototype,"eFilter",void 0),ls([Ti("eSortIndicator")],t.prototype,"eSortIndicator",void 0),ls([Ti("eMenu")],t.prototype,"eMenu",void 0),ls([Ti("eLabel")],t.prototype,"eLabel",void 0),ls([Ti("eText")],t.prototype,"eText",void 0),ls([Ti("eSortOrder")],t.prototype,"eSortOrder",void 0),ls([Ti("eSortAsc")],t.prototype,"eSortAsc",void 0),ls([Ti("eSortDesc")],t.prototype,"eSortDesc",void 0),ls([Ti("eSortMixed")],t.prototype,"eSortMixed",void 0),ls([Ti("eSortNone")],t.prototype,"eSortNone",void 0),t}(hi),rs=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),us=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},ns=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return rs(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.checkWarnings=function(){this.params.template&&M("A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!Re(t)){var d=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),d,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var d=function(e){Ve(e)};this.addManagedListener(this.eCloseIcon,"dblclick",d),this.addManagedListener(this.eOpenIcon,"dblclick",d),this.addManagedListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var a=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(a,ye.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(a,ye.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var d=new ds(e,!0);this.addManagedListener(d,ds.EVENT_TAP,t),this.addDestroyFunc((function(){return d.destroy()})),this.addManagedListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();da(this.eOpenIcon,e),da(this.eCloseIcon,!e)}else da(this.eOpenIcon,!1),da(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var d=za(e,this.gridOptionsService,null);d&&this.getRefElement(t).appendChild(d)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return da(this.eOpenIcon,!1),void da(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e,t=this.params,d=t.displayName,a=t.columnGroup;if(i(d)){var o=st(d);this.getRefElement("agLabel").innerHTML=o}this.addOrRemoveCssClass("ag-sticky-label",!(null===(e=a.getColGroupDef())||void 0===e?void 0:e.suppressStickyLabel))},t.TEMPLATE='',us([de("columnModel")],t.prototype,"columnModel",void 0),us([Ti("agOpened")],t.prototype,"eOpenIcon",void 0),us([Ti("agClosed")],t.prototype,"eCloseIcon",void 0),t}(hi),fs=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),ps=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fs(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}(hi),cs=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),_s=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},ys=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return cs(t,e),t.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),i(e.value,!0)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()},t.prototype.onKeyDown=function(e){var t=e.key;(t===Ka.LEFT||t===Ka.UP||t===Ka.RIGHT||t===Ka.DOWN||e.shiftKey&&t===Ka.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){var e=this.eTextArea.getValue();return i(e)||i(this.params.value)?this.params.parseValue(e):this.params.value},t.TEMPLATE='
\n \n
',_s([Ti("eTextArea")],t.prototype,"eTextArea",void 0),t}(ps),Cs=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),qs=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},bs=function(e){function t(){var t=e.call(this,'
\n \n
')||this;return t.startedByEnter=!1,t}return Cs(t,e),t.prototype.init=function(e){this.focusAfterAttached=e.cellStartedEdit;var t=this,d=t.eSelect,a=t.valueFormatterService,i=t.gridOptionsService,s=e.values,l=e.value,m=e.eventKey;if(o(s))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=m&&m===Ka.ENTER;var r=!1;s.forEach((function(t){var i={value:t},o=a.formatValue(e.column,null,t),s=null!==o&&void 0!==o;i.text=s?o:t,d.addOption(i),r=r||l===t})),r?d.setValue(e.value,!0):e.values.length&&d.setValue(e.values[0],!0);var u=e.valueListGap,n=e.valueListMaxWidth,f=e.valueListMaxHeight;null!=u&&d.setPickerGap(u),null!=f&&d.setPickerMaxHeight(f),null!=n&&d.setPickerMaxWidth(n),"fullRow"!==i.get("editType")&&this.addManagedListener(this.eSelect,ao.EVENT_ITEM_SELECTED,(function(){return e.stopEditing()}))}},t.prototype.afterGuiAttached=function(){var e=this;this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout((function(){e.isAlive()&&e.eSelect.showPicker()}))},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},qs([de("valueFormatterService")],t.prototype,"valueFormatterService",void 0),qs([Ti("eSelect")],t.prototype,"eSelect",void 0),t}(ps),Ps=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),hs=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Ss=function(e){function t(t){var d=e.call(this,'\n
\n '.concat(t.getTemplate(),"\n
"))||this;return d.cellEditorInput=t,d}return Ps(t,e),t.prototype.init=function(e){this.params=e;var t,d=this.eInput;if(this.cellEditorInput.init(d,e),e.cellStartedEdit){this.focusAfterAttached=!0;var a=e.eventKey;a===Ka.BACKSPACE||e.eventKey===Ka.DELETE?t="":a&&1===a.length?t=a:(t=this.cellEditorInput.getStartValue(),a!==Ka.F2&&(this.highlightAllOnFocus=!0))}else this.focusAfterAttached=!1,t=this.cellEditorInput.getStartValue();null!=t&&d.setStartValue(t),this.addManagedListener(d.getGui(),"keydown",(function(e){var t=e.key;t!==Ka.PAGE_UP&&t!==Ka.PAGE_DOWN||e.preventDefault()}))},t.prototype.afterGuiAttached=function(){var e,t,d=this.localeService.getLocaleTextFunc(),a=this.eInput;if(a.setInputAriaLabel(d("ariaInputEditor","Input Editor")),this.focusAfterAttached){gd()||a.getFocusableElement().focus();var i=a.getInputElement();this.highlightAllOnFocus?i.select():null===(t=(e=this.cellEditorInput).setCaret)||void 0===t||t.call(e)}},t.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),d=e.getInputElement();t.focus(),d.select()},t.prototype.getValue=function(){return this.cellEditorInput.getValue()},t.prototype.isPopup=function(){return!1},hs([Ti("eInput")],t.prototype,"eInput",void 0),t}(ps),Ts=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),gs=function(){function e(){}return e.prototype.getTemplate=function(){return''},e.prototype.init=function(e,t){this.eInput=e,this.params=t,null!=t.maxLength&&e.setMaxLength(t.maxLength)},e.prototype.getValue=function(){var e=this.eInput.getValue();return i(e)||i(this.params.value)?this.params.parseValue(e):this.params.value},e.prototype.getStartValue=function(){return this.params.useFormatter||this.params.column.getColDef().refData?this.params.formatValue(this.params.value):this.params.value},e.prototype.setCaret=function(){var e=this.eInput.getValue(),t=i(e)&&e.length||0;t&&this.eInput.getInputElement().setSelectionRange(t,t)},e}(),Os=function(e){function t(){return e.call(this,new gs)||this}return Ts(t,e),t}(Ss),Ds=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Bs=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},vs=function(e){function t(){var d=e.call(this,t.TEMPLATE)||this;return d.refreshCount=0,d}return Ds(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var d=Math.abs(t),a=e.formatValue(d),o=i(a)?a:d,s=t>=0;this.eDelta.innerHTML=s?"\u2191"+o:"\u2193"+o,this.eDelta.classList.toggle("ag-value-change-delta-up",s),this.eDelta.classList.toggle("ag-value-change-delta-down",!s)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout((function(){t===e.refreshCount&&e.hideDeltaValue()}),2e3)},t.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),_a(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t===this.lastValue)return!1;if(i(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:i(e.value)?this.eValue.innerHTML=t:_a(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"===typeof t&&"number"===typeof this.lastValue){var d=t-this.lastValue;this.showDelta(e,d)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0},t.TEMPLATE='',Bs([de("filterManager")],t.prototype,"filterManager",void 0),t}(hi),Is=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Gs=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Ms=function(e){function t(){var d=e.call(this,t.TEMPLATE)||this;return d.refreshCount=0,d.eCurrent=d.queryForHtmlElement(".ag-value-slide-current"),d}return Is(t,e),t.prototype.init=function(e){this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=qa(''),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)},t.prototype.refresh=function(e){var t=e.value;return o(t)&&(t=""),t!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=t,i(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:i(e.value)?this.eCurrent.innerHTML=t:_a(this.eCurrent),!0))},t.TEMPLATE='\n \n ',Gs([de("filterManager")],t.prototype,"filterManager",void 0),t}(hi),ws=function(){return ws=Object.assign||function(e){for(var t,d=1,a=arguments.length;d0?a: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 ".concat(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=[],d=this;for(e&&(d=d.parent);d&&d.level>=0;)t.push(d.key),d=d.parent;return t.reverse(),t},e.prototype.isPixelInRange=function(e){return!(!i(this.rowTop)||!i(this.rowHeight))&&(e>=this.rowTop&&ea&&(a=s)})),!t&&((d||a<10)&&(a=this.beans.gridOptionsService.getRowHeightForNode(this).height),a!=this.rowHeight))){this.setRowHeight(a);var o=this.beans.rowModel;o.onRowHeightChangedDebounced&&o.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,d){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var a=Object.assign({},this.createGlobalRowEvent(Je.EVENT_ROW_GROUP_OPENED),{expanded:t,event:d||null});this.beans.rowNodeEventThrottle.dispatchExpanded(a),this.sibling&&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,d){var a=this,i=function(){var t;return"string"!==typeof e?e:null!==(t=a.beans.columnModel.getGridColumn(e))&&void 0!==t?t:a.beans.columnModel.getPrimaryColumn(e)}(),o=this.getValueFromValueService(i);if(this.beans.gridOptionsService.get("readOnlyEdit"))return this.dispatchEventForSaveValueReadOnly(i,o,t,d),!1;var s=this.beans.valueService.setValue(this,i,t,d);return this.dispatchCellChangedEvent(i,t,o),this.checkRowSelectable(),s},e.prototype.getValueFromValueService=function(e){var t=this.leafGroup&&this.beans.columnModel.isPivotMode(),d=this.group&&this.expanded&&!this.footer&&!t,a=this.beans.gridOptionsService.getGroupIncludeFooter()({node:this}),i=this.beans.gridOptionsService.get("groupSuppressBlankHeader"),o=d&&a&&!i;return this.beans.valueService.getValue(e,this,!1,o)},e.prototype.dispatchEventForSaveValueReadOnly=function(e,t,d,a){var i={type:Je.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:d,value:d,source:a};this.beans.eventService.dispatchEvent(i)},e.prototype.setGroupValue=function(e,t){var d=this.beans.columnModel.getGridColumn(e);o(this.groupData)&&(this.groupData={});var a=d.getColId(),i=this.groupData[a];i!==t&&(this.groupData[a]=t,this.dispatchCellChangedEvent(d,t,i))},e.prototype.setAggData=function(e){var t=this,d=S([this.aggData,e]),a=this.aggData;this.aggData=e,this.eventService&&d.forEach((function(e){var d=t.aggData?t.aggData[e]:void 0,i=a?a[e]:void 0;if(d!==i){var o=t.beans.columnModel.lookupGridColumn(e);o&&t.dispatchCellChangedEvent(o,d,i)}}))},e.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;if(this.beans.gridOptionsService.isRowModelType("serverSide")){var d=this.beans.gridOptionsService.get("treeData"),a=this.beans.gridOptionsService.get("isServerSideGroup");t=!this.stub&&!this.footer&&(d?!!a&&a(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&&s(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,d,a){var i={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:d,oldValue:a};this.dispatchLocalEvent(i)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return!this.footer&&(this.beans.columnModel.isPivotMode()?this.hasChildren()&&!this.leafGroup:this.hasChildren()||!!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,d=!1,a=!1;if(!(null===(e=this.childrenAfterGroup)||void 0===e?void 0:e.length))return this.selectable?this.selected:null;for(var i=0;i=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},ks=function(e){function t(){return e.call(this,'\n ')||this}return Es(t,e),t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0),Qt(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(),d=cd(e,t),a=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel("".concat(a," (").concat(d,")"))},t.prototype.onClicked=function(e,t,d){return this.rowNode.setSelectedParams({newValue:e,rangeSelect:d.shiftKey,groupSelectsFiltered:t,event:d,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){Ve(e)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(e){Ve(e);var d=t.gridOptionsService.get("groupSelectsFiltered"),a=t.eCheckbox.getValue();t.shouldHandleIndeterminateState(a,d)?0===t.onClicked(!0,d,e||{})&&t.onClicked(!1,d,e):a?t.onClicked(!1,d,e):t.onClicked(!0,d,e||{})})),this.addManagedListener(this.rowNode,Ls.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,Ls.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,Ls.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsService.get("isRowSelectable")||"function"===typeof this.getIsVisible()){var d=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,d),this.addManagedListener(this.rowNode,Ls.EVENT_DATA_CHANGED,d),this.addManagedListener(this.rowNode,Ls.EVENT_CELL_CHANGED,d),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.shouldHandleIndeterminateState=function(e,t){return t&&(void 0===this.eCheckbox.getPreviousValue()||void 0===e)&&this.gridOptionsService.isRowModelType("clientSide")},t.prototype.showOrHideSelect=function(){var e,t,d,a,i=this.rowNode.selectable,o=this.getIsVisible();if(i)if("function"===typeof o){var s=null===(e=this.overrides)||void 0===e?void 0:e.callbackParams,l=null===(t=this.column)||void 0===t?void 0:t.createColumnFunctionCallbackParams(this.rowNode);i=!!l&&o(Vs(Vs({},s),l))}else i=null!==o&&void 0!==o&&o;if(null===(d=this.column)||void 0===d?void 0:d.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!i),this.setVisible(!0),void this.setDisplayed(!0);(null===(a=this.overrides)||void 0===a?void 0:a.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},Rs([Ti("eCheckbox")],t.prototype,"eCheckbox",void 0),Rs([Z],t.prototype,"postConstruct",null),t}(hi);!function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(Wo||(Wo={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(Fo||(Fo={}));var As,xs=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Ws=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Fs=function(e){var t="function"===typeof Symbol&&Symbol.iterator,d=t&&e[t],a=0;if(d)return d.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(e){e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag",e[e.ChartPanel=3]="ChartPanel",e[e.AdvancedFilterBuilder=4]="AdvancedFilterBuilder"}(As||(As={}));var Hs,Ns=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragSourceAndParamsList=[],t.dropTargets=[],t}var d;return xs(t,e),d=t,t.prototype.init=function(){this.ePinnedIcon=ja("columnMovePin",this.gridOptionsService,null),this.eHideIcon=ja("columnMoveHide",this.gridOptionsService,null),this.eMoveIcon=ja("columnMoveMove",this.gridOptionsService,null),this.eLeftIcon=ja("columnMoveLeft",this.gridOptionsService,null),this.eRightIcon=ja("columnMoveRight",this.gridOptionsService,null),this.eGroupIcon=ja("columnMoveGroup",this.gridOptionsService,null),this.eAggregateIcon=ja("columnMoveValue",this.gridOptionsService,null),this.ePivotIcon=ja("columnMovePivot",this.gridOptionsService,null),this.eDropNotAllowedIcon=ja("dropNotAllowed",this.gridOptionsService,null)},t.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var d={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),includeTouch:t};this.dragSourceAndParamsList.push({params:d,dragSource:e}),this.dragService.addDragSource(d)},t.prototype.removeDragSource=function(e){var t=this.dragSourceAndParamsList.find((function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),Te(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 d,a,i,o,s=this,l=this.getHorizontalDirection(e),m=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var r=this.dropTargets.filter((function(t){return s.isMouseOnDropTarget(e,t)})),u=this.findCurrentDropTarget(e,r);if(u!==this.lastDropTarget)this.leaveLastTargetIfExists(e,l,m,t),null!==this.lastDropTarget&&null===u&&(null===(a=(d=this.dragSource).onGridExit)||void 0===a||a.call(d,this.dragItem)),null===this.lastDropTarget&&null!==u&&(null===(o=(i=this.dragSource).onGridEnter)||void 0===o||o.call(i,this.dragItem)),this.enterDragTargetIfExists(u,e,l,m,t),this.lastDropTarget=u;else if(u&&u.onDragging){var n=this.createDropTargetEvent(u,e,l,m,t);u.onDragging(n)}},t.prototype.getAllContainersFromDropTarget=function(e){var t=e.getSecondaryContainers?e.getSecondaryContainers():null,d=[[e.getContainer()]];return t?d.concat(t):d},t.prototype.allContainersIntersect=function(e,t){var d,a;try{for(var i=Fs(t),o=i.next();!o.done;o=i.next()){var s=o.value.getBoundingClientRect();if(0===s.width||0===s.height)return!1;var l=e.clientX>=s.left&&e.clientX=s.top&&e.clientYd?Fo.Left:Fo.Right},t.prototype.getVerticalDirection=function(e){var t=this.eventLastTime&&this.eventLastTime.clientY,d=e.clientY;return t===d?null:t>d?Wo.Up:Wo.Down},t.prototype.createDropTargetEvent=function(e,t,d,a,i){var o=e.getContainer(),s=o.getBoundingClientRect(),l=this,m=l.gridApi,r=l.columnApi,u=l.dragItem,n=l.dragSource;return{event:t,x:t.clientX-s.left,y:t.clientY-s.top,vDirection:a,hDirection:d,dragSource:n,fromNudge:i,dragItem:u,api:m,columnApi:r,dropZoneTarget:o}},t.prototype.positionGhost=function(e){var t=this.eGhost;if(t){var d=t.getBoundingClientRect().height,a=Ld()-2,i=Ed()-2,o=na(t.offsetParent),s=e.clientY,l=e.clientX,m=s-o.top-d/2,r=l-o.left-10,u=this.gridOptionsService.getDocument(),n=u.defaultView||window,f=n.pageYOffset||u.documentElement.scrollTop,p=n.pageXOffset||u.documentElement.scrollLeft;a>0&&r+t.clientWidth>a+p&&(r=a+p-t.clientWidth),r<0&&(r=0),i>0&&m+t.clientHeight>i+f&&(m=i+f-t.clientHeight),m<0&&(m=0),t.style.left="".concat(r,"px"),t.style.top="".concat(m,"px")}},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=qa(d.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"),a=this.dragSource.dragItemName;E(a)&&(a=a()),t.innerHTML=st(a)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var i=this.gridOptionsService.getDocument(),o=null,s=null;try{o=i.fullscreenElement}catch(m){}finally{o||(o=this.gridOptionsService.getRootNode());var l=o.querySelector("body");s=l||(o instanceof ShadowRoot?o:o instanceof Document?null===o||void 0===o?void 0:o.documentElement:o)}this.eGhostParent=s,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),_a(this.eGhostIcon);var a=null;switch(e||(e=this.dragSource.getDefaultIconName?this.dragSource.getDefaultIconName():d.ICON_NOT_ALLOWED),e){case d.ICON_PINNED:a=this.ePinnedIcon;break;case d.ICON_MOVE:a=this.eMoveIcon;break;case d.ICON_LEFT:a=this.eLeftIcon;break;case d.ICON_RIGHT:a=this.eRightIcon;break;case d.ICON_GROUP:a=this.eGroupIcon;break;case d.ICON_AGGREGATE:a=this.eAggregateIcon;break;case d.ICON_PIVOT:a=this.ePivotIcon;break;case d.ICON_NOT_ALLOWED:a=this.eDropNotAllowedIcon;break;case d.ICON_HIDE:a=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",t),a===this.eHideIcon&&this.gridOptionsService.get("suppressDragLeaveHidesColumns")||a&&this.eGhostIcon.appendChild(a)},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='
\n \n
\n
',Ws([de("dragService")],t.prototype,"dragService",void 0),Ws([de("mouseEventService")],t.prototype,"mouseEventService",void 0),Ws([de("columnApi")],t.prototype,"columnApi",void 0),Ws([de("gridApi")],t.prototype,"gridApi",void 0),Ws([Z],t.prototype,"init",null),Ws([ee],t.prototype,"clearDragSourceParamsList",null),t=d=Ws([te("dragAndDropService")],t)}(ze),js=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),zs=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Us=function(e){function t(t,d,a,i,o,s){var l=e.call(this)||this;return l.cellValueFn=t,l.rowNode=d,l.column=a,l.customGui=i,l.dragStartPixels=o,l.suppressVisibilityChange=s,l.dragSource=null,l}return js(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(''),this.getGui().appendChild(za("rowDrag",this.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.gridOptionsService.get("rowDragManaged")?new Qs(this,this.beans,this.rowNode,this.column):new Ys(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.gridOptionsService.get("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.gridOptionsService.get("rowDragManaged");this.gridOptionsService.get("treeData")&&e&&M("If using row drag with tree data, you cannot have rowDragManaged=true")},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 d=this.localeService.getLocaleTextFunc();this.dragSource={type:As.RowDrag,eElement:this.getGui(),dragItemName:function(){var e,a=t.getDragItem(),i=(null===(e=a.rowNodes)||void 0===e?void 0:e.length)||1,o=t.getRowDragText(t.column);return o?o(a,i):1===i?t.cellValueFn():"".concat(i," ").concat(d("rowDragRows","rows"))},getDragItem:function(){return t.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},zs([de("beans")],t.prototype,"beans",void 0),zs([Z],t.prototype,"postConstruct",null),zs([ee],t.prototype,"removeDragSource",null),t}(hi),Ks=function(e){function t(t,d,a){var i=e.call(this)||this;return i.parent=t,i.rowNode=d,i.column=a,i}return js(t,e),t.prototype.setDisplayedOrVisible=function(e){var t={skipAriaHidden:!0};if(e)this.parent.setDisplayed(!1,t);else{var d=!0,a=!1;this.column&&(d=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),a=E(this.column.getColDef().rowDrag)),a?(this.parent.setDisplayed(!0,t),this.parent.setVisible(d,t)):(this.parent.setDisplayed(d,t),this.parent.setVisible(!0,t))}},t}(ze),Ys=function(e){function t(t,d,a,i){var o=e.call(this,t,a,i)||this;return o.beans=d,o}return js(t,e),t.prototype.postConstruct=function(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,Ls.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ls.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ls.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Je.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.gridOptionsService.get("suppressRowDrag");this.setDisplayedOrVisible(e)},zs([Z],t.prototype,"postConstruct",null),t}(Ks),Qs=function(e){function t(t,d,a,i){var o=e.call(this,t,a,i)||this;return o.beans=d,o}return js(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,Je.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Je.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Je.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Je.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ls.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Ls.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(),d=this.gridOptionsService.get("suppressRowDrag"),a=this.beans.dragAndDropService.hasExternalDropZones(),i=t&&!a||d;this.setDisplayedOrVisible(i)},zs([Z],t.prototype,"postConstruct",null),t}(Ks),$s=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Xs=function(){return Xs=Object.assign||function(e){for(var t,d=1,a=arguments.length;d=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Zs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $s(t,e),t.prototype.init=function(e,t,d,a,i,o,s){var l,m,r,u;this.params=s,this.eGui=t,this.eCheckbox=d,this.eExpanded=a,this.eContracted=i,this.comp=e,this.compClass=o;var n=s.node;s.value;var f=s.colDef,p=this.isTopLevelFooter();if(!p){if(this.isEmbeddedRowMismatch())return;if(n.footer&&this.gridOptionsService.get("groupHideOpenParents"))if((f&&f.showRowGroup)!==(n.rowGroupColumn&&n.rowGroupColumn.getColId()))return}if(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),!p){var c=s.node.footer&&s.node.rowGroupIndex===this.columnModel.getRowGroupColumns().findIndex((function(e){var t;return e.getColId()===(null===(t=s.colDef)||void 0===t?void 0:t.showRowGroup)})),_="multipleColumns"!=this.gridOptionsService.get("groupDisplayType")||this.gridOptionsService.get("treeData")||this.gridOptionsService.get("showOpenedGroup")&&!s.node.footer&&(!s.node.group||null!=s.node.rowGroupIndex&&s.node.rowGroupIndex>this.columnModel.getRowGroupColumns().findIndex((function(e){var t;return e.getColId()===(null===(t=s.colDef)||void 0===t?void 0:t.showRowGroup)}))),y=!n.group&&((null===(l=this.params.colDef)||void 0===l?void 0:l.field)||(null===(m=this.params.colDef)||void 0===m?void 0:m.valueGetter)),C=this.isExpandable(),q=this.columnModel.isPivotMode()&&n.leafGroup&&(null===(r=n.rowGroupColumn)||void 0===r?void 0:r.getColId())===(null===(u=s.column)||void 0===u?void 0:u.getColDef().showRowGroup);if(!this.showingValueForOpenedParent&&!C&&!y&&!_&&!c&&!q)return}this.addExpandAndContract(),this.addFullWidthRowDraggerIfNeeded(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded()},t.prototype.getCellAriaRole=function(){var e,t,d=null===(e=this.params.colDef)||void 0===e?void 0:e.cellAriaRole,a=null===(t=this.params.column)||void 0===t?void 0:t.getColDef().cellAriaRole;return d||a||"gridcell"},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,t=e.node,d=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var a=function(){ed(d,!!t.expanded)};this.expandListener=this.addManagedListener(t,Ls.EVENT_EXPANDED_CHANGED,a)||null,a()}else td(d)},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsService.get("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.get("embedFullWidthRows"))return!1;var e="left"===this.params.pinned,t="right"===this.params.pinned,d=!e&&!t;return this.gridOptionsService.get("enableRtl")?this.columnModel.isPinningLeft()?!t:!d:this.columnModel.isPinningLeft()?!e:!d},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,t=this.params.node;if(this.showingValueForOpenedParent)for(var d=t.parent;null!=d;){if(d.rowGroupColumn&&e.isRowGroupDisplayed(d.rowGroupColumn.getId())){this.displayedGroupNode=d;break}d=d.parent}o(this.displayedGroupNode)&&(this.displayedGroupNode=t)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,t=this.params.column;if(this.gridOptionsService.get("groupHideOpenParents"))if(e.groupData){if(null!=e.rowGroupColumn){var d=e.rowGroupColumn.getId();if(t.isRowGroupDisplayed(d))return void(this.showingValueForOpenedParent=!1)}var a=null!=e.groupData[t.getId()];this.showingValueForOpenedParent=a}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,t=this.adjustParamsWithDetailsFromRelatedColumn(),d=this.getInnerCompDetails(t),a=t.valueFormatted,i=t.value,o=a;if(null==o){var s=this.displayedGroupNode.rowGroupColumn&&(null===(e=this.params.column)||void 0===e?void 0:e.isRowGroupDisplayed(this.displayedGroupNode.rowGroupColumn.getId()));if(""===this.displayedGroupNode.key&&this.displayedGroupNode.group&&s)o=this.localeService.getLocaleTextFunc()("blanks","(Blanks)");else o=null!==i&&void 0!==i?i:null}this.comp.setInnerRenderer(d,o)},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 d=this.params,a=this.params,i=a.value,o=a.node,s=this.valueFormatterService.formatValue(e,o,i);return Xs(Xs({},d),{valueFormatted:s})},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,t="";if(e){var d=C(this.params);d.value=this.params.value,"function"===typeof e?t=e(d):"string"===typeof e?t=this.expressionService.evaluate(e,d):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 a=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(a,t)},t.prototype.getInnerCompDetails=function(e){var t=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptionsService.get("groupRowRendererParams"),e);var d=this.userComponentFactory.getInnerRendererDetails(e,e),a=function(e){return e&&e.componentClass==t.compClass};if(d&&!a(d))return d;var i=this.displayedGroupNode.rowGroupColumn,o=i?i.getColDef():void 0;if(o){var s=this.userComponentFactory.getCellRendererDetails(o,e);if(s&&!a(s))return s;if(a(s)&&o.cellRendererParams&&o.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(o.cellRendererParams,e)}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,Ls.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?"(".concat(e,")"):"";this.comp.setChildCount(t)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsService.get("treeData"))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,t=this.params,d=za("groupExpanded",this.gridOptionsService,null),a=za("groupContracted",this.gridOptionsService,null);d&&this.eExpanded.appendChild(d),a&&this.eContracted.appendChild(a);var i=t.eGridCell;(null===(e=this.params.column)||void 0===e?void 0:e.isCellEditable(t.node))&&this.gridOptionsService.get("enableGroupEdit")||!this.isExpandable()||t.suppressDoubleClickExpand||this.addManagedListener(i,"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(i,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(t.node,Ls.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var o=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,Ls.EVENT_ALL_CHILDREN_COUNT_CHANGED,o),this.addManagedListener(this.displayedGroupNode,Ls.EVENT_MASTER_CHANGED,o),this.addManagedListener(this.displayedGroupNode,Ls.EVENT_GROUP_CHANGED,o),this.addManagedListener(this.displayedGroupNode,Ls.EVENT_HAS_CHILDREN_CHANGED,o)},t.prototype.onExpandClicked=function(e){Re(e)||(Ve(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var t=this.displayedGroupNode,d=!t.expanded;!d&&t.sticky&&this.scrollToStickyNode(t),t.setExpanded(d,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 d=this.params.column;return null==d||"string"!==typeof d.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},t.prototype.showExpandAndContractIcons=function(){var e=this,t=e.params,d=e.displayedGroupNode,a=e.columnModel,i=t.node,o=this.isExpandable();if(o){var s=!!this.showingValueForOpenedParent||i.expanded;this.comp.setExpandedDisplayed(s),this.comp.setContractedDisplayed(!s)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var l=a.isPivotMode(),m=l&&d.leafGroup,r=o&&!m,u=i.footer&&-1===i.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",r),this.comp.addOrRemoveCssClass("ag-row-group",r),l?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",m):u||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!r)},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,Ls.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsService.get("groupHideOpenParents")){var e=this.params,t=e.node,d=!!e.colDef,a=this.gridOptionsService.get("treeData"),i=!d||a||!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 Us((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,d=this.isUserWantsSelected()&&!t.footer&&!t.rowPinned&&!t.detail;if(d){var a=new ks;this.getContext().createBean(a),a.init({rowNode:this.params.node,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(a.getGui()),this.addDestroyFunc((function(){return e.getContext().destroyBean(a)}))}this.comp.setCheckboxVisible(d)},t.prototype.onKeyDown=function(e){e.key!==Ka.ENTER||this.params.suppressEnterExpand||(this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e))},t.prototype.onCellDblClicked=function(e){Re(e)||(xe(this.eExpanded,e)||xe(this.eContracted,e)||this.onExpandOrContract(e))},Js([de("expressionService")],t.prototype,"expressionService",void 0),Js([de("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Js([de("columnModel")],t.prototype,"columnModel",void 0),Js([de("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Js([de("ctrlsService")],t.prototype,"ctrlsService",void 0),t}(ze),el=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),tl=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},dl=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return el(t,e),t.prototype.init=function(e){var t=this,d={setInnerRenderer:function(e,d){return t.setRenderDetails(e,d)},setChildCount:function(e){return t.eChildCount.innerHTML=e},addOrRemoveCssClass:function(e,d){return t.addOrRemoveCssClass(e,d)},setContractedDisplayed:function(e){return da(t.eContracted,e)},setExpandedDisplayed:function(e){return da(t.eExpanded,e)},setCheckboxVisible:function(e){return t.eCheckbox.classList.toggle("ag-invisible",!e)}},a=this.createManagedBean(new Zs),i=!e.colDef,o=this.getGui();a.init(d,o,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),i&&Ft(o,a.getCellAriaRole())},t.prototype.setRenderDetails=function(e,t){var d=this;if(e){var a=e.newAgStackInstance();if(!a)return;a.then((function(e){if(e){var t=function(){return d.context.destroyBean(e)};d.isAlive()?(d.eValue.appendChild(e.getGui()),d.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='\n \n \n \n \n \n ',tl([Ti("eExpanded")],t.prototype,"eExpanded",void 0),tl([Ti("eContracted")],t.prototype,"eContracted",void 0),tl([Ti("eCheckbox")],t.prototype,"eCheckbox",void 0),tl([Ti("eValue")],t.prototype,"eValue",void 0),tl([Ti("eChildCount")],t.prototype,"eChildCount",void 0),t}(hi),al=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),il=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},ol=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return al(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=za("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='
\n \n \n
',il([Ti("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),il([Ti("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(hi),sl=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),ll=function(e){function t(){return e.call(this)||this}return sl(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var d,a=null!==(d=this.gridOptionsService.get("overlayLoadingTemplate"))&&void 0!==d?d:t.DEFAULT_LOADING_OVERLAY_TEMPLATE,i=this.localeService.getLocaleTextFunc(),o=a.replace("[LOADING...]",i("loadingOoo","Loading..."));this.setTemplate(o)},t.DEFAULT_LOADING_OVERLAY_TEMPLATE='[LOADING...]',t}(hi),ml=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),rl=function(e){function t(){return e.call(this)||this}return ml(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var d,a=null!==(d=this.gridOptionsService.get("overlayNoRowsTemplate"))&&void 0!==d?d:t.DEFAULT_NO_ROWS_TEMPLATE,i=this.localeService.getLocaleTextFunc(),o=a.replace("[NO_ROWS_TO_SHOW]",i("noRowsToShow","No Rows To Show"));this.setTemplate(o)},t.DEFAULT_NO_ROWS_TEMPLATE='[NO_ROWS_TO_SHOW]',t}(hi),ul=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),nl=function(e){function t(){return e.call(this,'
')||this}return ul(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=st(t)},t}(ps),fl=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),pl=function(){function e(){}return e.prototype.getTemplate=function(){return''},e.prototype.init=function(e,t){this.eInput=e,this.params=t,null!=t.max&&e.setMax(t.max),null!=t.min&&e.setMin(t.min),null!=t.precision&&e.setPrecision(t.precision),null!=t.step&&e.setStep(t.step);var d=e.getInputElement();t.preventStepping?e.addManagedListener(d,"keydown",this.preventStepping):t.showStepperButtons&&d.classList.add("ag-number-field-input-stepper")},e.prototype.preventStepping=function(e){e.key!==Ka.UP&&e.key!==Ka.DOWN||e.preventDefault()},e.prototype.getValue=function(){var e=this.eInput.getValue();if(!i(e)&&!i(this.params.value))return this.params.value;var t=this.params.parseValue(e);if(null==t)return t;if("string"===typeof t){if(""===t)return null;t=Number(t)}return isNaN(t)?null:t},e.prototype.getStartValue=function(){return this.params.value},e}(),cl=function(e){function t(){return e.call(this,new pl)||this}return fl(t,e),t}(Ss),_l=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),yl=function(){function e(){}return e.prototype.getTemplate=function(){return''},e.prototype.init=function(e,t){this.eInput=e,this.params=t,null!=t.min&&e.setMin(t.min),null!=t.max&&e.setMax(t.max),null!=t.step&&e.setStep(t.step)},e.prototype.getValue=function(){var e=this.eInput.getDate();return i(e)||i(this.params.value)?null!==e&&void 0!==e?e:null:this.params.value},e.prototype.getStartValue=function(){var e=this.params.value;if(e instanceof Date)return jd(e,!1)},e}(),Cl=function(e){function t(){return e.call(this,new yl)||this}return _l(t,e),t}(Ss),ql=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),bl=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Pl=function(){function e(e){this.getDataTypeService=e}return e.prototype.getTemplate=function(){return''},e.prototype.init=function(e,t){this.eInput=e,this.params=t,null!=t.min&&e.setMin(t.min),null!=t.max&&e.setMax(t.max),null!=t.step&&e.setStep(t.step)},e.prototype.getValue=function(){var e=this.formatDate(this.eInput.getDate());return i(e)||i(this.params.value)?this.params.parseValue(null!==e&&void 0!==e?e:""):this.params.value},e.prototype.getStartValue=function(){var e,t;return jd(null!==(t=this.parseDate(null!==(e=this.params.value)&&void 0!==e?e:void 0))&&void 0!==t?t:null,!1)},e.prototype.parseDate=function(e){return this.getDataTypeService().getDateParserFunction()(e)},e.prototype.formatDate=function(e){return this.getDataTypeService().getDateFormatterFunction()(e)},e}(),hl=function(e){function t(){var t=e.call(this,new Pl((function(){return t.dataTypeService})))||this;return t}return ql(t,e),bl([de("dataTypeService")],t.prototype,"dataTypeService",void 0),t}(Ss),Sl=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Tl=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},gl=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Sl(t,e),t.prototype.init=function(e){var t=this;this.params=e,this.updateCheckbox(e);var d=this.eCheckbox.getInputElement();d.setAttribute("tabindex","-1"),Qt(d,"polite"),this.addManagedListener(d,"click",(function(e){if(Ve(e),!t.eCheckbox.isDisabled()){var d=t.eCheckbox.getValue();t.onCheckboxChanged(d)}})),this.addManagedListener(d,"dblclick",(function(e){Ve(e)}));var a=this.gridOptionsService.getDocument();this.addManagedListener(this.params.eGridCell,"keydown",(function(e){if(e.key===Ka.SPACE&&!t.eCheckbox.isDisabled()){t.params.eGridCell===a.activeElement&&t.eCheckbox.toggle();var d=t.eCheckbox.getValue();t.onCheckboxChanged(d),e.preventDefault()}}))},t.prototype.refresh=function(e){return this.params=e,this.updateCheckbox(e),!0},t.prototype.updateCheckbox=function(e){var t,d,a,i,o=!0;if(e.node.group&&e.column){var s=e.column.getColId();s.startsWith(dt)?i=null==e.value||""===e.value?void 0:"true"===e.value:e.node.aggData&&void 0!==e.node.aggData[s]?i=null!==(t=e.value)&&void 0!==t?t:void 0:o=!1}else i=null!==(d=e.value)&&void 0!==d?d:void 0;if(o){this.eCheckbox.setValue(i);var l=null!=e.disabled?e.disabled:!(null===(a=e.column)||void 0===a?void 0:a.isCellEditable(e.node));this.eCheckbox.setDisabled(l);var m=this.localeService.getLocaleTextFunc(),r=cd(m,i),u=l?r:"".concat(m("ariaToggleCellValue","Press SPACE to toggle cell value")," (").concat(r,")");this.eCheckbox.setInputAriaLabel(u)}else this.eCheckbox.setDisplayed(!1)},t.prototype.onCheckboxChanged=function(e){var t=this.params,d=t.column,a=t.node,i=t.rowIndex,o=t.value,s={type:Je.EVENT_CELL_EDITING_STARTED,column:d,colDef:null===d||void 0===d?void 0:d.getColDef(),data:a.data,node:a,rowIndex:i,rowPinned:a.rowPinned,value:o};this.eventService.dispatchEvent(s);var l=this.params.node.setDataValue(this.params.column,e,"edit"),m={type:Je.EVENT_CELL_EDITING_STOPPED,column:d,colDef:null===d||void 0===d?void 0:d.getColDef(),data:a.data,node:a,rowIndex:i,rowPinned:a.rowPinned,value:o,oldValue:o,newValue:e,valueChanged:l};this.eventService.dispatchEvent(m)},t.TEMPLATE='\n ',Tl([Ti("eCheckbox")],t.prototype,"eCheckbox",void 0),t}(hi),Ol=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Dl=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Bl=function(e){function t(){return e.call(this,'\n
\n \n
')||this}return Ol(t,e),t.prototype.init=function(e){var t,d=this;this.params=e;var a=null!==(t=e.value)&&void 0!==t?t:void 0;this.eCheckbox.setValue(a),this.eCheckbox.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(a),this.addManagedListener(this.eCheckbox,Je.EVENT_FIELD_VALUE_CHANGED,(function(e){return d.setAriaLabel(e.selected)}))},t.prototype.getValue=function(){return this.eCheckbox.getValue()},t.prototype.focusIn=function(){this.eCheckbox.getFocusableElement().focus()},t.prototype.afterGuiAttached=function(){this.params.cellStartedEdit&&this.focusIn()},t.prototype.isPopup=function(){return!1},t.prototype.setAriaLabel=function(e){var t=this.localeService.getLocaleTextFunc(),d=cd(t,e),a=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel("".concat(a," (").concat(d,")"))},Dl([Ti("eCheckbox")],t.prototype,"eCheckbox",void 0),t}(ps),vl=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Il=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Gl=function(e,t){var d="function"===typeof Symbol&&e[Symbol.iterator];if(!d)return e;var a,i,o=d.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},Ml=function(e,t,d){if(d||2===arguments.length)for(var a,i=0,o=t.length;i0&&console.warn(" Did you mean: [".concat(d.slice(0,3),"]?")),console.warn("If using a custom component check it has been registered as described in: ".concat(this.getFrameworkOverrides().getDocLink("components/")))},Il([de("gridOptions")],t.prototype,"gridOptions",void 0),Il([Z],t.prototype,"init",null),t=Il([te("userComponentRegistry")],t)}(ze),Ll={propertyName:"dateComponent",cellRenderer:!1},El={propertyName:"headerComponent",cellRenderer:!1},Vl={propertyName:"headerGroupComponent",cellRenderer:!1},Rl={propertyName:"cellRenderer",cellRenderer:!0},kl={propertyName:"cellEditor",cellRenderer:!1},Al={propertyName:"innerRenderer",cellRenderer:!0},xl={propertyName:"loadingOverlayComponent",cellRenderer:!1},Wl={propertyName:"noRowsOverlayComponent",cellRenderer:!1},Fl={propertyName:"tooltipComponent",cellRenderer:!1},Hl={propertyName:"filter",cellRenderer:!1},Nl={propertyName:"floatingFilterComponent",cellRenderer:!1},jl={propertyName:"toolPanel",cellRenderer:!1},zl={propertyName:"statusPanel",cellRenderer:!1},Ul={propertyName:"fullWidthCellRenderer",cellRenderer:!0},Kl={propertyName:"loadingCellRenderer",cellRenderer:!0},Yl={propertyName:"groupRowRenderer",cellRenderer:!0},Ql={propertyName:"detailCellRenderer",cellRenderer:!0},$l=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}(),Xl=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Jl=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Zl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xl(t,e),t.prototype.getHeaderCompDetails=function(e,t){return this.getCompDetails(e,El,"agColumnHeader",t)},t.prototype.getHeaderGroupCompDetails=function(e){var t=e.columnGroup.getColGroupDef();return this.getCompDetails(t,Vl,"agColumnGroupHeader",e)},t.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Ul,null,e,!0)},t.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Kl,"agLoadingCellRenderer",e,!0)},t.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Yl,"agGroupRowRenderer",e,!0)},t.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Ql,"agDetailCellRenderer",e,!0)},t.prototype.getInnerRendererDetails=function(e,t){return this.getCompDetails(e,Al,null,t)},t.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,t){return this.getCompDetails(e,Al,null,t)},t.prototype.getCellRendererDetails=function(e,t){return this.getCompDetails(e,Rl,null,t)},t.prototype.getCellEditorDetails=function(e,t){return this.getCompDetails(e,kl,"agCellEditor",t,!0)},t.prototype.getFilterDetails=function(e,t,d){return this.getCompDetails(e,Hl,d,t,!0)},t.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,Ll,"agDateInput",e,!0)},t.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,xl,"agLoadingOverlay",e,!0)},t.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Wl,"agNoRowsOverlay",e,!0)},t.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,Fl,"agTooltipComponent",e,!0)},t.prototype.getSetFilterCellRendererDetails=function(e,t){return this.getCompDetails(e,Rl,null,t)},t.prototype.getFloatingFilterCompDetails=function(e,t,d){return this.getCompDetails(e,Nl,d,t)},t.prototype.getToolPanelCompDetails=function(e,t){return this.getCompDetails(e,jl,null,t,!0)},t.prototype.getStatusPanelCompDetails=function(e,t){return this.getCompDetails(e,zl,null,t,!0)},t.prototype.getCompDetails=function(e,t,d,a,i){var o=this;void 0===i&&(i=!1);var s=t.propertyName,l=t.cellRenderer,m=this.getCompKeys(e,t,a),r=m.compName,u=m.jsComp,n=m.fwComp,f=m.paramsFromSelector,p=m.popupFromSelector,c=m.popupPositionFromSelector,_=function(e){var t=o.userComponentRegistry.retrieve(s,e);t&&(u=t.componentFromFramework?void 0:t.component,n=t.componentFromFramework?t.component:void 0)};if(null!=r&&_(r),null==u&&null==n&&null!=d&&_(d),u&&l&&!this.agComponentUtils.doesImplementIComponent(u)&&(u=this.agComponentUtils.adaptFunction(s,u)),u||n){var y=this.mergeParamsWithApplicationProvidedParams(e,t,a,f),C=null==u,q=u||n;return{componentFromFramework:C,componentClass:q,params:y,type:t,popupFromSelector:p,popupPositionFromSelector:c,newAgStackInstance:function(){return o.newAgStackInstance(q,C,y,t)}}}i&&console.error("AG Grid: Could not find component ".concat(r,", did you forget to configure this component?"))},t.prototype.getCompKeys=function(e,t,d){var a,i,o,s,l,m,r=this,u=t.propertyName;if(e){var n=e,f=n[u+"Selector"],p=f?f(d):null,c=function(e){if("string"===typeof e)a=e;else if(null!=e&&!0!==e){r.getFrameworkOverrides().isFrameworkComponent(e)?o=e:i=e}};p?(c(p.component),s=p.params,l=p.popup,m=p.popupPosition):c(n[u])}return{compName:a,jsComp:i,fwComp:o,paramsFromSelector:s,popupFromSelector:l,popupPositionFromSelector:m}},t.prototype.newAgStackInstance=function(e,t,d,a){var i,o=a.propertyName;if(!t)i=new e;else{var s=this.componentMetadataProvider.retrieve(o);i=this.frameworkComponentWrapper.wrap(e,s.mandatoryMethodList,s.optionalMethodList,a)}var l=this.initComponent(i,d);return null==l?ni.resolve(i):l.then((function(){return i}))},t.prototype.mergeParamsWithApplicationProvidedParams=function(e,t,d,a){void 0===a&&(a=null);var i={context:this.gridOptionsService.context,columnApi:this.gridOptionsService.columnApi,api:this.gridOptionsService.api};g(i,d);var o=e&&e[t.propertyName+"Params"];"function"===typeof o?g(i,o(d)):"object"===typeof o&&g(i,o);return g(i,a),i},t.prototype.initComponent=function(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)},t.prototype.getDefaultFloatingFilterType=function(e,t){if(null==e)return null;var d=null,a=this.getCompKeys(e,Hl),i=a.compName,o=a.jsComp,s=a.fwComp;i?d=$l.getFloatingFilterType(i):null==o&&null==s&&!0===e.filter&&(d=t());return d},Jl([de("gridOptions")],t.prototype,"gridOptions",void 0),Jl([de("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Jl([de("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),Jl([de("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),Jl([ae("frameworkComponentWrapper")],t.prototype,"frameworkComponentWrapper",void 0),t=Jl([te("userComponentFactory")],t)}(ze),em=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,cellDataType: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,cellAriaRole:void 0,cellEditorPopupPosition:void 0,headerGroupComponent:void 0,headerGroupComponentParams:void 0,cellStyle:void 0,cellRenderer:void 0,cellRendererParams:void 0,cellEditor:void 0,cellEditorParams:void 0,filterParams:void 0,pivotValueColumn:void 0,headerComponent:void 0,headerComponentParams:void 0,floatingFilterComponent:void 0,floatingFilterComponentParams:void 0,tooltipComponentParams: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,suppressStickyLabel: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,suppressSpanHeaderHeight:void 0,useValueFormatterForExport:void 0,useValueParserForImport:void 0},e.ALL_PROPERTIES=Object.keys(e.ColDefPropertyMap),e}();!function(e){e[e.SINGLE_SHEET=0]="SINGLE_SHEET",e[e.MULTI_SHEET=1]="MULTI_SHEET"}(Hs||(Hs={}));var tm,dm=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),am=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},im=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragEndFunctions=[],t.dragSources=[],t}return dm(t,e),t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var t=e.dragSource.eElement,d=e.mouseDownListener;if(t.removeEventListener("mousedown",d),e.touchEnabled){var a=e.touchStartListener;t.removeEventListener("touchstart",a,{passive:!0})}},t.prototype.removeDragSource=function(e){var t=this.dragSources.find((function(t){return t.dragSource===e}));t&&(this.removeListener(t),Te(this.dragSources,t))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e){var t=this,d=this.onMouseDown.bind(this,e),a=e.eElement,i=e.includeTouch,o=e.stopPropagationForTouch;a.addEventListener("mousedown",d);var s=null,l=this.gridOptionsService.get("suppressTouch");i&&!l&&(s=function(d){ta(d.target)||(d.cancelable&&(d.preventDefault(),o&&d.stopPropagation()),t.onTouchStart(e,d))},a.addEventListener("touchstart",s,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:d,touchStartListener:s,touchEnabled:!!i})},t.prototype.getStartTarget=function(){return this.startTarget},t.prototype.onTouchStart=function(e,t){var d=this;this.currentDragParams=e,this.dragging=!1;var a=t.touches[0];this.touchLastTime=a,this.touchStart=a;var i=function(t){return d.onTouchUp(t,e.eElement)},o=t.target,s=[{target:this.gridOptionsService.getRootNode(),type:"touchmove",listener:function(e){e.cancelable&&e.preventDefault()},options:{passive:!1}},{target:o,type:"touchmove",listener:function(t){return d.onTouchMove(t,e.eElement)},options:{passive:!0}},{target:o,type:"touchend",listener:i,options:{passive:!0}},{target:o,type:"touchcancel",listener:i,options:{passive:!0}}];this.addTemporaryEvents(s),0===e.dragStartPixels&&this.onCommonMove(a,this.touchStart,e.eElement)},t.prototype.onMouseDown=function(e,t){var d=this,a=t;if((!e.skipMouseEvent||!e.skipMouseEvent(t))&&!a._alreadyProcessedByDragService&&(a._alreadyProcessedByDragService=!0,0===t.button)){this.shouldPreventMouseEvent(t)&&t.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;var i=this.gridOptionsService.getRootNode(),o=[{target:i,type:"mousemove",listener:function(t){return d.onMouseMove(t,e.eElement)}},{target:i,type:"mouseup",listener:function(t){return d.onMouseUp(t,e.eElement)}},{target:i,type:"contextmenu",listener:function(e){return e.preventDefault()}}];this.addTemporaryEvents(o),0===e.dragStartPixels&&this.onMouseMove(t,e.eElement)}},t.prototype.addTemporaryEvents=function(e){e.forEach((function(e){var t=e.target,d=e.type,a=e.listener,i=e.options;t.addEventListener(d,a,i)})),this.dragEndFunctions.push((function(){e.forEach((function(e){var t=e.target,d=e.type,a=e.listener,i=e.options;t.removeEventListener(d,a,i)}))}))},t.prototype.isEventNearStartEvent=function(e,t){var d=this.currentDragParams.dragStartPixels;return ei(e,t,i(d)?d:4)},t.prototype.getFirstActiveTouch=function(e){for(var t=0;ta.right-i,this.tickUp=e.clientYa.bottom-i&&!d,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 d=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(d-e),this.tickRight&&this.setHorizontalPosition(d+e)}this.onScrollCallback&&this.onScrollCallback()},e.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},e}(),sm=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),lm=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},mm="ag-list-item-hovered",rm=function(e){function t(t,d,a){var i=e.call(this)||this;return i.comp=t,i.virtualList=d,i.params=a,i.currentDragValue=null,i.lastHoveredListItem=null,i}return sm(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.params.eventSource,this.params.listItemDragStartEvent,this.listItemDragStart.bind(this)),this.addManagedListener(this.params.eventSource,this.params.listItemDragEndEvent,this.listItemDragEnd.bind(this)),this.createDropTarget(),this.createAutoScrollService()},t.prototype.listItemDragStart=function(e){this.currentDragValue=this.params.getCurrentDragValue(e),this.moveBlocked=this.params.isMoveBlocked(this.currentDragValue)},t.prototype.listItemDragEnd=function(){var e=this;window.setTimeout((function(){e.currentDragValue=null,e.moveBlocked=!1}),10)},t.prototype.createDropTarget=function(){var e=this,t={isInterestedIn:function(t){return t===e.params.dragSourceType},getIconName:function(){return Ns[e.moveBlocked?"ICON_NOT_ALLOWED":"ICON_MOVE"]},getContainer:function(){return e.comp.getGui()},onDragging:function(t){return e.onDragging(t)},onDragStop:function(){return e.onDragStop()},onDragLeave:function(){return e.onDragLeave()}};this.dragAndDropService.addDropTarget(t)},t.prototype.createAutoScrollService=function(){var e=this.virtualList.getGui();this.autoScrollService=new om({scrollContainer:e,scrollAxis:"y",getVerticalPosition:function(){return e.scrollTop},setVerticalPosition:function(t){return e.scrollTop=t}})},t.prototype.onDragging=function(e){if(this.currentDragValue&&!this.moveBlocked){var t=this.getListDragItem(e),d=this.virtualList.getComponentAt(t.rowIndex);if(d){var a=d.getGui().parentElement;this.lastHoveredListItem&&this.lastHoveredListItem.rowIndex===t.rowIndex&&this.lastHoveredListItem.position===t.position||(this.autoScrollService.check(e.event),this.clearHoveredItems(),this.lastHoveredListItem=t,Jd(a,mm),Jd(a,"ag-item-highlight-".concat(t.position)))}}},t.prototype.getListDragItem=function(e){var t=this.virtualList.getGui(),d=parseFloat(window.getComputedStyle(t).paddingTop),a=this.virtualList.getRowHeight(),i=this.virtualList.getScrollTop(),o=Math.max(0,(e.y-d+i)/a),s=this.params.getNumRows(this.comp)-1,l=0|Math.min(s,o);return{rowIndex:l,position:Math.round(o)>o||o>s?"bottom":"top",component:this.virtualList.getComponentAt(l)}},t.prototype.onDragStop=function(){this.moveBlocked||(this.params.moveItem(this.currentDragValue,this.lastHoveredListItem),this.clearHoveredItems(),this.autoScrollService.ensureCleared())},t.prototype.onDragLeave=function(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()},t.prototype.clearHoveredItems=function(){this.virtualList.getGui().querySelectorAll(".".concat(mm)).forEach((function(e){[mm,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach((function(t){e.classList.remove(t)}))})),this.lastHoveredListItem=null},lm([de("dragAndDropService")],t.prototype,"dragAndDropService",void 0),lm([Z],t.prototype,"postConstruct",null),t}(ze);!function(e){e[e.Above=0]="Above",e[e.Below=1]="Below"}(tm||(tm={}));var um=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s};function nm(e){var t=e;return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}var fm,pm=function(){function e(){this.detailGridInfoMap={},this.destroyCalled=!1}return 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.getGridId=function(){return this.context.getGridId()},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 t=0;y(this.detailGridInfoMap,(function(d,a){i(a)&&(e(a,t),t++)}))},e.prototype.getDataAsCsv=function(e){if(Y.__assertRegistered(j.CsvExportModule,"api.getDataAsCsv",this.context.getGridId()))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){Y.__assertRegistered(j.CsvExportModule,"api.exportDataAsCSv",this.context.getGridId())&&this.csvCreator.exportDataAsCsv(e)},e.prototype.assertNotExcelMultiSheet=function(e,t){return!!Y.__assertRegistered(j.ExcelExportModule,"api."+e,this.context.getGridId())&&(this.excelCreator.getFactoryMode()!==Hs.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(Y.__assertRegistered(j.ExcelExportModule,"api.getSheetDataForExcel",this.context.getGridId()))return this.excelCreator.setFactoryMode(Hs.MULTI_SHEET),this.excelCreator.getSheetDataForExcel(e)},e.prototype.getMultipleSheetsAsExcel=function(e){if(Y.__assertRegistered(j.ExcelExportModule,"api.getMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.getMultipleSheetsAsExcel(e)},e.prototype.exportMultipleSheetsAsExcel=function(e){if(Y.__assertRegistered(j.ExcelExportModule,"api.exportMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.exportMultipleSheetsAsExcel(e)},e.prototype.setGridAriaProperty=function(e,t){if(e){var d=this.ctrlsService.getGridBodyCtrl().getGui(),a="aria-".concat(e);null===t?d.removeAttribute(a):d.setAttribute(a,t)}},e.prototype.logMissingRowModel=function(e){for(var t=[],d=1;d= 0")):this.serverSideRowModel?this.serverSideRowModel.applyRowData(e.successParams,a,i):this.logMissingRowModel("setServerSideDatasource","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)return this.clientSideRowModel.updateRowData(e);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.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.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.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},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)},e.prototype.sizeColumnsToFit=function(e){"number"===typeof e?this.columnModel.sizeColumnsToFit(e,"api"):this.gridBodyCtrl.sizeColumnsToFit(e)},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,d,a){void 0===d&&(d=!0),this.columnModel.setColumnWidths([{key:e,newWidth:t}],!1,d,a)},e.prototype.setColumnWidths=function(e,t,d){void 0===t&&(t=!0),this.columnModel.setColumnWidths(e,!1,t,d)},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.getState=function(){return this.stateService.getState()},e.prototype.getGridOption=function(e){return this.gos.get(e)},e.prototype.setGridOption=function(e,t){var d;this.updateGridOptions(((d={})[e]=t,d))},e.prototype.updateGridOptions=function(e){this.gos.updateGridOptions({options:e})},e.prototype.__internalUpdateGridOptions=function(e){this.gos.updateGridOptions({options:e,source:"gridOptionsUpdated"})},e.prototype.deprecatedUpdateGridOption=function(e,t){M("set".concat(e.charAt(0).toUpperCase()).concat(e.slice(1,e.length)," is deprecated. Please use 'api.setGridOption('").concat(e,"', newValue)' or 'api.updateGridOptions({ ").concat(e,": newValue })' instead.")),this.setGridOption(e,t)},e.prototype.setPivotMode=function(e){this.deprecatedUpdateGridOption("pivotMode",e)},e.prototype.setPinnedTopRowData=function(e){this.deprecatedUpdateGridOption("pinnedTopRowData",e)},e.prototype.setPinnedBottomRowData=function(e){this.deprecatedUpdateGridOption("pinnedBottomRowData",e)},e.prototype.setPopupParent=function(e){this.deprecatedUpdateGridOption("popupParent",e)},e.prototype.setSuppressModelUpdateAfterUpdateTransaction=function(e){this.deprecatedUpdateGridOption("suppressModelUpdateAfterUpdateTransaction",e)},e.prototype.setDataTypeDefinitions=function(e){this.deprecatedUpdateGridOption("dataTypeDefinitions",e)},e.prototype.setPagination=function(e){this.deprecatedUpdateGridOption("pagination",e)},e.prototype.paginationSetPageSize=function(e){this.deprecatedUpdateGridOption("paginationPageSize",e)},e.prototype.setSideBar=function(e){this.deprecatedUpdateGridOption("sideBar",e)},e.prototype.setSuppressClipboardPaste=function(e){this.deprecatedUpdateGridOption("suppressClipboardPaste",e)},e.prototype.setGroupRemoveSingleChildren=function(e){this.deprecatedUpdateGridOption("groupRemoveSingleChildren",e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.deprecatedUpdateGridOption("groupRemoveLowestSingleChildren",e)},e.prototype.setGroupDisplayType=function(e){this.deprecatedUpdateGridOption("groupDisplayType",e)},e.prototype.setGroupIncludeFooter=function(e){this.deprecatedUpdateGridOption("groupIncludeFooter",e)},e.prototype.setGroupIncludeTotalFooter=function(e){this.deprecatedUpdateGridOption("groupIncludeTotalFooter",e)},e.prototype.setRowClass=function(e){this.deprecatedUpdateGridOption("rowClass",e)},e.prototype.setDeltaSort=function(e){this.deprecatedUpdateGridOption("deltaSort",e)},e.prototype.setSuppressRowDrag=function(e){this.deprecatedUpdateGridOption("suppressRowDrag",e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.deprecatedUpdateGridOption("suppressMoveWhenRowDragging",e)},e.prototype.setSuppressRowClickSelection=function(e){this.deprecatedUpdateGridOption("suppressRowClickSelection",e)},e.prototype.setEnableAdvancedFilter=function(e){this.deprecatedUpdateGridOption("enableAdvancedFilter",e)},e.prototype.setIncludeHiddenColumnsInAdvancedFilter=function(e){this.deprecatedUpdateGridOption("includeHiddenColumnsInAdvancedFilter",e)},e.prototype.setAdvancedFilterParent=function(e){this.deprecatedUpdateGridOption("advancedFilterParent",e)},e.prototype.setAdvancedFilterBuilderParams=function(e){this.deprecatedUpdateGridOption("advancedFilterBuilderParams",e)},e.prototype.setQuickFilter=function(e){M("setQuickFilter is deprecated. Please use 'api.setGridOption('quickFilterText', newValue)' or 'api.updateGridOptions({ quickFilterText: newValue })' instead."),this.gos.updateGridOptions({options:{quickFilterText:e}})},e.prototype.setExcludeHiddenColumnsFromQuickFilter=function(e){this.deprecatedUpdateGridOption("includeHiddenColumnsInQuickFilter",!e)},e.prototype.setIncludeHiddenColumnsInQuickFilter=function(e){this.deprecatedUpdateGridOption("includeHiddenColumnsInQuickFilter",e)},e.prototype.setQuickFilterParser=function(e){this.deprecatedUpdateGridOption("quickFilterParser",e)},e.prototype.setQuickFilterMatcher=function(e){this.deprecatedUpdateGridOption("quickFilterMatcher",e)},e.prototype.setAlwaysShowHorizontalScroll=function(e){this.deprecatedUpdateGridOption("alwaysShowHorizontalScroll",e)},e.prototype.setAlwaysShowVerticalScroll=function(e){this.deprecatedUpdateGridOption("alwaysShowVerticalScroll",e)},e.prototype.setFunctionsReadOnly=function(e){this.deprecatedUpdateGridOption("functionsReadOnly",e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),M("setColumnDefs is deprecated. Please use 'api.setGridOption('columnDefs', newValue)' or 'api.updateGridOptions({ columnDefs: newValue })' instead."),this.gos.updateGridOptions({options:{columnDefs:e},source:t})},e.prototype.setAutoGroupColumnDef=function(e,t){void 0===t&&(t="api"),M("setAutoGroupColumnDef is deprecated. Please use 'api.setGridOption('autoGroupColumnDef', newValue)' or 'api.updateGridOptions({ autoGroupColumnDef: newValue })' instead."),this.gos.updateGridOptions({options:{autoGroupColumnDef:e},source:t})},e.prototype.setDefaultColDef=function(e,t){void 0===t&&(t="api"),M("setDefaultColDef is deprecated. Please use 'api.setGridOption('defaultColDef', newValue)' or 'api.updateGridOptions({ defaultColDef: newValue })' instead."),this.gos.updateGridOptions({options:{defaultColDef:e},source:t})},e.prototype.setColumnTypes=function(e,t){void 0===t&&(t="api"),M("setColumnTypes is deprecated. Please use 'api.setGridOption('columnTypes', newValue)' or 'api.updateGridOptions({ columnTypes: newValue })' instead."),this.gos.updateGridOptions({options:{columnTypes:e},source:t})},e.prototype.setTreeData=function(e){this.deprecatedUpdateGridOption("treeData",e)},e.prototype.setServerSideDatasource=function(e){this.deprecatedUpdateGridOption("serverSideDatasource",e)},e.prototype.setCacheBlockSize=function(e){this.deprecatedUpdateGridOption("cacheBlockSize",e)},e.prototype.setDatasource=function(e){this.deprecatedUpdateGridOption("datasource",e)},e.prototype.setViewportDatasource=function(e){this.deprecatedUpdateGridOption("viewportDatasource",e)},e.prototype.setRowData=function(e){this.deprecatedUpdateGridOption("rowData",e)},e.prototype.setEnableCellTextSelection=function(e){this.deprecatedUpdateGridOption("enableCellTextSelection",e)},e.prototype.setHeaderHeight=function(e){this.deprecatedUpdateGridOption("headerHeight",e)},e.prototype.setDomLayout=function(e){this.deprecatedUpdateGridOption("domLayout",e)},e.prototype.setFillHandleDirection=function(e){this.deprecatedUpdateGridOption("fillHandleDirection",e)},e.prototype.setGroupHeaderHeight=function(e){this.deprecatedUpdateGridOption("groupHeaderHeight",e)},e.prototype.setFloatingFiltersHeight=function(e){this.deprecatedUpdateGridOption("floatingFiltersHeight",e)},e.prototype.setPivotHeaderHeight=function(e){this.deprecatedUpdateGridOption("pivotHeaderHeight",e)},e.prototype.setPivotGroupHeaderHeight=function(e){this.deprecatedUpdateGridOption("pivotGroupHeaderHeight",e)},e.prototype.setAnimateRows=function(e){this.deprecatedUpdateGridOption("animateRows",e)},e.prototype.setIsExternalFilterPresent=function(e){this.deprecatedUpdateGridOption("isExternalFilterPresent",e)},e.prototype.setDoesExternalFilterPass=function(e){this.deprecatedUpdateGridOption("doesExternalFilterPass",e)},e.prototype.setNavigateToNextCell=function(e){this.deprecatedUpdateGridOption("navigateToNextCell",e)},e.prototype.setTabToNextCell=function(e){this.deprecatedUpdateGridOption("tabToNextCell",e)},e.prototype.setTabToNextHeader=function(e){this.deprecatedUpdateGridOption("tabToNextHeader",e)},e.prototype.setNavigateToNextHeader=function(e){this.deprecatedUpdateGridOption("navigateToNextHeader",e)},e.prototype.setRowGroupPanelShow=function(e){this.deprecatedUpdateGridOption("rowGroupPanelShow",e)},e.prototype.setGetGroupRowAgg=function(e){this.deprecatedUpdateGridOption("getGroupRowAgg",e)},e.prototype.setGetBusinessKeyForNode=function(e){this.deprecatedUpdateGridOption("getBusinessKeyForNode",e)},e.prototype.setGetChildCount=function(e){this.deprecatedUpdateGridOption("getChildCount",e)},e.prototype.setProcessRowPostCreate=function(e){this.deprecatedUpdateGridOption("processRowPostCreate",e)},e.prototype.setGetRowId=function(e){M("getRowId is a static property and can no longer be updated.")},e.prototype.setGetRowClass=function(e){this.deprecatedUpdateGridOption("getRowClass",e)},e.prototype.setIsFullWidthRow=function(e){this.deprecatedUpdateGridOption("isFullWidthRow",e)},e.prototype.setIsRowSelectable=function(e){this.deprecatedUpdateGridOption("isRowSelectable",e)},e.prototype.setIsRowMaster=function(e){this.deprecatedUpdateGridOption("isRowMaster",e)},e.prototype.setPostSortRows=function(e){this.deprecatedUpdateGridOption("postSortRows",e)},e.prototype.setGetDocument=function(e){this.deprecatedUpdateGridOption("getDocument",e)},e.prototype.setGetContextMenuItems=function(e){this.deprecatedUpdateGridOption("getContextMenuItems",e)},e.prototype.setGetMainMenuItems=function(e){this.deprecatedUpdateGridOption("getMainMenuItems",e)},e.prototype.setProcessCellForClipboard=function(e){this.deprecatedUpdateGridOption("processCellForClipboard",e)},e.prototype.setSendToClipboard=function(e){this.deprecatedUpdateGridOption("sendToClipboard",e)},e.prototype.setProcessCellFromClipboard=function(e){this.deprecatedUpdateGridOption("processCellFromClipboard",e)},e.prototype.setProcessPivotResultColDef=function(e){this.deprecatedUpdateGridOption("processPivotResultColDef",e)},e.prototype.setProcessPivotResultColGroupDef=function(e){this.deprecatedUpdateGridOption("processPivotResultColGroupDef",e)},e.prototype.setPostProcessPopup=function(e){this.deprecatedUpdateGridOption("postProcessPopup",e)},e.prototype.setInitialGroupOrderComparator=function(e){this.deprecatedUpdateGridOption("initialGroupOrderComparator",e)},e.prototype.setGetChartToolbarItems=function(e){this.deprecatedUpdateGridOption("getChartToolbarItems",e)},e.prototype.setPaginationNumberFormatter=function(e){this.deprecatedUpdateGridOption("paginationNumberFormatter",e)},e.prototype.setGetServerSideGroupLevelParams=function(e){this.deprecatedUpdateGridOption("getServerSideGroupLevelParams",e)},e.prototype.setIsServerSideGroupOpenByDefault=function(e){this.deprecatedUpdateGridOption("isServerSideGroupOpenByDefault",e)},e.prototype.setIsApplyServerSideTransaction=function(e){this.deprecatedUpdateGridOption("isApplyServerSideTransaction",e)},e.prototype.setIsServerSideGroup=function(e){this.deprecatedUpdateGridOption("isServerSideGroup",e)},e.prototype.setGetServerSideGroupKey=function(e){this.deprecatedUpdateGridOption("getServerSideGroupKey",e)},e.prototype.setGetRowStyle=function(e){this.deprecatedUpdateGridOption("getRowStyle",e)},e.prototype.setGetRowHeight=function(e){this.deprecatedUpdateGridOption("getRowHeight",e)},um([ae("csvCreator")],e.prototype,"csvCreator",void 0),um([ae("excelCreator")],e.prototype,"excelCreator",void 0),um([de("rowRenderer")],e.prototype,"rowRenderer",void 0),um([de("navigationService")],e.prototype,"navigationService",void 0),um([de("filterManager")],e.prototype,"filterManager",void 0),um([de("columnModel")],e.prototype,"columnModel",void 0),um([de("selectionService")],e.prototype,"selectionService",void 0),um([de("gridOptionsService")],e.prototype,"gos",void 0),um([de("valueService")],e.prototype,"valueService",void 0),um([de("alignedGridsService")],e.prototype,"alignedGridsService",void 0),um([de("eventService")],e.prototype,"eventService",void 0),um([de("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),um([de("context")],e.prototype,"context",void 0),um([de("rowModel")],e.prototype,"rowModel",void 0),um([de("sortController")],e.prototype,"sortController",void 0),um([de("paginationProxy")],e.prototype,"paginationProxy",void 0),um([de("focusService")],e.prototype,"focusService",void 0),um([de("dragAndDropService")],e.prototype,"dragAndDropService",void 0),um([ae("rangeService")],e.prototype,"rangeService",void 0),um([ae("clipboardService")],e.prototype,"clipboardService",void 0),um([ae("aggFuncService")],e.prototype,"aggFuncService",void 0),um([de("menuFactory")],e.prototype,"menuFactory",void 0),um([ae("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),um([de("valueCache")],e.prototype,"valueCache",void 0),um([de("animationFrameService")],e.prototype,"animationFrameService",void 0),um([ae("statusBarService")],e.prototype,"statusBarService",void 0),um([ae("chartService")],e.prototype,"chartService",void 0),um([ae("undoRedoService")],e.prototype,"undoRedoService",void 0),um([ae("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),um([ae("ssrmTransactionManager")],e.prototype,"serverSideTransactionManager",void 0),um([de("ctrlsService")],e.prototype,"ctrlsService",void 0),um([de("overlayService")],e.prototype,"overlayService",void 0),um([ae("sideBarService")],e.prototype,"sideBarService",void 0),um([de("stateService")],e.prototype,"stateService",void 0),um([de("expansionService")],e.prototype,"expansionService",void 0),um([de("apiEventService")],e.prototype,"apiEventService",void 0),um([de("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),um([Z],e.prototype,"init",null),e=um([te("gridApi")],e)}(),cm=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),_m=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},ym=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.quickFilter=null,t.quickFilterParts=null,t}var d;return cm(t,e),d=t,t.prototype.postConstruct=function(){var e=this;this.addManagedListener(this.eventService,Je.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return e.resetQuickFilterCache()})),this.addManagedListener(this.eventService,Je.EVENT_NEW_COLUMNS_LOADED,(function(){return e.resetQuickFilterCache()})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return e.resetQuickFilterCache()})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_VISIBLE,(function(){e.gridOptionsService.get("includeHiddenColumnsInQuickFilter")||e.resetQuickFilterCache()})),this.addManagedPropertyListener("quickFilterText",(function(t){return e.setQuickFilter(t.currentValue)})),this.addManagedPropertyListener("includeHiddenColumnsInQuickFilter",(function(){return e.onIncludeHiddenColumnsInQuickFilterChanged()})),this.quickFilter=this.parseQuickFilter(this.gridOptionsService.get("quickFilterText")),this.parser=this.gridOptionsService.get("quickFilterParser"),this.matcher=this.gridOptionsService.get("quickFilterMatcher"),this.setQuickFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],(function(){return e.setQuickFilterParserAndMatcher()}))},t.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},t.prototype.doesRowPassQuickFilter=function(e){var t=this,d=this.gridOptionsService.get("cacheQuickFilter");return this.matcher?this.doesRowPassQuickFilterMatcher(d,e):this.quickFilterParts.every((function(a){return d?t.doesRowPassQuickFilterCache(e,a):t.doesRowPassQuickFilterNoCache(e,a)}))},t.prototype.resetQuickFilterCache=function(){this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},t.prototype.setQuickFilterParts=function(){var e=this.quickFilter,t=this.parser;this.quickFilterParts=e?t?t(e):e.split(" "):null},t.prototype.parseQuickFilter=function(e){return i(e)?this.gridOptionsService.isRowModelType("clientSide")?e.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},t.prototype.setQuickFilter=function(e){if(null==e||"string"===typeof e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.dispatchEvent({type:d.EVENT_QUICK_FILTER_CHANGED}))}else console.warn("AG Grid - Grid option quickFilterText only supports string inputs, received: ".concat(typeof e))},t.prototype.setQuickFilterParserAndMatcher=function(){var e=this.gridOptionsService.get("quickFilterParser"),t=this.gridOptionsService.get("quickFilterMatcher"),a=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,a&&(this.setQuickFilterParts(),this.dispatchEvent({type:d.EVENT_QUICK_FILTER_CHANGED}))},t.prototype.onIncludeHiddenColumnsInQuickFilterChanged=function(){this.columnModel.refreshQuickFilterColumns(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.dispatchEvent({type:d.EVENT_QUICK_FILTER_CHANGED})},t.prototype.doesRowPassQuickFilterNoCache=function(e,t){var d=this;return this.columnModel.getAllColumnsForQuickFilter().some((function(a){var o=d.getQuickFilterTextForColumn(a,e);return i(o)&&o.indexOf(t)>=0}))},t.prototype.doesRowPassQuickFilterCache=function(e,t){return this.checkGenerateQuickFilterAggregateText(e),e.quickFilterAggregateText.indexOf(t)>=0},t.prototype.doesRowPassQuickFilterMatcher=function(e,t){var d;e?(this.checkGenerateQuickFilterAggregateText(t),d=t.quickFilterAggregateText):d=this.getQuickFilterAggregateText(t);var a=this.quickFilterParts;return(0,this.matcher)(a,d)},t.prototype.checkGenerateQuickFilterAggregateText=function(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getQuickFilterAggregateText(e))},t.prototype.getQuickFilterTextForColumn=function(e,t){var d=this.valueService.getValue(e,t,!0),a=e.getColDef();if(a.getQuickFilterText){var o={value:d,node:t,data:t.data,column:e,colDef:a,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};d=a.getQuickFilterText(o)}return i(d)?d.toString().toUpperCase():null},t.prototype.getQuickFilterAggregateText=function(e){var t=this,a=[];return this.columnModel.getAllColumnsForQuickFilter().forEach((function(d){var o=t.getQuickFilterTextForColumn(d,e);i(o)&&a.push(o)})),a.join(d.QUICK_FILTER_SEPARATOR)},t.EVENT_QUICK_FILTER_CHANGED="quickFilterChanged",t.QUICK_FILTER_SEPARATOR="\n",_m([de("valueService")],t.prototype,"valueService",void 0),_m([de("columnModel")],t.prototype,"columnModel",void 0),_m([de("rowModel")],t.prototype,"rowModel",void 0),_m([Z],t.prototype,"postConstruct",null),t=d=_m([te("quickFilterService")],t)}(ze),Cm=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),qm=function(){return qm=Object.assign||function(e){for(var t,d=1,a=arguments.length;d=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Pm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allColumnFilters=new Map,t.allColumnListeners=new Map,t.activeAggregateFilters=[],t.activeColumnFilters=[],t.processingFilterChange=!1,t.filterModelUpdateQueue=[],t.advancedFilterModelUpdateQueue=[],t}return Cm(t,e),t.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,Je.EVENT_GRID_COLUMNS_CHANGED,(function(){return e.onColumnsChanged()})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_VALUE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_PIVOT_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,Je.EVENT_NEW_COLUMNS_LOADED,(function(){return e.updateAdvancedFilterColumns()})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_VISIBLE,(function(){return e.updateAdvancedFilterColumns()})),this.addManagedListener(this.eventService,Je.EVENT_ROW_DATA_UPDATED,(function(){return e.onNewRowsLoaded("rowDataUpdated")})),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],(function(){e.onFilterChanged({source:"api"})})),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",(function(){e.updateAggFiltering(),e.onFilterChanged()})),this.addManagedPropertyListener("advancedFilterModel",(function(t){return e.setAdvancedFilterModel(t.currentValue)})),this.addManagedListener(this.eventService,Je.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,(function(t){var d=t.enabled;return e.onAdvancedFilterEnabledChanged(d)})),this.addManagedListener(this.eventService,Je.EVENT_DATA_TYPES_INFERRED,(function(){return e.processFilterModelUpdateQueue()})),this.addManagedListener(this.quickFilterService,ym.EVENT_QUICK_FILTER_CHANGED,(function(){return e.onFilterChanged({source:"quickFilter"})}))},t.prototype.isExternalFilterPresentCallback=function(){var e=this.gridOptionsService.getCallback("isExternalFilterPresent");return"function"===typeof e&&e({})},t.prototype.doesExternalFilterPass=function(e){var t=this.gridOptionsService.get("doesExternalFilterPass");return"function"===typeof t&&t(e)},t.prototype.setFilterModel=function(e,t){var d=this;if(void 0===t&&(t="api"),this.isAdvancedFilterEnabled())this.warnAdvancedFilters();else if(this.dataTypeService.isPendingInference())this.filterModelUpdateQueue.push({model:e,source:t});else{var a=[],i=this.getFilterModel();if(e){var o=ai(Object.keys(e));this.allColumnFilters.forEach((function(t,i){var s=e[i];a.push(d.setModelOnFilterWrapper(t.filterPromise,s)),o.delete(i)})),o.forEach((function(t){var i=d.columnModel.getPrimaryColumn(t)||d.columnModel.getGridColumn(t);if(i)if(i.isFilterAllowed()){var o=d.getOrCreateFilterWrapper(i,"NO_UI");o?a.push(d.setModelOnFilterWrapper(o.filterPromise,e[t])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+t)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+t);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+t)}))}else this.allColumnFilters.forEach((function(e){a.push(d.setModelOnFilterWrapper(e.filterPromise,null))}));ni.all(a).then((function(){var e=d.getFilterModel(),a=[];d.allColumnFilters.forEach((function(t,d){var o=i?i[d]:null,s=e?e[d]:null;li.jsonEquals(o,s)||a.push(t.column)})),a.length>0&&d.onFilterChanged({columns:a,source:t})}))}},t.prototype.setModelOnFilterWrapper=function(e,t){return new ni((function(d){e.then((function(e){"function"!==typeof e.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),d()),(e.setModel(t)||ni.resolve()).then((function(){return d()}))}))}))},t.prototype.getFilterModel=function(){var e={};return this.allColumnFilters.forEach((function(t,d){var a=t.filterPromise.resolveNow(null,(function(e){return e}));if(null==a)return null;if("function"===typeof a.getModel){var o=a.getModel();i(o)&&(e[d]=o)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")})),e},t.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},t.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},t.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},t.prototype.isChildFilterPresent=function(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()},t.prototype.isAdvancedFilterPresent=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isFilterPresent()},t.prototype.onAdvancedFilterEnabledChanged=function(e){var t,d=this;e?this.allColumnFilters.size&&(this.allColumnFilters.forEach((function(e){return d.disposeFilterWrapper(e,"advancedFilterEnabled")})),this.onFilterChanged({source:"advancedFilter"})):(null===(t=this.advancedFilterService)||void 0===t?void 0:t.isFilterPresent())&&(this.advancedFilterService.setModel(null),this.onFilterChanged({source:"advancedFilter"}))},t.prototype.isAdvancedFilterEnabled=function(){var e;return null===(e=this.advancedFilterService)||void 0===e?void 0:e.isEnabled()},t.prototype.isAdvancedFilterHeaderActive=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isHeaderActive()},t.prototype.doAggregateFiltersPass=function(e,t){return this.doColumnFiltersPass(e,t,!0)},t.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))},d=!!this.gridOptionsService.getGroupAggFiltering();this.allColumnFilters.forEach((function(a){if(a.filterPromise.resolveNow(!1,t)){var i=a.filterPromise.resolveNow(null,(function(e){return e}));!function(t){if(!t.isPrimary())return!0;var a=!e.columnModel.isPivotActive();return!(!t.isValueActive()||!a)&&(!!e.columnModel.isPivotMode()||d)}(a.column)?e.activeColumnFilters.push(i):e.activeAggregateFilters.push(i)}}))},t.prototype.updateFilterFlagInColumns=function(e,t){this.allColumnFilters.forEach((function(d){var a=d.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));d.column.setFilterActive(a,e,t)}))},t.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},t.prototype.doColumnFiltersPass=function(e,t,d){for(var a=e.data,i=e.aggData,o=d?this.activeAggregateFilters:this.activeColumnFilters,s=d?i:a,l=0;l0?this.onFilterChanged({columns:t,source:"api"}):this.updateDependantFilters()},t.prototype.updateDependantFilters=function(){var e=this,t=this.columnModel.getGroupAutoColumns();null===t||void 0===t||t.forEach((function(t){"agGroupColumnFilter"===t.getColDef().filter&&e.getOrCreateFilterWrapper(t,"NO_UI")}))},t.prototype.isFilterAllowed=function(e){var t,d;if(this.isAdvancedFilterEnabled())return!1;if(!e.isFilterAllowed())return!1;var a=this.allColumnFilters.get(e.getColId());return null===(d=null===(t=null===a||void 0===a?void 0:a.filterPromise)||void 0===t?void 0:t.resolveNow(!0,(function(e){return"function"!==typeof(null===e||void 0===e?void 0:e.isFilterAllowed)||(null===e||void 0===e?void 0:e.isFilterAllowed())})))||void 0===d||d},t.prototype.getFloatingFilterCompDetails=function(e,t){var d=this,a=e.getColDef(),i=this.createFilterParams(e,a),o=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(a,Hl,i),s=this.userComponentFactory.getDefaultFloatingFilterType(a,(function(){return d.getDefaultFloatingFilter(e)}));null==s&&(s="agReadOnlyFloatingFilter");var l={column:e,filterParams:o,currentParentModel:function(){return d.getCurrentFloatingFilterParentModel(e)},parentFilterInstance:function(t){var a=d.getFilterComponent(e,"NO_UI");null!=a&&a.then((function(e){t(nm(e))}))},showParentFilter:t,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(a,l,s)},t.prototype.getCurrentFloatingFilterParentModel=function(e){var t=this.getFilterComponent(e,"NO_UI",!1);return t?t.resolveNow(null,(function(e){return e&&e.getModel()})):null},t.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var d=e.getColId(),a=this.allColumnFilters.get(d);this.disposeColumnListener(d),a&&(this.disposeFilterWrapper(a,t),this.onFilterChanged({columns:[e],source:"api"}))},t.prototype.disposeColumnListener=function(e){var t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())},t.prototype.disposeFilterWrapper=function(e,t){var d=this;e.filterPromise.then((function(a){d.getContext().destroyBean(a),e.column.setFilterActive(!1,"filterDestroyed"),d.allColumnFilters.delete(e.column.getColId());var i={type:Je.EVENT_FILTER_DESTROYED,source:t,column:e.column};d.eventService.dispatchEvent(i)}))},t.prototype.filterModifiedCallbackFactory=function(e,t){var d=this;return function(){var a={type:Je.EVENT_FILTER_MODIFIED,column:t,filterInstance:e};d.eventService.dispatchEvent(a)}},t.prototype.filterChangedCallbackFactory=function(e,t){var d=this;return function(a){var i,o=null!==(i=null===a||void 0===a?void 0:a.source)&&void 0!==i?i:"api",s={filter:e,additionalEventAttributes:a,columns:[t],source:o};d.callOnFilterChangedOutsideRenderCycle(s)}},t.prototype.checkDestroyFilter=function(e){var t=this,d=this.allColumnFilters.get(e);if(d){var a=d.column,i=(a.isFilterAllowed()?this.createFilterInstance(a):{compDetails:null}).compDetails;if(this.areFilterCompsDifferent(d.compDetails,i))this.destroyFilter(a,"columnChanged");else{var o=a.getColDef().filterParams;d.filterPromise?d.filterPromise.then((function(e){!(null===e||void 0===e?void 0:e.refresh)||e.refresh(qm(qm(qm({},t.createFilterParams(a,a.getColDef())),{filterModifiedCallback:t.filterModifiedCallbackFactory(e,a),filterChangedCallback:t.filterChangedCallbackFactory(e,a),doesRowPassOtherFilter:function(d){return t.doesRowPassOtherFilters(e,d)}}),o))||t.destroyFilter(a,"columnChanged")})):this.destroyFilter(a,"columnChanged")}}},t.prototype.setColumnFilterWrapper=function(e,t){var d=this,a=e.getColId();this.allColumnFilters.set(a,t),this.allColumnListeners.set(a,this.addManagedListener(e,ce.EVENT_COL_DEF_CHANGED,(function(){return d.checkDestroyFilter(a)})))},t.prototype.areFilterCompsDifferent=function(e,t){if(!t||!e)return!0;var d=e.componentClass,a=t.componentClass;return!(d===a||(null===d||void 0===d?void 0:d.render)&&(null===a||void 0===a?void 0:a.render)&&d.render===a.render)},t.prototype.getAdvancedFilterModel=function(){return this.isAdvancedFilterEnabled()?this.advancedFilterService.getModel():null},t.prototype.setAdvancedFilterModel=function(e){this.isAdvancedFilterEnabled()&&(this.dataTypeService.isPendingInference()?this.advancedFilterModelUpdateQueue.push(e):(this.advancedFilterService.setModel(null!==e&&void 0!==e?e:null),this.onFilterChanged({source:"advancedFilter"})))},t.prototype.showAdvancedFilterBuilder=function(e){this.isAdvancedFilterEnabled()&&this.advancedFilterService.getCtrl().toggleFilterBuilder(e,!0)},t.prototype.updateAdvancedFilterColumns=function(){this.isAdvancedFilterEnabled()&&this.advancedFilterService.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})},t.prototype.hasFloatingFilters=function(){return!this.isAdvancedFilterEnabled()&&this.columnModel.getAllGridColumns().some((function(e){return e.getColDef().floatingFilter}))},t.prototype.getFilterInstance=function(e,t){if(!this.isAdvancedFilterEnabled()){var d=this.getFilterInstanceImpl(e,(function(e){if(t){var d=nm(e);t(d)}}));return nm(d)}this.warnAdvancedFilters()},t.prototype.getFilterInstanceImpl=function(e,t){var d=this.columnModel.getPrimaryColumn(e);if(d){var a=this.getFilterComponent(d,"NO_UI"),i=a&&a.resolveNow(null,(function(e){return e}));return i?setTimeout(t,0,i):a&&a.then((function(e){t(e)})),i}},t.prototype.warnAdvancedFilters=function(){M("Column Filter API methods have been disabled as Advanced Filters are enabled.")},t.prototype.setupAdvancedFilterHeaderComp=function(e){var t;null===(t=this.advancedFilterService)||void 0===t||t.getCtrl().setupHeaderComp(e)},t.prototype.getHeaderRowCount=function(){return this.isAdvancedFilterHeaderActive()?1:0},t.prototype.getHeaderHeight=function(){return this.isAdvancedFilterHeaderActive()?this.advancedFilterService.getCtrl().getHeaderHeight():0},t.prototype.processFilterModelUpdateQueue=function(){var e=this;this.filterModelUpdateQueue.forEach((function(t){var d=t.model,a=t.source;return e.setFilterModel(d,a)})),this.filterModelUpdateQueue=[],this.advancedFilterModelUpdateQueue.forEach((function(t){return e.setAdvancedFilterModel(t)})),this.advancedFilterModelUpdateQueue=[]},t.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.allColumnFilters.forEach((function(e){return t.disposeFilterWrapper(e,"gridDestroyed")})),this.allColumnListeners.clear()},bm([de("valueService")],t.prototype,"valueService",void 0),bm([de("columnModel")],t.prototype,"columnModel",void 0),bm([de("rowModel")],t.prototype,"rowModel",void 0),bm([de("userComponentFactory")],t.prototype,"userComponentFactory",void 0),bm([de("rowRenderer")],t.prototype,"rowRenderer",void 0),bm([de("dataTypeService")],t.prototype,"dataTypeService",void 0),bm([de("quickFilterService")],t.prototype,"quickFilterService",void 0),bm([ae("advancedFilterService")],t.prototype,"advancedFilterService",void 0),bm([Z],t.prototype,"init",null),t=bm([te("filterManager")],t)}(ze),hm=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Sm=function(e){function t(t,d){var a=e.call(this,t)||this;return a.ctrl=d,a}return hm(t,e),t.prototype.getCtrl=function(){return this.ctrl},t}(hi),Tm=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),gm=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Om=function(e){function t(d){return e.call(this,t.TEMPLATE,d)||this}return Tm(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),d={addOrRemoveCssClass:function(t,d){return e.addOrRemoveCssClass(t,d)},addOrRemoveBodyCssClass:function(t,d){return e.eFloatingFilterBody.classList.toggle(t,d)},setButtonWrapperDisplayed:function(t){return da(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(d,t,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var t=this;if(!e)return this.destroyFloatingFilterComp(),void(this.compPromise=null);this.compPromise=e.newAgStackInstance(),this.compPromise.then((function(e){return t.afterCompCreated(e)}))},t.prototype.destroyFloatingFilterComp=function(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))},t.prototype.afterCompCreated=function(e){e&&(this.isAlive()?(this.destroyFloatingFilterComp(),this.floatingFilterComp=e,this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()):this.destroyBean(e))},t.TEMPLATE='
\n
\n \n
',gm([Ti("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),gm([Ti("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),gm([Ti("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),gm([Z],t.prototype,"postConstruct",null),gm([ee],t.prototype,"destroyFloatingFilterComp",null),t}(Sm),Dm=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Bm=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s};!function(e){e.AUTO_HEIGHT="ag-layout-auto-height",e.NORMAL="ag-layout-normal",e.PRINT="ag-layout-print"}(fm||(fm={}));var vm,Im,Gm=function(e){function t(t){var d=e.call(this)||this;return d.view=t,d}return Dm(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},d=t.autoHeight?fm.AUTO_HEIGHT:t.print?fm.PRINT:fm.NORMAL;this.view.updateLayoutClasses(d,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)?(M("".concat(t," is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.")),"normal"):t},Bm([Z],t.prototype,"postConstruct",null),t}(ze),Mm=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),wm=function(){return wm=Object.assign||function(e){for(var t,d=1,a=arguments.length;d=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s};!function(e){e[e.Vertical=0]="Vertical",e[e.Horizontal=1]="Horizontal"}(vm||(vm={})),function(e){e[e.Container=0]="Container",e[e.FakeContainer=1]="FakeContainer"}(Im||(Im={}));var Em,Vm=function(e){function t(t){var d=e.call(this)||this;return d.lastScrollSource=[null,null],d.scrollLeft=-1,d.nextScrollTop=-1,d.scrollTop=-1,d.eBodyViewport=t,d.resetLastHScrollDebounced=W((function(){return d.lastScrollSource[vm.Horizontal]=null}),500),d.resetLastVScrollDebounced=W((function(){return d.lastScrollSource[vm.Vertical]=null}),500),d}return Mm(t,e),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsService.get("enableRtl"),this.addManagedListener(this.eventService,Je.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)),e.onScrollCallback(this.onFakeHScroll.bind(this));var d=this.gridOptionsService.get("debounceVerticalScrollbar"),a=d?W(this.onVScroll.bind(this),100):this.onVScroll.bind(this),i=d?W(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",a),t.onScrollCallback(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,d=this.ctrlsService.getTopCenterRowContainerCtrl(),a=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),i=this.ctrlsService.getBottomCenterRowContainerCtrl(),o=this.ctrlsService.getFakeHScrollComp();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(-t),i.setContainerTranslateX(t),d.setContainerTranslateX(t),a.setContainerTranslateX(t);var s=this.centerRowContainerCtrl.getViewportElement(),l=this.lastScrollSource[vm.Horizontal]===Im.Container;e=Math.abs(e),l?o.setScrollPosition(e):ca(s,e,this.enableRtl)}},t.prototype.isControllingScroll=function(e,t){return null==this.lastScrollSource[t]?(this.lastScrollSource[t]=e,!0):this.lastScrollSource[t]===e},t.prototype.onFakeHScroll=function(){this.isControllingScroll(Im.FakeContainer,vm.Horizontal)&&this.onHScrollCommon(Im.FakeContainer)},t.prototype.onHScroll=function(){this.isControllingScroll(Im.Container,vm.Horizontal)&&this.onHScrollCommon(Im.Container)},t.prototype.onHScrollCommon=function(e){var t,d=this.centerRowContainerCtrl.getViewportElement(),a=d.scrollLeft;this.shouldBlockScrollUpdate(vm.Horizontal,a,!0)||(t=e===Im.Container?pa(d,this.enableRtl):this.ctrlsService.getFakeHScrollComp().getScrollPosition(),this.doHorizontalScroll(Math.round(t)),this.resetLastHScrollDebounced())},t.prototype.onFakeVScroll=function(){this.isControllingScroll(Im.FakeContainer,vm.Vertical)&&this.onVScrollCommon(Im.FakeContainer)},t.prototype.onVScroll=function(){this.isControllingScroll(Im.Container,vm.Vertical)&&this.onVScrollCommon(Im.Container)},t.prototype.onVScrollCommon=function(e){var t;t=e===Im.Container?this.eBodyViewport.scrollTop:this.ctrlsService.getFakeVScrollComp().getScrollPosition(),this.shouldBlockScrollUpdate(vm.Vertical,t,!0)||(this.animationFrameService.setScrollTop(t),this.nextScrollTop=t,e===Im.Container?this.ctrlsService.getFakeVScrollComp().setScrollPosition(t):this.eBodyViewport.scrollTop=t,this.gridOptionsService.get("suppressAnimationFrame")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced())},t.prototype.doHorizontalScroll=function(e){var t=this.ctrlsService.getFakeHScrollComp().getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(vm.Horizontal),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowContainerCtrl.onHorizontalViewportChanged(!0))},t.prototype.fireScrollEvent=function(e){var t=this,d={type:Je.EVENT_BODY_SCROLL,direction:e===vm.Horizontal?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(d),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var e=wm(wm({},d),{type:Je.EVENT_BODY_SCROLL_END});t.eventService.dispatchEvent(e)}),100)},t.prototype.shouldBlockScrollUpdate=function(e,t,d){return void 0===d&&(d=!1),!(d&&!Id())&&(e===vm.Vertical?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t))},t.prototype.shouldBlockVerticalScroll=function(e){var t=la(this.eBodyViewport),d=this.eBodyViewport.scrollHeight;return e<0||e+t>d},t.prototype.shouldBlockHorizontalScroll=function(e){var t=this.centerRowContainerCtrl.getCenterWidth(),d=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&fa()){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>d},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent(vm.Vertical)},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(Im.Container)},t.prototype.scrollGridIfNeeded=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e,t){void 0===t&&(t=!1);var d=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(vm.Horizontal,e)&&(e=this.enableRtl&&fa()?e>0?0:d:Math.min(Math.max(e,0),d)),ca(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 d=this.rowModel.getRowCount(),a=-1,i=0;i=0&&this.ensureIndexVisible(a,t)},t.prototype.ensureIndexVisible=function(e,t){if(!this.gridOptionsService.isDomLayout("print")){var d=this.paginationProxy.getRowCount();if("number"!==typeof e||e<0||e>=d)console.warn("AG Grid: Invalid row index for ensureIndexVisible: "+e);else{this.gridOptionsService.get("pagination")&&!this.gridOptionsService.get("suppressPaginationPanel")||this.paginationProxy.goToPageWithIndex(e);var a,i=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),o=this.paginationProxy.getRow(e);do{var s=o.rowTop,l=o.rowHeight,m=this.paginationProxy.getPixelOffset(),r=o.rowTop-m,u=r+o.rowHeight,n=this.getVScrollPosition(),f=this.heightScaler.getDivStretchOffset(),p=n.top+f,c=n.bottom+f,_=c-p,y=this.heightScaler.getScrollPositionForPixel(r),C=this.heightScaler.getScrollPositionForPixel(u-_),q=Math.min((y+C)/2,r),b=null;"top"===t?b=y:"bottom"===t?b=C:"middle"===t?b=q:p+i>r?b=y-i:cs:ao}},t.prototype.getColumnBounds=function(e){var t=this.enableRtl,d=this.columnModel.getBodyContainerWidth(),a=e.getActualWidth(),i=e.getLeft(),o=t?-1:1,s=t?d-i:i;return{colLeft:s,colMiddle:s+a/2*o,colRight:s+a*o}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),t=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:t,end:e+t,width:e}},Lm([de("ctrlsService")],t.prototype,"ctrlsService",void 0),Lm([de("animationFrameService")],t.prototype,"animationFrameService",void 0),Lm([de("paginationProxy")],t.prototype,"paginationProxy",void 0),Lm([de("rowModel")],t.prototype,"rowModel",void 0),Lm([de("rowContainerHeightService")],t.prototype,"heightScaler",void 0),Lm([de("rowRenderer")],t.prototype,"rowRenderer",void 0),Lm([de("columnModel")],t.prototype,"columnModel",void 0),Lm([Z],t.prototype,"postConstruct",null),t}(ze),Rm=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),km=function(){return km=Object.assign||function(e){for(var t,d=1,a=arguments.length;d=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},xm=function(e,t){var d="function"===typeof Symbol&&e[Symbol.iterator];if(!d)return e;var a,i,o=d.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},Wm=function(e,t,d){if(d||2===arguments.length)for(var a,i=0,o=t.length;ithis.paginationProxy.getCurrentPageHeight()||(o=this.rowModel.getRowIndexAtPixel(i),d=this.rowModel.getRow(o)),t.vDirection){case Wo.Down:a="down";break;case Wo.Up:a="up";break;default:a=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:o,overNode:d,y:i,vDirection:a}},t.prototype.dispatchGridEvent=function(e,t){var d=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(d)},t.prototype.onDragLeave=function(e){this.dispatchGridEvent(Je.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsService.get("rowDragManaged")&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchGridEvent(Je.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsService.get("rowDragManaged")||!this.gridOptionsService.get("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)}))},Am([de("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Am([de("rowModel")],t.prototype,"rowModel",void 0),Am([de("paginationProxy")],t.prototype,"paginationProxy",void 0),Am([de("columnModel")],t.prototype,"columnModel",void 0),Am([de("focusService")],t.prototype,"focusService",void 0),Am([de("sortController")],t.prototype,"sortController",void 0),Am([de("filterManager")],t.prototype,"filterManager",void 0),Am([de("selectionService")],t.prototype,"selectionService",void 0),Am([de("mouseEventService")],t.prototype,"mouseEventService",void 0),Am([de("ctrlsService")],t.prototype,"ctrlsService",void 0),Am([ae("rangeService")],t.prototype,"rangeService",void 0),Am([Z],t.prototype,"postConstruct",null),t}(ze),Hm=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Nm=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s};!function(e){e.ANIMATION_ON="ag-row-animation",e.ANIMATION_OFF="ag-row-no-animation"}(Em||(Em={}));var jm,zm,Um="ag-force-vertical-scroll",Km=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stickyTopHeight=0,t}return Hm(t,e),t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setComp=function(e,t,d,a,i,o){var s=this;this.comp=e,this.eGridBody=t,this.eBodyViewport=d,this.eTop=a,this.eBottom=i,this.eStickyTop=o,this.setCellTextSelection(this.gridOptionsService.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",(function(e){return s.setCellTextSelection(e.currentValue)})),this.createManagedBean(new Gm(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Vm(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([a,d,i,o]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.filterManager.setupAdvancedFilterHeaderComp(a),this.ctrlsService.registerGridBodyCtrl(this)},t.prototype.getComp=function(){return this.comp},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Je.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Je.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 d=oa(t.target,"ag-root",e);e.classList.toggle("ag-has-focus",!d)})),t.addManagedListener(e,"focusout",(function(t){var d=t.target,a=t.relatedTarget,i=e.contains(a),o=oa(a,"ag-root",e);oa(d,"ag-root",e)||i&&!o||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),this.comp.setCellSelectableCss("ag-selectable",e)},t.prototype.onScrollVisibilityChanged=function(){var e=this,t=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(t),this.setStickyTopWidth(t);var d=t&&this.gridOptionsService.getScrollbarWidth()||0,a=kd()?16:0,i="calc(100% + ".concat(d+a,"px)");this.animationFrameService.requestAnimationFrame((function(){return e.comp.setBodyViewportWidth(i)}))},t.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e.length)},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.get("stopEditingWhenCellsLoseFocus")){var t=function(t){var a=t.relatedTarget;if(null!==Md(a)){var i=d.some((function(e){return e.contains(a)}))&&e.mouseEventService.isElementInThisGrid(a);if(!i){var o=e.popupService;i=o.getActivePopups().some((function(e){return e.contains(a)}))||o.isElementWithinCustomPopup(a)}i||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},d=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];d.forEach((function(d){return e.addManagedListener(d,"focusout",t)}))}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount()+this.filterManager.getHeaderRowCount(),t=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,d=-1===t?-1:e+t;this.comp.setRowCount(d)},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.get("alwaysShowVerticalScroll"),t=e?Um:null,d=this.gridOptionsService.isDomLayout("normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||d&&Da(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsService.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),d=t?Em.ANIMATION_ON:Em.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(d,t)};t(),this.addManagedListener(this.eventService,Je.EVENT_HEIGHT_SCALE_CHANGED,t),this.addManagedPropertyListener("animateRows",t)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this.onBodyViewportContextMenu.bind(this);this.addManagedListener(this.eBodyViewport,"contextmenu",e),this.mockContextMenuForIPad(e),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this)),this.addFullWidthContainerWheelListener()},t.prototype.addFullWidthContainerWheelListener=function(){var e=this,t=this.eBodyViewport.querySelector(".ag-full-width-container"),d=this.eBodyViewport.querySelector(".ag-center-cols-viewport");t&&d&&this.addManagedListener(t,"wheel",(function(t){return e.onFullWidthContainerWheel(t,d)}))},t.prototype.onFullWidthContainerWheel=function(e,t){!e.deltaX||Math.abs(e.deltaY)>Math.abs(e.deltaX)||!this.mouseEventService.isEventFromThisGrid(e)||(e.preventDefault(),t.scrollBy({left:e.deltaX}))},t.prototype.onBodyViewportContextMenu=function(e,t,d){if(e||d){if(this.gridOptionsService.get("preventDefaultOnContextMenu"))(e||d).preventDefault();var a=(e||t).target;if(a===this.eBodyViewport||a===this.ctrlsService.getCenterRowContainerCtrl().getViewportElement()){if(!this.contextMenuFactory)return;e?this.contextMenuFactory.onContextMenu(e,null,null,null,null,this.eGridBody):d&&this.contextMenuFactory.onContextMenu(null,d,null,null,null,this.eGridBody)}}},t.prototype.mockContextMenuForIPad=function(e){if(Id()){var t=new ds(this.eBodyViewport);this.addManagedListener(t,ds.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.get("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 Fm(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 d=e.getPinnedBottomTotalHeight();d&&(d+=1),this.comp.setTopHeight(t),this.comp.setBottomHeight(d),this.comp.setTopDisplay(t?"inherit":"none"),this.comp.setBottomDisplay(d?"inherit":"none"),this.setStickyTopOffsetTop()},t.prototype.setStickyTopHeight=function(e){void 0===e&&(e=0),this.comp.setStickyTopHeight("".concat(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% - ".concat(t,"px)"))}else this.comp.setStickyTopWidth("100%")},t.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},t.prototype.setStickyTopOffsetTop=function(){var e=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight()+this.filterManager.getHeaderHeight(),t=this.pinnedRowModel.getPinnedTopTotalHeight(),d=0;e>0&&(d+=e+1),t>0&&(d+=t+1),this.comp.setStickyTopTop("".concat(d,"px"))},t.prototype.sizeColumnsToFit=function(e,t){var d=this,a=this.isVerticalScrollShowing()?this.gridOptionsService.getScrollbarWidth():0,i=ma(this.eGridBody)-a;i>0?this.columnModel.sizeColumnsToFit(i,"sizeColumnsToFit",!1,e):void 0===t?window.setTimeout((function(){d.sizeColumnsToFit(e,100)}),0):100===t?window.setTimeout((function(){d.sizeColumnsToFit(e,500)}),100):500===t?window.setTimeout((function(){d.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)},Nm([de("animationFrameService")],t.prototype,"animationFrameService",void 0),Nm([de("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),Nm([de("ctrlsService")],t.prototype,"ctrlsService",void 0),Nm([de("columnModel")],t.prototype,"columnModel",void 0),Nm([de("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Nm([ae("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),Nm([de("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Nm([de("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Nm([de("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Nm([de("rowRenderer")],t.prototype,"rowRenderer",void 0),Nm([de("popupService")],t.prototype,"popupService",void 0),Nm([de("mouseEventService")],t.prototype,"mouseEventService",void 0),Nm([de("rowModel")],t.prototype,"rowModel",void 0),Nm([de("filterManager")],t.prototype,"filterManager",void 0),t}(ze);!function(e){e[e.FILL=0]="FILL",e[e.RANGE=1]="RANGE"}(jm||(jm={})),function(e){e[e.VALUE=0]="VALUE",e[e.DIMENSION=1]="DIMENSION"}(zm||(zm={}));var Ym,Qm="ag-cell-range-selected",$m=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(Qm,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass("".concat(Qm,"-1"),1===this.rangeCount),this.cellComp.addOrRemoveCssClass("".concat(Qm,"-2"),2===this.rangeCount),this.cellComp.addOrRemoveCssClass("".concat(Qm,"-3"),3===this.rangeCount),this.cellComp.addOrRemoveCssClass("".concat(Qm,"-4"),this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),fd(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(),d=!t&&e.top,a=!t&&e.right,i=!t&&e.bottom,o=!t&&e.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",d),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",a),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",i),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",o)},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([zm.DIMENSION,zm.VALUE],e.type)}))},e.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},e.prototype.getRangeBorders=function(){var e,t,d=this,a=this.beans.gridOptionsService.get("enableRtl"),i=!1,o=!1,s=!1,l=!1,m=this.cellCtrl.getCellPosition().column,r=this.beans,u=r.rangeService,n=r.columnModel;a?(e=n.getDisplayedColAfter(m),t=n.getDisplayedColBefore(m)):(e=n.getDisplayedColBefore(m),t=n.getDisplayedColAfter(m));var f=u.getCellRanges().filter((function(e){return u.isCellInSpecificRange(d.cellCtrl.getCellPosition(),e)}));e||(l=!0),t||(o=!0);for(var p=0;p=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},ir=function(){function e(){}return e.prototype.postConstruct=function(){this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.gridOptionsService.isRowModelType("serverSide")&&(this.serverSideRowModel=this.rowModel)},ar([de("resizeObserverService")],e.prototype,"resizeObserverService",void 0),ar([de("paginationProxy")],e.prototype,"paginationProxy",void 0),ar([de("context")],e.prototype,"context",void 0),ar([de("columnApi")],e.prototype,"columnApi",void 0),ar([de("gridApi")],e.prototype,"gridApi",void 0),ar([de("gridOptionsService")],e.prototype,"gridOptionsService",void 0),ar([de("expressionService")],e.prototype,"expressionService",void 0),ar([de("environment")],e.prototype,"environment",void 0),ar([de("rowRenderer")],e.prototype,"rowRenderer",void 0),ar([de("templateService")],e.prototype,"templateService",void 0),ar([de("valueService")],e.prototype,"valueService",void 0),ar([de("eventService")],e.prototype,"eventService",void 0),ar([de("columnModel")],e.prototype,"columnModel",void 0),ar([de("headerNavigationService")],e.prototype,"headerNavigationService",void 0),ar([de("navigationService")],e.prototype,"navigationService",void 0),ar([de("columnAnimationService")],e.prototype,"columnAnimationService",void 0),ar([ae("rangeService")],e.prototype,"rangeService",void 0),ar([de("focusService")],e.prototype,"focusService",void 0),ar([ae("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),ar([de("popupService")],e.prototype,"popupService",void 0),ar([de("valueFormatterService")],e.prototype,"valueFormatterService",void 0),ar([de("stylingService")],e.prototype,"stylingService",void 0),ar([de("columnHoverService")],e.prototype,"columnHoverService",void 0),ar([de("userComponentFactory")],e.prototype,"userComponentFactory",void 0),ar([de("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),ar([de("animationFrameService")],e.prototype,"animationFrameService",void 0),ar([de("dragService")],e.prototype,"dragService",void 0),ar([de("dragAndDropService")],e.prototype,"dragAndDropService",void 0),ar([de("sortController")],e.prototype,"sortController",void 0),ar([de("filterManager")],e.prototype,"filterManager",void 0),ar([de("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),ar([de("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),ar([de("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),ar([de("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),ar([de("selectionService")],e.prototype,"selectionService",void 0),ar([ae("selectionHandleFactory")],e.prototype,"selectionHandleFactory",void 0),ar([de("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),ar([de("rowModel")],e.prototype,"rowModel",void 0),ar([de("ctrlsService")],e.prototype,"ctrlsService",void 0),ar([de("ctrlsFactory")],e.prototype,"ctrlsFactory",void 0),ar([de("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),ar([de("valueCache")],e.prototype,"valueCache",void 0),ar([de("rowNodeEventThrottle")],e.prototype,"rowNodeEventThrottle",void 0),ar([de("localeService")],e.prototype,"localeService",void 0),ar([de("valueParserService")],e.prototype,"valueParserService",void 0),ar([de("syncService")],e.prototype,"syncService",void 0),ar([Z],e.prototype,"postConstruct",null),e=ar([te("beans")],e)}(),or=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),sr=function(e){function t(t,d,a){var i=e.call(this)||this;return i.cellCtrl=t,i.beans=d,i.column=a,i}return or(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,d=t.eventService,a=t.rangeService,i=t.gridOptionsService,o=e.ctrlKey||e.metaKey;a&&o&&a.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&a.intersectLastRange(!0);var s=this.cellCtrl.createEvent(e,Je.EVENT_CELL_CLICKED);d.dispatchEvent(s);var l=this.column.getColDef();l.onCellClicked&&window.setTimeout((function(){return l.onCellClicked(s)}),0),!((i.get("singleClickEdit")||l.singleClickEdit)&&!i.get("suppressClickEdit"))||e.shiftKey&&0!=(null===a||void 0===a?void 0:a.getCellRanges().length)||this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!Id()||ke("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(),d=this.cellCtrl.createEvent(e,Je.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(d),"function"===typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(d)}),0),!this.beans.gridOptionsService.get("singleClickEdit")&&!this.beans.gridOptionsService.get("suppressClickEdit")&&this.cellCtrl.startRowOrCellEdit(null,e)},t.prototype.onMouseDown=function(e){var t=e.ctrlKey,d=e.metaKey,a=e.shiftKey,i=e.target,o=this.cellCtrl,s=this.beans,l=s.eventService,m=s.rangeService,r=s.focusService;if(!this.isRightClickInExistingRange(e)){var u=m&&0!=m.getCellRanges().length;if(!a||!u){var n=gd()&&!o.isEditing()&&!ta(i);o.focusCell(n)}if(a&&u&&!r.isCellFocused(o.getCellPosition())){e.preventDefault();var f=r.getFocusedCell();if(f){var p=f.column,c=f.rowIndex,_=f.rowPinned,y=s.rowRenderer.getRowByPosition({rowIndex:c,rowPinned:_}),C=null===y||void 0===y?void 0:y.getCellCtrl(p);(null===C||void 0===C?void 0:C.isEditing())&&C.stopEditing(),r.setFocusedCell({column:p,rowIndex:c,rowPinned:_,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!this.containsWidget(i)){if(m){var q=this.cellCtrl.getCellPosition();if(a)m.extendLatestRangeToCell(q);else{var b=t||d;m.setRangeToCell(q,b)}}l.dispatchEvent(this.cellCtrl.createEvent(e,Je.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeService;if(t){var d=t.isCellInAnyRange(this.cellCtrl.getCellPosition()),a=2===e.button||e.ctrlKey&&this.beans.gridOptionsService.get("allowContextMenuWithControlKey");if(d&&a)return!0}return!1},t.prototype.containsWidget=function(e){return oa(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,Je.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,Je.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(),d=t.contains(e.target),a=t.contains(e.relatedTarget);return d&&a},t.prototype.destroy=function(){},t}(ir),lr=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),mr=function(e){function t(t,d,a,i,o){var s=e.call(this)||this;return s.cellCtrl=t,s.beans=d,s.rowNode=i,s.rowCtrl=o,s}return lr(t,e),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var t=e.key;switch(t){case Ka.ENTER:this.onEnterKeyDown(e);break;case Ka.F2:this.onF2KeyDown(e);break;case Ka.ESCAPE:this.onEscapeKeyDown(e);break;case Ka.TAB:this.onTabKeyDown(e);break;case Ka.BACKSPACE:case Ka.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case Ka.DOWN:case Ka.UP:case Ka.RIGHT:case Ka.LEFT:this.onNavigationKeyDown(e,t)}},t.prototype.onNavigationKeyDown=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.onBackspaceOrDeleteKeyDown=function(e,t){var d=this,a=d.cellCtrl,i=d.beans,o=d.rowNode,s=i.gridOptionsService,l=i.rangeService,m=i.eventService;a.isEditing()||(m.dispatchEvent({type:Je.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),Ja(e,s.get("enableCellEditingOnBackspace"))?l&&s.get("enableRangeSelection")?l.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"}):a.isCellEditable()&&o.setDataValue(a.getColumn(),null,"cellClear"):a.startRowOrCellEdit(e,t),m.dispatchEvent({type:Je.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},t.prototype.onEnterKeyDown=function(e){if(this.cellCtrl.isEditing()||this.rowCtrl.isEditing())this.cellCtrl.stopEditingAndFocus(!1,e.shiftKey);else if(this.beans.gridOptionsService.get("enterNavigatesVertically")){var t=e.shiftKey?Ka.UP:Ka.DOWN;this.beans.navigationService.navigateToNextCell(null,t,this.cellCtrl.getCellPosition(),!1)}else this.cellCtrl.startRowOrCellEdit(Ka.ENTER,e),this.cellCtrl.isEditing()&&e.preventDefault()},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(Ka.F2,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.processCharacter=function(e){if(!(e.target!==this.eGui)&&!this.cellCtrl.isEditing()){var t=e.key;" "===t?this.onSpaceKeyDown(e):(this.cellCtrl.startRowOrCellEdit(t,e),e.preventDefault())}},t.prototype.onSpaceKeyDown=function(e){var t=this.beans.gridOptionsService;if(!this.cellCtrl.isEditing()&&t.isRowSelection()){var d=this.rowNode.isSelected(),a=!d;if(a||!t.get("suppressRowDeselection")){var i=this.beans.gridOptionsService.get("groupSelectsFiltered"),o=this.rowNode.setSelectedParams({newValue:a,rangeSelect:e.shiftKey,groupSelectsFiltered:i,event:e,source:"spaceKey"});void 0===d&&0===o&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:i,event:e,source:"spaceKey"})}}e.preventDefault()},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(ze),rr=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),ur=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},nr=function(e){function t(t,d,a){var i=e.call(this,'
')||this;return i.rowNode=t,i.column=d,i.eCell=a,i}return rr(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(za("rowDrag",this.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,d=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);d?d({rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):function(){try{var d=JSON.stringify(t.rowNode.data);e.dataTransfer.setData("application/json",d),e.dataTransfer.setData("text/plain",d)}catch(a){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},ur([Z],t.prototype,"postConstruct",null),t}(hi),fr=function(e,t){var d="function"===typeof Symbol&&e[Symbol.iterator];if(!d)return e;var a,i,o=d.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},pr=function(e,t,d){if(d||2===arguments.length)for(var a,i=0,o=t.length;i=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},hr=function(e,t){var d="function"===typeof Symbol&&e[Symbol.iterator];if(!d)return e;var a,i,o=d.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},Sr=function(e,t,d){if(d||2===arguments.length)for(var a,i=0,o=t.length;i=0)&&d}return d},t.prototype.getDomOrder=function(){return this.gridOptionsService.get("ensureDomOrder")||this.gridOptionsService.isDomLayout("print")},t.prototype.listenOnDomOrder=function(e){var t=this,d=function(){e.rowComp.setDomOrder(t.getDomOrder())};this.addManagedPropertyListener("domLayout",d),this.addManagedPropertyListener("ensureDomOrder",d)},t.prototype.setAnimateFlags=function(e){if(!this.isSticky()&&e){var t=i(this.rowNode.oldRowTop),d=this.beans.columnModel.isPinningLeft(),a=this.beans.columnModel.isPinningRight();if(t){if(this.isFullWidth()&&!this.gridOptionsService.get("embedFullWidthRows"))return void(this.slideInAnimation.fullWidth=!0);this.slideInAnimation.center=!0,this.slideInAnimation.left=d,this.slideInAnimation.right=a}else{if(this.isFullWidth()&&!this.gridOptionsService.get("embedFullWidthRows"))return void(this.fadeInAnimation.fullWidth=!0);this.fadeInAnimation.center=!0,this.fadeInAnimation.left=d,this.fadeInAnimation.right=a}}},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.rowType!==Ym.Normal},t.prototype.getRowType=function(){return this.rowType},t.prototype.refreshFullWidth=function(){var e=this,t=function(t,d){if(!t)return!0;var a=t.rowComp.getFullWidthCellRenderer();if(!a)return!1;if(!a.refresh)return!1;var i=e.createFullWidthParams(t.element,d);return a.refresh(i)},d=t(this.fullWidthGui,null),a=t(this.centerGui,null),i=t(this.leftGui,"left"),o=t(this.rightGui,"right");return d&&a&&i&&o},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.rowNode,Ls.EVENT_HEIGHT_CHANGED,(function(){return e.onRowHeightChanged()})),this.addManagedListener(this.rowNode,Ls.EVENT_ROW_SELECTED,(function(){return e.onRowSelected()})),this.addManagedListener(this.rowNode,Ls.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,Ls.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,Ls.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Ls.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.rowNode.detail&&this.addManagedListener(this.rowNode.parent,Ls.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,Ls.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,Ls.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,Ls.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,Ls.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,Ls.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var t=this.beans.eventService;this.addManagedListener(t,Je.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(t,Je.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(t,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(t,Je.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(t,Je.EVENT_CELL_FOCUSED,this.onCellFocused.bind(this)),this.addManagedListener(t,Je.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusCleared.bind(this)),this.addManagedListener(t,Je.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(t,Je.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(t,Je.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addDestroyFunc((function(){e.destroyBeans(e.rowDragComps,e.beans.context)})),this.addManagedPropertyListeners(["rowDragEntireRow"],(function(){e.gridOptionsService.get("rowDragEntireRow")?e.allRowGuis.forEach((function(t){e.addRowDraggerToRow(t)})):(e.destroyBeans(e.rowDragComps,e.beans.context),e.rowDragComps=[])})),this.addListenersForCellComps()},t.prototype.onColumnMoved=function(){this.updateColumnLists()},t.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,Ls.EVENT_ROW_INDEX_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,Ls.EVENT_CELL_CHANGED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellChanged(t)}))}))},t.prototype.onRowNodeDataChanged=function(e){var t=this;this.isFullWidth()!==!!this.rowNode.isFullWidthCell()?this.beans.rowRenderer.redrawRow(this.rowNode):this.isFullWidth()?this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode):(this.getAllCellCtrls().forEach((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.allRowGuis.forEach((function(e){t.setRowCompRowId(e.rowComp),t.updateRowBusinessKey(),t.setRowCompRowBusinessKey(e.rowComp)})),this.onRowSelected(),this.postProcessCss())},t.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},t.prototype.postProcessCss=function(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach((function(t){var d=e===tm.Above,a=e===tm.Below;t.rowComp.addOrRemoveCssClass("ag-row-highlight-above",d),t.rowComp.addOrRemoveCssClass("ag-row-highlight-below",a)}))},t.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},t.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-dragging",e)}))},t.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),t=1==this.rowNode.expanded;this.allRowGuis.forEach((function(d){d.rowComp.addOrRemoveCssClass("ag-row-group",e),d.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&t),d.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!t),ed(d.element,e&&t)}))},t.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},t.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists(!1,!0)},t.prototype.getRowPosition=function(){return{rowPinned:a(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},t.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 d=this.rowNode,a=this.beans.focusService.getFocusedCell(),i={rowIndex:d.rowIndex,rowPinned:d.rowPinned,column:a&&a.column};this.beans.navigationService.navigateToNextCell(e,e.key,i,!0),e.preventDefault()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!Re(e)){var t=this.allRowGuis.find((function(t){return t.element.contains(e.target)})),d=t?t.element:null,a=d===e.target,i=null;a||(i=this.beans.focusService.findNextFocusableElement(d,!1,e.shiftKey)),(this.isFullWidth()&&a||!i)&&this.beans.navigationService.onTabKeyDown(this,e)}},t.prototype.onFullWidthRowFocused=function(e){var t,d=this.rowNode,a=!!e&&(this.isFullWidth()&&e.rowIndex===d.rowIndex&&e.rowPinned==d.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",a),a&&i.focus({preventScroll:!0}))},t.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()},t.prototype.removeCellCtrl=function(e,t){var d={list:[],map:{}};return e.list.forEach((function(e){e!==t&&(d.list.push(e),d.map[e.getInstanceId()]=e)})),d},t.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)}},t.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.gridOptionsService.context,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,event:t}},t.prototype.createRowEventWithSource=function(e,t){var d=this.createRowEvent(e,t);return d.source=this,d},t.prototype.onRowDblClick=function(e){if(!Re(e)){var t=this.createRowEventWithSource(Je.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},t.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=oa(e.target,"ag-row-drag",3),this.isFullWidth()){var t=this.rowNode,d=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:t.rowIndex,column:d.getAllDisplayedColumns()[0],rowPinned:t.rowPinned,forceBrowserFocus:!0})}},t.prototype.onRowClick=function(e){if(!(Re(e)||this.lastMouseDownOnDragger)){var t=this.createRowEventWithSource(Je.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var d=e.ctrlKey||e.metaKey,a=e.shiftKey;if(!(this.gridOptionsService.get("groupSelectsChildren")&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.gridOptionsService.isRowSelection()||this.gridOptionsService.get("suppressRowClickSelection"))){var i=this.gridOptionsService.get("rowMultiSelectWithClick"),o=!this.gridOptionsService.get("suppressRowDeselection"),s="rowClicked";if(this.rowNode.isSelected())i?this.rowNode.setSelectedParams({newValue:!1,event:e,source:s}):d?o&&this.rowNode.setSelectedParams({newValue:!1,event:e,source:s}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!a,rangeSelect:a,event:e,source:s});else{var l=!i&&!d;this.rowNode.setSelectedParams({newValue:!0,clearSelection:l,rangeSelect:a,event:e,source:s})}}}},t.prototype.setupDetailRowAutoHeight=function(e){var t=this;if(this.rowType===Ym.FullWidthDetail&&this.gridOptionsService.get("detailRowAutoHeight")){var d=function(){var d=e.clientHeight;if(null!=d&&d>0){t.beans.frameworkOverrides.setTimeout((function(){t.rowNode.setRowHeight(d),t.beans.clientSideRowModel?t.beans.clientSideRowModel.onRowHeightChanged():t.beans.serverSideRowModel&&t.beans.serverSideRowModel.onRowHeightChanged()}),0)}},a=this.beans.resizeObserverService.observeResize(e,d);this.addDestroyFunc(a),d()}},t.prototype.createFullWidthParams=function(e,t){var d=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.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(e,t,a,i){return d.addFullWidthRowDragging(e,t,a,i)}}},t.prototype.addFullWidthRowDragging=function(e,t,d,a){if(void 0===d&&(d=""),this.isFullWidth()){var i=new Us((function(){return d}),this.rowNode,void 0,e,t,a);this.createManagedBean(i,this.beans.context)}},t.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var t="ag-row-level-"+e,d="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(e){e.rowComp.addOrRemoveCssClass(t,!0),e.rowComp.addOrRemoveCssClass(d,!1)}))}this.rowLevel=e},t.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},t.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},t.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},t.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)})))},t.prototype.stopEditing=function(e){var t,d;if(void 0===e&&(e=!1),!this.stoppingRowEdit){var a=this.getAllCellCtrls(),i=this.editingRow;this.stoppingRowEdit=!0;var o=!1;try{for(var s=Pr(a),l=s.next();!l.done;l=s.next()){var m=l.value.stopEditing(e);i&&!e&&!o&&m&&(o=!0)}}catch(u){t={error:u}}finally{try{l&&!l.done&&(d=s.return)&&d.call(s)}finally{if(t)throw t.error}}if(o){var r=this.createRowEvent(Je.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(r)}i&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},t.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)}))},t.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(Je.EVENT_ROW_EDITING_STARTED):this.createRowEvent(Je.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},t.prototype.startRowEditing=function(e,t,d){(void 0===e&&(e=null),void 0===t&&(t=null),void 0===d&&(d=null),this.editingRow)||this.getAllCellCtrls().reduce((function(a,i){var o=i===t;return o?i.startEditing(e,o,d):i.startEditing(null,o,d),!!a||i.isEditing()}),!1)&&this.setEditingRow(!0)},t.prototype.getAllCellCtrls=function(){return 0===this.leftCellCtrls.list.length&&0===this.rightCellCtrls.list.length?this.centerCellCtrls.list:Sr(Sr(Sr([],hr(this.centerCellCtrls.list),!1),hr(this.leftCellCtrls.list),!1),hr(this.rightCellCtrls.list),!1)},t.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)}))}))},t.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)}))}))},t.prototype.setStylesFromGridOptions=function(e,t){var d=this;e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(t,(function(e){return e.rowComp.setUserStyles(d.rowStyles)}))},t.prototype.getPinnedForContainer=function(e){return e===gr.LEFT?"left":e===gr.RIGHT?"right":null},t.prototype.getInitialRowClasses=function(e){var t=this.getPinnedForContainer(e),d={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(d)},t.prototype.processStylesFromGridOptions=function(){var e=this.gridOptionsService.get("rowStyle");if(!e||"function"!==typeof e){var t,d=this.gridOptionsService.getCallback("getRowStyle");if(d)t=d({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex});return t||e?Object.assign({},e,t):this.emptyStyle}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},t.prototype.onRowSelected=function(e){var t=this,d=!!this.rowNode.isSelected();this.forEachGui(e,(function(e){e.rowComp.addOrRemoveCssClass("ag-row-selected",d),fd(e.element,!!d||void 0);var a=t.createAriaLabel();Ut(e.element,null==a?"":a)}))},t.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!e||!this.gridOptionsService.get("suppressRowDeselection"))return this.beans.localeService.getLocaleTextFunc()(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to ".concat(e?"deselect":"select"," this row."))},t.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},t.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,Ls.EVENT_MOUSE_ENTER,(function(){t.beans.dragService.isDragging()||t.gridOptionsService.get("suppressRowHoverHighlight")||(e.classList.add("ag-row-hover"),t.rowNode.setHovered(!0))})),this.addManagedListener(this.rowNode,Ls.EVENT_MOUSE_LEAVE,(function(){e.classList.remove("ag-row-hover"),t.rowNode.setHovered(!1)})))},t.prototype.roundRowTopToBounds=function(e){var t=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),d=this.applyPaginationOffset(t.top,!0)-100,a=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(d,e),a)},t.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},t.prototype.forEachGui=function(e,t){e?t(e):this.allRowGuis.forEach(t)},t.prototype.onRowHeightChanged=function(e){if(null!=this.rowNode.rowHeight){var t=this.rowNode.rowHeight,d=this.beans.environment.getDefaultRowHeight(),a=this.gridOptionsService.isGetRowHeightFunction()?this.gridOptionsService.getRowHeightForNode(this.rowNode).height:void 0,i=a?"".concat(Math.min(d,a)-2,"px"):void 0;this.forEachGui(e,(function(e){e.element.style.height="".concat(t,"px"),i&&e.element.style.setProperty("--ag-line-height",i)}))}},t.prototype.addEventListener=function(t,d){e.prototype.addEventListener.call(this,t,d)},t.prototype.removeEventListener=function(t,d){e.prototype.removeEventListener.call(this,t,d)},t.prototype.destroyFirstPass=function(){this.active=!1,this.gridOptionsService.isAnimateRows()&&this.setupRemoveAnimation(),this.rowNode.setHovered(!1);var t=this.createRowEvent(Je.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),e.prototype.destroy.call(this)},t.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)}))},t.prototype.destroySecondPass=function(){this.allRowGuis.length=0,this.stopEditing();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)},t.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)}))},t.prototype.onCellFocused=function(){this.onCellFocusChanged()},t.prototype.onCellFocusCleared=function(){this.onCellFocusChanged()},t.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)},t.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},t.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},t.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},t.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()||this.rowNode.sticky?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},t.prototype.setRowTop=function(e){if(!this.printLayout&&i(e)){var t=this.applyPaginationOffset(e),d=this.rowNode.isRowPinned()||this.rowNode.sticky?t:this.beans.rowContainerHeightService.getRealPixelPosition(t),a="".concat(d,"px");this.setRowTopStyle(a)}},t.prototype.getInitialRowTop=function(e){return this.gridOptionsService.get("suppressRowTransform")?this.getInitialRowTopShared(e):void 0},t.prototype.getInitialTransform=function(e){return this.gridOptionsService.get("suppressRowTransform")?void 0:"translateY(".concat(this.getInitialRowTopShared(e),")")},t.prototype.getInitialRowTopShared=function(e){if(this.printLayout)return"";var t;if(this.isSticky())t=this.rowNode.stickyRowTop;else{var d=this.slideInAnimation[e]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,a=this.applyPaginationOffset(d);t=this.rowNode.isRowPinned()?a:this.beans.rowContainerHeightService.getRealPixelPosition(a)}return t+"px"},t.prototype.setRowTopStyle=function(e){var t=this.gridOptionsService.get("suppressRowTransform");this.allRowGuis.forEach((function(d){return t?d.rowComp.setTop(e):d.rowComp.setTransform("translateY(".concat(e,")"))}))},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getCellCtrl=function(e){var t=null;return this.getAllCellCtrls().forEach((function(d){d.getColumn()==e&&(t=d)})),null!=t||this.getAllCellCtrls().forEach((function(d){d.getColSpanningList().indexOf(e)>=0&&(t=d)})),t},t.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},t.prototype.getRowIndex=function(){return this.rowNode.getRowIndexString()},t.prototype.updateRowIndexes=function(e){var t=this.rowNode.getRowIndexString(),d=this.beans.headerNavigationService.getHeaderRowCount()+this.beans.filterManager.getHeaderRowCount(),a=this.rowNode.rowIndex%2===0,i=d+this.rowNode.rowIndex+1;this.forEachGui(e,(function(e){e.rowComp.setRowIndex(t),e.rowComp.addOrRemoveCssClass("ag-row-even",a),e.rowComp.addOrRemoveCssClass("ag-row-odd",!a),sd(e.element,i)}))},t.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},t.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},t.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},t.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},t.DOM_DATA_KEY_ROW_CTRL="renderedRow",t}(ze),Br=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),vr=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Ir=function(e,t){var d="function"===typeof Symbol&&e[Symbol.iterator];if(!d)return e;var a,i,o=d.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},Gr=function(e){function t(t){var d=e.call(this)||this;return d.element=t,d}return Br(t,e),t.prototype.postConstruct=function(){this.addKeyboardListeners(),this.addMouseListeners(),this.mockContextMenuForIPad()},t.prototype.addKeyboardListeners=function(){var e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedListener(this.element,e,t)},t.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click",ke("touchstart")?"touchstart":"mousedown"].forEach((function(t){var d=e.processMouseEvent.bind(e,t);e.addManagedListener(e.element,t,d)}))},t.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!Re(t)){var d=this.getRowForEvent(t),a=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,d,a):(a&&a.onMouseEvent(e,t),d&&d.onMouseEvent(e,t))}},t.prototype.mockContextMenuForIPad=function(){var e=this;if(Id()){var t=new ds(this.element);this.addManagedListener(t,ds.EVENT_LONG_TAP,(function(t){var d=e.getRowForEvent(t.touchEvent),a=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,d,a)})),this.addDestroyFunc((function(){return t.destroy()}))}},t.prototype.getRowForEvent=function(e){for(var t=e.target;t;){var d=this.gridOptionsService.getDomData(t,Dr.DOM_DATA_KEY_ROW_CTRL);if(d)return d;t=t.parentElement}return null},t.prototype.handleContextMenuMouseEvent=function(e,t,d,a){var i=d?d.getRowNode():null,o=a?a.getColumn():null,s=null;if(o){var l=e||t;a.dispatchCellContextMenuEvent(l),s=this.valueService.getValue(o,i)}var m=this.ctrlsService.getGridBodyCtrl(),r=a?a.getGui():m.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,t,i,o,s,r)},t.prototype.getControlsForEventTarget=function(e){return{cellCtrl:Ae(this.gridOptionsService,e,qr.DOM_DATA_KEY_CELL_CTRL),rowCtrl:Ae(this.gridOptionsService,e,Dr.DOM_DATA_KEY_ROW_CTRL)}},t.prototype.processKeyboardEvent=function(e,t){var d=this.getControlsForEventTarget(t.target),a=d.cellCtrl,i=d.rowCtrl;t.defaultPrevented||(a?this.processCellKeyboardEvent(a,e,t):i&&i.isFullWidth()&&this.processFullWidthRowKeyboardEvent(i,e,t))},t.prototype.processCellKeyboardEvent=function(e,t,d){var a=e.getRowNode(),i=e.getColumn(),o=e.isEditing();Qa(this.gridOptionsService,d,a,i,o)||"keydown"===t&&(!o&&this.navigationService.handlePageScrollingKey(d)||e.onKeyDown(d),this.doGridOperations(d,e.isEditing()),Ya(d)&&e.processCharacter(d));if("keydown"===t){var s=e.createEvent(d,Je.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(s)}},t.prototype.processFullWidthRowKeyboardEvent=function(e,t,d){var a=e.getRowNode(),i=this.focusService.getFocusedCell(),o=i&&i.column;if(!Qa(this.gridOptionsService,d,a,o,!1)){var s=d.key;if("keydown"===t)switch(s){case Ka.PAGE_HOME:case Ka.PAGE_END:case Ka.PAGE_UP:case Ka.PAGE_DOWN:this.navigationService.handlePageScrollingKey(d,!0);break;case Ka.UP:case Ka.DOWN:e.onKeyboardNavigate(d);break;case Ka.TAB:e.onTabKeyDown(d)}}if("keydown"===t){var l=e.createRowEvent(Je.EVENT_CELL_KEY_DOWN,d);this.eventService.dispatchEvent(l)}},t.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t&&this.mouseEventService.isEventFromThisGrid(e)){var d=Xa(e);return d===Ka.A?this.onCtrlAndA(e):d===Ka.C?this.onCtrlAndC(e):d===Ka.D?this.onCtrlAndD(e):d===Ka.V?this.onCtrlAndV(e):d===Ka.X?this.onCtrlAndX(e):d===Ka.Y?this.onCtrlAndY():d===Ka.Z?this.onCtrlAndZ(e):void 0}},t.prototype.onCtrlAndA=function(e){var t=this,d=t.pinnedRowModel,a=t.paginationProxy,i=t.rangeService;if(i&&a.isRowsToRender()){var o=Ir([d.isEmpty("top"),d.isEmpty("bottom")],2),l=o[0]?null:"top",m=void 0,r=void 0;o[1]?(m=null,r=this.paginationProxy.getRowCount()-1):(m="bottom",r=d.getPinnedBottomRowData().length-1);var u=this.columnModel.getAllDisplayedColumns();if(s(u))return;i.setCellRange({rowStartIndex:0,rowStartPinned:l,rowEndIndex:r,rowEndPinned:m,columnStart:u[0],columnEnd:be(u)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){if(this.clipboardService&&!this.gridOptionsService.get("enableCellTextSelection")){var t=this.getControlsForEventTarget(e.target),d=t.cellCtrl,a=t.rowCtrl;(null===d||void 0===d?void 0:d.isEditing())||(null===a||void 0===a?void 0:a.isEditing())||(e.preventDefault(),this.clipboardService.copyToClipboard())}},t.prototype.onCtrlAndX=function(e){if(this.clipboardService&&!this.gridOptionsService.get("enableCellTextSelection")&&!this.gridOptionsService.get("suppressCutToClipboard")){var t=this.getControlsForEventTarget(e.target),d=t.cellCtrl,a=t.rowCtrl;(null===d||void 0===d?void 0:d.isEditing())||(null===a||void 0===a?void 0:a.isEditing())||(e.preventDefault(),this.clipboardService.cutToClipboard(void 0,"ui"))}},t.prototype.onCtrlAndV=function(e){var t=this.getControlsForEventTarget(e.target),d=t.cellCtrl,a=t.rowCtrl;(null===d||void 0===d?void 0:d.isEditing())||(null===a||void 0===a?void 0:a.isEditing())||this.clipboardService&&!this.gridOptionsService.get("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){this.clipboardService&&!this.gridOptionsService.get("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),e.preventDefault()},t.prototype.onCtrlAndZ=function(e){this.gridOptionsService.get("undoRedoCellEditing")&&(e.preventDefault(),e.shiftKey?this.undoRedoService.redo("ui"):this.undoRedoService.undo("ui"))},t.prototype.onCtrlAndY=function(){this.undoRedoService.redo("ui")},vr([de("mouseEventService")],t.prototype,"mouseEventService",void 0),vr([de("valueService")],t.prototype,"valueService",void 0),vr([ae("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),vr([de("ctrlsService")],t.prototype,"ctrlsService",void 0),vr([de("navigationService")],t.prototype,"navigationService",void 0),vr([de("focusService")],t.prototype,"focusService",void 0),vr([de("undoRedoService")],t.prototype,"undoRedoService",void 0),vr([de("columnModel")],t.prototype,"columnModel",void 0),vr([de("paginationProxy")],t.prototype,"paginationProxy",void 0),vr([de("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),vr([ae("rangeService")],t.prototype,"rangeService",void 0),vr([ae("clipboardService")],t.prototype,"clipboardService",void 0),vr([Z],t.prototype,"postConstruct",null),t}(ze),Mr=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),wr=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Lr=function(e,t){var d="function"===typeof Symbol&&e[Symbol.iterator];if(!d)return e;var a,i,o=d.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},Er=function(e,t,d){if(d||2===arguments.length)for(var a,i=0,o=t.length;i0;){var m;if(i0)l-=(m=d[o++]).getActualWidth(),s.push(m)}return s},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=la(this.gridBodyCtrl.getBodyViewportElement());if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:Je.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)},t.prototype.isHorizontalScrollShowing=function(){return this.centerContainerCtrl.isHorizontalScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},wr([de("ctrlsService")],t.prototype,"ctrlsService",void 0),wr([de("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),wr([de("columnModel")],t.prototype,"columnModel",void 0),wr([de("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),wr([Z],t.prototype,"postConstruct",null),t}(ze),Rr=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),kr=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Ar=function(e){function t(t){var d=e.call(this)||this;return d.element=t,d}return Rr(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Je.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;da(this.element,t),va(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedLeftWidth()},kr([de("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),kr([Z],t.prototype,"postConstruct",null),t}(ze),xr=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Wr=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Fr=function(e){function t(t){var d=e.call(this)||this;return d.element=t,d}return xr(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Je.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;da(this.element,t),va(this.element,e)},t.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedRightWidth()},Wr([de("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),Wr([Z],t.prototype,"postConstruct",null),t}(ze),Hr=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Nr=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},jr=function(e){function t(t,d){var a=e.call(this)||this;return a.eContainer=t,a.eViewport=d,a}return Hr(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Je.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),t=null!=e?"".concat(e,"px"):"";this.eContainer.style.height=t,this.eViewport&&(this.eViewport.style.height=t)},Nr([de("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),Nr([Z],t.prototype,"postConstruct",null),t}(ze),zr=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Ur=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Kr=function(e){function t(t){var d=e.call(this)||this;return d.eContainer=t,d}return zr(t,e),t.prototype.postConstruct=function(){var e=this;o(this.rangeService)||(this.params={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.addManagedPropertyListener("enableRangeSelection",(function(t){t.currentValue?e.enableFeature():e.disableFeature()})),this.addDestroyFunc((function(){return e.disableFeature()})),this.gridOptionsService.get("enableRangeSelection")&&this.enableFeature())},t.prototype.enableFeature=function(){this.dragService.addDragSource(this.params)},t.prototype.disableFeature=function(){this.dragService.removeDragSource(this.params)},Ur([ae("rangeService")],t.prototype,"rangeService",void 0),Ur([de("dragService")],t.prototype,"dragService",void 0),Ur([Z],t.prototype,"postConstruct",null),t}(ze),Yr=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Qr=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},$r=function(e){function t(t,d){void 0===d&&(d=!1);var a=e.call(this)||this;return a.callback=t,a.addSpacer=d,a}return Yr(t,e),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,Je.EVENT_LEFT_PINNED_WIDTH_CHANGED,e),this.addSpacer&&(this.addManagedListener(this.eventService,Je.EVENT_RIGHT_PINNED_WIDTH_CHANGED,e),this.addManagedListener(this.eventService,Je.EVENT_SCROLL_VISIBILITY_CHANGED,e),this.addManagedListener(this.eventService,Je.EVENT_SCROLLBAR_WIDTH_CHANGED,e)),this.setWidth()},t.prototype.setWidth=function(){var e,t=this.columnModel,d=this.gridOptionsService.isDomLayout("print"),a=t.getBodyContainerWidth(),i=t.getDisplayedColumnsLeftWidth(),o=t.getDisplayedColumnsRightWidth();d?e=a+i+o:(e=a,this.addSpacer&&0===(this.gridOptionsService.get("enableRtl")?i:o)&&this.scrollVisibleService.isVerticalScrollShowing()&&(e+=this.gridOptionsService.getScrollbarWidth()));this.callback(e)},Qr([de("columnModel")],t.prototype,"columnModel",void 0),Qr([de("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Qr([Z],t.prototype,"postConstruct",null),t}(ze),Xr=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Jr=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Zr=function(e,t){var d="function"===typeof Symbol&&e[Symbol.iterator];if(!d)return e;var a,i,o=d.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},eu=function(e,t,d){if(d||2===arguments.length)for(var a,i=0,o=t.length;i=0&&t()},t.prototype.getContainerElement=function(){return this.eContainer},t.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},t.prototype.setComp=function(e,t,d){var a=this;this.comp=e,this.eContainer=t,this.eViewport=d,this.createManagedBean(new Gr(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var i=[Tr.TOP_CENTER,Tr.TOP_LEFT,Tr.TOP_RIGHT],o=[Tr.STICKY_TOP_CENTER,Tr.STICKY_TOP_LEFT,Tr.STICKY_TOP_RIGHT],s=[Tr.BOTTOM_CENTER,Tr.BOTTOM_LEFT,Tr.BOTTOM_RIGHT],l=[Tr.CENTER,Tr.LEFT,Tr.RIGHT],m=eu(eu(eu(eu([],Zr(i),!1),Zr(s),!1),Zr(l),!1),Zr(o),!1),r=[Tr.CENTER,Tr.LEFT,Tr.RIGHT,Tr.FULL_WIDTH],u=[Tr.CENTER,Tr.TOP_CENTER,Tr.STICKY_TOP_CENTER,Tr.BOTTOM_CENTER],n=[Tr.LEFT,Tr.BOTTOM_LEFT,Tr.TOP_LEFT,Tr.STICKY_TOP_LEFT],f=[Tr.RIGHT,Tr.BOTTOM_RIGHT,Tr.TOP_RIGHT,Tr.STICKY_TOP_RIGHT];this.forContainers(n,(function(){a.pinnedWidthFeature=a.createManagedBean(new Ar(a.eContainer)),a.addManagedListener(a.eventService,Je.EVENT_LEFT_PINNED_WIDTH_CHANGED,(function(){return a.onPinnedWidthChanged()}))})),this.forContainers(f,(function(){a.pinnedWidthFeature=a.createManagedBean(new Fr(a.eContainer)),a.addManagedListener(a.eventService,Je.EVENT_RIGHT_PINNED_WIDTH_CHANGED,(function(){return a.onPinnedWidthChanged()}))})),this.forContainers(r,(function(){return a.createManagedBean(new jr(a.eContainer,a.name===Tr.CENTER?d:void 0))})),this.forContainers(m,(function(){return a.createManagedBean(new Kr(a.eContainer))})),this.forContainers(u,(function(){return a.createManagedBean(new $r((function(e){return a.comp.setContainerWidth("".concat(e,"px"))})))})),this.addListeners(),this.registerWithCtrlsService()},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return e.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return e.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_ROWS_CHANGED,(function(t){return e.onDisplayedRowsChanged(t.afterScroll)})),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},t.prototype.listenOnDomOrder=function(){var e=this;if([Tr.STICKY_TOP_CENTER,Tr.STICKY_TOP_LEFT,Tr.STICKY_TOP_RIGHT,Tr.STICKY_TOP_FULL_WIDTH].indexOf(this.name)>=0)this.comp.setDomOrder(!0);else{var t=function(){var t=e.gridOptionsService.get("ensureDomOrder"),d=e.gridOptionsService.isDomLayout("print");e.comp.setDomOrder(t||d)};this.addManagedPropertyListener("domLayout",t),t()}},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([Tr.TOP_CENTER,Tr.STICKY_TOP_CENTER,Tr.BOTTOM_CENTER],(function(){e.addManagedListener(e.eViewport,"scroll",(function(){return e.eViewport.scrollLeft=0}))}))},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([Tr.CENTER],(function(){return e.onHorizontalViewportChanged()}))},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([Tr.CENTER],(function(){return e.onHorizontalViewportChanged()}))},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(e){void 0===e&&(e=!1);var t=this.getCenterWidth(),d=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(t,d,e)},t.prototype.getCenterWidth=function(){return ma(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return pa(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 Ca(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return pa(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsService.get("alwaysShowHorizontalScroll")||Oa(this.eViewport)},t.prototype.getViewportElement=function(){return this.eViewport},t.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX(".concat(e,"px)")},t.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},t.prototype.setCenterViewportScrollLeft=function(e){ca(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())},t.prototype.onDisplayedRowsChanged=function(e){var t=this;if(void 0===e&&(e=!1),this.visible){var d=this.gridOptionsService.isDomLayout("print"),a=this.gridOptionsService.get("embedFullWidthRows")||d,i=this.getRowCtrls().filter((function(e){var d=e.isFullWidth();return t.isFullWithContainer?!a&&d:a||!d}));this.comp.setRowCtrls(i,e)}else this.comp.setRowCtrls(this.EMPTY_CTRLS,!1)},t.prototype.getRowCtrls=function(){switch(this.name){case Tr.TOP_CENTER:case Tr.TOP_LEFT:case Tr.TOP_RIGHT:case Tr.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case Tr.STICKY_TOP_CENTER:case Tr.STICKY_TOP_LEFT:case Tr.STICKY_TOP_RIGHT:case Tr.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case Tr.BOTTOM_CENTER:case Tr.BOTTOM_LEFT:case Tr.BOTTOM_RIGHT:case Tr.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getCentreRowCtrls()}},Jr([de("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Jr([de("dragService")],t.prototype,"dragService",void 0),Jr([de("ctrlsService")],t.prototype,"ctrlsService",void 0),Jr([de("columnModel")],t.prototype,"columnModel",void 0),Jr([de("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Jr([de("animationFrameService")],t.prototype,"animationFrameService",void 0),Jr([de("rowRenderer")],t.prototype,"rowRenderer",void 0),Jr([Z],t.prototype,"postConstruct",null),t}(ze),ou=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),su=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},lu='
\n \n \n \n \n \n \n \n
'),mu=function(e){function t(){return e.call(this,lu)||this}return ou(t,e),t.prototype.init=function(){var e=this,t=function(e,t){var d="".concat(e,"px");t.style.minHeight=d,t.style.height=d},d={setRowAnimationCssOnBodyViewport:function(t,d){return e.setRowAnimationCssOnBodyViewport(t,d)},setColumnCount:function(t){return ld(e.getGui(),t)},setRowCount:function(t){return od(e.getGui(),t)},setTopHeight:function(d){return t(d,e.eTop)},setBottomHeight:function(d){return t(d,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,d){return e.addOrRemoveCssClass(t,d)},updateLayoutClasses:function(t,d){[e.eBodyViewport.classList,e.eBody.classList].forEach((function(e){e.toggle(fm.AUTO_HEIGHT,d.autoHeight),e.toggle(fm.NORMAL,d.normal),e.toggle(fm.PRINT,d.print)})),e.addOrRemoveCssClass(fm.AUTO_HEIGHT,d.autoHeight),e.addOrRemoveCssClass(fm.NORMAL,d.normal),e.addOrRemoveCssClass(fm.PRINT,d.print)},setAlwaysVerticalScrollClass:function(t,d){return e.eBodyViewport.classList.toggle(Um,d)},registerBodyViewportResizeListener:function(t){var d=e.resizeObserverService.observeResize(e.eBodyViewport,t);e.addDestroyFunc((function(){return d()}))},setPinnedTopBottomOverflowY:function(t){return e.eTop.style.overflowY=e.eBottom.style.overflowY=t},setCellSelectableCss:function(t,d){[e.eTop,e.eBodyViewport,e.eBottom].forEach((function(e){return e.classList.toggle(t,d)}))},setBodyViewportWidth:function(t){return e.eBodyViewport.style.width=t}};this.ctrl=this.createManagedBean(new Km),this.ctrl.setComp(d,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService&&this.gridOptionsService.get("enableRangeSelection")||"multiple"===this.gridOptionsService.get("rowSelection"))&&id(this.getGui(),!0)},t.prototype.setRowAnimationCssOnBodyViewport=function(e,t){var d=this.eBodyViewport.classList;d.toggle(Em.ANIMATION_ON,t),d.toggle(Em.ANIMATION_OFF,!t)},t.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},su([de("resizeObserverService")],t.prototype,"resizeObserverService",void 0),su([ae("rangeService")],t.prototype,"rangeService",void 0),su([Ti("eBodyViewport")],t.prototype,"eBodyViewport",void 0),su([Ti("eStickyTop")],t.prototype,"eStickyTop",void 0),su([Ti("eTop")],t.prototype,"eTop",void 0),su([Ti("eBottom")],t.prototype,"eBottom",void 0),su([Ti("gridHeader")],t.prototype,"headerRootComp",void 0),su([Ti("eBody")],t.prototype,"eBody",void 0),su([Z],t.prototype,"init",null),t}(hi),ru=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),uu=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},nu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ru(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Je.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:Je.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(t)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},uu([de("ctrlsService")],t.prototype,"ctrlsService",void 0),uu([Z],t.prototype,"postConstruct",null),t=uu([te("scrollVisibleService")],t)}(ze),fu=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),pu=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},cu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.gridInstanceId=d.gridInstanceSequence.next(),t}var d;return fu(t,e),d=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(e){e[d.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(e){return Ae(this.gridOptionsService,e.target,qr.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(e){return this.isElementInThisGrid(e.target)},t.prototype.isElementInThisGrid=function(e){for(var t=e;t;){var a=t[d.GRID_DOM_KEY];if(i(a))return a===this.gridInstanceId;t=t.parentElement}return!1},t.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},t.prototype.getNormalisedPosition=function(e){var t,d,a=this.gridOptionsService.isDomLayout("normal"),i=e;if(null!=i.clientX||null!=i.clientY?(t=i.clientX,d=i.clientY):(t=i.x,d=i.y),a){var o=this.ctrlsService.getGridBodyCtrl(),s=o.getScrollFeature().getVScrollPosition();t+=o.getScrollFeature().getHScrollPosition().left,d+=s.top}return{x:t,y:d}},t.gridInstanceSequence=new mi,t.GRID_DOM_KEY="__ag_grid_instance",pu([de("ctrlsService")],t.prototype,"ctrlsService",void 0),t=d=pu([te("mouseEventService")],t)}(ze),_u=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),yu=function(){return yu=Object.assign||function(e){for(var t,d=1,a=arguments.length;d=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},qu=function(e){function t(){var t=e.call(this)||this;return t.onPageDown=F(t.onPageDown,100),t.onPageUp=F(t.onPageUp,100),t}return _u(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCon=t.gridBodyCtrl}))},t.prototype.handlePageScrollingKey=function(e,t){void 0===t&&(t=!1);var d=e.key,a=e.altKey,i=e.ctrlKey||e.metaKey,o=!!this.rangeService&&e.shiftKey,s=this.mouseEventService.getCellPositionForEvent(e),l=!1;switch(d){case Ka.PAGE_HOME:case Ka.PAGE_END:i||a||(this.onHomeOrEndKey(d),l=!0);break;case Ka.LEFT:case Ka.RIGHT:case Ka.UP:case Ka.DOWN:if(!s)return!1;!i||a||o||(this.onCtrlUpDownLeftRight(d,s),l=!0);break;case Ka.PAGE_DOWN:case Ka.PAGE_UP:i||a||(l=this.handlePageUpDown(d,s,t))}return l&&e.preventDefault(),l},t.prototype.handlePageUpDown=function(e,t,d){return d&&(t=this.focusService.getFocusedCell()),!!t&&(e===Ka.PAGE_UP?this.onPageUp(t):this.onPageDown(t),!0)},t.prototype.navigateTo=function(e){var t=e.scrollIndex,d=e.scrollType,a=e.scrollColumn,o=e.focusIndex,s=e.focusColumn;if(i(a)&&!a.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(a),i(t)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,d),e.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(o),this.focusService.setFocusedCell({rowIndex:o,column:s,rowPinned:null,forceBrowserFocus:!0}),this.rangeService){var l={rowIndex:o,rowPinned:null,column:s};this.rangeService.setRangeToCell(l)}},t.prototype.onPageDown=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),d=this.getViewportHeight(),a=this.paginationProxy.getPixelOffset(),i=t.top+d,o=this.paginationProxy.getRowIndexAtPixel(i+a);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,o):this.navigateToNextPage(e,o)},t.prototype.onPageUp=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),d=this.paginationProxy.getPixelOffset(),a=t.top,i=this.paginationProxy.getRowIndexAtPixel(a+d);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,i,!0):this.navigateToNextPage(e,i,!0)},t.prototype.navigateToNextPage=function(e,t,d){void 0===d&&(d=!1);var a,i=this.getViewportHeight(),o=this.paginationProxy.getPageFirstRow(),s=this.paginationProxy.getPageLastRow(),l=this.paginationProxy.getPixelOffset(),m=this.paginationProxy.getRow(e.rowIndex),r=d?(null===m||void 0===m?void 0:m.rowHeight)-i-l:i-l,u=(null===m||void 0===m?void 0:m.rowTop)+r,n=this.paginationProxy.getRowIndexAtPixel(u+l);if(n===e.rowIndex){var f=d?-1:1;t=n=e.rowIndex+f}d?(a="bottom",ns&&(n=s),t>s&&(t=s)),this.isRowTallerThanView(n)&&(t=n,a="top"),this.navigateTo({scrollIndex:t,scrollType:a,scrollColumn:null,focusIndex:n,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,t,d){var a=this;void 0===d&&(d=!1),this.navigateTo({scrollIndex:t,scrollType:d?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout((function(){var i=a.getNextFocusIndexForAutoHeight(e,d);a.navigateTo({scrollIndex:t,scrollType:d?"bottom":"top",scrollColumn:null,focusIndex:i,focusColumn:e.column,isAsync:!0})}),50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,t){var d;void 0===t&&(t=!1);for(var a=t?-1:1,i=this.getViewportHeight(),o=this.paginationProxy.getPageLastRow(),s=0,l=e.rowIndex;l>=0&&l<=o;){var m=this.paginationProxy.getRow(l);if(m){var r=null!==(d=m.rowHeight)&&void 0!==d?d:0;if(s+r>i)break;s+=r}l+=a}return Math.max(0,Math.min(l,o))},t.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),t=this.gridOptionsService.getScrollbarWidth(),d=e.bottom-e.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(d-=t),d},t.prototype.isRowTallerThanView=function(e){var t=this.paginationProxy.getRow(e);if(!t)return!1;var d=t.rowHeight;return"number"===typeof d&&d>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,t){var d=this.cellNavigationService.getNextCellToFocus(e,t,!0),a=d.rowIndex,i=d.column;this.navigateTo({scrollIndex:a,scrollType:null,scrollColumn:i,focusIndex:a,focusColumn:i})},t.prototype.onHomeOrEndKey=function(e){var t=e===Ka.PAGE_HOME,d=this.columnModel.getAllDisplayedColumns(),a=t?d[0]:be(d),i=t?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:i,scrollType:null,scrollColumn:a,focusIndex:i,focusColumn:a})},t.prototype.onTabKeyDown=function(e,t){var d=t.shiftKey;if(this.tabToNextCellCommon(e,d,t))t.preventDefault();else if(d){var a=e.getRowPosition(),i=a.rowIndex;(a.rowPinned?0===i:i===this.paginationProxy.getPageFirstRow())&&(0===this.gridOptionsService.get("headerHeight")?this.focusService.focusNextGridCoreContainer(!0,!0):(t.preventDefault(),this.focusService.focusPreviousFromFirstCell(t)))}else e instanceof qr&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(d)&&t.preventDefault()},t.prototype.tabToNextCell=function(e,t){var d=this.focusService.getFocusedCell();if(!d)return!1;var a=this.getCellByPosition(d);return!!(a||(a=this.rowRenderer.getRowByPosition(d))&&a.isFullWidth())&&this.tabToNextCellCommon(a,e,t)},t.prototype.tabToNextCellCommon=function(e,t,d){var a=e.isEditing();if(!a&&e instanceof qr){var i=e.getRowCtrl();i&&(a=i.isEditing())}return(a?"fullRow"===this.gridOptionsService.get("editType")?this.moveToNextEditingRow(e,t,d):this.moveToNextEditingCell(e,t,d):this.moveToNextCellNotEditing(e,t))||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,t,d){void 0===d&&(d=null);var a=e.getCellPosition();e.getGui().focus(),e.stopEditing();var i=this.findNextCellToFocusOn(a,t,!0);return null!=i&&(i.startEditing(null,!0,d),i.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,t,d){void 0===d&&(d=null);var a=e.getCellPosition(),i=this.findNextCellToFocusOn(a,t,!0);if(null==i)return!1;var o=i.getCellPosition(),s=this.isCellEditable(a),l=this.isCellEditable(o),m=o&&a.rowIndex===o.rowIndex&&a.rowPinned===o.rowPinned;(s&&e.setFocusOutOnEditor(),m)||(e.getRowCtrl().stopEditing(),i.getRowCtrl().startRowEditing(void 0,void 0,d));return l?(i.setFocusInOnEditor(),i.focusCell()):i.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,t){var d,a=this.columnModel.getAllDisplayedColumns();d=e instanceof Dr?yu(yu({},e.getRowPosition()),{column:t?a[0]:be(a)}):e.getCellPosition();var o=this.findNextCellToFocusOn(d,t,!1);if(o instanceof qr)o.focusCell(!0);else if(o)return this.tryToFocusFullWidthRow(o.getRowPosition(),t);return i(o)},t.prototype.findNextCellToFocusOn=function(e,t,d){for(var a=e;;){e!==a&&(e=a),t||(a=this.getLastCellOfColSpan(a)),a=this.cellNavigationService.getNextTabbedCell(a,t);var o=this.gridOptionsService.getCallback("tabToNextCell");if(i(o)){var s=o({backwards:t,editing:d,previousCellPosition:e,nextCellPosition:a||null});i(s)?(s.floating&&(M("tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"),s.rowPinned=s.floating),a={rowIndex:s.rowIndex,column:s.column,rowPinned:s.rowPinned}):a=null}if(!a)return null;if(a.rowIndex<0){var l=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:l+a.rowIndex,column:a.column},fromCell:!0}),null}var m="fullRow"===this.gridOptionsService.get("editType");if(d&&!m)if(!this.isCellEditable(a))continue;this.ensureCellVisible(a);var r=this.getCellByPosition(a);if(!r){var u=this.rowRenderer.getRowByPosition(a);if(!u||!u.isFullWidth()||d)continue;return u}if(!r.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(a),r}},t.prototype.isCellEditable=function(e){var t=this.lookupRowNodeForCell(e);return!!t&&e.column.isCellEditable(t)},t.prototype.getCellByPosition=function(e){var t=this.rowRenderer.getRowByPosition(e);return t?t.getCellCtrl(e.column):null},t.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)},t.prototype.navigateToNextCell=function(e,t,d,a){for(var s=d,l=!1;s&&(s===d||!this.isValidNavigateCell(s));)this.gridOptionsService.get("enableRtl")?t===Ka.LEFT&&(s=this.getLastCellOfColSpan(s)):t===Ka.RIGHT&&(s=this.getLastCellOfColSpan(s)),l=o(s=this.cellNavigationService.getNextCellToFocus(t,s));if(l&&e&&e.key===Ka.UP&&(s={rowIndex:-1,rowPinned:null,column:d.column}),a){var m=this.gridOptionsService.getCallback("navigateToNextCell");if(i(m)){var r=m({key:t,previousCellPosition:d,nextCellPosition:s||null,event:e});i(r)?(r.floating&&(M("tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"),r.rowPinned=r.floating),s={rowPinned:r.rowPinned,rowIndex:r.rowIndex,column:r.column}):s=null}}if(s)if(s.rowIndex<0){var u=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:u+s.rowIndex,column:d.column},event:e||void 0,fromCell:!0})}else{var n=this.getNormalisedPosition(s);n?this.focusPosition(n):this.tryToFocusFullWidthRow(s)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var t=this.getCellByPosition(e);return t?(e=t.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,t){void 0===t&&(t=!1);var d=this.columnModel.getAllDisplayedColumns(),a=this.rowRenderer.getRowByPosition(e);if(!a||!a.isFullWidth())return!1;var i=this.focusService.getFocusedCell(),o={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?be(d):d[0])};this.focusPosition(o);var s=null!=i&&this.rowPositionUtils.before(o,i),l={type:Je.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:o.rowIndex,rowPinned:o.rowPinned,column:o.column,isFullWidthCell:!0,floating:o.rowPinned,fromBelow:s};return this.eventService.dispatchEvent(l),!0},t.prototype.focusPosition=function(e){this.focusService.setFocusedCell({rowIndex:e.rowIndex,column:e.column,rowPinned:e.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){return!!this.rowPositionUtils.getRowNode(e)},t.prototype.getLastCellOfColSpan=function(e){var t=this.getCellByPosition(e);if(!t)return e;var d=t.getColSpanningList();return 1===d.length?e:{rowIndex:e.rowIndex,column:be(d),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){var t=this.gridOptionsService.isGroupRowsSticky(),d=this.rowModel.getRow(e.rowIndex);!(t&&(null===d||void 0===d?void 0:d.sticky))&&o(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column)},Cu([de("mouseEventService")],t.prototype,"mouseEventService",void 0),Cu([de("paginationProxy")],t.prototype,"paginationProxy",void 0),Cu([de("focusService")],t.prototype,"focusService",void 0),Cu([ae("rangeService")],t.prototype,"rangeService",void 0),Cu([de("columnModel")],t.prototype,"columnModel",void 0),Cu([de("rowModel")],t.prototype,"rowModel",void 0),Cu([de("ctrlsService")],t.prototype,"ctrlsService",void 0),Cu([de("rowRenderer")],t.prototype,"rowRenderer",void 0),Cu([de("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Cu([de("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Cu([de("cellNavigationService")],t.prototype,"cellNavigationService",void 0),Cu([de("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Cu([Z],t.prototype,"postConstruct",null),t=Cu([te("navigationService")],t)}(ze),bu=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Pu=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},hu=function(e){function t(t){var d=e.call(this,'
')||this;return d.params=t,d}return bu(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(),d=this.params;this.addManagedListener(t,"keydown",(function(t){Qa(e.gridOptionsService,t,d.node,d.column,!0)||d.onKeyDown(t)}))},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",Pu([Z],t.prototype,"postConstruct",null),t}(ps),Su=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Tu=function(e){function t(t,d,a,i,o){var s=e.call(this)||this;s.rendererVersion=0,s.editorVersion=0,s.beans=t,s.column=d.getColumn(),s.rowNode=d.getRowNode(),s.rowCtrl=d.getRowCtrl(),s.eRow=i,s.cellCtrl=d,s.setTemplate('
'));var l=s.getGui();s.forceWrapper=d.isForceWrapper(),s.refreshWrapper(!1);var m=function(e,t){null!=t&&""!=t?l.setAttribute(e,t):l.removeAttribute(e)};Ft(l,d.getCellAriaRole()),m("col-id",d.getColumnIdSanitised());var r=d.getTabIndex();void 0!==r&&m("tabindex",r.toString());var u={addOrRemoveCssClass:function(e,t){return s.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return ga(l,e)},getFocusableElement:function(){return s.getFocusableElement()},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,d){return s.setRenderDetails(e,t,d)},setEditDetails:function(e,t,d){return s.setEditDetails(e,t,d)},getCellEditor:function(){return s.cellEditor||null},getCellRenderer:function(){return s.cellRenderer||null},getParentOfValue:function(){return s.getParentOfValue()}};return d.setComp(u,s.getGui(),s.eCellWrapper,a,o),s}return Su(t,e),t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,t,d){if(!(this.cellEditor&&!this.cellEditorPopupWrapper)){this.firstRender=null==this.firstRender;var a=this.refreshWrapper(!1);if(this.refreshEditStyles(!1),e)!(d||a)&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e));else this.destroyRenderer(),this.insertValueWithoutCellRenderer(t)}},t.prototype.setEditDetails=function(e,t,d){e?this.createCellEditorInstance(e,t,d):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,d=t||this.forceWrapper,a=d&&null==this.eCellWrapper;a&&(this.eCellWrapper=qa(''),this.getGui().appendChild(this.eCellWrapper));var i=!d&&null!=this.eCellWrapper;i&&(ya(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!d);var o=!e&&d,s=o&&null==this.eCellValue;s&&(this.eCellValue=qa(''),this.eCellWrapper.appendChild(this.eCellValue));var l=!o&&null!=this.eCellValue;l&&(ya(this.eCellValue),this.eCellValue=void 0);var m=a||i||s||l;return m&&this.removeControls(),e||t&&this.addControls(),m},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,d){var a=this,i=this.editorVersion,s=e.newAgStackInstance();if(s){var l=e.params;s.then((function(e){return a.afterCellEditorCreated(i,e,l,t,d)})),o(this.cellEditor)&&l.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var t=this.getParentOfValue();_a(t);var d=null!=e?st(e):null;null!=d&&(t.innerHTML=d)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),ya(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),ya(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,d=!this.beans.gridOptionsService.get("suppressAnimationFrame"),a=this.rendererVersion,i=e.componentClass,o=function(){if(!(t.rendererVersion!==a||!t.isAlive())){var d=e.newAgStackInstance(),o=t.afterCellRendererCreated.bind(t,a,i);d&&d.then(o)}};d&&this.firstRender?this.beans.animationFrameService.createTask(o,this.rowNode.rowIndex,"createTasksP2"):o()},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,d){if(!this.isAlive()||e!==this.rendererVersion)this.beans.context.destroyBean(d);else if(this.cellRenderer=d,this.cellRendererClass=t,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var a=this.getParentOfValue();_a(a),a.appendChild(this.cellRendererGui)}},t.prototype.afterCellEditorCreated=function(e,t,d,a,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 ".concat(this.column.getId()," is missing getGui() method")),void this.beans.context.destroyBean(t);this.cellEditor=t,this.cellEditorGui=t.getGui();var o=a||void 0!==t.isPopup&&t.isPopup();o?this.addPopupCellEditor(d,i):this.addInCellEditor(),this.refreshEditStyles(!0,o),t.afterGuiAttached&&t.afterGuiAttached()}},t.prototype.refreshEditStyles=function(e,t){var d;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===(d=this.rowCtrl)||void 0===d||d.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 d=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 a=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new hu(e));var i=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&i.appendChild(this.cellEditorGui);var o=this.beans.popupService,s=this.beans.gridOptionsService.get("stopEditingWhenCellsLoseFocus"),l=null!=t?t:a.getPopupPosition?a.getPopupPosition():"over",m=this.beans.gridOptionsService.get("enableRtl"),r={ePopup:i,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:l,alignSide:m?"right":"left",keepWithinBounds:!0},u=o.positionPopupByComponent.bind(o,r),n=this.beans.localeService.getLocaleTextFunc(),f=o.addPopup({modal:s,eChild:i,closeOnEsc:!0,closedCallback:function(){d.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:u,ariaLabel:n("ariaLabelCellEditor","Cell Editor")});f&&(this.hideEditorPopup=f.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)&&Gd()&&e.focus({preventScroll:!0}),_a(this.getParentOfValue())},t}(hi),gu=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Ou=function(e){function t(t,d,a){var i=e.call(this)||this;i.cellComps={},i.beans=d,i.rowCtrl=t,i.setTemplate('
'));var o=i.getGui(),s=o.style;i.domOrder=i.rowCtrl.getDomOrder(),Ft(o,"row");var l=i.rowCtrl.getTabIndex();null!=l&&o.setAttribute("tabindex",l.toString());var m={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 ga(o,e)},setTop:function(e){return s.top=e},setTransform:function(e){return s.transform=e},setRowIndex:function(e){return o.setAttribute("row-index",e)},setRowId:function(e){return o.setAttribute("row-id",e)},setRowBusinessKey:function(e){return o.setAttribute("row-business-key",e)}};return t.setComp(m,i.getGui(),a),i.addDestroyFunc((function(){t.unsetComp(a)})),i}return gu(t,e),t.prototype.getInitialStyle=function(e){var t=this.rowCtrl.getInitialTransform(e),d=this.rowCtrl.getInitialRowTop(e);return t?"transform: ".concat(t):"top: ".concat(d)},t.prototype.showFullWidth=function(e){var t=this,d=e.newAgStackInstance();d&&d.then((function(e){if(t.isAlive()){var d=e.getGui();t.getGui().appendChild(d),t.rowCtrl.setupDetailRowAutoHeight(d),t.setFullWidthRowComp(e)}else t.beans.context.destroyBean(e)}))},t.prototype.setCellCtrls=function(e){var t=this,d=Object.assign({},this.cellComps);e.forEach((function(e){var a=e.getInstanceId();null==t.cellComps[a]?t.newCellComp(e):d[a]=null}));var a=T(d).filter((function(e){return null!=e}));this.destroyCells(a),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var t=this;if(this.domOrder){var d=[];e.forEach((function(e){var a=t.cellComps[e.getInstanceId()];a&&d.push(a.getGui())})),Sa(this.getGui(),d)}},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=T(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 d=e.getCtrl().getInstanceId();t.cellComps[d]===e&&(e.detach(),e.destroy(),t.cellComps[d]=null)}}))},t}(hi),Du=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Bu=function(){return Bu=Object.assign||function(e){for(var t,d=1,a=arguments.length;d=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s};var Iu,Gu=function(e){function t(){var t=e.call(this,function(){var e=hi.elementGettingCreated.getAttribute("name"),t=iu.getRowContainerCssClasses(e);return e===Tr.CENTER||e===Tr.TOP_CENTER||e===Tr.STICKY_TOP_CENTER||e===Tr.BOTTOM_CENTER?''):'
')}())||this;return t.rowComps={},t.name=hi.elementGettingCreated.getAttribute("name"),t.type=tu(t.name),t}return Du(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 iu(this.name)).setComp(t,this.eContainer,this.eViewport)},t.prototype.preDestroy=function(){this.setRowCtrls([])},t.prototype.setRowCtrls=function(e){var t=this,d=Bu({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;e.forEach((function(e){var a=e.getInstanceId(),i=d[a];if(i)t.rowComps[a]=i,delete d[a],t.ensureDomOrder(i.getGui());else{if(!e.getRowNode().displayed)return;var o=new Ou(e,t.beans,t.type);t.rowComps[a]=o,t.appendRow(o.getGui())}})),T(d).forEach((function(e){t.eContainer.removeChild(e.getGui()),e.destroy()})),Ft(this.eContainer,e.length?"rowgroup":"presentation")},t.prototype.appendRow=function(e){this.domOrder?Ta(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},t.prototype.ensureDomOrder=function(e){this.domOrder&&(ha(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},vu([de("beans")],t.prototype,"beans",void 0),vu([Ti("eViewport")],t.prototype,"eViewport",void 0),vu([Ti("eContainer")],t.prototype,"eContainer",void 0),vu([Z],t.prototype,"postConstruct",null),vu([ee],t.prototype,"preDestroy",null),t}(hi),Mu=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},wu=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.get("functionsReadOnly")){var d=e.dragItem.columns;d&&d.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?Ns.ICON_PINNED:Ns.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")},Mu([de("columnModel")],e.prototype,"columnModel",void 0),Mu([de("gridOptionsService")],e.prototype,"gridOptionsService",void 0),e}(),Lu=function(e,t){var d="function"===typeof Symbol&&e[Symbol.iterator];if(!d)return e;var a,i,o=d.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},Eu=function(){function e(){}return e.attemptMoveColumns=function(e){var t=e.isFromHeader,d=e.hDirection,a=e.xPosition,i=e.fromEnter,o=e.fakeEvent,s=e.pinned,l=e.gridOptionsService,m=e.columnModel,r=d===Fo.Left,u=d===Fo.Right,n=e.allMovingColumns;if(t){var f=[];n.forEach((function(e){for(var t,d=null,a=e.getParent();null!=a&&1===a.getDisplayedLeafColumns().length;)d=a,a=a.getParent();null!=d?(!!(null===(t=d.getColGroupDef())||void 0===t?void 0:t.marryChildren)?d.getProvidedColumnGroup().getLeafColumns():d.getLeafColumns()).forEach((function(e){f.includes(e)||f.push(e)})):f.includes(e)||f.push(e)})),n=f}var p=n.slice();m.sortColumnsLikeGridColumns(p);var c=this.calculateValidMoves({movingCols:p,draggingRight:u,xPosition:a,pinned:s,gridOptionsService:l,columnModel:m}),_=this.calculateOldIndex(p,m);if(0!==c.length){var y=c[0],C=null!==_&&!i;if(t&&(C=null!==_),C&&!o){if(r&&y>=_)return;if(u&&y<=_)return}for(var q=m.getAllDisplayedColumns(),b=[],P=null,h=0;hs.length?[o,s]:[s,o],2))[0],s=i[1],o.forEach((function(e){-1===s.indexOf(e)&&d++}))},i=0;i0){for(var C=0;C0){var q=f[c-1];m=p.indexOf(q)+1}else-1===(m=p.indexOf(f[0]))&&(m=0);var b=[m],P=function(e,t){return e-t};if(d){for(var h=m+1,S=u.length-1;h<=S;)b.push(h),h++;b.sort(P)}else{h=m,S=u.length-1;for(var T=u[h];h<=S&&r.indexOf(T)<0;)h++,b.push(h),T=u[h];h=m-1;for(;h>=0;)b.push(h),h--;b.sort(P).reverse()}return b},e.normaliseX=function(e,t,d,a,i){var o=i.getHeaderRowContainerCtrl(t).getViewport();(d&&(e-=o.getBoundingClientRect().left),a.get("enableRtl"))&&(e=o.clientWidth-e);return null==t&&(e+=i.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),e},e}(),Vu=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Ru=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=e,this.eContainer=t,this.centerContainer=!i(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?Ns.ICON_PINNED:Ns.ICON_MOVE},e.prototype.onDragEnter=function(e){var t=e.dragItem.columns;if(e.dragSource.type===As.ToolPanel)this.setColumnsVisible(t,!0,"uiColumnDragged");else{var d=e.dragItem.visibleState,a=(t||[]).filter((function(e){return d[e.getId()]}));this.setColumnsVisible(a,!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,d){if(void 0===d&&(d="api"),e){var a=e.filter((function(e){return!e.getColDef().lockVisible}));this.columnModel.setColumnsVisible(a,t,d)}},e.prototype.setColumnsPinned=function(e,t,d){if(void 0===d&&(d="api"),e){var a=e.filter((function(e){return!e.getColDef().lockPinned}));this.columnModel.setColumnsPinned(a,t,d)}},e.prototype.onDragStop=function(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),d=t+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsService.get("enableRtl")?(this.needToMoveRight=ed-50):(this.needToMoveLeft=ed-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},e.prototype.onDragging=function(e,t,d,a){var i,s=this;if(void 0===e&&(e=this.lastDraggingEvent),void 0===t&&(t=!1),void 0===d&&(d=!1),void 0===a&&(a=!1),a){if(this.lastMovedInfo){var l=this.lastMovedInfo,m=l.columns,r=l.toIndex;Eu.moveColumns(m,r,"uiColumnMoved",!0,this.columnModel)}}else if(this.lastDraggingEvent=e,!o(e.hDirection)){var u=Eu.normaliseX(e.x,this.pinned,!1,this.gridOptionsService,this.ctrlsService);t||this.checkCenterForScrolling(u);var n=this.normaliseDirection(e.hDirection),f=e.dragSource.type,p=(null===(i=e.dragSource.getDragItem().columns)||void 0===i?void 0:i.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==s.pinned})))||[],c=Eu.attemptMoveColumns({allMovingColumns:p,isFromHeader:f===As.HeaderCell,hDirection:n,xPosition:u,pinned:this.pinned,fromEnter:t,fakeEvent:d,gridOptionsService:this.gridOptionsService,columnModel:this.columnModel});c&&(this.lastMovedInfo=c)}},e.prototype.normaliseDirection=function(e){if(!this.gridOptionsService.get("enableRtl"))return e;switch(e){case Fo.Left:return Fo.Right;case Fo.Right:return Fo.Left;default:console.error("AG Grid: Unknown direction ".concat(e))}},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(Ns.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(Ns.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(Ns.ICON_MOVE))},e.prototype.moveInterval=function(){var e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);var t=null,d=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=d.scrollHorizontally(-e):this.needToMoveRight&&(t=d.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var a=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));if(a.length>0&&(this.dragAndDropService.setGhostIcon(Ns.ICON_PINNED),this.failedMoveAttempts>7)){var i=this.needToMoveLeft?"left":"right";this.setColumnsPinned(a,i,"uiColumnDragged"),this.dragAndDropService.nudge()}}},Vu([de("columnModel")],e.prototype,"columnModel",void 0),Vu([de("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Vu([de("gridOptionsService")],e.prototype,"gridOptionsService",void 0),Vu([de("ctrlsService")],e.prototype,"ctrlsService",void 0),Vu([Z],e.prototype,"init",null),e}(),ku=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Au=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},xu=function(e){function t(t,d){var a=e.call(this)||this;return a.pinned=t,a.eContainer=d,a}return ku(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===As.HeaderCell||e===As.ToolPanel&&this.gridOptionsService.get("allowDragFromColumnsToolPanel")},t.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},t.prototype.getContainer=function(){return this.eContainer},t.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new Ru(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new wu(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===As.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)},Au([de("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Au([de("columnModel")],t.prototype,"columnModel",void 0),Au([de("ctrlsService")],t.prototype,"ctrlsService",void 0),Au([Z],t.prototype,"postConstruct",null),Au([Z],t.prototype,"init",null),t}(ze),Wu=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Fu=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Hu=function(e){function t(d){var a=e.call(this,t.TEMPLATE,d)||this;return a.headerCompVersion=0,a.column=d.getColumnGroupChild(),a.pinned=d.getPinned(),a}return Wu(t,e),t.prototype.postConstruct=function(){var e,t,d=this,a=this.getGui();e="col-id",null!=(t=this.column.getColId())&&""!=t?a.setAttribute(e,t):a.removeAttribute(e);var i={setWidth:function(e){return a.style.width=e},addOrRemoveCssClass:function(e,t){return d.addOrRemoveCssClass(e,t)},setAriaDescription:function(e){return Yt(a,e)},setAriaSort:function(e){return e?ud(a,e):nd(a)},setUserCompDetails:function(e){return d.setUserCompDetails(e)},getUserCompInstance:function(){return d.headerComp}};this.ctrl.setComp(i,this.getGui(),this.eResize,this.eHeaderCompWrapper);var o=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",o)},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 d=this.headerCompVersion;e.newAgStackInstance().then((function(e){return t.afterCompCreated(d,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='
\n \n \n
',Fu([Ti("eResize")],t.prototype,"eResize",void 0),Fu([Ti("eHeaderCompWrapper")],t.prototype,"eHeaderCompWrapper",void 0),Fu([Z],t.prototype,"postConstruct",null),Fu([ee],t.prototype,"destroyHeaderComp",null),t}(Sm),Nu=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),ju=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},zu=function(e){function t(d){return e.call(this,t.TEMPLATE,d)||this}return Nu(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui();t.setAttribute("col-id",this.ctrl.getColId());var d={addOrRemoveCssClass:function(t,d){return e.addOrRemoveCssClass(t,d)},setResizableDisplayed:function(t){return da(e.eResize,t)},setWidth:function(e){return t.style.width=e},setAriaExpanded:function(e){return d="aria-expanded",void 0!=(a=e)?t.setAttribute(d,a):t.removeAttribute(d);var d,a},setUserCompDetails:function(t){return e.setUserCompDetails(t)},getUserCompInstance:function(){return e.headerGroupComp}};this.ctrl.setComp(d,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,d=function(){return t.destroyBean(e)};if(this.isAlive()){var a=this.getGui(),i=e.getGui();a.appendChild(i),this.addDestroyFunc(d),this.headerGroupComp=e,this.ctrl.setDragSource(a)}else d()},t.TEMPLATE='
\n \n
',ju([de("userComponentFactory")],t.prototype,"userComponentFactory",void 0),ju([Ti("eResize")],t.prototype,"eResize",void 0),ju([Z],t.prototype,"postConstruct",null),t}(Sm),Uu=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Ku=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s};!function(e){e.COLUMN_GROUP="group",e.COLUMN="column",e.FLOATING_FILTER="filter"}(Iu||(Iu={}));var Yu,Qu=function(e){function t(t){var d=e.call(this)||this;return d.headerComps={},d.ctrl=t,d.setTemplate('
')),d}return Uu(t,e),t.prototype.init=function(){var e=this;this.getGui().style.transform=this.ctrl.getTransform(),sd(this.getGui(),this.ctrl.getAriaRowIndex());var t={setHeight:function(t){return e.getGui().style.height=t},setTop:function(t){return e.getGui().style.top=t},setHeaderCtrls:function(t,d){return e.setHeaderCtrls(t,d)},setWidth:function(t){return e.getGui().style.width=t}};this.ctrl.setComp(t)},t.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([],!1)},t.prototype.setHeaderCtrls=function(e,t){var d=this;if(this.isAlive()){var a=this.headerComps;if(this.headerComps={},e.forEach((function(e){var t=e.getInstanceId(),i=a[t];delete a[t],null==i&&(i=d.createHeaderComp(e),d.getGui().appendChild(i.getGui())),d.headerComps[t]=i})),y(a,(function(e,t){d.getGui().removeChild(t.getGui()),d.destroyBean(t)})),t){var i=T(this.headerComps);i.sort((function(e,t){return e.getCtrl().getColumnGroupChild().getLeft()-t.getCtrl().getColumnGroupChild().getLeft()}));var o=i.map((function(e){return e.getGui()}));Sa(this.getGui(),o)}}},t.prototype.createHeaderComp=function(e){var t;switch(this.ctrl.getType()){case Iu.COLUMN_GROUP:t=new zu(e);break;case Iu.FLOATING_FILTER:t=new Om(e);break;default:t=new Hu(e)}return this.createBean(t),t.setParentComponent(this),t},Ku([Z],t.prototype,"init",null),Ku([ee],t.prototype,"destroyHeaderCtrls",null),t}(hi),$u=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Xu=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Ju=0,Zu=function(e){function t(t,d){var a=e.call(this)||this;return a.resizeToggleTimeout=0,a.resizeMultiplier=1,a.resizeFeature=null,a.lastFocusEvent=null,a.dragSource=null,a.columnGroupChild=t,a.parentRowCtrl=d,a.instanceId=t.getUniqueId()+"-"+Ju++,a}return $u(t,e),t.prototype.shouldStopEventPropagation=function(e){var t=this.focusService.getFocusedHeader(),d=t.headerRowIndex,a=t.column;return $a(this.gridOptionsService,e,d,a)},t.prototype.getWrapperHasFocus=function(){return this.gridOptionsService.getDocument().activeElement===this.eGui},t.prototype.setGui=function(e){this.eGui=e,this.addDomData(),this.addManagedListener(this.beans.eventService,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onDisplayedColumnsChanged()},t.prototype.onDisplayedColumnsChanged=function(){this.comp&&this.column&&(this.refreshFirstAndLastStyles(),this.refreshAriaColIndex())},t.prototype.refreshFirstAndLastStyles=function(){var e=this,t=e.comp,d=e.column,a=e.beans;cr.refreshFirstAndLastStyles(t,d,a.columnModel)},t.prototype.refreshAriaColIndex=function(){var e=this.beans,t=this.column,d=e.columnModel.getAriaColumnIndex(t);md(this.eGui,d)},t.prototype.addResizeAndMoveKeyboardListeners=function(){this.resizeFeature&&(this.addManagedListener(this.eGui,"keydown",this.onGuiKeyDown.bind(this)),this.addManagedListener(this.eGui,"keyup",this.onGuiKeyUp.bind(this)))},t.prototype.onGuiKeyDown=function(e){var t,d=this.gridOptionsService.getDocument().activeElement,a=e.key===Ka.LEFT||e.key===Ka.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),d===this.eGui&&(e.shiftKey||e.altKey)&&((this.isResizing||a)&&(e.preventDefault(),e.stopImmediatePropagation()),a)){var i=e.key===Ka.LEFT!==this.gridOptionsService.get("enableRtl"),o=Fo[i?"Left":"Right"];e.altKey?(this.isResizing=!0,this.resizeMultiplier+=1,this.resizeHeader(o,e.shiftKey),null===(t=this.resizeFeature)||void 0===t||t.toggleColumnResizing(!0)):this.moveHeader(o)}},t.prototype.onGuiKeyUp=function(){var e=this;this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=setTimeout((function(){var t;null===(t=e.resizeFeature)||void 0===t||t.toggleColumnResizing(!1)}),150))},t.prototype.handleKeyDown=function(e){var t=this.getWrapperHasFocus();switch(e.key){case Ka.PAGE_DOWN:case Ka.PAGE_UP:case Ka.PAGE_HOME:case Ka.PAGE_END:t&&e.preventDefault()}},t.prototype.addDomData=function(){var e=this,d=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsService.setDomData(this.eGui,d,this),this.addDestroyFunc((function(){return e.gridOptionsService.setDomData(e.eGui,d,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.prototype.removeDragSource=function(){this.dragSource&&(this.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.removeDragSource(),this.comp=null,this.column=null,this.resizeFeature=null,this.lastFocusEvent=null,this.columnGroupChild=null,this.parentRowCtrl=null,this.eGui=null},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",Xu([de("focusService")],t.prototype,"focusService",void 0),Xu([de("beans")],t.prototype,"beans",void 0),Xu([de("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Xu([de("ctrlsService")],t.prototype,"ctrlsService",void 0),Xu([de("dragAndDropService")],t.prototype,"dragAndDropService",void 0),t}(ze),en=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),tn=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},dn=function(e){function t(t,d,a,i){var o=e.call(this)||this;return o.columnOrGroup=t,o.eCell=d,o.ariaEl=o.eCell.querySelector("[role=columnheader]")||o.eCell,o.colsSpanning=i,o.beans=a,o}return en(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsService.get("enableRtl")&&this.colsSpanning?be(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,ce.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsService.get("suppressColumnMoveAnimation"),t=i(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup(),d=t.getLeft(),a=t.getOldLeft(),i=this.modifyLeftForPrintLayout(t,a),o=this.modifyLeftForPrintLayout(t,d);this.setLeft(i),this.actualLeft=o,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===o&&e.setLeft(o)}))},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){if(!this.beans.gridOptionsService.isDomLayout("print"))return t;if("left"===e.getPinned())return t;var d=this.beans.columnModel.getDisplayedColumnsLeftWidth();return"right"===e.getPinned()?d+this.beans.columnModel.getBodyContainerWidth()+t:d+t},t.prototype.setLeft=function(e){if(i(e)&&(this.eCell.style.left="".concat(e,"px")),this.columnOrGroup instanceof ce)this.columnOrGroup;else{var t=this.columnOrGroup.getLeafColumns();if(!t.length)return;t.length>1&&rd(this.ariaEl,t.length),t[0]}},tn([Z],t.prototype,"postConstruct",null),t}(ze),an=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),on=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},sn=function(e){function t(t,d){var a=e.call(this)||this;return a.columns=t,a.element=d,a}return an(t,e),t.prototype.postConstruct=function(){this.gridOptionsService.get("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)},on([de("columnHoverService")],t.prototype,"columnHoverService",void 0),on([Z],t.prototype,"postConstruct",null),t}(ze),ln=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),mn=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},rn=function(e){function t(t,d){var a=e.call(this,t,d)||this;return a.iconCreated=!1,a.column=t,a}return ln(t,e),t.prototype.setComp=function(e,t,d,a){this.comp=e,this.eButtonShowMainFilter=d,this.eFloatingFilterBody=a,this.setGui(t),this.setupActive(),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this)),this.setupFilterChangedListener(),this.addManagedListener(this.column,ce.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this))},t.prototype.resizeHeader=function(){},t.prototype.moveHeader=function(){},t.prototype.setupActive=function(){var e=this.column.getColDef(),t=!!e.filter,d=!!e.floatingFilter;this.active=t&&d},t.prototype.setupUi=function(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),this.active&&!this.iconCreated){var e=za("filter",this.gridOptionsService,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}},t.prototype.setupFocus=function(){this.createManagedBean(new Ei(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.setupAria=function(){var e=this.localeService.getLocaleTextFunc();Ut(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))},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 d=this.findNextColumnWithFloatingFilter(e.shiftKey);d&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:d},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var t=this.beans.columnModel,d=this.column;do{if(!(d=e?t.getDisplayedColBefore(d):t.getDisplayedColAfter(d)))break}while(!d.getColDef().filter||!d.getColDef().floatingFilter);return d},t.prototype.handleKeyDown=function(t){e.prototype.handleKeyDown.call(this,t);var d=this.getWrapperHasFocus();switch(t.key){case Ka.UP:case Ka.DOWN:d||t.preventDefault();case Ka.LEFT:case Ka.RIGHT:if(d)return;t.stopPropagation();case Ka.ENTER:d&&this.focusService.focusInto(this.eGui)&&t.preventDefault();break;case Ka.ESCAPE:d||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"),d=!!e.relatedTarget&&oa(e.relatedTarget,"ag-floating-filter");if(t&&d&&e.target===this.eGui){var a=this.lastFocusEvent,i=!(!a||a.key!==Ka.TAB);if(a&&i){var o=a.shiftKey;this.focusService.focusInto(this.eGui,o)}}var s=this.getRowIndex();this.beans.focusService.setFocusedHeader(s,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new sn([this.column],this.eGui));var t=function(){if(e.gridOptionsService.get("columnHoverHighlight")){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,Je.EVENT_COLUMN_HOVER_CHANGED,t),t()},t.prototype.setupLeft=function(){var e=new dn(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupFilterButton=function(){var e=this.column.getColDef();this.suppressFilterButton=!!e.floatingFilterComponentParams&&!!e.floatingFilterComponentParams.suppressFilterButton},t.prototype.setupUserComp=function(){var e=this;if(this.active){var t=this.filterManager.getFloatingFilterCompDetails(this.column,(function(){return e.showParentFilter()}));t&&this.setCompDetails(t)}},t.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setCompDetails(e)},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 d=e.comp.getFloatingFilterComp();d&&d.then((function(d){if(d){var a=e.filterManager.getCurrentFloatingFilterParentModel(e.column);d.onParentModelChanged(a,t)}}))};this.destroySyncListener=this.addManagedListener(this.column,ce.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)}},t.prototype.setupWidth=function(){var e=this,t=function(){var t="".concat(e.column.getActualWidth(),"px");e.comp.setWidth(t)};this.addManagedListener(this.column,ce.EVENT_WIDTH_CHANGED,t),t()},t.prototype.setupFilterChangedListener=function(){this.active&&(this.destroyFilterChangedListener=this.addManagedListener(this.column,ce.EVENT_FILTER_CHANGED,this.updateFilterButton.bind(this)))},t.prototype.updateFilterButton=function(){!this.suppressFilterButton&&this.comp&&this.comp.setButtonWrapperDisplayed(this.filterManager.isFilterAllowed(this.column))},t.prototype.onColDefChanged=function(){var e,t,d=this,a=this.active;this.setupActive();var i=!a&&this.active;a&&!this.active&&(null===(e=this.destroySyncListener)||void 0===e||e.call(this),null===(t=this.destroyFilterChangedListener)||void 0===t||t.call(this));var o=this.active?this.filterManager.getFloatingFilterCompDetails(this.column,(function(){return d.showParentFilter()})):null,s=this.comp.getFloatingFilterComp();s&&o?s.then((function(e){var t;!e||d.filterManager.areFilterCompsDifferent(null!==(t=d.userCompDetails)&&void 0!==t?t:null,o)?d.updateCompDetails(o,i):d.updateFloatingFilterParams(o)})):this.updateCompDetails(o,i)},t.prototype.updateCompDetails=function(e,t){this.setCompDetails(e),this.setupFilterButton(),this.setupUi(),t&&(this.setupSyncWithFilter(),this.setupFilterChangedListener())},t.prototype.updateFloatingFilterParams=function(e){var t;if(e){var d=e.params;null===(t=this.comp.getFloatingFilterComp())||void 0===t||t.then((function(e){(null===e||void 0===e?void 0:e.onParamsUpdated)&&"function"===typeof e.onParamsUpdated&&e.onParamsUpdated(d)}))}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.destroySyncListener=null,this.destroyFilterChangedListener=null},mn([de("filterManager")],t.prototype,"filterManager",void 0),mn([de("columnHoverService")],t.prototype,"columnHoverService",void 0),mn([de("menuFactory")],t.prototype,"menuFactory",void 0),t}(Zu),un=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),nn=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},fn=function(e){function t(t,d,a,i,o){var s=e.call(this)||this;return s.pinned=t,s.column=d,s.eResize=a,s.comp=i,s.ctrl=o,s}return un(t,e),t.prototype.postConstruct=function(){var e,t,d=this,a=[],i=function(){a.forEach((function(e){return e()})),a.length=0},o=function(){var o=d.column.isResizable(),s=!d.gridOptionsService.get("suppressAutoSize")&&!d.column.getColDef().suppressAutoSize;(o!==e||s!==t)&&(e=o,t=s,i(),function(){if(da(d.eResize,e),e){var i=d.horizontalResizeService.addResizeBar({eResizeBar:d.eResize,onResizeStart:d.onResizeStart.bind(d),onResizing:d.onResizing.bind(d,!1),onResizeEnd:d.onResizing.bind(d,!0)});if(a.push(i),t){var o=d.gridOptionsService.get("skipHeaderOnAutoSize"),s=function(){d.columnModel.autoSizeColumn(d.column,o,"uiColumnResized")};d.eResize.addEventListener("dblclick",s);var l=new ds(d.eResize);l.addEventListener(ds.EVENT_DOUBLE_TAP,s),a.push((function(){d.eResize.removeEventListener("dblclick",s),l.removeEventListener(ds.EVENT_DOUBLE_TAP,s),l.destroy()}))}}}())};o(),this.addDestroyFunc(i),this.ctrl.addRefreshFunction(o)},t.prototype.onResizing=function(e,t){var d=this,a=d.column,i=d.lastResizeAmount,o=d.resizeStartWidth,s=this.normaliseResizeAmount(t),l=[{key:a,newWidth:o+s}];if(this.column.getPinned()&&this.pinnedWidthService.getPinnedLeftWidth()+this.pinnedWidthService.getPinnedRightWidth()+(s-i)>ma(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50)return;this.lastResizeAmount=s,this.columnModel.setColumnWidths(l,this.resizeWithShiftKey,e,"uiColumnResized"),e&&this.toggleColumnResizing(!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.lastResizeAmount=0,this.resizeWithShiftKey=e,this.toggleColumnResizing(!0)},t.prototype.toggleColumnResizing=function(e){this.comp.addOrRemoveCssClass("ag-column-resizing",e)},t.prototype.normaliseResizeAmount=function(e){var t=e,d="left"!==this.pinned,a="right"===this.pinned;return this.gridOptionsService.get("enableRtl")?d&&(t*=-1):a&&(t*=-1),t},nn([de("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),nn([de("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),nn([de("ctrlsService")],t.prototype,"ctrlsService",void 0),nn([de("columnModel")],t.prototype,"columnModel",void 0),nn([Z],t.prototype,"postConstruct",null),t}(ze),pn=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),cn=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},_n=function(e){function t(t){var d=e.call(this)||this;return d.cbSelectAllVisible=!1,d.processingEventFromCheckbox=!1,d.column=t,d}return pn(t,e),t.prototype.onSpaceKeyDown=function(e){var t=this.cbSelectAll,d=this.gridOptionsService.getDocument();t.isDisplayed()&&!t.getGui().contains(d.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 mo),this.cbSelectAll.addCssClass("ag-header-select-all"),Ft(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,Je.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_PAGINATION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,Je.EVENT_FIELD_VALUE_CHANGED,this.onCbSelectAll.bind(this)),Jt(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.onNewColumnsLoaded=function(){this.showOrHideSelectAll()},t.prototype.onDisplayedColumnsChanged=function(){this.isAlive()&&this.showOrHideSelectAll()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible,{skipAriaHidden:!0}),this.cbSelectAllVisible&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("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.isFilteredOnly(),this.isCurrentPageOnly());this.cbSelectAll.setValue(e),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){var e=this.localeService.getLocaleTextFunc(),t=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),d=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.cbSelectAllVisible?this.headerCellCtrl.setAriaDescriptionProperty("selectAll","".concat(d," (").concat(t,")")):this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel("".concat(d," (").concat(t,")")),this.headerCellCtrl.refreshAriaDescription()},t.prototype.checkSelectionType=function(e){return!("multiple"!==this.gridOptionsService.get("rowSelection"))||(console.warn("AG Grid: ".concat(e," is only available if using 'multiple' rowSelection.")),!1)},t.prototype.checkRightRowModelType=function(e){var t=this.rowModel.getType();return!("clientSide"!==t&&"serverSide"!==t)||(console.warn("AG Grid: ".concat(e," is only available if using 'clientSide' or 'serverSide' rowModelType, you are using ").concat(t,".")),!1)},t.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var e=this.cbSelectAll.getValue(),t=this.isFilteredOnly(),d=this.isCurrentPageOnly(),a="uiSelectAll";d?a="uiSelectAllCurrentPage":t&&(a="uiSelectAllFiltered");var i={source:a,justFiltered:t,justCurrentPage:d};e?this.selectionService.selectAllRowNodes(i):this.selectionService.deselectAllRowNodes(i)}},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;"function"===typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.gridOptionsService.columnApi,api:this.gridOptionsService.api,context:this.gridOptionsService.context}));return!!e&&(this.checkRightRowModelType("headerCheckboxSelection")&&this.checkSelectionType("headerCheckboxSelection"))},t.prototype.isFilteredOnly=function(){return!!this.column.getColDef().headerCheckboxSelectionFilteredOnly},t.prototype.isCurrentPageOnly=function(){return!!this.column.getColDef().headerCheckboxSelectionCurrentPageOnly},cn([de("rowModel")],t.prototype,"rowModel",void 0),cn([de("selectionService")],t.prototype,"selectionService",void 0),t}(ze),yn=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Cn=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},qn=function(e){var t="function"===typeof Symbol&&Symbol.iterator,d=t&&e[t],a=0;if(d)return d.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},bn=function(e,t){var d="function"===typeof Symbol&&e[Symbol.iterator];if(!d)return e;var a,i,o=d.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},Pn=function(e){function t(t,d){var a=e.call(this,t,d)||this;return a.refreshFunctions=[],a.userHeaderClasses=new Set,a.ariaDescriptionProperties=new Map,a.column=t,a}return yn(t,e),t.prototype.setComp=function(e,t,d,a){var i=this;this.comp=e,this.setGui(t),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight(a),this.addColumnHoverListener(),this.setupFilterClass(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.resizeFeature=this.createManagedBean(new fn(this.getPinned(),this.column,d,e,this)),this.createManagedBean(new sn([this.column],t)),this.createManagedBean(new dn(this.column,t,this.beans)),this.createManagedBean(new Ei(t,{shouldStopEventPropagation:function(e){return i.shouldStopEventPropagation(e)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(),this.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader"],this.refresh.bind(this)),this.addManagedListener(this.column,ce.EVENT_COL_DEF_CHANGED,this.refresh.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},t.prototype.resizeHeader=function(e,t){var d,a;if(this.column.isResizable()){var i=this.column.getPinned(),o=this.gridOptionsService.get("enableRtl"),s=this.column.getActualWidth(),l=null!==(d=this.column.getMinWidth())&&void 0!==d?d:0,m=null!==(a=this.column.getMaxWidth())&&void 0!==a?a:Number.MAX_SAFE_INTEGER,r=e===Fo.Left;i&&o!==("right"===i)&&(r=!r);var u=(r?-1:1)*this.resizeMultiplier,n=Math.min(Math.max(s+u,l),m);if(i)if(this.pinnedWidthService.getPinnedLeftWidth()+this.pinnedWidthService.getPinnedRightWidth()+u>ma(this.ctrlsService.getGridBodyCtrl().getBodyViewportElement())-50)return;this.columnModel.setColumnWidths([{key:this.column,newWidth:n}],t,!0)}},t.prototype.moveHeader=function(e){var t=this,d=t.eGui,a=t.column,i=t.columnModel,o=t.gridOptionsService,s=t.ctrlsService,l=this.getPinned(),m=d.getBoundingClientRect().left,r=a.getActualWidth(),u=o.get("enableRtl"),n=e===Fo.Left!==u,f=Eu.normaliseX(n?m-20:m+r+20,l,!0,o,s);Eu.attemptMoveColumns({allMovingColumns:[a],isFromHeader:!0,hDirection:e,xPosition:f,pinned:l,fromEnter:!1,fakeEvent:!1,gridOptionsService:o,columnModel:i}),s.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(a,"auto")},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;return{column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),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,d){e.sortController.setSortForColumn(e.column,t,!!d,"uiColumnSorted")},api:this.gridApi,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,eGridHeader:this.getGui()}},t.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new _n(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===Ka.SPACE&&this.selectAllFeature.onSpaceKeyDown(t),t.key===Ka.ENTER&&this.onEnterKeyDown(t)},t.prototype.onEnterKeyDown=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 d=e.shiftKey;this.sortController.progressSort(this.column,d,"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}},d=this.createManagedBean(new dr(t,this.beans));d.setComp(this.eGui),this.refreshFunctions.push((function(){return d.refreshToolTip()}))},t.prototype.setupClassesFromColDef=function(){var e=this,t=function(){var t=e.column.getColDef(),d=cr.getHeaderClassesFromColDef(t,e.gridOptionsService,e.column,null),a=e.userHeaderClasses;e.userHeaderClasses=new Set(d),d.forEach((function(t){a.has(t)?a.delete(t):e.comp.addOrRemoveCssClass(t,!0)})),a.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 d=this,a=d.column,i=d.columnModel,o=d.displayName,s=d.dragAndDropService,l=d.gridOptionsService,m=!this.gridOptionsService.get("suppressDragLeaveHidesColumns"),r=this.dragSource={type:As.HeaderCell,eElement:e,getDefaultIconName:function(){return m?Ns.ICON_HIDE:Ns.ICON_NOT_ALLOWED},getDragItem:function(){return t.createDragItem(a)},dragItemName:o,onDragStarted:function(){m=!l.get("suppressDragLeaveHidesColumns"),a.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return a.setMoving(!1,"uiColumnMoved")},onGridEnter:function(e){var t;if(m){var d=(null===(t=null===e||void 0===e?void 0:e.columns)||void 0===t?void 0:t.filter((function(e){return!e.getColDef().lockVisible})))||[];i.setColumnsVisible(d,!0,"uiColumnMoved")}},onGridExit:function(e){var t;if(m){var d=(null===(t=null===e||void 0===e?void 0:e.columns)||void 0===t?void 0:t.filter((function(e){return!e.getColDef().lockVisible})))||[];i.setColumnsVisible(d,!1,"uiColumnMoved")}}};s.addDragSource(r,!0)}},t.prototype.createDragItem=function(e){var t={};return t[e.getId()]=e.isVisible(),{columns:[e],visibleState:t}},t.prototype.updateState=function(){var e=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,this.sortable=this.column.isSortable(),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.get("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("".concat(t,"px"))};this.addManagedListener(this.column,ce.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,ce.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,ce.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,ce.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},t.prototype.setupFilterClass=function(){var e=this,t=function(){var t=e.column.isFilterActive();e.comp.addOrRemoveCssClass("ag-header-cell-filtered",t),e.refreshAria()};this.addManagedListener(this.column,ce.EVENT_FILTER_ACTIVE_CHANGED,t),t()},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.onDisplayedColumnsChanged=function(){e.prototype.onDisplayedColumnsChanged.call(this),this.isAlive()&&this.onHeaderHeightChanged()},t.prototype.onHeaderHeightChanged=function(){this.refreshSpanHeaderHeight()},t.prototype.refreshSpanHeaderHeight=function(){var e=this,t=e.eGui,d=e.column,a=e.comp,i=e.columnModel;if(e.gridOptionsService,!d.isSpanHeaderHeight())return t.style.removeProperty("top"),t.style.removeProperty("height"),a.addOrRemoveCssClass("ag-header-span-height",!1),void a.addOrRemoveCssClass("ag-header-span-total",!1);var o=this.getColumnGroupPaddingInfo(),s=o.numberOfParents,l=o.isSpanningTotal;a.addOrRemoveCssClass("ag-header-span-height",s>0);var m=i.getColumnHeaderRowHeight();if(0===s)return a.addOrRemoveCssClass("ag-header-span-total",!1),t.style.setProperty("top","0px"),void t.style.setProperty("height","".concat(m,"px"));a.addOrRemoveCssClass("ag-header-span-total",l);var r=s*(i.isPivotMode()?i.getPivotGroupHeaderHeight():i.getGroupHeaderHeight());t.style.setProperty("top","".concat(-r,"px")),t.style.setProperty("height","".concat(m+r,"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,d=!0;e;){if(!e.isPadding()){d=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:d}},t.prototype.setupAutoHeight=function(e){var t,d=this,a=function(t){if(d.isAlive()){var i=sa(d.getGui()),o=i.paddingTop+i.paddingBottom+i.borderBottomWidth+i.borderTopWidth,s=e.offsetHeight+o;if(t<5){var l=d.beans.gridOptionsService.getDocument();if(!l||!l.contains(e)||0==s)return void d.beans.frameworkOverrides.setTimeout((function(){return a(t+1)}),0)}d.columnModel.setColumnHeaderHeight(d.column,s)}},i=!1,o=function(){var e=d.column.isAutoHeaderHeight();e&&!i&&s(),!e&&i&&l()},s=function(){i=!0,a(0),d.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),t=d.resizeObserverService.observeResize(e,(function(){return a(0)}))},l=function(){i=!1,t&&t(),d.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),t=void 0};o(),this.addDestroyFunc((function(){return l()})),this.addManagedListener(this.column,ce.EVENT_WIDTH_CHANGED,(function(){return i&&a(0)})),this.addManagedListener(this.eventService,ce.EVENT_SORT_CHANGED,(function(){i&&d.beans.frameworkOverrides.setTimeout((function(){return a(0)}))})),this.addRefreshFunction(o)},t.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.localeService.getLocaleTextFunc(),t=this.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(Ht(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.refreshAriaFiltered=function(){var e=this.localeService.getLocaleTextFunc();this.column.isFilterActive()?this.setAriaDescriptionProperty("filter",e("ariaColumnFiltered","Column Filtered")):this.setAriaDescriptionProperty("filter",null)},t.prototype.setAriaDescriptionProperty=function(e,t){null!=t?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)},t.prototype.refreshAriaDescription=function(){var e,t,d=null;try{for(var a=qn(this.ariaDescriptionProperties),i=a.next();!i.done;i=a.next()){var o=bn(i.value,2),s=o[0],l=o[1];d="filter"===s?"".concat(l," ").concat(d||""):"".concat(d||""," ").concat(l)}}catch(m){e={error:m}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}this.comp.setAriaDescription(null!==d&&void 0!==d?d:void 0)},t.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFiltered(),this.refreshAriaDescription()},t.prototype.addColumnHoverListener=function(){var e=this,t=function(){if(e.gridOptionsService.get("columnHoverHighlight")){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,Je.EVENT_COLUMN_HOVER_CHANGED,t),t()},t.prototype.getColId=function(){return 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)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.refreshFunctions=null,this.selectAllFeature=null,this.dragSourceElement=null,this.userCompDetails=null,this.userHeaderClasses=null,this.ariaDescriptionProperties=null},Cn([de("columnModel")],t.prototype,"columnModel",void 0),Cn([de("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),Cn([de("columnHoverService")],t.prototype,"columnHoverService",void 0),Cn([de("sortController")],t.prototype,"sortController",void 0),Cn([de("menuFactory")],t.prototype,"menuFactory",void 0),Cn([de("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Cn([de("gridApi")],t.prototype,"gridApi",void 0),t}(Zu),hn=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Sn=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Tn=function(e){function t(t,d,a,i){var o=e.call(this)||this;return o.eResize=d,o.comp=t,o.pinned=a,o.columnGroup=i,o}return hn(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.get("suppressAutoSize")){var d=this.gridOptionsService.get("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:d,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit("uiColumnResized")}))}}else this.comp.setResizableDisplayed(!1)},t.prototype.onResizeStart=function(e){var t=this.getInitialValues(e);this.storeLocalValues(t),this.toggleColumnResizing(!0)},t.prototype.onResizing=function(e,t,d){void 0===d&&(d="uiColumnResized");var a=this.normaliseDragChange(t),i=this.resizeStartWidth+a;this.resizeColumnsFromLocalValues(i,d,e)},t.prototype.getInitialValues=function(e){var t=this.getColumnsToResize(),d=this.getInitialSizeOfColumns(t),a={columnsToResize:t,resizeStartWidth:d,resizeRatios:this.getSizeRatiosOfColumns(t,d)},i=null;if(e&&(i=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),i){var o=i.getDisplayedLeafColumns(),s=a.groupAfterColumns=o.filter((function(e){return e.isResizable()})),l=a.groupAfterStartWidth=this.getInitialSizeOfColumns(s);a.groupAfterRatios=this.getSizeRatiosOfColumns(s,l)}else a.groupAfterColumns=void 0,a.groupAfterStartWidth=void 0,a.groupAfterRatios=void 0;return a},t.prototype.storeLocalValues=function(e){var t=e.columnsToResize,d=e.resizeStartWidth,a=e.resizeRatios,i=e.groupAfterColumns,o=e.groupAfterStartWidth,s=e.groupAfterRatios;this.resizeCols=t,this.resizeStartWidth=d,this.resizeRatios=a,this.resizeTakeFromCols=i,this.resizeTakeFromStartWidth=o,this.resizeTakeFromRatios=s},t.prototype.clearLocalValues=function(){this.resizeCols=void 0,this.resizeRatios=void 0,this.resizeTakeFromCols=void 0,this.resizeTakeFromRatios=void 0},t.prototype.resizeLeafColumnsToFit=function(e){var t=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup),d=this.getInitialValues();t>d.resizeStartWidth&&this.resizeColumns(d,t,e,!0)},t.prototype.resizeColumnsFromLocalValues=function(e,t,d){var a,i,o;if(void 0===d&&(d=!0),this.resizeCols&&this.resizeRatios){var s={columnsToResize:this.resizeCols,resizeStartWidth:this.resizeStartWidth,resizeRatios:this.resizeRatios,groupAfterColumns:null!==(a=this.resizeTakeFromCols)&&void 0!==a?a:void 0,groupAfterStartWidth:null!==(i=this.resizeTakeFromStartWidth)&&void 0!==i?i:void 0,groupAfterRatios:null!==(o=this.resizeTakeFromRatios)&&void 0!==o?o:void 0};this.resizeColumns(s,e,t,d)}},t.prototype.resizeColumns=function(e,t,d,a){void 0===a&&(a=!0);var i=e.columnsToResize,o=e.resizeStartWidth,s=e.resizeRatios,l=e.groupAfterColumns,m=e.groupAfterStartWidth,r=e.groupAfterRatios,u=[];if(u.push({columns:i,ratios:s,width:t}),l){var n=t-o;u.push({columns:l,ratios:r,width:m-n})}this.columnModel.resizeColumnSets({resizeSets:u,finished:a,source:d}),a&&this.toggleColumnResizing(!1)},t.prototype.toggleColumnResizing=function(e){this.comp.addOrRemoveCssClass("ag-column-resizing",e)},t.prototype.getColumnsToResize=function(){return this.columnGroup.getDisplayedLeafColumns().filter((function(e){return e.isResizable()}))},t.prototype.getInitialSizeOfColumns=function(e){return e.reduce((function(e,t){return e+t.getActualWidth()}),0)},t.prototype.getSizeRatiosOfColumns=function(e,t){return e.map((function(e){return e.getActualWidth()/t}))},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsService.get("enableRtl")?"left"!==this.pinned&&(t*=-1):"right"===this.pinned&&(t*=-1),t},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.clearLocalValues()},Sn([de("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),Sn([de("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),Sn([de("columnModel")],t.prototype,"columnModel",void 0),Sn([Z],t.prototype,"postConstruct",null),t}(ze),gn=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),On=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Dn=function(e){function t(t,d){var a=e.call(this)||this;return a.removeChildListenersFuncs=[],a.columnGroup=d,a.comp=t,a}return gn(t,e),t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,Xe.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(d){d.addEventListener("widthChanged",t),d.addEventListener("visibleChanged",t),e.removeChildListenersFuncs.push((function(){d.removeEventListener("widthChanged",t),d.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("".concat(e,"px")),this.comp.addOrRemoveCssClass("ag-hidden",0===e)},On([Z],t.prototype,"postConstruct",null),t}(ze),Bn=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),vn=function(){return vn=Object.assign||function(e){for(var t,d=1,a=arguments.length;d=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Gn=function(e){function t(t,d){var a=e.call(this,t,d)||this;return a.onSuppressColMoveChange=function(){if(a.isSuppressMoving())a.removeDragSource();else if(!a.dragSource){var e=a.getGui();a.setDragSource(e)}},a.column=t,a}return Bn(t,e),t.prototype.setComp=function(e,t,d){this.comp=e,this.setGui(t),this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.column,"header"),this.addClasses(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var a=this.getParentRowCtrl().getPinned(),i=this.column.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new sn(i,t)),this.createManagedBean(new dn(this.column,t,this.beans)),this.createManagedBean(new Dn(e,this.column)),this.resizeFeature=this.createManagedBean(new Tn(e,d,a,this.column)),this.createManagedBean(new Ei(t,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)})),this.addManagedPropertyListener(Je.EVENT_SUPPRESS_COLUMN_MOVE_CHANGED,this.onSuppressColMoveChange),this.addResizeAndMoveKeyboardListeners()},t.prototype.resizeHeader=function(e,t){if(this.resizeFeature){var d=(e===Fo.Left?-1:1)*this.resizeMultiplier,a=this.resizeFeature.getInitialValues(t);this.resizeFeature.resizeColumns(a,a.resizeStartWidth+d,"uiColumnResized",!0)}},t.prototype.moveHeader=function(e){var t=this,d=t.eGui,a=t.column,i=t.columnModel,o=t.gridOptionsService,s=t.ctrlsService,l=o.get("enableRtl"),m=e===Fo.Left,r=this.getPinned(),u=d.getBoundingClientRect(),n=u.left,f=u.width,p=Eu.normaliseX(m!==l?n-20:n+f+20,r,!0,o,s),c=a.getGroupId(),_=this.focusService.getFocusedHeader();Eu.attemptMoveColumns({allMovingColumns:this.column.getLeafColumns(),isFromHeader:!0,hDirection:e,xPosition:p,pinned:r,fromEnter:!1,fakeEvent:!1,gridOptionsService:o,columnModel:i});var y=a.getDisplayedLeafColumns(),C=m?y[0]:be(y);this.ctrlsService.getGridBodyCtrl().getScrollFeature().ensureColumnVisible(C,"auto"),!this.isAlive()&&_&&this.restoreFocus(c,a,_)},t.prototype.restoreFocus=function(e,t,d){var a=t.getLeafColumns();if(a.length){var i=a[0].getParent();if(i){var o=this.findGroupWidthId(i,e);o&&this.focusService.focusHeaderPosition({headerPosition:vn(vn({},d),{column:o})})}}},t.prototype.findGroupWidthId=function(e,t){for(;e;){if(e.getGroupId()===t)return e;e=e.getParent()}return null},t.prototype.resizeLeafColumnsToFit=function(e){this.resizeFeature&&this.resizeFeature.resizeLeafColumnsToFit(e)},t.prototype.setupUserComp=function(){var e=this,t={displayName:this.displayName,columnGroup:this.column,setExpanded:function(t){e.columnModel.setColumnGroupOpened(e.column.getProvidedColumnGroup(),t,"gridInitializing")},api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context},d=this.userComponentFactory.getHeaderGroupCompDetails(t);this.comp.setUserCompDetails(d)},t.prototype.setupTooltip=function(){var e=this,t=this.column.getColGroupDef(),d={getColumn:function(){return e.column},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return t&&t.headerTooltip}};t&&(d.getColDef=function(){return t}),this.createManagedBean(new dr(d,this.beans)).setComp(this.eGui)},t.prototype.setupExpandable=function(){var e=this.column.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,ye.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,ye.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},t.prototype.refreshExpanded=function(){var e=this.column;this.expandable=e.isExpandable();var t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0)},t.prototype.getColId=function(){return this.column.getUniqueId()},t.prototype.addClasses=function(){var e=this,t=this.column.getColGroupDef(),d=cr.getHeaderClassesFromColDef(t,this.gridOptionsService,null,this.column);this.column.isPadding()?(d.push("ag-header-group-cell-no-group"),this.column.getLeafColumns().every((function(e){return e.isSpanHeaderHeight()}))&&d.push("ag-header-span-height")):d.push("ag-header-group-cell-with-group");d.forEach((function(t){return e.comp.addOrRemoveCssClass(t,!0)}))},t.prototype.setupMovingCss=function(){var e=this,t=this.column.getProvidedColumnGroup().getLeafColumns(),d=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};t.forEach((function(t){e.addManagedListener(t,ce.EVENT_MOVING_CHANGED,d)})),d()},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=this.getRowIndex();this.beans.focusService.setFocusedHeader(t,this.column)}},t.prototype.handleKeyDown=function(t){e.prototype.handleKeyDown.call(this,t);var d=this.getWrapperHasFocus();if(this.expandable&&d&&t.key===Ka.ENTER){var a=this.column,i=!a.isExpanded();this.columnModel.setColumnGroupOpened(a.getProvidedColumnGroup(),i,"uiColumnExpanded")}},t.prototype.setDragSource=function(e){var t=this;if(!this.isSuppressMoving()&&(this.removeDragSource(),e)){var d=this,a=d.column,i=d.columnModel,o=d.displayName,s=d.gridOptionsService,l=d.dragAndDropService,m=a.getProvidedColumnGroup().getLeafColumns(),r=!s.get("suppressDragLeaveHidesColumns"),u=this.dragSource={type:As.HeaderCell,eElement:e,getDefaultIconName:function(){return r?Ns.ICON_HIDE:Ns.ICON_NOT_ALLOWED},dragItemName:o,getDragItem:function(){return t.getDragItemForGroup(a)},onDragStarted:function(){r=!s.get("suppressDragLeaveHidesColumns"),m.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return m.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))},onGridEnter:function(e){var t;if(r){var d=(null===(t=null===e||void 0===e?void 0:e.columns)||void 0===t?void 0:t.filter((function(e){return!e.getColDef().lockVisible})))||[];i.setColumnsVisible(d,!0,"uiColumnMoved")}},onGridExit:function(e){var t;if(r){var d=(null===(t=null===e||void 0===e?void 0:e.columns)||void 0===t?void 0:t.filter((function(e){return!e.getColDef().lockVisible})))||[];i.setColumnsVisible(d,!1,"uiColumnMoved")}}};l.addDragSource(u,!0)}},t.prototype.getDragItemForGroup=function(e){var t=e.getProvidedColumnGroup().getLeafColumns(),d={};t.forEach((function(e){return d[e.getId()]=e.isVisible()}));var a=[];return this.columnModel.getAllDisplayedColumns().forEach((function(e){t.indexOf(e)>=0&&(a.push(e),Te(t,e))})),t.forEach((function(e){return a.push(e)})),{columns:a,visibleState:d}},t.prototype.isSuppressMoving=function(){var e=!1;return this.column.getLeafColumns().forEach((function(t){(t.getColDef().suppressMovable||t.getColDef().lockPosition)&&(e=!0)})),e||this.gridOptionsService.get("suppressMovableColumns")},In([de("columnModel")],t.prototype,"columnModel",void 0),t}(Zu),Mn=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),wn=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Ln=function(e){var t="function"===typeof Symbol&&Symbol.iterator,d=t&&e[t],a=0;if(d)return d.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},En=function(e,t){var d="function"===typeof Symbol&&e[Symbol.iterator];if(!d)return e;var a,i,o=d.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},Vn=0,Rn=function(e){function t(t,d,a){var i=e.call(this)||this;i.instanceId=Vn++,i.rowIndex=t,i.pinned=d,i.type=a;var o=a==Iu.COLUMN_GROUP?"ag-header-row-column-group":a==Iu.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return i.headerRowClass="ag-header-row ".concat(o),i}return Mn(t,e),t.prototype.postConstruct=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),this.isEnsureDomOrder=this.gridOptionsService.get("ensureDomOrder")},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setComp=function(e,t){void 0===t&&(t=!0),this.comp=e,t&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners()},t.prototype.getHeaderRowClass=function(){return this.headerRowClass},t.prototype.getAriaRowIndex=function(){return this.rowIndex+1},t.prototype.getTransform=function(){if(gd())return"translateZ(0)"},t.prototype.addEventListeners=function(){var e=this;this.addManagedListener(this.eventService,Je.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_VIRTUAL_COLUMNS_CHANGED,(function(t){return e.onVirtualColumnsChanged(t.afterScroll)})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener("ensureDomOrder",(function(t){return e.isEnsureDomOrder=t.currentValue})),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){if(this.headerCellCtrls)return n(this.headerCellCtrls).find((function(t){return t.getColumnGroupChild()===e}))},t.prototype.onDisplayedColumnsChanged=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),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("".concat(e,"px"))},t.prototype.getWidthForRow=function(){return this.isPrintLayout?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.getTopAndHeight(),t=e.topOffset,d=e.rowHeight;this.comp.setTop(t+"px"),this.comp.setHeight(d+"px")},t.prototype.getTopAndHeight=function(){var e=this.columnModel.getHeaderRowCount(),t=[],d=0;this.filterManager.hasFloatingFilters()&&(e++,d=1);for(var a=this.columnModel.getColumnGroupHeaderRowHeight(),i=this.columnModel.getColumnHeaderRowHeight(),o=e-(1+d),s=0;s=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},xn=function(e,t){var d="function"===typeof Symbol&&e[Symbol.iterator];if(!d)return e;var a,i,o=d.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=o.next()).done;)s.push(a.value)}catch(l){i={error:l}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(i)throw i.error}}return s},Wn=function(e,t,d){if(d||2===arguments.length)for(var a,i=0,o=t.length;i=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},jn=function(e){function t(t){var d=e.call(this)||this;return d.headerRowComps={},d.rowCompsList=[],d.pinned=t,d}return Hn(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},setViewportScrollLeft:function(t){return e.getGui().scrollLeft=t},setPinnedContainerWidth:function(t){var d=e.getGui();d.style.width=t,d.style.maxWidth=t,d.style.minWidth=t}};this.createManagedBean(new Fn(this.pinned)).setComp(t,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e="left"==this.pinned,d="right"==this.pinned,a=e?t.PINNED_LEFT_TEMPLATE:d?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE;this.setTemplate(a),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,d=this,a=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];e.forEach((function(e){var i=e.getInstanceId(),o=a[i];delete a[i];var s=o||d.createBean(new Qu(e));d.headerRowComps[i]=s,d.rowCompsList.push(s),function(e){var a=e.getGui();a.parentElement!=d.eRowContainer&&d.eRowContainer.appendChild(a),t&&ha(d.eRowContainer,a,t),t=a}(s)})),T(a).forEach((function(e){return d.destroyRowComp(e)}))},t.PINNED_LEFT_TEMPLATE='',t.PINNED_RIGHT_TEMPLATE='',t.CENTER_TEMPLATE='',Nn([Ti("eCenterContainer")],t.prototype,"eCenterContainer",void 0),Nn([Z],t.prototype,"init",null),Nn([ee],t.prototype,"destroyRowComps",null),t}(hi),zn=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Un=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s};!function(e){e[e.UP=0]="UP",e[e.DOWN=1]="DOWN",e[e.LEFT=2]="LEFT",e[e.RIGHT=3]="RIGHT"}(Yu||(Yu={}));var Kn,Yn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zn(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,d){if(t||(t=this.focusService.getFocusedHeader()),!t)return!1;var a=t.headerRowIndex,i=t.column,o=this.getHeaderRowCount(),s=e===Yu.UP?this.headerPositionUtils.getColumnVisibleParent(i,a):this.headerPositionUtils.getColumnVisibleChild(i,a),l=s.nextRow,m=s.nextFocusColumn,r=!1;return l<0&&(l=0,m=i,r=!0),l>=o&&(l=-1),!(!r&&!m)&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:l,column:m},allowUserOverride:!0,event:d})},t.prototype.navigateHorizontally=function(e,t,d){void 0===t&&(t=!1);var a,i,o=this.focusService.getFocusedHeader();return e===Yu.LEFT!==this.gridOptionsService.get("enableRtl")?(i="Before",a=this.headerPositionUtils.findHeader(o,i)):(i="After",a=this.headerPositionUtils.findHeader(o,i)),a||!t?this.focusService.focusHeaderPosition({headerPosition:a,direction:i,fromTab:t,allowUserOverride:!0,event:d}):this.focusNextHeaderRow(o,i,d)},t.prototype.focusNextHeaderRow=function(e,t,d){var a,i=e.headerRowIndex,o=null;return"Before"===t?i>0&&(a=i-1,o=this.headerPositionUtils.findColAtEdgeForHeaderRow(a,"end")):(a=i+1,o=this.headerPositionUtils.findColAtEdgeForHeaderRow(a,"start")),this.focusService.focusHeaderPosition({headerPosition:o,direction:t,fromTab:!0,allowUserOverride:!0,event:d})},t.prototype.scrollToColumn=function(e,t){if(void 0===t&&(t="After"),!e.getPinned()){var d;if(e instanceof Xe){var a=e.getDisplayedLeafColumns();d="Before"===t?be(a):a[0]}else d=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(d)}},Un([de("focusService")],t.prototype,"focusService",void 0),Un([de("headerPositionUtils")],t.prototype,"headerPositionUtils",void 0),Un([de("ctrlsService")],t.prototype,"ctrlsService",void 0),Un([Z],t.prototype,"postConstruct",null),t=Un([te("headerNavigationService")],t)}(ze),Qn=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),$n=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},Xn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qn(t,e),t.prototype.setComp=function(e,t,d){this.comp=e,this.eGui=t,this.createManagedBean(new Ei(d,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},t.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,Je.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Je.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,e),this.addManagedListener(this.eventService,Je.EVENT_GRID_STYLES_CHANGED,e),this.addManagedListener(this.eventService,Je.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,e)},t.prototype.getHeaderHeight=function(){return this.headerHeight},t.prototype.setHeaderHeight=function(){var e,t=this.columnModel,d=0,a=t.getHeaderRowCount();this.filterManager.hasFloatingFilters()&&(a++,d=1);var i=this.columnModel.getColumnGroupHeaderRowHeight(),o=this.columnModel.getColumnHeaderRowHeight(),s=a-(1+d);if(e=d*t.getFloatingFiltersHeight(),e+=s*i,e+=o,this.headerHeight!==e){this.headerHeight=e;var l="".concat(e+1,"px");this.comp.setHeightAndMinHeight(l),this.eventService.dispatchEvent({type:Je.EVENT_HEADER_HEIGHT_CHANGED})}},t.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.getAllDisplayedColumns().some((function(e){return e.isSpanHeaderHeight()}));this.comp.addOrRemoveCssClass("ag-header-allow-overflow",e)},t.prototype.onTabKeyDown=function(e){var t=this.gridOptionsService.get("enableRtl"),d=e.shiftKey!==t?Yu.LEFT:Yu.RIGHT;(this.headerNavigationService.navigateHorizontally(d,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},t.prototype.handleKeyDown=function(e){var t=null;switch(e.key){case Ka.LEFT:t=Yu.LEFT;case Ka.RIGHT:i(t)||(t=Yu.RIGHT),this.headerNavigationService.navigateHorizontally(t,!1,e);break;case Ka.UP:t=Yu.UP;case Ka.DOWN:i(t)||(t=Yu.DOWN),this.headerNavigationService.navigateVertically(t,null,e)&&e.preventDefault();break;default:return}},t.prototype.onFocusOut=function(e){var t=this.gridOptionsService.getDocument(),d=e.relatedTarget;!d&&this.eGui.contains(t.activeElement)||this.eGui.contains(d)||this.focusService.clearFocusedHeader()},$n([de("headerNavigationService")],t.prototype,"headerNavigationService",void 0),$n([de("focusService")],t.prototype,"focusService",void 0),$n([de("columnModel")],t.prototype,"columnModel",void 0),$n([de("ctrlsService")],t.prototype,"ctrlsService",void 0),$n([de("filterManager")],t.prototype,"filterManager",void 0),t}(ze),Jn=function(){var e=function(t,d){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(e[d]=t[d])},e(t,d)};return function(t,d){if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function a(){this.constructor=t}e(t,d),t.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),Zn=function(e,t,d,a){var i,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,d):a;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,d,a);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,d,s):i(t,d))||s);return o>3&&s&&Object.defineProperty(t,d,s),s},ef=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Jn(t,e),t.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(t,d){return e.addOrRemoveCssClass(t,d)},setHeightAndMinHeight:function(t){e.getGui().style.height=t,e.getGui().style.minHeight=t}};this.createManagedBean(new Xn).setComp(t,this.getGui(),this.getFocusableElement());var d=function(t){e.createManagedBean(t),e.appendChild(t)};d(new jn("left")),d(new jn(null)),d(new jn("right"))},t.TEMPLATE='