/** * @ag-grid-enterprise/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1 * @link https://www.ag-grid.com/ * @license Commercial */ // @ag-grid-enterprise/all-modules v28.2.1 !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.agGrid=t():e.agGrid=t()}(window,(function(){return function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=215)}([function(e,t,r){"use strict";r.r(t),function(e){var o=r(194);r.d(t,"ColumnFactory",(function(){return o.a}));var n=r(117);r.d(t,"ColumnModel",(function(){return n.a}));var i=r(116);r.d(t,"ColumnKeyCreator",(function(){return i.a}));var a=r(119);r.d(t,"ColumnUtils",(function(){return a.a}));var s=r(120);r.d(t,"DisplayedGroupCreator",(function(){return s.a}));var l=r(118);r.d(t,"GroupInstanceIdCreator",(function(){return l.a}));var c=r(113);r.d(t,"ComponentUtil",(function(){return c.a}));var u=r(121);r.d(t,"AgStackComponentsRegistry",(function(){return u.a}));var p=r(112);r.d(t,"ColDefUtil",(function(){return p.a}));var d=r(191);r.d(t,"UserComponentRegistry",(function(){return d.a}));var g=r(130);r.d(t,"UserComponentFactory",(function(){return g.a}));var h=r(6);r.d(t,"BeanStub",(function(){return h.a}));var f=r(1);r.d(t,"Context",(function(){return f.c})),r.d(t,"Autowired",(function(){return f.a})),r.d(t,"PostConstruct",(function(){return f.e})),r.d(t,"PreConstruct",(function(){return f.f})),r.d(t,"Optional",(function(){return f.d})),r.d(t,"Bean",(function(){return f.b})),r.d(t,"Qualifier",(function(){return f.h})),r.d(t,"PreDestroy",(function(){return f.g}));var v=r(7);r.d(t,"QuerySelector",(function(){return v.a})),r.d(t,"RefSelector",(function(){return v.b}));var y=r(89);r.d(t,"ExcelFactoryMode",(function(){return y.a}));var m=r(20);r.d(t,"DragAndDropService",(function(){return m.a})),r.d(t,"DragSourceType",(function(){return m.b})),r.d(t,"HorizontalDirection",(function(){return m.c})),r.d(t,"VerticalDirection",(function(){return m.d}));var b=r(132);r.d(t,"DragService",(function(){return b.a}));var w=r(19);r.d(t,"Column",(function(){return w.a}));var C=r(33);r.d(t,"ColumnGroup",(function(){return C.a}));var O=r(31);r.d(t,"ProvidedColumnGroup",(function(){return O.a}));var S=r(22);r.d(t,"RowNode",(function(){return S.b})),r.d(t,"RowHighlightPosition",(function(){return S.a}));var E=r(133);r.d(t,"FilterManager",(function(){return E.a}));var x=r(62);r.d(t,"ProvidedFilter",(function(){return x.a}));var R=r(29);r.d(t,"SimpleFilter",(function(){return R.b}));var T=r(35);r.d(t,"ScalarFilter",(function(){return T.a}));var A=r(75);r.d(t,"NumberFilter",(function(){return A.a}));var P=r(64);r.d(t,"TextFilter",(function(){return P.a}));var _=r(74);r.d(t,"DateFilter",(function(){return _.a}));var D=r(123);r.d(t,"TextFloatingFilter",(function(){return D.a}));var M=r(134);r.d(t,"HeaderFilterCellComp",(function(){return M.a}));var N=r(131);r.d(t,"FloatingFilterMapper",(function(){return N.a}));var I=r(135);r.d(t,"GridBodyComp",(function(){return I.a}));var L=r(60);r.d(t,"GridBodyCtrl",(function(){return L.d})),r.d(t,"RowAnimationCssClasses",(function(){return L.e}));var k=r(137);r.d(t,"ScrollVisibleService",(function(){return k.a}));var F=r(138);r.d(t,"MouseEventService",(function(){return F.a}));var G=r(139);r.d(t,"NavigationService",(function(){return G.a}));var j=r(195);r.d(t,"RowContainerComp",(function(){return j.a}));var z=r(26);r.d(t,"RowContainerName",(function(){return z.b})),r.d(t,"RowContainerCtrl",(function(){return z.a})),r.d(t,"RowContainerType",(function(){return z.c})),r.d(t,"getRowContainerTypeForName",(function(){return z.d}));var B=r(142);r.d(t,"BodyDropPivotTarget",(function(){return B.a}));var V=r(143);r.d(t,"BodyDropTarget",(function(){return V.a}));var W=r(79);r.d(t,"CssClassApplier",(function(){return W.a}));var H=r(93);r.d(t,"HeaderRowContainerComp",(function(){return H.a}));var U=r(147);r.d(t,"GridHeaderComp",(function(){return U.a}));var K=r(148);r.d(t,"GridHeaderCtrl",(function(){return K.a}));var Y=r(40);r.d(t,"HeaderRowComp",(function(){return Y.a})),r.d(t,"HeaderRowType",(function(){return Y.b}));var X=r(94);r.d(t,"HeaderRowCtrl",(function(){return X.a}));var q=r(192);r.d(t,"HeaderCellCtrl",(function(){return q.a}));var Q=r(65);r.d(t,"SortIndicatorComp",(function(){return Q.a}));var Z=r(146);r.d(t,"HeaderFilterCellCtrl",(function(){return Z.a}));var J=r(193);r.d(t,"HeaderGroupCellCtrl",(function(){return J.a}));var $=r(56);r.d(t,"AbstractHeaderCellCtrl",(function(){return $.a}));var ee=r(145);r.d(t,"HeaderRowContainerCtrl",(function(){return ee.a}));var te=r(149);r.d(t,"HorizontalResizeService",(function(){return te.a}));var re=r(144);r.d(t,"MoveColumnFeature",(function(){return re.a}));var oe=r(150);r.d(t,"StandardMenuFactory",(function(){return oe.a}));var ne=r(206);r.d(t,"TabbedLayout",(function(){return ne.a}));var ie=r(207);r.d(t,"simpleHttpRequest",(function(){return ie.a}));var ae=r(151);r.d(t,"ResizeObserverService",(function(){return ae.a}));var se=r(152);r.d(t,"AnimationFrameService",(function(){return se.a}));var le=r(124);r.d(t,"LargeTextCellEditor",(function(){return le.a}));var ce=r(141);r.d(t,"PopupEditorWrapper",(function(){return ce.a}));var ue=r(125);r.d(t,"PopupSelectCellEditor",(function(){return ue.a}));var pe=r(126);r.d(t,"PopupTextCellEditor",(function(){return pe.a}));var de=r(76);r.d(t,"SelectCellEditor",(function(){return de.a}));var ge=r(71);r.d(t,"TextCellEditor",(function(){return ge.a}));var he=r(78);r.d(t,"Beans",(function(){return he.a}));var fe=r(127);r.d(t,"AnimateShowChangeCellRenderer",(function(){return fe.a}));var ve=r(128);r.d(t,"AnimateSlideCellRenderer",(function(){return ve.a}));var ye=r(114);r.d(t,"GroupCellRenderer",(function(){return ye.a}));var me=r(129);r.d(t,"GroupCellRendererCtrl",(function(){return me.a}));var be=r(66);r.d(t,"SetLeftFeature",(function(){return be.a}));var we=r(153);r.d(t,"PositionableFeature",(function(){return we.a}));var Ce=r(154);r.d(t,"AutoWidthCalculator",(function(){return Ce.a}));var Oe=r(77);r.d(t,"CheckboxSelectionComponent",(function(){return Oe.a}));var Se=r(140);r.d(t,"CellComp",(function(){return Se.a}));var Ee=r(43);r.d(t,"CellCtrl",(function(){return Ee.a}));var xe=r(47);r.d(t,"RowCtrl",(function(){return xe.a}));var Re=r(196);r.d(t,"RowRenderer",(function(){return Re.a}));var Te=r(155);r.d(t,"ValueFormatterService",(function(){return Te.a}));var Ae=r(122);r.d(t,"CssClassManager",(function(){return Ae.a}));var Pe=r(156);r.d(t,"PinnedRowModel",(function(){return Pe.a}));var _e=r(208);r.d(t,"ServerSideTransactionResultStatus",(function(){return _e.a}));var De=r(81);r.d(t,"ChangedPath",(function(){return De.a}));var Me=r(115);r.d(t,"RowNodeBlock",(function(){return Me.a}));var Ne=r(157);r.d(t,"RowNodeBlockLoader",(function(){return Ne.a}));var Ie=r(158);r.d(t,"PaginationProxy",(function(){return Ie.a}));var Le=r(49);r.d(t,"ClientSideRowModelSteps",(function(){return Le.a}));var ke=r(159);r.d(t,"StylingService",(function(){return ke.a}));var Fe=r(32);r.d(t,"LayoutCssClasses",(function(){return Fe.a}));var Ge=r(41);r.d(t,"AgAbstractField",(function(){return Ge.a}));var je=r(55);r.d(t,"AgCheckbox",(function(){return je.a}));var ze=r(160);r.d(t,"AgRadioButton",(function(){return ze.a}));var Be=r(161);r.d(t,"AgToggleButton",(function(){return Be.a}));var Ve=r(82);r.d(t,"AgInputTextField",(function(){return Ve.a}));var We=r(162);r.d(t,"AgInputTextArea",(function(){return We.a}));var He=r(163);r.d(t,"AgInputNumberField",(function(){return He.a}));var Ue=r(164);r.d(t,"AgInputRange",(function(){return Ue.a}));var Ke=r(85);r.d(t,"AgSelect",(function(){return Ke.a}));var Ye=r(165);r.d(t,"AgSlider",(function(){return Ye.a}));var Xe=r(166);r.d(t,"AgAngleSelect",(function(){return Xe.a}));var qe=r(197);r.d(t,"AgColorPicker",(function(){return qe.a}));var Qe=r(167);r.d(t,"AgGroupComponent",(function(){return Qe.a}));var Ze=r(67);r.d(t,"AgMenuItemComponent",(function(){return Ze.a}));var Je=r(168);r.d(t,"AgMenuList",(function(){return Je.a}));var $e=r(170);r.d(t,"AgMenuPanel",(function(){return $e.a}));var et=r(83);r.d(t,"AgDialog",(function(){return et.a}));var tt=r(84);r.d(t,"AgPanel",(function(){return tt.a}));var rt=r(15);r.d(t,"Component",(function(){return rt.a}));var ot=r(39);r.d(t,"ManagedFocusFeature",(function(){return ot.a}));var nt=r(57);r.d(t,"TabGuardComp",(function(){return nt.a}));var it=r(169);r.d(t,"TabGuardCtrl",(function(){return it.a}));var at=r(52);r.d(t,"PopupComponent",(function(){return at.a}));var st=r(171);r.d(t,"PopupService",(function(){return st.a}));var lt=r(36);r.d(t,"TouchListener",(function(){return lt.a}));var ct=r(209);r.d(t,"VirtualList",(function(){return ct.a}));var ut=r(59);r.d(t,"CellRangeType",(function(){return ut.a})),r.d(t,"SelectionHandleType",(function(){return ut.b}));var pt=r(136);r.d(t,"AutoScrollService",(function(){return pt.a}));var dt=r(172);r.d(t,"VanillaFrameworkOverrides",(function(){return dt.a}));var gt=r(173);r.d(t,"CellNavigationService",(function(){return gt.a}));var ht=r(174);r.d(t,"AlignedGridsService",(function(){return ht.a}));var ft=r(3);r.d(t,"Constants",(function(){return ft.a}));var vt=r(8);r.d(t,"KeyCode",(function(){return vt.a}));var yt=r(205);r.d(t,"Grid",(function(){return yt.a})),r.d(t,"GridCoreCreator",(function(){return yt.b}));var mt=r(80);r.d(t,"GridApi",(function(){return mt.a}));var bt=r(9);r.d(t,"Events",(function(){return bt.a}));var wt=r(58);r.d(t,"FocusService",(function(){return wt.a}));var Ct=r(210);r.d(t,"defaultGroupComparator",(function(){return Ct.a}));var Ot=r(12);r.d(t,"GridOptionsWrapper",(function(){return Ot.a}));var St=r(38);r.d(t,"EventService",(function(){return St.a}));var Et=r(185);r.d(t,"SelectableService",(function(){return Et.a}));var xt=r(189);r.d(t,"RowNodeSorter",(function(){return xt.a}));var Rt=r(190);r.d(t,"CtrlsService",(function(){return Rt.a}));var Tt=r(180);r.d(t,"GridComp",(function(){return Tt.a}));var At=r(181);r.d(t,"GridCtrl",(function(){return At.a}));var Pt=r(72);r.d(t,"Logger",(function(){return Pt.a})),r.d(t,"LoggerFactory",(function(){return Pt.b}));var _t=r(175);r.d(t,"SelectionService",(function(){return _t.a}));var Dt=r(182);r.d(t,"SortController",(function(){return Dt.a}));var Mt=r(179);r.d(t,"TemplateService",(function(){return Mt.a}));var Nt=r(24);r.d(t,"Color",(function(){return Nt.c})),r.d(t,"stringToArray",(function(){return Nt.g})),r.d(t,"_",(function(){return Nt.f})),r.d(t,"NumberSequence",(function(){return Nt.d})),r.d(t,"AgPromiseStatus",(function(){return Nt.b})),r.d(t,"AgPromise",(function(){return Nt.a})),r.d(t,"Timer",(function(){return Nt.e}));var It=r(177);r.d(t,"ValueService",(function(){return It.a}));var Lt=r(183);r.d(t,"ValueCache",(function(){return Lt.a}));var kt=r(178);r.d(t,"ExpressionService",(function(){return kt.a}));var Ft=r(187);r.d(t,"CellPositionUtils",(function(){return Ft.a}));var Gt=r(186);r.d(t,"RowPositionUtils",(function(){return Gt.a}));var jt=r(188);r.d(t,"HeaderPositionUtils",(function(){return jt.a}));var zt=r(53);r.d(t,"HeaderNavigationService",(function(){return zt.b})),r.d(t,"HeaderNavigationDirection",(function(){return zt.a}));var Bt=r(48);r.d(t,"PropertyKeys",(function(){return Bt.a}));var Vt=r(176);r.d(t,"ColumnApi",(function(){return Vt.a}));var Wt=r(211);r.d(t,"BaseComponentWrapper",(function(){return Wt.a}));var Ht=r(184);r.d(t,"Environment",(function(){return Ht.a}));var Ut=r(63);r.d(t,"CustomTooltipFeature",(function(){return Ut.a}));var Kt=r(212);r.d(t,"DEFAULT_CHART_GROUPS",(function(){return Kt.d})),r.d(t,"CHART_TOOL_PANEL_ALLOW_LIST",(function(){return Kt.b})),r.d(t,"CHART_TOOLBAR_ALLOW_LIST",(function(){return Kt.a})),r.d(t,"CHART_TOOL_PANEL_MENU_OPTIONS",(function(){return Kt.c}));var Yt=r(213);r.d(t,"BarColumnLabelPlacement",(function(){return Yt.a}));var Xt=r(16);r.d(t,"ModuleNames",(function(){return Xt.a}));var qt=r(17);r.d(t,"ModuleRegistry",(function(){return qt.a}));r(4);var Qt=void 0===e?{}:e;Qt.HTMLElement="undefined"==typeof HTMLElement?{}:HTMLElement,Qt.HTMLButtonElement="undefined"==typeof HTMLButtonElement?{}:HTMLButtonElement,Qt.HTMLSelectElement="undefined"==typeof HTMLSelectElement?{}:HTMLSelectElement,Qt.HTMLInputElement="undefined"==typeof HTMLInputElement?{}:HTMLInputElement,Qt.Node="undefined"==typeof Node?{}:Node,Qt.MouseEvent="undefined"==typeof MouseEvent?{}:MouseEvent}.call(this,r(216))},function(e,t,r){"use strict";r.d(t,"c",(function(){return a})),r.d(t,"f",(function(){return s})),r.d(t,"e",(function(){return l})),r.d(t,"g",(function(){return c})),r.d(t,"b",(function(){return u})),r.d(t,"a",(function(){return p})),r.d(t,"d",(function(){return d})),r.d(t,"h",(function(){return h}));var o=r(2),n=r(14),i=r(13),a=function(){function e(e,t){if(this.beanWrappers={},this.destroyed=!1,e&&e.beanClasses){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.createBeans();var r=this.getBeanInstances();this.wireBeans(r),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return Object(o.values)(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"),Object(o.exists)(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),Object(n.iterateObject)(this.beanWrappers,(function(t,r){var o;r.bean.__agBeanMetaData&&r.bean.__agBeanMetaData.autowireMethods&&r.bean.__agBeanMetaData.autowireMethods.agConstructor&&(o=r.bean.__agBeanMetaData.autowireMethods.agConstructor);var n,i,a=e.getBeansForParameters(o,r.bean.name),s=(n=r.bean,i=[null].concat(a),new(n.bind.apply(n,i)));r.beanInstance=s}));var t=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+t)},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var r=void 0;return r=e.prototype.constructor?Object(i.getFunctionName)(e.prototype.constructor):""+e,void console.error("Context item "+r+" is not a bean")}var o={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=o},e.prototype.autoWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(r,o){var n=r.agClassAttributes;n&&n.forEach((function(r){var n=t.lookupBeanInstance(o,r.beanName,r.optional);e[r.attributeName]=n}))}))}))},e.prototype.methodWireBeans=function(e){var t=this;e.forEach((function(e){t.forEachMetaDataInHierarchy(e,(function(r,o){Object(n.iterateObject)(r.autowireMethods,(function(r,n){if("agConstructor"!==r){var i=t.getBeansForParameters(n,o);e[r].apply(e,i)}}))}))}))},e.prototype.forEachMetaDataInHierarchy=function(e,t){for(var r=Object.getPrototypeOf(e);null!=r;){var o=r.constructor;if(o.hasOwnProperty("__agBeanMetaData"))t(o.__agBeanMetaData,this.getBeanName(o));r=Object.getPrototypeOf(r)}},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 r=this,o=[];return e&&Object(n.iterateObject)(e,(function(e,n){var i=r.lookupBeanInstance(t,n);o[Number(e)]=i})),o},e.prototype.lookupBeanInstance=function(e,t,r){if(void 0===r&&(r=!1),"context"===t)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];var o=this.beanWrappers[t];return o?o.beanInstance:(r||console.error("AG Grid: unable to find bean reference "+t+" while initialising "+e),null)},e.prototype.callLifeCycleMethods=function(e,t){var r=this;e.forEach((function(e){return r.callLifeCycleMethodsOnBean(e,t)}))},e.prototype.callLifeCycleMethodsOnBean=function(e,t,r){var o={};this.forEachMetaDataInHierarchy(e,(function(e){var n=e[t];n&&n.forEach((function(e){e!=r&&(o[e]=!0)}))})),Object.keys(o).forEach((function(t){return e[t]()}))},e.prototype.getBean=function(e){return this.lookupBeanInstance("getBean",e,!0)},e.prototype.destroy=function(){if(!this.destroyed){this.logger.log(">> Shutting down ag-Application Context");var e=this.getBeanInstances();this.destroyBeans(e),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e.prototype.destroyBean=function(e){e&&this.destroyBeans([e])},e.prototype.destroyBeans=function(e){var t=this;return e?(e.forEach((function(e){t.callLifeCycleMethodsOnBean(e,"preDestroyMethods","destroy");var r=e;"function"==typeof r.destroy&&r.destroy()})),[]):[]},e}();function s(e,t,r){var o=f(e.constructor);o.preConstructMethods||(o.preConstructMethods=[]),o.preConstructMethods.push(t)}function l(e,t,r){var o=f(e.constructor);o.postConstructMethods||(o.postConstructMethods=[]),o.postConstructMethods.push(t)}function c(e,t,r){var o=f(e.constructor);o.preDestroyMethods||(o.preDestroyMethods=[]),o.preDestroyMethods.push(t)}function u(e){return function(t){f(t).beanName=e}}function p(e){return function(t,r,o){g(t,e,!1,t,r,null)}}function d(e){return function(t,r,o){g(t,e,!0,t,r,null)}}function g(e,t,r,o,n,i){if(null!==t)if("number"!=typeof i){var a=f(e.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:n,beanName:t,optional:r})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function h(e){return function(t,r,o){var n,i="function"==typeof t?t:t.constructor;if("number"==typeof o){var a=void 0;r?(n=f(i),a=r):(n=f(i),a="agConstructor"),n.autowireMethods||(n.autowireMethods={}),n.autowireMethods[a]||(n.autowireMethods[a]={}),n.autowireMethods[a][o]=e}}}function f(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}},function(e,t,r){"use strict";function o(e){return null==e||""===e?null:e}function n(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)}function i(e){return!n(e)}function a(e){return null==e||0===e.length}function s(e){return null!=e&&"function"==typeof e.toString?e.toString():null}function l(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 c(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"==typeof e?e:/true/i.test(e))}function u(e){if(null!=e&&""!==e)return e}function p(e,t){return null==e&&null==t||(null!=e||null==t)&&((null==e||null!=t)&&e===t)}function d(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)}function g(e,t,r){void 0===r&&(r=!1);var o=null==e,n=null==t;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),o&&n)return 0;if(o)return-1;if(n)return 1;function i(e,t){return e>t?1:er)break}else if(e===r)break}return!1}function f(e){var t=window.getComputedStyle(e),r=t.height,o=t.width,n=t.paddingTop,i=t.paddingRight,a=t.paddingBottom,s=t.paddingLeft,l=t.marginTop,c=t.marginRight,u=t.marginBottom,p=t.marginLeft,d=t.boxSizing;return{height:parseFloat(r),width:parseFloat(o),paddingTop:parseFloat(n),paddingRight:parseFloat(i),paddingBottom:parseFloat(a),paddingLeft:parseFloat(s),marginTop:parseFloat(l),marginRight:parseFloat(c),marginBottom:parseFloat(u),marginLeft:parseFloat(p),boxSizing:d}}function v(e){var t=f(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function y(e){var t=f(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function m(e){var t=f(e),r=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+r)}function b(e){var t=f(e),r=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+r)}function w(){if("boolean"==typeof o)return o;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,o=0===Math.floor(e.scrollLeft),document.body.removeChild(e),o}function C(e,t){var r=e.scrollLeft;return t&&(r=Math.abs(r),Object(n.isBrowserChrome)()&&!w()&&(r=e.scrollWidth-e.clientWidth-r)),r}function O(e,t,r){r&&(w()?t*=-1:(Object(n.isBrowserSafari)()||Object(n.isBrowserChrome)())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function S(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function E(e,t){x(e.querySelector(t))}function x(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function R(e){return null!==e.offsetParent}function T(e){var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function A(e,t){e.lastChild?e.insertAdjacentHTML("afterbegin",t):e.innerHTML=t}function P(e,t){return e.attributes&&e.attributes[t]?e.attributes[t].value:null}function _(e){return e&&e.clientHeight?e.clientHeight:0}function D(e){return e&&e.clientWidth?e.clientWidth:0}function M(e,t,r){if(!r||r.nextSibling!==t){var o=document.activeElement,i=t.contains(o);r?r.nextSibling?e.insertBefore(t,r.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t),i&&o&&Object(n.browserSupportsPreventScroll)()&&o.focus({preventScroll:!0})}}function N(e,t){for(var r=0;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},s=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!e.destroyed}}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},e.prototype.getContext=function(){return this.context},e.prototype.destroy=function(){this.destroyFunctions.forEach((function(e){return e()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new o.a),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,r){var o=this;if(!this.destroyed){e instanceof HTMLElement?Object(i.addSafePassiveEventListener)(this.getFrameworkOverrides(),e,t,r):e.addEventListener(t,r);var n=function(){return e.removeEventListener(t,r),o.destroyFunctions=o.destroyFunctions.filter((function(e){return e!==n})),null};return this.destroyFunctions.push(n),n}},e.prototype.addDestroyFunc=function(e){this.isAlive()?this.destroyFunctions.push(e):e()},e.prototype.createManagedBean=function(e,t){var r=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),r},e.prototype.createBean=function(e,t,r){return(t||this.getContext()).createBean(e,r)},e.prototype.destroyBean=function(e,t){return(t||this.getContext()).destroyBean(e)},e.prototype.destroyBeans=function(e,t){var r=this;return e&&e.forEach((function(e){return r.destroyBean(e,t)})),[]},e.EVENT_DESTROYED="destroyed",a([Object(n.a)("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),a([Object(n.a)("context")],e.prototype,"context",void 0),a([Object(n.a)("eventService")],e.prototype,"eventService",void 0),a([Object(n.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),a([n.g],e.prototype,"destroy",null),e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));var o=r(13);function n(e){return a.bind(this,e,void 0)}function i(e){return a.bind(this,"[ref="+e+"]",e)}function a(e,t,r,n,i){null!==e?"number"!=typeof i?function(e,t,r){var n=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}(e,Object(o.getFunctionName)(e.constructor));n[t]||(n[t]=[]);n[t].push(r)}(r,"querySelectors",{attributeName:n,querySelector:e,refSelector:t}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var o=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.V="KeyV",e.D="KeyD",e.Z="KeyZ",e.Y="KeyY",e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var o=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_CHART_CREATED="chartCreated",e.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",e.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",e.EVENT_CHART_DESTROYED="chartDestroyed",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",e.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",e.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_FILL_START="fillStart",e.EVENT_FILL_END="fillEnd",e.EVENT_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_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_CHECKBOX_CHANGED="checkboxChanged",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_BODY_SCROLL_END="bodyScrollEnd",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",e.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",e.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",e.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",e.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",e.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",e.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_POPUP_TO_FRONT="popupToFront",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e.EVENT_KEYBOARD_FOCUS="keyboardFocus",e.EVENT_MOUSE_FOCUS="mouseFocus",e.EVENT_STORE_UPDATED="storeUpdated",e}()},function(e,t,r){"use strict";r.r(t),r.d(t,"firstExistingValue",(function(){return n})),r.d(t,"existsAndNotEmpty",(function(){return i})),r.d(t,"last",(function(){return a})),r.d(t,"areEqual",(function(){return s})),r.d(t,"compareArrays",(function(){return l})),r.d(t,"shallowCompare",(function(){return c})),r.d(t,"sortNumerically",(function(){return u})),r.d(t,"removeRepeatsFromArray",(function(){return p})),r.d(t,"removeFromArray",(function(){return d})),r.d(t,"removeAllFromArray",(function(){return g})),r.d(t,"insertIntoArray",(function(){return h})),r.d(t,"insertArrayIntoArray",(function(){return f})),r.d(t,"moveInArray",(function(){return v})),r.d(t,"includes",(function(){return y})),r.d(t,"flatten",(function(){return m})),r.d(t,"pushAll",(function(){return b})),r.d(t,"toStrings",(function(){return w})),r.d(t,"forEachReverse",(function(){return C}));var o=r(2);function n(){for(var e=[],t=0;t0}function a(e){if(e&&e.length)return e[e.length-1]}function s(e,t,r){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every((function(e,o){return r?r(e,t[o]):t[o]===e}))}function l(e,t){return s(e,t)}function c(e,t){return s(e,t)}function u(e){return e.sort((function(e,t){return e-t}))}function p(e,t){if(e)for(var r=e.length-2;r>=0;r--){var o=e[r]===t,n=e[r+1]===t;o&&n&&e.splice(r+1,1)}}function d(e,t){var r=e.indexOf(t);r>=0&&e.splice(r,1)}function g(e,t){t.forEach((function(t){return d(e,t)}))}function h(e,t,r){e.splice(r,0,t)}function f(e,t,r){if(null!=e&&null!=t)for(var o=t.length-1;o>=0;o--){h(e,t[o],r)}}function v(e,t,r){g(e,t),t.slice().reverse().forEach((function(t){return h(e,t,r)}))}function y(e,t){return e.indexOf(t)>-1}function m(e){return[].concat.apply([],e)}function b(e,t){null!=t&&null!=e&&t.forEach((function(t){return e.push(t)}))}function w(e){return e.map(o.toStringOrNull)}function C(e,t){if(null!=e)for(var r=e.length-1;r>=0;r--)t(e[r],r)}},function(e,t,r){"use strict";function o(e,t,r){e.setAttribute(i(t),r.toString())}function n(e,t){e.removeAttribute(i(t))}function i(e){return"aria-"+e}function a(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function s(e){return e.isSortAscending()?"ascending":e.isSortDescending()?"descending":"none"}function l(e){return parseInt(e.getAttribute("aria-level"),10)}function c(e){return parseInt(e.getAttribute("aria-posinset"),10)}function u(e){return e.getAttribute("aria-describedby")||""}function p(e,t){null!=t&&""!==t?o(e,"label",t):n(e,"label")}function d(e,t){var r="labelledby";t?o(e,r,t):n(e,r)}function g(e,t){var r="description";t?o(e,r,t):n(e,r)}function h(e,t){var r="describedby";t?o(e,r,t):n(e,r)}function f(e,t){o(e,"level",t)}function v(e,t){o(e,"disabled",t)}function y(e,t){t?o(e,"hidden",!0):n(e,"hidden")}function m(e,t){o(e,"expanded",t)}function b(e){n(e,"expanded")}function w(e,t){o(e,"setsize",t)}function C(e,t){o(e,"posinset",t)}function O(e,t){o(e,"multiselectable",t)}function S(e,t){o(e,"rowcount",t)}function E(e,t){o(e,"rowindex",t)}function x(e,t){o(e,"colcount",t)}function R(e,t){o(e,"colindex",t)}function T(e,t){o(e,"colspan",t)}function A(e,t){o(e,"sort",t)}function P(e){n(e,"sort")}function _(e,t){t?o(e,"selected",t):n(e,"selected")}function D(e,t){o(e,"checked",void 0===t?"mixed":t)}r.r(t),r.d(t,"setAriaRole",(function(){return a})),r.d(t,"getAriaSortState",(function(){return s})),r.d(t,"getAriaLevel",(function(){return l})),r.d(t,"getAriaPosInSet",(function(){return c})),r.d(t,"getAriaDescribedBy",(function(){return u})),r.d(t,"setAriaLabel",(function(){return p})),r.d(t,"setAriaLabelledBy",(function(){return d})),r.d(t,"setAriaDescription",(function(){return g})),r.d(t,"setAriaDescribedBy",(function(){return h})),r.d(t,"setAriaLevel",(function(){return f})),r.d(t,"setAriaDisabled",(function(){return v})),r.d(t,"setAriaHidden",(function(){return y})),r.d(t,"setAriaExpanded",(function(){return m})),r.d(t,"removeAriaExpanded",(function(){return b})),r.d(t,"setAriaSetSize",(function(){return w})),r.d(t,"setAriaPosInSet",(function(){return C})),r.d(t,"setAriaMultiSelectable",(function(){return O})),r.d(t,"setAriaRowCount",(function(){return S})),r.d(t,"setAriaRowIndex",(function(){return E})),r.d(t,"setAriaColCount",(function(){return x})),r.d(t,"setAriaColIndex",(function(){return R})),r.d(t,"setAriaColSpan",(function(){return T})),r.d(t,"setAriaSort",(function(){return A})),r.d(t,"removeAriaSort",(function(){return P})),r.d(t,"setAriaSelected",(function(){return _})),r.d(t,"setAriaChecked",(function(){return D}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return A}));var o=r(112),n=r(113),i=r(3),a=r(1),s=r(198),l=r(9),c=r(38),u=r(16),p=r(17),d=r(48),g=r(18),h=r(13),f=r(199),v=r(2),y=r(42),m=r(14),b=r(30),w=function(){return(w=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},O=function(e,t){return function(r,o){t(r,o,e)}},S=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},E=function(){for(var e=[],t=0;t0?r:t}var A=function(){function e(){this.propertyEventService=new c.a,this.domDataKey="__AG_"+Math.random().toString(),this.destroyed=!1}var t;return t=e,e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},e.prototype.init=function(){var e=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),null!=this.gridOptions.sideBar&&(this.gridOptions.sideBar=s.a.parse(this.gridOptions.sideBar));var t=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),t),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("AG Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to use these together on our support forum either, you will get the same answer!"),this.isRowModelServerSide()){var r=function(e){return"AG Grid: '"+e+"' is not supported on the Server-Side Row Model"};Object(v.exists)(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupDefaultExpanded")),Object(v.exists)(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupIncludeFooter")),Object(v.exists)(this.gridOptions.groupDefaultExpanded)&&console.warn(r("groupIncludeTotalFooter"))}x(this.gridOptions.enableRangeSelection)?p.a.assertRegistered(u.a.RangeSelectionModule,"enableRangeSelection"):(this.isEnableRangeHandle()||this.isEnableFillHandle())&&console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true"),this.isGroupRowsSticky()&&(this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRowsSticky and groupHideOpenParents do not work with each other, you need to pick one."),this.isMasterDetail()&&console.warn("AG Grid: groupRowsSticky and masterDetail do not work with each other, you need to pick one."),this.isPagination()&&console.warn("AG Grid: groupRowsSticky and pagination do not work with each other, you need to pick one."));var o=function(t){e.gridOptions.icons&&e.gridOptions.icons[t]&&console.warn("gridOptions.icons."+t+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};o("radioButtonOff"),o("radioButtonOn"),o("checkboxChecked"),o("checkboxUnchecked"),o("checkboxIndeterminate"),this.getScrollbarWidth()},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var r=Object.getOwnPropertyNames(t),n=E(o.a.ALL_PROPERTIES,o.a.FRAMEWORK_PROPERTIES);e.checkProperties(r,n,n,"colDef","https://www.ag-grid.com/javascript-grid-column-properties/")}))},e.prototype.checkGridOptionsProperties=function(){var e=Object.getOwnPropertyNames(this.gridOptions),t=E(d.a.ALL_PROPERTIES,d.a.FRAMEWORK_PROPERTIES,Object(v.values)(l.a).map((function(e){return n.a.getCallbackForEvent(e)}))),r=E(t,["api","columnApi"]);this.checkProperties(e,r,t,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},e.prototype.checkProperties=function(e,t,r,o,n){var i=Object(f.fuzzyCheckStrings)(e,t,r);Object(m.iterateObject)(i,(function(e,t){console.warn("ag-grid: invalid "+o+" property '"+e+"' did you mean any of these: "+t.slice(0,8).join(", "))})),Object.keys(i).length>0&&console.warn("ag-grid: to see all the valid "+o+" properties please check: "+n)},e.prototype.mergeGridCommonParams=function(e){var t=this;if(e){return function(r){var o=w(w({},r),{api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext()});return e(o)}}return e},e.prototype.getDomDataKey=function(){return this.domDataKey},e.prototype.getDomData=function(e,t){var r=e[this.getDomDataKey()];return r?r[t]:void 0},e.prototype.setDomData=function(e,t,r){var o=this.getDomDataKey(),n=e[o];Object(v.missing)(n)&&(n={},e[o]=n),n[t]=r},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isSuppressRowDeselection=function(){return x(this.gridOptions.suppressRowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return x(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return x(this.gridOptions.pivotMode)},e.prototype.isSuppressExpandablePivotGroups=function(){return x(this.gridOptions.suppressExpandablePivotGroups)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===i.a.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===i.a.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===i.a.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return Object(v.missing)(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===i.a.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return x(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return x(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return x(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isSuppressClearOnFillReduction=function(){return x(this.gridOptions.suppressClearOnFillReduction)},e.prototype.isShowToolPanel=function(){return x(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return x(this.gridOptions.suppressTouch)},e.prototype.isMaintainColumnOrder=function(){return x(this.gridOptions.maintainColumnOrder)},e.prototype.isSuppressRowTransform=function(){return x(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressColumnStateEvents=function(){return x(this.gridOptions.suppressColumnStateEvents)},e.prototype.isAllowDragFromColumnsToolPanel=function(){return x(this.gridOptions.allowDragFromColumnsToolPanel)},e.prototype.useAsyncEvents=function(){return!x(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return x(this.gridOptions.enableCellChangeFlash)},e.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},e.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},e.prototype.isGroupSelectsChildren=function(){return x(this.gridOptions.groupSelectsChildren)},e.prototype.isSuppressRowHoverHighlight=function(){return x(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isColumnHoverHighlight=function(){return x(this.gridOptions.columnHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return x(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return x(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMaintainOrder=function(){return x(this.gridOptions.groupMaintainOrder)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isColumnsSortingCoupledToGroup=function(){var e,t=this.getAutoGroupColumnDef();return this.isRowModelDefault()&&!(null===(e=t)||void 0===e?void 0:e.comparator)},e.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.matchesGroupDisplayType("multipleColumns",this.gridOptions.groupDisplayType):x(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupUseEntireRow=function(e){return!e&&(!!this.gridOptions.groupDisplayType&&this.matchesGroupDisplayType("groupRows",this.gridOptions.groupDisplayType))},e.prototype.isRowGroupPanelSuppressSort=function(){return x(this.gridOptions.rowGroupPanelSuppressSort)},e.prototype.isGroupRowsSticky=function(){return x(this.gridOptions.groupRowsSticky)},e.prototype.isGroupSuppressAutoColumn=function(){return!(!this.gridOptions.groupDisplayType||!this.matchesGroupDisplayType("custom",this.gridOptions.groupDisplayType))||!!this.gridOptions.treeDataDisplayType&&this.matchesTreeDataDisplayType("custom",this.gridOptions.treeDataDisplayType)},e.prototype.isGroupRemoveSingleChildren=function(){return x(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return x(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return x(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return x(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return x(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return x(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellFocus=function(){return x(this.gridOptions.suppressCellFocus)},e.prototype.isSuppressMultiSort=function(){return x(this.gridOptions.suppressMultiSort)},e.prototype.isAlwaysMultiSort=function(){return x(this.gridOptions.alwaysMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isPivotSuppressAutoColumn=function(){return x(this.gridOptions.pivotSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return x(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressRowGroupHidesColumns=function(){return x(this.gridOptions.suppressRowGroupHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return x(this.gridOptions.suppressScrollOnNewData)},e.prototype.isSuppressScrollWhenPopupsAreOpen=function(){return x(this.gridOptions.suppressScrollWhenPopupsAreOpen)},e.prototype.isRowDragEntireRow=function(){return x(this.gridOptions.rowDragEntireRow)},e.prototype.getRowDragText=function(e){if(e){var t=e.getColDef();if(t.rowDragText)return t.rowDragText}return this.gridOptions.rowDragText},e.prototype.isSuppressRowDrag=function(){return x(this.gridOptions.suppressRowDrag)},e.prototype.isRowDragManaged=function(){return x(this.gridOptions.rowDragManaged)},e.prototype.isSuppressMoveWhenRowDragging=function(){return x(this.gridOptions.suppressMoveWhenRowDragging)},e.prototype.isRowDragMultiRow=function(){return x(this.gridOptions.rowDragMultiRow)},e.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||i.a.DOM_LAYOUT_NORMAL;return-1===[i.a.DOM_LAYOUT_PRINT,i.a.DOM_LAYOUT_AUTO_HEIGHT,i.a.DOM_LAYOUT_NORMAL].indexOf(e)?(Object(h.doOnce)((function(){return console.warn("AG Grid: "+e+" is not valid for DOM Layout, valid values are "+i.a.DOM_LAYOUT_NORMAL+", "+i.a.DOM_LAYOUT_AUTO_HEIGHT+" and "+i.a.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),i.a.DOM_LAYOUT_NORMAL):e},e.prototype.isSuppressHorizontalScroll=function(){return x(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return x(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return x(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowHorizontalScroll=function(){return x(this.gridOptions.alwaysShowHorizontalScroll)},e.prototype.isAlwaysShowVerticalScroll=function(){return x(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isDebounceVerticalScrollbar=function(){return x(this.gridOptions.debounceVerticalScrollbar)},e.prototype.isSuppressLoadingOverlay=function(){return x(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return x(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return x(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return x(this.gridOptions.functionsPassive)},e.prototype.isSuppressChangeDetection=function(){return x(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return x(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return x(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return x(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return x(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return x(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return x(this.gridOptions.enterMovesDown)},e.prototype.isUndoRedoCellEditing=function(){return x(this.gridOptions.undoRedoCellEditing)},e.prototype.getUndoRedoCellEditingLimit=function(){return R(this.gridOptions.undoRedoCellEditingLimit)},e.prototype.isEnableCellEditingOnBackspace=function(){return x(this.gridOptions.enableCellEditingOnBackspace)},e.prototype.getRowStyle=function(){return this.gridOptions.rowStyle},e.prototype.getRowClass=function(){return this.gridOptions.rowClass},e.prototype.getRowStyleFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowStyle)},e.prototype.getRowClassFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowClass)},e.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},e.prototype.isServerSideInfiniteScroll=function(){return x(this.gridOptions.serverSideInfiniteScroll)},e.prototype.getServerSideGroupLevelParamsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getServerSideGroupLevelParams)},e.prototype.getCreateChartContainerFunc=function(){return this.mergeGridCommonParams(this.gridOptions.createChartContainer)},e.prototype.getPopupParent=function(){return this.gridOptions.popupParent},e.prototype.getBlockLoadDebounceMillis=function(){return this.gridOptions.blockLoadDebounceMillis},e.prototype.getPostProcessPopupFunc=function(){return this.mergeGridCommonParams(this.gridOptions.postProcessPopup)},e.prototype.getPaginationNumberFormatterFunc=function(){return this.mergeGridCommonParams(this.gridOptions.paginationNumberFormatter)},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getIsApplyServerSideTransactionFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isApplyServerSideTransaction)},e.prototype.getInitialGroupOrderComparator=function(){var e=this.gridOptions,t=e.initialGroupOrderComparator,r=e.defaultGroupOrderComparator;return t?this.mergeGridCommonParams(t):r?function(e){return r(e.nodeA,e.nodeB)}:void 0},e.prototype.getIsFullWidthCellFunc=function(){var e=this.gridOptions,t=e.isFullWidthRow,r=e.isFullWidthCell;return t?this.mergeGridCommonParams(t):r?function(e){return r(e.rowNode)}:void 0},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return x(this.gridOptions.embedFullWidthRows)||x(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.isDetailRowAutoHeight=function(){return x(this.gridOptions.detailRowAutoHeight)},e.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},e.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},e.prototype.getApi=function(){return this.gridOptions.api},e.prototype.getColumnApi=function(){return this.gridOptions.columnApi},e.prototype.isReadOnlyEdit=function(){return x(this.gridOptions.readOnlyEdit)},e.prototype.isImmutableData=function(){var e=null!=this.gridOptions.getRowId,t=x(this.gridOptions.immutableData);return!x(this.gridOptions.resetRowDataOnUpdate)&&(e||t)},e.prototype.isEnsureDomOrder=function(){return x(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return!!x(this.gridOptions.enableCharts)&&p.a.assertRegistered(u.a.GridChartsModule,"enableCharts")},e.prototype.isEnableChartToolPanelsButton=function(){return x(this.gridOptions.enableChartToolPanelsButton)},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return x(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return x(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenCellsLoseFocus=function(){return x(this.gridOptions.stopEditingWhenCellsLoseFocus)},e.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},e.prototype.getMaxConcurrentDatasourceRequests=function(){var e=R(this.gridOptions.maxConcurrentDatasourceRequests);return null==e?2:e<=0?void 0:e},e.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},e.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},e.prototype.getPaginationPageSize=function(){return R(this.gridOptions.paginationPageSize)},e.prototype.isPaginateChildRows=function(){return!(!this.isGroupRemoveSingleChildren()&&!this.isGroupRemoveLowestSingleChildren())||x(this.gridOptions.paginateChildRows)},e.prototype.getCacheBlockSize=function(){return T(this.gridOptions.cacheBlockSize)},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.getServerSideInitialRowCount=function(){var e=this.gridOptions.serverSideInitialRowCount;return"number"==typeof e&&e>0?e:1},e.prototype.isPurgeClosedRowNodes=function(){return x(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return x(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isEnableRtl=function(){return x(this.gridOptions.enableRtl)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return x(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return x(this.gridOptions.angularCompileFilters)},e.prototype.isDebug=function(){return x(this.gridOptions.debug)},e.prototype.getColumnDefs=function(){return this.gridOptions.columnDefs},e.prototype.getColumnTypes=function(){return this.gridOptions.columnTypes},e.prototype.getDatasource=function(){return this.gridOptions.datasource},e.prototype.getViewportDatasource=function(){return this.gridOptions.viewportDatasource},e.prototype.getServerSideDatasource=function(){return this.gridOptions.serverSideDatasource},e.prototype.isAccentedSort=function(){return x(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return x(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return x(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return x(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return x(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isPreventDefaultOnContextMenu=function(){return x(this.gridOptions.preventDefaultOnContextMenu)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return x(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return x(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressRowVirtualisation=function(){return x(this.gridOptions.suppressRowVirtualisation)},e.prototype.isSuppressContextMenu=function(){return x(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return x(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return x(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isSuppressCopySingleCellRanges=function(){return x(this.gridOptions.suppressCopySingleCellRanges)},e.prototype.isCopyHeadersToClipboard=function(){return x(this.gridOptions.copyHeadersToClipboard)},e.prototype.isCopyGroupHeadersToClipboard=function(){return x(this.gridOptions.copyGroupHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return x(this.gridOptions.suppressClipboardPaste)},e.prototype.isSuppressLastEmptyLineOnPaste=function(){return x(this.gridOptions.suppressLastEmptyLineOnPaste)},e.prototype.isPagination=function(){return x(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return x(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processDataFromClipboard)},e.prototype.getAsyncTransactionWaitMillis=function(){return Object(v.exists)(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:i.a.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return x(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&x(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return x(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return x(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return x(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isSuppressAggFilteredOnly=function(){return void 0!==this.getGroupAggFiltering()||x(this.gridOptions.suppressAggFilteredOnly)},e.prototype.isRemovePivotHeaderRowWhenSingleValueColumn=function(){return x(this.gridOptions.removePivotHeaderRowWhenSingleValueColumn)},e.prototype.isShowOpenedGroup=function(){return x(this.gridOptions.showOpenedGroup)},e.prototype.isReactUi=function(){return x(this.gridOptions.reactUi)},e.prototype.isSuppressReactUi=function(){return x(this.gridOptions.suppressReactUi)},e.prototype.isEnableRangeSelection=function(){return p.a.isRegistered(u.a.RangeSelectionModule)&&x(this.gridOptions.enableRangeSelection)},e.prototype.isEnableRangeHandle=function(){return x(this.gridOptions.enableRangeHandle)},e.prototype.isEnableFillHandle=function(){return x(this.gridOptions.enableFillHandle)},e.prototype.getFillHandleDirection=function(){var e=this.gridOptions.fillHandleDirection;return e?"x"!==e&&"y"!==e&&"xy"!==e?(Object(h.doOnce)((function(){return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.")}),"warn invalid fill direction"),"xy"):e:"xy"},e.prototype.getFillOperation=function(){return this.mergeGridCommonParams(this.gridOptions.fillOperation)},e.prototype.isSuppressMultiRangeSelection=function(){return x(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return x(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return x(this.gridOptions.rememberGroupStateWhenNewData)},e.prototype.getIcons=function(){return this.gridOptions.icons},e.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;return"function"==typeof e?this.mergeGridCommonParams(e):x(e)?function(){return!0}:void 0},e.prototype.getAggFuncs=function(){return this.gridOptions.aggFuncs},e.prototype.getSortingOrder=function(){return this.gridOptions.sortingOrder},e.prototype.getAlignedGrids=function(){return this.gridOptions.alignedGrids},e.prototype.isMasterDetail=function(){return!!x(this.gridOptions.masterDetail)&&p.a.assertRegistered(u.a.MasterDetailModule,"masterDetail")},e.prototype.isKeepDetailRows=function(){return x(this.gridOptions.keepDetailRows)},e.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptions.keepDetailRowsCount;return Object(v.exists)(e)&&e>0?this.gridOptions.keepDetailRowsCount:10},e.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},e.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},e.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},e.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},e.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},e.prototype.isSuppressAutoSize=function(){return x(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return x(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return x(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isSuppressClipboardApi=function(){return x(this.gridOptions.suppressClipboardApi)},e.prototype.isFunctionsReadOnly=function(){return x(this.gridOptions.functionsReadOnly)},e.prototype.isEnableCellTextSelect=function(){return x(this.gridOptions.enableCellTextSelection)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(e){return this.gridOptions.defaultExportParams?(console.warn("AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default"+Object(b.capitalise)(e)+"ExportParams`'"),this.gridOptions.defaultExportParams):"csv"===e&&this.gridOptions.defaultCsvExportParams?this.gridOptions.defaultCsvExportParams:"excel"===e&&this.gridOptions.defaultExcelExportParams?this.gridOptions.defaultExcelExportParams:void 0},e.prototype.isSuppressCsvExport=function(){return x(this.gridOptions.suppressCsvExport)},e.prototype.isAllowShowChangeAfterFilter=function(){return x(this.gridOptions.allowShowChangeAfterFilter)},e.prototype.isSuppressExcelExport=function(){return x(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return x(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getIsServerSideGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isServerSideGroupOpenByDefault)},e.prototype.getIsGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isGroupOpenByDefault)},e.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},e.prototype.getGroupRowAggFunc=function(){var e=this.gridOptions,t=e.getGroupRowAgg,r=e.groupRowAggNodes;return t?this.mergeGridCommonParams(t):r?function(e){return r(e.nodes)}:void 0},e.prototype.getContextMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getContextMenuItems)},e.prototype.getMainMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getMainMenuItems)},e.prototype.getRowIdFunc=function(){var e=this.gridOptions,t=e.getRowId,r=e.getRowNodeId;return t?this.mergeGridCommonParams(t):r?function(e){return r(e.data)}:void 0},e.prototype.getNavigateToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextHeader)},e.prototype.getTabToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextHeader)},e.prototype.getNavigateToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextCell)},e.prototype.getTabToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextCell)},e.prototype.getGridTabIndex=function(){return(this.gridOptions.tabIndex||0).toString()},e.prototype.isTreeData=function(){return!!x(this.gridOptions.treeData)&&p.a.assertRegistered(u.a.RowGroupingModule,"Tree Data")},e.prototype.isValueCache=function(){return x(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return x(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return x(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return x(this.gridOptions.aggregateOnlyChangedColumns)},e.prototype.getProcessPivotResultColDefFunc=function(){return this.gridOptions.processPivotResultColDef||this.gridOptions.processSecondaryColDef},e.prototype.getProcessPivotResultColGroupDefFunc=function(){return this.gridOptions.processPivotResultColGroupDef||this.gridOptions.processSecondaryColGroupDef},e.prototype.getSendToClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.sendToClipboard)},e.prototype.getProcessRowPostCreateFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processRowPostCreate)},e.prototype.getProcessCellForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellForClipboard)},e.prototype.getProcessHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processHeaderForClipboard)},e.prototype.getProcessGroupHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processGroupHeaderForClipboard)},e.prototype.getProcessCellFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellFromClipboard)},e.prototype.getViewportRowModelPageSize=function(){return T(this.gridOptions.viewportRowModelPageSize,5)},e.prototype.getViewportRowModelBufferSize=function(){return e=this.gridOptions.viewportRowModelBufferSize,t=5,e>=0?e:t;var e,t},e.prototype.isServerSideSortAllLevels=function(){var e=x(this.gridOptions.serverSideSortAllLevels);return!this.isRowModelServerSide()&&e?(Object(h.doOnce)((function(){return console.warn("AG Grid: The `serverSideSortAllLevels` property can only be used with the server side row model.")}),"serverSideSortAllLevels"),!1):e},e.prototype.isServerSideFilterAllLevels=function(){var e=x(this.gridOptions.serverSideFilterAllLevels);return!this.isRowModelServerSide()&&e?(Object(h.doOnce)((function(){return console.warn("AG Grid: The `serverSideFilterAllLevels` property can only be used with the server side row model.")}),"serverSideFilterAllLevels"),!1):e},e.prototype.isServerSideSortOnServer=function(){var e=x(this.gridOptions.serverSideSortOnServer);return!this.isRowModelServerSide()&&e?(Object(h.doOnce)((function(){return console.warn("AG Grid: The `serverSideSortOnServer` property can only be used with the server side row model.")}),"serverSideSortOnServerRowModel"),!1):this.isTreeData()&&e?(Object(h.doOnce)((function(){return console.warn("AG Grid: The `serverSideSortOnServer` property cannot be used while using tree data.")}),"serverSideSortOnServerTreeData"),!1):e},e.prototype.isServerSideFilterOnServer=function(){var e=x(this.gridOptions.serverSideFilterOnServer);return!this.isRowModelServerSide()&&e?(Object(h.doOnce)((function(){return console.warn("AG Grid: The `serverSideFilterOnServer` property can only be used with the server side row model.")}),"serverSideFilterOnServerRowModel"),!1):this.isTreeData()&&e?(Object(h.doOnce)((function(){return console.warn("AG Grid: The `serverSideFilterOnServer` property cannot be used while using tree data.")}),"serverSideFilterOnServerTreeData"),!1):e},e.prototype.getPostSortFunc=function(){var e=this.gridOptions,t=e.postSortRows,r=e.postSort;return t?this.mergeGridCommonParams(t):r?function(e){return r(e.nodes)}:void 0},e.prototype.getChartToolbarItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getChartToolbarItems)},e.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},e.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},e.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},e.prototype.getChartToolPanelsDef=function(){return this.gridOptions.chartToolPanelsDef},e.prototype.getClipboardDelimiter=function(){return Object(v.exists)(this.gridOptions.clipboardDelimiter)?this.gridOptions.clipboardDelimiter:"\t"},e.prototype.setProperty=function(e,t,r){void 0===r&&(r=!1);var o=this.gridOptions[e];if(r||o!==t){this.gridOptions[e]=t;var n={type:e,currentValue:t,previousValue:o};this.propertyEventService.dispatchEvent(n)}},e.prototype.addEventListener=function(e,t){this.propertyEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},e.prototype.getAutoSizePadding=function(){var e=this.gridOptions.autoSizePadding;return null!=e&&e>=0?e:20},e.prototype.getHeaderHeight=function(){return"number"==typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"==typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotGroupHeaderHeight=function(){return"number"==typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},e.prototype.isExternalFilterPresent=function(){return"function"==typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent({api:this.getApi(),columnApi:this.getColumnApi(),context:this.getContext()})},e.prototype.doesExternalFilterPass=function(e){return"function"==typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},e.prototype.getTooltipDelay=function(e){var t=this.gridOptions,r=t.tooltipShowDelay,o=t.tooltipHideDelay,n="show"===e?r:o,i=Object(b.capitalise)(e);return Object(v.exists)(n)?(n<0&&Object(h.doOnce)((function(){return console.warn("ag-grid: tooltip"+i+"Delay should not be lower than 0")}),"tooltip"+i+"DelayWarn"),Math.max(200,n)):null},e.prototype.isTooltipMouseTrack=function(){return x(this.gridOptions.tooltipMouseTrack)},e.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(){return x(this.gridOptions.suppressModelUpdateAfterUpdateTransaction)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&Object(v.exists)(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&Object(v.exists)(e)?e:document},e.prototype.getMinColWidth=function(){var e=this.gridOptions.minColWidth;if(Object(v.exists)(e)&&e>t.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var r=this.getFromTheme(null,"headerCellMinWidth");return Object(v.exists)(r)?Math.max(r,t.MIN_COL_WIDTH):t.MIN_COL_WIDTH},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>t.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!=typeof this.gridOptions.colWidth||this.gridOptions.colWidth=0?this.gridOptions.scrollbarWidth:Object(g.getScrollbarWidth)();null!=e&&(this.scrollbarWidth=e,this.eventService.dispatchEvent({type:l.a.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},e.prototype.checkForDeprecated=function(){var e=this.gridOptions;e.deprecatedEmbedFullWidthRows&&console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),e.rowDeselection&&console.warn("AG Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected."),e.enableMultiRowDragging&&(e.rowDragMultiRow=!0,delete e.enableMultiRowDragging,console.warn("AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`."));var t=function(t,r,o){null!=e[t]&&(console.warn("AG Grid: since version "+o+", '"+t+"' is deprecated / renamed, please use the new property name '"+r+"' instead."),null==e[r]&&(e[r]=e[t]))};if(t("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),t("deltaRowDataMode","immutableData","23.1.x"),t("serverSideFilteringAlwaysResets","serverSideFilterAllLevels","28.0.0"),t("serverSideSortingAlwaysResets","serverSideSortAllLevels","28.0.0"),(e.immutableColumns||e.deltaColumnMode)&&console.warn("AG Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true"),t("suppressSetColumnStateEvents","suppressColumnStateEvents","24.0.x"),e.groupRowInnerRenderer||e.groupRowInnerRendererParams||e.groupRowInnerRendererFramework){console.warn("AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used."),console.warn(" Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams."),console.warn(" For example instead of this:"),console.warn(' groupRowInnerRenderer: "myRenderer"'),console.warn(" groupRowInnerRendererParams: {x: a}"),console.warn(" Replace with this:"),console.warn(" groupRowRendererParams: {"),console.warn(' innerRenderer: "myRenderer",'),console.warn(" innerRendererParams: {x: a}"),console.warn(" }"),console.warn(" We have copied the properties over for you. However to stop this error message, please change your application code."),e.groupRowRendererParams||(e.groupRowRendererParams={});var r=e.groupRowRendererParams;e.groupRowInnerRenderer&&(r.innerRenderer=e.groupRowInnerRenderer),e.groupRowInnerRendererParams&&(r.innerRendererParams=e.groupRowInnerRendererParams),e.groupRowInnerRendererFramework&&(r.innerRendererFramework=e.groupRowInnerRendererFramework)}if(e.rememberGroupStateWhenNewData&&console.warn("AG Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed."),e.detailCellRendererParams&&e.detailCellRendererParams.autoHeight&&(console.warn("AG Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer"),e.detailRowAutoHeight=!0),e.suppressKeyboardEvent&&console.warn("AG Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in\n future versions of AG Grid. If you need this to be set for every column use the defaultColDef property."),e.suppressEnterpriseResetOnNewColumns&&console.warn("AG Grid: since v25, grid property suppressEnterpriseResetOnNewColumns is deprecated. This was a temporary property to allow changing columns in Server Side Row Model without triggering a reload. Now that it is possible to dynamically change columns in the grid, this is no longer needed."),e.suppressColumnStateEvents&&console.warn('AG Grid: since v25, grid property suppressColumnStateEvents no longer works due to a refactor that we did. It should be possible to achieve similar using event.source, which would be "api" if the event was due to setting column state via the API'),e.defaultExportParams&&console.warn("AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`."),e.stopEditingWhenGridLosesFocus&&(console.warn("AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`."),e.stopEditingWhenCellsLoseFocus=!0),e.applyColumnDefOrder&&console.warn("AG Grid: since v26.0, the grid property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"),e.groupMultiAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`"),e.groupDisplayType="multipleColumns"),e.groupUseEntireRow&&(console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`"),e.groupDisplayType="groupRows"),e.groupSuppressAutoColumn){var o=e.treeData?"treeDataDisplayType":"groupDisplayType";console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+o+" = 'custom'`"),e.groupDisplayType="custom"}e.defaultGroupOrderComparator&&console.warn("AG Grid: since v27.2, the grid property `defaultGroupOrderComparator` is deprecated and has been replaced by `initialGroupOrderComparator` and now receives a single params object."),e.defaultGroupSortComparator&&(console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`"),e.defaultGroupOrderComparator=e.defaultGroupSortComparator),e.groupRowAggNodes&&console.warn("AG Grid: since v27.2, the grid property `groupRowAggNodes` is deprecated and has been replaced by `getGroupRowAgg` and now receives a single params object."),e.postSort&&console.warn("AG Grid: since v27.2, the grid property `postSort` is deprecated and has been replaced by `postSortRows` and now receives a single params object."),e.isFullWidthCell&&console.warn("AG Grid: since v27.2, the grid property `isFullWidthCell` is deprecated and has been replaced by `isFullWidthRow` and now receives a single params object."),e.localeTextFunc&&console.warn("AG Grid: since v27.2, the grid property `localeTextFunc` is deprecated and has been replaced by `getLocaleText` and now receives a single params object."),e.colWidth&&console.warn("AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`."),e.minColWidth&&console.warn("AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`."),e.maxColWidth&&console.warn("AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`."),e.reactUi&&console.warn("AG Grid: since v27.0, React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true."),e.suppressReactUi&&console.warn("AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."),e.suppressCellSelection&&(console.warn("AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`."),e.suppressCellFocus=e.suppressCellSelection),e.getRowNodeId&&console.warn("AG Grid: since v27.1, `getRowNodeId` is deprecated and has been replaced by `getRowId`. The difference: if getRowId() is implemented then immutable data is enabled by default."),e.immutableData&&(e.getRowId?console.warn("AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`."):console.warn("AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.")),e.clipboardDeliminator&&(console.warn("AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`."),e.clipboardDelimiter=e.clipboardDeliminator),t("processSecondaryColDef","processPivotResultColDef","28.0.x"),t("processSecondaryColGroupDef","processPivotResultColGroupDef","28.0.x"),e.serverSideStoreType&&(console.warn("AG Grid: since v28.0, `serverSideStoreType` has been replaced by `serverSideInfiniteScroll`. Set to true to use Partial Store, and false to use Full Store."),e.serverSideInfiniteScroll="partial"===e.serverSideStoreType),t("getServerSideStoreParams","getServerSideGroupLevelParams","28.0.x")},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&Object(v.missing)(this.getDataPathFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data."),this.isRowModelServerSide()&&(Object(v.missing)(this.getIsServerSideGroupFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),Object(v.missing)(this.getServerSideGroupKeyFunc())&&console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},e.prototype.getLocaleTextFunc=function(){var e=this,t=this.gridOptions,r=t.localeText,o=t.getLocaleText,n=t.localeTextFunc;return o?function(t,r,n){var i={key:t,defaultValue:r,variableValues:n,api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext()};return o(i)}:n||function(e,t,o){var n=r&&r[e];if(n&&o&&o.length)for(var i=0;!(i>=o.length);){if(-1===n.indexOf("${variable}"))break;n=n.replace("${variable}",o[i++])}return null!=n?n:t}},e.prototype.globalEventHandler=function(e,t){if(!this.destroyed){var r=n.a.getCallbackForEvent(e);"function"==typeof this.gridOptions[r]&&this.gridOptions[r](t)}},e.prototype.setRowHeightVariable=function(e){var t=e+"px";this.eGridDiv.style.getPropertyValue("--ag-line-height").trim()!=t&&this.eGridDiv.style.setProperty("--ag-line-height",t)},e.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||Object(v.missing)(this.gridOptions.rowHeight))return this.getDefaultRowHeight();var e=this.gridOptions.rowHeight;return e&&this.isNumeric(e)?(this.setRowHeightVariable(e),e):(console.warn("AG Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},e.prototype.isGetRowHeightFunction=function(){return"function"==typeof this.gridOptions.getRowHeight},e.prototype.getRowHeightForNode=function(e,t,r){if(void 0===t&&(t=!1),null==r&&(r=this.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(t)return{height:r,estimated:!0};var o={node:e,data:e.data},n=this.mergeGridCommonParams(this.gridOptions.getRowHeight)(o);if(this.isNumeric(n))return 0===n&&Object(h.doOnce)((function(){return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.")}),"invalidRowHeight"),{height:Math.max(1,n),estimated:!1}}return e.detail&&this.isMasterDetail()?this.isDetailRowAutoHeight()?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}:{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:r,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"==typeof this.gridOptions.getRowHeight},e.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},e.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"==typeof e&&isFinite(e)},e.prototype.getFromTheme=function(e,t){var r=this.environment.getTheme().theme;return r&&0===r.indexOf("ag-theme")?this.environment.getSassVariable(r,t):e},e.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},e.prototype.matchesGroupDisplayType=function(e,t){var r=["groupRows","multipleColumns","custom","singleColumn"];return r.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid groupDisplayType value - possible values are: '"+r.join("', '")+"'"),!1):t===e},e.prototype.matchesTreeDataDisplayType=function(e,t){var r=["auto","custom"];return r.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid treeDataDisplayType value - possible values are: '"+r.join("', '")+"'"),!1):t===e},e.MIN_COL_WIDTH=10,e.PROP_HEADER_HEIGHT="headerHeight",e.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",e.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",e.PROP_GROUP_DISPLAY_TYPE="groupDisplayType",e.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",e.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",e.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",e.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",e.PROP_NAVIGATE_TO_NEXT_CELL="navigateToNextCell",e.PROP_TAB_TO_NEXT_CELL="tabToNextCell",e.PROP_NAVIGATE_TO_NEXT_HEADER="navigateToNextHeader",e.PROP_TAB_TO_NEXT_HEADER="tabToNextHeader",e.PROP_IS_EXTERNAL_FILTER_PRESENT="isExternalFilterPresent",e.PROP_DOES_EXTERNAL_FILTER_PASS="doesExternalFilterPass",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",e.PROP_GET_ROW_CLASS="getRowClass",e.PROP_GET_ROW_STYLE="getRowStyle",e.PROP_GET_ROW_HEIGHT="getRowHeight",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",e.PROP_ROW_CLASS="rowClass",e.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",e.PROP_GROUP_ROW_AGG_NODES="groupRowAggNodes",e.PROP_GET_GROUP_ROW_AGG="getGroupRowAgg",e.PROP_GET_BUSINESS_KEY_FOR_NODE="getBusinessKeyForNode",e.PROP_GET_CHILD_COUNT="getChildCount",e.PROP_PROCESS_ROW_POST_CREATE="processRowPostCreate",e.PROP_GET_ROW_NODE_ID="getRowNodeId",e.PROP_GET_ROW_ID="getRowId",e.PROP_IS_FULL_WIDTH_CELL="isFullWidthCell",e.PROP_IS_FULL_WIDTH_ROW="isFullWidthRow",e.PROP_IS_ROW_SELECTABLE="isRowSelectable",e.PROP_IS_ROW_MASTER="isRowMaster",e.PROP_POST_SORT="postSort",e.PROP_POST_SORT_ROWS="postSortRows",e.PROP_GET_DOCUMENT="getDocument",e.PROP_POST_PROCESS_POPUP="postProcessPopup",e.PROP_DEFAULT_GROUP_ORDER_COMPARATOR="defaultGroupOrderComparator",e.PROP_INITIAL_GROUP_ORDER_COMPARATOR="initialGroupOrderComparator",e.PROP_PAGINATION_NUMBER_FORMATTER="paginationNumberFormatter",e.PROP_GET_CONTEXT_MENU_ITEMS="getContextMenuItems",e.PROP_GET_MAIN_MENU_ITEMS="getMainMenuItems",e.PROP_PROCESS_CELL_FOR_CLIPBOARD="processCellForClipboard",e.PROP_PROCESS_CELL_FROM_CLIPBOARD="processCellFromClipboard",e.PROP_SEND_TO_CLIPBOARD="sendToClipboard",e.PROP_PROCESS_PIVOT_RESULT_COL_DEF="processPivotResultColDef",e.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF="processPivotResultColGroupDef",e.PROP_GET_CHART_TOOLBAR_ITEMS="getChartToolbarItems",e.PROP_GET_SERVER_SIDE_GROUP_PARAMS="getServerSideGroupLevelParams",e.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT="isServerSideGroupOpenByDefault",e.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION="isApplyServerSideTransaction",e.PROP_IS_SERVER_SIDE_GROUP="isServerSideGroup",e.PROP_GET_SERVER_SIDE_GROUP_KEY="getServerSideGroupKey",e.PROP_AUTO_GROUP_COLUMN_DEF="autoGroupColumnDef",e.PROP_DEFAULT_COL_DEF="defaultColDef",C([Object(a.a)("gridOptions")],e.prototype,"gridOptions",void 0),C([Object(a.a)("eventService")],e.prototype,"eventService",void 0),C([Object(a.a)("environment")],e.prototype,"environment",void 0),C([Object(a.a)("eGridDiv")],e.prototype,"eGridDiv",void 0),C([O(0,Object(a.h)("gridApi")),O(1,Object(a.h)("columnApi"))],e.prototype,"agWire",null),C([a.g],e.prototype,"destroy",null),C([a.e],e.prototype,"init",null),e=t=C([Object(a.b)("gridOptionsWrapper")],e)}()},function(e,t,r){"use strict";r.r(t),r.d(t,"doOnce",(function(){return n})),r.d(t,"getFunctionName",(function(){return i})),r.d(t,"isFunction",(function(){return a})),r.d(t,"executeInAWhile",(function(){return s})),r.d(t,"executeNextVMTurn",(function(){return u})),r.d(t,"executeAfter",(function(){return p})),r.d(t,"debounce",(function(){return d})),r.d(t,"throttle",(function(){return g})),r.d(t,"waitUntil",(function(){return h})),r.d(t,"compose",(function(){return f})),r.d(t,"callIfPresent",(function(){return v})),r.d(t,"noop",(function(){return y}));var o={};function n(e,t){o[t]||(e(),o[t]=!0)}function i(e){if(e.name)return e.name;var t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function a(e){return!!(e&&e.constructor&&e.call&&e.apply)}function s(e){p(e,400)}var l=[],c=!1;function u(e){l.push(e),c||(c=!0,window.setTimeout((function(){var e=l.slice();l.length=0,c=!1,e.forEach((function(e){return e()}))}),0))}function p(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function d(e,t,r){var o;return void 0===r&&(r=!1),function(){for(var n=[],i=0;ir;(e()||s)&&(t(),a=!0,null!=i&&(window.clearInterval(i),i=null),s&&o&&console.warn(o))};s(),a||(i=window.setInterval(s,10))}function f(){for(var e=[],t=0;t=0)){var n=r[e],i=C(n)&&n.constructor===Object;o[e]=i?s(n):n}})),o}}function l(e,t){return e[t]}function c(e,t,r){e[t]=r}function u(e,t){for(var r=[],o=2;o1;)if(null==(n=n[o.shift()]))return r;var i=n[o[0]];return null!=i?i:r}function y(e,t,r){if(null!=e){for(var o=t.split("."),n=e;o.length>1;)if(null==(n=n[o.shift()]))return;n[o[0]]=r}}function m(e){return Object.freeze(e),Object(o.values)(e).forEach((function(e){(C(e)||"function"==typeof e)&&m(e)})),e}function b(e,t,r){if(t&&e){if(!r)return e[t];for(var o=t.split("."),n=e,i=0;i=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},g=new a.d,h=function(e){function t(t){var r=e.call(this)||this;return r.displayed=!0,r.visible=!0,r.compId=g.next(),r.cssClassManager=new u.a((function(){return r.eGui})),t&&r.setTemplate(t),r}return p(t,e),t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsWrapper.isEnableBrowserTooltips()},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e){var t=this;this.tooltipText!=e&&(this.tooltipText&&(t.usingBrowserTooltips?t.getGui().removeAttribute("title"):t.tooltipFeature=t.destroyBean(t.tooltipFeature)),null!=e&&(this.tooltipText=e,this.tooltipText&&(t.usingBrowserTooltips?t.getGui().setAttribute("title",t.tooltipText):t.tooltipFeature=t.createBean(new c.a(t)))))},t.prototype.createChildComponentsFromTags=function(e,t){var r=this;Object(s.copyNodeList)(e.childNodes).forEach((function(o){if(o instanceof HTMLElement){var n=r.createComponentFromElement(o,(function(e){e.getGui()&&r.copyAttributesFromNode(o,e.getGui())}),t);if(n){if(n.addItems&&o.children.length){r.createChildComponentsFromTags(o,t);var i=Array.prototype.slice.call(o.children);n.addItems(i)}r.swapComponentForNode(n,e,o)}else o.childNodes&&r.createChildComponentsFromTags(o,t)}}))},t.prototype.createComponentFromElement=function(e,r,o){var n=e.nodeName,i=o?o[e.getAttribute("ref")]:void 0,a=this.agStackComponentsRegistry.getComponentClass(n);if(a){t.elementGettingCreated=e;var s=new a(i);return s.setParentComponent(this),this.createBean(s,null,r),s}return null},t.prototype.copyAttributesFromNode=function(e,t){Object(s.iterateNamedNodeMap)(e.attributes,(function(e,r){return t.setAttribute(e,r)}))},t.prototype.swapComponentForNode=function(e,t,r){var o=e.getGui();t.replaceChild(o,r),t.insertBefore(document.createComment(r.nodeName),o),this.addDestroyFunc(this.destroyBean.bind(this,e)),this.swapInComponentForQuerySelectors(e,r)},t.prototype.swapInComponentForQuerySelectors=function(e,t){var r=this;this.iterateOverQuerySelectors((function(o){r[o.attributeName]===t&&(r[o.attributeName]=e)}))},t.prototype.iterateOverQuerySelectors=function(e){for(var t=Object.getPrototypeOf(this);null!=t;){var r=t.__agComponentMetaData,o=Object(l.getFunctionName)(t.constructor);r&&r[o]&&r[o].querySelectors&&r[o].querySelectors.forEach((function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var r=Object(s.loadTemplate)(e);this.setTemplateFromElement(r,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(r){var o=function(e){return t[r.attributeName]=e};if(r.refSelector&&e.eGui.getAttribute("ref")===r.refSelector)o(e.eGui);else{var n=e.eGui.querySelector(r.querySelector);n&&o(n.__agComponent||n)}}))}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,t){if(null!=e)if(t||(t=this.eGui),Object(s.isNodeOrElement)(e))t.appendChild(e);else{var r=e;t.appendChild(r.getGui())}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,Object(s.setVisible)(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,Object(s.setDisplayed)(this.eGui,e);var r={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(r)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),e.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,t){var r=this;this.eGui.addEventListener(e,t),this.addDestroyFunc((function(){return r.eGui.removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){this.cssClassManager.addCssClass(e)},t.prototype.removeCssClass=function(e){this.cssClassManager.removeCssClass(e)},t.prototype.containsCssClass=function(e){return this.cssClassManager.containsCssClass(e)},t.prototype.addOrRemoveCssClass=function(e,t){this.cssClassManager.addOrRemoveCssClass(e,t)},t.prototype.getAttribute=function(e){var t=this.eGui;return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",d([Object(n.a)("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),d([n.f],t.prototype,"preConstructOnComponent",null),d([n.f],t.prototype,"createChildComponentsPreConstruct",null),t}(i.a)},function(e,t,r){"use strict";var o;r.d(t,"a",(function(){return o})),function(e){e.CommunityCoreModule="@ag-grid-community/core",e.CommunityAllModules="@ag-grid-community/all",e.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",e.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",e.CsvExportModule="@ag-grid-community/csv-export",e.EnterpriseCoreModule="@ag-grid-enterprise/core",e.EnterpriseAllModules="@ag-grid-enterprise/all",e.RowGroupingModule="@ag-grid-enterprise/row-grouping",e.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",e.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",e.MenuModule="@ag-grid-enterprise/menu",e.SetFilterModule="@ag-grid-enterprise/set-filter",e.MultiFilterModule="@ag-grid-enterprise/multi-filter",e.StatusBarModule="@ag-grid-enterprise/status-bar",e.SideBarModule="@ag-grid-enterprise/side-bar",e.RangeSelectionModule="@ag-grid-enterprise/range-selection",e.MasterDetailModule="@ag-grid-enterprise/master-detail",e.RichSelectModule="@ag-grid-enterprise/rich-select",e.GridChartsModule="@ag-grid-enterprise/charts",e.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",e.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",e.ExcelExportModule="@ag-grid-enterprise/excel-export",e.ClipboardModule="@ag-grid-enterprise/clipboard",e.SparklinesModule="@ag-grid-enterprise/sparklines",e.AngularModule="@ag-grid-community/angular",e.ReactModule="@ag-grid-community/react",e.VueModule="@ag-grid-community/vue",e.PolymerModule="@ag-grid-community/polymer"}(o||(o={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var o=r(13),n=r(2),i=function(){function e(){}return e.register=function(t,r){void 0===r&&(r=!0),e.modulesMap[t.moduleName]=t,void 0===e.moduleBased?e.moduleBased=r:e.moduleBased!==r&&Object(o.doOnce)((function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")}),"ModulePackageCheck")},e.registerModules=function(t,r){void 0===r&&(r=!0),t&&t.forEach((function(t){return e.register(t,r)}))},e.assertRegistered=function(t,r){if(this.isRegistered(t))return!0;var n,i=r+t;return n=e.moduleBased?"AG Grid: unable to use "+r+" as module "+t+" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/":"AG Grid: unable to use "+r+" as package 'ag-grid-enterprise' is not present. Please see: https://www.ag-grid.com/javascript-grid/packages/",Object(o.doOnce)((function(){console.warn(n)}),i),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return Object(n.values)(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}()},function(e,t,r){"use strict";r.r(t),r.d(t,"getBrowserInfo",(function(){return h})),r.d(t,"isBrowserEdge",(function(){return f})),r.d(t,"isBrowserSafari",(function(){return v})),r.d(t,"isBrowserChrome",(function(){return y})),r.d(t,"isBrowserFirefox",(function(){return m})),r.d(t,"isMacOsUserAgent",(function(){return b})),r.d(t,"isIOSUserAgent",(function(){return w})),r.d(t,"browserSupportsPreventScroll",(function(){return C})),r.d(t,"getTabIndex",(function(){return O})),r.d(t,"getMaxDivHeight",(function(){return S})),r.d(t,"getScrollbarWidth",(function(){return E})),r.d(t,"isInvisibleScrollbar",(function(){return R})),r.d(t,"hasOverflowScrolling",(function(){return T})),r.d(t,"getBodyWidth",(function(){return A})),r.d(t,"getBodyHeight",(function(){return P}));var o,n,i,a,s,l,c,u,p,d,g=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function h(){if(d)return d;var e,t,r=navigator.userAgent,o=r.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(o[1]))return{name:"IE",version:t=null!=(e=/\brv[ :]+(\d+)/g.exec(r)||[])[1]?parseFloat(e[1]):0};if("Chrome"===o[1]&&null!=(e=r.match(/\bOPR|Edge\/(\d+)/)))return{name:"Opera",version:t=null!=e[1]?parseFloat(e[1]):0};o=o[2]?[o[1],o[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=r.match(/version\/(\d+)/i))&&o.splice(1,1,e[1]);var n=o[0];return t=null!=o[1]?parseFloat(o[1]):0,d={name:n,version:t}}function f(){return void 0===i&&(i=!(void 0===n&&(n=!!document.documentMode),n||!window.StyleMedia)),i}function v(){return void 0===o&&(o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),o}function y(){if(void 0===a){var e=window;a=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return a}function m(){if(void 0===s){var e=window;s=void 0!==e.InstallTrigger}return s}function b(){return void 0===l&&(l=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),l}function w(){return void 0===c&&(c=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),c}function C(){return!v()||h().version>=15}function O(e){if(!e)return null;var t=e.tabIndex,r=e.getAttribute("tabIndex");return-1!==t||null!==r&&(""!==r||m())?t.toString():null}function S(){if(!document.body)return-1;var e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,r=document.createElement("div");for(document.body.appendChild(r);;){var o=2*e;if(r.style.height=o+"px",o>t||r.clientHeight!==o)break;e=o}return document.body.removeChild(r),e}function E(){return null==p&&x(),p}function x(){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 r=t.offsetWidth-t.clientWidth;0===r&&0===t.clientWidth&&(r=null),t.parentNode&&t.parentNode.removeChild(t),null!=r&&(p=r,u=0===r)}function R(){return null==u&&x(),u}function T(){var e,t,r=["webkit","moz","o","ms"],o=document.createElement("div"),n=!1;document.getElementsByTagName("body")[0].appendChild(o),o.setAttribute("style",r.map((function(e){return"-"+e+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var i=window.getComputedStyle(o);if("touch"===i.overflowScrolling&&(n=!0),!n)try{for(var a=g(r),s=a.next();!s.done;s=a.next())if("touch"===i[s.value+"OverflowScrolling"]){n=!0;break}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return o.parentNode&&o.parentNode.removeChild(o),n}function A(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function P(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var o=r(38),n=r(1),i=r(3),a=r(16),s=r(17),l=r(2),c=r(13),u=r(14),p=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},d=0,g=function(){function e(e,t,r,n){this.instanceId=d++,this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new o.a,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=r,this.primary=n,this.setState(e)}return e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setState=function(e){void 0!==e.sort?e.sort!==i.a.SORT_ASC&&e.sort!==i.a.SORT_DESC||(this.sort=e.sort):e.initialSort!==i.a.SORT_ASC&&e.initialSort!==i.a.SORT_DESC||(this.sort=e.initialSort);var t=Object(l.attrToNumber)(e.sortIndex),r=Object(l.attrToNumber)(e.initialSortIndex);void 0!==t?null!==t&&(this.sortIndex=t):null!==r&&(this.sortIndex=r);var o=Object(l.attrToBoolean)(e.hide),n=Object(l.attrToBoolean)(e.initialHide);this.visible=void 0!==o?!o:!n,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);var a=Object(l.attrToNumber)(e.flex),s=Object(l.attrToNumber)(e.initialFlex);void 0!==a?this.flex=a:void 0!==s&&(this.flex=s)},e.prototype.setColDef=function(t,r){this.colDef=t,this.userProvidedColDef=r,this.initMinAndMaxWidths(),this.initDotNotation(),this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_COL_DEF_CHANGED,"api"))},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},e.prototype.initDotNotation=function(){var e=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=Object(l.exists)(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=Object(l.exists)(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!e},e.prototype.initMinAndMaxWidths=function(){var e=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(e),this.maxWidth=this.columnUtils.calculateColMaxWidth(e)},e.prototype.resetActualWidth=function(e){void 0===e&&(e="api");var t=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(Object(l.missing)(this.colDef)||Object(l.missing)(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,r=this.colDef.showRowGroup===e;return t||r},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){return!!this.colDef.filter||!!this.colDef.filterFramework},e.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},e.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},e.prototype.validate=function(){var e=this.colDef;function t(e,t,r){Object(c.doOnce)((function(){r?console.warn(e,r):Object(c.doOnce)((function(){return console.warn(e)}),t)}),t)}if(this.gridOptionsWrapper.isRowModelDefault()&&!s.a.isRegistered(a.a.RowGroupingModule)){["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(r){Object(l.exists)(e[r])&&(s.a.isPackageBased()?t("AG Grid: "+r+" is only valid in ag-grid-enterprise, your column definition should not have "+r,"ColumnRowGroupingMissing"+r):t("AG Grid: "+r+" is only valid with AG Grid Enterprise Module "+a.a.RowGroupingModule+" - your column definition should not have "+r,"ColumnRowGroupingMissing"+r))}))}if(s.a.isRegistered(a.a.RichSelectModule)||"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||(s.a.isPackageBased()?t("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):t("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+a.a.RichSelectModule,"ColumnRichSelectMissing")),this.gridOptionsWrapper.isTreeData()){["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(r){Object(l.exists)(e[r])&&t("AG Grid: "+r+" is not possible when doing tree data, your column definition should not have "+r,"TreeDataCannotRowGroup")}))}Object(l.exists)(this.colDef.width)&&"number"!=typeof this.colDef.width&&t("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),e.pinnedRowCellRenderer&&t("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowCellRendererParams&&t("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowCellRendererFramework&&t("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowValueGetter&&t("AG Grid: pinnedRowCellRenderer is deprecated, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue.","colDef.pinnedRowCellRenderer-deprecated")},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.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},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.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isSuppressFillHandle=function(){return!!Object(l.attrToBoolean)(this.colDef.suppressFillHandle)},e.prototype.isAutoHeight=function(){return!!Object(l.attrToBoolean)(this.colDef.autoHeight)},e.prototype.isAutoHeaderHeight=function(){return!!Object(l.attrToBoolean)(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!!Object(l.attrToBoolean)(this.colDef.resizable)},e.prototype.isColumnFunc=function(e,t){return"boolean"==typeof t?t:"function"==typeof t&&t(this.createColumnFunctionCallbackParams(e))},e.prototype.setMoving=function(t,r){void 0===r&&(r="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,r))},e.prototype.createColumnEvent=function(e,t){return{type:e,column:this,columns:[this],source:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(t,r){void 0===r&&(r="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,r)))},e.prototype.setMenuVisible=function(t,r){void 0===r&&(r="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,r)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===i.a.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===i.a.SORT_DESC},e.prototype.isSortNone=function(){return Object(l.missing)(this.sort)},e.prototype.isSorting=function(){return Object(l.exists)(this.sort)},e.prototype.getSortIndex=function(){return this.sortIndex},e.prototype.setSortIndex=function(e){this.sortIndex=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(t,r){void 0===r&&(r="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,r)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,r,o){void 0===r&&(r="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FILTER_ACTIVE_CHANGED,r)));var n=this.createColumnEvent(e.EVENT_FILTER_CHANGED,r);o&&Object(u.mergeDeep)(n,o),this.eventService.dispatchEvent(n)},e.prototype.setPinned=function(e){!0===e||e===i.a.PINNED_LEFT?this.pinned=i.a.PINNED_LEFT:e===i.a.PINNED_RIGHT?this.pinned=i.a.PINNED_RIGHT:this.pinned=null},e.prototype.setFirstRightPinned=function(t,r){void 0===r&&(r="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,r)))},e.prototype.setLastLeftPinned=function(t,r){void 0===r&&(r="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,r)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===i.a.PINNED_LEFT||this.pinned===i.a.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===i.a.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===i.a.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,r){void 0===r&&(r="api");var o=!0===t;this.visible!==o&&(this.visible=o,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VISIBLE_CHANGED,r)))},e.prototype.isVisible=function(){return this.visible},e.prototype.getColDef=function(){return this.colDef},e.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},e.prototype.getColId=function(){return this.colId},e.prototype.getId=function(){return this.getColId()},e.prototype.getUniqueId=function(){return this.getId()},e.prototype.getDefinition=function(){return this.colDef},e.prototype.getActualWidth=function(){return this.actualWidth},e.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},e.prototype.setAutoHeaderHeight=function(e){var t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t},e.prototype.createBaseColDefParams=function(e){return{node:e,data:e.data,colDef:this.colDef,column:this,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}},e.prototype.getColSpan=function(e){if(Object(l.missing)(this.colDef.colSpan))return 1;var t=this.createBaseColDefParams(e),r=this.colDef.colSpan(t);return Math.max(r,1)},e.prototype.getRowSpan=function(e){if(Object(l.missing)(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),r=this.colDef.rowSpan(t);return Math.max(r,1)},e.prototype.setActualWidth=function(e,t,r){void 0===t&&(t="api"),void 0===r&&(r=!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),r||this.fireColumnWidthChangedEvent(t))},e.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,t))},e.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.getFlex=function(){return this.flex||0},e.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e)},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),Object(l.exists)(this.minWidth)&&this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,r){void 0===r&&(r="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,r)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,r){void 0===r&&(r="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,r)))},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(t,r){void 0===r&&(r="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,r)))},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.isLockPosition=function(){return console.warn("AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},e.prototype.isLockVisible=function(){return console.warn("AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},e.prototype.isLockPinned=function(){return console.warn("AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},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",p([Object(n.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),p([Object(n.a)("columnUtils")],e.prototype,"columnUtils",void 0),p([n.e],e.prototype,"initialise",null),e}()},function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"d",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return m}));var o,n,i,a,s=r(6),l=r(1),c=r(30),u=r(23),p=r(10),d=r(18),g=r(5),h=r(13),f=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),v=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},y=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],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"}(n||(n={})),function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(i||(i={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(a||(a={}));var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragSourceAndParamsList=[],t.dropTargets=[],t}var r;return f(t,e),r=t,t.prototype.init=function(){this.ePinnedIcon=Object(u.createIcon)("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=Object(u.createIcon)("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=Object(u.createIcon)("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=Object(u.createIcon)("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=Object(u.createIcon)("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=Object(u.createIcon)("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=Object(u.createIcon)("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=Object(u.createIcon)("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=Object(u.createIcon)("dropNotAllowed",this.gridOptionsWrapper,null)},t.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var r={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:r,dragSource:e}),this.dragService.addDragSource(r,t)},t.prototype.removeDragSource=function(e){var t=this.dragSourceAndParamsList.find((function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),Object(p.removeFromArray)(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},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 r,o,n,i,a=this,s=this.getHorizontalDirection(e),l=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var c=this.dropTargets.filter((function(t){return a.isMouseOnDropTarget(e,t)})),u=this.findCurrentDropTarget(e,c);if(u!==this.lastDropTarget)this.leaveLastTargetIfExists(e,s,l,t),null!==this.lastDropTarget&&null===u&&(null===(o=(r=this.dragSource).onGridExit)||void 0===o||o.call(r,this.dragItem)),null===this.lastDropTarget&&null!==u&&(null===(i=(n=this.dragSource).onGridEnter)||void 0===i||i.call(n,this.dragItem)),this.enterDragTargetIfExists(u,e,s,l,t),this.lastDropTarget=u;else if(u&&u.onDragging){var p=this.createDropTargetEvent(u,e,s,l,t);u.onDragging(p)}},t.prototype.getAllContainersFromDropTarget=function(e){var t=e.getSecondaryContainers?e.getSecondaryContainers():null,r=[[e.getContainer()]];return t?r.concat(t):r},t.prototype.allContainersIntersect=function(e,t){var r,o;try{for(var n=y(t),i=n.next();!i.done;i=n.next()){var a=i.value.getBoundingClientRect();if(0===a.width||0===a.height)return!1;var s=e.clientX>=a.left&&e.clientX=a.top&&e.clientYr?a.Left:a.Right},t.prototype.getVerticalDirection=function(e){var t=this.eventLastTime&&this.eventLastTime.clientY,r=e.clientY;return t===r?null:t>r?i.Up:i.Down},t.prototype.createDropTargetEvent=function(e,t,r,o,n){var i=e.getContainer(),a=i.getBoundingClientRect(),s=this.gridApi,l=this.columnApi,c=this.dragItem,u=this.dragSource;return{event:t,x:t.clientX-a.left,y:t.clientY-a.top,vDirection:o,hDirection:r,dragSource:u,fromNudge:n,dragItem:c,api:s,columnApi:l,dropZoneTarget:i}},t.prototype.positionGhost=function(e){var t=this.eGhost;if(t){var r=t.getBoundingClientRect().height,o=Object(d.getBodyWidth)()-2,n=Object(d.getBodyHeight)()-2,i=e.pageY-r/2,a=e.pageX-10,s=this.gridOptionsWrapper.getDocument(),l=s.defaultView||window,c=l.pageYOffset||s.documentElement.scrollTop,u=l.pageXOffset||s.documentElement.scrollLeft;o>0&&a+t.clientWidth>o+u&&(a=o+u-t.clientWidth),a<0&&(a=0),n>0&&i+t.clientHeight>n+c&&(i=n+c-t.clientHeight),i<0&&(i=0),t.style.left=a+"px",t.style.top=i+"px"}},t.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},t.prototype.createGhost=function(){this.eGhost=Object(g.loadTemplate)(r.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"),o=this.dragSource.dragItemName;Object(h.isFunction)(o)&&(o=o()),t.innerHTML=Object(c.escapeString)(o)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var n=this.gridOptionsWrapper.getDocument(),i=null;try{i=n.fullscreenElement}catch(e){}finally{i||(i=n.querySelector("body"))}this.eGhostParent=i,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),Object(g.clearElement)(this.eGhostIcon);var o=null;switch(e||(e=this.dragSource.defaultIconName||r.ICON_NOT_ALLOWED),e){case r.ICON_PINNED:o=this.ePinnedIcon;break;case r.ICON_MOVE:o=this.eMoveIcon;break;case r.ICON_LEFT:o=this.eLeftIcon;break;case r.ICON_RIGHT:o=this.eRightIcon;break;case r.ICON_GROUP:o=this.eGroupIcon;break;case r.ICON_AGGREGATE:o=this.eAggregateIcon;break;case r.ICON_PIVOT:o=this.ePivotIcon;break;case r.ICON_NOT_ALLOWED:o=this.eDropNotAllowedIcon;break;case r.ICON_HIDE:o=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",t),o===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()||o&&this.eGhostIcon.appendChild(o)},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
',v([Object(l.a)("dragService")],t.prototype,"dragService",void 0),v([Object(l.a)("mouseEventService")],t.prototype,"mouseEventService",void 0),v([Object(l.a)("environment")],t.prototype,"environment",void 0),v([Object(l.a)("columnApi")],t.prototype,"columnApi",void 0),v([Object(l.a)("gridApi")],t.prototype,"gridApi",void 0),v([l.e],t.prototype,"init",null),v([l.g],t.prototype,"clearDragSourceParamsList",null),t=r=v([Object(l.b)("dragAndDropService")],t)}(s.a)},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return RedrawType})),__webpack_require__.d(__webpack_exports__,"c",(function(){return SceneChangeDetection})),__webpack_require__.d(__webpack_exports__,"a",(function(){return ChangeDetectable}));var _util_window__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(68),RedrawType;function evalAvailable(){try{return eval(""),!0}catch(e){return!1}}!function(e){e[e.NONE=0]="NONE",e[e.TRIVIAL=1]="TRIVIAL",e[e.MINOR=2]="MINOR",e[e.MAJOR=3]="MAJOR"}(RedrawType||(RedrawType={}));var EVAL_USEABLE=evalAvailable();function SceneChangeDetection(opts){var _a=opts||{},_b=_a.redraw,redraw=void 0===_b?RedrawType.TRIVIAL:_b,_c=_a.type,type=void 0===_c?"normal":_c,changeCb=_a.changeCb,convertor=_a.convertor,_d=_a.checkDirtyOnAssignment,checkDirtyOnAssignment=void 0!==_d&&_d,debug=null!=Object(_util_window__WEBPACK_IMPORTED_MODULE_0__.a)("agChartsSceneChangeDetectionDebug");return function(target,key){var privateKey="__"+key;if(!target[key])if(EVAL_USEABLE){var setterJs="\n "+(debug?"var setCount = 0;":"")+"\n function set_"+key+"(value) {\n const oldValue = this."+privateKey+";\n "+(convertor?"value = convertor(value);":"")+"\n if (value !== oldValue) {\n this."+privateKey+" = value;\n "+(debug?"console.log({ t: this, property: '"+key+"', oldValue, value, stack: new Error().stack });":"")+"\n "+("normal"===type?"this.markDirty(this, "+redraw+");":"")+"\n "+("transform"===type?"this.markDirtyTransform("+redraw+");":"")+"\n "+("path"===type?"if (!this._dirtyPath) { this._dirtyPath = true; this.markDirty(this, "+redraw+"); }":"")+"\n "+("font"===type?"if (!this._dirtyFont) { this._dirtyFont = true; this.markDirty(this, "+redraw+"); }":"")+"\n "+(changeCb?"changeCb(this);":"")+"\n }\n "+(checkDirtyOnAssignment?"if (value != null && value._dirty > "+RedrawType.NONE+") { this.markDirty(value, value._dirty); }":"")+"\n };\n set_"+key+";\n ",getterJs="\n function get_"+key+"() {\n return this."+privateKey+";\n };\n get_"+key+";\n ";Object.defineProperty(target,key,{set:eval(setterJs),get:eval(getterJs),enumerable:!0,configurable:!0})}else{var setter=function(e){var t=this[privateKey];(e=convertor?convertor(e):e)!==t&&(this[privateKey]=e,"normal"===type&&this.markDirty(this,redraw),"transform"===type&&this.markDirtyTransform(redraw),"path"!==type||this._dirtyPath||(this._dirtyPath=!0,this.markDirty(this,redraw)),"font"!==type||this._dirtyFont||(this._dirtyFont=!0,this.markDirty(this,redraw)),changeCb&&changeCb(this)),checkDirtyOnAssignment&&null!=e&&e._dirty>RedrawType.NONE&&this.markDirty(e,e._dirty)},getter=function(){return this[privateKey]};Object.defineProperty(target,key,{set:setter,get:getter,enumerable:!0,configurable:!0})}}}var ChangeDetectable=function(){function e(){this._dirty=RedrawType.MAJOR}return e.prototype.markDirty=function(e,t){void 0===t&&(t=RedrawType.TRIVIAL),this._dirty>t||(this._dirty=t)},e.prototype.markClean=function(e){this._dirty=RedrawType.NONE},e.prototype.isDirty=function(){return this._dirty>RedrawType.NONE},e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return u}));var o,n=r(38),i=r(4),a=r(3),s=r(2),l=r(14),c=r(13);!function(e){e[e.Above=0]="Above",e[e.Below=1]="Below"}(o||(o={}));var u=function(){function e(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.beans=t}return e.prototype.setData=function(e){this.setDataCommon(e,!1)},e.prototype.updateData=function(e){this.setDataCommon(e,!0)},e.prototype.setDataCommon=function(e,t){var r=this.data;this.data=e,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var o=this.createDataChangedEvent(e,r,t);this.dispatchLocalEvent(o)},e.prototype.updateDataOnDetailNode=function(){this.detailNode&&(this.detailNode.data=this.data)},e.prototype.createDataChangedEvent=function(t,r,o){return{type:e.EVENT_DATA_CHANGED,node:this,oldData:r,newData:t,update:o}},e.prototype.createLocalRowEvent=function(e){return{type:e,node:this}},e.prototype.getRowIndexString=function(){return this.rowPinned===a.a.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===a.a.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e(this.beans);return t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,t){var r=Object(s.exists)(this.id)?this.createDaemonNode():null,o=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.beans.selectionService.syncInRowNode(this,r),this.checkRowSelectable();var n=this.createDataChangedEvent(e,o,!1);this.dispatchLocalEvent(n)},e.prototype.checkRowSelectable=function(){var e=this.beans.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(!e||e(this))},e.prototype.setRowSelectable=function(t){if(this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)),this.beans.gridOptionsWrapper.isGroupSelectsChildren())){var r=this.calculateSelectedFromChildren();this.setSelected(null!=r&&r)}},e.prototype.setId=function(t){var r=this.beans.gridOptionsWrapper.getRowIdFunc();if(r)if(this.data){var o=this.getGroupKeys(!0);this.id=r({data:this.data,parentKeys:o.length>0?o:void 0,level:this.level}),null!==this.id&&"string"==typeof this.id&&this.id.startsWith(e.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+e.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),null!==this.id&&"string"!=typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=t},e.prototype.getGroupKeys=function(e){void 0===e&&(e=!1);var t=[],r=this;for(e&&(r=r.parent);r&&r.level>=0;)t.push(r.key),r=r.parent;return t.reverse(),t},e.prototype.isPixelInRange=function(e){return!(!Object(s.exists)(this.rowTop)||!Object(s.exists)(this.rowHeight))&&(e>=this.rowTop&&er&&(r=i)):e=!0})),!e&&((t||r<10)&&(r=this.beans.gridOptionsWrapper.getRowHeightForNode(this).height),r!=this.rowHeight))){this.setRowHeight(r);var n=this.beans.rowModel;n.onRowHeightChangedDebounced&&n.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,r){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var o=Object.assign({},this.createGlobalRowEvent(i.a.EVENT_ROW_GROUP_OPENED),{expanded:t,event:r||null});this.beans.rowNodeEventThrottle.dispatchExpanded(o),this.beans.gridOptionsWrapper.isGroupIncludeFooter()&&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.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t,r){var o=this.beans.columnModel.getPrimaryColumn(e),n=this.beans.valueService.getValue(o,this),i=this.beans.valueService.setValue(this,o,t,r);return this.dispatchCellChangedEvent(o,t,n),this.checkRowSelectable(),i},e.prototype.setGroupValue=function(e,t){var r=this.beans.columnModel.getGridColumn(e);Object(s.missing)(this.groupData)&&(this.groupData={});var o=r.getColId(),n=this.groupData[o];n!==t&&(this.groupData[o]=t,this.dispatchCellChangedEvent(r,t,n))},e.prototype.setAggData=function(e){var t=this,r=Object(l.getAllKeysInObjects)([this.aggData,e]),o=this.aggData;this.aggData=e,this.eventService&&r.forEach((function(e){var r=t.beans.columnModel.getGridColumn(e),n=t.aggData?t.aggData[e]:void 0,i=o?o[e]:void 0;t.dispatchCellChangedEvent(r,n,i)}))},e.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;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&&Object(s.missingOrEmpty)(this.childrenAfterGroup)},e.prototype.dispatchCellChangedEvent=function(t,r,o){var n={type:e.EVENT_CELL_CHANGED,node:this,column:t,newValue:r,oldValue:o};this.dispatchLocalEvent(n)},e.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},e.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(t){return t.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t=!1,r=!1,o=!1;if(!(null===(e=this.childrenAfterGroup)||void 0===e?void 0:e.length))return this.selectable?this.selected:null;for(var n=0;n0){this.beans.selectionService.updateGroupsFromChildrenSelections();var g={type:i.a.EVENT_SELECTION_CHANGED};this.beans.eventService.dispatchEvent(g)}o&&this.beans.selectionService.setLastSelectedNode(this)}return d},e.prototype.doRowRangeSelection=function(e){var t=this;void 0===e&&(e=!0);var r=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),o=this.beans.selectionService.getLastSelectedNode(),n=this.beans.rowModel.getNodesInRangeForSelection(this,o),a=0;n.forEach((function(o){o.group&&r||!1===e&&t===o||o.selectThisNode(e)&&a++})),this.beans.selectionService.updateGroupsFromChildrenSelections();var s={type:i.a.EVENT_SELECTION_CHANGED};return this.beans.eventService.dispatchEvent(s),a},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.selectThisNode=function(t,r){var o=!this.selectable&&t,n=this.selected===t;if(o||n)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var a=Object.assign({},this.createGlobalRowEvent(i.a.EVENT_ROW_SELECTED),{event:r||null});return this.beans.eventService.dispatchEvent(a),!0},e.prototype.selectChildNodes=function(e,t){var r=t?this.childrenAfterAggFilter:this.childrenAfterGroup;if(Object(s.missing)(r))return 0;for(var o=0,n=0;n-1)return o;var n=document.createElement("span");return n.appendChild(o),n}function s(e,t,r,a){var s=null,l=r&&r.getColDef().icons;if(l&&(s=l[e]),t&&!s){var c=t.getIcons();c&&(s=c[e])}if(!s){var u=document.createElement("span"),p=i[e];return p||(a?p=e:(console.warn("AG Grid: Did not find icon "+e),p="")),u.setAttribute("class","ag-icon ag-icon-"+p),u.setAttribute("unselectable","on"),Object(n.setAriaRole)(u,"presentation"),u}var d=void 0;if("function"==typeof s)d=s();else{if("string"!=typeof s)throw new Error("icon from grid options needs to be a string or a function");d=s}return"string"==typeof d?Object(o.loadTemplate)(d):Object(o.isNodeOrElement)(d)?d:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}},function(e,t,r){"use strict";r.d(t,"c",(function(){return s})),r.d(t,"g",(function(){return l})),r.d(t,"f",(function(){return L})),r.d(t,"d",(function(){return k})),r.d(t,"b",(function(){return M})),r.d(t,"a",(function(){return F})),r.d(t,"e",(function(){return G}));var o={};r.r(o),r.d(o,"stringToArray",(function(){return l}));var n={};r.r(n),r.d(n,"getNameOfClass",(function(){return d})),r.d(n,"findLineByLeastSquares",(function(){return g})),r.d(n,"cssStyleObjectToMarkup",(function(){return h})),r.d(n,"message",(function(){return f})),r.d(n,"bindCellRendererToHtmlElement",(function(){return v}));var i={};r.r(i),r.d(i,"sortRowNodesByOrder",(function(){return _})),r.d(i,"traverseNodesWithKey",(function(){return D}));var a=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},s=function(){function e(e,t,r,o){void 0===o&&(o=1),this.r=Math.min(1,Math.max(0,e||0)),this.g=Math.min(1,Math.max(0,t||0)),this.b=Math.min(1,Math.max(0,r||0)),this.a=Math.min(1,Math.max(0,o||0))}return e.fromString=function(t){if(t.indexOf("#")>=0)return e.fromHexString(t);var r=e.nameToHex[t];if(r)return e.fromHexString(r);if(t.indexOf("rgb")>=0)return e.fromRgbaString(t);throw new Error("Invalid color string: '"+t+"'")},e.parseHex=function(e){var t;switch((e=e.replace(/ /g,"").slice(1)).length){case 6:case 8:t=[];for(var r=0;r=3&&t.every((function(e){return e>=0})))return 3===t.length&&t.push(255),t},e.fromHexString=function(t){var r=e.parseHex(t);if(r){var o=a(r,4);return new e(o[0]/255,o[1]/255,o[2]/255,o[3]/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.stringToRgba=function(e){for(var t=a([NaN,NaN],2),r=t[0],o=t[1],n=0;n=0?(p=Math.max(0,Math.min(100,p)),p/=100):3===n?p=Math.max(0,Math.min(1,p)):(p=Math.max(0,Math.min(255,p)),p/=255),c.push(p)}return c}},e.fromRgbaString=function(t){var r=e.stringToRgba(t);if(r){if(3===r.length)return new e(r[0],r[1],r[2]);if(4===r.length)return new e(r[0],r[1],r[2],r[3])}throw new Error("Malformed rgb/rgba color string: '"+t+"'")},e.fromArray=function(t){if(4===t.length)return new e(t[0],t[1],t[2],t[3]);if(3===t.length)return new e(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},e.fromHSB=function(t,r,o,n){void 0===n&&(n=1);var i=e.HSBtoRGB(t,r,o);return new e(i[0],i[1],i[2],n)},e.padHex=function(e){return 1===e.length?"0"+e:e},e.prototype.toHexString=function(){var t="#"+e.padHex(Math.round(255*this.r).toString(16))+e.padHex(Math.round(255*this.g).toString(16))+e.padHex(Math.round(255*this.b).toString(16));return this.a<1&&(t+=e.padHex(Math.round(255*this.a).toString(16))),t},e.prototype.toRgbaString=function(e){void 0===e&&(e=3);var t=[Math.round(255*this.r),Math.round(255*this.g),Math.round(255*this.b)],r=Math.pow(10,e);return 1!==this.a?(t.push(Math.round(this.a*r)/r),"rgba("+t.join(", ")+")"):"rgb("+t.join(", ")+")"},e.prototype.toString=function(){return 1===this.a?this.toHexString():this.toRgbaString()},e.prototype.toHSB=function(){return e.RGBtoHSB(this.r,this.g,this.b)},e.RGBtoHSB=function(e,t,r){var o=Math.min(e,t,r),n=Math.max(e,t,r),i=NaN;if(o!==n){var a=n-o,s=(n-e)/a,l=(n-t)/a,c=(n-r)/a;i=e===n?c-l:t===n?2+s-c:4+l-s,(i/=6)<0&&(i+=1)}return[360*i,0!==n?(n-o)/n:0,n]},e.HSBtoRGB=function(e,t,r){isNaN(e)&&(e=0),e=(e%360+360)%360/360;var o=0,n=0,i=0;if(0===t)o=n=i=r;else{var a=6*(e-Math.floor(e)),s=a-Math.floor(a),l=r*(1-t),c=r*(1-t*s),u=r*(1-t*(1-s));switch(a>>0){case 0:o=r,n=u,i=l;break;case 1:o=c,n=r,i=l;break;case 2:o=l,n=r,i=u;break;case 3:o=l,n=c,i=r;break;case 4:o=u,n=l,i=r;break;case 5:o=r,n=l,i=c}}return[o,n,i]},e.prototype.derive=function(t,r,o,n){var i=e.RGBtoHSB(this.r,this.g,this.b),a=i[2];0==a&&o>1&&(a=.05);var s=((i[0]+t)%360+360)%360,l=Math.max(Math.min(i[1]*r,1),0);a=Math.max(Math.min(a*o,1),0);var c=Math.max(Math.min(this.a*n,1),0),u=e.HSBtoRGB(s,l,a);return u.push(c),e.fromArray(u)},e.prototype.brighter=function(){return this.derive(0,1,1/.7,1)},e.prototype.darker=function(){return this.derive(0,1,.7,1)},e.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),e}();function l(e,t){void 0===t&&(t=",");var r=[],o=function(e){return"\r"===e||"\n"===e},n=!1;if(""===e)return[[""]];for(var i,a,s,l=function(l,c,u){var p=e[u-1],d=e[u],g=e[u+1],h=function(){r[l]||(r[l]=[]),r[l][c]||(r[l][c]="")};if(h(),'"'===d){if(n)return'"'===g?(r[l][c]+='"',u++):n=!1,i=l,a=c,s=u,"continue";if(void 0===p||p===t||o(p))return n=!0,i=l,a=c,s=u,"continue"}if(!n){if(d===t)return c++,h(),i=l,a=c,s=u,"continue";if(o(d))return c=0,l++,h(),"\r"===d&&"\n"===g&&u++,i=l,a=c,s=u,"continue"}r[l][c]+=d,i=l,a=c,s=u},c=0,u=0,p=0;p1?r[1]:""}function g(e){var t=e.length,r=0;if(t<=1)return e;for(var o=0;o1?r=Math.max(r,parseInt(i[1],10)):Math.floor(n)!==n&&(r=Math.max(r,n.toString().split(".")[1].length))}for(var a=0,s=0,l=0,c=0,u=0,p=0;p'),document.body&&document.body.appendChild(r)}r.insertBefore(t,r.children[0])}function v(e,t){e.then((function(e){var r=e.getGui();null!=r&&("object"==typeof r?t.appendChild(r):t.innerHTML=r)}))}var y=r(11),m=r(10),b=r(18),w=r(37),C=r(28),O=r(13),S=r(199),E=r(2),x=r(23),R=r(44),T=r(54),A=r(86),P=r(42);function _(e,t){if(!e)return!1;for(var r=function(e,r){var o=t[e.id],n=t[r.id],i=void 0!==o,a=void 0!==n;return i&&a?o-n:!i&&!a?e.__objectId-r.__objectId:i?1:-1},o=!1,n=0;n0){o=!0;break}return!!o&&(e.sort(r),!0)}function D(e,t){var r=[];!function e(o){if(!o)return;o.forEach((function(o){if(o.group||o.hasChildren()){r.push(o.key);var n=r.join("|");t(o,n),e(o.childrenAfterGroup),r.pop()}}))}(e)}var M,N=r(87),I=function(){return(I=Object.assign||function(e){for(var t,r=1,o=arguments.length;r ")},e.prototype.processCell=function(e){var t=e.accumulatedRowIndex,r=e.rowNode,o=e.column,n=e.value,i=e.processCellCallback,a=e.type;return i?i({accumulatedRowIndex:t,column:o,node:r,value:n,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:a}):null!=n?n:""},e}(),s=r(0),l=function(){function e(){}return e.download=function(e,t){var r=document.defaultView||window;if(r){var o=document.createElement("a"),n=r.URL.createObjectURL(t);o.setAttribute("href",n),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:r})),document.body.removeChild(o),r.setTimeout((function(){r.URL.revokeObjectURL(n)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},e}(),c=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;r.isFirstLine=!0,r.result="";var o=t.suppressQuotes,n=t.columnSeparator;return r.suppressQuotes=o,r.columnSeparator=n,r}return c(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"==typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach((function(e){t.beginNewLine(),e.forEach((function(e,r){0!==r&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)}))})))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,r,o){0!=r&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(o)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,r){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,t,s.Constants.EXPORT_TYPE_CSV,r))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null==e?'""':("string"==typeof e?t=e:"function"==typeof e.toString?t=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(a),p=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),d=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.getMergedParams=function(e){var t=this.gridOptionsWrapper.getDefaultExportParams("csv");return Object.assign({},t,e)},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParams(e),r=this.getData(t),o=new Blob(["\ufeff",r],{type:"text/plain"});return l.download(this.getFileName(t.fileName),o),r},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e,t){void 0===t&&(t=!1);var r=t?Object.assign({},e):this.getMergedParams(e);return this.getData(r)},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this.columnModel,r=this.valueService,o=this.gridOptionsWrapper,n=e,i=n.processCellCallback,a=n.processHeaderCallback,s=n.processGroupHeaderCallback,l=n.processRowGroupCallback,c=n.suppressQuotes,p=n.columnSeparator;return new u({columnModel:t,valueService:r,gridOptionsWrapper:o,processCellCallback:i||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:s||void 0,processRowGroupCallback:l||void 0,suppressQuotes:c||!1,columnSeparator:p||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},d([Object(s.Autowired)("columnModel")],t.prototype,"columnModel",void 0),d([Object(s.Autowired)("valueService")],t.prototype,"valueService",void 0),d([Object(s.Autowired)("gridSerializer")],t.prototype,"gridSerializer",void 0),d([Object(s.Autowired)("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),d([s.PostConstruct],t.prototype,"postConstruct",null),t=d([Object(s.Bean)("csvCreator")],t)}(i),h=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),f=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e[e.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(n||(n={}));var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var r=this.getColumnsToExport(t.allColumns,t.columnKeys);return s._.compose(this.prepareSession(r),this.prependContent(t),this.exportColumnGroups(t,r),this.exportHeaders(t,r),this.processPinnedTopRows(t,r),this.processRows(t,r),this.processPinnedBottomRows(t,r),this.appendContent(t))(e).parse()},t.prototype.processRow=function(e,t,r,o){var n=t.shouldRowBeSkipped||function(){return!1},i=this.gridOptionsWrapper,a=i.getContext(),l=i.getApi(),c=i.getColumnApi(),u=i.isGroupRemoveSingleChildren(),p=i.isGroupRemoveLowestSingleChildren(),d=null!=t.rowPositions,g=d||!!t.onlySelected,h=i.isGroupHideOpenParents()&&!g,f=this.columnModel.isPivotMode()?o.leafGroup:!o.group,v=t.skipGroups||t.skipRowGroups,y=p&&o.leafGroup,m=1===o.allChildrenCount&&(u||y);if((v&&t.skipGroups&&s._.doOnce((function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")}),"gridSerializer-skipGroups"),!(!f&&(t.skipRowGroups||m||h)||t.onlySelected&&!o.isSelected()||t.skipPinnedTop&&"top"===o.rowPinned||t.skipPinnedBottom&&"bottom"===o.rowPinned))&&((!(-1===o.level)||o.leafGroup||o.footer&&d)&&!n({node:o,api:l,columnApi:c,context:a}))){var b=e.onNewBodyRow();if(r.forEach((function(e,t){b.onColumn(e,t,o)})),t.getCustomContentBelowRow){var w=t.getCustomContentBelowRow({node:o,api:l,columnApi:c,context:a});w&&e.addCustomContent(w)}}},t.prototype.appendContent=function(e){return function(t){var r=e.customFooter||e.appendContent;return r&&(e.customFooter&&s._.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")}),"gridSerializer-customFooter"),t.addCustomContent(r)),t}},t.prototype.prependContent=function(e){return function(t){var r=e.customHeader||e.prependContent;return r&&(e.customHeader&&s._.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")}),"gridSerializer-customHeader"),t.addCustomContent(r)),t}},t.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},t.prototype.exportColumnGroups=function(e,t){var r=this;return function(o){if(e.skipColumnGroupHeaders)e.columnGroups&&s._.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.")}),"gridSerializer-columnGroups");else{var n=new s.GroupInstanceIdCreator,i=r.displayedGroupCreator.createDisplayedGroups(t,r.columnModel.getGridBalancedTree(),n,null);r.recursivelyAddHeaderGroups(i,o,e.processGroupHeaderCallback)}return o}},t.prototype.exportHeaders=function(e,t){return function(r){if(e.skipHeader||e.skipColumnHeaders)e.skipHeader&&s._.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")}),"gridSerializer-skipHeader");else{var o=r.onNewHeaderRow();t.forEach((function(e,t){o.onColumn(e,t,void 0)}))}return r}},t.prototype.processPinnedTopRows=function(e,t){var r=this;return function(o){var n=r.processRow.bind(r,o,e,t);return e.rowPositions?e.rowPositions.filter((function(e){return"top"===e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return r.pinnedRowModel.getPinnedTopRow(e.rowIndex)})).forEach(n):r.pinnedRowModel.forEachPinnedTopRow(n),o}},t.prototype.processRows=function(e,t){var r=this;return function(o){var n=r.rowModel,i=n.getType(),a=i===s.Constants.ROW_MODEL_TYPE_CLIENT_SIDE,l=i===s.Constants.ROW_MODEL_TYPE_SERVER_SIDE,c=!a&&e.onlySelected,u=r.processRow.bind(r,o,e,t),p=e.exportedRows,d=void 0===p?"filteredAndSorted":p;if(e.rowPositions)e.rowPositions.filter((function(e){return null==e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return n.getRow(e.rowIndex)})).forEach(u);else if(r.columnModel.isPivotMode())a?n.forEachPivotNode(u):n.forEachNode(u);else{if(e.onlySelectedAllPages||c)r.selectionService.getSelectedNodes().forEach(u);else"all"===d?n.forEachNode(u):a||l?n.forEachNodeAfterFilterAndSort(u):n.forEachNode(u)}return o}},t.prototype.processPinnedBottomRows=function(e,t){var r=this;return function(o){var n=r.processRow.bind(r,o,e,t);return e.rowPositions?e.rowPositions.filter((function(e){return"bottom"===e.rowPinned})).sort((function(e,t){return e.rowIndex-t.rowIndex})).map((function(e){return r.pinnedRowModel.getPinnedBottomRow(e.rowIndex)})).forEach(n):r.pinnedRowModel.forEachPinnedBottomRow(n),o}},t.prototype.getColumnsToExport=function(e,t){void 0===e&&(e=!1);var r=this.columnModel.isPivotMode();return t&&t.length?this.columnModel.getGridColumns(t):e&&!r?(this.gridOptionsWrapper.isTreeData()?this.columnModel.getGridColumns([s.Constants.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnModel.getAllPrimaryColumns()||[]):this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,t,r){var o=[];e.forEach((function(e){var t=e;t.getChildren&&t.getChildren().forEach((function(e){return o.push(e)}))})),e.length>0&&e[0]instanceof s.ColumnGroup&&this.doAddHeaderHeader(t,e,r),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t,r)},t.prototype.doAddHeaderHeader=function(e,t,r){var o=this,n=e.onNewHeaderGroupingRow(),i=0;t.forEach((function(e){var t,a=e;t=r?r({columnGroup:a,api:o.gridOptionsWrapper.getApi(),columnApi:o.gridOptionsWrapper.getColumnApi(),context:o.gridOptionsWrapper.getContext()}):o.columnModel.getDisplayNameForColumnGroup(a,"header");var l=a.getLeafColumns().reduce((function(e,t,r,o){var n=s._.last(e);return"open"===t.getColumnGroupShow()?n&&null==n[1]||(n=[r],e.push(n)):n&&null==n[1]&&(n[1]=r-1),r===o.length-1&&n&&null==n[1]&&(n[1]=r),e}),[]);n.onColumn(a,t||"",i++,a.getLeafColumns().length-1,l)}))},f([Object(s.Autowired)("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),f([Object(s.Autowired)("columnModel")],t.prototype,"columnModel",void 0),f([Object(s.Autowired)("rowModel")],t.prototype,"rowModel",void 0),f([Object(s.Autowired)("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),f([Object(s.Autowired)("selectionService")],t.prototype,"selectionService",void 0),f([Object(s.Autowired)("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),t=f([Object(s.Bean)("gridSerializer")],t)}(s.BeanStub),y={moduleName:s.ModuleNames.CsvExportModule,beans:[g,v]},m=function(){function e(){}return e.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),""},e.createXml=function(e,t){var r=this,o="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach((function(e){Object.keys(e.map).forEach((function(n){o+=r.returnAttributeIfPopulated(e.prefix+n,e.map[n],t)}))})),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach((function(n){o+=r.returnAttributeIfPopulated(n,e.properties.rawMap[n],t)})));var n="<"+e.name+o;return e.children||null!=e.textNode?null!=e.textNode?n+">"+e.textNode+"\r\n":(n+=">\r\n",e.children&&e.children.forEach((function(e){n+=r.createXml(e,t)})),n+"\r\n"):n+"/>\r\n"},e.returnAttributeIfPopulated=function(e,t,r){if(!t&&""!==t&&0!==t)return"";var o=t;return"boolean"==typeof t&&r&&(o=r(t))," "+e+'="'+o+'"'},e}(),b=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},w=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),C=function(){function e(){}return e.addFolders=function(e){e.forEach(this.addFolder.bind(this))},e.addFolder=function(e){this.folders.push({path:e,created:new Date,isBase64:!1})},e.addFile=function(e,t,r){void 0===r&&(r=!1),this.files.push({path:e,created:new Date,content:t,isBase64:r})},e.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),r=this.buildUint8Array(t);return this.clearStream(),new Blob([r],{type:e})},e.clearStream=function(){this.folders=[],this.files=[]},e.buildFileStream=function(e){var t,r;void 0===e&&(e="");var o=this.folders.concat(this.files),n=o.length,i="",a=0,s=0;try{for(var l=b(o),c=l.next();!c.done;c=l.next()){var u=c.value,p=this.getHeader(u,a),d=p.fileHeader,g=p.folderHeader,h=p.content;a+=d.length+h.length,s+=g.length,e+=d+h,i+=g}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(t)throw t.error}}return e+i+this.buildFolderEnd(n,s,a)},e.getHeader=function(e,t){var r=e.content,o=e.path,n=e.created,i=e.isBase64,a=s._.utf8_encode,l=s._.decToHex,c=a(o),u=c!==o,p=this.convertTime(n),d=this.convertDate(n),g="";if(u){var h=l(1,1)+l(this.getFromCrc32Table(c),4)+c;g="up"+l(h.length,2)+h}var f=r?this.getConvertedContent(r,i):{size:0,content:""},v=f.size,y=f.content,m="\n\0"+(u?"\0\b":"\0\0")+"\0\0"+l(p,2)+l(d,2)+l(v?this.getFromCrc32Table(y):0,4)+l(v,4)+l(v,4)+l(c.length,2)+l(g.length,2);return{fileHeader:"PK"+m+c+g,folderHeader:"PK\0"+m+"\0\0\0\0\0\0"+(r?"\0\0\0\0":"\0\0\0")+l(t,4)+c+g,content:y||""}},e.getConvertedContent=function(e,t){return void 0===t&&(t=!1),t&&(e=e.split(";base64,")[1]),{size:(e=t?atob(e):e).length,content:e}},e.buildFolderEnd=function(e,t,r){var o=s._.decToHex;return"PK\0\0\0\0"+o(e,2)+o(e,2)+o(t,4)+o(r,4)+"\0\0"},e.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),r=0;r>>8^w[255&(n^i)];return-1^n},e.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e.folders=[],e.files=[],e}()},function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return i})),r.d(t,"d",(function(){return q})),r.d(t,"a",(function(){return $}));var o,n,i,a=r(6),s=r(1),l=r(9),c=r(28),u=r(47),p=r(18),d=r(36),g=r(44),h=r(4),f=r(8),v=r(3),y=r(2),m=r(10),b=r(17),w=r(16),C=r(43),O=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),S=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},E=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},x=function(e){function t(t){var r=e.call(this)||this;return r.element=t,r}return O(t,e),t.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},t.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var r=e.processKeyboardEvent.bind(e,t);e.addManagedListener(e.element,t,r)}))},t.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click",Object(c.isEventSupported)("touchstart")?"touchstart":"mousedown"].forEach((function(t){var r=e.processMouseEvent.bind(e,t);e.addManagedListener(e.element,t,r)}))},t.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!Object(c.isStopPropagationForAgGrid)(t)){var r=this.getRowForEvent(t),o=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,r,o):(o&&o.onMouseEvent(e,t),r&&r.onMouseEvent(e,t))}},t.prototype.mockContextMenuForIPad=function(){var e=this;if(Object(p.isIOSUserAgent)()){var t=new d.a(this.element);this.addManagedListener(t,d.a.EVENT_LONG_TAP,(function(t){var r=e.getRowForEvent(t.touchEvent),o=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,r,o)})),this.addDestroyFunc((function(){return t.destroy()}))}},t.prototype.getRowForEvent=function(e){for(var t=e.target;t;){var r=this.gridOptionsWrapper.getDomData(t,u.a.DOM_DATA_KEY_ROW_CTRL);if(r)return r;t=t.parentElement}return null},t.prototype.handleContextMenuMouseEvent=function(e,t,r,o){var n=r?r.getRowNode():null,i=o?o.getColumn():null,a=null;if(i){var s=e||t;o.dispatchCellContextMenuEvent(s),a=this.valueService.getValue(i,n)}var l=this.ctrlsService.getGridBodyCtrl(),c=o?o.getGui():l.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,t,n,i,a,c)},t.prototype.processKeyboardEvent=function(e,t){var r=Object(c.getCtrlForEvent)(this.gridOptionsWrapper,t,C.a.DOM_DATA_KEY_CELL_CTRL),o=Object(c.getCtrlForEvent)(this.gridOptionsWrapper,t,u.a.DOM_DATA_KEY_ROW_CTRL);t.defaultPrevented||(r?this.processCellKeyboardEvent(r,e,t):o&&o.isFullWidth()&&this.processFullWidthRowKeyboardEvent(o,e,t))},t.prototype.processCellKeyboardEvent=function(e,t,r){var o=e.getRowNode(),n=e.getColumn(),i=e.isEditing();if(!Object(g.isUserSuppressingKeyboardEvent)(this.gridOptionsWrapper,r,o,n,i))switch(t){case"keydown":!i&&this.navigationService.handlePageScrollingKey(r)||e.onKeyDown(r),this.doGridOperations(r,e.isEditing());break;case"keypress":e.onKeyPress(r)}if("keydown"===t){var a=e.createEvent(r,h.a.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(a)}if("keypress"===t){var s=e.createEvent(r,h.a.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(s)}},t.prototype.processFullWidthRowKeyboardEvent=function(e,t,r){var o=e.getRowNode(),n=this.focusService.getFocusedCell(),i=n&&n.column;if(!Object(g.isUserSuppressingKeyboardEvent)(this.gridOptionsWrapper,r,o,i,!1)){var a=r.key;if("keydown"===t)switch(a){case f.a.UP:case f.a.DOWN:e.onKeyboardNavigate(r);break;case f.a.TAB:e.onTabKeyDown(r)}}if("keydown"===t){var s=e.createRowEvent(h.a.EVENT_CELL_KEY_DOWN,r);this.eventService.dispatchEvent(s)}if("keypress"===t){var l=e.createRowEvent(h.a.EVENT_CELL_KEY_PRESS,r);this.eventService.dispatchEvent(l)}},t.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t&&this.mouseEventService.isEventFromThisGrid(e)){var r=Object(g.normaliseQwertyAzerty)(e);return r===f.a.A?this.onCtrlAndA(e):r===f.a.C?this.onCtrlAndC(e):r===f.a.V?this.onCtrlAndV():r===f.a.D?this.onCtrlAndD(e):r===f.a.Z?this.onCtrlAndZ(e):r===f.a.Y?this.onCtrlAndY():void 0}},t.prototype.onCtrlAndA=function(e){var t=this.pinnedRowModel,r=this.paginationProxy,o=this.rangeService,n=v.a.PINNED_BOTTOM,i=v.a.PINNED_TOP;if(o&&r.isRowsToRender()){var a=E([t.isEmpty(i),t.isEmpty(n)],2),s=a[0]?null:i,l=void 0,c=void 0;a[1]?(l=null,c=this.paginationProxy.getRowCount()-1):(l=n,c=t.getPinnedBottomRowData().length-1);var u=this.columnModel.getAllDisplayedColumns();if(Object(y.missingOrEmpty)(u))return;o.setCellRange({rowStartIndex:0,rowStartPinned:s,rowEndIndex:c,rowEndPinned:l,columnStart:u[0],columnEnd:Object(m.last)(u)})}e.preventDefault()},t.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),e.preventDefault())},t.prototype.onCtrlAndV=function(){b.a.isRegistered(w.a.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},t.prototype.onCtrlAndD=function(e){b.a.isRegistered(w.a.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),e.preventDefault()},t.prototype.onCtrlAndZ=function(e){this.gridOptionsWrapper.isUndoRedoCellEditing()&&(e.preventDefault(),e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo())},t.prototype.onCtrlAndY=function(){this.undoRedoService.redo()},S([Object(s.a)("mouseEventService")],t.prototype,"mouseEventService",void 0),S([Object(s.a)("valueService")],t.prototype,"valueService",void 0),S([Object(s.d)("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),S([Object(s.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),S([Object(s.a)("navigationService")],t.prototype,"navigationService",void 0),S([Object(s.a)("focusService")],t.prototype,"focusService",void 0),S([Object(s.a)("undoRedoService")],t.prototype,"undoRedoService",void 0),S([Object(s.a)("columnModel")],t.prototype,"columnModel",void 0),S([Object(s.a)("paginationProxy")],t.prototype,"paginationProxy",void 0),S([Object(s.a)("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),S([Object(s.d)("rangeService")],t.prototype,"rangeService",void 0),S([Object(s.d)("clipboardService")],t.prototype,"clipboardService",void 0),S([s.e],t.prototype,"postConstruct",null),t}(a.a),R=r(5),T=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),A=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},P=function(e){function t(t){var r=e.call(this)||this;return r.centerContainerCtrl=t,r}return T(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()})),this.addManagedListener(this.eventService,h.a.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},t.prototype.listenForResize=function(){var e=this,t=function(){return e.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(t),this.gridBodyCtrl.registerBodyViewportResizeListener(t)},t.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},t.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var e=this.gridBodyCtrl.getBodyViewportElement(),t=Object(R.getInnerHeight)(e);if(this.bodyHeight!==t){this.bodyHeight=t;var r={type:h.a.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(r)}},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e),this.gridBodyCtrl.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||this.centerContainerCtrl.isViewportHScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},A([Object(s.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),A([Object(s.a)("columnModel")],t.prototype,"columnModel",void 0),A([Object(s.a)("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),A([s.e],t.prototype,"postConstruct",null),t}(a.a),_=r(54),D=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),M=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},N=function(e){function t(t){var r=e.call(this)||this;return r.element=t,r}return D(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,l.a.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;Object(R.setDisplayed)(this.element,t),t&&Object(R.setFixedWidth)(this.element,e)},M([Object(s.a)("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),M([s.e],t.prototype,"postConstruct",null),t}(a.a),I=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),L=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},k=function(e){function t(t){var r=e.call(this)||this;return r.element=t,r}return I(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,l.a.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;Object(R.setDisplayed)(this.element,t),t&&Object(R.setFixedWidth)(this.element,e)},L([Object(s.a)("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),L([s.e],t.prototype,"postConstruct",null),t}(a.a),F=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),G=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},j=function(e){function t(t,r){var o=e.call(this)||this;return o.eContainer=t,o.eWrapper=r,o}return F(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,l.a.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),t=null!=e?e+"px":"";this.eContainer.style.height=t,this.eWrapper&&(this.eWrapper.style.height=t)},G([Object(s.a)("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),G([s.e],t.prototype,"postConstruct",null),t}(a.a),z=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),B=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},V=function(e){function t(t){var r=e.call(this)||this;return r.eContainer=t,r}return z(t,e),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsWrapper.isEnableRangeSelection()&&!Object(y.missing)(this.rangeService)){var t={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(t),this.addDestroyFunc((function(){return e.dragService.removeDragSource(t)}))}},B([Object(s.d)("rangeService")],t.prototype,"rangeService",void 0),B([Object(s.a)("dragService")],t.prototype,"dragService",void 0),B([s.e],t.prototype,"postConstruct",null),t}(a.a),W=r(92),H=r(12),U=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),K=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},Y=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},X=function(){for(var e=[],t=0;t=0&&t()},t.prototype.getContainerElement=function(){return this.eContainer},t.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},t.prototype.setComp=function(e,t,r,o){var i=this;this.comp=e,this.eContainer=t,this.eViewport=r,this.eWrapper=o,this.createManagedBean(new x(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var a=[n.TOP_CENTER,n.TOP_LEFT,n.TOP_RIGHT],s=[n.STICKY_TOP_CENTER,n.STICKY_TOP_LEFT,n.STICKY_TOP_RIGHT],l=[n.BOTTOM_CENTER,n.BOTTOM_LEFT,n.BOTTOM_RIGHT],c=[n.CENTER,n.LEFT,n.RIGHT],u=X(a,l,c,s),p=[n.CENTER,n.LEFT,n.RIGHT,n.FULL_WIDTH],d=[n.CENTER,n.TOP_CENTER,n.STICKY_TOP_CENTER,n.BOTTOM_CENTER],g=[n.LEFT,n.BOTTOM_LEFT,n.TOP_LEFT,n.STICKY_TOP_LEFT],h=[n.RIGHT,n.BOTTOM_RIGHT,n.TOP_RIGHT,n.STICKY_TOP_RIGHT];this.forContainers(g,(function(){return i.createManagedBean(new N(i.eContainer))})),this.forContainers(h,(function(){return i.createManagedBean(new k(i.eContainer))})),this.forContainers(p,(function(){return i.createManagedBean(new j(i.eContainer,i.eWrapper))})),this.forContainers(u,(function(){return i.createManagedBean(new V(i.eContainer))})),this.forContainers(d,(function(){return i.createManagedBean(new W.a((function(e){return i.comp.setContainerWidth(e+"px")})))})),this.addListeners(),this.registerWithCtrlsService()},t.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,l.a.EVENT_SCROLL_VISIBILITY_CHANGED,(function(){return e.onScrollVisibilityChanged()})),this.addManagedListener(this.eventService,l.a.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return e.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,l.a.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return e.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,l.a.EVENT_DISPLAYED_ROWS_CHANGED,(function(){return e.onDisplayedRowsChanged()})),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},t.prototype.listenOnDomOrder=function(){var e=this;if([n.STICKY_TOP_CENTER,n.STICKY_TOP_LEFT,n.STICKY_TOP_RIGHT,n.STICKY_TOP_FULL_WIDTH].indexOf(this.name)>=0)this.comp.setDomOrder(!0);else{var t=function(){return e.comp.setDomOrder(e.gridOptionsWrapper.isEnsureDomOrder())};this.addManagedListener(this.gridOptionsWrapper,H.a.PROP_DOM_LAYOUT,t),t()}},t.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([n.TOP_CENTER,n.STICKY_TOP_CENTER,n.BOTTOM_CENTER],(function(){e.addManagedListener(e.eViewport,"scroll",(function(){return e.eViewport.scrollLeft=0}))}))},t.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([n.CENTER],(function(){return e.onHorizontalViewportChanged()}))},t.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([n.CENTER],(function(){return e.onHorizontalViewportChanged()}))},t.prototype.onScrollVisibilityChanged=function(){if(this.name===n.CENTER){var e=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsWrapper.getScrollbarWidth()||0,t=0==e?"100%":"calc(100% + "+e+"px)";this.comp.setViewportHeight(t)}},t.prototype.addPreventScrollWhileDragging=function(){var e=this,t=function(t){e.dragService.isDragging()&&t.cancelable&&t.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc((function(){return e.eContainer.removeEventListener("touchmove",t)}))},t.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),t=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},t.prototype.getCenterWidth=function(){return Object(R.getInnerWidth)(this.eViewport)},t.prototype.getCenterViewportScrollLeft=function(){return Object(R.getScrollLeft)(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 Object(R.isVisible)(this.eViewport)},t.prototype.isViewportHScrollShowing=function(){return Object(R.isHorizontalScrollShowing)(this.eViewport)},t.prototype.getViewportScrollLeft=function(){return Object(R.getScrollLeft)(this.eViewport,this.enableRtl)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||Object(R.isHorizontalScrollShowing)(this.eViewport)},t.prototype.getViewportElement=function(){return this.eViewport},t.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX("+e+"px)"},t.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},t.prototype.setCenterViewportScrollLeft=function(e){Object(R.setScrollLeft)(this.eViewport,e,this.enableRtl)},t.prototype.onDisplayedRowsChanged=function(){var e=this,t=this.name===n.TOP_FULL_WIDTH||this.name===n.STICKY_TOP_FULL_WIDTH||this.name===n.BOTTOM_FULL_WIDTH||this.name===n.FULL_WIDTH,r=this.getRowCtrls().filter((function(r){var o=r.isFullWidth(),n=e.gridOptionsWrapper.getDomLayout()===v.a.DOM_LAYOUT_PRINT,i=e.embedFullWidthRows||n;return t?!i&&o:i||!o}));this.comp.setRowCtrls(r)},t.prototype.getRowCtrls=function(){switch(this.name){case n.TOP_CENTER:case n.TOP_LEFT:case n.TOP_RIGHT:case n.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case n.STICKY_TOP_CENTER:case n.STICKY_TOP_LEFT:case n.STICKY_TOP_RIGHT:case n.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case n.BOTTOM_CENTER:case n.BOTTOM_LEFT:case n.BOTTOM_RIGHT:case n.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},K([Object(s.a)("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),K([Object(s.a)("dragService")],t.prototype,"dragService",void 0),K([Object(s.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),K([Object(s.a)("columnModel")],t.prototype,"columnModel",void 0),K([Object(s.a)("resizeObserverService")],t.prototype,"resizeObserverService",void 0),K([Object(s.a)("rowRenderer")],t.prototype,"rowRenderer",void 0),K([s.e],t.prototype,"postConstruct",null),t}(a.a)},function(e,t,r){"use strict";r.r(t),r.d(t,"EnterpriseCoreModule",(function(){return f})),r.d(t,"LicenseManager",(function(){return l}));var o,n=r(0),i=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},s=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.watermarkMessage=void 0,t}var r;return i(t,e),r=t,t.prototype.validateLicense=function(){if(n._.missingOrEmpty(r.licenseKey))this.outputMissingLicenseKey();else if(r.licenseKey.length>32){var e=r.extractLicenseComponents(r.licenseKey),t=e.md5,o=e.license,i=e.version,a=e.isTrial;t===this.md5.md5(o)?n._.exists(i)&&i?this.validateLicenseKeyForVersion(i,!!a,o):this.validateLegacyKey(o):this.outputInvalidLicenseKey()}else this.outputInvalidLicenseKey()},t.extractExpiry=function(e){var t=e.substring(e.lastIndexOf("_")+1,e.length);return new Date(parseInt(r.decode(t),10))},t.extractLicenseComponents=function(e){var t=e.replace(/[\u200B-\u200D\uFEFF]/g,""),o=(t=t.replace(/\r?\n|\r/g,"")).length-32,n=t.substring(o),i=t.substring(0,o),a=s(r.extractBracketedInformation(t),2);return{md5:n,license:i,version:a[0],isTrial:a[1]}},t.prototype.getLicenseDetails=function(e){var t=r.extractLicenseComponents(e),o=t.md5,n=t.license,i=t.version,a=t.isTrial,s=o===this.md5.md5(n),l=null;return s&&(l=r.extractExpiry(n),s=!isNaN(l.getTime())),{licenseKey:e,valid:s,expiry:s?r.formatDate(l):null,version:i||"legacy",isTrial:a}},t.prototype.isDisplayWatermark=function(){return!n._.missingOrEmpty(this.watermarkMessage)},t.prototype.getWatermarkMessage=function(){return this.watermarkMessage||""},t.formatDate=function(e){var t=e.getDate(),r=e.getMonth(),o=e.getFullYear();return t+" "+["January","February","March","April","May","June","July","August","September","October","November","December"][r]+" "+o},t.getGridReleaseDate=function(){return new Date(parseInt(r.decode(r.RELEASE_INFORMATION),10))},t.decode=function(e){for(var t,o,n,i,a,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0,p=e.replace(/[^A-Za-z0-9+/=]/g,"");u>4,o=(15&i)<<4|(a=l.indexOf(p.charAt(u++)))>>2,n=(3&a)<<6|(s=l.indexOf(p.charAt(u++))),c+=String.fromCharCode(t),64!=a&&(c+=String.fromCharCode(o)),64!=s&&(c+=String.fromCharCode(n));return c=r.utf8_decode(c)},t.utf8_decode=function(e){e=e.replace(/rn/g,"n");for(var t="",r=0;r127&&o<2048?(t+=String.fromCharCode(o>>6|192),t+=String.fromCharCode(63&o|128)):(t+=String.fromCharCode(o>>12|224),t+=String.fromCharCode(o>>6&63|128),t+=String.fromCharCode(63&o|128))}return t},t.setLicenseKey=function(e){r.licenseKey=e},t.extractBracketedInformation=function(e){var t=e.split("[").filter((function(e){return e.indexOf("]")>-1})).map((function(e){return e.split("]")[0]}));if(!t||0===t.length)return[null,null];var r=1===t.filter((function(e){return"TRIAL"===e})).length;return[t.filter((function(e){return 0===e.indexOf("v")})).map((function(e){return e.replace(/^v/,"")}))[0],r]},t.prototype.validateLicenseKeyForVersion=function(e,t,r){"2"===e&&(t?this.validateForTrial(r):this.validateLegacyKey(r))},t.prototype.validateLegacyKey=function(e){var t=r.getGridReleaseDate(),o=r.extractExpiry(e),n=!1,i=!1;if(isNaN(o.getTime())||(n=!0,i=to),n){if(!i){var a=r.formatDate(t);this.outputExpiredTrialKey(a)}}else this.outputInvalidLicenseKey()},t.prototype.outputInvalidLicenseKey=function(){console.error("*****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License ********************************************"),console.error("********************************************* Invalid License ***************************************************"),console.error("* Your license for AG Grid Enterprise is not valid - please contact info@ag-grid.com to obtain a valid license. *"),console.error("*****************************************************************************************************************"),console.error("*****************************************************************************************************************"),this.watermarkMessage="Invalid License"},t.prototype.outputExpiredTrialKey=function(e){console.error("****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License *******************************************"),console.error("***************************************** Trial Period Expired. *******************************************"),console.error("* Your license for AG Grid Enterprise expired on "+e+". *"),console.error("* Please email info@ag-grid.com to purchase a license. *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="Trial Period Expired"},t.prototype.outputMissingLicenseKey=function(){console.error("****************************************************************************************************************"),console.error("***************************************** AG Grid Enterprise License *******************************************"),console.error("****************************************** License Key Not Found ***********************************************"),console.error("* All AG Grid Enterprise features are unlocked. *"),console.error("* This is an evaluation only version, it is not licensed for development projects intended for production. *"),console.error("* If you want to hide the watermark, please email info@ag-grid.com for a trial license. *"),console.error("****************************************************************************************************************"),console.error("****************************************************************************************************************"),this.watermarkMessage="For Trial Use Only"},t.prototype.outputIncompatibleVersion=function(e,t){console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),console.error("* AG Grid Enterprise License *"),console.error("* License not compatible with installed version of AG Grid Enterprise. *"),console.error("* *"),console.error("* Your AG Grid License entitles you to all versions of AG Grid that we release within the time covered by your license *"),console.error("* - typically we provide one year licenses which entitles you to all releases / updates of AG Grid within that year. *"),console.error("* Your license has an end (expiry) date which stops the license key working with versions of AG Grid released after the *"),console.error("* license end date. The license key that you have expires on "+e+", however the version of AG Grid you *"),console.error("* are trying to use was released on "+t+". *"),console.error("* *"),console.error("* Please contact info@ag-grid.com to renew your subscription to new versions and get a new license key to work with this *"),console.error("* version of AG Grid. *"),console.error("****************************************************************************************************************************"),console.error("****************************************************************************************************************************"),this.watermarkMessage="License Expired"},t.RELEASE_INFORMATION="MTY2NzI0NjAxNTYyNw==",a([Object(n.Autowired)("md5")],t.prototype,"md5",void 0),a([n.PreConstruct],t.prototype,"validateLicense",null),t=r=a([Object(n.Bean)("licenseManager")],t)}(n.BeanStub),c=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),u=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ieCompatibility=!1,t}return c(t,e),t.prototype.init=function(){this.ieCompatibility="5d41402abc4b2a76b9719d911017c592"!=this.md5("hello")},t.prototype.md5cycle=function(e,t){var r=e[0],o=e[1],n=e[2],i=e[3];r=this.ff(r,o,n,i,t[0],7,-680876936),i=this.ff(i,r,o,n,t[1],12,-389564586),n=this.ff(n,i,r,o,t[2],17,606105819),o=this.ff(o,n,i,r,t[3],22,-1044525330),r=this.ff(r,o,n,i,t[4],7,-176418897),i=this.ff(i,r,o,n,t[5],12,1200080426),n=this.ff(n,i,r,o,t[6],17,-1473231341),o=this.ff(o,n,i,r,t[7],22,-45705983),r=this.ff(r,o,n,i,t[8],7,1770035416),i=this.ff(i,r,o,n,t[9],12,-1958414417),n=this.ff(n,i,r,o,t[10],17,-42063),o=this.ff(o,n,i,r,t[11],22,-1990404162),r=this.ff(r,o,n,i,t[12],7,1804603682),i=this.ff(i,r,o,n,t[13],12,-40341101),n=this.ff(n,i,r,o,t[14],17,-1502002290),o=this.ff(o,n,i,r,t[15],22,1236535329),r=this.gg(r,o,n,i,t[1],5,-165796510),i=this.gg(i,r,o,n,t[6],9,-1069501632),n=this.gg(n,i,r,o,t[11],14,643717713),o=this.gg(o,n,i,r,t[0],20,-373897302),r=this.gg(r,o,n,i,t[5],5,-701558691),i=this.gg(i,r,o,n,t[10],9,38016083),n=this.gg(n,i,r,o,t[15],14,-660478335),o=this.gg(o,n,i,r,t[4],20,-405537848),r=this.gg(r,o,n,i,t[9],5,568446438),i=this.gg(i,r,o,n,t[14],9,-1019803690),n=this.gg(n,i,r,o,t[3],14,-187363961),o=this.gg(o,n,i,r,t[8],20,1163531501),r=this.gg(r,o,n,i,t[13],5,-1444681467),i=this.gg(i,r,o,n,t[2],9,-51403784),n=this.gg(n,i,r,o,t[7],14,1735328473),o=this.gg(o,n,i,r,t[12],20,-1926607734),r=this.hh(r,o,n,i,t[5],4,-378558),i=this.hh(i,r,o,n,t[8],11,-2022574463),n=this.hh(n,i,r,o,t[11],16,1839030562),o=this.hh(o,n,i,r,t[14],23,-35309556),r=this.hh(r,o,n,i,t[1],4,-1530992060),i=this.hh(i,r,o,n,t[4],11,1272893353),n=this.hh(n,i,r,o,t[7],16,-155497632),o=this.hh(o,n,i,r,t[10],23,-1094730640),r=this.hh(r,o,n,i,t[13],4,681279174),i=this.hh(i,r,o,n,t[0],11,-358537222),n=this.hh(n,i,r,o,t[3],16,-722521979),o=this.hh(o,n,i,r,t[6],23,76029189),r=this.hh(r,o,n,i,t[9],4,-640364487),i=this.hh(i,r,o,n,t[12],11,-421815835),n=this.hh(n,i,r,o,t[15],16,530742520),o=this.hh(o,n,i,r,t[2],23,-995338651),r=this.ii(r,o,n,i,t[0],6,-198630844),i=this.ii(i,r,o,n,t[7],10,1126891415),n=this.ii(n,i,r,o,t[14],15,-1416354905),o=this.ii(o,n,i,r,t[5],21,-57434055),r=this.ii(r,o,n,i,t[12],6,1700485571),i=this.ii(i,r,o,n,t[3],10,-1894986606),n=this.ii(n,i,r,o,t[10],15,-1051523),o=this.ii(o,n,i,r,t[1],21,-2054922799),r=this.ii(r,o,n,i,t[8],6,1873313359),i=this.ii(i,r,o,n,t[15],10,-30611744),n=this.ii(n,i,r,o,t[6],15,-1560198380),o=this.ii(o,n,i,r,t[13],21,1309151649),r=this.ii(r,o,n,i,t[4],6,-145523070),i=this.ii(i,r,o,n,t[11],10,-1120210379),n=this.ii(n,i,r,o,t[2],15,718787259),o=this.ii(o,n,i,r,t[9],21,-343485551),e[0]=this.add32(r,e[0]),e[1]=this.add32(o,e[1]),e[2]=this.add32(n,e[2]),e[3]=this.add32(i,e[3])},t.prototype.cmn=function(e,t,r,o,n,i){return t=this.add32(this.add32(t,e),this.add32(o,i)),this.add32(t<>>32-n,r)},t.prototype.ff=function(e,t,r,o,n,i,a){return this.cmn(t&r|~t&o,e,t,n,i,a)},t.prototype.gg=function(e,t,r,o,n,i,a){return this.cmn(t&o|r&~o,e,t,n,i,a)},t.prototype.hh=function(e,t,r,o,n,i,a){return this.cmn(t^r^o,e,t,n,i,a)},t.prototype.ii=function(e,t,r,o,n,i,a){return this.cmn(r^(t|~o),e,t,n,i,a)},t.prototype.md51=function(e){var t,r=e.length,o=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)this.md5cycle(o,this.md5blk(e.substring(t-64,t)));e=e.substring(t-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),t>55)for(this.md5cycle(o,n),t=0;t<16;t++)n[t]=0;return n[14]=8*r,this.md5cycle(o,n),o},t.prototype.md5blk=function(e){for(var t=[],r=0;r<64;r+=4)t[r>>2]=e.charCodeAt(r)+(e.charCodeAt(r+1)<<8)+(e.charCodeAt(r+2)<<16)+(e.charCodeAt(r+3)<<24);return t},t.prototype.rhex=function(e){for(var t="0123456789abcdef".split(""),r="",o=0;o<4;o++)r+=t[e>>8*o+4&15]+t[e>>8*o&15];return r},t.prototype.hex=function(e){for(var t=0;t>16)+(t>>16)+(r>>16)<<16|65535&r},u([n.PostConstruct],t.prototype,"init",null),t=u([Object(n.Bean)("md5")],t)}(n.BeanStub),d=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),g=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},h=function(e){function t(){return e.call(this,'
\n
\n
')||this}return d(t,e),t.prototype.postConstruct=function(){var e=this,t=this.shouldDisplayWatermark();this.addOrRemoveCssClass("ag-hidden",!t),t&&(this.eLicenseTextRef.innerText=this.licenseManager.getWatermarkMessage(),window.setTimeout((function(){return e.addCssClass("ag-opacity-zero")}),0),window.setTimeout((function(){return e.addCssClass("ag-hidden")}),5e3))},t.prototype.shouldDisplayWatermark=function(){var e=(this.gridOptionsWrapper.getDocument().defaultView||window).location,t=e.hostname,r=void 0===t?"":t,o=e.pathname,n=this.licenseManager.isDisplayWatermark(),i=null!=r.match("^(?:127.0.0.1|localhost|(?:w+.)?ag-grid.com)$");return!!o&&-1!==o.indexOf("forceWatermark")||n&&!i},g([Object(n.Autowired)("licenseManager")],t.prototype,"licenseManager",void 0),g([Object(n.RefSelector)("eLicenseTextRef")],t.prototype,"eLicenseTextRef",void 0),g([n.PostConstruct],t.prototype,"postConstruct",null),t}(n.Component),f={moduleName:n.ModuleNames.EnterpriseCoreModule,beans:[l,p],agStackComponents:[{componentName:"AgWatermark",componentClass:h}]}},function(e,t,r){"use strict";r.r(t),r.d(t,"stopPropagationForAgGrid",(function(){return a})),r.d(t,"isStopPropagationForAgGrid",(function(){return s})),r.d(t,"isEventSupported",(function(){return c})),r.d(t,"getCtrlForEvent",(function(){return u})),r.d(t,"addChangeListener",(function(){return p})),r.d(t,"isElementInEventPath",(function(){return d})),r.d(t,"createEventPath",(function(){return g})),r.d(t,"addAgGridEventPath",(function(){return h})),r.d(t,"getEventPath",(function(){return f})),r.d(t,"addSafePassiveEventListener",(function(){return v}));var o=r(10),n=["touchstart","touchend","touchmove","touchcancel"],i={};function a(e){e.__ag_Grid_Stop_Propagation=!0}function s(e){return!0===e.__ag_Grid_Stop_Propagation}var l,c=(l={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(e){if("boolean"==typeof i[e])return i[e];var t=document.createElement(l[e]||"div");return i[e="on"+e]=e in t});function u(e,t,r){for(var o=t.target;o;){var n=e.getDomData(o,r);if(n)return n;o=o.parentElement}return null}function p(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t)}function d(e,t){return!(!t||!e)&&f(t).indexOf(e)>=0}function g(e){for(var t=[],r=e.target;r;)t.push(r),r=r.parentElement;return t}function h(e){e.__agGridEventPath=f(e)}function f(e){var t=e;return t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:g(e)}function v(e,t,r,i){var a=Object(o.includes)(n,r)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,r,i,a)}},function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return y}));var o,n,i=r(7),a=r(201),s=r(62),l=r(24),c=r(85),u=r(10),p=r(5),d=r(15),g=r(46),h=r(13),f=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),v=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e[e.One=0]="One",e[e.Two=1]="Two"}(n||(n={}));var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.getNumberOfInputs=function(e){var r=this.optionsFactory.getCustomOption(e);if(r){var o=r.numberOfInputs;return null!=o?o:1}var n=[t.EMPTY,t.NOT_BLANK,t.BLANK];return e&&n.indexOf(e)>=0?0:e===t.IN_RANGE?2:1},t.prototype.onFloatingFilterChanged=function(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){this.eType1.setValue(e),this.eType2.setValue(this.optionsFactory.getDefaultOption()),(this.isDefaultOperator("AND")?this.eJoinOperatorAnd:this.eJoinOperatorOr).setValue(!0)},t.prototype.getModelFromUi=function(){return this.isConditionUiComplete(n.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(n.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(n.One),condition2:this.createCondition(n.Two)}:this.createCondition(n.One):null},t.prototype.getConditionTypes=function(){return[this.eType1.getValue(),this.eType2.getValue()]},t.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var r,o=!e.operator,n=!t.operator;if(!o&&n||o&&!n)return!1;if(o){var i=e,a=t;r=this.areSimpleModelsEqual(i,a)}else{var s=e,l=t;r=s.operator===l.operator&&this.areSimpleModelsEqual(s.condition1,l.condition1)&&this.areSimpleModelsEqual(s.condition2,l.condition2)}return r},t.prototype.setModelIntoUi=function(e){if(e.operator){var t=e,r="OR"===t.operator;this.eJoinOperatorAnd.setValue(!r),this.eJoinOperatorOr.setValue(r),this.eType1.setValue(t.condition1.type),this.eType2.setValue(t.condition2.type),this.setConditionIntoUi(t.condition1,n.One),this.setConditionIntoUi(t.condition2,n.Two)}else{var o=e;this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR")),this.eType1.setValue(o.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(o,n.One),this.setConditionIntoUi(null,n.Two)}return l.a.resolve()},t.prototype.doesFilterPass=function(e){var t=this,r=this.getModel();if(null==r)return!0;var o=r.operator,n=[];if(o){var i=r;n.push(i.condition1,i.condition2)}else n.push(r);return n[o&&"OR"===o?"some":"every"]((function(r){return t.individualConditionPasses(e,r)}))},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.optionsFactory=new a.a,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.allowTwoConditions=!t.suppressAndOrCondition,this.alwaysShowBothConditions=!!t.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(t.defaultJoinOperator),this.filterPlaceholder=t.filterPlaceholder,this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.getDefaultJoinOperator=function(e){return Object(u.includes)(["AND","OR"],e)?e:"AND"},t.prototype.putOptionsIntoDropdown=function(){var e=this,t=this.optionsFactory.getFilterOptions(),r=[this.eType1,this.eType2];t.forEach((function(t){var o="string"==typeof t?e.createBoilerplateListOption(t):e.createCustomListOption(t);r.forEach((function(e){return e.addOption(o)}))})),r.forEach((function(e){return e.setDisabled(t.length<=1)}))},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var t=e.displayKey,r=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:r?this.gridOptionsWrapper.getLocaleTextFunc()(r.displayKey,r.displayName):this.translate(t)}},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){return'\n \n '+this.createValueTemplate(n.One)+'\n
\n \n \n
\n \n '+this.createValueTemplate(n.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this,t=[[this.eType1],[this.eType2,this.eJoinOperatorPanel,this.eJoinOperatorAnd,this.eJoinOperatorOr]],r=[this.eCondition1Body,this.eCondition2Body];t.forEach((function(t,r){var o=e.isConditionVisible(r),n=e.isConditionDisabled(r);t.forEach((function(e){e instanceof g.a||e instanceof c.a?(e.setDisabled(n),e.setDisplayed(o)):(Object(p.setDisabled)(e,n),Object(p.setDisplayed)(e,o))}))})),r.forEach((function(t,r){Object(p.setDisplayed)(t,e.isConditionBodyVisible(r))})),this.forEachInput((function(t,r,o,n){e.setElementDisplayed(t,r1?"inRangeStart":0===o?"filterOoo":"inRangeEnd",s=0===o&&i>1?t("ariaFilterFromValue","Filter from value"):0===o?t("ariaFilterValue","Filter Value"):t("ariaFilterToValue","Filter to Value");r.setInputPlaceholder(e.getPlaceholderText(a,n)),r.setInputAriaLabel(s)}}))},t.prototype.setElementValue=function(e,t,r){e instanceof g.a&&e.setValue(null!=t?String(t):null,r)},t.prototype.setElementDisplayed=function(e,t){e instanceof d.a&&Object(p.setDisplayed)(e.getGui(),t)},t.prototype.setElementDisabled=function(e,t){e instanceof d.a&&Object(p.setDisabled)(e.getGui(),t)},t.prototype.attachElementOnChange=function(e,t){e instanceof g.a&&e.onValueChange(t)},t.prototype.forEachInput=function(e){var t=this,r=this.getInputs();this.getConditionTypes().forEach((function(o,n){for(var i=t.getNumberOfInputs(o),a=0;a0},t.prototype.isConditionUiComplete=function(e){return this.getConditionTypes()[e]!==t.EMPTY&&!this.getValues(e).some((function(e){return null==e}))},t.prototype.resetUiToDefaults=function(e){var t=this,r=this.gridOptionsWrapper.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator"),o="ag-simple-filter-and-or-"+this.getCompId(),n=this.optionsFactory.getDefaultOption();return this.eType1.setValue(n,e).setAriaLabel(r).setDisabled(this.isReadOnly()),this.eType2.setValue(this.optionsFactory.getDefaultOption(),e).setAriaLabel(r).setDisabled(this.isReadOnly()),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),e).setName(o).setLabel(this.translate("andCondition")).setDisabled(this.isReadOnly()),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),e).setName(o).setLabel(this.translate("orCondition")).setDisabled(this.isReadOnly()),this.forEachInput((function(r){t.setElementValue(r,null,e),t.setElementDisabled(r,t.isReadOnly())})),this.resetPlaceholder(),l.a.resolve()},t.prototype.setConditionIntoUi=function(e,t){var r=this,o=this.mapValuesFromModel(e);this.forEachInput((function(e,n,i,a){i===t&&r.setElementValue(e,null!=o[n]?o[n]:null)}))},t.prototype.setValueFromFloatingFilter=function(e){var t=this;this.forEachInput((function(r,o,n,i){t.setElementValue(r,0===o&&0===n?e:null)}))},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(){var e=this;if(!this.isReadOnly()){var t=function(){return e.onUiChanged()};this.eType1.onValueChange(t),this.eType2.onValueChange(t),this.eJoinOperatorOr.onValueChange(t),this.eJoinOperatorAnd.onValueChange(t),this.forEachInput((function(r){e.attachElementOnChange(r,t)}))}},t.prototype.individualConditionPasses=function(e,t){var r=this.getCellValue(e.node),o=this.mapValuesFromModel(t),n=this.optionsFactory.getCustomOption(t.type),i=this.evaluateCustomFilter(n,o,r);return null!=i?i:null==r?this.evaluateNullValue(t.type):this.evaluateNonNullValue(o,r,t,e)},t.prototype.evaluateCustomFilter=function(e,t,r){if(null!=e){var o=e.predicate;return null==o||t.some((function(e){return null==e}))?void 0:o(t,r)}},t.prototype.isBlank=function(e){return null==e||"string"==typeof e&&0===e.trim().length},t.EMPTY="empty",t.BLANK="blank",t.NOT_BLANK="notBlank",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",v([Object(i.b)("eOptions1")],t.prototype,"eType1",void 0),v([Object(i.b)("eOptions2")],t.prototype,"eType2",void 0),v([Object(i.b)("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),v([Object(i.b)("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),v([Object(i.b)("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),v([Object(i.b)("eCondition1Body")],t.prototype,"eCondition1Body",void 0),v([Object(i.b)("eCondition2Body")],t.prototype,"eCondition2Body",void 0),t}(s.a)},function(e,t,r){"use strict";r.r(t),r.d(t,"utf8_encode",(function(){return i})),r.d(t,"camelCaseToHyphen",(function(){return a})),r.d(t,"hyphenToCamelCase",(function(){return s})),r.d(t,"capitalise",(function(){return l})),r.d(t,"escapeString",(function(){return c})),r.d(t,"camelCaseToHumanText",(function(){return u}));var o=/[&<>"']/g,n={"&":"&","<":"<",">":">",'"':""","'":"'"};function i(e){var t=String.fromCharCode;function r(e,r){return t(e>>r&63|128)}function o(e){if(e>=0&&e<=31&&10!==e)return"_x"+e.toString(16).toUpperCase().padStart(4,"0")+"_";if(0==(4294967168&e))return t(e);var o="";return 0==(4294965248&e)?o=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),o=t(e>>12&15|224),o+=r(e,6)):0==(4292870144&e)&&(o=t(e>>18&7|240),o+=r(e,12),o+=r(e,6)),o+=t(63&e|128)}for(var n=function(e){var t=[];if(!e)return[];for(var r,o,n=e.length,i=0;i=55296&&r<=56319&&i1?e.substring(1,e.length):"")})).join(" ")}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var o=r(33),n=r(19),i=r(38),a=function(){function e(e,t,r,o){this.localEventService=new i.a,this.expandable=!1,this.colGroupDef=e,this.groupId=t,this.expanded=!!e&&!!e.openByDefault,this.padding=r,this.level=o}return e.prototype.reset=function(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.children=void 0,this.expandable=void 0},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 r={type:e.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(r)},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(r){r instanceof n.a?t.push(r):r instanceof e&&r.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.getLeafColumns().forEach((function(t){return t.addEventListener(n.a.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,r=!1,n=!1,i=this.findChildrenRemovingPadding(),a=0,s=i.length;a=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e.AUTO_HEIGHT="ag-layout-auto-height",e.NORMAL="ag-layout-normal",e.PRINT="ag-layout-print"}(n||(n={}));var p=function(e){function t(t){var r=e.call(this)||this;return r.view=t,r}return c(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,s.a.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},t.prototype.updateLayoutClasses=function(){var e=this.gridOptionsWrapper.getDomLayout(),t={autoHeight:e===i.a.DOM_LAYOUT_AUTO_HEIGHT,normal:e===i.a.DOM_LAYOUT_NORMAL,print:e===i.a.DOM_LAYOUT_PRINT},r=t.autoHeight?n.AUTO_HEIGHT:t.print?n.PRINT:n.NORMAL;this.view.updateLayoutClasses(r,t)},u([Object(a.a)("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),u([a.e],t.prototype,"postConstruct",null),t}(l.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var o=r(19),n=r(38),i=r(1),a=r(10),s=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},l=function(){function e(e,t,r,o){this.displayedChildren=[],this.localEventService=new n.a,this.groupId=t,this.instanceId=r,this.providedColumnGroup=e,this.pinned=o}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.instanceId)},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.gridOptionsWrapper.isEnableRtl()){var t=Object(a.last)(this.displayedChildren).getLeft();this.setLeft(t)}else{var r=this.displayedChildren[0].getLeft();this.setLeft(r)}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.getInstanceId=function(){return this.instanceId},e.prototype.isChildInThisGroupDeepSearch=function(t){var r=!1;return this.children.forEach((function(o){t===o&&(r=!0),o instanceof e&&o.isChildInThisGroupDeepSearch(t)&&(r=!0)})),r},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(r){r instanceof o.a?t.push(r):r instanceof e&&r.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(r){r instanceof o.a?t.push(r):r instanceof e&&r.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},e.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},e.prototype.getOriginalColumnGroup=function(){return console.warn("AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead"),this.getProvidedColumnGroup()},e.prototype.getPaddingLevel=function(){var e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var r=this;null!=r&&r.isPadding();)r=r.getParent();if(!(!!r&&r.providedColumnGroup.isExpandable()))return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(o){if(!(o instanceof e&&(!o.displayedChildren||!o.displayedChildren.length)))switch(o.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:r.providedColumnGroup.isExpanded()&&t.displayedChildren.push(o);break;case e.HEADER_GROUP_SHOW_CLOSED:r.providedColumnGroup.isExpanded()||t.displayedChildren.push(o);break;default:t.displayedChildren.push(o)}})),this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",s([Object(i.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}()},function(e,t,r){"use strict";r.d(t,"c",(function(){return o})),r.d(t,"j",(function(){return n})),r.d(t,"k",(function(){return i})),r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return s})),r.d(t,"l",(function(){return l})),r.d(t,"m",(function(){return c})),r.d(t,"n",(function(){return u})),r.d(t,"q",(function(){return p})),r.d(t,"d",(function(){return d})),r.d(t,"e",(function(){return g})),r.d(t,"p",(function(){return h})),r.d(t,"o",(function(){return f})),r.d(t,"f",(function(){return v})),r.d(t,"i",(function(){return y})),r.d(t,"h",(function(){return m})),r.d(t,"g",(function(){return b}));var o={propertyName:"dateComponent",cellRenderer:!1},n={propertyName:"headerComponent",cellRenderer:!1},i={propertyName:"headerGroupComponent",cellRenderer:!1},a={propertyName:"cellRenderer",cellRenderer:!0},s={propertyName:"cellEditor",cellRenderer:!1},l={propertyName:"innerRenderer",cellRenderer:!0},c={propertyName:"loadingOverlayComponent",cellRenderer:!1},u={propertyName:"noRowsOverlayComponent",cellRenderer:!1},p={propertyName:"tooltipComponent",cellRenderer:!1},d={propertyName:"filter",cellRenderer:!1},g={propertyName:"floatingFilterComponent",cellRenderer:!1},h={propertyName:"toolPanel",cellRenderer:!1},f={propertyName:"statusPanel",cellRenderer:!1},v={propertyName:"fullWidthCellRenderer",cellRenderer:!0},y={propertyName:"loadingCellRenderer",cellRenderer:!0},m={propertyName:"groupRowRenderer",cellRenderer:!0},b={propertyName:"detailCellRenderer",cellRenderer:!0}},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var o,n=r(29),i=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(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,r,o){var n=this.comparator(),i=null!=e[0]?n(e[0],r):0;switch(o.type){case t.EQUALS:return 0===i;case t.NOT_EQUAL:return 0!==i;case t.GREATER_THAN:return i>0;case t.GREATER_THAN_OR_EQUAL:return i>=0;case t.LESS_THAN:return i<0;case t.LESS_THAN_OR_EQUAL:return i<=0;case t.IN_RANGE:var a=n(e[1],r);return this.scalarFilterParams.inRangeInclusive?i>=0&&a<=0:i>0&&a<0;case t.BLANK:return this.isBlank(r);case t.NOT_BLANK:return!this.isBlank(r);default:return console.warn('AG Grid: Unexpected type of filter "'+o.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(n.b)},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var o=r(38),n=r(86),i=function(){function e(e,t){var r=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new o.a,this.eElement=e,this.preventMouseClick=t;var n=this.onTouchStart.bind(this),i=this.onTouchMove.bind(this),a=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",n,{passive:!0}),this.eElement.addEventListener("touchmove",i,{passive:!0}),this.eElement.addEventListener("touchend",a,{passive:!1}),this.destroyFuncs.push((function(){r.eElement.removeEventListener("touchstart",n,{passive:!0}),r.eElement.removeEventListener("touchmove",i,{passive:!0}),r.eElement.removeEventListener("touchend",a,{passive:!1})}))}return e.prototype.getActiveTouch=function(e){for(var t=0;t0)if(t-this.lastTapTime>e.DOUBLE_TAP_MILLIS){var r={type:e.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(r),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}()},function(e,t,r){"use strict";r.r(t),r.d(t,"serialiseDate",(function(){return i})),r.d(t,"dateToFormattedString",(function(){return s})),r.d(t,"parseDateTimeFromString",(function(){return l}));var o=r(42),n=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a};function i(e,t,r){if(void 0===t&&(t=!0),void 0===r&&(r="-"),!e)return null;var n=[e.getFullYear(),e.getMonth()+1,e.getDate()].map((function(e){return Object(o.padStartWidthZeros)(e,2)})).join(r);return t&&(n+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return Object(o.padStartWidthZeros)(e,2)})).join(":")),n}var a=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 s(e,t){void 0===t&&(t="YYYY-MM-DD");var r=Object(o.padStartWidthZeros)(e.getFullYear(),4),n=["January","February","March","April","May","June","July","August","September","October","November","December"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s={YYYY:function(){return r.slice(r.length-4,r.length)},YY:function(){return r.slice(r.length-2,r.length)},Y:function(){return""+e.getFullYear()},MMMM:function(){return n[e.getMonth()]},MMM:function(){return n[e.getMonth()].slice(0,3)},MM:function(){return Object(o.padStartWidthZeros)(e.getMonth()+1,2)},Mo:function(){return""+(e.getMonth()+1)+a(e.getMonth()+1)},M:function(){return""+(e.getMonth()+1)},Do:function(){return""+e.getDate()+a(e.getDate())},DD:function(){return Object(o.padStartWidthZeros)(e.getDate(),2)},D:function(){return""+e.getDate()},dddd:function(){return i[e.getDay()]},ddd:function(){return i[e.getDay()].slice(0,3)},dd:function(){return i[e.getDay()].slice(0,2)},do:function(){return""+e.getDay()+a(e.getDay())},d:function(){return""+e.getDay()}},l=new RegExp(Object.keys(s).join("|"),"g");return t.replace(l,(function(e){return e in s?s[e]():e}))}function l(e){if(!e)return null;var t=n(e.split(" "),2),r=t[0],o=t[1];if(!r)return null;var i=r.split("-").map((function(e){return parseInt(e,10)}));if(3!==i.filter((function(e){return!isNaN(e)})).length)return null;var a=n(i,3),s=a[0],l=a[1],c=a[2],u=new Date(s,l-1,c);if(u.getFullYear()!==s||u.getMonth()!==l-1||u.getDate()!==c)return null;if(!o||"00:00:00"===o)return u;var p=n(o.split(":").map((function(e){return parseInt(e,10)})),3),d=p[0],g=p[1],h=p[2];return d>=0&&d<24&&u.setHours(d),g>=0&&g<60&&u.setMinutes(g),h>=0&&h<60&&u.setSeconds(h),u}},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var o=r(1),n=function(){return(n=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=function(e,t){return function(r,o){t(r,o,e)}},s=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,r,o){if(void 0===o&&(o=null),this.frameworkOverrides=r,this.gridOptionsWrapper=t,o){var n=t.useAsyncEvents();this.addGlobalListener(o,n)}},e.prototype.getListeners=function(e,t,r){var o=t?this.allAsyncListeners:this.allSyncListeners,n=o.get(e);return!n&&r&&(n=new Set,o.set(e,n)),n},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,r){void 0===r&&(r=!1),this.getListeners(e,r,!0).add(t)},e.prototype.removeEventListener=function(e,t,r){void 0===r&&(r=!1);var o=this.getListeners(e,r,!1);o&&(o.delete(t),0===o.size&&(r?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;this.gridOptionsWrapper&&(t=n(n({},e),{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()})),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 r=this,o=e.type,n=this.getListeners(o,t,!1);n&&function(o){o.forEach((function(o){t?r.dispatchAsync((function(){return o(e)})):o(e)}))}(n),(t?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(n){t?r.dispatchAsync((function(){return r.frameworkOverrides.dispatchEvent(o,(function(){return n(o,e)}),!0)})):r.frameworkOverrides.dispatchEvent(o,(function(){return n(o,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()}))},i([a(0,Object(o.h)("loggerFactory")),a(1,Object(o.h)("gridOptionsWrapper")),a(2,Object(o.h)("frameworkOverrides")),a(3,Object(o.h)("globalEventListener"))],e.prototype,"setBeans",null),e=i([Object(o.b)("eventService")],e)}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var o,n=r(1),i=r(8),a=r(28),s=r(6),l=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(){return(c=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=function(e){function t(t,r){void 0===r&&(r={});var o=e.call(this)||this;return o.eFocusableElement=t,o.callbacks=r,o.callbacks=c({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(e){if(!e.defaultPrevented){var t=o.focusService.findNextFocusableElement(o.eFocusableElement,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())}}},r),o}return l(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||Object(a.isStopPropagationForAgGrid)(e)||(t.callbacks.shouldStopEventPropagation(e)?Object(a.stopPropagationForAgGrid)(e):e.key===i.a.TAB?t.callbacks.onTabKeyDown(e):t.callbacks.handleKeyDown&&t.callbacks.handleKeyDown(e))}))},t.FOCUS_MANAGED_CLASS="ag-focus-managed",u([Object(n.a)("focusService")],t.prototype,"focusService",void 0),u([n.e],t.prototype,"postConstruct",null),t}(s.a)},function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return C}));var o,n,i=r(1),a=r(11),s=r(5),l=r(14),c=r(15),u=r(7),p=r(90),d=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),g=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},h=function(e){function t(r){var o=e.call(this,t.TEMPLATE,r)||this;return o.headerCompVersion=0,o.column=r.getColumnGroupChild(),o.pinned=r.getPinned(),o}return d(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),r=function(e,r,o){var n=o||t;null!=r&&""!=r?n.setAttribute(e,r):n.removeAttribute(e)},o={setWidth:function(e){return t.style.width=e},addOrRemoveCssClass:function(t,r){return e.addOrRemoveCssClass(t,r)},setColId:function(e){return r("col-id",e)},setTitle:function(e){return r("title",e)},setAriaDescription:function(e){return Object(a.setAriaDescription)(t,e)},setAriaSort:function(e){return e?Object(a.setAriaSort)(t,e):Object(a.removeAriaSort)(t)},setUserCompDetails:function(t){return e.setUserCompDetails(t)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(o,this.getGui(),this.eResize,this.eHeaderCompWrapper);var n=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",n)},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 r=this.headerCompVersion;e.newAgStackInstance().then((function(e){return t.afterCompCreated(r,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
',g([Object(u.b)("eResize")],t.prototype,"eResize",void 0),g([Object(u.b)("eHeaderCompWrapper")],t.prototype,"eHeaderCompWrapper",void 0),g([i.e],t.prototype,"postConstruct",null),g([i.g],t.prototype,"destroyHeaderComp",null),t}(p.a),f=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),v=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},y=function(e){function t(r){return e.call(this,t.TEMPLATE,r)||this}return f(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),r=function(e,r){return null!=r?t.setAttribute(e,r):t.removeAttribute(e)},o={addOrRemoveCssClass:function(t,r){return e.addOrRemoveCssClass(t,r)},addOrRemoveResizableCssClass:function(t,r){return e.eResize.classList.toggle(t,r)},setWidth:function(e){return t.style.width=e},setColId:function(e){return t.setAttribute("col-id",e)},setAriaExpanded:function(e){return r("aria-expanded",e)},setTitle:function(e){return r("title",e)},setUserCompDetails:function(t){return e.setUserCompDetails(t)}};this.ctrl.setComp(o,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,r=function(){return t.destroyBean(e)};this.isAlive()?(this.getGui().appendChild(e.getGui()),this.addDestroyFunc(r),this.ctrl.setDragSource(e.getGui())):r()},t.TEMPLATE='
\n \n
',v([Object(i.a)("userComponentFactory")],t.prototype,"userComponentFactory",void 0),v([Object(u.b)("eResize")],t.prototype,"eResize",void 0),v([i.e],t.prototype,"postConstruct",null),t}(p.a),m=r(134),b=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),w=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e.COLUMN_GROUP="group",e.COLUMN="column",e.FLOATING_FILTER="filter"}(n||(n={}));var C=function(e){function t(t){var r=e.call(this)||this;r.headerComps={};var o=t.getType()==n.COLUMN_GROUP?"ag-header-row-column-group":t.getType()==n.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return r.setTemplate('
'),r.ctrl=t,r}return b(t,e),t.prototype.init=function(){var e=this,t={setTransform:function(t){return e.getGui().style.transform=t},setHeight:function(t){return e.getGui().style.height=t},setTop:function(t){return e.getGui().style.top=t},setHeaderCtrls:function(t){return e.setHeaderCtrls(t)},setWidth:function(t){return e.getGui().style.width=t},setAriaRowIndex:function(t){return Object(a.setAriaRowIndex)(e.getGui(),t)}};this.ctrl.setComp(t)},t.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},t.prototype.setHeaderCtrls=function(e){var t=this;if(this.isAlive()){var r=this.headerComps;if(this.headerComps={},e.forEach((function(e){var o=e.getInstanceId(),n=r[o];delete r[o],null==n&&(n=t.createHeaderComp(e),t.getGui().appendChild(n.getGui())),t.headerComps[o]=n})),Object(l.iterateObject)(r,(function(e,r){t.getGui().removeChild(r.getGui()),t.destroyBean(r)})),this.gridOptionsWrapper.isEnsureDomOrder()){var o=Object(l.getAllValuesInObject)(this.headerComps);o.sort((function(e,t){return e.getCtrl().getColumnGroupChild().getLeft()-t.getCtrl().getColumnGroupChild().getLeft()}));var n=o.map((function(e){return e.getGui()}));Object(s.setDomChildOrder)(this.getGui(),n)}}},t.prototype.createHeaderComp=function(e){var t;switch(this.ctrl.getType()){case n.COLUMN_GROUP:t=new y(e);break;case n.FLOATING_FILTER:t=new m.a(e);break;default:t=new h(e)}return this.createBean(t),t.setParentComponent(this),t},w([i.e],t.prototype,"init",null),w([i.g],t.prototype,"destroyHeaderCtrls",null),t}(c.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var o,n=r(88),i=r(5),a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(t,r,o){var n=e.call(this,t,r)||this;return n.className=o,n}return a(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},t.prototype.onValueChange=function(e){var r=this;return this.addManagedListener(this,t.EVENT_CHANGED,(function(){return e(r.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return Object(i.setFixedWidth)(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,r){return this.value===e||(this.previousValue=this.value,this.value=e,r||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.EVENT_CHANGED="valueChange",t}(n.a)},function(e,t,r){"use strict";function o(e,t){return e.toString().padStart(t,"0")}function n(e,t){for(var r=[],o=e;o<=t;o++)r.push(o);return r}function i(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function a(e){return"string"==typeof e&&(e=parseInt(e,10)),"number"==typeof e?Math.floor(e):null}function s(e,t){for(var r="",o=0;o>>=8;return r}function l(e,t,r){return"number"!=typeof e?"":c(Math.round(100*e)/100,t,r)}function c(e,t,r){return"number"!=typeof e?"":e.toString().replace(".",r).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+t)}function u(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)}r.r(t),r.d(t,"padStartWidthZeros",(function(){return o})),r.d(t,"createArrayOfNumbers",(function(){return n})),r.d(t,"isNumeric",(function(){return i})),r.d(t,"cleanNumber",(function(){return a})),r.d(t,"decToHex",(function(){return s})),r.d(t,"formatNumberTwoDecimalPlacesAndCommas",(function(){return l})),r.d(t,"formatNumberCommas",(function(){return c})),r.d(t,"sum",(function(){return u}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return V}));var o,n=r(4),i=r(10),a=r(59),s=r(2),l=r(11),c=function(){function e(e,t){this.beans=e,this.cellCtrl=t}return e.prototype.setComp=function(e,t){this.cellComp=e,this.eGui=t,this.onRangeSelectionChanged()},e.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected",0!==this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),Object(l.setAriaSelected)(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(),r=!t&&e.top,o=!t&&e.right,n=!t&&e.bottom,i=!t&&e.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",r),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",o),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",i)},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 Object(i.includes)([a.a.DIMENSION,a.a.VALUE],e.type)}))},e.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},e.prototype.getRangeBorders=function(){var e,t,r=this,o=this.beans.gridOptionsWrapper.isEnableRtl(),n=!1,i=!1,a=!1,s=!1,l=this.cellCtrl.getCellPosition().column,c=this.beans,u=c.rangeService,p=c.columnModel;o?(e=p.getDisplayedColAfter(l),t=p.getDisplayedColBefore(l)):(e=p.getDisplayedColBefore(l),t=p.getDisplayedColAfter(l));var d=u.getCellRanges().filter((function(e){return u.isCellInSpecificRange(r.cellCtrl.getCellPosition(),e)}));e||(s=!0),t||(i=!0);for(var g=0;g1&&o.intersectLastRange(!0);var s=this.cellCtrl.createEvent(e,n.a.EVENT_CELL_CLICKED);r.dispatchEvent(s);var l=this.column.getColDef();l.onCellClicked&&window.setTimeout((function(){return l.onCellClicked(s)}),0),(i.isSingleClickEdit()||l.singleClickEdit)&&!i.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!Object(b.isIOSUserAgent)()||Object(C.isEventSupported)("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(),r=this.cellCtrl.createEvent(e,n.a.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(r),"function"==typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(r)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit(null,null,e)},t.prototype.onMouseDown=function(e){var t=e.ctrlKey,r=e.metaKey,o=e.shiftKey,i=e.target,a=this.beans,s=a.eventService,l=a.rangeService;if(!this.isRightClickInExistingRange(e)){var c=l&&0!=l.getCellRanges().length;if(!o||!c){var u=(Object(b.isBrowserEdge)()||Object(b.isBrowserSafari)())&&!this.cellCtrl.isEditing()&&!Object(w.isFocusableFormField)(i);this.cellCtrl.focusCell(u)}if(o&&c&&e.preventDefault(),!this.containsWidget(i)){if(l){var p=this.cellCtrl.getCellPosition();if(o)l.extendLatestRangeToCell(p);else{var d=t||r;l.setRangeToCell(p,d)}}s.dispatchEvent(this.cellCtrl.createEvent(e,n.a.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeService;if(t&&(t.isCellInAnyRange(this.cellCtrl.getCellPosition())&&2===e.button))return!0;return!1},t.prototype.containsWidget=function(e){return Object(w.isElementChildOfClass)(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,n.a.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,n.a.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(),r=t.contains(e.target),o=t.contains(e.relatedTarget);return r&&o},t.prototype.destroy=function(){},t}(O.a),x=r(8),R=r(44),T=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),A=function(e){function t(t,r,o,n,i){var a=e.call(this)||this;return a.cellCtrl=t,a.beans=r,a.rowNode=n,a.rowCtrl=i,a}return T(t,e),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var t=e.key;switch(t){case x.a.ENTER:this.onEnterKeyDown(e);break;case x.a.F2:this.onF2KeyDown(e);break;case x.a.ESCAPE:this.onEscapeKeyDown(e);break;case x.a.TAB:this.onTabKeyDown(e);break;case x.a.BACKSPACE:case x.a.DELETE:this.onBackspaceOrDeleteKeyPressed(t,e);break;case x.a.DOWN:case x.a.UP:case x.a.RIGHT:case x.a.LEFT:this.onNavigationKeyPressed(e,t)}},t.prototype.onNavigationKeyPressed=function(e,t){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,t,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var t=this.beans.rangeService.extendLatestRangeInDirection(e);t&&this.beans.navigationService.ensureCellVisible(t)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e,t){var r=this.cellCtrl,o=this.beans,n=this.rowNode,i=o.gridOptionsWrapper,a=o.rangeService,s=o.eventService;r.isEditing()||(s.dispatchEvent({type:p.a.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),Object(R.isDeleteKey)(e,i.isEnableCellEditingOnBackspace())?a&&i.isEnableRangeSelection()?a.clearCellRangeCellValues():r.isCellEditable()&&n.setDataValue(r.getColumn(),null,"cellKeyboardListenerFeature"):r.startRowOrCellEdit(e,void 0,t),s.dispatchEvent({type:p.a.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.navigationService.navigateToNextCell(null,x.a.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(x.a.ENTER,void 0,e),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(x.a.F2,void 0,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.onKeyPress=function(e){if(!(e.target!==this.eGui)&&!this.cellCtrl.isEditing()){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):Object(R.isEventFromPrintableCharacter)(e)&&(this.cellCtrl.startRowOrCellEdit(null,t,e),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){var t=this.beans.gridOptionsWrapper;if(!this.cellCtrl.isEditing()&&t.isRowSelection()){var r=this.rowNode.isSelected(),o=!r;if(o||!t.isSuppressRowDeselection()){var n=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),i=this.rowNode.setSelectedParams({newValue:o,rangeSelect:e.shiftKey,groupSelectsFiltered:n});void 0===r&&0===i&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:n})}}e.preventDefault()},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(u.a),P=r(77),_=r(15),D=r(1),M=r(23),N=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),I=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},L=function(e){function t(t,r,o,n){var i=e.call(this,'
')||this;return i.rowNode=t,i.column=r,i.beans=o,i.eCell=n,i}return N(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(Object(M.createIconNoSpan)("rowDrag",this.beans.gridOptionsWrapper,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,r=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);r?r({rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):function(){try{var r=JSON.stringify(t.rowNode.data);e.dataTransfer.setData("application/json",r),e.dataTransfer.setData("text/plain",r)}catch(e){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},I([D.e],t.prototype,"postConstruct",null),t}(_.a),k=r(13),F=r(73),G=r(14),j=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),z=function(){return(z=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.execute=function(e){var t=n._.missingOrEmpty(this.columnModel.getValueColumns()),r=!this.gridOptionsWrapper.getGroupRowAggFunc(),o=e.changedPath&&e.changedPath.isActive();if(!(t&&r&&o)){var i=this.createAggDetails(e);this.recursivelyCreateAggData(i)}},t.prototype.createAggDetails=function(e){var t=this.columnModel.isPivotActive(),r=this.columnModel.getValueColumns(),o=t?this.columnModel.getPivotColumns():[];return{changedPath:e.changedPath,valueColumns:r,pivotColumns:o}},t.prototype.recursivelyCreateAggData=function(e){var t=this;this.filteredOnly=!this.gridOptionsWrapper.isSuppressAggFilteredOnly();e.changedPath.forEachChangedNodeDepthFirst((function(r){if(!r.hasChildren())r.aggData&&r.setAggData(null);else{if(-1===r.level){var o=!t.columnModel.isPivotMode();if(t.gridOptionsWrapper.isSuppressAggAtRootLevel()&&o)return}t.aggregateRowNode(r,e)}}),!0)},t.prototype.aggregateRowNode=function(e,t){var r,o=0===t.valueColumns.length,n=0===t.pivotColumns.length,i=this.gridOptionsWrapper.getGroupRowAggFunc();i?r=i({nodes:e.childrenAfterFilter}):r=o?null:n?this.aggregateRowNodeUsingValuesOnly(e,t):this.aggregateRowNodeUsingValuesAndPivot(e);e.setAggData(r),e.sibling&&e.sibling.setAggData(r)},t.prototype.aggregateRowNodeUsingValuesAndPivot=function(e){var t=this,r={},o=this.pivotStage.getPivotColumnDefs();return o.filter((function(e){return!n._.exists(e.pivotTotalColumnIds)})).forEach((function(o){var n,i=o.pivotKeys||[],a=o.pivotValueColumn,s=o.colId;n=e.leafGroup?t.getValuesFromMappedSet(e.childrenMapped,i,a):t.getValuesPivotNonLeaf(e,s),r[s]=t.aggregateValues(n,a.getAggFunc(),a,e)})),o.filter((function(e){return n._.exists(e.pivotTotalColumnIds)})).forEach((function(o){var n=[],i=o.pivotValueColumn,a=o.pivotTotalColumnIds,s=o.colId;a&&a.length&&(a.forEach((function(e){n.push(r[e])})),r[s]=t.aggregateValues(n,i.getAggFunc(),i,e))})),r},t.prototype.aggregateRowNodeUsingValuesOnly=function(e,t){var r=this,o={},n=t.changedPath.isActive()?t.changedPath.getValueColumnsForNode(e,t.valueColumns):t.valueColumns,i=t.changedPath.isActive()?t.changedPath.getNotValueColumnsForNode(e,t.valueColumns):null,a=this.getValuesNormal(e,n),s=e.aggData;return n.forEach((function(t,n){o[t.getId()]=r.aggregateValues(a[n],t.getAggFunc(),t,e)})),i&&s&&i.forEach((function(e){o[e.getId()]=s[e.getId()]})),o},t.prototype.getValuesPivotNonLeaf=function(e,t){var r=[];return e.childrenAfterFilter.forEach((function(e){var o=e.aggData[t];r.push(o)})),r},t.prototype.getValuesFromMappedSet=function(e,t,r){var o=this,n=e;if(t.forEach((function(e){return n=n?n[e]:null})),!n)return[];var i=[];return n.forEach((function(e){var t=o.valueService.getValue(r,e);i.push(t)})),i},t.prototype.getValuesNormal=function(e,t){var r=[];t.forEach((function(){return r.push([])}));for(var o=t.length,n=this.filteredOnly?e.childrenAfterFilter:e.childrenAfterGroup,i=n.length,a=0;a=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},d=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},g=function(){for(var e=[],t=0;t=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},m=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},b=function(){for(var e=[],t=0;t=o)return this.buildMeasureCols(r);var l=i[e].getColDef(),c=this.headerNameComparator.bind(this,l.pivotComparator);if(1===s.length&&this.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn()&&e===o-1){var u=[];return n._.iterateObject(t,(function(e){var t=b(r,[e]);u.push(v(v({},a.createColDef(s[0],e,t)),{columnGroupShow:"open"}))})),u.sort(c),u}var p=[];return n._.iterateObject(t,(function(t,n){var s=b(r,[t]);p.push({children:a.recursiveBuildGroup(e+1,n,s,o,i),headerName:t,pivotKeys:s,columnGroupShow:"open",groupId:a.generateColumnGroupId(s)})})),p.sort(c),p},t.prototype.buildMeasureCols=function(e){var t=this,r=this.columnModel.getValueColumns();return 0===r.length?[this.createColDef(null,"-",e)]:r.map((function(r){var o=t.columnModel.getDisplayNameForColumn(r,"header");return v(v({},t.createColDef(r,o,e)),{columnGroupShow:"open"})}))},t.prototype.addExpandablePivotGroups=function(e,t){var r=this;if(!this.gridOptionsWrapper.isSuppressExpandablePivotGroups()&&!this.gridOptionsWrapper.getPivotColumnGroupTotals()){var o=function(e,t,n){var i=e;if(i.children){var a=new Map;i.children.forEach((function(e){o(e,t,a)}));var s=!i.children.some((function(e){return e.children}));r.columnModel.getValueColumns().forEach((function(o){var n=r.columnModel.getDisplayNameForColumn(o,"header"),i=r.createColDef(o,n,e.pivotKeys);(i.pivotTotalColumnIds=a.get(o.getColId()),i.columnGroupShow="closed",i.aggFunc=o.getAggFunc(),s)||(e.children.push(i),t.push(i))})),r.merge(n,a)}else{var l=e;if(!l.pivotValueColumn)return;var c=l.pivotValueColumn.getColId(),u=n.has(c)?n.get(c):[];u.push(l.colId),n.set(c,u)}};e.forEach((function(e){o(e,t,new Map)}))}},t.prototype.addPivotTotalsToGroups=function(e,t){var r=this;if(this.gridOptionsWrapper.getPivotColumnGroupTotals()){var o="after"===this.gridOptionsWrapper.getPivotColumnGroupTotals(),n=this.columnModel.getValueColumns(),i=n.map((function(e){return e.getAggFunc()}));if(i&&!(i.length<1)&&this.sameAggFuncs(i)){var a=n[0];e.forEach((function(e){r.recursivelyAddPivotTotal(e,t,a,o)}))}}},t.prototype.recursivelyAddPivotTotal=function(e,t,r,o){var n=this,i=e;if(!i.children){var a=e;return a.colId?[a.colId]:null}var s=[];if(i.children.forEach((function(e){var i=n.recursivelyAddPivotTotal(e,t,r,o);i&&(s=s.concat(i))})),i.children.length>1){var l=this.gridOptionsWrapper.getLocaleTextFunc()("pivotColumnGroupTotals","Total"),c=this.createColDef(r,l,e.pivotKeys,!0);c.pivotTotalColumnIds=s,c.aggFunc=r.getAggFunc();var u=e.children;o?u.push(c):u.unshift(c),t.push(c)}return s},t.prototype.addRowGroupTotals=function(e,t,r){var o=this;if(this.gridOptionsWrapper.getPivotRowTotals())for(var n="after"===this.gridOptionsWrapper.getPivotRowTotals(),i=n?r.slice():r.slice().reverse(),a=function(r){var a=i[r],l=[];e.forEach((function(e){l=l.concat(o.extractColIdsForValueColumn(e,a))}));var c=i.length>1||!s.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn();s.createRowGroupTotal(e,t,a,l,n,c)},s=this,l=0;lr.headerName?1:0:0},t.prototype.merge=function(e,t){t.forEach((function(t,r,o){var n=e.has(r)?e.get(r):[],i=b(n,t);e.set(r,i)}))},t.prototype.generateColumnGroupId=function(e){return"pivotGroup_"+this.columnModel.getPivotColumns().map((function(e){return e.getColId()})).join("-")+"_"+e.join("-")},t.prototype.generateColumnId=function(e,t){return"pivot_"+this.columnModel.getPivotColumns().map((function(e){return e.getColId()})).join("-")+"_"+e.join("-")+"_"+t},t.PIVOT_ROW_TOTAL_PREFIX="PivotRowTotal_",y([Object(n.Autowired)("columnModel")],t.prototype,"columnModel",void 0),t=r=y([Object(n.Bean)("pivotColDefService")],t)}(n.BeanStub),C=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),O=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.uniqueValues={},t}return C(t,e),t.prototype.execute=function(e){var t=e.rowNode,r=e.changedPath;this.columnModel.isPivotActive()?this.executePivotOn(t,r):this.executePivotOff(r)},t.prototype.executePivotOff=function(e){this.aggregationColumnsHashLastTime=null,this.uniqueValues={},this.columnModel.isSecondaryColumnsPresent()&&(this.columnModel.setSecondaryColumns(null,"rowModelUpdated"),e&&e.setInactive())},t.prototype.executePivotOn=function(e,t){var r=this.bucketUpRowNodes(e),o=this.setUniqueValues(r),n=this.columnModel.getValueColumns(),i=n.map((function(e){return e.getId()+"-"+e.getColDef().headerName})).join("#"),a=n.map((function(e){return e.getAggFunc().toString()})).join("#"),s=this.aggregationColumnsHashLastTime!==i,l=this.aggregationFuncsHashLastTime!==a;this.aggregationColumnsHashLastTime=i,this.aggregationFuncsHashLastTime=a;var c=this.columnModel.getRowGroupColumns().map((function(e){return e.getId()})).join("#"),u=c!==this.groupColumnsHashLastTime;if(this.groupColumnsHashLastTime=c,o||s||u||l){var p=this.pivotColDefService.createPivotColumnDefs(this.uniqueValues),d=p.pivotColumnGroupDefs,g=p.pivotColumnDefs;this.pivotColumnDefs=g,this.columnModel.setSecondaryColumns(d,"rowModelUpdated"),t&&t.setInactive()}},t.prototype.setUniqueValues=function(e){return!!(JSON.stringify(e)!==JSON.stringify(this.uniqueValues))&&(this.uniqueValues=e,!0)},t.prototype.bucketUpRowNodes=function(e){var t=this,r={},o=function(e){e.leafGroup?t.bucketRowNode(e,r):e.childrenAfterFilter.forEach((function(e){o(e)}))};return o(e),r},t.prototype.bucketRowNode=function(e,t){var r=this.columnModel.getPivotColumns();0===r.length?e.childrenMapped=null:e.childrenMapped=this.bucketChildren(e.childrenAfterFilter,r,0,t),e.sibling&&(e.sibling.childrenMapped=e.childrenMapped)},t.prototype.bucketChildren=function(e,t,r,o){var i=this,a={},s=t[r];if(e.forEach((function(e){var t=i.valueService.getKeyForNode(s,e);n._.missing(t)&&(t=""),o[t]||(o[t]={}),a[t]||(a[t]=[]),a[t].push(e)})),r===t.length-1)return a;var l={};return n._.iterateObject(a,(function(e,n){l[e]=i.bucketChildren(n,t,r+1,o[e])})),l},t.prototype.getPivotColumnDefs=function(){return this.pivotColumnDefs},O([Object(n.Autowired)("valueService")],t.prototype,"valueService",void 0),O([Object(n.Autowired)("columnModel")],t.prototype,"columnModel",void 0),O([Object(n.Autowired)("pivotColDefService")],t.prototype,"pivotColDefService",void 0),t=O([Object(n.Bean)("pivotStage")],t)}(n.BeanStub),E=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),x=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},R="undefined"==typeof BigInt?null:BigInt,T=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.aggFuncsMap={},t.initialised=!1,t}var r;return E(t,e),r=t,t.prototype.init=function(){this.initialised||(this.initialiseWithDefaultAggregations(),this.addAggFuncs(this.gridOptionsWrapper.getAggFuncs()))},t.prototype.initialiseWithDefaultAggregations=function(){this.aggFuncsMap[r.AGG_SUM]=A,this.aggFuncsMap[r.AGG_FIRST]=P,this.aggFuncsMap[r.AGG_LAST]=_,this.aggFuncsMap[r.AGG_MIN]=D,this.aggFuncsMap[r.AGG_MAX]=M,this.aggFuncsMap[r.AGG_COUNT]=N,this.aggFuncsMap[r.AGG_AVG]=I,this.initialised=!0},t.prototype.isAggFuncPossible=function(e,t){var r=this.getFuncNames(e),o=n._.includes(r,t),i=n._.exists(this.aggFuncsMap[t]);return o&&i},t.prototype.getDefaultAggFunc=function(e){var t=e.getColDef().defaultAggFunc;if(n._.exists(t)&&this.isAggFuncPossible(e,t))return t;if(this.isAggFuncPossible(e,r.AGG_SUM))return r.AGG_SUM;var o=this.getFuncNames(e);return n._.existsAndNotEmpty(o)?o[0]:null},t.prototype.addAggFuncs=function(e){n._.iterateObject(e,this.addAggFunc.bind(this))},t.prototype.addAggFunc=function(e,t){this.init(),this.aggFuncsMap[e]=t},t.prototype.getAggFunc=function(e){return this.init(),this.aggFuncsMap[e]},t.prototype.getFuncNames=function(e){var t=e.getColDef().allowedAggFuncs;return null==t?Object.keys(this.aggFuncsMap).sort():t},t.prototype.clear=function(){this.aggFuncsMap={}},t.AGG_SUM="sum",t.AGG_FIRST="first",t.AGG_LAST="last",t.AGG_MIN="min",t.AGG_MAX="max",t.AGG_COUNT="count",t.AGG_AVG="avg",x([n.PostConstruct],t.prototype,"init",null),t=r=x([Object(n.Bean)("aggFuncService")],t)}(n.BeanStub);function A(e){for(var t=e.values,r=null,o=0;o0?e.values[0]:null}function _(e){return e.values.length>0?n._.last(e.values):null}function D(e){for(var t=e.values,r=null,o=0;on)||(r=n)}return r}function M(e){for(var t=e.values,r=null,o=0;o0&&(u=R?i/("number"==typeof i?a:R(a)):i/a);var p=null===(r=null===(t=e.rowNode)||void 0===t?void 0:t.aggData)||void 0===r?void 0:r[null===(o=e.column)||void 0===o?void 0:o.getColId()];return p&&p.count===a&&p.value===u?p:{count:a,value:u,toString:function(){return"number"==typeof this.value||"bigint"==typeof this.value?this.value.toString():""},toNumber:function(){return this.value}}}var L=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),k=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},F=function(e){function t(t,r,o,n,i){var a=e.call(this)||this;return a.column=t,a.dragSourceDropTarget=r,a.ghost=o,a.dropZonePurpose=n,a.horizontal=i,a.popupShowing=!1,a}return L(t,e),t.prototype.init=function(){var e=this;this.setTemplate(t.TEMPLATE);var r=this.getGui(),o=this.gridOptionsWrapper.isFunctionsReadOnly();this.addElementClasses(r),this.addElementClasses(this.eDragHandle,"drag-handle"),this.addElementClasses(this.eText,"text"),this.addElementClasses(this.eButton,"button"),this.eDragHandle.appendChild(n._.createIconNoSpan("columnDrag",this.gridOptionsWrapper)),this.eButton.appendChild(n._.createIconNoSpan("cancel",this.gridOptionsWrapper)),this.setupSort(),this.displayName=this.columnModel.getDisplayNameForColumn(this.column,"columnDrop"),this.setupComponents(),this.ghost||o||this.addDragSource(),this.setupAria(),this.addManagedListener(this.column,n.Column.EVENT_SORT_CHANGED,(function(){e.setupAria()})),this.setupTooltip()},t.prototype.setupAria=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.getColumnAndAggFuncName(),r=t.name,o=t.aggFuncName,i=e("ariaDropZoneColumnComponentAggFuncSeperator"," of "),a={asc:e("ariaDropZoneColumnComponentSortAscending","ascending"),desc:e("ariaDropZoneColumnComponentSortDescending","descending")},s=this.column.getSort(),l=this.gridOptionsWrapper.isRowGroupPanelSuppressSort(),c=[[o&&""+o+i,r,this.isGroupingZone()&&!l&&s&&", "+a[s]].filter((function(e){return!!e})).join("")],u=this.gridOptionsWrapper.isFunctionsReadOnly();if(this.isAggregationZone()&&!u){var p=e("ariaDropZoneColumnValueItemDescription","Press ENTER to change the aggregation type");c.push(p)}if(this.isGroupingZone()&&this.column.getColDef().sortable&&!l){var d=e("ariaDropZoneColumnGroupItemDescription","Press ENTER to sort");c.push(d)}var g=e("ariaDropZoneColumnComponentDescription","Press DELETE to remove");c.push(g),n._.setAriaLabel(this.getGui(),c.join(". "))},t.prototype.setupTooltip=function(){var e=this,t=function(){var t=e.column.getColDef().headerTooltip;e.setTooltip(t)};t(),this.addManagedListener(this.eventService,n.Events.EVENT_NEW_COLUMNS_LOADED,t)},t.prototype.setupSort=function(){var e=this,t=this.column.getColDef().sortable,r=this.isGroupingZone();if(t&&r&&!this.gridOptionsWrapper.isRowGroupPanelSuppressSort()){this.eSortIndicator.setupSort(this.column,!0);var o=function(t){t.preventDefault();var r=e.gridOptionsWrapper.isMultiSortKeyCtrl()?t.ctrlKey||t.metaKey:t.shiftKey;e.sortController.progressSort(e.column,r,"uiColumnSorted")};this.addGuiEventListener("click",o),this.addGuiEventListener("keydown",(function(t){t.key===n.KeyCode.ENTER&&e.isGroupingZone()&&o(t)}))}},t.prototype.addDragSource=function(){var e=this,t={type:n.DragSourceType.ToolPanel,eElement:this.eDragHandle,defaultIconName:n.DragAndDropService.ICON_HIDE,getDragItem:function(){return e.createDragItem()},dragItemName:this.displayName,dragSourceDropTarget:this.dragSourceDropTarget};this.dragAndDropService.addDragSource(t,!0),this.addDestroyFunc((function(){return e.dragAndDropService.removeDragSource(t)}))},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.setupComponents=function(){this.setTextValue(),this.setupRemove(),this.ghost&&this.addCssClass("ag-column-drop-cell-ghost"),this.isAggregationZone()&&!this.gridOptionsWrapper.isFunctionsReadOnly()&&this.addGuiEventListener("click",this.onShowAggFuncSelection.bind(this))},t.prototype.setupRemove=function(){var e=this;n._.setDisplayed(this.eButton,!this.gridOptionsWrapper.isFunctionsReadOnly());var r={type:t.EVENT_COLUMN_REMOVE};this.addGuiEventListener("keydown",(function(t){var o=t.key===n.KeyCode.ENTER;t.key===n.KeyCode.DELETE&&(t.preventDefault(),e.dispatchEvent(r)),o&&e.isAggregationZone()&&!e.gridOptionsWrapper.isFunctionsReadOnly()&&(t.preventDefault(),e.onShowAggFuncSelection())})),this.addManagedListener(this.eButton,"click",(function(t){e.dispatchEvent(r),t.stopPropagation()}));var o=new n.TouchListener(this.eButton);this.addManagedListener(o,n.TouchListener.EVENT_TAP,(function(){e.dispatchEvent(r)})),this.addDestroyFunc(o.destroy.bind(o))},t.prototype.getColumnAndAggFuncName=function(){var e=this.displayName,t="";if(this.isAggregationZone()){var r=this.column.getAggFunc(),o="string"==typeof r?r:"agg";t=this.gridOptionsWrapper.getLocaleTextFunc()(o,o)}return{name:e,aggFuncName:t}},t.prototype.setTextValue=function(){var e=this.getColumnAndAggFuncName(),t=e.name,r=e.aggFuncName,o=this.isAggregationZone()?r+"("+t+")":t,i=n._.escapeString(o);this.eText.innerHTML=i},t.prototype.onShowAggFuncSelection=function(){var e=this;if(!this.popupShowing){this.popupShowing=!0;var t=new n.VirtualList("select-agg-func"),r=this.aggFuncService.getFuncNames(this.column),o=this.getGui(),i=t.getGui();t.setModel({getRow:function(e){return r[e]},getRowCount:function(){return r.length}}),this.getContext().createBean(t);var a=n._.loadTemplate('
');a.style.top="0px",a.style.left="0px",a.appendChild(i),a.style.width=o.clientWidth+"px";var s=this.gridOptionsWrapper.getLocaleTextFunc(),l=this.popupService.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:function(){e.destroyBean(t),e.popupShowing=!1,o.focus()},ariaLabel:s("ariaLabelAggregationFunction","Aggregation Function")});l&&t.setComponentCreator(this.createAggSelect.bind(this,l.hideFunc)),t.addGuiEventListener("keydown",(function(e){if(e.key===n.KeyCode.ENTER||e.key===n.KeyCode.SPACE){var r=t.getLastFocusedRow();if(null==r)return;var o=t.getComponentAt(r);o&&o.selectItem()}})),this.popupService.positionPopupUnderComponent({type:"aggFuncSelect",eventSource:o,ePopup:a,keepWithinBounds:!0,column:this.column}),t.refresh();var c=r.findIndex((function(t){return t===e.column.getAggFunc()}));-1===c&&(c=0),t.focusRow(c)}},t.prototype.createAggSelect=function(e,t){var r=this,o=this.gridOptionsWrapper.getLocaleTextFunc(),i=t.toString(),a=o(i,i);return new G((function(){if(e(),r.gridOptionsWrapper.isFunctionsPassive()){var o={type:n.Events.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST,columns:[r.column],aggFunc:t};r.eventService.dispatchEvent(o)}else r.columnModel.setColumnAggFunc(r.column,t,"toolPanelDragAndDrop")}),a)},t.prototype.addElementClasses=function(e,t){t=t?"-"+t:"";var r=this.horizontal?"horizontal":"vertical";e.classList.add("ag-column-drop-cell"+t,"ag-column-drop-"+r+"-cell"+t)},t.prototype.isAggregationZone=function(){return"aggregation"===this.dropZonePurpose},t.prototype.isGroupingZone=function(){return"rowGroup"===this.dropZonePurpose},t.EVENT_COLUMN_REMOVE="columnRemove",t.TEMPLATE='\n \n \n \n \n ',k([Object(n.Autowired)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),k([Object(n.Autowired)("columnModel")],t.prototype,"columnModel",void 0),k([Object(n.Autowired)("popupService")],t.prototype,"popupService",void 0),k([Object(n.Optional)("aggFuncService")],t.prototype,"aggFuncService",void 0),k([Object(n.Autowired)("sortController")],t.prototype,"sortController",void 0),k([Object(n.RefSelector)("eText")],t.prototype,"eText",void 0),k([Object(n.RefSelector)("eDragHandle")],t.prototype,"eDragHandle",void 0),k([Object(n.RefSelector)("eButton")],t.prototype,"eButton",void 0),k([Object(n.RefSelector)("eSortIndicator")],t.prototype,"eSortIndicator",void 0),k([n.PostConstruct],t.prototype,"init",null),t}(n.Component),G=function(e){function t(t,r){var o=e.call(this,'
')||this;return o.selectItem=t,o.getGui().innerText=r,o.addGuiEventListener("click",o.selectItem),o}return L(t,e),t}(n.Component),j=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),z=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},B=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},V=function(){for(var e=[],t=0;t
')||this;return i.horizontal=r,i.dropZonePurpose=o,i.state=t.STATE_NOT_DRAGGING,i.guiDestroyFunctions=[],i.childColumnComponents=[],i.resizeEnabled=!1,i.addElementClasses(i.getGui()),i.eColumnDropList=document.createElement("div"),i.addElementClasses(i.eColumnDropList,"list"),n._.setAriaRole(i.eColumnDropList,"listbox"),i}return j(t,e),t.prototype.isHorizontal=function(){return this.horizontal},t.prototype.toggleResizable=function(e){this.positionableFeature.setResizable(!!e&&{bottom:!0}),this.resizeEnabled=e},t.prototype.setBeans=function(e){this.beans=e},t.prototype.destroy=function(){this.destroyGui(),e.prototype.destroy.call(this)},t.prototype.destroyGui=function(){this.guiDestroyFunctions.forEach((function(e){return e()})),this.guiDestroyFunctions.length=0,this.childColumnComponents.length=0,n._.clearElement(this.getGui()),n._.clearElement(this.eColumnDropList)},t.prototype.init=function(e){this.params=e,this.createManagedBean(new n.ManagedFocusFeature(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.addManagedListener(this.beans.eventService,n.Events.EVENT_NEW_COLUMNS_LOADED,this.refreshGui.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"functionsReadOnly",this.refreshGui.bind(this)),this.setupDropTarget(),this.positionableFeature=new n.PositionableFeature(this.getGui(),{minHeight:100}),this.createManagedBean(this.positionableFeature),this.refreshGui(),n._.setAriaLabel(this.eColumnDropList,this.getAriaLabel())},t.prototype.handleKeyDown=function(e){var t=!this.horizontal,r=e.key===n.KeyCode.DOWN,o=e.key===n.KeyCode.UP;if(!t){var i=this.gridOptionsWrapper.isEnableRtl();r=!i&&e.key===n.KeyCode.RIGHT||i&&e.key===n.KeyCode.LEFT,o=!i&&e.key===n.KeyCode.LEFT||i&&e.key===n.KeyCode.RIGHT}if(r||o){var a=this.focusService.findNextFocusableElement(this.getFocusableElement(),!1,o);a&&(e.preventDefault(),a.focus())}},t.prototype.addElementClasses=function(e,t){t=t?"-"+t:"";var r=this.horizontal?"horizontal":"vertical";e.classList.add("ag-column-drop"+t,"ag-column-drop-"+r+t)},t.prototype.setupDropTarget=function(){this.dropTarget={getContainer:this.getGui.bind(this),getIconName:this.getIconName.bind(this),onDragging:this.onDragging.bind(this),onDragEnter:this.onDragEnter.bind(this),onDragLeave:this.onDragLeave.bind(this),onDragStop:this.onDragStop.bind(this),isInterestedIn:this.isInterestedIn.bind(this)},this.beans.dragAndDropService.addDropTarget(this.dropTarget)},t.prototype.isInterestedIn=function(e){return e===n.DragSourceType.HeaderCell||e===n.DragSourceType.ToolPanel},t.prototype.checkInsertIndex=function(e){var t=this.getNewInsertIndex(e);if(t<0)return!1;var r=t!==this.insertIndex;return r&&(this.insertIndex=t),r},t.prototype.getNewInsertIndex=function(e){var t=this,r=e.event,o=this.horizontal?r.clientX:r.clientY,n=this.childColumnComponents.map((function(e){return e.getGui().getBoundingClientRect()})),i=n.findIndex((function(e){return t.horizontal?e.right>o&&e.lefto}));if(-1===i){var a=this.beans.gridOptionsWrapper.isEnableRtl();return n.every((function(e){return o>(t.horizontal?e.right:e.bottom)}))?a&&this.horizontal?0:this.childColumnComponents.length:n.every((function(e){return o<(t.horizontal?e.left:e.top)}))?a&&this.horizontal?this.childColumnComponents.length:0:this.insertIndex}return this.insertIndex<=i?i+1:i},t.prototype.checkDragStartedBySelf=function(e){this.state===t.STATE_NOT_DRAGGING&&(this.state=t.STATE_REARRANGE_COLUMNS,this.potentialDndColumns=e.dragSource.getDragItem().columns||[],this.refreshGui(),this.checkInsertIndex(e),this.refreshGui())},t.prototype.onDragging=function(e){this.checkDragStartedBySelf(e),this.checkInsertIndex(e)&&this.refreshGui()},t.prototype.onDragEnter=function(e){var r=e.dragSource.getDragItem().columns||[];this.state=t.STATE_NEW_COLUMNS_IN;var o=r.filter(this.isColumnDroppable.bind(this));if(o.length>0){if(this.isRowGroupPanel()&&!this.gridOptionsWrapper.isSuppressRowGroupHidesColumns()&&!e.fromNudge){var n=e.dragSource.getDragItem().columns;this.setColumnsVisible(n,!1,"uiColumnDragged")}this.potentialDndColumns=o,this.checkInsertIndex(e),this.refreshGui()}},t.prototype.setColumnsVisible=function(e,t,r){if(void 0===r&&(r="api"),e){var o=e.filter((function(e){return!e.getColDef().lockVisible}));this.colModel.setColumnsVisible(o,t,r)}},t.prototype.isPotentialDndColumns=function(){return n._.existsAndNotEmpty(this.potentialDndColumns)},t.prototype.isRowGroupPanel=function(){return"rowGroup"===this.dropZonePurpose},t.prototype.onDragLeave=function(e){if(this.state===t.STATE_REARRANGE_COLUMNS){var r=e.dragSource.getDragItem().columns||[];this.removeColumns(r)}if(this.isPotentialDndColumns()){if(this.isRowGroupPanel()&&!this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()&&!e.fromNudge){var o=e.dragSource.getDragItem();this.setColumnsVisible(o.columns,!0,"uiColumnDragged")}this.potentialDndColumns=[],this.refreshGui()}this.state=t.STATE_NOT_DRAGGING},t.prototype.onDragStop=function(){if(this.isPotentialDndColumns()){var e=!1;this.state===t.STATE_NEW_COLUMNS_IN?(this.addColumns(this.potentialDndColumns),e=!0):e=this.rearrangeColumns(this.potentialDndColumns),this.potentialDndColumns=[],this.beans.gridOptionsWrapper.isFunctionsPassive()&&e||this.refreshGui()}this.state=t.STATE_NOT_DRAGGING},t.prototype.removeColumns=function(e){var t=this.getExistingColumns().filter((function(t){return!n._.includes(e,t)}));this.updateColumns(t)},t.prototype.addColumns=function(e){if(e){var t=this.getExistingColumns().slice(),r=e.filter((function(e){return t.indexOf(e)<0}));n._.insertArrayIntoArray(t,r,this.insertIndex),this.updateColumns(t)}},t.prototype.rearrangeColumns=function(e){var t=this.getNonGhostColumns().slice();return n._.insertArrayIntoArray(t,e,this.insertIndex),!n._.areEqual(t,this.getExistingColumns())&&(this.updateColumns(t),!0)},t.prototype.refreshGui=function(){var e=this.eColumnDropList.scrollTop,t=this.resizeEnabled,r=this.getFocusedItem(),o=this.focusService.findNextFocusableElement();o||(o=this.focusService.findNextFocusableElement(void 0,!1,!0)),this.toggleResizable(!1),this.destroyGui(),this.addIconAndTitleToGui(),this.addEmptyMessageToGui(),this.addColumnsToGui(),this.isHorizontal()||(this.eColumnDropList.scrollTop=e),t&&this.toggleResizable(t),this.restoreFocus(r,o)},t.prototype.getFocusedItem=function(){var e=this.getGui(),t=this.gridOptionsWrapper.getDocument().activeElement;return e.contains(t)?Array.from(e.querySelectorAll(".ag-column-drop-cell")).indexOf(t):-1},t.prototype.restoreFocus=function(e,t){var r=this.getGui(),o=Array.from(r.querySelectorAll(".ag-column-drop-cell"));if(-1!==e){0===o.length&&t.focus();var n=o[Math.min(o.length-1,e)];n&&n.focus()}},t.prototype.getNonGhostColumns=function(){var e=this,t=this.getExistingColumns();return this.isPotentialDndColumns()?t.filter((function(t){return!n._.includes(e.potentialDndColumns,t)})):t},t.prototype.addColumnsToGui=function(){var e=this,t=this.getNonGhostColumns().map((function(t){return e.createColumnComponent(t,!1)}));if(this.isPotentialDndColumns()){var r=this.potentialDndColumns.map((function(t){return e.createColumnComponent(t,!0)}));this.insertIndex>=t.length?t.push.apply(t,V(r)):t.splice.apply(t,V([this.insertIndex,0],r))}this.appendChild(this.eColumnDropList),t.forEach((function(t,r){r>0&&e.addArrow(e.eColumnDropList),e.eColumnDropList.appendChild(t.getGui())})),this.addAriaLabelsToComponents()},t.prototype.addAriaLabelsToComponents=function(){var e=this;this.childColumnComponents.forEach((function(t,r){var o=t.getGui();n._.setAriaPosInSet(o,r+1),n._.setAriaSetSize(o,e.childColumnComponents.length)}))},t.prototype.createColumnComponent=function(e,t){var r=this,o=new F(e,this.dropTarget,t,this.dropZonePurpose,this.horizontal);return o.addEventListener(F.EVENT_COLUMN_REMOVE,this.removeColumns.bind(this,[e])),this.beans.context.createBean(o),this.guiDestroyFunctions.push((function(){return r.destroyBean(o)})),t||this.childColumnComponents.push(o),o},t.prototype.addIconAndTitleToGui=function(){var e=this.params.icon,t=document.createElement("div");if(t.setAttribute("aria-hidden","true"),this.addElementClasses(t,"title-bar"),this.addElementClasses(e,"icon"),this.addOrRemoveCssClass("ag-column-drop-empty",this.isExistingColumnsEmpty()),t.appendChild(e),!this.horizontal){var r=document.createElement("span");this.addElementClasses(r,"title"),r.innerHTML=this.params.title,t.appendChild(r)}this.appendChild(t)},t.prototype.isExistingColumnsEmpty=function(){return 0===this.getExistingColumns().length},t.prototype.addEmptyMessageToGui=function(){if(this.isExistingColumnsEmpty()&&!this.isPotentialDndColumns()){var e=document.createElement("span");e.innerHTML=this.params.emptyMessage,this.addElementClasses(e,"empty-message"),this.eColumnDropList.appendChild(e)}},t.prototype.addArrow=function(e){if(this.horizontal){var t=this.beans.gridOptionsWrapper.isEnableRtl(),r=n._.createIconNoSpan(t?"smallLeft":"smallRight",this.beans.gridOptionsWrapper);this.addElementClasses(r,"cell-separator"),e.appendChild(r)}},t.STATE_NOT_DRAGGING="notDragging",t.STATE_NEW_COLUMNS_IN="newColumnsIn",t.STATE_REARRANGE_COLUMNS="rearrangeColumns",z([Object(n.Autowired)("columnModel")],t.prototype,"colModel",void 0),z([Object(n.Autowired)("focusService")],t.prototype,"focusService",void 0),t}(n.Component),H=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),U=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},K=function(e){function t(t){return e.call(this,t,"rowGroup")||this}return H(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.gridOptionsWrapper.getLocaleTextFunc(),r=t("rowGroupColumnsEmptyMessage","Drag here to set row groups"),o=t("groups","Row Groups");e.prototype.init.call(this,{dragAndDropIcon:n.DragAndDropService.ICON_GROUP,icon:n._.createIconNoSpan("rowGroupPanel",this.gridOptionsWrapper,null),emptyMessage:r,title:o}),this.addManagedListener(this.eventService,n.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.refreshGui.bind(this))},t.prototype.getAriaLabel=function(){return this.gridOptionsWrapper.getLocaleTextFunc()("ariaRowGroupDropZonePanelLabel","Row Groups")},t.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="rowGroupColumnsList",t},t.prototype.isColumnDroppable=function(e){return!(this.gridOptionsWrapper.isFunctionsReadOnly()||!e.isPrimary())&&(e.isAllowRowGroup()&&!e.isRowGroupActive())},t.prototype.updateColumns=function(e){if(this.gridOptionsWrapper.isFunctionsPassive()){var t={type:n.Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,columns:e};this.eventService.dispatchEvent(t)}else this.columnModel.setRowGroupColumns(e,"toolPanelUi")},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?n.DragAndDropService.ICON_GROUP:n.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.getExistingColumns=function(){return this.columnModel.getRowGroupColumns()},U([Object(n.Autowired)("columnModel")],t.prototype,"columnModel",void 0),U([Object(n.Autowired)("loggerFactory")],t.prototype,"loggerFactory",void 0),U([Object(n.Autowired)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),U([n.PostConstruct],t.prototype,"passBeansUp",null),t}(W),Y=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),X=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},q=function(e){function t(t){return e.call(this,t,"pivot")||this}return Y(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.gridOptionsWrapper.getLocaleTextFunc(),r=t("pivotColumnsEmptyMessage","Drag here to set column labels"),o=t("pivots","Column Labels");e.prototype.init.call(this,{dragAndDropIcon:n.DragAndDropService.ICON_GROUP,icon:n._.createIconNoSpan("pivotPanel",this.gridOptionsWrapper,null),emptyMessage:r,title:o}),this.addManagedListener(this.eventService,n.Events.EVENT_NEW_COLUMNS_LOADED,this.refresh.bind(this)),this.addManagedListener(this.eventService,n.Events.EVENT_COLUMN_PIVOT_CHANGED,this.refresh.bind(this)),this.addManagedListener(this.eventService,n.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.checkVisibility.bind(this)),this.refresh()},t.prototype.getAriaLabel=function(){return this.gridOptionsWrapper.getLocaleTextFunc()("ariaPivotDropZonePanelLabel","Column Labels")},t.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="pivotColumnsList",t},t.prototype.refresh=function(){this.checkVisibility(),this.refreshGui()},t.prototype.checkVisibility=function(){var e=this.columnModel.isPivotMode();if(this.isHorizontal())switch(this.gridOptionsWrapper.getPivotPanelShow()){case"always":this.setDisplayed(e);break;case"onlyWhenPivoting":var t=this.columnModel.isPivotActive();this.setDisplayed(e&&t);break;default:this.setDisplayed(!1)}else this.setDisplayed(e)},t.prototype.isColumnDroppable=function(e){return!(this.gridOptionsWrapper.isFunctionsReadOnly()||!e.isPrimary())&&(e.isAllowPivot()&&!e.isPivotActive())},t.prototype.updateColumns=function(e){if(this.gridOptionsWrapper.isFunctionsPassive()){var t={type:n.Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,columns:e};this.eventService.dispatchEvent(t)}else this.columnModel.setPivotColumns(e,"toolPanelUi")},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?n.DragAndDropService.ICON_PIVOT:n.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.getExistingColumns=function(){return this.columnModel.getPivotColumns()},X([Object(n.Autowired)("columnModel")],t.prototype,"columnModel",void 0),X([Object(n.Autowired)("loggerFactory")],t.prototype,"loggerFactory",void 0),X([Object(n.Autowired)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),X([n.PostConstruct],t.prototype,"passBeansUp",null),t}(W),Q=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),Z=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},J=function(e){function t(){return e.call(this)||this}return Q(t,e),t.prototype.postConstruct=function(){this.setGui(this.createNorthPanel()),this.addManagedListener(this.eventService,n.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,n.Events.EVENT_NEW_COLUMNS_LOADED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"rowGroupPanelShow",this.onRowGroupChanged.bind(this)),this.onRowGroupChanged()},t.prototype.createNorthPanel=function(){var e=document.createElement("div"),t=this.onDropPanelVisible.bind(this);return e.classList.add("ag-column-drop-wrapper"),n._.setAriaRole(e,"presentation"),this.rowGroupComp=new K(!0),this.createManagedBean(this.rowGroupComp),this.pivotComp=new q(!0),this.createManagedBean(this.pivotComp),e.appendChild(this.rowGroupComp.getGui()),e.appendChild(this.pivotComp.getGui()),this.addManagedListener(this.rowGroupComp,n.Component.EVENT_DISPLAYED_CHANGED,t),this.addManagedListener(this.pivotComp,n.Component.EVENT_DISPLAYED_CHANGED,t),this.onDropPanelVisible(),e},t.prototype.onDropPanelVisible=function(){var e=this.rowGroupComp.isDisplayed()&&this.pivotComp.isDisplayed();this.rowGroupComp.addOrRemoveCssClass("ag-column-drop-horizontal-half-width",e),this.pivotComp.addOrRemoveCssClass("ag-column-drop-horizontal-half-width",e)},t.prototype.onRowGroupChanged=function(){if(this.rowGroupComp){var e=this.gridOptionsWrapper.getRowGroupPanelShow();if(e===n.Constants.ALWAYS)this.rowGroupComp.setDisplayed(!0);else if(e===n.Constants.ONLY_WHEN_GROUPING){var t=!this.columnModel.isRowGroupEmpty();this.rowGroupComp.setDisplayed(t)}else this.rowGroupComp.setDisplayed(!1)}},Z([Object(n.Autowired)("columnModel")],t.prototype,"columnModel",void 0),Z([n.PostConstruct],t.prototype,"postConstruct",null),t}(n.Component),$=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),ee=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $(t,e),t.prototype.execute=function(e){var t=this,r=this.columnModel.isPivotMode(),o=this.filterManager.isAggregateFilterPresent(),n=this.gridOptionsWrapper.getGroupAggFiltering()||(r?function(e){return e.node.leafGroup}:function(e){return!e.node.group}),i=e.changedPath,a=function(e,r){void 0===r&&(r=!1),e.childrenAfterFilter&&(e.childrenAfterAggFilter=e.childrenAfterFilter,r&&e.childrenAfterAggFilter.forEach((function(e){return a(e,r)})),t.setAllChildrenCount(e)),e.sibling&&(e.sibling.childrenAfterAggFilter=e.childrenAfterAggFilter)};i.forEachChangedNodeDepthFirst(o?function(e){var r;e.childrenAfterAggFilter=(null===(r=e.childrenAfterFilter)||void 0===r?void 0:r.filter((function(e){var r;if(n({node:e})&&t.filterManager.doesRowPassAggregateFilters({rowNode:e}))return a(e,!0),!0;return null===(r=e.childrenAfterAggFilter)||void 0===r?void 0:r.length})))||null,t.setAllChildrenCount(e),e.sibling&&(e.sibling.childrenAfterAggFilter=e.childrenAfterAggFilter)}:a,!0)},t.prototype.setAllChildrenCountTreeData=function(e){var t=0;e.childrenAfterAggFilter.forEach((function(e){t++,t+=e.allChildrenCount})),e.setAllChildrenCount(t)},t.prototype.setAllChildrenCountGridGrouping=function(e){var t=0;e.childrenAfterAggFilter.forEach((function(e){e.group?t+=e.allChildrenCount:t++})),e.setAllChildrenCount(t)},t.prototype.setAllChildrenCount=function(e){e.hasChildren()?this.gridOptionsWrapper.isTreeData()?this.setAllChildrenCountTreeData(e):this.setAllChildrenCountGridGrouping(e):e.setAllChildrenCount(null)},ee([Object(n.Autowired)("filterManager")],t.prototype,"filterManager",void 0),ee([Object(n.Autowired)("columnModel")],t.prototype,"columnModel",void 0),t=ee([Object(n.Bean)("filterAggregatesStage")],t)}(n.BeanStub),re={moduleName:n.ModuleNames.RowGroupingModule,beans:[l,te,h,w,S,T],agStackComponents:[{componentName:"AgGridHeaderDropZones",componentClass:J}],dependantModules:[i.EnterpriseCoreModule]},oe=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),ne=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},ie=function(e){function t(t){return e.call(this,t,"aggregation")||this}return oe(t,e),t.prototype.passBeansUp=function(){e.prototype.setBeans.call(this,{gridOptionsWrapper:this.gridOptionsWrapper,eventService:this.eventService,context:this.getContext(),loggerFactory:this.loggerFactory,dragAndDropService:this.dragAndDropService});var t=this.gridOptionsWrapper.getLocaleTextFunc(),r=t("valueColumnsEmptyMessage","Drag here to aggregate"),o=t("values","Values");e.prototype.init.call(this,{dragAndDropIcon:n.DragAndDropService.ICON_AGGREGATE,icon:n._.createIconNoSpan("valuePanel",this.gridOptionsWrapper,null),emptyMessage:r,title:o}),this.addManagedListener(this.eventService,n.Events.EVENT_COLUMN_VALUE_CHANGED,this.refreshGui.bind(this))},t.prototype.getAriaLabel=function(){return this.gridOptionsWrapper.getLocaleTextFunc()("ariaValuesDropZonePanelLabel","Values")},t.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="valueColumnsList",t},t.prototype.getIconName=function(){return this.isPotentialDndColumns()?n.DragAndDropService.ICON_AGGREGATE:n.DragAndDropService.ICON_NOT_ALLOWED},t.prototype.isColumnDroppable=function(e){return!(this.gridOptionsWrapper.isFunctionsReadOnly()||!e.isPrimary())&&(e.isAllowValue()&&!e.isValueActive())},t.prototype.updateColumns=function(e){if(this.gridOptionsWrapper.isFunctionsPassive()){var t={type:n.Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,columns:e};this.eventService.dispatchEvent(t)}else this.columnModel.setValueColumns(e,"toolPanelUi")},t.prototype.getExistingColumns=function(){return this.columnModel.getValueColumns()},ne([Object(n.Autowired)("columnModel")],t.prototype,"columnModel",void 0),ne([Object(n.Autowired)("loggerFactory")],t.prototype,"loggerFactory",void 0),ne([Object(n.Autowired)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),ne([n.PostConstruct],t.prototype,"passBeansUp",null),t}(W)},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var o,n=r(7),i=r(41),a=r(5),s=r(11),l=r(2),c=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=function(e){function t(t,r,o,n){void 0===o&&(o="text"),void 0===n&&(n="input");var i=e.call(this,t,'\n
\n
\n \n
",r)||this;return i.inputType=o,i.displayFieldTag=n,i}return c(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+"-label"),this.eWrapper.classList.add(this.className+"-input-wrapper"),this.eInput.classList.add(this.className+"-input"),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var t=this.config,r=t.width,o=t.value;null!=r&&this.setWidth(r),null!=o&&this.setValue(o),this.addInputListeners()},t.prototype.refreshLabel=function(){Object(l.exists)(this.getLabel())?Object(s.setAriaLabelledBy)(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},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 Object(a.setElementWidth)(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 Object(a.addOrRemoveAttribute)(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return Object(s.setAriaLabel)(this.eInput,e),this},t.prototype.setDisabled=function(t){return Object(a.setDisabled)(this.eInput,t),e.prototype.setDisabled.call(this,t)},u([Object(n.b)("eLabel")],t.prototype,"eLabel",void 0),u([Object(n.b)("eWrapper")],t.prototype,"eWrapper",void 0),u([Object(n.b)("eInput")],t.prototype,"eInput",void 0),t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return x}));var o,n,i=r(3),a=r(6),s=r(22),l=r(4),c=r(26),u=r(16),p=r(17),d=r(11),g=r(5),h=r(28),f=r(13),v=r(2),y=r(30),m=r(43),b=r(73),w=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),C=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},O=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},S=function(){for(var e=[],t=0;t=0)}return!0},t.prototype.setAnimateFlags=function(e){if(!this.isSticky()&&e){var t=Object(v.exists)(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},t.prototype.isEditing=function(){return this.editingRow},t.prototype.stopRowEditing=function(e){this.stopEditing(e)},t.prototype.isFullWidth=function(){return this.rowType!==n.Normal},t.prototype.getRowType=function(){return this.rowType},t.prototype.refreshFullWidth=function(){var e=this,t=function(t,r){if(!t)return!0;var o=t.rowComp.getFullWidthCellRenderer();if(!o)return!1;if(!o.refresh)return!1;var n=e.createFullWidthParams(t.element,r);return o.refresh(n)},r=t(this.fullWidthGui,null),o=t(this.centerGui,null),n=t(this.leftGui,i.a.PINNED_LEFT),a=t(this.rightGui,i.a.PINNED_RIGHT);return r&&o&&n&&a},t.prototype.addListeners=function(){this.addManagedListener(this.rowNode,s.b.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,s.b.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,s.b.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,s.b.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,s.b.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,s.b.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,s.b.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,s.b.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,s.b.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,s.b.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,s.b.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,l.a.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,l.a.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,l.a.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,l.a.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,l.a.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,l.a.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,l.a.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,l.a.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},t.prototype.onColumnMoved=function(){this.updateColumnLists()},t.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,s.b.EVENT_ROW_INDEX_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,s.b.EVENT_CELL_CHANGED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellChanged(t)}))}))},t.prototype.onRowNodeDataChanged=function(e){this.getAllCellCtrls().forEach((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},t.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},t.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},t.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach((function(t){var r=e===s.a.Above,o=e===s.a.Below;t.rowComp.addOrRemoveCssClass("ag-row-highlight-above",r),t.rowComp.addOrRemoveCssClass("ag-row-highlight-below",o)}))},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(r){r.rowComp.addOrRemoveCssClass("ag-row-group",e),r.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&t),r.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!t),Object(d.setAriaExpanded)(r.element,e&&t)}))},t.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},t.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},t.prototype.getRowPosition=function(){return{rowPinned:Object(v.makeNull)(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 r=this.rowNode,o=this.beans.focusService.getFocusedCell(),n={rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:o&&o.column};this.beans.navigationService.navigateToNextCell(e,e.key,n,!0),e.preventDefault()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!Object(h.isStopPropagationForAgGrid)(e)){var t=this.allRowGuis.find((function(t){return t.element.contains(e.target)})),r=t?t.element:null,o=r===e.target,n=null;o||(n=this.beans.focusService.findNextFocusableElement(r,!1,e.shiftKey)),(this.isFullWidth()&&o||!n)&&this.beans.navigationService.onTabKeyDown(this,e)}},t.prototype.onFullWidthRowFocused=function(e){var t,r=this.rowNode,o=this.isFullWidth()&&e.rowIndex===r.rowIndex&&e.rowPinned==r.rowPinned,n=this.fullWidthGui?this.fullWidthGui.element:null===(t=this.centerGui)||void 0===t?void 0:t.element;n&&(n.classList.toggle("ag-full-width-focus",o),o&&n.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 r={list:[],map:{}};return e.list.forEach((function(e){e!==t&&(r.list.push(e),r.map[e.getInstanceId()]=e)})),r},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.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},t.prototype.createRowEventWithSource=function(e,t){var r=this.createRowEvent(e,t);return r.source=this,r},t.prototype.onRowDblClick=function(e){if(!Object(h.isStopPropagationForAgGrid)(e)){var t=this.createRowEventWithSource(l.a.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},t.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=Object(g.isElementChildOfClass)(e.target,"ag-row-drag",3),this.isFullWidth()){var t=this.rowNode,r=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:t.rowIndex,column:r.getAllDisplayedColumns()[0],rowPinned:t.rowPinned,forceBrowserFocus:!0})}},t.prototype.onRowClick=function(e){if(!(Object(h.isStopPropagationForAgGrid)(e)||this.lastMouseDownOnDragger)){var t=this.createRowEventWithSource(l.a.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var r=e.ctrlKey||e.metaKey,o=e.shiftKey;if(!(this.beans.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsWrapper.isRowSelection()||this.beans.gridOptionsWrapper.isSuppressRowClickSelection())){var n=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),i=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();if(this.rowNode.isSelected())n?this.rowNode.setSelectedParams({newValue:!1,event:e}):r?i&&this.rowNode.setSelectedParams({newValue:!1,event:e}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!o,rangeSelect:o,event:e});else{var a=!n&&!r;this.rowNode.setSelectedParams({newValue:!0,clearSelection:a,rangeSelect:o,event:e})}}}},t.prototype.setupDetailRowAutoHeight=function(e){var t=this;if(this.rowType===n.FullWidthDetail&&this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var r=function(){var r=e.clientHeight;if(null!=r&&r>0){t.beans.frameworkOverrides.setTimeout((function(){t.rowNode.setRowHeight(r),t.beans.clientSideRowModel?t.beans.clientSideRowModel.onRowHeightChanged():t.beans.serverSideRowModel&&t.beans.serverSideRowModel.onRowHeightChanged()}),0)}},o=this.beans.resizeObserverService.observeResize(e,r);this.addDestroyFunc(o),r()}},t.prototype.createFullWidthParams=function(e,t){var r=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(e,t,o,n){return r.addFullWidthRowDragging(e,t,o,n)}}},t.prototype.addFullWidthRowDragging=function(e,t,r,o){if(void 0===r&&(r=""),this.isFullWidth()){var n=new b.a((function(){return r}),this.rowNode,void 0,e,t,o);this.createManagedBean(n,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,r="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(e){e.rowComp.addOrRemoveCssClass(t,!0),e.rowComp.addOrRemoveCssClass(r,!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,r;if(void 0===e&&(e=!1),!this.stoppingRowEdit){var o=this.getAllCellCtrls(),n=this.editingRow;this.stoppingRowEdit=!0;var i=!1;try{for(var a=C(o),s=a.next();!s.done;s=a.next()){var c=s.value.stopEditing(e);n&&!e&&!i&&c&&(i=!0)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}if(i){var u=this.createRowEvent(l.a.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(u)}n&&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(l.a.EVENT_ROW_EDITING_STARTED):this.createRowEvent(l.a.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},t.prototype.startRowEditing=function(e,t,r,o){(void 0===e&&(e=null),void 0===t&&(t=null),void 0===r&&(r=null),void 0===o&&(o=null),this.editingRow)||this.getAllCellCtrls().reduce((function(n,i){var a=i===r;return a?i.startEditing(e,t,a,o):i.startEditing(null,null,a,o),!!n||i.isEditing()}),!1)&&this.setEditingRow(!0)},t.prototype.getAllCellCtrls=function(){return S(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list)},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(){var e=this.processStylesFromGridOptions();this.allRowGuis.forEach((function(t){return t.rowComp.setUserStyles(e)}))},t.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"==typeof e)return e(this.rowNode)},t.prototype.getPinnedForContainer=function(e){return e===c.c.LEFT?i.a.PINNED_LEFT:e===c.c.RIGHT?i.a.PINNED_RIGHT:null},t.prototype.getInitialRowClasses=function(e){var t=this.getPinnedForContainer(e),r={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeRowIn,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(r)},t.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!=typeof e){var t,r=this.beans.gridOptionsWrapper.getRowStyleFunc();if(r)t=r({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex});return Object.assign({},e,t)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},t.prototype.onRowSelected=function(){var e=this,t=!!this.rowNode.isSelected();this.allRowGuis.forEach((function(r){r.rowComp.addOrRemoveCssClass("ag-row-selected",t),Object(d.setAriaSelected)(r.element,!!t||void 0);var o=e.createAriaLabel();Object(d.setAriaLabel)(r.element,null==o?"":o)}))},t.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!e||!this.beans.gridOptionsWrapper.isSuppressRowDeselection())return this.beans.gridOptionsWrapper.getLocaleTextFunc()(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(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,s.b.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||e.classList.add("ag-row-hover")})),this.addManagedListener(this.rowNode,s.b.EVENT_MOUSE_LEAVE,(function(){e.classList.remove("ag-row-hover")})))},t.prototype.roundRowTopToBounds=function(e){var t=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),r=this.applyPaginationOffset(t.top,!0)-100,o=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(r,e),o)},t.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},t.prototype.onRowHeightChanged=function(){if(null!=this.rowNode.rowHeight){var e=this.rowNode.rowHeight,t=this.beans.gridOptionsWrapper.getDefaultRowHeight(),r=this.beans.gridOptionsWrapper.isGetRowHeightFunction()?this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height:void 0,o=r?Math.min(t,r)-2+"px":void 0;this.allRowGuis.forEach((function(t){t.element.style.height=e+"px",o&&t.element.style.setProperty("--ag-line-height",o)}))}},t.prototype.addEventListener=function(t,r){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=l.a.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved is now called "+l.a.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,r)},t.prototype.removeEventListener=function(t,r){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=l.a.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+l.a.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,r)},t.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var t=this.createRowEvent(l.a.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;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(){var e=this;this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass("ag-row-focus",e.rowFocused),t.rowComp.addOrRemoveCssClass("ag-row-no-focus",!e.rowFocused)}))},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()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},t.prototype.setRowTop=function(e){if(!this.printLayout&&Object(v.exists)(e)){var t=this.applyPaginationOffset(e),r=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+"px";this.setRowTopStyle(r)}},t.prototype.getInitialRowTop=function(){return this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.getInitialRowTopShared():void 0},t.prototype.getInitialTransform=function(){return this.beans.gridOptionsWrapper.isSuppressRowTransform()?void 0:"translateY("+this.getInitialRowTopShared()+")"},t.prototype.getInitialRowTopShared=function(){if(this.printLayout)return"";var e;if(this.isSticky())e=this.rowNode.stickyRowTop;else{var t=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,r=this.applyPaginationOffset(t);e=this.rowNode.isRowPinned()?r:this.beans.rowContainerHeightService.getRealPixelPosition(r)}return e+"px"},t.prototype.setRowTopStyle=function(e){var t=this.beans.gridOptionsWrapper.isSuppressRowTransform();this.allRowGuis.forEach((function(r){return t?r.rowComp.setTop(e):r.rowComp.setTransform("translateY("+e+")")}))},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getCellCtrl=function(e){var t=null;return this.getAllCellCtrls().forEach((function(r){r.getColumn()==e&&(t=r)})),null!=t||this.getAllCellCtrls().forEach((function(r){r.getColSpanningList().indexOf(e)>=0&&(t=r)})),t},t.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},t.prototype.updateRowIndexes=function(){var e=this.rowNode.getRowIndexString(),t=this.beans.headerNavigationService.getHeaderRowCount(),r=this.rowNode.rowIndex%2==0,o=t+this.rowNode.rowIndex+1;this.allRowGuis.forEach((function(t){t.rowComp.setRowIndex(e),t.rowComp.addOrRemoveCssClass("ag-row-even",r),t.rowComp.addOrRemoveCssClass("ag-row-odd",!r),Object(d.setAriaRowIndex)(t.element,o)}))},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}(a.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var o=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},n=function(){for(var e=[],t=0;t=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e[e.UP=0]="UP",e[e.DOWN=1]="DOWN",e[e.LEFT=2]="LEFT",e[e.RIGHT=3]="RIGHT"}(n||(n={}));var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(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.getHeaderRowType=function(e){var t=this.ctrlsService.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)},t.prototype.navigateVertically=function(e,t,r){if(t||(t=this.focusService.getFocusedHeader()),!t)return!1;var o=t.headerRowIndex,i=t.column,a=this.getHeaderRowCount(),s=e===n.UP,l=s?o-1:o+1,u=null,p=!1;l<0&&(l=0,u=i,p=!0),l>=a&&(l=-1);var d=this.getHeaderRowType(o);if(!p){if(d===c.b.COLUMN_GROUP){var g=i;u=s?i.getParent():g.getDisplayedChildren()[0]}else if(d===c.b.FLOATING_FILTER)u=i;else{g=i;u=s?g.getParent():g}if(!u)return!1}return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:l,column:u},allowUserOverride:!0,event:r})},t.prototype.navigateHorizontally=function(e,t,r){void 0===t&&(t=!1);var o,i,a=this.focusService.getFocusedHeader();return e===n.LEFT!==this.gridOptionsWrapper.isEnableRtl()?(i="Before",o=this.headerPositionUtils.findHeader(a,i)):(i="After",o=this.headerPositionUtils.findHeader(a,i)),o||!t?this.focusService.focusHeaderPosition({headerPosition:o,direction:i,fromTab:t,allowUserOverride:!0,event:r}):this.focusNextHeaderRow(a,i,r)},t.prototype.focusNextHeaderRow=function(e,t,r){var o,n=e.headerRowIndex,i=null;return"Before"===t?n>0&&(o=n-1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"end")):(o=n+1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"start")),this.focusService.focusHeaderPosition({headerPosition:i,direction:t,fromTab:!0,allowUserOverride:!0,event:r})},t.prototype.scrollToColumn=function(e,t){if(void 0===t&&(t="After"),!e.getPinned()){var r;if(e instanceof s.a){var o=e.getDisplayedLeafColumns();r="Before"===t?Object(l.last)(o):o[0]}else r=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(r)}},p([Object(a.a)("focusService")],t.prototype,"focusService",void 0),p([Object(a.a)("headerPositionUtils")],t.prototype,"headerPositionUtils",void 0),p([Object(a.a)("animationFrameService")],t.prototype,"animationFrameService",void 0),p([Object(a.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),p([a.e],t.prototype,"postConstruct",null),t=p([Object(a.b)("headerNavigationService")],t)}(i.a)},function(e,t,r){"use strict";function o(e){var t=new Map;return e.forEach((function(e){return t.set(e[0],e[1])})),t}function n(e,t){var r=new Map;return e.forEach((function(e){return r.set(t(e),e)})),r}function i(e){var t=[];return e.forEach((function(e,r){return t.push(r)})),t}r.r(t),r.d(t,"convertToMap",(function(){return o})),r.d(t,"mapById",(function(){return n})),r.d(t,"keys",(function(){return i}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var o,n=r(4),i=r(46),a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(t,r,o){void 0===r&&(r="ag-checkbox"),void 0===o&&(o="checkbox");var n=e.call(this,t,r,o)||this;return n.labelAlignment="right",n.selected=!1,n.readOnly=!1,n.passive=!1,n}return a(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,r,o){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:r,event:o});var i=this.getInputElement(),a={type:n.a.EVENT_CHECKBOX_CHANGED,id:i.id,name:i.name,selected:e,previousValue:r};this.eventService.dispatchEvent(a)},t.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var t=this.isSelected(),r=this.selected=e.target.checked;this.refreshSelectedClass(r),this.dispatchChange(r,t,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)},t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var o,n=r(6),i=r(1),a=r(44),s=r(8),l=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},u=0,p=function(e){function t(t,r){var o=e.call(this)||this;return o.lastFocusEvent=null,o.columnGroupChild=t,o.parentRowCtrl=r,o.instanceId=t.getUniqueId()+"-"+u++,o}return l(t,e),t.prototype.shouldStopEventPropagation=function(e){var t=this.focusService.getFocusedHeader(),r=t.headerRowIndex,o=t.column;return Object(a.isUserSuppressingHeaderKeyboardEvent)(this.gridOptionsWrapper,e,r,o)},t.prototype.getWrapperHasFocus=function(){return this.gridOptionsWrapper.getDocument().activeElement===this.eGui},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.handleKeyDown=function(e){var t=this.getWrapperHasFocus();switch(e.key){case s.a.PAGE_DOWN:case s.a.PAGE_UP:case s.a.PAGE_HOME:case s.a.PAGE_END:t&&e.preventDefault()}},t.prototype.addDomData=function(){var e=this,r=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsWrapper.setDomData(this.eGui,r,this),this.addDestroyFunc((function(){return e.gridOptionsWrapper.setDomData(e.eGui,r,null)}))},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",c([Object(i.a)("focusService")],t.prototype,"focusService",void 0),c([Object(i.a)("beans")],t.prototype,"beans",void 0),c([Object(i.a)("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var o,n=r(15),i=r(5),a=r(169),s=r(11),l=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},u=function(){for(var e=[],t=0;t=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},v=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},y=function(){for(var e=[],t=0;t0?-1===o.indexOf(t)&&o.push(t):(r.instancesMonitored.set(e,[t]),e.addEventListener("keydown",r.toggleKeyboardMode),e.addEventListener("mousedown",r.toggleKeyboardMode))},t.removeKeyboardModeEvents=function(e,t){var o=r.instancesMonitored.get(e),n=[];o&&o.length&&(n=y(o).filter((function(e){return e!==t})),r.instancesMonitored.set(e,n)),0===n.length&&(e.removeEventListener("keydown",r.toggleKeyboardMode),e.removeEventListener("mousedown",r.toggleKeyboardMode))},t.toggleKeyboardMode=function(e){var t=r.keyboardModeActive,o="keydown"===e.type;if(!(o&&(e.ctrlKey||e.metaKey||e.altKey)||t&&o||!t&&!o)){r.keyboardModeActive=o;var n=e.target.ownerDocument;if(n){var i=r.instancesMonitored.get(n);i&&i.forEach((function(e){e.dispatchEvent({type:o?a.a.EVENT_KEYBOARD_FOCUS:a.a.EVENT_MOUSE_FOCUS})}))}}},t.prototype.init=function(){var e=this,t=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,a.a.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.addManagedListener(this.eventService,a.a.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,a.a.EVENT_COLUMN_GROUP_OPENED,t),this.addManagedListener(this.eventService,a.a.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.ctrlsService.whenReady((function(t){e.gridCtrl=t.gridCtrl;var o=e.gridOptionsWrapper.getDocument();r.addKeyboardModeEvents(o,e.gridCtrl),e.addDestroyFunc((function(){return e.unregisterGridCompController(e.gridCtrl)}))}))},t.prototype.unregisterGridCompController=function(e){var t=this.gridOptionsWrapper.getDocument();r.removeKeyboardModeEvents(t,e)},t.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var e=this.focusedCellPosition.column,t=this.columnModel.getGridColumn(e.getId());e!==t&&this.clearFocusedCell()}},t.prototype.isKeyboardMode=function(){return r.keyboardModeActive},t.prototype.getFocusCellToUseAfterRefresh=function(){var e=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(e.activeElement,p.a.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},t.prototype.getFocusHeaderToUseAfterRefresh=function(){var e=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(e.activeElement,d.a.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},t.prototype.isDomDataMissingInHierarchy=function(e,t){for(var r=e;r;){if(this.gridOptionsWrapper.getDomData(r,t))return!1;r=r.parentNode}return!0},t.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1,!1)},t.prototype.getFocusedCell=function(){return this.focusedCellPosition},t.prototype.setFocusedCell=function(e){var t=e.column,r=e.rowIndex,o=e.rowPinned,n=e.forceBrowserFocus,i=void 0!==n&&n,a=e.preventScrollOnBrowserFocus,s=void 0!==a&&a,l=this.columnModel.getGridColumn(t);l?(this.focusedCellPosition=l?{rowIndex:r,rowPinned:Object(c.makeNull)(o),column:l}:null,this.onCellFocused(i,s)):this.focusedCellPosition=null},t.prototype.isCellFocused=function(e){return null!=this.focusedCellPosition&&(this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned))},t.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},t.prototype.isHeaderWrapperFocused=function(e){if(null==this.focusedHeaderPosition)return!1;var t=e.getColumnGroupChild(),r=e.getRowIndex(),o=e.getPinned(),n=this.focusedHeaderPosition,i=n.column,a=n.headerRowIndex;return t===i&&r===a&&o==i.getPinned()},t.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},t.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},t.prototype.setFocusedHeader=function(e,t){this.focusedHeaderPosition={headerRowIndex:e,column:t}},t.prototype.focusHeaderPosition=function(e){var t=e.direction,r=e.fromTab,o=e.allowUserOverride,n=e.event,i=e.headerPosition;if(o){var a,s=this.gridOptionsWrapper,l=this.getFocusedHeader(),c=this.headerNavigationService.getHeaderRowCount();if(r){if(a=s.getTabToNextHeaderFunc())i=a({backwards:"Before"===t,previousHeaderPosition:l,nextHeaderPosition:i,headerRowCount:c})}else if((a=s.getNavigateToNextHeaderFunc())&&n)i=a({key:n.key,previousHeaderPosition:l,nextHeaderPosition:i,headerRowCount:c,event:n})}return!!i&&(-1===i.headerRowIndex?this.focusGridView(i.column):(this.headerNavigationService.scrollToColumn(i.column,t),this.ctrlsService.getHeaderRowContainerCtrl(i.column.getPinned()).focusHeader(i.headerRowIndex,i.column,n)))},t.prototype.focusFirstHeader=function(){var e=this.columnModel.getAllDisplayedColumns()[0];return!!e&&(e.getParent()&&(e=this.columnModel.getColumnGroupAtLevel(e,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:e}}))},t.prototype.focusLastHeader=function(e){var t=this.headerNavigationService.getHeaderRowCount()-1,r=Object(g.last)(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:r},event:e})},t.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},t.prototype.isRowFocused=function(e,t){return null!=this.focusedCellPosition&&(this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===Object(c.makeNull)(t))},t.prototype.findFocusableElements=function(e,t,r){void 0===r&&(r=!1);var o=u.a.FOCUSABLE_SELECTOR,n=u.a.FOCUSABLE_EXCLUDE;t&&(n+=", "+t),r&&(n+=', [tabindex="-1"]');var i=Array.prototype.slice.apply(e.querySelectorAll(o)),a=Array.prototype.slice.apply(e.querySelectorAll(n));if(!a.length)return i;var s;return s=a,i.filter((function(e){return-1===s.indexOf(e)}))},t.prototype.focusInto=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var o=this.findFocusableElements(e,null,r),n=t?Object(g.last)(o):o[0];return!!n&&(n.focus(),!0)},t.prototype.findNextFocusableElement=function(e,t,r){void 0===e&&(e=this.eGridDiv);var o=this.findFocusableElements(e,t?':not([tabindex="-1"])':null),n=this.gridOptionsWrapper.getDocument().activeElement,i=(t?o.findIndex((function(e){return e.contains(n)})):o.indexOf(n))+(r?-1:1);return i<0||i>=o.length?null:o[i]},t.prototype.isFocusUnderManagedComponent=function(e){var t=this.gridOptionsWrapper.getDocument(),r=e.querySelectorAll("."+s.a.FOCUS_MANAGED_CLASS);if(!r.length)return!1;for(var o=0;o=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},f=function(e){function t(t){var r=e.call(this)||this;return r.scrollLeft=-1,r.nextScrollTop=-1,r.scrollTop=-1,r.eBodyViewport=t,r.resetLastHorizontalScrollElementDebounced=Object(u.debounce)(r.resetLastHorizontalScrollElement.bind(r),500),r}return g(t,e),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,l.a.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.getFakeHScrollCtrl();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var t=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?Object(u.debounce)(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",t)},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,r=this.ctrlsService.getTopCenterRowContainerCtrl(),o=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),n=this.ctrlsService.getBottomCenterRowContainerCtrl(),i=this.ctrlsService.getFakeHScrollCtrl();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(t),n.setContainerTranslateX(t),r.setContainerTranslateX(t),o.setContainerTranslateX(t);var a=this.centerRowContainerCtrl.getViewportElement(),s=this.lastHorizontalScrollElement===a?i.getViewport():this.centerRowContainerCtrl.getViewportElement();Object(c.setScrollLeft)(s,Math.abs(e),this.enableRtl)}},t.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},t.prototype.onFakeHorizontalScroll=function(){var e=this.ctrlsService.getFakeHScrollCtrl().getViewport();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onCenterViewportScroll=function(){var e=this.centerRowContainerCtrl.getViewportElement();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onBodyHorizontalScroll=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;this.shouldBlockScrollUpdate("horizontal",t,!0)||(this.doHorizontalScroll(Math.round(Object(c.getScrollLeft)(e,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},t.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",e,!0)||(this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,this.gridOptionsWrapper.isSuppressAnimationFrame()?(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()):this.animationFrameService.schedule())},t.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},t.prototype.doHorizontalScroll=function(e){var t=this.ctrlsService.getFakeHScrollCtrl().getViewport(),r=Object(c.getScrollLeft)(t,this.enableRtl);this.scrollLeft===e&&e===r||(this.scrollLeft=e,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged())},t.prototype.fireScrollEvent=function(e){var t=this,r={type:l.a.EVENT_BODY_SCROLL,direction:e,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(r),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var e=Object.assign({},r,{type:l.a.EVENT_BODY_SCROLL_END});t.eventService.dispatchEvent(e)}),100)},t.prototype.shouldBlockScrollUpdate=function(e,t,r){if(void 0===r&&(r=!1),r&&!Object(p.isIOSUserAgent)())return!1;if("vertical"===e){var o=Object(c.getInnerHeight)(this.eBodyViewport),n=this.eBodyViewport.scrollHeight;if(t<0||t+o>n)return!0}if("horizontal"===e){var i=this.centerRowContainerCtrl.getCenterWidth(),a=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&Object(c.isRtlNegativeScroll)()){if(t>0)return!0}else if(t<0)return!0;if(Math.abs(t)+i>a)return!0}return!1},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},t.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.centerRowContainerCtrl.getViewportElement())},t.prototype.executeAnimationFrameScroll=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(e=this.enableRtl&&Object(c.isRtlNegativeScroll)()?e>0?0:t:Math.min(Math.max(e,0),t)),Object(c.setScrollLeft)(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 r=this.rowModel.getRowCount(),o=-1,n=0;n=0&&this.ensureIndexVisible(o,t)},t.prototype.ensureIndexVisible=function(e,t){if(this.gridOptionsWrapper.getDomLayout()!==d.a.DOM_LAYOUT_PRINT){var r=this.paginationProxy.getRowCount();if("number"!=typeof e||e<0||e>=r)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()||this.paginationProxy.goToPageWithIndex(e);var o,n=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),i=this.paginationProxy.getRow(e);do{var a=i.rowTop,s=i.rowHeight,l=this.paginationProxy.getPixelOffset(),c=i.rowTop-l,u=c+i.rowHeight,p=this.getVScrollPosition(),g=this.heightScaler.getDivStretchOffset(),h=p.top+g,f=p.bottom+g,v=f-h,y=this.heightScaler.getScrollPositionForPixel(c),m=this.heightScaler.getScrollPositionForPixel(u-v),b=Math.min((y+m)/2,c),w=null;"top"===t?w=y:"bottom"===t?w=m:"middle"===t?w=b:h+n>c?w=y-n:fa:oi}},t.prototype.getColumnBounds=function(e){var t=this.enableRtl,r=this.columnModel.getBodyContainerWidth(),o=e.getActualWidth(),n=e.getLeft(),i=t?-1:1,a=t?r-n:n;return{colLeft:a,colMiddle:a+o/2*i,colRight:a+o*i}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),t=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:t,end:e+t,width:e}},h([Object(a.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),h([Object(a.a)("animationFrameService")],t.prototype,"animationFrameService",void 0),h([Object(a.a)("paginationProxy")],t.prototype,"paginationProxy",void 0),h([Object(a.a)("rowModel")],t.prototype,"rowModel",void 0),h([Object(a.a)("rowContainerHeightService")],t.prototype,"heightScaler",void 0),h([Object(a.a)("rowRenderer")],t.prototype,"rowRenderer",void 0),h([Object(a.a)("columnModel")],t.prototype,"columnModel",void 0),h([a.e],t.prototype,"postConstruct",null),t}(i.a),v=r(20),y=r(22),m=r(10),b=r(2),w=r(136),C=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),O=function(){return(O=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},E=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},x=function(){for(var e=[],t=0;tthis.paginationProxy.getCurrentPageHeight()||(i=this.rowModel.getRowIndexAtPixel(n),r=this.rowModel.getRow(i)),t.vDirection){case v.d.Down:o="down";break;case v.d.Up:o="up";break;default:o=null}return{type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),event:t.event,node:t.dragItem.rowNode,nodes:t.dragItem.rowNodes,overIndex:i,overNode:r,y:n,vDirection:o}},t.prototype.dispatchGridEvent=function(e,t){var r=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(r)},t.prototype.onDragLeave=function(e){this.dispatchGridEvent(l.a.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},t.prototype.onDragStop=function(e){this.dispatchGridEvent(l.a.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&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)}))},S([Object(a.a)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),S([Object(a.a)("rowModel")],t.prototype,"rowModel",void 0),S([Object(a.a)("paginationProxy")],t.prototype,"paginationProxy",void 0),S([Object(a.a)("columnModel")],t.prototype,"columnModel",void 0),S([Object(a.a)("focusService")],t.prototype,"focusService",void 0),S([Object(a.a)("sortController")],t.prototype,"sortController",void 0),S([Object(a.a)("filterManager")],t.prototype,"filterManager",void 0),S([Object(a.a)("selectionService")],t.prototype,"selectionService",void 0),S([Object(a.a)("mouseEventService")],t.prototype,"mouseEventService",void 0),S([Object(a.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),S([Object(a.d)("rangeService")],t.prototype,"rangeService",void 0),S([a.e],t.prototype,"postConstruct",null),t}(i.a),T=r(36),A=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),P=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e.ANIMATION_ON="ag-row-animation",e.ANIMATION_OFF="ag-row-no-animation"}(n||(n={}));var _="ag-selectable",D="ag-force-vertical-scroll",M="ag-column-moving",N=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.stickyTopHeight=0,t}return A(t,e),t.prototype.getScrollFeature=function(){return this.bodyScrollFeature},t.prototype.getBodyViewportElement=function(){return this.eBodyViewport},t.prototype.setComp=function(e,t,r,o,n,i){this.comp=e,this.eGridBody=t,this.eBodyViewport=r,this.eTop=o,this.eBottom=n,this.eStickyTop=i,this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.createManagedBean(new s.b(this.comp)),this.bodyScrollFeature=this.createManagedBean(new f(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([o,r,n,i]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},t.prototype.getComp=function(){return this.comp},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,l.a.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,l.a.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,l.a.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,l.a.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 r=t.target,o=Object(c.isElementChildOfClass)(r,"ag-root",e);e.classList.toggle("ag-has-focus",!o)})),t.addManagedListener(e,"focusout",(function(t){var r=t.target,o=t.relatedTarget,n=e.contains(o),i=Object(c.isElementChildOfClass)(o,"ag-root",e);Object(c.isElementChildOfClass)(r,"ag-root",e)||n&&!i||e.classList.remove("ag-has-focus")}))}))},t.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(e?M:null,e)},t.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1);var t=e?_:null;this.comp.setCellSelectableCss(t,e)},t.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e),this.setStickyTopWidth(e)},t.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e?e.length:0)},t.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},t.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()){var t=function(t){var o=t.relatedTarget;if(null!==Object(p.getTabIndex)(o)){var n=r.some((function(e){return e.contains(o)}))&&e.mouseEventService.isElementInThisGrid(o);if(!n){var i=e.popupService;n=i.getActivePopups().some((function(e){return e.contains(o)}))||i.isElementWithinCustomPopup(o)}n||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},r=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];r.forEach((function(r){return e.addManagedListener(r,"focusout",t)}))}},t.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),t=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,r=-1===t?-1:e+t;this.comp.setRowCount(r)},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.gridOptionsWrapper.isAlwaysShowVerticalScroll(),t=e?D:null,r=this.gridOptionsWrapper.getDomLayout()===d.a.DOM_LAYOUT_NORMAL;return this.comp.setAlwaysVerticalScrollClass(t,e),e||r&&Object(c.isVerticalScrollShowing)(this.eBodyViewport)},t.prototype.setupRowAnimationCssClass=function(){var e=this,t=function(){var t=e.gridOptionsWrapper.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),r=t?n.ANIMATION_ON:n.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(r,t)};t(),this.addManagedListener(this.eventService,l.a.EVENT_HEIGHT_SCALE_CHANGED,t)},t.prototype.getGridBodyElement=function(){return this.eGridBody},t.prototype.addBodyViewportListener=function(){var e=this,t=function(t,r,o){if(t||o){if(e.gridOptionsWrapper.isPreventDefaultOnContextMenu())(t||o).preventDefault();var n=(t||r).target;n!==e.eBodyViewport&&n!==e.ctrlsService.getCenterRowContainerCtrl().getViewportElement()||e.contextMenuFactory&&(t?e.contextMenuFactory.onContextMenu(t,null,null,null,null,e.eGridBody):o&&e.contextMenuFactory.onContextMenu(null,o,null,null,null,e.eGridBody))}};this.addManagedListener(this.eBodyViewport,"contextmenu",t),this.mockContextMenuForIPad(t),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this))},t.prototype.mockContextMenuForIPad=function(e){if(Object(p.isIOSUserAgent)()){var t=new T.a(this.eBodyViewport);this.addManagedListener(t,T.a.EVENT_LONG_TAP,(function(t){e(void 0,t.touchStart,t.touchEvent)})),this.addDestroyFunc((function(){return t.destroy()}))}},t.prototype.onBodyViewportWheel=function(e){this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()&&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 R(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 r=e.getPinnedBottomTotalHeight();r&&(r+=1),this.comp.setTopHeight(t),this.comp.setBottomHeight(r),this.comp.setTopDisplay(t?"inherit":"none"),this.comp.setBottomDisplay(r?"inherit":"none"),this.setStickyTopOffsetTop()},t.prototype.setStickyTopHeight=function(e){void 0===e&&(e=0),this.comp.setStickyTopHeight(e+"px"),this.stickyTopHeight=e},t.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},t.prototype.setStickyTopWidth=function(e){if(e){var t=this.gridOptionsWrapper.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+t+"px)")}else this.comp.setStickyTopWidth("100%")},t.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},t.prototype.setStickyTopOffsetTop=function(){var e=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight(),t=this.pinnedRowModel.getPinnedTopTotalHeight(),r=0;e>0&&(r+=e+1),t>0&&(r+=t+1),this.comp.setStickyTopTop(r+"px")},t.prototype.sizeColumnsToFit=function(e,t){var r=this,o=this.isVerticalScrollShowing()?this.gridOptionsWrapper.getScrollbarWidth():0,n=Object(c.getInnerWidth)(this.eBodyViewport)-o;n>0?this.columnModel.sizeColumnsToFit(n,"sizeColumnsToFit",!1,e):void 0===t?window.setTimeout((function(){r.sizeColumnsToFit(e,100)}),0):100===t?window.setTimeout((function(){r.sizeColumnsToFit(e,500)}),100):500===t?window.setTimeout((function(){r.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)},t.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},P([Object(a.a)("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),P([Object(a.a)("ctrlsService")],t.prototype,"ctrlsService",void 0),P([Object(a.a)("columnModel")],t.prototype,"columnModel",void 0),P([Object(a.a)("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),P([Object(a.d)("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),P([Object(a.a)("headerNavigationService")],t.prototype,"headerNavigationService",void 0),P([Object(a.a)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),P([Object(a.a)("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),P([Object(a.a)("rowRenderer")],t.prototype,"rowRenderer",void 0),P([Object(a.a)("popupService")],t.prototype,"popupService",void 0),P([Object(a.a)("mouseEventService")],t.prototype,"mouseEventService",void 0),P([Object(a.a)("rowModel")],t.prototype,"rowModel",void 0),t}(i.a)},function(e,t,r){"use strict";r.r(t),r.d(t,"SideBarModule",(function(){return E})),r.d(t,"ToolPanelColDefService",(function(){return S}));var o,n=r(0),i=r(27),a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},l=function(e){function t(){var t=e.call(this,'
')||this;return t.minWidth=100,t.maxWidth=null,t}return a(t,e),t.prototype.setElementToResize=function(e){this.elementToResize=e},t.prototype.postConstruct=function(){var e=this.horizontalResizeService.addResizeBar({eResizeBar:this.getGui(),dragStartPixels:1,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this),onResizeEnd:this.onResizeEnd.bind(this)});this.addDestroyFunc(e),this.setInverted(this.gridOptionsWrapper.isEnableRtl())},t.prototype.dispatchResizeEvent=function(e,t,r){var o={type:n.Events.EVENT_TOOL_PANEL_SIZE_CHANGED,width:r,started:e,ended:t};this.eventService.dispatchEvent(o)},t.prototype.onResizeStart=function(){this.startingWidth=this.elementToResize.offsetWidth,this.dispatchResizeEvent(!0,!1,this.startingWidth)},t.prototype.onResizeEnd=function(e){return this.onResizing(e,!0)},t.prototype.onResizing=function(e,t){void 0===t&&(t=!1);var r=this.inverted?-1:1,o=Math.max(this.minWidth,Math.floor(this.startingWidth-e*r));null!=this.maxWidth&&(o=Math.min(this.maxWidth,o)),this.elementToResize.style.width=o+"px",this.dispatchResizeEvent(!1,t,o)},t.prototype.setInverted=function(e){this.inverted=e},t.prototype.setMaxWidth=function(e){this.maxWidth=e},t.prototype.setMinWidth=function(e){this.minWidth=null!=e?e:100},s([Object(n.Autowired)("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),s([n.PostConstruct],t.prototype,"postConstruct",null),t}(n.Component),c=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),u=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=function(e){function t(t){var r=e.call(this)||this;return r.toolPanelDef=t,r}return c(t,e),t.prototype.getToolPanelId=function(){return this.toolPanelDef.id},t.prototype.postConstruct=function(){var e=this.createTemplate();this.setTemplate(e),this.setLabel(),this.setIcon(),this.addManagedListener(this.eToggleButton,"click",this.onButtonPressed.bind(this))},t.prototype.createTemplate=function(){return''},t.prototype.setLabel=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.toolPanelDef,r=e(t.labelKey,t.labelDefault);this.eLabel.innerText=r},t.prototype.setIcon=function(){this.eIconWrapper.insertAdjacentElement("afterbegin",n._.createIconNoSpan(this.toolPanelDef.iconKey,this.gridOptionsWrapper))},t.prototype.onButtonPressed=function(){this.dispatchEvent({type:t.EVENT_TOGGLE_BUTTON_CLICKED})},t.prototype.setSelected=function(e){this.addOrRemoveCssClass("ag-selected",e)},t.EVENT_TOGGLE_BUTTON_CLICKED="toggleButtonClicked",u([Object(n.RefSelector)("eToggleButton")],t.prototype,"eToggleButton",void 0),u([Object(n.RefSelector)("eIconWrapper")],t.prototype,"eIconWrapper",void 0),u([Object(n.RefSelector)("eLabel")],t.prototype,"eLabel",void 0),u([n.PostConstruct],t.prototype,"postConstruct",null),t}(n.Component),d=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),g=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},h=function(e){function t(){var r=e.call(this,t.TEMPLATE)||this;return r.buttonComps=[],r}return d(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.getFocusableElement(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){if(e.key===n.KeyCode.TAB&&e.shiftKey){var t=n._.last(this.columnModel.getAllDisplayedColumns());this.focusService.focusGridView(t,!0)&&e.preventDefault()}},t.prototype.setToolPanelDefs=function(e){e.forEach(this.addButtonComp.bind(this))},t.prototype.setActiveButton=function(e){this.buttonComps.forEach((function(t){t.setSelected(e===t.getToolPanelId())}))},t.prototype.addButtonComp=function(e){var r=this,o=this.createBean(new p(e));this.buttonComps.push(o),this.appendChild(o),o.addEventListener(p.EVENT_TOGGLE_BUTTON_CLICKED,(function(){r.dispatchEvent({type:t.EVENT_SIDE_BAR_BUTTON_CLICKED,toolPanelId:e.id})}))},t.prototype.clearButtons=function(){this.buttonComps=this.destroyBeans(this.buttonComps),n._.clearElement(this.getGui())},t.EVENT_SIDE_BAR_BUTTON_CLICKED="sideBarButtonClicked",t.TEMPLATE='
',g([Object(n.Autowired)("focusService")],t.prototype,"focusService",void 0),g([Object(n.Autowired)("columnModel")],t.prototype,"columnModel",void 0),g([n.PostConstruct],t.prototype,"postConstruct",null),g([n.PreDestroy],t.prototype,"clearButtons",null),t}(n.Component),f=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),v=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},y=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return f(t,e),t.prototype.setupResize=function(){var e=this.getGui(),t=this.resizeBar=this.createManagedBean(new l);t.setElementToResize(e),this.appendChild(t)},t.prototype.getToolPanelId=function(){return this.toolPanelId},t.prototype.setToolPanelDef=function(e){var t=e.id,r=e.minWidth,o=e.maxWidth,n=e.width;this.toolPanelId=t,this.width=n;var i=this.userComponentFactory.getToolPanelCompDetails(e,{}).newAgStackInstance();null!=i?(i.then(this.setToolPanelComponent.bind(this)),null!=r&&this.resizeBar.setMinWidth(r),null!=o&&this.resizeBar.setMaxWidth(o)):console.warn("AG Grid: error processing tool panel component "+t+". You need to specify either 'toolPanel' or 'toolPanelFramework'")},t.prototype.setToolPanelComponent=function(e){var t=this;this.toolPanelCompInstance=e,this.appendChild(e.getGui()),this.addDestroyFunc((function(){t.destroyBean(e)})),this.width&&(this.getGui().style.width=this.width+"px")},t.prototype.getToolPanelInstance=function(){return this.toolPanelCompInstance},t.prototype.setResizerSizerSide=function(e){var t="left"===e,r=this.gridOptionsWrapper.isEnableRtl()?t:!t;this.resizeBar.setInverted(r)},t.prototype.refresh=function(){this.toolPanelCompInstance.refresh()},t.TEMPLATE='
',v([Object(n.Autowired)("userComponentFactory")],t.prototype,"userComponentFactory",void 0),v([n.PostConstruct],t.prototype,"setupResize",null),t}(n.Component),m=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),b=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},w=function(e){function t(){var r=e.call(this,t.TEMPLATE)||this;return r.toolPanelWrappers=[],r}return m(t,e),t.prototype.postConstruct=function(){var e=this;this.sideBarButtonsComp.addEventListener(h.EVENT_SIDE_BAR_BUTTON_CLICKED,this.onToolPanelButtonClicked.bind(this)),this.setSideBarDef(),this.gridOptionsWrapper.addEventListener("sideBar",(function(){e.clearDownUi(),e.setSideBarDef()})),this.gridApi.registerSideBarComp(this),this.createManagedBean(new n.ManagedFocusFeature(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var t=this.focusService,r=this.sideBarButtonsComp,o=this.getGui(),n=r.getGui(),i=this.gridOptionsWrapper.getDocument().activeElement,a=o.querySelector(".ag-tool-panel-wrapper:not(.ag-hidden)");if(a)if(n.contains(i))t.focusInto(a,e.shiftKey)&&e.preventDefault();else if(!t.isFocusUnderManagedComponent(a)&&e.shiftKey){var s=t.findFocusableElements(a)[0];if(this.gridOptionsWrapper.getDocument().activeElement===s){var l=n.querySelector(".ag-selected button");l&&(e.preventDefault(),l.focus())}}}},t.prototype.handleKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument();if(this.sideBarButtonsComp.getGui().contains(t.activeElement)){var r=this.sideBarButtonsComp.getGui(),o=Array.prototype.slice.call(r.querySelectorAll(".ag-side-button")),i=t.activeElement,a=o.findIndex((function(e){return e.contains(i)})),s=null;switch(e.key){case n.KeyCode.LEFT:case n.KeyCode.UP:s=Math.max(0,a-1);break;case n.KeyCode.RIGHT:case n.KeyCode.DOWN:s=Math.min(a+1,o.length-1)}if(null!==s){var l=o[s].querySelector("button");l&&(l.focus(),e.preventDefault())}}},t.prototype.onToolPanelButtonClicked=function(e){var t=e.toolPanelId;this.openedItem()===t?this.openToolPanel(void 0):this.openToolPanel(t)},t.prototype.clearDownUi=function(){this.sideBarButtonsComp.clearButtons(),this.destroyToolPanelWrappers()},t.prototype.setSideBarDef=function(){this.setDisplayed(!1);var e=this.gridOptionsWrapper.getSideBar(),t=!!e&&!!e.toolPanels;if(t){var r=t&&!e.hiddenByDefault;this.setDisplayed(r);var o=e.toolPanels;this.sideBarButtonsComp.setToolPanelDefs(o),this.setupToolPanels(o),this.setSideBarPosition(e.position),e.hiddenByDefault||this.openToolPanel(e.defaultToolPanel)}},t.prototype.setSideBarPosition=function(e){e||(e="right");var t="left"===e,r=t?"right":"left";return this.addOrRemoveCssClass("ag-side-bar-left",t),this.addOrRemoveCssClass("ag-side-bar-right",!t),this.toolPanelWrappers.forEach((function(e){e.setResizerSizerSide(r)})),this},t.prototype.setupToolPanels=function(e){var t=this;e.forEach((function(e){if(null!=e.id){if("agColumnsToolPanel"===e.toolPanel)if(!n.ModuleRegistry.assertRegistered(n.ModuleNames.ColumnToolPanelModule,"Column Tool Panel"))return;if("agFiltersToolPanel"===e.toolPanel)if(!n.ModuleRegistry.assertRegistered(n.ModuleNames.FiltersToolPanelModule,"Filters Tool Panel"))return;var r=new y;t.getContext().createBean(r),r.setToolPanelDef(e),r.setDisplayed(!1),t.getGui().appendChild(r.getGui()),t.toolPanelWrappers.push(r)}else console.warn("AG Grid: please review all your toolPanel components, it seems like at least one of them doesn't have an id")}))},t.prototype.refresh=function(){this.toolPanelWrappers.forEach((function(e){return e.refresh()}))},t.prototype.openToolPanel=function(e){var t=this.openedItem();t!==e&&(this.toolPanelWrappers.forEach((function(t){var r=e===t.getToolPanelId();t.setDisplayed(r)})),t!==this.openedItem()&&(this.sideBarButtonsComp.setActiveButton(e),this.raiseToolPanelVisibleEvent(e)))},t.prototype.getToolPanelInstance=function(e){var t=this.toolPanelWrappers.filter((function(t){return t.getToolPanelId()===e}))[0];if(t)return t.getToolPanelInstance();console.warn("AG Grid: unable to lookup Tool Panel as invalid key supplied: "+e)},t.prototype.raiseToolPanelVisibleEvent=function(e){var t={type:n.Events.EVENT_TOOL_PANEL_VISIBLE_CHANGED,source:e};this.eventService.dispatchEvent(t)},t.prototype.close=function(){this.openToolPanel(void 0)},t.prototype.isToolPanelShowing=function(){return!!this.openedItem()},t.prototype.openedItem=function(){var e=null;return this.toolPanelWrappers.forEach((function(t){t.isDisplayed()&&(e=t.getToolPanelId())})),e},t.prototype.destroyToolPanelWrappers=function(){var e=this;this.toolPanelWrappers.forEach((function(t){n._.removeFromParent(t.getGui()),e.destroyBean(t)})),this.toolPanelWrappers.length=0},t.prototype.destroy=function(){this.destroyToolPanelWrappers(),e.prototype.destroy.call(this)},t.TEMPLATE='
\n \n
',b([Object(n.Autowired)("gridApi")],t.prototype,"gridApi",void 0),b([Object(n.Autowired)("focusService")],t.prototype,"focusService",void 0),b([Object(n.RefSelector)("sideBarButtons")],t.prototype,"sideBarButtonsComp",void 0),b([n.PostConstruct],t.prototype,"postConstruct",null),t}(n.Component),C=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),O=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isColGroupDef=function(e){return e&&void 0!==e.children},t.getId=function(e){return t.isColGroupDef(e)?e.groupId:e.colId},t}return C(t,e),t.prototype.createColumnTree=function(e){var t=this,r=[],o=function(e,i){if(t.isColGroupDef(e)){var a=e,s=void 0!==a.groupId?a.groupId:a.headerName,l=new n.ProvidedColumnGroup(a,s,!1,i),c=[];return a.children.forEach((function(e){var t=o(e,i+1);t&&c.push(t)})),l.setChildren(c),l}var u=e,p=u.colId?u.colId:u.field,d=t.columnModel.getPrimaryColumn(p);return d||r.push(u),d},i=[];return e.forEach((function(e){var t=o(e,0);t&&i.push(t)})),r.length>0&&console.warn("AG Grid: unable to find grid columns for the supplied colDef(s):",r),i},t.prototype.syncLayoutWithGrid=function(e){var t=this.getLeafPathTrees();e(this.mergeLeafPathTrees(t))},t.prototype.getLeafPathTrees=function(){var e=function(t,r){var o;if(t instanceof n.ProvidedColumnGroup)if(t.isPadding())o=r;else{var i=Object.assign({},t.getColGroupDef());i.groupId=t.getGroupId(),i.children=[r],o=i}else{var a=Object.assign({},t.getColDef());a.colId=t.getColId(),o=a}var s=t.getOriginalParent();return s?e(s,o):o};return this.columnModel.getAllGridColumns().filter((function(e){var t=e.getColDef();return e.isPrimary()&&!t.showRowGroup})).map((function(t){return e(t,t.getColDef())}))},t.prototype.mergeLeafPathTrees=function(e){for(var t,r,o=this,n=function(e,t){if(!o.isColGroupDef(t))return e;var r=e,i=t;if(i.children&&i.groupId&&o.addChildrenToGroup(r,i.groupId,i.children[0]))return r;return i.children.forEach((function(e){return n(r,e)})),r},i=[],a=1;a<=e.length;a++){var s=e[a-1],l=e[a];t=s,r=l,o.isColGroupDef(t)&&o.isColGroupDef(r)&&o.getId(t)===o.getId(r)?e[a]=n(s,l):i.push(s)}return i},t.prototype.addChildrenToGroup=function(e,t,r){var o=this;if(!this.isColGroupDef(e))return!0;var i=e,a=r;if(function(e,t){var r=e.children.map(o.getId),i=n._.includes(r,o.getId(t)),a=n._.last(e.children),s=a&&o.getId(a)!==o.getId(t);return i&&s}(i,a))return i.children.push(a),!0;if(i.groupId===t){var s=i.children.map(this.getId);if(!n._.includes(s,this.getId(a)))return i.children.push(a),!0}return i.children.forEach((function(e){return o.addChildrenToGroup(e,t,r)})),!1},O([Object(n.Autowired)("columnModel")],t.prototype,"columnModel",void 0),t=O([Object(n.Bean)("toolPanelColDefService")],t)}(n.BeanStub),E={moduleName:n.ModuleNames.SideBarModule,beans:[S],agStackComponents:[{componentName:"AgHorizontalResize",componentClass:l},{componentName:"AgSideBar",componentClass:w},{componentName:"AgSideBarButtons",componentClass:h}],dependantModules:[i.EnterpriseCoreModule]}},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var o,n=r(1),i=r(5),a=r(13),s={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},l=r(39),c=r(87),u=r(15),p=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},g=function(e){function t(t){var r=e.call(this)||this;return r.filterNameKey=t,r.applyActive=!1,r.hidePopup=null,r.appliedModel=null,r}return p(t,e),t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new l.a(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)}))},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 r='\n
\n
\n '+this.createBodyTemplate()+"\n
\n
";this.setTemplate(r,e),(t=this.getGui())&&t.addEventListener("submit",this.onFormSubmit)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},t.prototype.init=function(e){var t=this;this.setParams(e),this.resetUiToDefaults(!0).then((function(){t.updateUiVisibility(),t.setupOnBtApplyDebounce()}))},t.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,t=this.providedFilterParams.buttons;if(!(!t||t.length<1||this.isReadOnly())){var r=document.createElement("div");r.classList.add("ag-filter-apply-panel");Object(c.convertToSet)(t).forEach((function(t){return function(t){var o,n;switch(t){case"apply":o=e.translate("applyFilter"),n=function(t){return e.onBtApply(!1,!1,t)};break;case"clear":o=e.translate("clearFilter"),n=function(){return e.onBtClear()};break;case"reset":o=e.translate("resetFilter"),n=function(){return e.onBtReset()};break;case"cancel":o=e.translate("cancelFilter"),n=function(t){e.onBtCancel(t)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var a="apply"===t?"submit":"button",s=Object(i.loadTemplate)(''+o+"\n ");r.appendChild(s),e.addManagedListener(s,"click",n)}(t)})),this.getGui().appendChild(r)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=Object(a.debounce)(this.onBtApply.bind(this),e)},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()}))},t.prototype.onBtCancel=function(e){var t=this,r=this.getModel(),o=function(){t.onUiChanged(!1,"prevent"),t.providedFilterParams.closeOnApply&&t.close(e)};null!=r?this.setModelIntoUi(r).then(o):this.resetUiToDefaults().then(o)},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(){var e=this.getModelFromUi();if(!this.isModelValid(e))return!1;var t=this.appliedModel;return this.appliedModel=e,!this.areModelsEqual(t,e)},t.prototype.isModelValid=function(e){return!0},t.prototype.onFormSubmit=function(e){e.preventDefault()},t.prototype.onBtApply=function(e,t,r){void 0===e&&(e=!1),void 0===t&&(t=!1),r&&r.preventDefault(),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t}),this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!t&&this.close(r)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var t,r=e,o=r&&r.key;"Enter"!==o&&"Space"!==o||(t={keyboardEvent:r}),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 r=this.isModelValid(this.getModelFromUi());Object(i.setDisabled)(this.getRefElement("applyFilterButton"),!r)}e&&!t||"immediately"===t?this.onBtApply(e):(this.applyActive||t)&&"debounce"!==t||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){null!=e&&(this.hidePopup=e.hidePopup)},t.getDebounceMs=function(e,r){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:r},t.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.destroy=function(){var t=this.getGui();t&&t.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,e.prototype.destroy.call(this)},t.prototype.translate=function(e){return this.gridOptionsWrapper.getLocaleTextFunc()(e,s[e])},t.prototype.getCellValue=function(e){var t=this.providedFilterParams,r=t.api,o=t.colDef,n=t.column,i=t.columnApi,a=t.context;return this.providedFilterParams.valueGetter({api:r,colDef:o,column:n,columnApi:i,context:a,data:e.data,getValue:function(t){return e.data[t]},node:e})},d([Object(n.a)("rowModel")],t.prototype,"rowModel",void 0),d([n.e],t.prototype,"postConstruct",null),t}(u.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var o,n,i=r(1),a=r(6),s=r(2),l=r(18),c=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(){return(u=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e[e.NOTHING=0]="NOTHING",e[e.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",e[e.SHOWING=2]="SHOWING"}(n||(n={}));var d=function(e){function t(t){var r=e.call(this)||this;return r.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,r.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,r.SHOW_QUICK_TOOLTIP_DIFF=1e3,r.FADE_OUT_TOOLTIP_TIMEOUT=1e3,r.state=n.NOTHING,r.tooltipInstanceCount=0,r.tooltipMouseTrack=!1,r.parentComp=t,r}return c(t,e),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipDelay("show")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.gridOptionsWrapper.getTooltipDelay("hide")||this.DEFAULT_HIDE_TOOLTIP_DELAY,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();var e=this.parentComp.getGui();this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this))},t.prototype.destroy=function(){this.setToDoNothing(),e.prototype.destroy.call(this)},t.prototype.onMouseEnter=function(e){if(!Object(l.isIOSUserAgent)()&&this.state==n.NOTHING){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=n.WAITING_TO_SHOW}},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===n.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=n.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===n.SHOWING&&this.tooltipComp&&this.positionTooltipUnderLastMouseEvent()},t.prototype.onMouseDown=function(){this.setToDoNothing()},t.prototype.hideTooltip=function(){this.tooltipComp&&(this.destroyTooltipComp(),t.lastTooltipHideTime=(new Date).getTime()),this.state=n.NOTHING},t.prototype.destroyTooltipComp=function(){var e=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var t=this.tooltipPopupDestroyFunc,r=this.tooltipComp;window.setTimeout((function(){t(),e.getContext().destroyBean(r)}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},t.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-t.lastTooltipHideTime=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=function(e){function t(){return e.call(this,"textFilter")||this}return l(t,e),t.trimInput=function(e){var t=e&&e.trim();return""===t?e:t},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.setParams=function(r){e.prototype.setParams.call(this,r),this.textFilterParams=r,this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER)},t.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(s.f.doOnce((function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")}),"textCustomComparator.deprecated"),function(t){var r=t.filterOption,o=t.value,n=t.filterText;return e(r,o,n)}):this.textFilterParams.textMatcher||t.DEFAULT_MATCHER},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],r={filterType:this.getFilterType(),type:t},o=this.getValues(e);return o.length>0&&(r.filter=o[0]),o.length>1&&(r.filterTo=o[1]),r},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(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getValues=function(e){var r=this,o=[];return this.forEachInput((function(n,i,s,l){if(e===s&&i\n \n \n
'},t.prototype.mapValuesFromModel=function(e){var t=e||{},r=t.filter,o=t.filterTo,n=t.type;return[r||null,o||null].slice(0,this.getNumberOfInputs(n))},t.prototype.evaluateNullValue=function(e){var t=[i.b.NOT_EQUAL,i.b.NOT_CONTAINS,i.b.BLANK];return!!e&&t.indexOf(e)>=0},t.prototype.evaluateNonNullValue=function(e,t,r,o){var n=this,a=e.map((function(e){return n.formatter(e)}))||[],s=this.formatter(t),l=this.textFilterParams,u=l.api,p=l.colDef,d=l.column,g=l.columnApi,h=l.context,f=l.textFormatter;if(r.type===i.b.BLANK)return this.isBlank(t);if(r.type===i.b.NOT_BLANK)return!this.isBlank(t);var v={api:u,colDef:p,column:d,columnApi:g,context:h,node:o.node,data:o.data,filterOption:r.type,value:s,textFormatter:f};return a.some((function(e){return n.matcher(c(c({},v),{filterText:e}))}))},t.DEFAULT_FILTER_OPTIONS=[i.b.CONTAINS,i.b.NOT_CONTAINS,i.b.EQUALS,i.b.NOT_EQUAL,i.b.STARTS_WITH,i.b.ENDS_WITH,i.b.BLANK,i.b.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 r=e.filterOption,o=e.value,n=e.filterText;if(null==n)return!1;switch(r){case t.CONTAINS:return o.indexOf(n)>=0;case t.NOT_CONTAINS:return o.indexOf(n)<0;case t.EQUALS:return o===n;case t.NOT_EQUAL:return o!=n;case t.STARTS_WITH:return 0===o.indexOf(n);case t.ENDS_WITH:var i=o.lastIndexOf(n);return i>=0&&i===o.length-n.length;default:return!1}},u([Object(n.b)("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),u([Object(n.b)("eValue-index1-1")],t.prototype,"eValueTo1",void 0),u([Object(n.b)("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),u([Object(n.b)("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(i.b)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var o,n=r(9),i=r(5),a=r(1),s=r(7),l=r(15),c=r(23),u=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},d=function(e){function t(r){var o=e.call(this)||this;return r||o.setTemplate(t.TEMPLATE),o}return u(t,e),t.prototype.attachCustomElements=function(e,t,r,o,n){this.eSortOrder=e,this.eSortAsc=t,this.eSortDesc=r,this.eSortMixed=o,this.eSortNone=n},t.prototype.setupSort=function(e,t){var r=this;void 0===t&&(t=!1),this.column=e,this.suppressOrder=t,this.setupMultiSortIndicator(),!!this.column.getColDef().sortable&&(this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addManagedListener(this.eventService,n.a.EVENT_SORT_CHANGED,(function(){return r.onSortChanged()})),this.addManagedListener(this.eventService,n.a.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return r.onSortChanged()})),this.onSortChanged())},t.prototype.addInIcon=function(e,t,r){if(null!=t){var o=Object(c.createIconNoSpan)(e,this.gridOptionsWrapper,r);o&&t.appendChild(o)}},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;this.eSortAsc.classList.toggle("ag-hidden",!t)}if(this.eSortDesc){var r="desc"===e;this.eSortDesc.classList.toggle("ag-hidden",!r)}if(this.eSortNone){var o=!this.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon(),n=null==e;this.eSortNone.classList.toggle("ag-hidden",o||!n)}},t.prototype.setupMultiSortIndicator=function(){var e=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var t=this.column.getColDef().showRowGroup;this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()&&t&&(this.addManagedListener(this.eventService,n.a.EVENT_SORT_CHANGED,(function(){return e.updateMultiSortIndicator()})),this.addManagedListener(this.eventService,n.a.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);this.eSortMixed.classList.toggle("ag-hidden",!e)}},t.prototype.updateSortOrder=function(){var e,t=this;if(this.eSortOrder){var r=this.sortController.getColumnsWithSortingOrdered(),o=null!=(e=this.sortController.getDisplaySortIndexForColumn(this.column))?e:-1,n=r.some((function(e){var r;return null!=(r=t.sortController.getDisplaySortIndexForColumn(e))&&r})),a=o>=0&&n;Object(i.setDisplayed)(this.eSortOrder,a),o>=0?this.eSortOrder.innerHTML=(o+1).toString():Object(i.clearElement)(this.eSortOrder)}},t.TEMPLATE='\n \n \n \n \n \n ',p([Object(s.b)("eSortOrder")],t.prototype,"eSortOrder",void 0),p([Object(s.b)("eSortAsc")],t.prototype,"eSortAsc",void 0),p([Object(s.b)("eSortDesc")],t.prototype,"eSortDesc",void 0),p([Object(s.b)("eSortMixed")],t.prototype,"eSortMixed",void 0),p([Object(s.b)("eSortNone")],t.prototype,"eSortNone",void 0),p([Object(a.a)("columnModel")],t.prototype,"columnModel",void 0),p([Object(a.a)("sortController")],t.prototype,"sortController",void 0),t}(l.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var o,n=r(19),i=r(6),a=r(3),s=r(1),l=r(11),c=r(10),u=r(2),p=r(9),d=r(12),g=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},f=function(e){function t(t,r,o,n){var i=e.call(this)||this;return i.columnOrGroup=t,i.eCell=r,i.ariaEl=i.eCell.querySelector("[role=columnheader]")||i.eCell,i.colsSpanning=n,i.beans=o,i}return g(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?Object(c.last)(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,n.a.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,p.a.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,d.a.PROP_DOM_LAYOUT,this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=Object(u.exists)(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup(),r=t.getLeft(),o=t.getOldLeft(),n=this.modifyLeftForPrintLayout(t,o),i=this.modifyLeftForPrintLayout(t,r);this.setLeft(n),this.actualLeft=i,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===i&&e.setLeft(i)}))},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.gridOptionsWrapper.getDomLayout()===a.a.DOM_LAYOUT_PRINT))return t;if(e.getPinned()===a.a.PINNED_LEFT)return t;var r=this.beans.columnModel.getDisplayedColumnsLeftWidth();return e.getPinned()===a.a.PINNED_RIGHT?r+this.beans.columnModel.getBodyContainerWidth()+t:r+t},t.prototype.setLeft=function(e){var t;if(Object(u.exists)(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof n.a)t=this.columnOrGroup;else{var r=this.columnOrGroup.getLeafColumns();if(!r.length)return;r.length>1&&Object(l.setAriaColSpan)(this.ariaEl,r.length),t=r[0]}var o=this.beans.columnModel.getAriaColumnIndex(t);Object(l.setAriaColIndex)(this.ariaEl,o)},h([s.e],t.prototype,"postConstruct",null),t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var o,n=r(1),i=r(168),a=r(170),s=r(15),l=r(8),c=r(23),u=r(5),p=r(63),d=r(11),g=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},f=function(e){function t(t){var r=e.call(this)||this;return r.params=t,r.isActive=!1,r.subMenuIsOpen=!1,r.setTemplate('
'),r}return g(t,e),t.prototype.init=function(){var e=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var t=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),Object(d.setAriaDisabled)(t,!0)):(this.addGuiEventListener("click",(function(t){return e.onItemSelected(t)})),this.addGuiEventListener("keydown",(function(t){t.key!==l.a.ENTER&&t.key!==l.a.SPACE||(t.preventDefault(),e.onItemSelected(t))})),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation(),e.preventDefault()})),this.addGuiEventListener("mouseenter",(function(){return e.onMouseEnter()})),this.addGuiEventListener("mouseleave",(function(){return e.onMouseLeave()}))),this.params.cssClasses&&this.params.cssClasses.forEach((function(t){return e.addCssClass(t)}))},t.prototype.isDisabled=function(){return!!this.params.disabled},t.prototype.openSubMenu=function(e){var r=this;if(void 0===e&&(e=!1),this.closeSubMenu(),this.params.subMenu){var o,n=Object(u.loadTemplate)('');if(this.params.subMenu instanceof Array){var s=Object(d.getAriaLevel)(this.getGui()),l=isNaN(s)?1:s+1,c=this.createBean(new i.a(l));c.setParentComponent(this),c.addMenuItems(this.params.subMenu),n.appendChild(c.getGui()),this.addManagedListener(c,t.EVENT_MENU_ITEM_SELECTED,(function(e){return r.dispatchEvent(e)})),c.addGuiEventListener("mouseenter",(function(){return r.cancelDeactivate()})),o=function(){return r.destroyBean(c)},e&&setTimeout((function(){return c.activateFirstItem()}),0)}else{var p=this.params.subMenu,g=this.createBean(new a.a(p));g.setParentComponent(this);var h=g.getGui(),f=function(){return r.cancelDeactivate()};h.addEventListener("mouseenter",f),o=function(){return h.removeEventListener("mouseenter",f)},n.appendChild(h),p.afterGuiAttached&&setTimeout((function(){return p.afterGuiAttached()}),0)}var v=this.getGui(),y=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:v,ePopup:n}),m=this.gridOptionsWrapper.getLocaleTextFunc(),b=this.popupService.addPopup({modal:!0,eChild:n,positionCallback:y,anchorToElement:v,ariaLabel:m("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,Object(d.setAriaExpanded)(v,!0),this.hideSubMenu=function(){b&&b.hideFunc(),r.subMenuIsOpen=!1,Object(d.setAriaExpanded)(v,!1),o()}}},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,Object(d.setAriaExpanded)(this.getGui(),!1))},t.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},t.prototype.activate=function(e){var t=this;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),e&&this.params.subMenu&&window.setTimeout((function(){t.isAlive()&&t.isActive&&t.openSubMenu()}),300),this.onItemActivated())},t.prototype.deactivate=function(){this.cancelDeactivate(),this.removeCssClass(this.getClassName("active")),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},t.prototype.addIcon=function(){if(this.params.checked||this.params.icon||!this.params.isCompact){var e=Object(u.loadTemplate)('');this.params.checked?e.appendChild(Object(c.createIconNoSpan)("check",this.gridOptionsWrapper)):this.params.icon&&(Object(u.isNodeOrElement)(this.params.icon)?e.appendChild(this.params.icon):"string"==typeof this.params.icon?e.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(e)}},t.prototype.addName=function(){if(this.params.name||!this.params.isCompact){var e=Object(u.loadTemplate)(''+(this.params.name||"")+"");this.getGui().appendChild(e)}},t.prototype.addTooltip=function(){this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new p.a(this)))},t.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},t.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var e=Object(u.loadTemplate)(''+(this.params.shortcut||"")+"");this.getGui().appendChild(e)}},t.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var e=Object(u.loadTemplate)(''),t=this.getGui();if(this.params.subMenu){var r=this.gridOptionsWrapper.isEnableRtl()?"smallLeft":"smallRight";Object(d.setAriaExpanded)(t,!1),e.appendChild(Object(c.createIconNoSpan)(r,this.gridOptionsWrapper))}t.appendChild(e)}},t.prototype.onItemSelected=function(e){if(this.params.action?this.params.action():this.openSubMenu(e&&"keydown"===e.type),!this.params.subMenu||this.params.action){var r={type:t.EVENT_MENU_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip,event:e};this.dispatchEvent(r)}},t.prototype.onItemActivated=function(){var e={type:t.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(e)},t.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},t.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},t.prototype.onMouseEnter=function(){var e=this;this.cancelDeactivate(),this.params.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout((function(){return e.activate(!0)}),t.ACTIVATION_DELAY):this.activate(!0)},t.prototype.onMouseLeave=function(){var e=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout((function(){return e.deactivate()}),t.ACTIVATION_DELAY):this.deactivate()},t.prototype.getClassName=function(e){var t=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return e?t+"-"+e:t},t.EVENT_MENU_ITEM_SELECTED="menuItemSelected",t.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",t.ACTIVATION_DELAY=80,h([Object(n.a)("popupService")],t.prototype,"popupService",void 0),h([n.e],t.prototype,"init",null),t}(s.a)},function(e,t,r){"use strict";function o(e){var t;return null===(t="undefined"!=typeof window?window:void 0)||void 0===t?void 0:t[e]}r.d(t,"a",(function(){return o}))},function(e,t,r){"use strict";r.r(t),r.d(t,"ColumnsToolPanelModule",(function(){return U})),r.d(t,"PrimaryColsPanel",(function(){return F}));var o,n,i=r(0),a=r(27),s=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e[e.EXPANDED=0]="EXPANDED",e[e.COLLAPSED=1]="COLLAPSED",e[e.INDETERMINATE=2]="INDETERMINATE"}(n||(n={}));var c=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return s(t,e),t.prototype.postConstruct=function(){var e=this;this.createExpandIcons(),this.addManagedListener(this.eExpand,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eExpand,"keydown",(function(t){t.key===i.KeyCode.SPACE&&e.onExpandClicked()})),this.addManagedListener(this.eSelect.getInputElement(),"click",this.onSelectClicked.bind(this)),this.eFilterTextField.onValueChange((function(){return e.onFilterTextChanged()})),this.addManagedListener(this.eFilterTextField.getInputElement(),"keypress",this.onMiniFilterKeyPress.bind(this)),this.addManagedListener(this.eventService,i.Events.EVENT_NEW_COLUMNS_LOADED,this.showOrHideOptions.bind(this));var t=this.gridOptionsWrapper.getLocaleTextFunc();this.eSelect.setInputAriaLabel(t("ariaColumnSelectAll","Toggle Select All Columns")),this.eFilterTextField.setInputAriaLabel(t("ariaFilterColumnsInput","Filter Columns Input"))},t.prototype.init=function(e){this.params=e,this.columnModel.isReady()&&this.showOrHideOptions()},t.prototype.createExpandIcons=function(){this.eExpand.appendChild(this.eExpandChecked=i._.createIconNoSpan("columnSelectOpen",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandUnchecked=i._.createIconNoSpan("columnSelectClosed",this.gridOptionsWrapper)),this.eExpand.appendChild(this.eExpandIndeterminate=i._.createIconNoSpan("columnSelectIndeterminate",this.gridOptionsWrapper)),this.setExpandState(n.EXPANDED)},t.prototype.showOrHideOptions=function(){var e=!this.params.suppressColumnFilter,t=!this.params.suppressColumnSelectAll,r=!this.params.suppressColumnExpandAll,o=this.columnModel.isPrimaryColumnGroupsPresent(),n=this.gridOptionsWrapper.getLocaleTextFunc();this.eFilterTextField.setInputPlaceholder(n("searchOoo","Search...")),i._.setDisplayed(this.eFilterTextField.getGui(),e),i._.setDisplayed(this.eSelect.getGui(),t),i._.setDisplayed(this.eExpand,r&&o)},t.prototype.onFilterTextChanged=function(){var e=this;this.onFilterTextChangedDebounced||(this.onFilterTextChangedDebounced=i._.debounce((function(){var t=e.eFilterTextField.getValue();e.dispatchEvent({type:"filterChanged",filterText:t})}),t.DEBOUNCE_DELAY)),this.onFilterTextChangedDebounced()},t.prototype.onMiniFilterKeyPress=function(e){var r=this;e.key===i.KeyCode.ENTER&&setTimeout((function(){return r.onSelectClicked()}),t.DEBOUNCE_DELAY)},t.prototype.onSelectClicked=function(){this.dispatchEvent({type:this.selectState?"unselectAll":"selectAll"})},t.prototype.onExpandClicked=function(){this.dispatchEvent({type:this.expandState===n.EXPANDED?"collapseAll":"expandAll"})},t.prototype.setExpandState=function(e){this.expandState=e,i._.setDisplayed(this.eExpandChecked,this.expandState===n.EXPANDED),i._.setDisplayed(this.eExpandUnchecked,this.expandState===n.COLLAPSED),i._.setDisplayed(this.eExpandIndeterminate,this.expandState===n.INDETERMINATE)},t.prototype.setSelectionState=function(e){this.selectState=e,this.eSelect.setValue(this.selectState)},t.DEBOUNCE_DELAY=300,t.TEMPLATE='',l([Object(i.Autowired)("columnModel")],t.prototype,"columnModel",void 0),l([Object(i.RefSelector)("eExpand")],t.prototype,"eExpand",void 0),l([Object(i.RefSelector)("eSelect")],t.prototype,"eSelect",void 0),l([Object(i.RefSelector)("eFilterTextField")],t.prototype,"eFilterTextField",void 0),l([i.PostConstruct],t.prototype,"postConstruct",null),t}(i.Component),u=function(){function e(e,t,r,o,n){void 0===o&&(o=!1),this.eventService=new i.EventService,this.displayName=e,this.dept=r,this.group=o,o?(this.columnGroup=t,this.expanded=n,this.children=[]):this.column=t}return e.prototype.isGroup=function(){return this.group},e.prototype.getDisplayName=function(){return this.displayName},e.prototype.getColumnGroup=function(){return this.columnGroup},e.prototype.getColumn=function(){return this.column},e.prototype.getDept=function(){return this.dept},e.prototype.isExpanded=function(){return!!this.expanded},e.prototype.getChildren=function(){return this.children},e.prototype.isPassesFilter=function(){return this.passesFilter},e.prototype.setExpanded=function(t){t!==this.expanded&&(this.expanded=t,this.eventService.dispatchEvent({type:e.EVENT_EXPANDED_CHANGED}))},e.prototype.setPassesFilter=function(e){this.passesFilter=e},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e}(),p=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),d=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},g=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},h=function(){for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},v=function(e){function t(t,r,o){var n=e.call(this,'
')||this;return n.column=t,n.mouseEvent=r,n.parentEl=o,n.displayName=null,n}return p(t,e),t.prototype.postConstruct=function(){this.initializeProperties(this.column),this.buildMenuItemMap(),this.column instanceof i.Column?this.displayName=this.columnModel.getDisplayNameForColumn(this.column,"columnToolPanel"):this.displayName=this.columnModel.getDisplayNameForProvidedColumnGroup(null,this.column,"columnToolPanel"),this.isActive()&&(this.mouseEvent.preventDefault(),this.displayContextMenu())},t.prototype.initializeProperties=function(e){e instanceof i.ProvidedColumnGroup?this.columns=e.getLeafColumns():this.columns=[e],this.allowGrouping=this.columns.some((function(e){return e.isPrimary()&&e.isAllowRowGroup()})),this.allowValues=this.columns.some((function(e){return e.isPrimary()&&e.isAllowValue()})),this.allowPivoting=this.columnModel.isPivotMode()&&this.columns.some((function(e){return e.isPrimary()&&e.isAllowPivot()}))},t.prototype.buildMenuItemMap=function(){var e=this,t=this.gridOptionsWrapper.getLocaleTextFunc();this.menuItemMap=new Map,this.menuItemMap.set("rowGroup",{allowedFunction:function(e){return e.isPrimary()&&e.isAllowRowGroup()},activeFunction:function(e){return e.isRowGroupActive()},activateLabel:function(){return t("groupBy","Group by")+" "+e.displayName},deactivateLabel:function(){return t("ungroupBy","Un-Group by")+" "+e.displayName},activateFunction:function(){var t=e.columnModel.getRowGroupColumns();e.columnModel.setRowGroupColumns(e.addColumnsToList(t),"toolPanelUi")},deActivateFunction:function(){var t=e.columnModel.getRowGroupColumns();e.columnModel.setRowGroupColumns(e.removeColumnsFromList(t),"toolPanelUi")},addIcon:"menuAddRowGroup",removeIcon:"menuRemoveRowGroup"}),this.menuItemMap.set("value",{allowedFunction:function(e){return e.isPrimary()&&e.isAllowValue()},activeFunction:function(e){return e.isValueActive()},activateLabel:function(){return t("addToValues","Add "+e.displayName+" to values",[e.displayName])},deactivateLabel:function(){return t("removeFromValues","Remove "+e.displayName+" from values",[e.displayName])},activateFunction:function(){var t=e.columnModel.getValueColumns();e.columnModel.setValueColumns(e.addColumnsToList(t),"toolPanelUi")},deActivateFunction:function(){var t=e.columnModel.getValueColumns();e.columnModel.setValueColumns(e.removeColumnsFromList(t),"toolPanelUi")},addIcon:"valuePanel",removeIcon:"valuePanel"}),this.menuItemMap.set("pivot",{allowedFunction:function(t){return e.columnModel.isPivotMode()&&t.isPrimary()&&t.isAllowPivot()},activeFunction:function(e){return e.isPivotActive()},activateLabel:function(){return t("addToLabels","Add "+e.displayName+" to labels",[e.displayName])},deactivateLabel:function(){return t("removeFromLabels","Remove "+e.displayName+" from labels",[e.displayName])},activateFunction:function(){var t=e.columnModel.getPivotColumns();e.columnModel.setPivotColumns(e.addColumnsToList(t),"toolPanelUi")},deActivateFunction:function(){var t=e.columnModel.getPivotColumns();e.columnModel.setPivotColumns(e.removeColumnsFromList(t),"toolPanelUi")},addIcon:"pivotPanel",removeIcon:"pivotPanel"})},t.prototype.addColumnsToList=function(e){return h(e).concat(this.columns.filter((function(t){return-1===e.indexOf(t)})))},t.prototype.removeColumnsFromList=function(e){var t=this;return e.filter((function(e){return-1===t.columns.indexOf(e)}))},t.prototype.displayContextMenu=function(){var e=this,t=this.getGui(),r=this.createBean(new i.AgMenuList),o=this.getMappedMenuItems(),n=this.gridOptionsWrapper.getLocaleTextFunc(),a=function(){};t.appendChild(r.getGui()),r.addMenuItems(o),r.addManagedListener(r,i.AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED,(function(){e.parentEl.focus(),a()}));var s=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,afterGuiAttached:function(){return e.focusService.focusInto(r.getGui())},ariaLabel:n("ariaLabelContextMenu","Context Menu"),closedCallback:function(t){t instanceof KeyboardEvent&&e.parentEl.focus(),e.destroyBean(r)}});s&&(a=s.hideFunc),this.popupService.positionPopupUnderMouseEvent({type:"columnContextMenu",mouseEvent:this.mouseEvent,ePopup:t})},t.prototype.isActive=function(){return this.allowGrouping||this.allowValues||this.allowPivoting},t.prototype.getMappedMenuItems=function(){var e,t,r=[],o=function(e){var t=n.columns.some((function(t){return e.allowedFunction(t)&&!e.activeFunction(t)})),o=n.columns.some((function(t){return e.allowedFunction(t)&&e.activeFunction(t)}));t&&r.push({name:e.activateLabel(n.displayName),icon:i._.createIconNoSpan(e.addIcon,n.gridOptionsWrapper,null),action:function(){return e.activateFunction()}}),o&&r.push({name:e.deactivateLabel(n.displayName),icon:i._.createIconNoSpan(e.removeIcon,n.gridOptionsWrapper,null),action:function(){return e.deActivateFunction()}})},n=this;try{for(var a=f(this.menuItemMap.values()),s=a.next();!s.done;s=a.next()){o(s.value)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return r},d([Object(i.Autowired)("columnModel")],t.prototype,"columnModel",void 0),d([Object(i.Autowired)("popupService")],t.prototype,"popupService",void 0),d([Object(i.Autowired)("focusService")],t.prototype,"focusService",void 0),d([i.PostConstruct],t.prototype,"postConstruct",null),t}(i.Component),y=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),m=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},b=function(e){function t(t,r,o,n){var i=e.call(this)||this;return i.modelItem=t,i.allowDragging=r,i.eventType=o,i.focusWrapper=n,i.processingColumnStateChange=!1,i.modelItem=t,i.columnGroup=t.getColumnGroup(),i.columnDept=t.getDept(),i.allowDragging=r,i}return y(t,e),t.prototype.init=function(){var e=this;this.setTemplate(t.TEMPLATE),this.eDragHandle=i._.createIconNoSpan("columnDrag",this.gridOptionsWrapper),this.eDragHandle.classList.add("ag-drag-handle","ag-column-select-column-group-drag-handle");var r=this.cbSelect.getGui(),o=this.cbSelect.getInputElement();r.insertAdjacentElement("afterend",this.eDragHandle),o.setAttribute("tabindex","-1"),this.displayName=this.columnModel.getDisplayNameForProvidedColumnGroup(null,this.columnGroup,this.eventType),i._.missing(this.displayName)&&(this.displayName=">>"),this.eLabel.innerHTML=this.displayName?this.displayName:"",this.setupExpandContract(),this.addCssClass("ag-column-select-indent-"+this.columnDept),this.addManagedListener(this.eventService,i.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.eLabel,"click",this.onLabelClicked.bind(this)),this.addManagedListener(this.cbSelect,i.AgCheckbox.EVENT_CHANGED,this.onCheckboxChanged.bind(this)),this.addManagedListener(this.modelItem,u.EVENT_EXPANDED_CHANGED,this.onExpandChanged.bind(this)),this.addManagedListener(this.focusWrapper,"keydown",this.handleKeyDown.bind(this)),this.addManagedListener(this.focusWrapper,"contextmenu",this.onContextMenu.bind(this)),this.setOpenClosedIcons(),this.setupDragging(),this.onColumnStateChanged(),this.addVisibilityListenersToAllChildren(),this.refreshAriaExpanded(),this.refreshAriaLabel(),this.setupTooltip(),i.CssClassApplier.getToolPanelClassesFromColDef(this.columnGroup.getColGroupDef(),this.gridOptionsWrapper,null,this.columnGroup).forEach((function(t){return e.addOrRemoveCssClass(t,!0)}))},t.prototype.getColumns=function(){return this.columnGroup.getLeafColumns()},t.prototype.setupTooltip=function(){var e=this,t=this.columnGroup.getColGroupDef();if(t){var r=function(){var r=t.headerTooltip;e.setTooltip(r)};r(),this.addManagedListener(this.eventService,i.Events.EVENT_NEW_COLUMNS_LOADED,r)}},t.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="columnToolPanelColumnGroup",t},t.prototype.handleKeyDown=function(e){switch(e.key){case i.KeyCode.LEFT:e.preventDefault(),this.modelItem.setExpanded(!1);break;case i.KeyCode.RIGHT:e.preventDefault(),this.modelItem.setExpanded(!0);break;case i.KeyCode.SPACE:e.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected())}},t.prototype.onContextMenu=function(e){var t=this,r=this.columnGroup;if(!this.gridOptionsWrapper.isFunctionsReadOnly()){var o=this.createBean(new v(r,e,this.focusWrapper));this.addDestroyFunc((function(){o.isAlive()&&t.destroyBean(o)}))}},t.prototype.addVisibilityListenersToAllChildren=function(){var e=this;this.columnGroup.getLeafColumns().forEach((function(t){e.addManagedListener(t,i.Column.EVENT_VISIBLE_CHANGED,e.onColumnStateChanged.bind(e)),e.addManagedListener(t,i.Column.EVENT_VALUE_CHANGED,e.onColumnStateChanged.bind(e)),e.addManagedListener(t,i.Column.EVENT_PIVOT_CHANGED,e.onColumnStateChanged.bind(e)),e.addManagedListener(t,i.Column.EVENT_ROW_GROUP_CHANGED,e.onColumnStateChanged.bind(e))}))},t.prototype.setupDragging=function(){var e=this;if(this.allowDragging){var t=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns(),r={type:i.DragSourceType.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,defaultIconName:t?i.DragAndDropService.ICON_HIDE:i.DragAndDropService.ICON_NOT_ALLOWED,getDragItem:function(){return e.createDragItem()},onDragStarted:function(){var t={type:i.Events.EVENT_COLUMN_PANEL_ITEM_DRAG_START,column:e.columnGroup};e.eventService.dispatchEvent(t)},onDragStopped:function(){var t={type:i.Events.EVENT_COLUMN_PANEL_ITEM_DRAG_END};e.eventService.dispatchEvent(t)},onGridEnter:function(){t&&e.onChangeCommon(!0)},onGridExit:function(){t&&e.onChangeCommon(!1)}};this.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc((function(){return e.dragAndDropService.removeDragSource(r)}))}else i._.setDisplayed(this.eDragHandle,!1)},t.prototype.createDragItem=function(){var e={};return this.columnGroup.getLeafColumns().forEach((function(t){e[t.getId()]=t.isVisible()})),{columns:this.columnGroup.getLeafColumns(),visibleState:e}},t.prototype.setupExpandContract=function(){this.eGroupClosedIcon.appendChild(i._.createIcon("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(i._.createIcon("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eGroupClosedIcon,"click",this.onExpandOrContractClicked.bind(this)),this.addManagedListener(this.eGroupOpenedIcon,"click",this.onExpandOrContractClicked.bind(this));var e=new i.TouchListener(this.eColumnGroupIcons,!0);this.addManagedListener(e,i.TouchListener.EVENT_TAP,this.onExpandOrContractClicked.bind(this)),this.addDestroyFunc(e.destroy.bind(e))},t.prototype.onLabelClicked=function(){var e=!this.cbSelect.getValue();this.onChangeCommon(e)},t.prototype.onCheckboxChanged=function(e){this.onChangeCommon(e.selected)},t.prototype.getVisibleLeafColumns=function(){var e=[],t=function(r){r.forEach((function(r){r.isPassesFilter()&&(r.isGroup()?t(r.getChildren()):e.push(r.getColumn()))}))};return t(this.modelItem.getChildren()),e},t.prototype.onChangeCommon=function(e){this.refreshAriaLabel(),this.processingColumnStateChange||this.modelItemUtils.selectAllChildren(this.modelItem.getChildren(),e,this.eventType)},t.prototype.refreshAriaLabel=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("ariaColumnGroup","Column Group"),r=this.cbSelect.getValue()?e("ariaVisible","visible"):e("ariaHidden","hidden"),o=e("ariaToggleVisibility","Press SPACE to toggle visibility");i._.setAriaLabel(this.focusWrapper,this.displayName+" "+t),this.cbSelect.setInputAriaLabel(o+" ("+r+")"),i._.setAriaDescribedBy(this.focusWrapper,this.cbSelect.getInputElement().id)},t.prototype.onColumnStateChanged=function(){var e=this.workOutSelectedValue(),t=this.workOutReadOnlyValue();this.processingColumnStateChange=!0,this.cbSelect.setValue(e),this.cbSelect.setReadOnly(t),this.addOrRemoveCssClass("ag-column-select-column-group-readonly",t),this.processingColumnStateChange=!1},t.prototype.workOutSelectedValue=function(){var e=this,t=this.columnModel.isPivotMode(),r=this.getVisibleLeafColumns(),o=0,n=0;if(r.forEach((function(r){!t&&r.getColDef().lockVisible||(e.isColumnChecked(r,t)?o++:n++)})),!(o>0&&n>0))return o>0},t.prototype.workOutReadOnlyValue=function(){var e=this.columnModel.isPivotMode(),t=0;return this.columnGroup.getLeafColumns().forEach((function(r){e?r.isAnyFunctionAllowed()&&t++:r.getColDef().lockVisible||t++})),0===t},t.prototype.isColumnChecked=function(e,t){if(t){var r=e.isPivotActive(),o=e.isRowGroupActive(),n=e.isValueActive();return r||o||n}return e.isVisible()},t.prototype.onExpandOrContractClicked=function(){var e=this.modelItem.isExpanded();this.modelItem.setExpanded(!e)},t.prototype.onExpandChanged=function(){this.setOpenClosedIcons(),this.refreshAriaExpanded()},t.prototype.setOpenClosedIcons=function(){var e=this.modelItem.isExpanded();i._.setDisplayed(this.eGroupClosedIcon,!e),i._.setDisplayed(this.eGroupOpenedIcon,e)},t.prototype.refreshAriaExpanded=function(){i._.setAriaExpanded(this.focusWrapper,this.modelItem.isExpanded())},t.prototype.getDisplayName=function(){return this.displayName},t.prototype.onSelectAllChanged=function(e){var t=this.cbSelect.getValue();!this.cbSelect.isReadOnly()&&(e&&!t||!e&&t)&&this.cbSelect.toggle()},t.prototype.isSelected=function(){return this.cbSelect.getValue()},t.prototype.isSelectable=function(){return!this.cbSelect.isReadOnly()},t.prototype.setSelected=function(e){this.cbSelect.setValue(e,!0)},t.TEMPLATE='',m([Object(i.Autowired)("columnModel")],t.prototype,"columnModel",void 0),m([Object(i.Autowired)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),m([Object(i.Autowired)("modelItemUtils")],t.prototype,"modelItemUtils",void 0),m([Object(i.RefSelector)("cbSelect")],t.prototype,"cbSelect",void 0),m([Object(i.RefSelector)("eLabel")],t.prototype,"eLabel",void 0),m([Object(i.RefSelector)("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),m([Object(i.RefSelector)("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),m([Object(i.RefSelector)("eColumnGroupIcons")],t.prototype,"eColumnGroupIcons",void 0),m([i.PostConstruct],t.prototype,"init",null),t}(i.Component),w=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),C=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},O="ag-list-item-hovered",S=function(e){function t(t,r){var o=e.call(this)||this;return o.comp=t,o.virtualList=r,o.currentDragColumn=null,o.lastHoveredColumnItem=null,o}return w(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,i.Events.EVENT_COLUMN_PANEL_ITEM_DRAG_START,this.columnPanelItemDragStart.bind(this)),this.addManagedListener(this.eventService,i.Events.EVENT_COLUMN_PANEL_ITEM_DRAG_END,this.columnPanelItemDragEnd.bind(this)),this.createDropTarget(),this.createAutoScrollService()},t.prototype.columnPanelItemDragStart=function(e){var t=e.column;this.currentDragColumn=t,this.getCurrentColumns().find((function(e){var t=e.getColDef();return!!t.suppressMovable||!!t.lockPosition}))&&(this.moveBlocked=!0)},t.prototype.columnPanelItemDragEnd=function(){var e=this;window.setTimeout((function(){e.currentDragColumn=null,e.moveBlocked=!1}),10)},t.prototype.createDropTarget=function(){var e=this,t={isInterestedIn:function(e){return e===i.DragSourceType.ToolPanel},getIconName:function(){return i.DragAndDropService[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 i.AutoScrollService({scrollContainer:e,scrollAxis:"y",getVerticalPosition:function(){return e.scrollTop},setVerticalPosition:function(t){return e.scrollTop=t}})},t.prototype.onDragging=function(e){if(this.currentDragColumn&&!this.moveBlocked){var t=this.getDragColumnItem(e),r=this.virtualList.getComponentAt(t.rowIndex);if(r){var o=r.getGui().parentElement;this.lastHoveredColumnItem&&this.lastHoveredColumnItem.rowIndex===t.rowIndex&&this.lastHoveredColumnItem.position===t.position||(this.autoScrollService.check(e.event),this.clearHoveredItems(),this.lastHoveredColumnItem=t,i._.radioCssClass(o,""+O),i._.radioCssClass(o,"ag-item-highlight-"+t.position))}}},t.prototype.getDragColumnItem=function(e){var t=this.virtualList.getGui(),r=parseFloat(window.getComputedStyle(t).paddingTop),o=this.virtualList.getRowHeight(),n=this.virtualList.getScrollTop(),i=Math.max(0,(e.y-r+n)/o),a=this.comp.getDisplayedColsList().length-1,s=0|Math.min(a,i);return{rowIndex:s,position:Math.round(i)>i||i>a?"bottom":"top",component:this.virtualList.getComponentAt(s)}},t.prototype.onDragStop=function(){if(!this.moveBlocked){var e=this.getTargetIndex(),t=this.getCurrentColumns();null!=e&&this.columnModel.moveColumns(t,e),this.clearHoveredItems(),this.autoScrollService.ensureCleared()}},t.prototype.getMoveDiff=function(e){var t=this.columnModel.getAllGridColumns(),r=this.getCurrentColumns(),o=r[0],n=r.length;return t.indexOf(o)=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},R=function(e){function t(t,r,o,n,i){var a=e.call(this)||this;return a.column=t,a.columnDept=r,a.allowDragging=o,a.groupsExist=n,a.focusWrapper=i,a.processingColumnStateChange=!1,a}return E(t,e),t.prototype.init=function(){var e=this;this.setTemplate(t.TEMPLATE),this.eDragHandle=i._.createIconNoSpan("columnDrag",this.gridOptionsWrapper),this.eDragHandle.classList.add("ag-drag-handle","ag-column-select-column-drag-handle");var r=this.cbSelect.getGui(),o=this.cbSelect.getInputElement();r.insertAdjacentElement("afterend",this.eDragHandle),o.setAttribute("tabindex","-1"),this.displayName=this.columnModel.getDisplayNameForColumn(this.column,"columnToolPanel");var n=i._.escapeString(this.displayName);this.eLabel.innerHTML=n;var a=this.columnDept;this.groupsExist&&this.addCssClass("ag-column-select-add-group-indent"),this.addCssClass("ag-column-select-indent-"+a),this.setupDragging(),this.addManagedListener(this.eventService,i.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.column,i.Column.EVENT_VALUE_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.column,i.Column.EVENT_PIVOT_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.column,i.Column.EVENT_ROW_GROUP_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.column,i.Column.EVENT_VISIBLE_CHANGED,this.onColumnStateChanged.bind(this)),this.addManagedListener(this.focusWrapper,"keydown",this.handleKeyDown.bind(this)),this.addManagedListener(this.focusWrapper,"contextmenu",this.onContextMenu.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"functionsReadOnly",this.onColumnStateChanged.bind(this)),this.addManagedListener(this.cbSelect,i.AgCheckbox.EVENT_CHANGED,this.onCheckboxChanged.bind(this)),this.addManagedListener(this.eLabel,"click",this.onLabelClicked.bind(this)),this.onColumnStateChanged(),this.refreshAriaLabel(),this.setupTooltip(),i.CssClassApplier.getToolPanelClassesFromColDef(this.column.getColDef(),this.gridOptionsWrapper,this.column,null).forEach((function(t){return e.addOrRemoveCssClass(t,!0)}))},t.prototype.getColumn=function(){return this.column},t.prototype.setupTooltip=function(){var e=this,t=function(){var t=e.column.getColDef().headerTooltip;e.setTooltip(t)};t(),this.addManagedListener(this.eventService,i.Events.EVENT_NEW_COLUMNS_LOADED,t)},t.prototype.getTooltipParams=function(){var t=e.prototype.getTooltipParams.call(this);return t.location="columnToolPanelColumn",t.colDef=this.column.getColDef(),t},t.prototype.onContextMenu=function(e){var t=this,r=this.column;if(!this.gridOptionsWrapper.isFunctionsReadOnly()){var o=this.createBean(new v(r,e,this.focusWrapper));this.addDestroyFunc((function(){o.isAlive()&&t.destroyBean(o)}))}},t.prototype.handleKeyDown=function(e){e.key===i.KeyCode.SPACE&&(e.preventDefault(),this.isSelectable()&&this.onSelectAllChanged(!this.isSelected()))},t.prototype.onLabelClicked=function(){if(!this.gridOptionsWrapper.isFunctionsReadOnly()){var e=!this.cbSelect.getValue();this.onChangeCommon(e)}},t.prototype.onCheckboxChanged=function(e){this.onChangeCommon(e.selected)},t.prototype.onChangeCommon=function(e){this.cbSelect.isReadOnly()||(this.refreshAriaLabel(),this.processingColumnStateChange||this.modelItemUtils.setColumn(this.column,e,"toolPanelUi"))},t.prototype.refreshAriaLabel=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("ariaColumn","Column"),r=this.cbSelect.getValue()?e("ariaVisible","visible"):e("ariaHidden","hidden"),o=e("ariaToggleVisibility","Press SPACE to toggle visibility");i._.setAriaLabel(this.focusWrapper,this.displayName+" "+t),this.cbSelect.setInputAriaLabel(o+" ("+r+")"),i._.setAriaDescribedBy(this.focusWrapper,this.cbSelect.getInputElement().id)},t.prototype.setupDragging=function(){var e=this;if(this.allowDragging){var t=!this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns(),r={type:i.DragSourceType.ToolPanel,eElement:this.eDragHandle,dragItemName:this.displayName,defaultIconName:t?i.DragAndDropService.ICON_HIDE:i.DragAndDropService.ICON_NOT_ALLOWED,getDragItem:function(){return e.createDragItem()},onDragStarted:function(){var t={type:i.Events.EVENT_COLUMN_PANEL_ITEM_DRAG_START,column:e.column};e.eventService.dispatchEvent(t)},onDragStopped:function(){var t={type:i.Events.EVENT_COLUMN_PANEL_ITEM_DRAG_END};e.eventService.dispatchEvent(t)},onGridEnter:function(){t&&e.onChangeCommon(!0)},onGridExit:function(){t&&e.onChangeCommon(!1)}};this.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc((function(){return e.dragAndDropService.removeDragSource(r)}))}else i._.setDisplayed(this.eDragHandle,!1)},t.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},t.prototype.onColumnStateChanged=function(){this.processingColumnStateChange=!0;var e=this.columnModel.isPivotMode();if(e){var t=this.column.isAnyFunctionActive();this.cbSelect.setValue(t)}else this.cbSelect.setValue(this.column.isVisible());var r=!0,o=!0;if(e){var n=this.gridOptionsWrapper.isFunctionsReadOnly(),i=!this.column.isAnyFunctionAllowed();o=r=!n&&!i}else{var a=this.column.getColDef(),s=a.enableRowGroup,l=a.enableValue,c=a.lockPosition,u=a.suppressMovable;r=!a.lockVisible,o=!!s||!!l||!(!!c||!!u)}this.cbSelect.setReadOnly(!r),this.eDragHandle.classList.toggle("ag-column-select-column-readonly",!o),this.addOrRemoveCssClass("ag-column-select-column-readonly",!o&&!r);var p=e&&this.gridOptionsWrapper.isFunctionsPassive();this.cbSelect.setPassive(p),this.processingColumnStateChange=!1},t.prototype.getDisplayName=function(){return this.displayName},t.prototype.onSelectAllChanged=function(e){e!==this.cbSelect.getValue()&&(this.cbSelect.isReadOnly()||this.cbSelect.toggle())},t.prototype.isSelected=function(){return this.cbSelect.getValue()},t.prototype.isSelectable=function(){return!this.cbSelect.isReadOnly()},t.prototype.isExpandable=function(){return!1},t.prototype.setExpanded=function(e){console.warn("AG Grid: can not expand a column item that does not represent a column group header")},t.TEMPLATE='',x([Object(i.Autowired)("columnModel")],t.prototype,"columnModel",void 0),x([Object(i.Autowired)("dragAndDropService")],t.prototype,"dragAndDropService",void 0),x([Object(i.Autowired)("modelItemUtils")],t.prototype,"modelItemUtils",void 0),x([Object(i.RefSelector)("eLabel")],t.prototype,"eLabel",void 0),x([Object(i.RefSelector)("cbSelect")],t.prototype,"cbSelect",void 0),x([i.PostConstruct],t.prototype,"init",null),t}(i.Component),T=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),A=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},P=function(){function e(e){this.items=e}return e.prototype.getRowCount=function(){return this.items.length},e.prototype.getRow=function(e){return this.items[e]},e}(),_=function(e){function t(){var r=e.call(this,t.TEMPLATE)||this;return r.destroyColumnItemFuncs=[],r}return T(t,e),t.prototype.destroyColumnTree=function(){this.allColsTree=[],this.destroyColumnItemFuncs.forEach((function(e){return e()})),this.destroyColumnItemFuncs=[]},t.prototype.init=function(e,t,r){var o=this;this.params=e,this.allowDragging=t,this.eventType=r,this.params.suppressSyncLayoutWithGrid||this.addManagedListener(this.eventService,i.Events.EVENT_COLUMN_MOVED,this.onColumnsChanged.bind(this)),this.addManagedListener(this.eventService,i.Events.EVENT_NEW_COLUMNS_LOADED,this.onColumnsChanged.bind(this)),[i.Events.EVENT_COLUMN_PIVOT_CHANGED,i.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,i.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,i.Events.EVENT_COLUMN_VALUE_CHANGED,i.Events.EVENT_COLUMN_VISIBLE,i.Events.EVENT_NEW_COLUMNS_LOADED].forEach((function(e){o.addManagedListener(o.eventService,e,o.fireSelectionChangedEvent.bind(o))})),this.expandGroupsByDefault=!this.params.contractColumnSelection;var n=this.gridOptionsWrapper.getLocaleTextFunc()("ariaColumnList","Column List");this.virtualList=this.createManagedBean(new i.VirtualList("column-select","tree",n)),this.appendChild(this.virtualList.getGui()),this.virtualList.setComponentCreator((function(e,t){return i._.setAriaLevel(t,e.getDept()+1),o.createComponentFromItem(e,t)})),this.columnModel.isReady()&&this.onColumnsChanged(),e.suppressColumnMove||this.gridOptionsWrapper.isSuppressMovableColumns()||this.createManagedBean(new S(this,this.virtualList))},t.prototype.createComponentFromItem=function(e,t){if(e.isGroup()){var r=new b(e,this.allowDragging,this.eventType,t);return this.getContext().createBean(r),r}var o=new R(e.getColumn(),e.getDept(),this.allowDragging,this.groupsExist,t);return this.getContext().createBean(o),o},t.prototype.onColumnsChanged=function(){var e=this.getExpandedStates(),t=this.columnModel.isPivotMode();!this.params.suppressSyncLayoutWithGrid&&!t?this.buildTreeFromWhatGridIsDisplaying():this.buildTreeFromProvidedColumnDefs(),this.setExpandedStates(e),this.markFilteredColumns(),this.flattenAndFilterModel()},t.prototype.getDisplayedColsList=function(){return this.displayedColsList},t.prototype.getExpandedStates=function(){if(!this.allColsTree)return{};var e={};return this.forEachItem((function(t){if(t.isGroup()){var r=t.getColumnGroup();r&&(e[r.getId()]=t.isExpanded())}})),e},t.prototype.setExpandedStates=function(e){this.allColsTree&&this.forEachItem((function(t){if(t.isGroup()){var r=t.getColumnGroup();if(r){var o=e[r.getId()];null!=o&&t.setExpanded(o)}}}))},t.prototype.buildTreeFromWhatGridIsDisplaying=function(){this.colDefService.syncLayoutWithGrid(this.setColumnLayout.bind(this))},t.prototype.setColumnLayout=function(e){var t=this.colDefService.createColumnTree(e);this.buildListModel(t),this.groupsExist=e.some((function(e){return e&&void 0!==e.children})),this.markFilteredColumns(),this.flattenAndFilterModel()},t.prototype.buildTreeFromProvidedColumnDefs=function(){this.buildListModel(this.columnModel.getPrimaryColumnTree()),this.groupsExist=this.columnModel.isPrimaryColumnGroupsPresent()},t.prototype.buildListModel=function(e){var t=this,r=this.onColumnExpanded.bind(this),o=function(e,t,r){e.forEach((function(e){e instanceof i.ProvidedColumnGroup?n(e,t,r):a(e,t,r)}))},n=function(e,n,i){var a=e.getColGroupDef();if(!(a&&a.suppressColumnsToolPanel))if(e.isPadding())o(e.getChildren(),n,i);else{var s=t.columnModel.getDisplayNameForProvidedColumnGroup(null,e,t.eventType),l=new u(s,e,n,!0,t.expandGroupsByDefault);i.push(l),function(e){e.addEventListener(u.EVENT_EXPANDED_CHANGED,r);var o=e.removeEventListener.bind(e,u.EVENT_EXPANDED_CHANGED,r);t.destroyColumnItemFuncs.push(o)}(l),o(e.getChildren(),n+1,l.getChildren())}},a=function(e,r,o){if(!(e.getColDef()&&e.getColDef().suppressColumnsToolPanel)){var n=t.columnModel.getDisplayNameForColumn(e,"columnToolPanel");o.push(new u(n,e,r))}};this.destroyColumnTree(),o(e,0,this.allColsTree)},t.prototype.onColumnExpanded=function(){this.flattenAndFilterModel()},t.prototype.flattenAndFilterModel=function(){var e=this;this.displayedColsList=[];var t=function(r){r.isPassesFilter()&&(e.displayedColsList.push(r),r.isGroup()&&r.isExpanded()&&r.getChildren().forEach(t))};this.allColsTree.forEach(t),this.virtualList.setModel(new P(this.displayedColsList));var r=this.virtualList.getLastFocusedRow();this.virtualList.refresh(),null!=r&&this.focusRowIfAlive(r),this.notifyListeners()},t.prototype.focusRowIfAlive=function(e){var t=this;window.setTimeout((function(){t.isAlive()&&t.virtualList.focusRow(e)}),0)},t.prototype.forEachItem=function(e){var t=function(r){r.forEach((function(r){e(r),r.isGroup()&&t(r.getChildren())}))};t(this.allColsTree)},t.prototype.doSetExpandedAll=function(e){this.forEachItem((function(t){t.isGroup()&&t.setExpanded(e)}))},t.prototype.setGroupsExpanded=function(e,t){if(t){var r=[];this.forEachItem((function(o){if(o.isGroup()){var n=o.getColumnGroup().getId();t.indexOf(n)>=0&&(o.setExpanded(e),r.push(n))}}));var o=t.filter((function(e){return!i._.includes(r,e)}));o.length>0&&console.warn("AG Grid: unable to find group(s) for supplied groupIds:",o)}else this.doSetExpandedAll(e)},t.prototype.getExpandState=function(){var e=0,t=0;return this.forEachItem((function(r){r.isGroup()&&(r.isExpanded()?e++:t++)})),e>0&&t>0?n.INDETERMINATE:t>0?n.COLLAPSED:n.EXPANDED},t.prototype.doSetSelectedAll=function(e){this.modelItemUtils.selectAllChildren(this.allColsTree,e,this.eventType)},t.prototype.getSelectionState=function(){var e=0,t=0,r=this.columnModel.isPivotMode();if(this.forEachItem((function(o){if(!o.isGroup()&&o.isPassesFilter()){var n,i=o.getColumn(),a=i.getColDef();if(r){if(!i.isAllowPivot()&&!i.isAllowRowGroup()&&!i.isAllowValue())return;n=i.isValueActive()||i.isPivotActive()||i.isRowGroupActive()}else{if(a.lockVisible)return;n=i.isVisible()}n?e++:t++}})),!(e>0&&t>0))return!(0===e||t>0)},t.prototype.setFilterText=function(e){this.filterText=i._.exists(e)?e.toLowerCase():null,this.markFilteredColumns(),this.flattenAndFilterModel()},t.prototype.markFilteredColumns=function(){var e=this,t=function(t){if(!i._.exists(e.filterText))return!0;var r=t.getDisplayName();return null==r||-1!==r.toLowerCase().indexOf(e.filterText)},r=function(e,o){var n=!1;if(e.isGroup()){var i=t(e);e.getChildren().forEach((function(e){var t=r(e,i||o);t&&(n=t)}))}var a=!(!o&&!n)||t(e);return e.setPassesFilter(a),a};this.allColsTree.forEach((function(e){return r(e,!1)}))},t.prototype.notifyListeners=function(){this.fireGroupExpandedEvent(),this.fireSelectionChangedEvent()},t.prototype.fireGroupExpandedEvent=function(){var e=this.getExpandState();this.dispatchEvent({type:"groupExpanded",state:e})},t.prototype.fireSelectionChangedEvent=function(){var e=this.getSelectionState();this.dispatchEvent({type:"selectionChanged",state:e})},t.TEMPLATE='',A([Object(i.Autowired)("columnModel")],t.prototype,"columnModel",void 0),A([Object(i.Autowired)("toolPanelColDefService")],t.prototype,"colDefService",void 0),A([Object(i.Autowired)("modelItemUtils")],t.prototype,"modelItemUtils",void 0),A([i.PreDestroy],t.prototype,"destroyColumnTree",null),t}(i.Component),D=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),M=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return D(t,e),t.prototype.createTemplate=function(){return'
\n \n
'},t.prototype.init=function(){this.setTemplate(this.createTemplate()),this.cbPivotMode.setValue(this.columnModel.isPivotMode());var e=this.gridOptionsWrapper.getLocaleTextFunc();this.cbPivotMode.setLabel(e("pivotMode","Pivot Mode")),this.addManagedListener(this.cbPivotMode,i.AgCheckbox.EVENT_CHANGED,this.onBtPivotMode.bind(this)),this.addManagedListener(this.eventService,i.Events.EVENT_NEW_COLUMNS_LOADED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,i.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this))},t.prototype.onBtPivotMode=function(){var e=!!this.cbPivotMode.getValue();if(e!==this.columnModel.isPivotMode()){this.columnModel.setPivotMode(e,"toolPanelUi");var t=this.gridOptionsWrapper.getApi();t&&t.refreshHeader()}},t.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.cbPivotMode.setValue(e)},M([Object(i.Autowired)("columnModel")],t.prototype,"columnModel",void 0),M([Object(i.RefSelector)("cbPivotMode")],t.prototype,"cbPivotMode",void 0),M([i.PreConstruct],t.prototype,"init",null),t}(i.Component),I=r(45),L=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),k=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},F=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return L(t,e),t.prototype.postConstruct=function(){this.initialiseTabGuard({})},t.prototype.init=function(e,t,r){this.allowDragging=e,this.params=t,this.eventType=r,this.primaryColsHeaderPanel.init(this.params);var o=this.params.suppressColumnFilter,n=this.params.suppressColumnSelectAll;this.params.suppressColumnExpandAll&&o&&n&&this.primaryColsHeaderPanel.setDisplayed(!1),this.addManagedListener(this.primaryColsListPanel,"groupExpanded",this.onGroupExpanded.bind(this)),this.addManagedListener(this.primaryColsListPanel,"selectionChanged",this.onSelectionChange.bind(this)),this.primaryColsListPanel.init(this.params,this.allowDragging,this.eventType),this.addManagedListener(this.primaryColsHeaderPanel,"expandAll",this.onExpandAll.bind(this)),this.addManagedListener(this.primaryColsHeaderPanel,"collapseAll",this.onCollapseAll.bind(this)),this.addManagedListener(this.primaryColsHeaderPanel,"selectAll",this.onSelectAll.bind(this)),this.addManagedListener(this.primaryColsHeaderPanel,"unselectAll",this.onUnselectAll.bind(this)),this.addManagedListener(this.primaryColsHeaderPanel,"filterChanged",this.onFilterChanged.bind(this)),this.positionableFeature=new i.PositionableFeature(this.getGui(),{minHeight:100}),this.createManagedBean(this.positionableFeature)},t.prototype.toggleResizable=function(e){this.positionableFeature.setResizable(!!e&&{bottom:!0})},t.prototype.onExpandAll=function(){this.primaryColsListPanel.doSetExpandedAll(!0)},t.prototype.onCollapseAll=function(){this.primaryColsListPanel.doSetExpandedAll(!1)},t.prototype.expandGroups=function(e){this.primaryColsListPanel.setGroupsExpanded(!0,e)},t.prototype.collapseGroups=function(e){this.primaryColsListPanel.setGroupsExpanded(!1,e)},t.prototype.setColumnLayout=function(e){this.primaryColsListPanel.setColumnLayout(e)},t.prototype.onFilterChanged=function(e){this.primaryColsListPanel.setFilterText(e.filterText)},t.prototype.syncLayoutWithGrid=function(){this.primaryColsListPanel.onColumnsChanged()},t.prototype.onSelectAll=function(){this.primaryColsListPanel.doSetSelectedAll(!0)},t.prototype.onUnselectAll=function(){this.primaryColsListPanel.doSetSelectedAll(!1)},t.prototype.onGroupExpanded=function(e){this.primaryColsHeaderPanel.setExpandState(e.state)},t.prototype.onSelectionChange=function(e){this.primaryColsHeaderPanel.setSelectionState(e.state)},t.TEMPLATE='
\n \n \n
',k([Object(i.RefSelector)("primaryColsHeaderPanel")],t.prototype,"primaryColsHeaderPanel",void 0),k([Object(i.RefSelector)("primaryColsListPanel")],t.prototype,"primaryColsListPanel",void 0),k([i.PostConstruct],t.prototype,"postConstruct",null),t}(i.TabGuardComp),G=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),j=function(){return(j=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},B=function(e){function t(){var r=e.call(this,t.TEMPLATE)||this;return r.initialised=!1,r.childDestroyFuncs=[],r}return G(t,e),t.prototype.setVisible=function(t){e.prototype.setDisplayed.call(this,t),t&&!this.initialised&&this.init(this.params)},t.prototype.init=function(e){var t=this,r={suppressColumnMove:!1,suppressColumnSelectAll:!1,suppressColumnFilter:!1,suppressColumnExpandAll:!1,contractColumnSelection:!1,suppressPivotMode:!1,suppressRowGroups:!1,suppressValues:!1,suppressPivots:!1,suppressSyncLayoutWithGrid:!1,api:this.gridApi,columnApi:this.columnApi};if(this.params=j(j(j({},r),e),{context:this.gridOptionsWrapper.getContext()}),this.isRowGroupingModuleLoaded()&&!this.params.suppressPivotMode&&(this.pivotModePanel=this.createBean(new N),this.childDestroyFuncs.push((function(){return t.destroyBean(t.pivotModePanel)})),this.appendChild(this.pivotModePanel)),this.primaryColsPanel=this.createBean(new F),this.childDestroyFuncs.push((function(){return t.destroyBean(t.primaryColsPanel)})),this.primaryColsPanel.init(!0,this.params,"toolPanelUi"),this.primaryColsPanel.addCssClass("ag-column-panel-column-select"),this.appendChild(this.primaryColsPanel),this.isRowGroupingModuleLoaded()){this.params.suppressRowGroups||(this.rowGroupDropZonePanel=this.createBean(new I.RowGroupDropZonePanel(!1)),this.childDestroyFuncs.push((function(){return t.destroyBean(t.rowGroupDropZonePanel)})),this.appendChild(this.rowGroupDropZonePanel)),this.params.suppressValues||(this.valuesDropZonePanel=this.createBean(new I.ValuesDropZonePanel(!1)),this.childDestroyFuncs.push((function(){return t.destroyBean(t.valuesDropZonePanel)})),this.appendChild(this.valuesDropZonePanel)),this.params.suppressPivots||(this.pivotDropZonePanel=this.createBean(new I.PivotDropZonePanel(!1)),this.childDestroyFuncs.push((function(){return t.destroyBean(t.pivotDropZonePanel)})),this.appendChild(this.pivotDropZonePanel)),this.setLastVisible();var o=this.addManagedListener(this.eventService,i.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){t.resetChildrenHeight(),t.setLastVisible()}));this.childDestroyFuncs.push((function(){return o()}))}this.initialised=!0},t.prototype.setPivotModeSectionVisible=function(e){var t=this;this.isRowGroupingModuleLoaded()&&(this.pivotModePanel?this.pivotModePanel.setDisplayed(e):e&&(this.pivotModePanel=this.createBean(new N),this.getGui().insertBefore(this.pivotModePanel.getGui(),this.getGui().firstChild),this.childDestroyFuncs.push((function(){return t.destroyBean(t.pivotModePanel)}))),this.setLastVisible())},t.prototype.setRowGroupsSectionVisible=function(e){this.isRowGroupingModuleLoaded()&&(this.rowGroupDropZonePanel?this.rowGroupDropZonePanel.setDisplayed(e):e&&(this.rowGroupDropZonePanel=this.createManagedBean(new I.RowGroupDropZonePanel(!1)),this.appendChild(this.rowGroupDropZonePanel)),this.setLastVisible())},t.prototype.setValuesSectionVisible=function(e){this.isRowGroupingModuleLoaded()&&(this.valuesDropZonePanel?this.valuesDropZonePanel.setDisplayed(e):e&&(this.valuesDropZonePanel=this.createManagedBean(new I.ValuesDropZonePanel(!1)),this.appendChild(this.valuesDropZonePanel)),this.setLastVisible())},t.prototype.setPivotSectionVisible=function(e){this.isRowGroupingModuleLoaded()&&(this.pivotDropZonePanel?this.pivotDropZonePanel.setDisplayed(e):e&&(this.pivotDropZonePanel=this.createManagedBean(new I.PivotDropZonePanel(!1)),this.appendChild(this.pivotDropZonePanel),this.pivotDropZonePanel.setDisplayed(e)),this.setLastVisible())},t.prototype.setResizers=function(){[this.primaryColsPanel,this.rowGroupDropZonePanel,this.valuesDropZonePanel,this.pivotDropZonePanel].forEach((function(e){if(e){var t=e.getGui();e.toggleResizable(!t.classList.contains("ag-last-column-drop")&&!t.classList.contains("ag-hidden"))}}))},t.prototype.setLastVisible=function(){var e=this.getGui();Array.prototype.slice.call(e.querySelectorAll(".ag-column-drop")).forEach((function(e){return e.classList.remove("ag-last-column-drop")}));var t=e.querySelectorAll(".ag-column-drop:not(.ag-hidden)"),r=i._.last(t);r&&r.classList.add("ag-last-column-drop"),this.setResizers()},t.prototype.resetChildrenHeight=function(){for(var e=this.getGui().children,t=0;t',z([Object(i.Autowired)("gridApi")],t.prototype,"gridApi",void 0),z([Object(i.Autowired)("columnApi")],t.prototype,"columnApi",void 0),t}(i.Component),V=r(61),W=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},H=function(){function e(){}return e.prototype.selectAllChildren=function(e,t,r){var o=this.extractAllLeafColumns(e);this.setAllColumns(o,t,r)},e.prototype.setColumn=function(e,t,r){this.setAllColumns([e],t,r)},e.prototype.setAllColumns=function(e,t,r){this.columnModel.isPivotMode()?this.setAllPivot(e,t,r):this.setAllVisible(e,t,r)},e.prototype.extractAllLeafColumns=function(e){var t=[],r=function(e){e.forEach((function(e){e.isPassesFilter()&&(e.isGroup()?r(e.getChildren()):t.push(e.getColumn()))}))};return r(e),t},e.prototype.setAllVisible=function(e,t,r){var o=[];e.forEach((function(e){e.getColDef().lockVisible||e.isVisible()!=t&&o.push({colId:e.getId(),hide:!t})})),o.length>0&&this.columnModel.applyColumnState({state:o},r)},e.prototype.setAllPivot=function(e,t,r){this.gridOptionsWrapper.isFunctionsPassive()?this.setAllPivotPassive(e,t):this.setAllPivotActive(e,t,r)},e.prototype.setAllPivotPassive=function(e,t){var r=this.columnModel.getPivotColumns().slice(),o=this.columnModel.getValueColumns().slice(),n=this.columnModel.getRowGroupColumns().slice(),a=!1,s=!1,l=!1,c=t?function(e){e.isAnyFunctionActive()||(e.isAllowValue()?(o.push(e),s=!0):e.isAllowRowGroup()?(n.push(e),a=!0):e.isAllowPivot()&&(r.push(e),l=!0))}:function(e){e.isAnyFunctionActive()&&(r.indexOf(e)>=0&&(i._.removeFromArray(r,e),a=!0),o.indexOf(e)>=0&&(i._.removeFromArray(o,e),s=!0),n.indexOf(e)>=0&&(i._.removeFromArray(n,e),l=!0))};if(e.forEach(c),a){var u={type:i.Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,columns:r};this.eventService.dispatchEvent(u)}if(l){var p={type:i.Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,columns:n};this.eventService.dispatchEvent(p)}if(s){var d={type:i.Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,columns:n};this.eventService.dispatchEvent(d)}},e.prototype.setAllPivotActive=function(e,t,r){var o=this,n=[],i=t?function(e){if(!e.isAnyFunctionActive())if(e.isAllowValue()){var t="string"==typeof e.getAggFunc()?e.getAggFunc():o.aggFuncService.getDefaultAggFunc(e);n.push({colId:e.getId(),aggFunc:t})}else e.isAllowRowGroup()?n.push({colId:e.getId(),rowGroup:!0}):e.isAllowPivot()&&n.push({colId:e.getId(),pivot:!0})}:function(e){(e.isPivotActive()||e.isRowGroupActive()||e.isValueActive())&&n.push({colId:e.getId(),pivot:!1,rowGroup:!1,aggFunc:null})};e.forEach(i),n.length>0&&this.columnModel.applyColumnState({state:n},r)},W([Object(i.Autowired)("aggFuncService")],e.prototype,"aggFuncService",void 0),W([Object(i.Autowired)("columnModel")],e.prototype,"columnModel",void 0),W([Object(i.Autowired)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),W([Object(i.Autowired)("eventService")],e.prototype,"eventService",void 0),e=W([Object(i.Bean)("modelItemUtils")],e)}(),U={moduleName:i.ModuleNames.ColumnToolPanelModule,beans:[H],agStackComponents:[{componentName:"AgPrimaryColsHeader",componentClass:c},{componentName:"AgPrimaryColsList",componentClass:_},{componentName:"AgPrimaryCols",componentClass:F}],userComponents:[{componentName:"agColumnsToolPanel",componentClass:B}],dependantModules:[a.EnterpriseCoreModule,I.RowGroupingModule,V.SideBarModule]}},function(e,t,r){"use strict";r.r(t),r.d(t,"RangeSelectionModule",(function(){return A}));var o,n=r(0),i=r(27),a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(){return(s=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},u=function(){for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellRanges=[],t.bodyScrollListener=t.onBodyScroll.bind(t),t.dragging=!1,t.intersectionRange=!1,t}return a(t,e),t.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,n.Events.EVENT_NEW_COLUMNS_LOADED,(function(){return e.onColumnsChanged()})),this.addManagedListener(this.eventService,n.Events.EVENT_COLUMN_VISIBLE,this.onColumnsChanged.bind(this)),this.addManagedListener(this.eventService,n.Events.EVENT_COLUMN_VALUE_CHANGED,this.onColumnsChanged.bind(this)),this.addManagedListener(this.eventService,n.Events.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return e.removeAllCellRanges()})),this.addManagedListener(this.eventService,n.Events.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return e.removeAllCellRanges()})),this.addManagedListener(this.eventService,n.Events.EVENT_COLUMN_PIVOT_CHANGED,(function(){return e.removeAllCellRanges()})),this.addManagedListener(this.eventService,n.Events.EVENT_COLUMN_GROUP_OPENED,this.refreshLastRangeStart.bind(this)),this.addManagedListener(this.eventService,n.Events.EVENT_COLUMN_MOVED,this.refreshLastRangeStart.bind(this)),this.addManagedListener(this.eventService,n.Events.EVENT_COLUMN_PINNED,this.refreshLastRangeStart.bind(this)),this.ctrlsService.whenReady((function(){var t=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new n.AutoScrollService({scrollContainer:t.getBodyViewportElement(),scrollAxis:"xy",getVerticalPosition:function(){return t.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(e){return t.getScrollFeature().setVerticalScrollPosition(e)},getHorizontalPosition:function(){return t.getScrollFeature().getHScrollPosition().left},setHorizontalPosition:function(e){return t.getScrollFeature().setHorizontalScrollPosition(e)},shouldSkipVerticalScroll:function(){return e.gridOptionsWrapper.getDomLayout()!==n.Constants.DOM_LAYOUT_NORMAL},shouldSkipHorizontalScroll:function(){return t.getScrollFeature().isHorizontalScrollShowing()}})}))},t.prototype.onColumnsChanged=function(){var e=this;this.refreshLastRangeStart();var t=this.columnModel.getAllDisplayedColumns();this.cellRanges.forEach((function(r){var o=r.columns;r.columns=r.columns.filter((function(e){return e.isVisible()&&-1!==t.indexOf(e)})),!n._.areEqual(o,r.columns)&&e.dispatchChangedEvent(!1,!0,r.id)}));var r=this.cellRanges.length;this.cellRanges=this.cellRanges.filter((function(e){return e.columns.length>0})),r>this.cellRanges.length&&this.dispatchChangedEvent(!1,!0)},t.prototype.refreshLastRangeStart=function(){var e=n._.last(this.cellRanges);e&&this.refreshRangeStart(e)},t.prototype.isContiguousRange=function(e){var t=e.columns;if(!t.length)return!1;var r=this.columnModel.getAllDisplayedColumns(),o=t.map((function(e){return r.indexOf(e)})).sort((function(e,t){return e-t}));return n._.last(o)-o[0]+1===t.length},t.prototype.getRangeStartRow=function(e){return e.startRow&&e.endRow?this.rowPositionUtils.before(e.startRow,e.endRow)?e.startRow:e.endRow:{rowIndex:0,rowPinned:this.pinnedRowModel.getPinnedTopRowCount()>0?n.Constants.PINNED_TOP:null}},t.prototype.getRangeEndRow=function(e){if(e.startRow&&e.endRow)return this.rowPositionUtils.before(e.startRow,e.endRow)?e.endRow:e.startRow;var t=this.pinnedRowModel.getPinnedBottomRowCount();return t>0?{rowIndex:t-1,rowPinned:n.Constants.PINNED_BOTTOM}:{rowIndex:this.rowModel.getRowCount()-1,rowPinned:null}},t.prototype.setRangeToCell=function(e,t){if(void 0===t&&(t=!1),this.gridOptionsWrapper.isEnableRangeSelection()){var r=this.calculateColumnsBetween(e.column,e.column);if(r){(this.gridOptionsWrapper.isSuppressMultiRangeSelection()||!t||n._.missing(this.cellRanges))&&this.removeAllCellRanges(!0);var o={rowIndex:e.rowIndex,rowPinned:e.rowPinned},i={startRow:o,endRow:o,columns:r,startColumn:e.column};this.cellRanges.push(i),this.setNewestRangeStartCell(e),this.onDragStop(),this.dispatchChangedEvent(!0,!0)}}},t.prototype.extendLatestRangeToCell=function(e){if(!this.isEmpty()&&this.newestRangeStartCell){var t=n._.last(this.cellRanges);this.updateRangeEnd(t,e)}},t.prototype.updateRangeEnd=function(e,t,r){void 0===r&&(r=!1);var o=t.column,n=this.calculateColumnsBetween(e.startColumn,o);n&&!this.isLastCellOfRange(e,t)&&(e.columns=n,e.endRow={rowIndex:t.rowIndex,rowPinned:t.rowPinned},r||this.dispatchChangedEvent(!0,!0,e.id))},t.prototype.refreshRangeStart=function(e){var t=e.startColumn,r=e.columns,o=function(t,r){var o=e.columns.filter((function(e){return e!==t}));t?(e.startColumn=t,e.columns=r?u([t],o):u(o,[t])):e.columns=o},i=this.getRangeEdgeColumns(e),a=i.left,s=i.right;t===r[0]&&t!==a?o(a,!0):t===n._.last(r)&&t===s&&o(s,!1)},t.prototype.getRangeEdgeColumns=function(e){var t=this.columnModel.getAllDisplayedColumns(),r=e.columns.map((function(e){return t.indexOf(e)})).filter((function(e){return e>-1})).sort((function(e,t){return e-t}));return{left:t[r[0]],right:t[n._.last(r)]}},t.prototype.extendLatestRangeInDirection=function(e){if(!this.isEmpty()&&this.newestRangeStartCell){var t=e.key,r=e.ctrlKey||e.metaKey,o=n._.last(this.cellRanges),i=this.newestRangeStartCell,a=o.columns[0],s=n._.last(o.columns),l=o.endRow.rowIndex,c=o.endRow.rowPinned,u={column:i.column===a?s:a,rowIndex:l,rowPinned:c},p=this.cellNavigationService.getNextCellToFocus(t,u,r);if(p)return this.setCellRange({rowStartIndex:i.rowIndex,rowStartPinned:i.rowPinned,rowEndIndex:p.rowIndex,rowEndPinned:p.rowPinned,columnStart:i.column,columnEnd:p.column}),p}},t.prototype.setCellRange=function(e){this.gridOptionsWrapper.isEnableRangeSelection()&&(this.removeAllCellRanges(!0),this.addCellRange(e))},t.prototype.setCellRanges=function(e){var t=this;n._.shallowCompare(this.cellRanges,e)||(this.removeAllCellRanges(!0),e.forEach((function(e){e.columns&&e.startRow&&t.setNewestRangeStartCell({rowIndex:e.startRow.rowIndex,rowPinned:e.startRow.rowPinned,column:e.columns[0]}),t.cellRanges.push(e)})),this.dispatchChangedEvent(!1,!0))},t.prototype.setNewestRangeStartCell=function(e){this.newestRangeStartCell=e},t.prototype.clearCellRangeCellValues=function(e){var t=this;e||(e=this.cellRanges),e.forEach((function(e){t.forEachRowInRange(e,(function(r){var o=t.rowPositionUtils.getRowNode(r);if(o)for(var n=0;n1)return!0;var t=this.cellRanges[0],r=this.getRangeStartRow(t),o=this.getRangeEndRow(t);return r.rowPinned!==o.rowPinned||r.rowIndex!==o.rowIndex||1!==t.columns.length},t.prototype.areAllRangesAbleToMerge=function(){var e,t,r,o=this,n=new Map;if(this.cellRanges.length<=1)return!0;this.cellRanges.forEach((function(e){o.forEachRowInRange(e,(function(t){var r=(t.rowPinned||"normal")+"_"+t.rowIndex,o=n.get(r),i=e.columns.map((function(e){return e.getId()}));if(o){var a=i.filter((function(e){return-1===o.indexOf(e)}));o.push.apply(o,u(a))}else n.set(r,i)}))}));try{for(var i=p(n.values()),a=i.next();!a.done;a=i.next()){var s=a.value.sort().join();if(void 0!==r){if(r!==s)return!1}else r=s}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return!0},t.prototype.forEachRowInRange=function(e,t){for(var r=this.getRangeStartRow(e),o=this.getRangeEndRow(e),n=r;n&&(t(n),!this.rowPositionUtils.sameRow(n,o));)n=this.cellNavigationService.getRowBelow(n)},t.prototype.removeAllCellRanges=function(e){this.isEmpty()||(this.onDragStop(),this.cellRanges.length=0,e||this.dispatchChangedEvent(!1,!0))},t.prototype.onBodyScroll=function(){this.dragging&&this.lastMouseEvent&&this.onDragging(this.lastMouseEvent)},t.prototype.isCellInAnyRange=function(e){return this.getCellRangeCount(e)>0},t.prototype.isCellInSpecificRange=function(e,t){var r=null!==t.columns&&n._.includes(t.columns,e.column),o=this.isRowInRange(e.rowIndex,e.rowPinned,t);return r&&o},t.prototype.isLastCellOfRange=function(e,t){var r=e.startRow,o=e.endRow,i=this.rowPositionUtils.before(r,o)?o:r,a=t.rowIndex===i.rowIndex&&t.rowPinned===i.rowPinned,s=e.columns[0],l=n._.last(e.columns),c=e.startColumn===s?l:s;return t.column===c&&a},t.prototype.isBottomRightCell=function(e,t){var r=this.columnModel.getAllDisplayedColumns(),o=e.columns.map((function(e){return r.indexOf(e)})).sort((function(e,t){return e-t})),i=e.startRow,a=e.endRow,s=this.rowPositionUtils.before(i,a)?a:i,l=r.indexOf(t.column)===n._.last(o),c=t.rowIndex===s.rowIndex&&n._.makeNull(t.rowPinned)===n._.makeNull(s.rowPinned);return l&&c},t.prototype.getCellRangeCount=function(e){var t=this;return this.isEmpty()?0:this.cellRanges.filter((function(r){return t.isCellInSpecificRange(e,r)})).length},t.prototype.isRowInRange=function(e,t,r){var o=this.getRangeStartRow(r),n=this.getRangeEndRow(r),i={rowIndex:e,rowPinned:t||null},a=i.rowIndex===o.rowIndex&&i.rowPinned==o.rowPinned,s=i.rowIndex===n.rowIndex&&i.rowPinned==n.rowPinned;if(a||s)return!0;var l=!this.rowPositionUtils.before(i,o),c=this.rowPositionUtils.before(i,n);return l&&c},t.prototype.getDraggingRange=function(){return this.draggingRange},t.prototype.onDragStart=function(e){if(this.gridOptionsWrapper.isEnableRangeSelection()){var t=e.ctrlKey,r=e.metaKey,o=e.shiftKey,i=t||r,a=!!!this.gridOptionsWrapper.isSuppressMultiRangeSelection()&&i,s=o&&n._.existsAndNotEmpty(this.cellRanges);if(a||s&&!n._.exists(n._.last(this.cellRanges).type)||this.removeAllCellRanges(!0),this.cellHoverListener=this.addManagedListener(this.ctrlsService.getGridCtrl().getGui(),"mousemove",this.updateValuesOnMove.bind(this)),this.updateValuesOnMove(e),this.lastCellHovered){if(this.dragging=!0,this.lastMouseEvent=e,this.intersectionRange=a&&this.getCellRangeCount(this.lastCellHovered)>1,s||this.setNewestRangeStartCell(this.lastCellHovered),this.cellRanges.length>0)this.draggingRange=n._.last(this.cellRanges);else{var l={rowIndex:this.lastCellHovered.rowIndex,rowPinned:this.lastCellHovered.rowPinned};this.draggingRange={startRow:l,endRow:l,columns:[this.lastCellHovered.column],startColumn:this.newestRangeStartCell.column},this.cellRanges.push(this.draggingRange)}this.ctrlsService.getGridBodyCtrl().addScrollEventListener(this.bodyScrollListener),this.dispatchChangedEvent(!0,!1,this.draggingRange.id)}}},t.prototype.intersectLastRange=function(e){var t=this;if(!(e&&this.dragging||this.gridOptionsWrapper.isSuppressMultiRangeSelection()||this.isEmpty())){var r=n._.last(this.cellRanges),o=this.getRangeStartRow(r),i=this.getRangeEndRow(r),a=[];this.cellRanges.slice(0,-1).forEach((function(e){var l=t.getRangeStartRow(e),c=t.getRangeEndRow(e),p=e.columns,d=p.filter((function(e){return-1===r.columns.indexOf(e)}));if(d.length!==p.length)if(t.rowPositionUtils.before(i,l)||t.rowPositionUtils.before(c,o))a.push(e);else{var g=a.length;if(t.rowPositionUtils.before(l,o)){var h={columns:u(p),startColumn:r.startColumn,startRow:s({},l),endRow:t.cellNavigationService.getRowAbove(o)};a.push(h)}if(d.length>0){var f={columns:d,startColumn:n._.includes(d,r.startColumn)?r.startColumn:d[0],startRow:t.rowPositionUtils.rowMax([s({},o),s({},l)]),endRow:t.rowPositionUtils.rowMin([s({},i),s({},c)])};a.push(f)}t.rowPositionUtils.before(i,c)&&a.push({columns:u(p),startColumn:r.startColumn,startRow:t.cellNavigationService.getRowBelow(i),endRow:s({},c)}),a.length-g==1&&(a[a.length-1].id=e.id)}else a.push(e)})),this.cellRanges=a,e&&this.dispatchChangedEvent(!1,!0)}},t.prototype.updateValuesOnMove=function(e){var t=this.mouseEventService.getCellPositionForEvent(e);this.cellHasChanged=!1,!t||this.lastCellHovered&&this.cellPositionUtils.equals(t,this.lastCellHovered)||(this.lastCellHovered&&(this.cellHasChanged=!0),this.lastCellHovered=t)},t.prototype.onDragging=function(e){var t=this;if(this.dragging&&e){this.lastMouseEvent=e;var r=this.lastCellHovered,o=function(e){return r&&r.rowPinned===e&&t.newestRangeStartCell.rowPinned===e},n=o("top")||o("bottom");if(this.autoScrollService.check(e,n),this.cellHasChanged){var i=this.calculateColumnsBetween(this.newestRangeStartCell.column,r.column);i&&(this.draggingRange.endRow={rowIndex:r.rowIndex,rowPinned:r.rowPinned},this.draggingRange.columns=i,this.dispatchChangedEvent(!1,!1,this.draggingRange.id))}}},t.prototype.onDragStop=function(){if(this.cellHoverListener&&(this.cellHoverListener(),this.cellHoverListener=void 0),this.dragging){var e=this.draggingRange.id;this.autoScrollService.ensureCleared(),this.ctrlsService.getGridBodyCtrl().removeScrollEventListener(this.bodyScrollListener),this.lastMouseEvent=null,this.dragging=!1,this.draggingRange=void 0,this.lastCellHovered=void 0,this.intersectionRange&&(this.intersectionRange=!1,this.intersectLastRange()),this.dispatchChangedEvent(!1,!0,e)}},t.prototype.dispatchChangedEvent=function(e,t,r){var o=Object.freeze({type:n.Events.EVENT_RANGE_SELECTION_CHANGED,started:e,finished:t,id:r});this.eventService.dispatchEvent(o)},t.prototype.calculateColumnsBetween=function(e,t){var r=this.columnModel.getAllDisplayedColumns(),o=e===t,n=r.indexOf(e);if(n<0)console.warn("AG Grid: column "+e.getId()+" is not visible");else{var i=o?n:r.indexOf(t);if(!(i<0)){if(o)return[e];for(var a=Math.min(n,i),s=a===n?i:n,l=[],c=a;c<=s;c++)l.push(r[c]);return l}console.warn("AG Grid: column "+t.getId()+" is not visible")}},l([Object(n.Autowired)("rowModel")],t.prototype,"rowModel",void 0),l([Object(n.Autowired)("columnModel")],t.prototype,"columnModel",void 0),l([Object(n.Autowired)("mouseEventService")],t.prototype,"mouseEventService",void 0),l([Object(n.Autowired)("cellNavigationService")],t.prototype,"cellNavigationService",void 0),l([Object(n.Autowired)("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),l([Object(n.Autowired)("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),l([Object(n.Autowired)("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),l([Object(n.Autowired)("ctrlsService")],t.prototype,"ctrlsService",void 0),l([n.PostConstruct],t.prototype,"init",null),t=l([Object(n.Bean)("rangeService")],t)}(n.BeanStub),g=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),h=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.changedCalculatedValues=!1,t.dragging=!1,t.shouldDestroyOnEndDragging=!1,t}return g(t,e),t.prototype.init=function(){var e=this;this.dragService.addDragSource({dragStartPixels:0,eElement:this.getGui(),onDragStart:this.onDragStart.bind(this),onDragging:function(t){e.dragging=!0,e.rangeService.autoScrollService.check(t),e.changedCalculatedValues&&(e.onDrag(t),e.changedCalculatedValues=!1)},onDragStop:function(t){e.dragging=!1,e.onDragEnd(t),e.clearValues(),e.rangeService.autoScrollService.ensureCleared(),document.body.classList.remove(e.getDraggingCssClass()),e.shouldDestroyOnEndDragging&&e.destroy()}}),this.addManagedListener(this.getGui(),"mousedown",this.preventRangeExtension.bind(this))},t.prototype.isDragging=function(){return this.dragging},t.prototype.getCellCtrl=function(){return this.cellCtrl},t.prototype.setCellCtrl=function(e){this.cellCtrl=e},t.prototype.getCellRange=function(){return this.cellRange},t.prototype.setCellRange=function(e){this.cellRange=e},t.prototype.getRangeStartRow=function(){return this.rangeStartRow},t.prototype.setRangeStartRow=function(e){this.rangeStartRow=e},t.prototype.getRangeEndRow=function(){return this.rangeEndRow},t.prototype.setRangeEndRow=function(e){this.rangeEndRow=e},t.prototype.getLastCellHovered=function(){return this.lastCellHovered},t.prototype.preventRangeExtension=function(e){e.preventDefault(),e.stopPropagation()},t.prototype.onDragStart=function(e){this.cellHoverListener=this.addManagedListener(this.ctrlsService.getGridCtrl().getGui(),"mousemove",this.updateValuesOnMove.bind(this)),document.body.classList.add(this.getDraggingCssClass())},t.prototype.getDraggingCssClass=function(){return"ag-dragging-"+(this.type===n.SelectionHandleType.FILL?"fill":"range")+"-handle"},t.prototype.updateValuesOnMove=function(e){var t=this.mouseEventService.getCellPositionForEvent(e);!t||this.lastCellHovered&&this.cellPositionUtils.equals(t,this.lastCellHovered)||(this.lastCellHovered=t,this.changedCalculatedValues=!0)},t.prototype.getType=function(){return this.type},t.prototype.refresh=function(e){var t=this.getCellCtrl(),r=this.getGui(),o=n._.last(this.rangeService.getCellRanges()),i=o.startRow,a=o.endRow;i&&a&&(this.rowPositionUtils.before(a,i)?(this.setRangeStartRow(a),this.setRangeEndRow(i)):(this.setRangeStartRow(i),this.setRangeEndRow(a)));if(t!==e||!n._.isVisible(r)){this.setCellCtrl(e);var s=e.getComp().getParentOfValue();s&&s.appendChild(r)}this.setCellRange(o)},t.prototype.clearValues=function(){this.lastCellHovered=void 0,this.removeListeners()},t.prototype.removeListeners=function(){this.cellHoverListener&&(this.cellHoverListener(),this.cellHoverListener=void 0)},t.prototype.destroy=function(){if(!this.shouldDestroyOnEndDragging&&this.isDragging())return n._.setDisplayed(this.getGui(),!1),void(this.shouldDestroyOnEndDragging=!0);this.shouldDestroyOnEndDragging=!1,e.prototype.destroy.call(this),this.removeListeners();var t=this.getGui();t.parentElement&&t.parentElement.removeChild(t)},h([Object(n.Autowired)("rowRenderer")],t.prototype,"rowRenderer",void 0),h([Object(n.Autowired)("dragService")],t.prototype,"dragService",void 0),h([Object(n.Autowired)("rangeService")],t.prototype,"rangeService",void 0),h([Object(n.Autowired)("mouseEventService")],t.prototype,"mouseEventService",void 0),h([Object(n.Autowired)("columnModel")],t.prototype,"columnModel",void 0),h([Object(n.Autowired)("cellNavigationService")],t.prototype,"cellNavigationService",void 0),h([Object(n.Autowired)("navigationService")],t.prototype,"navigationService",void 0),h([Object(n.Autowired)("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),h([Object(n.Autowired)("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),h([Object(n.Autowired)("ctrlsService")],t.prototype,"ctrlsService",void 0),h([n.PostConstruct],t.prototype,"init",null),t}(n.Component),v=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),y=function(){return(y=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},b=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},w=function(){for(var e=[],t=0;tu?"x":"y":p)!==this.dragAxis&&(this.dragAxis=r,this.changedCalculatedValues=!0)},t.prototype.onDrag=function(e){if(!this.initialPosition){var t=this.getCellCtrl();if(!t)return;this.initialPosition=t.getCellPosition()}var r=this.getLastCellHovered();r&&this.markPathFrom(this.initialPosition,r)},t.prototype.onDragEnd=function(e){if(this.initialXY=null,this.markedCells.length){var t,r="x"===this.dragAxis,o=this.getCellRange(),n=o.columns.length,i=this.getRangeStartRow(),a=this.getRangeEndRow();if(this.isUp||this.isLeft){var s=r?i:this.lastCellMarked;t=this.rangeService.createCellRangeFromCellRangeParams({rowStartIndex:s.rowIndex,rowStartPinned:s.rowPinned,columnStart:r?this.lastCellMarked.column:o.columns[0],rowEndIndex:a.rowIndex,rowEndPinned:a.rowPinned,columnEnd:o.columns[n-1]})}else t=this.rangeService.createCellRangeFromCellRangeParams({rowStartIndex:i.rowIndex,rowStartPinned:i.rowPinned,columnStart:o.columns[0],rowEndIndex:r?a.rowIndex:this.lastCellMarked.rowIndex,rowEndPinned:r?a.rowPinned:this.lastCellMarked.rowPinned,columnEnd:r?this.lastCellMarked.column:o.columns[n-1]});t&&(this.raiseFillStartEvent(),this.handleValueChanged(o,t,e),this.rangeService.setCellRanges([t]),this.raiseFillEndEvent(o,t))}},t.prototype.raiseFillStartEvent=function(){var e={type:n.Events.EVENT_FILL_START};this.eventService.dispatchEvent(e)},t.prototype.raiseFillEndEvent=function(e,t){var r={type:n.Events.EVENT_FILL_END,initialRange:e,finalRange:t};this.eventService.dispatchEvent(r)},t.prototype.handleValueChanged=function(e,t,r){var o=this,i=this.rangeService.getRangeEndRow(e),a=this.rangeService.getRangeStartRow(e),s=this.rangeService.getRangeEndRow(t),l=this.rangeService.getRangeStartRow(t),c="y"===this.dragAxis;if(!this.isReduce||this.gridOptionsWrapper.isSuppressClearOnFillReduction()){var u=!0,p=[],d=[],g=0,h=function(){p.length=0,d.length=0,g=0},f=function(t,r){var d=o.isUp?i:a,g=!1;c&&(u=!0,h());for(var f=function(){var f=o.rowPositionUtils.getRowNode(d);if(!f)return"break";c&&t?v(p,t,f,(function(){return!o.rowPositionUtils.sameRow(d,o.isUp?a:i)})):r&&(u=!0,h(),r.forEach((function(t){return v(p,t,f,(function(){return t!==(o.isLeft?e.columns[0]:n._.last(e.columns))}))}))),g=o.rowPositionUtils.sameRow(d,o.isUp?l:s),d=o.isUp?o.cellNavigationService.getRowAbove(d):o.cellNavigationService.getRowBelow(d)};!g&&d;){if("break"===f())break}},v=function(e,t,n,i){var a,s=!1;if(u)a=o.getValueFromObject(o.valueService.getValue(t,n)),d.push(a),u=i();else{var l=o.processValues(r,e,d,t,n,g++),c=l.value,p=l.fromUserFunction;if(a=c,t.isCellEditable(n)){var h=o.getValueFromObject(o.valueService.getValue(t,n));p&&h===a?s=!0:n.setDataValue(t,a,"rangeService")}}s||e.push(a)};if(c)e.columns.forEach((function(e){f(e)}));else{y=this.isLeft?w(t.columns).reverse():t.columns;f(void 0,y)}}else{var y=c?e.columns:e.columns.filter((function(e){return t.columns.indexOf(e)<0})),m=c?this.cellNavigationService.getRowBelow(s):l;m&&this.clearCellsInRange(m,i,y)}},t.prototype.clearCellsInRange=function(e,t,r){var o={startRow:e,endRow:t,columns:r,startColumn:r[0]};this.rangeService.clearCellRangeCellValues([o])},t.prototype.processValues=function(e,t,r,o,i,a){var s,l=this.gridOptionsWrapper.getFillOperation();if(s="y"===this.dragAxis?this.isUp?"up":"down":this.isLeft?"left":"right",l){var c=l({event:e,values:t,initialValues:r,currentIndex:a,currentCellValue:this.valueService.getValue(o,i),direction:s,column:o,rowNode:i});if(!1!==c)return{value:c,fromUserFunction:!0}}var u=t.map(this.getValueFromObject),p=!u.some((function(e){var t=parseFloat(e);return isNaN(t)||t.toString()!==e.toString()}));if(e.altKey||!p){if(p&&1===r.length){var d=this.isUp||this.isLeft?-1:1;return{value:parseFloat(n._.last(u))+1*d,fromUserFunction:!1}}return{value:u[a%u.length],fromUserFunction:!1}}return{value:n._.last(n._.findLineByLeastSquares(u.map(Number))),fromUserFunction:!1}},t.prototype.getValueFromObject=function(e){return null!=e&&"object"==typeof e?e.toString():e},t.prototype.clearValues=function(){this.clearMarkedPath(),this.clearCellValues(),this.lastCellMarked=void 0,e.prototype.clearValues.call(this)},t.prototype.clearMarkedPath=function(){this.markedCells.forEach((function(e){if(e.isAlive()){var t=e.getComp();t.addOrRemoveCssClass("ag-selection-fill-top",!1),t.addOrRemoveCssClass("ag-selection-fill-right",!1),t.addOrRemoveCssClass("ag-selection-fill-bottom",!1),t.addOrRemoveCssClass("ag-selection-fill-left",!1)}})),this.markedCells.length=0,this.isUp=!1,this.isLeft=!1,this.isReduce=!1},t.prototype.clearCellValues=function(){this.cellValues.length=0},t.prototype.markPathFrom=function(e,t){if(this.clearMarkedPath(),this.clearCellValues(),"y"===this.dragAxis){if(this.rowPositionUtils.sameRow(t,e))return;var r=this.rowPositionUtils.before(t,e),o=this.getRangeStartRow(),n=this.getRangeEndRow();r&&(t.rowPinned==o.rowPinned&&t.rowIndex>=o.rowIndex||o.rowPinned!=n.rowPinned&&t.rowPinned==n.rowPinned&&t.rowIndex<=n.rowIndex)?(this.reduceVertical(e,t),this.isReduce=!0):(this.extendVertical(e,t,r),this.isReduce=!1)}else{var i=e.column,a=t.column;if(i===a)return;var s=this.columnModel.getAllDisplayedColumns(),l=s.indexOf(i),c=s.indexOf(a);c<=l&&c>=s.indexOf(this.getCellRange().columns[0])?(this.reduceHorizontal(e,t),this.isReduce=!0):(this.extendHorizontal(e,t,c',m([Object(n.Autowired)("valueService")],t.prototype,"valueService",void 0),t}(f),O=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),S=function(){return(S=Object.assign||function(e){for(var t,r=1,o=arguments.length;r',t}(f),x=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),R=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return x(t,e),t.prototype.createSelectionHandle=function(e){return this.createBean(e===n.SelectionHandleType.RANGE?new E:new C)},t=R([Object(n.Bean)("selectionHandleFactory")],t)}(n.BeanStub),A={moduleName:n.ModuleNames.RangeSelectionModule,beans:[d,T],agStackComponents:[{componentName:"AgFillHandle",componentClass:C},{componentName:"AgRangeHandle",componentClass:E}],dependantModules:[i.EnterpriseCoreModule]}},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var o,n=r(52),i=r(7),a=r(2),s=r(18),l=r(8),c=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return c(t,e),t.prototype.init=function(e){this.params=e;var t,r=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.eventKey===l.a.BACKSPACE||e.eventKey===l.a.DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.eventKey!==l.a.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),null!=t&&r.setValue(t,!0),null!=e.maxLength&&r.setMaxLength(e.maxLength),this.addManagedListener(r.getGui(),"keydown",(function(e){var t=e.key;t!==l.a.PAGE_UP&&t!==l.a.PAGE_DOWN||e.preventDefault()}))},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.eInput;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached){Object(s.isBrowserSafari)()||t.getFocusableElement().focus();var r=t.getInputElement();if(this.highlightAllOnFocus)r.select();else{var o=t.getValue(),n=Object(a.exists)(o)&&o.length||0;n&&r.setSelectionRange(n,n)}}},t.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),r=e.getInputElement();t.focus(),r.select()},t.prototype.getValue=function(){var e=this.eInput;return this.params.parseValue(e.getValue())},t.prototype.getStartValue=function(e){return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value},t.prototype.isPopup=function(){return!1},t.TEMPLATE='
\n \n
',u([Object(i.b)("eInput")],t.prototype,"eInput",void 0),t}(n.a)},function(e,t,r){"use strict";r.d(t,"b",(function(){return c})),r.d(t,"a",(function(){return u}));var o,n=r(1),i=r(6),a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},l=function(e,t){return function(r,o){t(r,o,e)}},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.setBeans=function(e){this.logging=e.isDebug()},t.prototype.create=function(e){return new u(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},s([l(0,Object(n.h)("gridOptionsWrapper"))],t.prototype,"setBeans",null),t=s([Object(n.b)("loggerFactory")],t)}(i.a),u=function(){function e(e,t){this.name=e,this.isLoggingFunc=t}return e.prototype.isLogging=function(){return this.isLoggingFunc()},e.prototype.log=function(e){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+e)},e}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var o,n=r(15),i=r(1),a=r(22),s=r(20),l=r(9),c=r(6),u=r(23),p=r(13),d=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),g=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},h=function(e){function t(t,r,o,n,i,a){var s=e.call(this)||this;return s.cellValueFn=t,s.rowNode=r,s.column=o,s.customGui=n,s.dragStartPixels=i,s.suppressVisibilityChange=a,s.dragSource=null,s}return d(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(Object(u.createIconNoSpan)("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new y(this,this.beans,this.rowNode,this.column):new v(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},t.prototype.setDragElement=function(e,t){this.setTemplateFromElement(e),this.addDragSource(t)},t.prototype.getSelectedNodes=function(){if(!this.beans.gridOptionsWrapper.isRowDragMultiRow())return[this.rowNode];var e=this.beans.selectionService.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e:[this.rowNode]},t.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&Object(p.doOnce)((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},t.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},t.prototype.addDragSource=function(e){var t=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var r=this.gridOptionsWrapper.getRowDragText(this.column),o=this.gridOptionsWrapper.getLocaleTextFunc();this.dragSource={type:s.b.RowDrag,eElement:this.getGui(),dragItemName:function(){var e,n=t.getDragItem(),i=(null===(e=n.rowNodes)||void 0===e?void 0:e.length)||1;return r?r(n,i):1===i?t.cellValueFn():i+" "+o("rowDragRows","rows")},getDragItem:function(){return t.getDragItem()},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},t.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},g([Object(i.a)("beans")],t.prototype,"beans",void 0),g([i.e],t.prototype,"postConstruct",null),g([i.g],t.prototype,"removeDragSource",null),t}(n.a),f=function(e){function t(t,r,o){var n=e.call(this)||this;return n.parent=t,n.rowNode=r,n.column=o,n}return d(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=!0,r=!1;this.column&&(t=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),r=Object(p.isFunction)(this.column.getColDef().rowDrag)),r?(this.parent.setDisplayed(!0),this.parent.setVisible(t)):(this.parent.setDisplayed(t),this.parent.setVisible(!0))}},t}(c.a),v=function(e){function t(t,r,o,n){var i=e.call(this,t,o,n)||this;return i.beans=r,i}return d(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,a.b.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,a.b.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,a.b.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,l.a.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},g([i.e],t.prototype,"postConstruct",null),t}(f),y=function(e){function t(t,r,o,n){var i=e.call(this,t,o,n)||this;return i.beans=r,i}return d(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,l.a.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,l.a.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,l.a.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,l.a.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,a.b.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,a.b.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"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(),r=this.beans.gridOptionsWrapper.isSuppressRowDrag(),o=this.beans.dragAndDropService.hasExternalDropZones(),n=t&&!o||r;this.setDisplayedOrVisible(n)},g([i.e],t.prototype,"postConstruct",null),t}(f)},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var o,n=r(7),i=r(1),a=r(200),s=r(29),l=r(35),c=r(37),u=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(){return(p=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},g=function(e){function t(){var t=e.call(this,"dateFilter")||this;return t.minValidYear=1e3,t.maxValidYear=1/0,t}return u(t,e),t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.dateCondition1FromComp.afterGuiAttached(t)},t.prototype.mapValuesFromModel=function(e){var t=e||{},r=t.dateFrom,o=t.dateTo,n=t.type;return[r&&Object(c.parseDateTimeFromString)(r)||null,o&&Object(c.parseDateTimeFromString)(o)||null].slice(0,this.getNumberOfInputs(n))},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){e.prototype.setParams.call(this,t),this.dateFilterParams=t;var r=function(e,r){if(null!=t[e]){if(!isNaN(t[e]))return null==t[e]?r:Number(t[e]);console.warn("AG Grid: DateFilter "+e+" is not a number")}return r};this.minValidYear=r("minValidYear",1e3),this.maxValidYear=r("maxValidYear",1/0),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,t=function(t){return new a.a(e.getContext(),e.userComponentFactory,{onDateChanged:function(){return e.onUiChanged()},filterParams:e.dateFilterParams},t)};this.dateCondition1FromComp=t(this.eCondition1PanelFrom),this.dateCondition1ToComp=t(this.eCondition1PanelTo),this.dateCondition2FromComp=t(this.eCondition2PanelFrom),this.dateCondition2ToComp=t(this.eCondition2PanelTo),this.addDestroyFunc((function(){e.forEachInput((function(e){return e.destroy()}))}))},t.prototype.setElementValue=function(e,t,r){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.createValueTemplate=function(e){var t=e===s.a.One?"1":"2";return'\n
\n
\n
\n
'},t.prototype.isConditionUiComplete=function(t){var r=this;if(!e.prototype.isConditionUiComplete.call(this,t))return!1;var o=!0;return this.forEachInput((function(e,n,i,a){var s;i!==t||!o||n>=a||(o=o&&(null!=(s=e.getDate())&&s.getUTCFullYear()>=r.minValidYear&&s.getUTCFullYear()<=r.maxValidYear))})),o},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.getConditionTypes()[e],r={},o=this.getValues(e);return o.length>0&&(r.dateFrom=Object(c.serialiseDate)(o[0])),o.length>1&&(r.dateTo=Object(c.serialiseDate)(o[1])),p({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},r)},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),r=e("ariaFilterValue","Filter Value");this.forEachInput((function(e){e.setInputPlaceholder(t),e.setInputAriaLabel(r)}))},t.prototype.getInputs=function(){return[[this.dateCondition1FromComp,this.dateCondition1ToComp],[this.dateCondition2FromComp,this.dateCondition2ToComp]]},t.prototype.getValues=function(e){var t=[];return this.forEachInput((function(r,o,n,i){e===n&&o=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=function(e){function t(){return e.call(this,"numberFilter")||this}return c(t,e),t.prototype.mapValuesFromModel=function(e){var t=e||{},r=t.filter,o=t.filterTo,n=t.type;return[null==r?null:r,null==o?null:o].slice(0,this.getNumberOfInputs(n))},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.comparator=function(){return function(e,t){return e===t?0:e\n <'+r+' class="ag-filter-from ag-filter-filter" ref="eValue-index0-'+t+'">\n <"+r+' class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+t+'">\n "},t.prototype.getValues=function(e){var t=this,r=[];return this.forEachInput((function(o,n,i,a){e===i&&n0&&(r.filter=o[0]),o.length>1&&(r.filterTo=o[1]),r},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getAllowedCharPattern=function(){var e=(this.numberFilterParams||{}).allowedCharPattern;return e||(Object(l.isBrowserChrome)()||Object(l.isBrowserEdge)()?null:"\\d\\-\\.")},t.DEFAULT_FILTER_OPTIONS=[a.a.EQUALS,a.a.NOT_EQUAL,a.a.LESS_THAN,a.a.LESS_THAN_OR_EQUAL,a.a.GREATER_THAN,a.a.GREATER_THAN_OR_EQUAL,a.a.IN_RANGE,a.a.BLANK,a.a.NOT_BLANK],u([Object(n.b)("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),u([Object(n.b)("eValue-index1-1")],t.prototype,"eValueTo1",void 0),u([Object(n.b)("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),u([Object(n.b)("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(a.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var o,n=r(1),i=r(52),a=r(7),s=r(2),l=r(8),c=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=function(e){function t(){var t=e.call(this,'
')||this;return t.startedByEnter=!1,t}return c(t,e),t.prototype.init=function(e){var t=this;if(this.focusAfterAttached=e.cellStartedEdit,Object(s.missing)(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=e.eventKey&&e.eventKey===l.a.ENTER;var r=!1;e.values.forEach((function(o){var n={value:o},i=t.valueFormatterService.formatValue(e.column,null,o),a=null!=i;n.text=a?i:o,t.eSelect.addOption(n),r=r||e.value===o})),r?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange((function(){return e.stopEditing()}))}},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},u([Object(n.a)("valueFormatterService")],t.prototype,"valueFormatterService",void 0),u([Object(a.b)("eSelect")],t.prototype,"eSelect",void 0),t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var o,n=r(1),i=r(15),a=r(4),s=r(7),l=r(22),c=r(28),u=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(){return(p=Object.assign||function(e){for(var t,r=1,o=arguments.length;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},g=function(e){function t(){return e.call(this,'\n ')||this}return u(t,e),t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},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.gridOptionsWrapper.getLocaleTextFunc(),t=this.rowNode.isSelected(),r=void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),o=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(o+" ("+r+")")},t.prototype.onCheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},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){Object(c.stopPropagationForAgGrid)(e)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(e){Object(c.stopPropagationForAgGrid)(e);var r=t.eCheckbox.getValue();void 0===t.eCheckbox.getPreviousValue()||void 0===r?0===t.onUncheckedClicked(e||{})&&t.onCheckedClicked(e):r?t.onCheckedClicked(e):t.onUncheckedClicked(e||{})})),this.addManagedListener(this.rowNode,l.b.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,l.b.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,l.b.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsWrapper.getIsRowSelectableFunc()||"function"==typeof this.getIsVisible()){var r=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,a.a.EVENT_DISPLAYED_COLUMNS_CHANGED,r),this.addManagedListener(this.rowNode,l.b.EVENT_DATA_CHANGED,r),this.addManagedListener(this.rowNode,l.b.EVENT_CELL_CHANGED,r),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.showOrHideSelect=function(){var e,t,r,o,n=this.rowNode.selectable,i=this.getIsVisible();if(n)if("function"==typeof i){var a=null===(e=this.overrides)||void 0===e?void 0:e.callbackParams,s=null===(t=this.column)||void 0===t?void 0:t.createColumnFunctionCallbackParams(this.rowNode);n=!!s&&i(p(p({},a),s))}else n=null!=i&&i;if(null===(r=this.column)||void 0===r?void 0:r.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!n),this.setVisible(!0),void this.setDisplayed(!0);(null===(o=this.overrides)||void 0===o?void 0:o.removeHidden)?this.setDisplayed(n):this.setVisible(n)},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},d([Object(s.b)("eCheckbox")],t.prototype,"eCheckbox",void 0),d([n.e],t.prototype,"postConstruct",null),t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var o=r(1),n=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},i=function(){function e(){}return e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},n([Object(o.a)("resizeObserverService")],e.prototype,"resizeObserverService",void 0),n([Object(o.a)("paginationProxy")],e.prototype,"paginationProxy",void 0),n([Object(o.a)("context")],e.prototype,"context",void 0),n([Object(o.a)("columnApi")],e.prototype,"columnApi",void 0),n([Object(o.a)("gridApi")],e.prototype,"gridApi",void 0),n([Object(o.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),n([Object(o.a)("expressionService")],e.prototype,"expressionService",void 0),n([Object(o.a)("rowRenderer")],e.prototype,"rowRenderer",void 0),n([Object(o.a)("templateService")],e.prototype,"templateService",void 0),n([Object(o.a)("valueService")],e.prototype,"valueService",void 0),n([Object(o.a)("eventService")],e.prototype,"eventService",void 0),n([Object(o.a)("columnModel")],e.prototype,"columnModel",void 0),n([Object(o.a)("headerNavigationService")],e.prototype,"headerNavigationService",void 0),n([Object(o.a)("navigationService")],e.prototype,"navigationService",void 0),n([Object(o.a)("columnAnimationService")],e.prototype,"columnAnimationService",void 0),n([Object(o.d)("rangeService")],e.prototype,"rangeService",void 0),n([Object(o.a)("focusService")],e.prototype,"focusService",void 0),n([Object(o.d)("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),n([Object(o.a)("popupService")],e.prototype,"popupService",void 0),n([Object(o.a)("valueFormatterService")],e.prototype,"valueFormatterService",void 0),n([Object(o.a)("stylingService")],e.prototype,"stylingService",void 0),n([Object(o.a)("columnHoverService")],e.prototype,"columnHoverService",void 0),n([Object(o.a)("userComponentFactory")],e.prototype,"userComponentFactory",void 0),n([Object(o.a)("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),n([Object(o.a)("animationFrameService")],e.prototype,"animationFrameService",void 0),n([Object(o.a)("dragAndDropService")],e.prototype,"dragAndDropService",void 0),n([Object(o.a)("sortController")],e.prototype,"sortController",void 0),n([Object(o.a)("filterManager")],e.prototype,"filterManager",void 0),n([Object(o.a)("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),n([Object(o.a)("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),n([Object(o.a)("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),n([Object(o.a)("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),n([Object(o.a)("selectionService")],e.prototype,"selectionService",void 0),n([Object(o.d)("selectionHandleFactory")],e.prototype,"selectionHandleFactory",void 0),n([Object(o.a)("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),n([Object(o.a)("rowModel")],e.prototype,"rowModel",void 0),n([Object(o.a)("ctrlsService")],e.prototype,"ctrlsService",void 0),n([Object(o.a)("ctrlsFactory")],e.prototype,"ctrlsFactory",void 0),n([Object(o.a)("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),n([Object(o.a)("valueCache")],e.prototype,"valueCache",void 0),n([Object(o.a)("rowNodeEventThrottle")],e.prototype,"rowNodeEventThrottle",void 0),n([o.e],e.prototype,"postConstruct",null),e=n([Object(o.b)("beans")],e)}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var o=r(2),n=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},i=function(){for(var e=[],t=0;t=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};function v(e){var t=e;return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}var y=function(){function e(){this.detailGridInfoMap={},this.destroyCalled=!1}return e.prototype.registerOverlayWrapperComp=function(e){this.overlayWrapperComp=e},e.prototype.registerSideBarComp=function(e){this.sideBarComp=e},e.prototype.init=function(){var e=this;switch(this.rowModel.getType()){case o.a.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case o.a.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case o.a.ROW_MODEL_TYPE_SERVER_SIDE: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.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;Object(g.iterateObject)(this.detailGridInfoMap,(function(r,o){Object(d.exists)(o)&&(e(o,t),t++)}))},e.prototype.getDataAsCsv=function(e){if(u.a.assertRegistered(c.a.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){u.a.assertRegistered(c.a.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getExcelExportMode=function(e){var t=this.gridOptionsWrapper.getDefaultExportParams("excel");return Object.assign({exportMode:"xlsx"},t,e).exportMode},e.prototype.getDataAsExcel=function(e){if(u.a.assertRegistered(c.a.ExcelExportModule,"api.getDataAsExcel")){var t=this.getExcelExportMode(e);if(this.excelCreator.getFactoryMode(t)!==l.a.MULTI_SHEET)return this.excelCreator.getDataAsExcel(e);console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},e.prototype.exportDataAsExcel=function(e){if(u.a.assertRegistered(c.a.ExcelExportModule,"api.exportDataAsExcel")){var t=this.getExcelExportMode(e);this.excelCreator.getFactoryMode(t)!==l.a.MULTI_SHEET?this.excelCreator.exportDataAsExcel(e):console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},e.prototype.getSheetDataForExcel=function(e){if(u.a.assertRegistered(c.a.ExcelExportModule,"api.getSheetDataForExcel")){var t=this.getExcelExportMode(e);return this.excelCreator.setFactoryMode(l.a.MULTI_SHEET,t),this.excelCreator.getSheetDataForExcel(e)}},e.prototype.getMultipleSheetsAsExcel=function(e){if(u.a.assertRegistered(c.a.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(e)},e.prototype.exportMultipleSheetsAsExcel=function(e){if(u.a.assertRegistered(c.a.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},e.prototype.setGridAriaProperty=function(e,t){if(e){var r=this.ctrlsService.getGridBodyCtrl().getGui(),o="aria-"+e;null===t?r.removeAttribute(o):r.setAttribute(o,t)}},e.prototype.setServerSideDatasource=function(e){this.serverSideRowModel?this.serverSideRowModel.setDatasource(e):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+o.a.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setCacheBlockSize=function(e){this.serverSideRowModel?(this.gridOptionsWrapper.setProperty("cacheBlockSize",e),this.serverSideRowModel.resetRootStore()):console.warn("AG Grid: you can only set cacheBlockSize with gridOptions.rowModelType '"+o.a.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '"+o.a.ROW_MODEL_TYPE_INFINITE+"'")},e.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+o.a.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){null==this.immutableService?console.warn("AG Grid: you can only set rowData when using the Client Side Row Model"):this.immutableService.isActive()?this.immutableService.setRowData(e):(this.selectionService.reset(),this.clientSideRowModel.setRowData(e))},e.prototype.setFloatingTopRowData=function(e){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnModel.setColumnDefs(e,t)},e.prototype.setAutoGroupColumnDef=function(e,t){void 0===t&&(t="api"),this.gridOptionsWrapper.setProperty(a.a.PROP_AUTO_GROUP_COLUMN_DEF,e,!0)},e.prototype.setDefaultColDef=function(e,t){void 0===t&&(t="api"),this.gridOptionsWrapper.setProperty(a.a.PROP_DEFAULT_COL_DEF,e,!0)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},e.prototype.setAlwaysShowHorizontalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",e)},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.sideBarComp&&this.sideBarComp.refresh()},e.prototype.refreshCells=function(e){void 0===e&&(e={}),Array.isArray(e)?console.warn("since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={});var t=e?e.rowNodes:void 0;this.rowRenderer.redrawRows(t)},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(e){return e.refresh()}))},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},e.prototype.isQuickFilterPresent=function(){return this.filterManager.isQuickFilterPresent()},e.prototype.getModel=function(){return this.rowModel},e.prototype.setRowNodeExpanded=function(e,t){e&&e.setExpanded(t)},e.prototype.onGroupExpandedOrCollapsed=function(e){Object(d.missing)(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),Object(d.exists)(e)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:s.a.MAP})},e.prototype.refreshInMemoryRowModel=function(e){console.warn("AG Grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},e.prototype.refreshClientSideRowModel=function(e){Object(d.missing)(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var t=s.a.EVERYTHING,r={everything:s.a.EVERYTHING,group:s.a.EVERYTHING,filter:s.a.FILTER,map:s.a.MAP,aggregate:s.a.AGGREGATE,sort:s.a.SORT,pivot:s.a.PIVOT};if(Object(d.exists)(e)&&(t=r[e]),Object(d.missing)(t))console.error("AG Grid: invalid step "+e+", available steps are "+Object.keys(r).join(", "));else{var o={step:t,keepRenderedRows:!0,keepEditingRows:!0,animate:!this.gridOptionsWrapper.isSuppressAnimationFrame()};this.clientSideRowModel.refreshModel(o)}},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},e.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):console.warn("AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model")},e.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):console.warn("AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model")},e.prototype.getToolPanelInstance=function(e){if(this.sideBarComp)return v(this.sideBarComp.getToolPanelInstance(e));console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.addVirtualRowListener=function(e,t,r){"string"!=typeof e&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,r)},e.prototype.addRenderedRowListener=function(e,t,r){"virtualRowSelected"===e&&console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(e,t,r)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,r){console.warn("AG Grid: do not use api for selection, call rowNode.setSelected(value) instead"),r&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.selectIndex(e,t)},e.prototype.deselectIndex=function(e,t){void 0===t&&(t=!1),console.warn("AG Grid: do not use api for selection, call rowNode.setSelected(value) instead"),t&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.deselectIndex(e)},e.prototype.selectNode=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1),console.warn("AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead"),r&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectNode=function(e,t){void 0===t&&(t=!1),console.warn("AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead"),t&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!1})},e.prototype.selectAll=function(){this.selectionService.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){Object(d.missing)(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:s.a.AGGREGATE})},e.prototype.sizeColumnsToFit=function(e){this.gridBodyCtrl.sizeColumnsToFit(e)},e.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},e.prototype.isNodeSelected=function(e){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},e.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},e.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionService.getBestCostNodeSelection()},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColIndexVisible=function(e){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},e.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(e,t)},e.prototype.ensureIndexVisible=function(e,t){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){Object(d.missing)(this.clientSideRowModel)&&console.warn("cannot call forEachNode unless using normal row model"),this.clientSideRowModel.forEachLeafNode(e)},e.prototype.forEachNode=function(e){this.rowModel.forEachNode(e)},e.prototype.forEachNodeAfterFilter=function(e){Object(d.missing)(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){Object(d.missing)(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterInstance=function(e,t){var r=this.getFilterInstanceImpl(e,(function(e){if(t){var r=v(e);t(r)}}));return v(r)},e.prototype.getFilterInstanceImpl=function(e,t){var r=this.columnModel.getPrimaryColumn(e);if(r){var o=this.filterManager.getFilterComponent(r,"NO_UI"),n=o&&o.resolveNow(null,(function(e){return e}));return n?setTimeout(t,0,n):o&&o.then((function(e){t(e)})),n}},e.prototype.destroyFilter=function(e){var t=this.columnModel.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},e.prototype.getStatusPanel=function(e){if(this.statusBarService)return v(this.statusBarService.getStatusPanel(e))},e.prototype.getColumnDef=function(e){var t=this.columnModel.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,r){this.focusService.setFocusedCell({rowIndex:e,column:t,rowPinned:r,forceBrowserFocus:!0})},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,e)},e.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_SUPPRESS_ROW_CLICK_SELECTION,e)},e.prototype.addRowDropZone=function(e){this.gridBodyCtrl.getRowDragFeature().addRowDropZone(e)},e.prototype.removeRowDropZone=function(e){var t=this.dragAndDropService.findExternalZone(e);t&&this.dragAndDropService.removeDropTarget(t)},e.prototype.getRowDropZoneParams=function(e){return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_HEADER_HEIGHT,e)},e.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridBodyCtrl.setCellTextSelection(e)},e.prototype.setFillHandleDirection=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_FILL_HANDLE_DIRECTION,e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GROUP_HEADER_HEIGHT,e)},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_FLOATING_FILTERS_HEIGHT,e)},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_PIVOT_HEADER_HEIGHT,e)},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_PIVOT_GROUP_HEADER_HEIGHT,e)},e.prototype.setIsExternalFilterPresent=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_IS_EXTERNAL_FILTER_PRESENT,e)},e.prototype.setDoesExternalFilterPass=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_DOES_EXTERNAL_FILTER_PASS,e)},e.prototype.setNavigateToNextCell=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_NAVIGATE_TO_NEXT_CELL,e)},e.prototype.setTabToNextCell=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_TAB_TO_NEXT_CELL,e)},e.prototype.setTabToNextHeader=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_TAB_TO_NEXT_HEADER,e)},e.prototype.setNavigateToNextHeader=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_NAVIGATE_TO_NEXT_HEADER,e)},e.prototype.setRowGroupPanelShow=function(e){this.gridOptionsWrapper.setProperty("rowGroupPanelShow",e)},e.prototype.setGroupRowAggNodes=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GROUP_ROW_AGG_NODES,e)},e.prototype.setGetGroupRowAgg=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GET_GROUP_ROW_AGG,e)},e.prototype.setGetBusinessKeyForNode=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GET_BUSINESS_KEY_FOR_NODE,e)},e.prototype.setGetChildCount=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GET_CHILD_COUNT,e)},e.prototype.setProcessRowPostCreate=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_PROCESS_ROW_POST_CREATE,e)},e.prototype.setGetRowNodeId=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GET_ROW_NODE_ID,e)},e.prototype.setGetRowId=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GET_ROW_ID,e)},e.prototype.setGetRowClass=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GET_ROW_CLASS,e)},e.prototype.setIsFullWidthCell=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_IS_FULL_WIDTH_CELL,e)},e.prototype.setIsFullWidthRow=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_IS_FULL_WIDTH_ROW,e)},e.prototype.setIsRowSelectable=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_IS_ROW_SELECTABLE,e)},e.prototype.setIsRowMaster=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_IS_ROW_MASTER,e)},e.prototype.setPostSort=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_POST_SORT,e)},e.prototype.setPostSortRows=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_POST_SORT_ROWS,e)},e.prototype.setGetDocument=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GET_DOCUMENT,e)},e.prototype.setGetContextMenuItems=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GET_CONTEXT_MENU_ITEMS,e)},e.prototype.setGetMainMenuItems=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GET_MAIN_MENU_ITEMS,e)},e.prototype.setProcessCellForClipboard=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_PROCESS_CELL_FOR_CLIPBOARD,e)},e.prototype.setSendToClipboard=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_SEND_TO_CLIPBOARD,e)},e.prototype.setProcessCellFromClipboard=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_PROCESS_CELL_FROM_CLIPBOARD,e)},e.prototype.setProcessSecondaryColDef=function(e){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColDef has been renamed, please use setProcessPivotResultColDef instead"),this.setProcessPivotResultColDef(e)},e.prototype.setProcessSecondaryColGroupDef=function(e){console.warn("AG Grid: since version 28.0.x setProcessSecondaryColGroupDef has been renamed, please use setProcessPivotResultColGroupDef instead"),this.setProcessPivotResultColGroupDef(e)},e.prototype.setProcessPivotResultColDef=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_PROCESS_PIVOT_RESULT_COL_DEF,e)},e.prototype.setProcessPivotResultColGroupDef=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF,e)},e.prototype.setPostProcessPopup=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_POST_PROCESS_POPUP,e)},e.prototype.setDefaultGroupOrderComparator=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,e)},e.prototype.setInitialGroupOrderComparator=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_INITIAL_GROUP_ORDER_COMPARATOR,e)},e.prototype.setGetChartToolbarItems=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GET_CHART_TOOLBAR_ITEMS,e)},e.prototype.setPaginationNumberFormatter=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_PAGINATION_NUMBER_FORMATTER,e)},e.prototype.setGetServerSideStoreParams=function(e){this.setGetServerSideGroupLevelParams(e)},e.prototype.setGetServerSideGroupLevelParams=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GET_SERVER_SIDE_GROUP_PARAMS,e)},e.prototype.setIsServerSideGroupOpenByDefault=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,e)},e.prototype.setIsApplyServerSideTransaction=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,e)},e.prototype.setIsServerSideGroup=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_IS_SERVER_SIDE_GROUP,e)},e.prototype.setGetServerSideGroupKey=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GET_SERVER_SIDE_GROUP_KEY,e)},e.prototype.setGetRowStyle=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GET_ROW_STYLE,e)},e.prototype.setGetRowHeight=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GET_ROW_HEIGHT,e)},e.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},e.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setDisplayed(e):e&&console.warn("AG Grid: sideBar is not loaded")},e.prototype.setSideBarPosition=function(e){this.sideBarComp?this.sideBarComp.setSideBarPosition(e):console.warn("AG Grid: sideBar is not loaded")},e.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},e.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},e.prototype.setSideBar=function(e){this.gridOptionsWrapper.setProperty("sideBar",i.a.parse(e))},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},e.prototype.doLayout=function(){Object(p.doOnce)((function(){return console.warn("AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically")}),"doLayoutDeprecated")},e.prototype.resetRowHeights=function(){if(Object(d.exists)(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");this.clientSideRowModel.resetRowHeights()}},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.setGroupDisplayType=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_GROUP_DISPLAY_TYPE,e)},e.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var r=this.columnModel.getPrimaryColumn(e);return Object(d.missing)(r)&&(r=this.columnModel.getGridColumn(e)),Object(d.missing)(r)?null:this.valueService.getValue(r,t)},e.prototype.addEventListener=function(e,t){var r=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,r)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var r=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,r)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var e=this.ctrlsService.getGridCtrl();e&&e.destroyGridUi(),this.context.destroy()}},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(g.removeAllReferences.bind(window,this,"Grid API"),100)},e.prototype.warnIfDestroyed=function(e){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+e+" was called on a grid that was destroyed."),this.destroyCalled},e.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},e.prototype.getRangeSelections=function(){return console.warn("AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the AG Grid documentation."),null},e.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return Object(h.camelCaseToHumanText)(e)},e.prototype.addRangeSelection=function(e){console.warn("AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},e.prototype.addCellRange=function(e){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(e)},e.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},e.prototype.undoCellEditing=function(){this.undoRedoService.undo()},e.prototype.redoCellEditing=function(){this.undoRedoService.redo()},e.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},e.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},e.prototype.getChartModels=function(){if(u.a.assertRegistered(c.a.RangeSelectionModule,"api.getChartModels")&&u.a.assertRegistered(c.a.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},e.prototype.getChartRef=function(e){if(u.a.assertRegistered(c.a.RangeSelectionModule,"api.getChartRef")&&u.a.assertRegistered(c.a.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(e)},e.prototype.getChartImageDataURL=function(e){if(u.a.assertRegistered(c.a.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(e)},e.prototype.downloadChart=function(e){if(u.a.assertRegistered(c.a.GridChartsModule,"api.downloadChart"))return this.chartService.downloadChart(e)},e.prototype.openChartToolPanel=function(e){if(u.a.assertRegistered(c.a.GridChartsModule,"api.openChartToolPanel"))return this.chartService.openChartToolPanel(e)},e.prototype.closeChartToolPanel=function(e){if(u.a.assertRegistered(c.a.GridChartsModule,"api.closeChartToolPanel"))return this.chartService.closeChartToolPanel(e.chartId)},e.prototype.createRangeChart=function(e){if(u.a.assertRegistered(c.a.RangeSelectionModule,"api.createRangeChart")&&u.a.assertRegistered(c.a.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(e)},e.prototype.createCrossFilterChart=function(e){if(u.a.assertRegistered(c.a.RangeSelectionModule,"api.createCrossFilterChart")&&u.a.assertRegistered(c.a.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(e)},e.prototype.restoreChart=function(e,t){if(u.a.assertRegistered(c.a.RangeSelectionModule,"api.restoreChart")&&u.a.assertRegistered(c.a.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(e,t)},e.prototype.createPivotChart=function(e){if(u.a.assertRegistered(c.a.RangeSelectionModule,"api.createPivotChart")&&u.a.assertRegistered(c.a.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(e)},e.prototype.copyToClipboard=function(e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyToClipboard(e)},e.prototype.copySelectedRowsToClipboard=function(e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e)},e.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var r=this.columnModel.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(r,t,"columnMenu")},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var r=this.columnModel.getGridColumn(e);r||(r=this.columnModel.getPrimaryColumn(e)),r?this.menuFactory.showMenuAfterMouseEvent(r,t):console.error("AG Grid: column '"+e+"' not found")},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_POPUP_PARENT,e)},e.prototype.tabToNextCell=function(e){return this.navigationService.tabToNextCell(!1,e)},e.prototype.tabToPreviousCell=function(e){return this.navigationService.tabToNextCell(!0,e)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e).map(v)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e).map(v)},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnModel.getGridColumn(e.colKey);if(t){var r={rowIndex:e.rowIndex,rowPinned:e.rowPinned||null,column:t};null==e.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e.rowIndex);var o=this.navigationService.getCellByPosition(r);o&&o.startRowOrCellEdit(e.key,e.charPress)}else console.warn("AG Grid: no column found for "+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.applyServerSideTransaction=function(e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(e);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},e.prototype.applyServerSideTransactionAsync=function(e,t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(e,t);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},e.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},e.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();console.warn("AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.")},e.prototype.applyTransaction=function(e){if(this.clientSideRowModel){var t=this.clientSideRowModel.updateRowData(e);return this.rowRenderer.refreshFullWidthRows(t.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t}console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1")},e.prototype.setDeltaSort=function(e){this.gridOptionsWrapper.setProperty("deltaSort",e)},e.prototype.updateRowData=function(e){return Object(p.doOnce)((function(){return console.warn("AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")}),"updateRowData deprecated"),this.applyTransaction(e)},e.prototype.applyTransactionAsync=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.batchUpdateRowData=function(e,t){Object(p.doOnce)((function(){return console.warn("AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")}),"batchUpdateRowData deprecated"),this.applyTransactionAsync(e,t)},e.prototype.insertItemsAtIndex=function(e,t,r){void 0===r&&(r=!1),console.warn("AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},e.prototype.removeItems=function(e,t){void 0===t&&(t=!1),console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var r=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:r})},e.prototype.addItems=function(e,t){void 0===t&&(t=!1),console.warn("AG Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:null,update:null,remove:null})},e.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},e.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},e.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeEnterpriseCache=function(e){console.warn("AG Grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.refreshServerSide({purge: true})"),this.purgeServerSideCache(e)},e.prototype.purgeServerSideCache=function(e){void 0===e&&(e=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead."),this.refreshServerSide({route:e,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},e.prototype.refreshServerSide=function(e){this.serverSideRowModel?this.serverSideRowModel.refreshStore(e):console.warn("AG Grid: api.refreshServerSide is only available when rowModelType='serverSide'.")},e.prototype.refreshServerSideStore=function(e){return Object(p.doOnce)((function(){return console.warn("AG Grid: Grid API refreshServerSideStore() was renamed to refreshServerSide() in v28.0")}),"refreshServerSideStore-renamed"),this.refreshServerSide(e)},e.prototype.getServerSideStoreState=function(){return Object(p.doOnce)((function(){return console.warn("AG Grid: Grid API getServerSideStoreState() was renamed to getServerSideGroupLevelState() in v28.0")}),"getServerSideStoreState-renamed"),this.getServerSideGroupLevelState()},e.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideGroupLevelState is only available when rowModelType='serverSide'."),[])},e.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},e.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isMaxRowFound is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},e.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},e.prototype.setVirtualRowCount=function(e,t){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(e,t)},e.prototype.setRowCount=function(e,t){this.infiniteRowModel?this.infiniteRowModel.setRowCount(e,t):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},e.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},e.prototype.checkGridSize=function(){console.warn("In AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything useful.")},e.prototype.getFirstRenderedRow=function(){return console.warn("In AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},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.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},e.prototype.setRowClass=function(e){this.gridOptionsWrapper.setProperty(a.a.PROP_ROW_CLASS,e)},f([Object(n.d)("immutableService")],e.prototype,"immutableService",void 0),f([Object(n.d)("csvCreator")],e.prototype,"csvCreator",void 0),f([Object(n.d)("excelCreator")],e.prototype,"excelCreator",void 0),f([Object(n.a)("rowRenderer")],e.prototype,"rowRenderer",void 0),f([Object(n.a)("navigationService")],e.prototype,"navigationService",void 0),f([Object(n.a)("filterManager")],e.prototype,"filterManager",void 0),f([Object(n.a)("columnModel")],e.prototype,"columnModel",void 0),f([Object(n.a)("selectionService")],e.prototype,"selectionService",void 0),f([Object(n.a)("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),f([Object(n.a)("valueService")],e.prototype,"valueService",void 0),f([Object(n.a)("alignedGridsService")],e.prototype,"alignedGridsService",void 0),f([Object(n.a)("eventService")],e.prototype,"eventService",void 0),f([Object(n.a)("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),f([Object(n.a)("context")],e.prototype,"context",void 0),f([Object(n.a)("rowModel")],e.prototype,"rowModel",void 0),f([Object(n.a)("sortController")],e.prototype,"sortController",void 0),f([Object(n.a)("paginationProxy")],e.prototype,"paginationProxy",void 0),f([Object(n.a)("focusService")],e.prototype,"focusService",void 0),f([Object(n.a)("dragAndDropService")],e.prototype,"dragAndDropService",void 0),f([Object(n.d)("rangeService")],e.prototype,"rangeService",void 0),f([Object(n.d)("clipboardService")],e.prototype,"clipboardService",void 0),f([Object(n.d)("aggFuncService")],e.prototype,"aggFuncService",void 0),f([Object(n.a)("menuFactory")],e.prototype,"menuFactory",void 0),f([Object(n.d)("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),f([Object(n.a)("valueCache")],e.prototype,"valueCache",void 0),f([Object(n.a)("animationFrameService")],e.prototype,"animationFrameService",void 0),f([Object(n.d)("statusBarService")],e.prototype,"statusBarService",void 0),f([Object(n.d)("chartService")],e.prototype,"chartService",void 0),f([Object(n.d)("undoRedoService")],e.prototype,"undoRedoService",void 0),f([Object(n.d)("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),f([Object(n.d)("ssrmTransactionManager")],e.prototype,"serverSideTransactionManager",void 0),f([Object(n.a)("ctrlsService")],e.prototype,"ctrlsService",void 0),f([Object(n.d)("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),f([n.e],e.prototype,"init",null),f([n.g],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=f([Object(n.b)("gridApi")],e)}()},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var o=function(){function e(e,t){this.active=!0,this.nodeIdsToColumns={},this.mapToItems={},this.keepingColumns=e,this.pathRoot={rowNode:t,children:null},this.mapToItems[t.id]=this.pathRoot}return e.prototype.setInactive=function(){this.active=!1},e.prototype.isActive=function(){return this.active},e.prototype.depthFirstSearchChangedPath=function(e,t){if(e.children)for(var r=0;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},d=function(e){function t(t){var r=e.call(this,u(u({},t),{popup:!0}))||this;return r.isMaximizable=!1,r.isMaximized=!1,r.maximizeListeners=[],r.resizeListenerDestroy=null,r.lastPosition={x:0,y:0,width:0,height:0},r}return c(t,e),t.prototype.postConstruct=function(){var t=this,r=this.getGui(),o=this.config,n=o.movable,i=o.resizable,a=o.maximizable;this.addCssClass("ag-dialog"),e.prototype.postConstruct.call(this),this.addManagedListener(r,"focusin",(function(e){r.contains(e.relatedTarget)||t.popupService.bringPopupToFront(r)})),n&&this.setMovable(n),a&&this.setMaximizable(a),i&&this.setResizable(i)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,r=t.alwaysOnTop,o=t.modal,n=t.title,i=this.gridOptionsWrapper.getLocaleTextFunc(),a=this.popupService.addPopup({modal:o,eChild:e,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:r,ariaLabel:n||i("ariaLabelDialog","Dialog")});a&&(this.close=a.hideFunc)},t.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var t=this.lastPosition,r=t.x,o=t.y,n=t.width,i=t.height;this.setWidth(n),this.setHeight(i),this.positionableFeature.offsetElement(r,o)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){Object(s.setDisplayed)(this.maximizeIcon,!this.isMaximized),Object(s.setDisplayed)(this.minimizeIcon,this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((function(e){return e()})),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),e.prototype.destroy.call(this)},t.prototype.setResizable=function(e){this.positionableFeature.setResizable(e)},t.prototype.setMovable=function(e){this.positionableFeature.setMovable(e,this.eTitleBar)},t.prototype.setMaximizable=function(e){var t=this;if(!e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var r=this.eTitleBar;if(r&&e!==this.isMaximizable){var o=this.maximizeButtonComp=this.createBean(new a.a('
')),n=o.getGui();n.appendChild(this.maximizeIcon=Object(l.createIconNoSpan)("maximize",this.gridOptionsWrapper)),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),n.appendChild(this.minimizeIcon=Object(l.createIconNoSpan)("minimize",this.gridOptionsWrapper)),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon","ag-hidden"),o.addManagedListener(n,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(o,0),this.maximizeListeners.push(this.addManagedListener(r,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",(function(){t.isMaximized=!1,t.refreshMaximizeIcon()}))}},p([Object(n.a)("popupService")],t.prototype,"popupService",void 0),t}(i.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var o,n=r(7),i=r(1),a=r(15),s=r(5),l=r(23),c=r(153),u=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},d=function(e){function t(r){var o=e.call(this,t.getTemplate(r))||this;return o.closable=!0,o.config=r,o}return u(t,e),t.getTemplate=function(e){var t=e&&e.cssIdentifier||"default";return'
\n
\n \n
\n
\n
\n
'},t.prototype.postConstruct=function(){var e=this,t=this.config,r=t.component,o=t.closable,n=t.hideTitleBar,i=t.title,a=t.minWidth,s=void 0===a?250:a,l=t.width,u=t.minHeight,p=void 0===u?250:u,d=t.height,g=t.centered,h=t.popup,f=t.x,v=t.y;this.positionableFeature=new c.a(this.getGui(),{minWidth:s,width:l,minHeight:p,height:d,centered:g,x:f,y:v,popup:h,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var y=this.getGui();r&&this.setBodyComponent(r),n?this.eTitleBar.classList.add("ag-hidden"):(i&&this.setTitle(i),this.setClosable(null!=o?o:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(t){var r=e.gridOptionsWrapper.getDocument();if(y.contains(t.relatedTarget)||y.contains(r.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var o=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");o&&o.focus()}})),h&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),e.destroy()}},t.prototype.getHeight=function(){return this.positionableFeature.getHeight()},t.prototype.setHeight=function(e){this.positionableFeature.setHeight(e)},t.prototype.getWidth=function(){return this.positionableFeature.getWidth()},t.prototype.setWidth=function(e){this.positionableFeature.setWidth(e)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var r=this.closeButtonComp=new a.a(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(r);var o=r.getGui(),n=Object(l.createIconNoSpan)("close",this.gridOptionsWrapper);n.classList.add("ag-panel-title-bar-button-icon"),o.appendChild(n),this.addTitleBarButton(r),r.addManagedListener(o,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){(o=this.closeButtonComp.getGui()).parentElement.removeChild(o),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,t){var r=this.eTitleBarButtons,o=r.children,n=o.length;null==t&&(t=n),t=Math.max(0,Math.min(t,n)),e.addCssClass("ag-panel-title-bar-button");var i=e.getGui();0===t?r.insertAdjacentElement("afterbegin",i):t===n?r.insertAdjacentElement("beforeend",i):o[t-1].insertAdjacentElement("afterend",i),e.setParentComponent(this)},t.prototype.getBodyHeight=function(){return Object(s.getInnerHeight)(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return Object(s.getInnerWidth)(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var t=this.getGui();t&&t.offsetParent&&this.close(),e.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='
',p([Object(n.b)("eContentWrapper")],t.prototype,"eContentWrapper",void 0),p([Object(n.b)("eTitleBar")],t.prototype,"eTitleBar",void 0),p([Object(n.b)("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),p([Object(n.b)("eTitle")],t.prototype,"eTitle",void 0),p([i.e],t.prototype,"postConstruct",null),t}(a.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return y}));var o,n=r(41),i=r(202),a=r(15),s=r(1),l=r(30),c=r(8),u=r(11),p=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},g=function(e){function t(t){void 0===t&&(t="default");var r=e.call(this,'
')||this;return r.cssIdentifier=t,r.options=[],r.itemEls=[],r}return p(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 c.a.ENTER:if(this.highlightedEl){var r=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(r)}else this.setValue(this.getValue());break;case c.a.DOWN:case c.a.UP:var o=t===c.a.DOWN,n=void 0;if(e.preventDefault(),this.highlightedEl){var i=this.itemEls.indexOf(this.highlightedEl)+(o?1:-1);i=Math.min(Math.max(i,0),this.itemEls.length-1),n=this.itemEls[i]}else n=this.itemEls[o?0:this.itemEls.length-1];this.highlightItem(n)}},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,r=e.text,o=Object(l.escapeString)(r||t);return this.options.push({value:t,text:o}),this.renderOption(t,o),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach((function(t,r){Object(u.setAriaPosInSet)(t,r+1),Object(u.setAriaSetSize)(t,e.length)}))},t.prototype.renderOption=function(e,t){var r=this,o=document.createElement("div");Object(u.setAriaRole)(o,"option"),o.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),o.innerHTML=""+t+"",o.tabIndex=-1,this.itemEls.push(o),this.addManagedListener(o,"mouseover",(function(){return r.highlightItem(o)})),this.addManagedListener(o,"mouseleave",(function(){return r.clearHighlighted()})),this.addManagedListener(o,"click",(function(){return r.setValue(e)})),this.getGui().appendChild(o)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var r=this.options.findIndex((function(t){return t.value===e}));if(-1!==r){var o=this.options[r];this.value=o.value,this.displayValue=null!=o.text?o.text:o.value,this.highlightItem(this.itemEls[r]),t||this.fireChangeEvent()}return this},t.prototype.setValueByIndex=function(e){return this.setValue(this.options[e].value)},t.prototype.getValue=function(){return this.value},t.prototype.getDisplayValue=function(){return this.displayValue},t.prototype.refreshHighlighted=function(){var e=this;this.clearHighlighted();var t=this.options.findIndex((function(t){return t.value===e.value}));-1!==t&&this.highlightItem(this.itemEls[t])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(t.ACTIVE_CLASS),Object(u.setAriaSelected)(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),Object(u.setAriaSelected)(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:n.a.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",d([s.e],t.prototype,"init",null),t}(a.a),h=r(5),f=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),v=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},y=function(e){function t(t){return e.call(this,t,"ag-select","smallDown","listbox")||this}return f(t,e),t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new g("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,g.EVENT_ITEM_SELECTED,(function(){e.hideList&&e.hideList()})),this.listComponent.addManagedListener(this.listComponent,n.a.EVENT_CHANGED,(function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()}))},t.prototype.showPicker=function(){var e=this,t=this.listComponent.getGui(),r=this.gridOptionsWrapper.getDocument(),o=this.addManagedListener(r.body,"wheel",(function(r){!t.contains(r.target)&&e.hideList&&e.hideList()})),n=this.addManagedListener(t,"focusout",(function(r){!t.contains(r.relatedTarget)&&e.hideList&&e.hideList()})),i=this.gridOptionsWrapper.getLocaleTextFunc(),a=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,n(),o(),e.isAlive()&&(Object(u.setAriaExpanded)(e.eWrapper,!1),e.getFocusableElement().focus())},ariaLabel:i("ariaLabelSelectField","Select Field")});return a&&(this.hideList=a.hideFunc),this.isPickerDisplayed=!0,Object(h.setElementWidth)(t,Object(h.getAbsoluteWidth)(this.eWrapper)),Object(u.setAriaExpanded)(this.eWrapper,!0),t.style.maxHeight=Object(h.getInnerHeight)(this.popupService.getPopupParent())+"px",t.style.position="absolute",this.popupService.positionPopupUnderComponent({type:"ag-list",eventSource:this.eWrapper,ePopup:t,keepWithinBounds:!0}),this.listComponent.refreshHighlighted(),this.listComponent},t.prototype.addOptions=function(e){var t=this;return e.forEach((function(e){return t.addOption(e)})),this},t.prototype.addOption=function(e){return this.listComponent.addOption(e),this},t.prototype.setValue=function(t,r,o){return this.value===t?this:(o||this.listComponent.setValue(t,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,r)))},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),e.prototype.destroy.call(this)},v([Object(s.a)("popupService")],t.prototype,"popupService",void 0),v([s.e],t.prototype,"init",null),t}(i.a)},function(e,t,r){"use strict";function o(e,t,r){if(0===r)return!1;var o=Math.abs(e.clientX-t.clientX),n=Math.abs(e.clientY-t.clientY);return Math.max(o,n)<=r}r.r(t),r.d(t,"areEventsNear",(function(){return o}))},function(e,t,r){"use strict";function o(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}r.r(t),r.d(t,"convertToSet",(function(){return o}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var o,n=r(15),i=r(1),a=r(5),s=r(11),l=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},u=function(e){function t(t,r){var o=e.call(this,r)||this;return o.labelSeparator="",o.labelAlignment="left",o.disabled=!1,o.label="",o.config=t||{},o}return l(t,e),t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,t=e.labelSeparator,r=e.label,o=e.labelWidth,n=e.labelAlignment;null!=t&&this.setLabelSeparator(t),null!=r&&this.setLabel(r),null!=o&&this.setLabelWidth(o),this.setLabelAlignment(n||this.labelAlignment),this.refreshLabel()},t.prototype.refreshLabel=function(){Object(a.clearElement)(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(this.eLabel.classList.add("ag-hidden"),Object(s.setAriaRole)(this.eLabel,"presentation")):(this.eLabel.classList.remove("ag-hidden"),Object(s.setAriaRole)(this.eLabel,null))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},t.prototype.setLabelAlignment=function(e){var t=this.getGui().classList;return t.toggle("ag-label-align-left","left"===e),t.toggle("ag-label-align-right","right"===e),t.toggle("ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label||Object(a.setElementWidth)(this.eLabel,e),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return Object(a.setDisabled)(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},c([i.e],t.prototype,"postConstruct",null),t}(n.a)},function(e,t,r){"use strict";var o;r.d(t,"a",(function(){return o})),function(e){e[e.SINGLE_SHEET=0]="SINGLE_SHEET",e[e.MULTI_SHEET=1]="MULTI_SHEET"}(o||(o={}))},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var o,n=r(15),i=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t,r){var o=e.call(this,t)||this;return o.ctrl=r,o}return i(t,e),t.prototype.getCtrl=function(){return this.ctrl},t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var o,n=r(6),i=r(63),a=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(t,r){var o=e.call(this)||this;return o.ctrl=t,o.beans=r,o}return a(t,e),t.prototype.setComp=function(e){this.comp=e,this.setupTooltip()},t.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsWrapper.isEnableBrowserTooltips(),this.updateTooltipText(),this.browserTooltips?this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0):this.createTooltipFeatureIfNeeded()},t.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},t.prototype.createTooltipFeatureIfNeeded=function(){var e=this;if(null==this.genericTooltipFeature){var t={getTooltipParams:function(){return e.getTooltipParams()},getGui:function(){return e.ctrl.getGui()}};this.genericTooltipFeature=this.createManagedBean(new i.a(t),this.beans.context)}},t.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0)},t.prototype.getTooltipParams=function(){var e=this.ctrl,t=e.getColumn?e.getColumn():void 0,r=e.getColDef?e.getColDef():void 0,o=e.getRowNode?e.getRowNode():void 0;return{location:e.getLocation(),colDef:r,column:t,rowIndex:e.getRowIndex?e.getRowIndex():void 0,node:o,data:o?o.data:void 0,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?e.getValueFormatted():void 0}},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var o,n=r(6),i=r(1),a=r(12),s=r(3),l=r(9),c=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},p=function(e){function t(t){var r=e.call(this)||this;return r.callback=t,r}return c(t,e),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,a.a.PROP_DOM_LAYOUT,e),this.addManagedListener(this.eventService,l.a.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,l.a.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,t=this.gridOptionsWrapper.getDomLayout()===s.a.DOM_LAYOUT_PRINT,r=e.getBodyContainerWidth(),o=e.getDisplayedColumnsLeftWidth(),n=e.getDisplayedColumnsRightWidth(),i=t?r+o+n:r;this.callback(i)},u([Object(i.a)("columnModel")],t.prototype,"columnModel",void 0),u([i.e],t.prototype,"postConstruct",null),t}(n.a)},function(e,t,r){"use strict";r.d(t,"a",(function(){return h}));var o,n=r(3),i=r(1),a=r(5),s=r(14),l=r(15),c=r(7),u=r(40),p=r(145),d=(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),g=function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},h=function(e){function t(t){var r=e.call(this)||this;return r.headerRowComps={},r.rowCompsList=[],r.pinned=t,r}return d(t,e),t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var t={addOrRemoveCssClass:function(t,r){return e.addOrRemoveCssClass(t,r)},setCtrls:function(t){return e.setCtrls(t)},setCenterWidth:function(t){return e.eCenterContainer.style.width=t},setContainerTransform:function(t){return e.eCenterContainer.style.transform=t},setPinnedContainerWidth:function(t){var r=e.getGui();r.style.width=t,r.style.maxWidth=t,r.style.minWidth=t}};this.createManagedBean(new p.a(this.pinned)).setComp(t,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e=this.pinned==n.a.PINNED_LEFT,r=this.pinned==n.a.PINNED_RIGHT,o=e?t.PINNED_LEFT_TEMPLATE:r?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE;this.setTemplate(o),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,r=this,o=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];e.forEach((function(e){var n=e.getInstanceId(),i=o[n];delete o[n];var s=i||r.createBean(new u.a(e));r.headerRowComps[n]=s,r.rowCompsList.push(s),function(e){var o=e.getGui();o.parentElement!=r.eRowContainer&&r.eRowContainer.appendChild(o),t&&Object(a.ensureDomOrder)(r.eRowContainer,o,t),t=o}(s)})),Object(s.getAllValuesInObject)(o).forEach((function(e){return r.destroyRowComp(e)}))},t.PINNED_LEFT_TEMPLATE='